diff --git a/Changelog.md b/Changelog.md
index 2e573a9f62680aab2606530150da63dba37e149d..638ed36f69cea2350a3e8f0c2cb53f9415c20c90 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -2,6 +2,14 @@
 
 All notable changes to this project will be documented in this file.
 
+## [0.88] - 2025-02-05
+- Fix data download for models that are already stored in a flat format (previously only provided the last value for a given year, instead of all values)
+- Fix ordering of years in ScrollableMatrix
+- Add code-splitting to reduce load time significantly for everything except the survey (survey-core library is HUGE)
+- Fix security controls import / publishing to not include comment if "other" wasn't selected
+- Add year to ServiceMatrix tooltips
+
+
 ## [0.87] - 2025-02-05
 - Use separate entrypoints for report & survey to reduce bundle sizes & load time
 
diff --git a/compendium-frontend/src/App.tsx b/compendium-frontend/src/App.tsx
index a0e07e28fbb649c180a08c88f851bfc92fcc3239..7a01e7790afdbc4c2534581ab17c26f482b3a6d9 100644
--- a/compendium-frontend/src/App.tsx
+++ b/compendium-frontend/src/App.tsx
@@ -1,4 +1,4 @@
-import { ReactElement, useEffect } from "react";
+import { ReactElement, useEffect, lazy } from "react";
 import { createBrowserRouter, RouterProvider, Outlet, useLocation } from "react-router-dom";
 import Providers from "./Providers";
 import { ConnectivityPage, ServiceCategory } from "./Schema";
@@ -9,63 +9,61 @@ import CompendiumData from "./pages/CompendiumData";
 import PrivacyModal from "./matomo/PrivacyModal";
 
 // Organization
-import BudgetPage from "./pages/Organization/Budget";
-import ChargingStructurePage from "./pages/Organization/ChargingStructure";
-import ECProjectsPage from "./pages/Organization/ECProjects";
-import FundingSourcePage from "./pages/Organization/FundingSource";
-import ParentOrganisationPage from "./pages/Organization/ParentOrganisation";
-import StaffGraphPage from "./pages/Organization/StaffGraph";
-import StaffGraphAbsolutePage from "./pages/Organization/StaffGraphAbsolute";
-import SubOrganisationPage from "./pages/Organization/SubOrganisation";
+const BudgetPage = lazy(() => import("./pages/Organization/Budget"));
+const ChargingStructurePage = lazy(() => import("./pages/Organization/ChargingStructure"));
+const ECProjectsPage = lazy(() => import("./pages/Organization/ECProjects"));
+const FundingSourcePage = lazy(() => import("./pages/Organization/FundingSource"));
+const ParentOrganisationPage = lazy(() => import("./pages/Organization/ParentOrganisation"));
+const StaffGraphPage = lazy(() => import("./pages/Organization/StaffGraph"));
+const StaffGraphAbsolutePage = lazy(() => import("./pages/Organization/StaffGraphAbsolute"));
+const SubOrganisationPage = lazy(() => import("./pages/Organization/SubOrganisation"));
 
 // Standards & Policies
-import AuditsPage from "./pages/Standards&Policies/Audits";
-import BusinessContinuityPage from "./pages/Standards&Policies/BusinessContinuity";
-import CentralProcurementPage from "./pages/Standards&Policies/CentralProcurement";
-import CorporateStrategyPage from "./pages/Standards&Policies/CorporateStrategy";
-import CrisisExercisesPage from "./pages/Standards&Policies/CrisisExercises";
-import CrisisManagementPage from "./pages/Standards&Policies/CrisisManagement";
-import EOSCListingsPage from "./pages/Standards&Policies/EOSCListings";
-import PolicyPage from "./pages/Standards&Policies/Policy";
-import SecurityControlsPage from "./pages/Standards&Policies/SecurityControls";
-import ServiceLevelTargetsPage from "./pages/Standards&Policies/ServiceLevelTargets";
-import ServiceManagementFrameworkPage from "./pages/Standards&Policies/ServiceManagementFramework";
-import ServicesOfferedPage from "./pages/Standards&Policies/ServicesOffered";
+const AuditsPage = lazy(() => import("./pages/Standards&Policies/Audits"));
+const BusinessContinuityPage = lazy(() => import("./pages/Standards&Policies/BusinessContinuity"));
+const CentralProcurementPage = lazy(() => import("./pages/Standards&Policies/CentralProcurement"));
+const CorporateStrategyPage = lazy(() => import("./pages/Standards&Policies/CorporateStrategy"));
+const CrisisExercisesPage = lazy(() => import("./pages/Standards&Policies/CrisisExercises"));
+const CrisisManagementPage = lazy(() => import("./pages/Standards&Policies/CrisisManagement"));
+const EOSCListingsPage = lazy(() => import("./pages/Standards&Policies/EOSCListings"));
+const PolicyPage = lazy(() => import("./pages/Standards&Policies/Policy"));
+const SecurityControlsPage = lazy(() => import("./pages/Standards&Policies/SecurityControls"));
+const ServiceLevelTargetsPage = lazy(() => import("./pages/Standards&Policies/ServiceLevelTargets"));
+const ServiceManagementFrameworkPage = lazy(() => import("./pages/Standards&Policies/ServiceManagementFramework"));
+const ServicesOfferedPage = lazy(() => import("./pages/Standards&Policies/ServicesOffered"));
 
 // Connected Users
-import ConnectedInstitutionsURLsPage from "./pages/ConnectedUsers/ConnectedInstitutionsURLs";
-import ConnectedUserPage from "./pages/ConnectedUsers/ConnectedUser";
-import RemoteCampusesPage from "./pages/ConnectedUsers/RemoteCampuses";
+const ConnectedInstitutionsURLsPage = lazy(() => import("./pages/ConnectedUsers/ConnectedInstitutionsURLs"));
+const ConnectedUserPage = lazy(() => import("./pages/ConnectedUsers/ConnectedUser"));
+const RemoteCampusesPage = lazy(() => import("./pages/ConnectedUsers/RemoteCampuses"));
 
 // Network
-import AlienWavePage from "./pages/Network/AlienWave";
-import AlienWaveInternalPage from "./pages/Network/AlienWaveInternal";
-import AutomationPage from "./pages/Network/Automation";
-import CapacityCoreIPPage from "./pages/Network/CapacityCoreIP";
-import CapacityLargestLinkPage from "./pages/Network/CapacityLargestLink";
-import CertificateProviderPage from "./pages/Network/CertificateProvider";
-import DarkFibreLeasePage from "./pages/Network/DarkFibreLease";
-import DarkFibreInstalledPage from "./pages/Network/DarkFibreInstalled";
-import ExternalConnectionsPage from "./pages/Network/ExternalConnections";
-import FibreLightPage from "./pages/Network/FibreLight";
-import IRUDurationPage from "./pages/Network/IRUDuration";
-import MonitoringToolsPage from "./pages/Network/MonitoringTools";
-import NetworkFunctionVirtualisationPage from "./pages/Network/NetworkFunctionVirtualisation";
-import NetworkMapUrlPage from "./pages/Network/NetworkMapUrls";
-import NonRAndEPeerPage from "./pages/Network/NonRAndEPeer";
-import OPsAutomationPage from "./pages/Network/OPsAutomation";
-import PassiveMonitoringPage from "./pages/Network/PassiveMonitoring";
-import PertTeamPage from "./pages/Network/PertTeam";
-import SiemVendorsPage from "./pages/Network/SiemVendors";
-import TrafficRatioPage from "./pages/Network/TrafficRatio";
-import TrafficUrlPage from "./pages/Network/TrafficUrl";
-import TrafficVolumePage from "./pages/Network/TrafficVolume";
-import NetworkWeatherMapPage from "./pages/Network/WeatherMap";
-
-
+const AlienWavePage = lazy(() => import("./pages/Network/AlienWave"));
+const AlienWaveInternalPage = lazy(() => import("./pages/Network/AlienWaveInternal"));
+const AutomationPage = lazy(() => import("./pages/Network/Automation"));
+const CapacityCoreIPPage = lazy(() => import("./pages/Network/CapacityCoreIP"));
+const CapacityLargestLinkPage = lazy(() => import("./pages/Network/CapacityLargestLink"));
+const CertificateProviderPage = lazy(() => import("./pages/Network/CertificateProvider"));
+const DarkFibreLeasePage = lazy(() => import("./pages/Network/DarkFibreLease"));
+const DarkFibreInstalledPage = lazy(() => import("./pages/Network/DarkFibreInstalled"));
+const ExternalConnectionsPage = lazy(() => import("./pages/Network/ExternalConnections"));
+const FibreLightPage = lazy(() => import("./pages/Network/FibreLight"));
+const IRUDurationPage = lazy(() => import("./pages/Network/IRUDuration"));
+const MonitoringToolsPage = lazy(() => import("./pages/Network/MonitoringTools"));
+const NetworkFunctionVirtualisationPage = lazy(() => import("./pages/Network/NetworkFunctionVirtualisation"));
+const NetworkMapUrlPage = lazy(() => import("./pages/Network/NetworkMapUrls"));
+const NonRAndEPeerPage = lazy(() => import("./pages/Network/NonRAndEPeer"));
+const OPsAutomationPage = lazy(() => import("./pages/Network/OPsAutomation"));
+const PassiveMonitoringPage = lazy(() => import("./pages/Network/PassiveMonitoring"));
+const PertTeamPage = lazy(() => import("./pages/Network/PertTeam"));
+const SiemVendorsPage = lazy(() => import("./pages/Network/SiemVendors"));
+const TrafficRatioPage = lazy(() => import("./pages/Network/TrafficRatio"));
+const TrafficUrlPage = lazy(() => import("./pages/Network/TrafficUrl"));
+const TrafficVolumePage = lazy(() => import("./pages/Network/TrafficVolume"));
+const NetworkWeatherMapPage = lazy(() => import("./pages/Network/WeatherMap"));
 
 // Services Matrix
-import ServicesPage from "./pages/Services/Services";
+const ServicesPage = lazy(() => import("./pages/Services/Services"));
 
 const GlobalLayout = () => {
   // this component is needed to provide a global layout for the app, including the navbar and footer,
diff --git a/compendium-frontend/src/components/ColorBadgeService.tsx b/compendium-frontend/src/components/ColorBadgeService.tsx
index 8b33e05653cb7b8a32388a32cb0d794c01849ad6..7d98a1b8242fdf581e157a81d3b12dc92b78a095 100644
--- a/compendium-frontend/src/components/ColorBadgeService.tsx
+++ b/compendium-frontend/src/components/ColorBadgeService.tsx
@@ -1,4 +1,3 @@
-import React from "react";
 import { BiCheck } from 'react-icons/bi';
 
 
@@ -8,7 +7,6 @@ function ColorBadgeService({ year, active, serviceInfo, tickServiceIndex, curren
 
   if (serviceInfo !== undefined) {
     const serviceName = serviceInfo['service_name']
-    const year = serviceInfo['year']
     let name = serviceInfo['product_name'];
     let desc = serviceInfo['official_description'];
     let info = serviceInfo['additional_information'];
@@ -16,7 +14,7 @@ function ColorBadgeService({ year, active, serviceInfo, tickServiceIndex, curren
       name = name || "N/A";
       desc = desc || "N/A";
       info = info || "N/A";
-      tooltip_text = serviceName + " (" + year + ")" + "\n" + name + "\n\n" + "Description: " + desc + "\n" + "Information: " + info;
+      tooltip_text = serviceName + "\n" + name + "\n\n" + "Description: " + desc + "\n" + "Information: " + info;
     }
   }
 
@@ -26,6 +24,8 @@ function ColorBadgeService({ year, active, serviceInfo, tickServiceIndex, curren
     shadow_class = "pill-shadow";
   }
 
+  tooltip_text = `${year}: ${tooltip_text}`;
+
   return (
     <div className="d-inline-block" key={year}>
       {active && current ? (
diff --git a/compendium-frontend/src/components/ScrollableMatrix.tsx b/compendium-frontend/src/components/ScrollableMatrix.tsx
index 53498be40550873f86ca8428743ca6df63b9b925..0bb402ee2efed06c6b0f3e48fd198c8cae0627a8 100644
--- a/compendium-frontend/src/components/ScrollableMatrix.tsx
+++ b/compendium-frontend/src/components/ScrollableMatrix.tsx
@@ -30,7 +30,7 @@ export function ScrollableMatrix({ dataLookup, rowInfo, categoryLookup, isTickIc
     const categoryContainers = Object.entries(categoryLookup).map(([categoryKey, categoryTitle]) => {
         const rows = Object.entries(rowInfo).map(([title, field]) => {
 
-            const dataForRow: (string | number | React.JSX.Element)[] = [];
+            const dataForRow: (string | number | React.JSX.Element | null)[] = [];
 
             Array.from(dataLookup.entries()).sort(
                 ([nrenA], [nrenB]) => nrenA.localeCompare(nrenB)
@@ -39,15 +39,11 @@ export function ScrollableMatrix({ dataLookup, rowInfo, categoryLookup, isTickIc
                     const valuesForCategory = yearData.get(categoryKey);
                     if (!valuesForCategory) return;
 
-                    let fieldValue = valuesForCategory[field];
-                    if (fieldValue != null) {
-                        // it's an object with a single value, so use the value directly
-                        fieldValue = Object.values(fieldValue)[0];
-                    }
+                    const fieldValue = valuesForCategory[field] != null ? Object.keys(valuesForCategory[field])[0] : null;
 
                     const value = fieldValue != null && isTickIcon ? TICK_ICON : fieldValue;
                     dataForRow.push(value);
-                })
+                });
             });
 
             if (!dataForRow.length) {
@@ -80,6 +76,10 @@ export function ScrollableMatrix({ dataLookup, rowInfo, categoryLookup, isTickIc
             return nrenYears;
         }, {});
 
+        for (const nren in nrenYears) {
+            nrenYears[nren].sort((a, b) => a - b)
+        }
+
         const categoryContent = (
             <CollapsibleBox title={categoryTitle} startCollapsed key={categoryKey} theme="-matrix">
                 {
diff --git a/compendium-frontend/src/helpers/dataconversion.tsx b/compendium-frontend/src/helpers/dataconversion.tsx
index 83ddd81f18f42f18bd5dd4f9b8fb3c38c4a8a91c..f95179c2daf3a744b2a70c340007e62544a39a71 100644
--- a/compendium-frontend/src/helpers/dataconversion.tsx
+++ b/compendium-frontend/src/helpers/dataconversion.tsx
@@ -207,8 +207,8 @@ export function createCategoryMatrixLookup<T extends NrenAndYearDatapoint>(
             const nren = datapoint.nren;
             const year = datapoint.year;
 
-            const nrenData = dataLookup.get(nren) || new Map<number, Map<string, { [key: string]: string | number }>>(); // NREN -> Year -> Data for that year
-            const yearData = nrenData.get(year) || new Map<string, { [key: string]: { [key: string]: string | number } }>(); // Year -> Data for that year
+            const nrenData = dataLookup.get(nren) || new Map(); // NREN -> Year -> Data for that year
+            const yearData = nrenData.get(year) || new Map(); // Year -> Data for that year
             const values = yearData.get(rowIdentifier as string) || {}; // Data for that year
 
             const value = datapoint[field];
@@ -261,7 +261,7 @@ export const createTrafficVolumeDataset = (data: TrafficVolume[]) => {
             datalabels: {
                 display: true,
                 color: 'grey',
-                formatter: function (value, context) {
+                formatter: function (_value, context) {
                     return context.dataset.label;
                 },
                 anchor: 'start',
@@ -354,7 +354,7 @@ export const createFundingSourceDataset = (data: FundingSource[]) => {
             hidden: false,
             datalabels: {
                 display: fundingSource == keys[0], // workaround for year labels being duplicated
-                formatter: function (value, context) {
+                formatter: function (_value, context) {
                     return context.dataset.stack;
                 },
                 font: {
@@ -659,7 +659,7 @@ export const createNRENStaffDatasetAbsolute = (data: NrenStaff[], selectedYears:
             hidden: false,
             datalabels: {
                 display: true,
-                formatter: function (value, context) {
+                formatter: function (_value, context) {
                     return context.dataset.stack;
                 },
                 font: {
@@ -718,7 +718,7 @@ export const createBarChartDataset = <T extends NrenAndYearDatapoint>(data: T[],
             hidden: false,
             datalabels: {
                 display: true,
-                formatter: function (value, context) {
+                formatter: function (_value, context) {
                     return context.dataset.stack;
                 },
                 font: {
diff --git a/compendium-frontend/src/pages/Organization/FundingSource.tsx b/compendium-frontend/src/pages/Organization/FundingSource.tsx
index 568fe974ef9dfcfb74f3928712d6ae6529b3c68f..515e7bf246a0f09c2ddc9faa8fdb37d72641fb6e 100644
--- a/compendium-frontend/src/pages/Organization/FundingSource.tsx
+++ b/compendium-frontend/src/pages/Organization/FundingSource.tsx
@@ -1,7 +1,7 @@
 import { useContext } from 'react';
 import { Bar } from 'react-chartjs-2';
 import { Col, Row } from "react-bootstrap";
-import { Chart as ChartJS, Tooltip } from 'chart.js';
+import { Chart as ChartJS, CategoryScale, LinearScale, BarElement, Title, Tooltip, Legend } from 'chart.js';
 import ChartDataLabels from 'chartjs-plugin-datalabels';
 
 import { FundingSource } from "../../Schema";
@@ -14,6 +14,15 @@ import { FilterSelectionContext } from '../../providers/FilterSelectionProvider'
 import ChartContainer from "../../components/graphing/ChartContainer";
 import { useData } from '../../helpers/useData';
 
+ChartJS.register(
+  CategoryScale,
+  LinearScale,
+  BarElement,
+  Title,
+  Tooltip,
+  Legend
+);
+
 const chartOptions = {
   maintainAspectRatio: false,
   layout: {
@@ -118,10 +127,6 @@ function FundingSourceLegend() {
   );
 }
 
-ChartJS.register(
-  Tooltip,
-);
-
 function FundingSourcePage() {
   const { filterSelection, setFilterSelection } = useContext(FilterSelectionContext);
   const { data: fundingSourceData, years, nrens } = useData<FundingSource>('/api/funding', setFilterSelection);
diff --git a/compendium-frontend/src/survey/App.tsx b/compendium-frontend/src/survey/App.tsx
index 488ce6f53d6286443b53a09d3c3201bd5de896d5..e0c99f4f5e26644db1e1eb0605bf7ab62b0c238d 100644
--- a/compendium-frontend/src/survey/App.tsx
+++ b/compendium-frontend/src/survey/App.tsx
@@ -1,4 +1,4 @@
-import { useEffect } from "react";
+import { useEffect, lazy } from "react";
 import { createBrowserRouter, RouterProvider, Outlet, useLocation } from "react-router-dom";
 import Providers from "../Providers";
 import ExternalPageNavBar from "../components/global/ExternalPageNavBar";
@@ -6,9 +6,10 @@ import GeantFooter from "../components/global/GeantFooter";
 import PrivacyModal from "../matomo/PrivacyModal";
 
 import SurveyLanding from "./Landing";
-import SurveyContainerComponent from "./SurveyContainerComponent";
-import SurveyManagementComponent from "./management/SurveyManagementComponent";
-import UserManagementComponent from "./management/UserManagementComponent";
+
+const SurveyContainerComponent = lazy(() => import('./SurveyContainerComponent'));
+const SurveyManagementComponent = lazy(() => import('./management/SurveyManagementComponent'));
+const UserManagementComponent = lazy(() => import('./management/UserManagementComponent'));
 
 const RedirectToReport = ({ pathname }) => {
 
diff --git a/compendium-frontend/src/survey/Landing.tsx b/compendium-frontend/src/survey/Landing.tsx
index d4269f730388ff184c58f97b4c2cb4ec3b6f7745..fef112b10f6fefb162dadc5f236dcfdd7631311a 100644
--- a/compendium-frontend/src/survey/Landing.tsx
+++ b/compendium-frontend/src/survey/Landing.tsx
@@ -149,6 +149,7 @@ function Landing(): ReactElement {
             })
             .catch(error => {
                 console.error('Error fetching data:', error);
+                alert('An error occurred while creating the data download Excel file.');
             });
     }
 
diff --git a/compendium-frontend/vite.config.ts b/compendium-frontend/vite.config.ts
index 479d7afecfda2b70df1a6e887c6e24edb409589e..49fb80997b050623584b4ffe7a2c0be426f7ec27 100644
--- a/compendium-frontend/vite.config.ts
+++ b/compendium-frontend/vite.config.ts
@@ -62,6 +62,9 @@ export default defineConfig({
                 assetFileNames: function (assetInfo) {
                     const names = assetInfo.names;
                     if (names.some(name => name.endsWith('.css'))) {
+                        if (names.some(name => name.toLowerCase().includes('component'))) {
+                            return '[hash].[ext]';
+                        }
                         return '[name].[ext]';
                     }
                     return '[hash].[ext]';
diff --git a/compendium_v2/publishers/year/map_2023.py b/compendium_v2/publishers/year/map_2023.py
index 44a959b57c1a2cc0b72627dd83d6710f88658068..46d8fc668281718056690b2b45f45c849fd36f36 100644
--- a/compendium_v2/publishers/year/map_2023.py
+++ b/compendium_v2/publishers/year/map_2023.py
@@ -305,9 +305,9 @@ def map_security_controls(nren: NREN, year: int, answers: Dict[str, Any]):
     if security_controls:
         if "other" in security_controls:
             security_controls.remove("other")
-        comment = answers.get("security_controls-Comment", "").strip()
-        if comment:
-            security_controls.append(comment)
+            comment = answers.get("security_controls-Comment", "").strip()
+            if comment:
+                security_controls.append(comment)
         return {
             'nren_id': nren.id,
             'year': year,
diff --git a/compendium_v2/routes/data_download.py b/compendium_v2/routes/data_download.py
index bd394ddcbe9a84bfc1e7c0ce3dd1c3e3e75191d5..6890ca80ac8d229f6bf67b7c8e6234dbd8eff6cf 100644
--- a/compendium_v2/routes/data_download.py
+++ b/compendium_v2/routes/data_download.py
@@ -20,7 +20,7 @@ from compendium_v2.db.presentation_models import NREN, AlienWave, BudgetEntry, C
     PassiveMonitoring, PertTeam, RemoteCampuses, SecurityControls, ServiceManagement, ServiceUserTypes, SiemVendors, \
     Standards, SubOrganization, TrafficRatio, TrafficStatistics, \
     TrafficVolume, Policy, WeatherMap
-from compendium_v2.db.presentation_model_enums import UserCategory
+from compendium_v2.db.presentation_model_enums import UserCategory, ServiceCategory
 from compendium_v2.db.survey_models import SurveyResponse
 from compendium_v2.helpers import extract_model_data
 
@@ -31,32 +31,38 @@ logger = logging.getLogger(__name__)
 
 def _fetch(table_model, nrens):
     all_data = db.session.query(table_model).options(selectinload(table_model.nren)).all()
-    by_nren = defaultdict(dict)
+    by_nren = defaultdict(lambda: defaultdict(list))
     for entry in all_data:
-        by_nren[entry.nren_id][entry.year] = entry
+        by_nren[entry.nren_id][entry.year].append(entry)
 
     distinct_years = sorted(set(entry.year for entry in all_data), reverse=True)
 
     result = []
     for nren, year in product(nrens, distinct_years):
         entry = by_nren.get(nren.id, {}).get(year)
-        if entry is None:
+        if not entry:
             result.append({
                 **nren.to_dict(),
                 'year': year,
             })
         else:
-            data = list(extract_model_data(entry, download=True))
-            for e in data:
-                for key, val in list(e.items()):
-                    if isinstance(val, list):
-                        if val and isinstance(val[0], dict):
-                            for i, v in enumerate(val):
-                                for k, v in v.items():
-                                    e[f'{key}_{i}_{k}'] = v
-                        else:
-                            e[key] = ', '.join(val)
-            result.extend(data)
+            if table_model in [ECProject, NRENService, SubOrganization]:
+                for e in entry:
+                    result.append(e.to_dict(download=True))
+                continue
+
+            for _entry in entry:
+                data = list(extract_model_data(_entry, download=True))
+                for e in data:
+                    for key, val in list(e.items()):
+                        if isinstance(val, list):
+                            if val and isinstance(val[0], dict):
+                                for i, v in enumerate(val):
+                                    for k, v in v.items():
+                                        e[f'{key}_{i}_{k}'] = v
+                            else:
+                                e[key] = ', '.join(val)
+                result.extend(data)
 
     return result
 
@@ -90,6 +96,37 @@ def _fetch_with_user_category(table_model, nrens):
     return result
 
 
+def fetch_service_user_types(nrens):
+    # service_user_types has user_category, but also service_category. We need to return a row for each combination
+    all_data = db.session.query(ServiceUserTypes).options(selectinload(ServiceUserTypes.nren)).all()
+    by_nren = defaultdict(lambda: defaultdict(lambda: defaultdict(dict)))
+    for entry in all_data:
+        by_nren[entry.nren_id][entry.year][entry.user_category][entry.service_category] = entry
+
+    distinct_years = sorted(set(entry.year for entry in all_data), reverse=True)
+
+    result = []
+    for nren, year, user_category, service_category in product(nrens, distinct_years, UserCategory, ServiceCategory):
+        entry = by_nren.get(nren.id, {}).get(year, {}).get(user_category, {}).get(service_category)
+
+        if entry is None:
+            result.append({
+                **nren.to_dict(),
+                'year': year,
+                'user_category': '',
+                'service_category': '',
+            })
+        else:
+            data = list(extract_model_data(entry, download=True))
+            for e in data:
+                for key, val in list(e.items()):
+                    if isinstance(val, list):
+                        e[key] = ', '.join(val)
+            result.extend(data)
+
+    return result
+
+
 def fetch_survey_comments():
 
     survey_data = db.session.scalars(select(SurveyResponse)).unique().all()
@@ -238,7 +275,7 @@ def fetch_and_combine_data() -> Sequence[Optional[Dict[str, Any]]]:
     entries = fetch_data_from_table(ServiceManagement)
     result_set.append({'name': 'Service Management', 'data': entries})
 
-    entries = fetch_data_from_table(ServiceUserTypes)
+    entries = fetch_service_user_types(all_nrens)
     result_set.append({'name': 'Service User Types', 'data': entries})
 
     entries = fetch_data_from_table(SiemVendors)
diff --git a/compendium_v2/routes/default.py b/compendium_v2/routes/default.py
index da63095b365c53ed5eb853757d938ab9c8f8c07b..9563d5150346c6862b2a5fc67f13b5cde16c98cd 100644
--- a/compendium_v2/routes/default.py
+++ b/compendium_v2/routes/default.py
@@ -63,7 +63,7 @@ def survey_index(path):
 
     if is_api:
         # return 404 for API requests that don't match a route
-        return Response(status=404, mimetype='application/json', response='{"error": "Not Found"}')
+        return jsonify({"error": "Not Found"}), 404
 
     # fallback to serving the SPA through index.html for all other requests
     # https://flask.palletsprojects.com/en/2.0.x/patterns/singlepageapplications/
diff --git a/compendium_v2/static/AlienWave-BToV9QLE.js b/compendium_v2/static/AlienWave-BToV9QLE.js
new file mode 100644
index 0000000000000000000000000000000000000000..41fff2a69fce94a5c031250ebe5ed02b0befaee2
--- /dev/null
+++ b/compendium_v2/static/AlienWave-BToV9QLE.js
@@ -0,0 +1,9 @@
+import{a as T,r as S,F as Y,j as v}from"./main-BIBsTO5W.js";import{u as E,g as j,n as P,D as R,F as W,f as C}from"./useData-BDYwoQEh.js";import{S as F}from"./report.js";import{P as L}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function H(){const e=T.c(30);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=d=>d.alien_wave_third_party!==null,e[0]=a):a=e[0];const x=a,{filterSelection:t,setFilterSelection:h}=S.useContext(Y),{data:_,years:w,nrens:y}=E("/api/alien-wave",h,x);let s,p;if(e[1]!==_||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let d;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(d=g=>t.selectedYears.includes(g.year)&&t.selectedNrens.includes(g.nren),e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=d):d=e[8],s=_.filter(d);const D=j(s,"alien_wave_third_party");p=P(D,M),e[1]=_,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=s,e[5]=p}else s=e[4],p=e[5];const N=p;let r,m;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=["Yes","Planned","No"],m=new Map([[r[0],"yes"],[r[1],"planned"],[r[2],"no"]]),e[9]=r,e[10]=m):(r=e[9],m=e[10]);const k=m;let i;e[11]!==w?(i=[...w],e[11]=w,e[12]=i):i=e[12];let n;e[13]!==y?(n=y.values(),e[13]=y,e[14]=n):n=e[14];let l;e[15]!==n?(l=[...n],e[15]=n,e[16]=l):l=e[16];let o;e[17]!==i||e[18]!==l?(o={availableYears:i,availableNrens:l},e[17]=i,e[18]=l,e[19]=o):o=e[19];let u;e[20]!==t||e[21]!==h||e[22]!==o?(u=v.jsx(W,{filterOptions:o,filterSelection:t,setFilterSelection:h,coloredYears:!0}),e[20]=t,e[21]=h,e[22]=o,e[23]=u):u=e[23];const b=u;let c;e[24]!==N?(c=v.jsx(C,{children:v.jsx(L,{columns:r,columnLookup:k,dataLookup:N})}),e[24]=N,e[25]=c):c=e[25];let f;return e[26]!==b||e[27]!==s||e[28]!==c?(f=v.jsx(R,{title:"NREN Use of 3rd Party Alienwave/Lightpath Services",description:`The table below shows NREN usage of alien wavelength or lightpath services provided by third parties. 
+            It does not include alien waves used internally inside the NRENs own networks, as that is covered in another table. 
+            In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe wavelengths in a 
+            DWDM line system that pass through the network, i.e. they are not sourced/terminated by the line-system operator’s 
+            equipment (hence “alien”). This setup is in contrast to traditional DWDM systems, where the DWDM light source 
+            (transponder) operates in the same management domain as the amplifiers.
+
+            Where NRENs have given the number of individual alien wavelength services, the figure is available in a hover-over 
+            box. These are indicated by a black line around the coloured marker.`,category:F.Network,filter:b,data:s,filename:"alien_wave_nrens_per_year",children:c}),e[26]=b,e[27]=s,e[28]=c,e[29]=f):f=e[29],f}function M(e,a){if(a.nr_of_alien_wave_third_party_services)return`No. of alien wavelength services: ${a.nr_of_alien_wave_third_party_services} `}export{H as default};
diff --git a/compendium_v2/static/AlienWaveInternal-CYmkCEA6.js b/compendium_v2/static/AlienWaveInternal-CYmkCEA6.js
new file mode 100644
index 0000000000000000000000000000000000000000..955abf72f55ca6dc978e5b05ae7090084293ef98
--- /dev/null
+++ b/compendium_v2/static/AlienWaveInternal-CYmkCEA6.js
@@ -0,0 +1,9 @@
+import{a as k,r as Y,F as S,j as w}from"./main-BIBsTO5W.js";import{u as W,g as j,D as F,F as M,f as T}from"./useData-BDYwoQEh.js";import{S as C}from"./report.js";import{P as E}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function $(){const e=k.c(30);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=c=>c.alien_wave_internal!==null,e[0]=m):m=e[0];const D=m,{filterSelection:t,setFilterSelection:d}=Y.useContext(S),{data:v,years:N,nrens:g}=W("/api/alien-wave",d,D);let s,p;if(e[1]!==v||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let c;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(c=_=>t.selectedYears.includes(_.year)&&t.selectedNrens.includes(_.nren),e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=c):c=e[8],s=v.filter(c),p=j(s,"alien_wave_internal"),e[1]=v,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=s,e[5]=p}else s=e[4],p=e[5];const x=p;let n,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(n=["Yes","No"],u=new Map([[n[0],"True"],[n[1],"False"]]),e[9]=n,e[10]=u):(n=e[9],u=e[10]);const b=u;let a;e[11]!==N?(a=[...N],e[11]=N,e[12]=a):a=e[12];let l;e[13]!==g?(l=g.values(),e[13]=g,e[14]=l):l=e[14];let i;e[15]!==l?(i=[...l],e[15]=l,e[16]=i):i=e[16];let r;e[17]!==a||e[18]!==i?(r={availableYears:a,availableNrens:i},e[17]=a,e[18]=i,e[19]=r):r=e[19];let f;e[20]!==t||e[21]!==d||e[22]!==r?(f=w.jsx(M,{filterOptions:r,filterSelection:t,setFilterSelection:d,coloredYears:!0}),e[20]=t,e[21]=d,e[22]=r,e[23]=f):f=e[23];const y=f;let o;e[24]!==x?(o=w.jsx(T,{children:w.jsx(E,{columns:n,columnLookup:b,dataLookup:x})}),e[24]=x,e[25]=o):o=e[25];let h;return e[26]!==y||e[27]!==s||e[28]!==o?(h=w.jsx(F,{title:"Internal NREN Use of Alien Waves",description:`The table below shows NREN usage of alien waves internally within their own networks. 
+            This includes, for example, alien waves used between two equipment vendors, 
+            eg. coloured optics on routes carried over DWDM (dense wavelength division multiplexing) equipment.
+
+            In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe 
+            wavelengths in a DWDM line system that pass through the network, i.e. they are not sourced/terminated 
+            by the line-system operator’s equipment (hence “alien”). This setup is in contrast to traditional 
+            DWDM systems, where the DWDM light source (transponder) operates in the same management domain 
+            as the amplifiers.`,category:C.Network,filter:y,data:s,filename:"alien_wave_internal_nrens_per_year",children:o}),e[26]=y,e[27]=s,e[28]=o,e[29]=h):h=e[29],h}export{$ as default};
diff --git a/compendium_v2/static/Audits-z541eU6T.js b/compendium_v2/static/Audits-z541eU6T.js
new file mode 100644
index 0000000000000000000000000000000000000000..11f0ab43a9e06fe77f654dae2224885402140645
--- /dev/null
+++ b/compendium_v2/static/Audits-z541eU6T.js
@@ -0,0 +1,5 @@
+import{a as Y,r as w,F as j,j as x}from"./main-BIBsTO5W.js";import{u as F,g as P,n as C,D as E,F as D,f as L}from"./useData-BDYwoQEh.js";import{S as I}from"./report.js";import{P as M}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function J(){const e=Y.c(30);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=d=>d.audits!==null,e[0]=s):s=e[0];const _=s,{filterSelection:t,setFilterSelection:u}=w.useContext(j),{data:y,years:b,nrens:g}=F("/api/standards",u,_);let i,m;if(e[1]!==y||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let d;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(d=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren)&&v.audits!==null,e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=d):d=e[8],i=y.filter(d);const T=P(i,"audits");m=C(T,R),e[1]=y,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=i,e[5]=m}else i=e[4],m=e[5];const N=m;let a,f;e[9]===Symbol.for("react.memo_cache_sentinel")?(a=["Yes","No"],f=new Map([[a[0],"True"],[a[1],"False"]]),e[9]=a,e[10]=f):(a=e[9],f=e[10]);const k=f;let r;e[11]!==b?(r=[...b],e[11]=b,e[12]=r):r=e[12];let l;e[13]!==g?(l=g.values(),e[13]=g,e[14]=l):l=e[14];let n;e[15]!==l?(n=[...l],e[15]=l,e[16]=n):n=e[16];let o;e[17]!==r||e[18]!==n?(o={availableYears:r,availableNrens:n},e[17]=r,e[18]=n,e[19]=o):o=e[19];let p;e[20]!==t||e[21]!==u||e[22]!==o?(p=x.jsx(D,{filterOptions:o,filterSelection:t,setFilterSelection:u,coloredYears:!0}),e[20]=t,e[21]=u,e[22]=o,e[23]=p):p=e[23];const S=p;let c;e[24]!==N?(c=x.jsx(L,{children:x.jsx(M,{columns:a,columnLookup:k,dataLookup:N})}),e[24]=N,e[25]=c):c=e[25];let h;return e[26]!==S||e[27]!==i||e[28]!==c?(h=x.jsx(E,{title:"External and Internal Audits of Information Security Management Systems",description:`The table below shows whether NRENs have external and/or internal audits 
+            of the information security management systems (eg. risk management and policies). 
+            Where extra information has been provided, such as whether a certified security auditor 
+            on ISP 27001 is performing the audits, it can be viewed by hovering over the indicator 
+            mark ringed in black.`,category:I.Policy,filter:S,data:i,filename:"audits_nrens_per_year",children:c}),e[26]=S,e[27]=i,e[28]=c,e[29]=h):h=e[29],h}function R(e,s){if(s.audit_specifics)return s.audit_specifics}export{J as default};
diff --git a/compendium_v2/static/Automation-CrHhcUVx.js b/compendium_v2/static/Automation-CrHhcUVx.js
new file mode 100644
index 0000000000000000000000000000000000000000..c5d4cf92f53f6b692afc1bc798a03361398832b0
--- /dev/null
+++ b/compendium_v2/static/Automation-CrHhcUVx.js
@@ -0,0 +1,5 @@
+import{a as ee,r as te,F as se,j as t}from"./main-BIBsTO5W.js";import{u as ne,g as le,F as oe,D as re,f as ie}from"./useData-BDYwoQEh.js";import{C as K}from"./ColorPill-CqT_mR3a.js";import{S as ae}from"./report.js";import{T as ce}from"./Table-HH9WOnMU.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";function ge(){const e=ee.c(69),{filterSelection:l,setFilterSelection:p}=te.useContext(se),{data:Q,years:c,nrens:R}=ne("/api/network-automation",p);let m,f,x,j,u,g,w,y,_,h,d,b,S,Y,v;if(e[0]!==l||e[1]!==R||e[2]!==Q||e[3]!==p||e[4]!==c){let A;e[20]!==l.selectedNrens||e[21]!==l.selectedYears?(A=E=>l.selectedYears.includes(E.year)&&l.selectedNrens.includes(E.nren),e[20]=l.selectedNrens,e[21]=l.selectedYears,e[22]=A):A=e[22];const V=Q.filter(A),X=le(V,"network_automation");let T;e[23]!==c?(T=[...c],e[23]=c,e[24]=T):T=e[24];let C;e[25]!==R?(C=R.values(),e[25]=R,e[26]=C):C=e[26];let D;e[27]!==C?(D=[...C],e[27]=C,e[28]=D):D=e[28];let $;e[29]!==T||e[30]!==D?($={availableYears:T,availableNrens:D},e[29]=T,e[30]=D,e[31]=$):$=e[31];let L;e[32]!==l||e[33]!==p||e[34]!==$?(L=t.jsx(oe,{filterOptions:$,filterSelection:l,setFilterSelection:p,coloredYears:!0}),e[32]=l,e[33]=p,e[34]=$,e[35]=L):L=e[35];const Z=L;let M;e[36]!==c?(M=E=>c.has(E),e[36]=c,e[37]=M):M=e[37];const U=[...l.selectedYears.filter(M)].sort();x=re,b="Network Tasks for which NRENs Use Automation ",S=`The table below shows which NRENs have, or plan to, automate their 
+            operational processes, with specification of which processes, and the names of 
+            software and tools used for this given when appropriate. 
+            Where NRENs indicated that they are using automation for some network tasks, 
+            but did not specify which type of tasks, a marker has been placed in the 'other' column.`,Y=ae.Network,v=Z,g=V,w="network_automation_nrens_per_year",f=ie,m=ce,u="charging-struct-table",y=!0,_=!0;let W;e[38]===Symbol.for("react.memo_cache_sentinel")?(W=t.jsx("col",{span:1,style:{width:"16%"}}),e[38]=W):W=e[38];let q;e[39]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx("col",{span:2,style:{width:"12%"}}),e[39]=q):q=e[39];let z;e[40]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx("col",{span:2,style:{width:"12%"}}),e[40]=z):z=e[40];let B;e[41]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("col",{span:2,style:{width:"12%"}}),e[41]=B):B=e[41];let G;e[42]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsx("col",{span:2,style:{width:"12%"}}),e[42]=G):G=e[42];let H;e[43]===Symbol.for("react.memo_cache_sentinel")?(H=t.jsx("col",{span:2,style:{width:"12%"}}),e[43]=H):H=e[43];let J;e[44]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx("col",{span:2,style:{width:"12%"}}),e[44]=J):J=e[44],e[45]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsxs("colgroup",{children:[W,q,z,B,G,H,J,t.jsx("col",{span:2,style:{width:"12%"}})]}),d=t.jsxs("thead",{children:[t.jsxs("tr",{children:[t.jsx("th",{}),t.jsx("th",{colSpan:2,children:"Device Provisioning"}),t.jsx("th",{colSpan:2,children:"Data Collection"}),t.jsx("th",{colSpan:2,children:"Configuration Management"}),t.jsx("th",{colSpan:2,children:"Compliance"}),t.jsx("th",{colSpan:2,children:"Reporting"}),t.jsx("th",{colSpan:2,children:"Troubleshooting"}),t.jsx("th",{colSpan:2,children:"Other"})]}),t.jsxs("tr",{children:[t.jsx("th",{}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"})]})]}),e[45]=h,e[46]=d):(h=e[45],d=e[46]),j=Array.from(X.entries()).map(E=>{const[F,o]=E;return t.jsxs("tr",{children:[t.jsx("td",{children:F}),["provisioning","data_collection","config_management","compliance","reporting","troubleshooting"].map(n=>t.jsxs(t.Fragment,{children:[t.jsx("td",{children:o.has("yes")&&U.map(s=>{var a,I;const r=(a=o.get("yes"))==null?void 0:a.get(s),i=r?r.network_automation_specifics:null;return t.jsx(K,{year:s,active:!!((I=o.get("yes"))!=null&&I.has(s))&&!!(i&&i.indexOf(n)>-1),tooltip:"",rounded:!0},s)})},`${F}-${n}-yes`),t.jsx("td",{children:o.has("planned")&&U.map(s=>{var a,I;const r=(a=o.get("planned"))==null?void 0:a.get(s),i=r?r.network_automation_specifics:null;return t.jsx(K,{year:s,active:!!((I=o.get("planned"))!=null&&I.has(s))&&!!(i&&i.indexOf(n)>-1),tooltip:"",rounded:!0},s)})},`${F}-${n}-planned`)]})),t.jsx("td",{children:o.has("yes")&&U.map(n=>{var i,a;const s=(i=o.get("yes"))==null?void 0:i.get(n),r=s?s.network_automation_specifics:null;return t.jsx(K,{year:n,active:!!((a=o.get("yes"))!=null&&a.has(n))&&!!(r&&r.length==0),tooltip:"",rounded:!0},n)})},`${F}-other-yes`),t.jsx("td",{children:o.has("planned")&&U.map(n=>{var i,a;const s=(i=o.get("planned"))==null?void 0:i.get(n),r=s?s.network_automation_specifics:null;return t.jsx(K,{year:n,active:!!((a=o.get("planned"))!=null&&a.has(n))&&!!(r&&r.length==0),tooltip:"",rounded:!0},n)})},`${F}-other-planned`)]},F)}),e[0]=l,e[1]=R,e[2]=Q,e[3]=p,e[4]=c,e[5]=m,e[6]=f,e[7]=x,e[8]=j,e[9]=u,e[10]=g,e[11]=w,e[12]=y,e[13]=_,e[14]=h,e[15]=d,e[16]=b,e[17]=S,e[18]=Y,e[19]=v}else m=e[5],f=e[6],x=e[7],j=e[8],u=e[9],g=e[10],w=e[11],y=e[12],_=e[13],h=e[14],d=e[15],b=e[16],S=e[17],Y=e[18],v=e[19];let N;e[47]!==j?(N=t.jsx("tbody",{children:j}),e[47]=j,e[48]=N):N=e[48];let k;e[49]!==m||e[50]!==u||e[51]!==N||e[52]!==y||e[53]!==_||e[54]!==h||e[55]!==d?(k=t.jsxs(m,{className:u,striped:y,bordered:_,children:[h,d,N]}),e[49]=m,e[50]=u,e[51]=N,e[52]=y,e[53]=_,e[54]=h,e[55]=d,e[56]=k):k=e[56];let P;e[57]!==f||e[58]!==k?(P=t.jsx(f,{children:k}),e[57]=f,e[58]=k,e[59]=P):P=e[59];let O;return e[60]!==x||e[61]!==g||e[62]!==w||e[63]!==P||e[64]!==b||e[65]!==S||e[66]!==Y||e[67]!==v?(O=t.jsx(x,{title:b,description:S,category:Y,filter:v,data:g,filename:w,children:P}),e[60]=x,e[61]=g,e[62]=w,e[63]=P,e[64]=b,e[65]=S,e[66]=Y,e[67]=v,e[68]=O):O=e[68],O}export{ge as default};
diff --git a/compendium_v2/static/Budget-BaNd2jtG.js b/compendium_v2/static/Budget-BaNd2jtG.js
new file mode 100644
index 0000000000000000000000000000000000000000..b0aea8643c485b683bbd4823ceb411f0c0d477bd
--- /dev/null
+++ b/compendium_v2/static/Budget-BaNd2jtG.js
@@ -0,0 +1 @@
+import{a as _,r as S,F as j,j as s}from"./main-BIBsTO5W.js";import{L as v}from"./index-BBrAyDR9.js";import{C,a as R,L,P as w,b as D,p as F,c as P,d as B,u as M,e as O,D as T,F as G,f as Y}from"./useData-BDYwoQEh.js";import{S as k}from"./report.js";import{g as q}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";C.register(R,L,w,D,F,P,B);function K(){const e=_.c(24),{filterSelection:t,setFilterSelection:o}=S.useContext(j),{data:m,nrens:b}=M("/api/budget",o);let a,l;if(e[0]!==m||e[1]!==t.selectedNrens){let h;e[4]!==t.selectedNrens?(h=E=>t.selectedNrens.includes(E.nren),e[4]=t.selectedNrens,e[5]=h):h=e[5],a=m.filter(h),l=O(a,"budget"),e[0]=m,e[1]=t.selectedNrens,e[2]=a,e[3]=l}else a=e[2],l=e[3];const N=l;let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[6]=c):c=e[6];let i;e[7]!==b?(i=b.values(),e[7]=b,e[8]=i):i=e[8];let r;e[9]!==i?(r={availableYears:c,availableNrens:[...i]},e[9]=i,e[10]=r):r=e[10];let d;e[11]!==t||e[12]!==o||e[13]!==r?(d=s.jsx(G,{filterOptions:r,filterSelection:t,setFilterSelection:o}),e[11]=t,e[12]=o,e[13]=r,e[14]=d):d=e[14];const y=d;let f;e[15]===Symbol.for("react.memo_cache_sentinel")?(f=q({title:"Budget in M€",tooltipUnit:"M€",unit:"M€"}),e[15]=f):f=e[15];const x=f;let g;e[16]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx("br",{}),e[16]=g):g=e[16];let p;e[17]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs("span",{children:["The graph shows NREN budgets per year (in millions Euro). When budgets are not per calendar year, the NREN is asked to provide figures of the budget that covers the largest part of the year, and to include any GÉANT subsidy they may receive.",g,"NRENs are free to decide how they define the part of their organisation dedicated to core NREN business, and the budget. The merging of different parts of a large NREN into a single organisation, with a single budget can lead to significant changes between years, as can receiving funding for specific time-bound projects.",s.jsx("br",{}),"Hovering over the graph data points shows the NREN budget for the year. Gaps indicate that the budget question was not filled in for a particular year."]}),e[17]=p):p=e[17];let n;e[18]!==N?(n=s.jsx(Y,{children:s.jsx(v,{data:N,options:x})}),e[18]=N,e[19]=n):n=e[19];let u;return e[20]!==y||e[21]!==a||e[22]!==n?(u=s.jsx(T,{title:"Budget of NRENs per Year",description:p,category:k.Organisation,filter:y,data:a,filename:"budget_data",children:n}),e[20]=y,e[21]=a,e[22]=n,e[23]=u):u=e[23],u}export{K as default};
diff --git a/compendium_v2/static/BusinessContinuity-BhppOK3E.js b/compendium_v2/static/BusinessContinuity-BhppOK3E.js
new file mode 100644
index 0000000000000000000000000000000000000000..6979952e60a9735a50345e083c1437ddd1aa26dd
--- /dev/null
+++ b/compendium_v2/static/BusinessContinuity-BhppOK3E.js
@@ -0,0 +1,5 @@
+import{a as v,r as C,F as E,j as y}from"./main-BIBsTO5W.js";import{u as S,g as j,n as F,D as P,F as R,f as D}from"./useData-BDYwoQEh.js";import{S as L}from"./report.js";import{P as B}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function K(){const e=v.c(30);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=u=>u.business_continuity_plans!==null,e[0]=s):s=e[0];const k=s,{filterSelection:t,setFilterSelection:p}=C.useContext(E),{data:b,years:_,nrens:N}=S("/api/standards",p,k);let n,d;if(e[1]!==b||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let u;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(u=g=>t.selectedYears.includes(g.year)&&t.selectedNrens.includes(g.nren)&&g.business_continuity_plans!==null,e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=u):u=e[8],n=b.filter(u);const Y=j(n,"business_continuity_plans");d=F(Y,M),e[1]=b,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=n,e[5]=d}else n=e[4],d=e[5];const x=d;let i,f;e[9]===Symbol.for("react.memo_cache_sentinel")?(i=["Yes","No"],f=new Map([[i[0],"True"],[i[1],"False"]]),e[9]=i,e[10]=f):(i=e[9],f=e[10]);const w=f;let l;e[11]!==_?(l=[..._],e[11]=_,e[12]=l):l=e[12];let o;e[13]!==N?(o=N.values(),e[13]=N,e[14]=o):o=e[14];let a;e[15]!==o?(a=[...o],e[15]=o,e[16]=a):a=e[16];let r;e[17]!==l||e[18]!==a?(r={availableYears:l,availableNrens:a},e[17]=l,e[18]=a,e[19]=r):r=e[19];let m;e[20]!==t||e[21]!==p||e[22]!==r?(m=y.jsx(R,{filterOptions:r,filterSelection:t,setFilterSelection:p,coloredYears:!0}),e[20]=t,e[21]=p,e[22]=r,e[23]=m):m=e[23];const T=m;let c;e[24]!==x?(c=y.jsx(D,{children:y.jsx(B,{columns:i,columnLookup:w,dataLookup:x})}),e[24]=x,e[25]=c):c=e[25];let h;return e[26]!==T||e[27]!==n||e[28]!==c?(h=y.jsx(P,{title:"NREN Business Continuity Planning",description:`The table below shows which NRENs have business continuity plans in place to 
+            ensure business continuation and operations. Extra details about whether the NREN 
+            complies with any international standards, and whether they test the continuity plans 
+            regularly can be seen by hovering over the marker. The presence of this extra information 
+            is denoted by a black ring around the marker.`,category:L.Policy,filter:T,data:n,filename:"business_continuity_nrens_per_year",children:c}),e[26]=T,e[27]=n,e[28]=c,e[29]=h):h=e[29],h}function M(e,s){if(s.business_continuity_plans_specifics)return s.business_continuity_plans_specifics}export{K as default};
diff --git a/compendium_v2/static/survey.css b/compendium_v2/static/Bx5HfHBo.css
similarity index 100%
rename from compendium_v2/static/survey.css
rename to compendium_v2/static/Bx5HfHBo.css
diff --git a/compendium_v2/static/CapacityCoreIP-BzYm9HBi.js b/compendium_v2/static/CapacityCoreIP-BzYm9HBi.js
new file mode 100644
index 0000000000000000000000000000000000000000..c794933ddad0ae8020c4cc406c427eda14d7c95b
--- /dev/null
+++ b/compendium_v2/static/CapacityCoreIP-BzYm9HBi.js
@@ -0,0 +1,3 @@
+import{a as I,r as D,F,j as y}from"./main-BIBsTO5W.js";import{B as R}from"./index-BBrAyDR9.js";import{C as Y,a as G,L,B as O,p as $,c as A,d as M,u as T,o as U,D as q,F as z,f as H}from"./useData-BDYwoQEh.js";import{S as J}from"./report.js";import{p as K}from"./chartjs-plugin-datalabels.esm-D8EJYoxA.js";import{a as Q}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";Y.register(G,L,O,$,A,M);function re(){const e=I.c(39);let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b=n=>n.typical_backbone_capacity!=null,e[0]=b):b=e[0];const B=b,{filterSelection:t,setFilterSelection:s}=D.useContext(F),{data:S,years:d,nrens:u}=T("/api/capacity",s,B);let i,l,a,g;if(e[1]!==S||e[2]!==t||e[3]!==u||e[4]!==s||e[5]!==d){let n;e[10]!==t.selectedNrens||e[11]!==t.selectedYears?(n=j=>t.selectedYears.includes(j.year)&&t.selectedNrens.includes(j.nren)&&B(j),e[10]=t.selectedNrens,e[11]=t.selectedYears,e[12]=n):n=e[12],a=S.filter(n),i=U(a,"typical_backbone_capacity","Backbone IP Capacity");let p;e[13]!==d?(p=[...d],e[13]=d,e[14]=p):p=e[14];let f;e[15]!==u?(f=u.values(),e[15]=u,e[16]=f):f=e[16];let m;e[17]!==f?(m=[...f],e[17]=f,e[18]=m):m=e[18];let h;e[19]!==p||e[20]!==m?(h={availableYears:p,availableNrens:m},e[19]=p,e[20]=m,e[21]=h):h=e[21];let N;e[22]!==t||e[23]!==s||e[24]!==h?(N=y.jsx(z,{filterOptions:h,filterSelection:t,setFilterSelection:s}),e[22]=t,e[23]=s,e[24]=h,e[25]=N):N=e[25],l=N,g=Array.from(new Set(a.map(V))),e[1]=S,e[2]=t,e[3]=u,e[4]=s,e[5]=d,e[6]=i,e[7]=l,e[8]=a,e[9]=g}else i=e[6],l=e[7],a=e[8],g=e[9];const E=g.length,P=Math.max(E*t.selectedYears.length*1.5+5,50),v=`The graph below shows the typical core usable backbone IP capacity of 
+    NREN networks, expressed in Gbit/s. It refers to the circuit capacity, not the traffic over 
+    the network.`;let C;e[26]===Symbol.for("react.memo_cache_sentinel")?(C=Q({title:"NREN Core IP Capacity",tooltipUnit:"Gbit/s",unit:"Gbit/s"}),e[26]=C):C=e[26];const w=C,k=`${P}rem`;let r;e[27]!==k?(r={height:k},e[27]=k,e[28]=r):r=e[28];let _;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=[K],e[29]=_):_=e[29];let o;e[30]!==i?(o=y.jsx(R,{data:i,options:w,plugins:_}),e[30]=i,e[31]=o):o=e[31];let c;e[32]!==r||e[33]!==o?(c=y.jsx(H,{children:y.jsx("div",{className:"chart-container",style:r,children:o})}),e[32]=r,e[33]=o,e[34]=c):c=e[34];let x;return e[35]!==l||e[36]!==a||e[37]!==c?(x=y.jsx(q,{title:"NREN Core IP Capacity",description:v,category:J.Network,filter:l,data:a,filename:"capacity_core_ip",children:c}),e[35]=l,e[36]=a,e[37]=c,e[38]=x):x=e[38],x}function V(e){return e.nren}export{re as default};
diff --git a/compendium_v2/static/CapacityLargestLink-CchKWKUR.js b/compendium_v2/static/CapacityLargestLink-CchKWKUR.js
new file mode 100644
index 0000000000000000000000000000000000000000..c1436b62911625d49565549bc1a06da68c2d4a80
--- /dev/null
+++ b/compendium_v2/static/CapacityLargestLink-CchKWKUR.js
@@ -0,0 +1,3 @@
+import{a as D,r as F,F as R,j as u}from"./main-BIBsTO5W.js";import{B as Y}from"./index-BBrAyDR9.js";import{C as G,a as O,L as P,B as $,p as A,c as M,d as U,u as W,o as q,D as z,F as H,f as I}from"./useData-BDYwoQEh.js";import{S as J}from"./report.js";import{p as K}from"./chartjs-plugin-datalabels.esm-D8EJYoxA.js";import{a as Q}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";G.register(O,P,$,A,M,U);function le(){const e=D.c(39);let y;e[0]===Symbol.for("react.memo_cache_sentinel")?(y=c=>c.largest_link_capacity!=null,e[0]=y):y=e[0];const v=y,{filterSelection:t,setFilterSelection:i}=F.useContext(R),{data:S,years:h,nrens:g}=W("/api/capacity",i,v);let s,r,a,k;if(e[1]!==S||e[2]!==t||e[3]!==g||e[4]!==i||e[5]!==h){let c;e[10]!==t.selectedNrens||e[11]!==t.selectedYears?(c=L=>t.selectedYears.includes(L.year)&&t.selectedNrens.includes(L.nren)&&v(L),e[10]=t.selectedNrens,e[11]=t.selectedYears,e[12]=c):c=e[12],a=S.filter(c),s=q(a,"largest_link_capacity","Link capacity");let p;e[13]!==h?(p=[...h],e[13]=h,e[14]=p):p=e[14];let f;e[15]!==g?(f=g.values(),e[15]=g,e[16]=f):f=e[16];let m;e[17]!==f?(m=[...f],e[17]=f,e[18]=m):m=e[18];let d;e[19]!==p||e[20]!==m?(d={availableYears:p,availableNrens:m},e[19]=p,e[20]=m,e[21]=d):d=e[21];let C;e[22]!==t||e[23]!==i||e[24]!==d?(C=u.jsx(H,{filterOptions:d,filterSelection:t,setFilterSelection:i}),e[22]=t,e[23]=i,e[24]=d,e[25]=C):C=e[25],r=C,k=Array.from(new Set(a.map(T))),e[1]=S,e[2]=t,e[3]=g,e[4]=i,e[5]=h,e[6]=s,e[7]=r,e[8]=a,e[9]=k}else s=e[6],r=e[7],a=e[8],k=e[9];const w=k.length,j=Math.max(w*t.selectedYears.length*1.5+5,50),E=`NRENs were asked to give the capacity (in Gbits/s) of the largest link in 
+    their network used for internet traffic (either shared or dedicated). While they were invited to 
+    provide the sum of aggregated links, backup capacity was not to be included.`;let N;e[26]===Symbol.for("react.memo_cache_sentinel")?(N=Q({title:"Capacity of the Largest Link in an NREN Network",tooltipUnit:"Gbit/s",unit:"Gbit/s"}),e[26]=N):N=e[26];const B=N,b=`${j}rem`;let l;e[27]!==b?(l={height:b},e[27]=b,e[28]=l):l=e[28];let _;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=[K],e[29]=_):_=e[29];let n;e[30]!==s?(n=u.jsx(Y,{data:s,options:B,plugins:_}),e[30]=s,e[31]=n):n=e[31];let o;e[32]!==l||e[33]!==n?(o=u.jsx(I,{children:u.jsx("div",{className:"chart-container",style:l,children:n})}),e[32]=l,e[33]=n,e[34]=o):o=e[34];let x;return e[35]!==r||e[36]!==a||e[37]!==o?(x=u.jsx(z,{title:"Capacity of the Largest Link in an NREN Network",description:E,category:J.Network,filter:r,data:a,filename:"capacity_largest_link",children:o}),e[35]=r,e[36]=a,e[37]=o,e[38]=x):x=e[38],x}function T(e){return e.nren}export{le as default};
diff --git a/compendium_v2/static/CentralProcurement-BK_KYdQw.js b/compendium_v2/static/CentralProcurement-BK_KYdQw.js
new file mode 100644
index 0000000000000000000000000000000000000000..22cedba5602b6f77329f30a5da8a89873ef045bc
--- /dev/null
+++ b/compendium_v2/static/CentralProcurement-BK_KYdQw.js
@@ -0,0 +1 @@
+import{a as F,r as Y,F as I,j as h}from"./main-BIBsTO5W.js";import{C as T,a as V,L as $,B as L,p as O,c as k,d as A,u as M,o as U,D as Z,F as q,f as z}from"./useData-BDYwoQEh.js";import{p as G}from"./chartjs-plugin-datalabels.esm-D8EJYoxA.js";import{B as H}from"./index-BBrAyDR9.js";import{a as J}from"./charthelpers-CCaYPWnR.js";import{S as K}from"./report.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";T.register(V,$,L,O,k,A);function ne(){const e=F.c(40);let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=s=>s.amount!=null,e[0]=g):g=e[0];const v=g,{filterSelection:t,setFilterSelection:l}=Y.useContext(I),{data:w,years:d,nrens:y}=M("/api/central-procurement",l,v);let o,n,r,N;if(e[1]!==w||e[2]!==t||e[3]!==y||e[4]!==l||e[5]!==d){let s;e[10]!==t.selectedNrens||e[11]!==t.selectedYears?(s=j=>t.selectedYears.includes(j.year)&&t.selectedNrens.includes(j.nren),e[10]=t.selectedNrens,e[11]=t.selectedYears,e[12]=s):s=e[12],r=w.filter(s),o=U(r,"amount","Procurement Value");let a;e[13]!==d?(a=[...d],e[13]=d,e[14]=a):a=e[14];let f;e[15]!==y?(f=y.values(),e[15]=y,e[16]=f):f=e[16];let u;e[17]!==f?(u=[...f],e[17]=f,e[18]=u):u=e[18];let p;e[19]!==a||e[20]!==u?(p={availableYears:a,availableNrens:u},e[19]=a,e[20]=u,e[21]=p):p=e[21];let b;e[22]!==t||e[23]!==l||e[24]!==p?(b=h.jsx(q,{filterOptions:p,filterSelection:t,setFilterSelection:l}),e[22]=t,e[23]=l,e[24]=p,e[25]=b):b=e[25],n=b,N=Array.from(new Set(r.map(Q))),e[1]=w,e[2]=t,e[3]=y,e[4]=l,e[5]=d,e[6]=o,e[7]=n,e[8]=r,e[9]=N}else o=e[6],n=e[7],r=e[8],N=e[9];const P=N.length,R=Math.max(P*t.selectedYears.length*1.5+5,50);let S;e[26]===Symbol.for("react.memo_cache_sentinel")?(S=h.jsx("span",{children:"Some NRENs centrally procure software for their customers. The graph below shows the total value (in Euro) of software procured in the previous year by the NRENs. Please note you can only see the select NRENs which carry out this type of procurement. Those who do not offer this are not selectable."}),e[26]=S):S=e[26];const B=S;let x;e[27]===Symbol.for("react.memo_cache_sentinel")?(x=J({title:"Software Procurement Value",valueTransform(s){return`${new Intl.NumberFormat(void 0,{style:"currency",currency:"EUR",trailingZeroDisplay:"stripIfInteger"}).format(s)}`}}),e[27]=x):x=e[27];const D=x,E=`${R}rem`;let i;e[28]!==E?(i={height:E},e[28]=E,e[29]=i):i=e[29];let _;e[30]===Symbol.for("react.memo_cache_sentinel")?(_=[G],e[30]=_):_=e[30];let c;e[31]!==o?(c=h.jsx(H,{data:o,options:D,plugins:_}),e[31]=o,e[32]=c):c=e[32];let m;e[33]!==i||e[34]!==c?(m=h.jsx(z,{children:h.jsx("div",{className:"chart-container",style:i,children:c})}),e[33]=i,e[34]=c,e[35]=m):m=e[35];let C;return e[36]!==n||e[37]!==r||e[38]!==m?(C=h.jsx(Z,{title:"Value of Software Procured for Customers by NRENs",description:B,category:K.Policy,filter:n,data:r,filename:"central_procurement",children:m}),e[36]=n,e[37]=r,e[38]=m,e[39]=C):C=e[39],C}function Q(e){return e.nren}export{ne as default};
diff --git a/compendium_v2/static/CertificateProvider-B2MBeNfh.js b/compendium_v2/static/CertificateProvider-B2MBeNfh.js
new file mode 100644
index 0000000000000000000000000000000000000000..da4dd53c3fd252b337f7a262bfd978abff89dc96
--- /dev/null
+++ b/compendium_v2/static/CertificateProvider-B2MBeNfh.js
@@ -0,0 +1 @@
+import{a as _,r as E,F as Y,j as N}from"./main-BIBsTO5W.js";import{u as j,g as k,D,F as P,f as T}from"./useData-BDYwoQEh.js";import{S as w}from"./report.js";import{P as F}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function B(){const e=_.c(29),{filterSelection:t,setFilterSelection:c}=E.useContext(Y),{data:S,years:x,nrens:b}=j("/api/certificate-providers",c);let s,n;if(e[0]!==S||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=y=>t.selectedYears.includes(y.year)&&t.selectedNrens.includes(y.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=S.filter(u),n=k(s,"provider_names"),e[0]=S,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=n}else s=e[3],n=e[4];const C=n;let r;e[8]!==x?(r=[...x],e[8]=x,e[9]=r):r=e[9];let i;e[10]!==b?(i=b.values(),e[10]=b,e[11]=i):i=e[11];let l;e[12]!==i?(l=[...i],e[12]=i,e[13]=l):l=e[13];let o;e[14]!==r||e[15]!==l?(o={availableYears:r,availableNrens:l},e[14]=r,e[15]=l,e[16]=o):o=e[16];let f;e[17]!==t||e[18]!==c||e[19]!==o?(f=N.jsx(P,{filterOptions:o,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=o,e[20]=f):f=e[20];const v=f;let d;e[21]===Symbol.for("react.memo_cache_sentinel")?(d=["TCS","Digicert","Sectigo (outside of TCS)","Let's Encrypt","Entrust Datacard"],e[21]=d):d=e[21];const g=d;let m;e[22]===Symbol.for("react.memo_cache_sentinel")?(m=new Map([["Sectigo (outside of TCS)","Sectigo"]]),e[22]=m):m=e[22];const h=m;let a;e[23]!==C?(a=N.jsx(T,{children:N.jsx(F,{columns:g,dataLookup:C,circle:!0,columnLookup:h})}),e[23]=C,e[24]=a):a=e[24];let p;return e[25]!==v||e[26]!==s||e[27]!==a?(p=N.jsx(D,{title:"Certification Services used by NRENs ",description:"The table below shows the kinds of Network Certificate Providers used by NRENs.",category:w.Network,filter:v,data:s,filename:"certificate_provider_nrens_per_year",children:a}),e[25]=v,e[26]=s,e[27]=a,e[28]=p):p=e[28],p}export{B as default};
diff --git a/compendium_v2/static/ChargingStructure-UaYN2mUD.js b/compendium_v2/static/ChargingStructure-UaYN2mUD.js
new file mode 100644
index 0000000000000000000000000000000000000000..d97aa284912837216b1147f7a38ee6e1213491ea
--- /dev/null
+++ b/compendium_v2/static/ChargingStructure-UaYN2mUD.js
@@ -0,0 +1,3 @@
+import{a as S,r as Y,F as j,j as p}from"./main-BIBsTO5W.js";import{u as v,g as F,D as R,F as D,f as k}from"./useData-BDYwoQEh.js";import{S as w}from"./report.js";import{P}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function A(){const e=S.c(29),C=T,{filterSelection:t,setFilterSelection:c}=Y.useContext(j),{data:g,years:b,nrens:N}=v("/api/charging",c,C);let a,f;if(e[0]!==g||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let h;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(h=x=>t.selectedYears.includes(x.year)&&t.selectedNrens.includes(x.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=h):h=e[7],a=g.filter(h),f=F(a,"fee_type"),e[0]=g,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=a,e[4]=f}else a=e[3],f=e[4];const _=f;let r;e[8]!==b?(r=[...b],e[8]=b,e[9]=r):r=e[9];let i;e[10]!==N?(i=N.values(),e[10]=N,e[11]=i):i=e[11];let l;e[12]!==i?(l=[...i],e[12]=i,e[13]=l):l=e[13];let n;e[14]!==r||e[15]!==l?(n={availableYears:r,availableNrens:l},e[14]=r,e[15]=l,e[16]=n):n=e[16];let u;e[17]!==t||e[18]!==c||e[19]!==n?(u=p.jsx(D,{filterOptions:n,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=n,e[20]=u):u=e[20];const y=u;let s,d;e[21]===Symbol.for("react.memo_cache_sentinel")?(s=["Flat fee based on bandwidth","Usage based fee","Combination flat fee & usage basedfee","No Direct Charge","Other"],d=new Map([[s[0],"flat_fee"],[s[1],"usage_based_fee"],[s[2],"combination"],[s[3],"no_charge"],[s[4],"other"]]),e[21]=s,e[22]=d):(s=e[21],d=e[22]);const E=d;let o;e[23]!==_?(o=p.jsx(k,{children:p.jsx(P,{columns:s,dataLookup:_,columnLookup:E})}),e[23]=_,e[24]=o):o=e[24];let m;return e[25]!==y||e[26]!==a||e[27]!==o?(m=p.jsx(R,{title:"Charging Mechanism of NRENs",description:`The charging structure is the way in which NRENs charge their customers for the services they provide.
+         The charging structure can be based on a flat fee, usage based fee, a combination of both, or no direct charge. 
+         By selecting multiple years and NRENs, the table can be used to compare the charging structure of NRENs.`,category:w.Organisation,filter:y,data:a,filename:"charging_mechanism_of_nrens_per_year",children:o}),e[25]=y,e[26]=a,e[27]=o,e[28]=m):m=e[28],m}function T(e){return e.fee_type!=null}export{A as default};
diff --git a/compendium_v2/static/ColorPill-CqT_mR3a.js b/compendium_v2/static/ColorPill-CqT_mR3a.js
new file mode 100644
index 0000000000000000000000000000000000000000..71a660aff4adaad66df0a2e9bf28168cf6b7c9ad
--- /dev/null
+++ b/compendium_v2/static/ColorPill-CqT_mR3a.js
@@ -0,0 +1 @@
+import{a as m,j as r}from"./main-BIBsTO5W.js";function f(p){const t=m.c(10),{year:e,active:s,tooltip:i,rounded:c}=p,n=(c===void 0?!1:c)?"30px":"75px";let a;t[0]!==n?(a={width:n,height:"30px",margin:"2px"},t[0]=n,t[1]=a):a=t[1];const l=a;let o;t[2]!==s||t[3]!==l||t[4]!==i||t[5]!==e?(o=s&&i?r.jsx("div",{className:`rounded-pill bg-color-of-the-year-${e%9} bottom-tooltip pill-shadow`,style:l,"data-description":`${e}: ${i}`}):s?r.jsx("div",{className:`rounded-pill bg-color-of-the-year-${e%9} bottom-tooltip-small`,style:l,"data-description":e}):r.jsx("div",{className:"rounded-pill bg-color-of-the-year-blank",style:l}),t[2]=s,t[3]=l,t[4]=i,t[5]=e,t[6]=o):o=t[6];let d;return t[7]!==o||t[8]!==e?(d=r.jsx("div",{className:"d-inline-block",children:o},e),t[7]=o,t[8]=e,t[9]=d):d=t[9],d}export{f as C};
diff --git a/compendium_v2/static/ConnectedInstitutionsURLs-BSMQXsFI.js b/compendium_v2/static/ConnectedInstitutionsURLs-BSMQXsFI.js
new file mode 100644
index 0000000000000000000000000000000000000000..e679f0910e05e03a736f12db590719e96a7b33ec
--- /dev/null
+++ b/compendium_v2/static/ConnectedInstitutionsURLs-BSMQXsFI.js
@@ -0,0 +1 @@
+import{a as h,r as y,F as C,j as x}from"./main-BIBsTO5W.js";import{u as L,q as R,k,i as S,D as v,F as w,f as E,s as F}from"./useData-BDYwoQEh.js";import{S as O}from"./report.js";import{N as T}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function $(){const t=h.c(24),{filterSelection:e,setFilterSelection:s}=y.useContext(C),{data:n,nrens:a}=L("/api/institution-urls",s);let i,o,u;if(t[0]!==n||t[1]!==e||t[2]!==a||t[3]!==s){const g=n?R(n):[];let d;t[7]!==e.selectedNrens?(d=j=>e.selectedNrens.includes(j.nren),t[7]=e.selectedNrens,t[8]=d):d=t[8];const N=g.filter(d),D=k(N);i=S(D,Y);let m;t[9]===Symbol.for("react.memo_cache_sentinel")?(m=[],t[9]=m):m=t[9];let l;t[10]!==a?(l=a.values(),t[10]=a,t[11]=l):l=t[11];let c;t[12]!==l?(c={availableYears:m,availableNrens:[...l]},t[12]=l,t[13]=c):c=t[13];let p;t[14]!==e||t[15]!==s||t[16]!==c?(p=x.jsx(w,{filterOptions:c,filterSelection:e,setFilterSelection:s}),t[14]=e,t[15]=s,t[16]=c,t[17]=p):p=t[17],o=p,u=N.map(U),t[0]=n,t[1]=e,t[2]=a,t[3]=s,t[4]=i,t[5]=o,t[6]=u}else i=t[4],o=t[5],u=t[6];const b=u;let r;t[18]!==i?(r=x.jsx(E,{children:x.jsx(T,{data:i,columnTitle:"Institution URLs",keysAreURLs:!0,noDots:!0})}),t[18]=i,t[19]=r):r=t[19];let f;return t[20]!==b||t[21]!==o||t[22]!==r?(f=x.jsx(v,{title:"Webpages Listing Institutions and Organisations Connected to NREN Networks",description:"Many NRENs have a page on their website listing user institutions. Links to the pages are shown in the table below.",category:O.ConnectedUsers,filter:o,data:b,filename:"institution_urls",children:r}),t[20]=b,t[21]=o,t[22]=r,t[23]=f):f=t[23],f}function U(t){return{...t,urls:(t.urls??[]).join(", ")}}function Y(t,e){const s=F(e);if(s!=null)for(const[n,a]of Object.entries(s))t[n]=a}export{$ as default};
diff --git a/compendium_v2/static/ConnectedUser-BEMGNK1Q.js b/compendium_v2/static/ConnectedUser-BEMGNK1Q.js
new file mode 100644
index 0000000000000000000000000000000000000000..641919a80ce192d40a4bad28c22520218c0802cc
--- /dev/null
+++ b/compendium_v2/static/ConnectedUser-BEMGNK1Q.js
@@ -0,0 +1 @@
+import{j as o,L as O,a as U,r as Y,F}from"./main-BIBsTO5W.js";import{C as t,S as D,a as I,b as P,U as L}from"./report.js";import{u as G,r as m,D as A,F as $,f as q}from"./useData-BDYwoQEh.js";import{S as B}from"./ScrollableMatrix-Cdgj4J9X.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";const S={[t.ConnectedProportion]:"Proportion of Different Categories of Institutions Served by NRENs",[t.ConnectivityLevel]:"Level of IP Connectivity by Institution Type",[t.ConnectionCarrier]:"Methods of Carrying IP Traffic to Users",[t.ConnectivityLoad]:"Connectivity Load",[t.ConnectivityGrowth]:"Connectivity Growth",[t.CommercialChargingLevel]:"Commercial Charging Level",[t.CommercialConnectivity]:"Commercial Connectivity"},z={[t.ConnectedProportion]:o.jsxs("span",{children:["European NRENs all have different connectivity remits, as is shown in the table below. The categories of institutions make use of the ISCED 2011 classification system, the UNESCO scheme for International Standard Classification of Education.",o.jsx("br",{}),"The table shows whether a particular category of institution falls within the connectivity remit of the NREN, the actual number of such institutions connected, the % market share this represents, and the actual number of end users served in the category."]}),[t.ConnectivityLevel]:o.jsxs("span",{children:["The table below shows the average level of connectivity for each category of institution. The connectivity remit of different NRENs is shown on a different page, and NRENs are asked, at a minimum, to provide information about the typical and highest capacities (in Mbit/s) at which Universities and Research Institutes are connected.",o.jsx("br",{}),"NRENs are also asked to show proportionally how many institutions are connected at the highest capacity they offer."]}),[t.ConnectionCarrier]:o.jsxs("span",{children:["The table below shows the different mechanisms employed by NRENs to carry traffic to the different types of users they serve. Not all NRENs connect all of the types of institution listed below - details of connectivity remits can be found here: ",o.jsx(O,{to:"/connected-proportion",className:"",children:o.jsx("span",{children:S[t.ConnectedProportion]})})]}),[t.ConnectivityLoad]:o.jsx("span",{children:"The table below shows the traffic load in Mbit/s to and from institutions served by NRENs; both the average load, and peak load, when given. The types of institutions are broken down using the ISCED 2011 classification system (the UNESCO scheme for International Standard Classification of Education), plus other types."}),[t.ConnectivityGrowth]:o.jsx("span",{children:"The table below illustrates the anticipated traffic growth within NREN networks over the next three years."}),[t.CommercialChargingLevel]:o.jsx("span",{children:"The table below outlines the typical charging levels for various types of commercial connections."}),[t.CommercialConnectivity]:o.jsx("span",{children:"The table below outlines the types of commercial organizations NRENs connect."})},R={[t.ConnectedProportion]:{"Remit cover connectivity":"coverage","Number of institutions connected":"number_connected","Percentage market share of institutions connected":"market_share","Number of users served":"users_served"},[t.ConnectivityLevel]:{"Typical link speed (Mbit/s):":"typical_speed","Highest speed link (Mbit/s):":"highest_speed","Proportionally how many institutions in this category are connected at the highest capacity? (%):":"highest_speed_proportion"},[t.ConnectionCarrier]:{"Commercial Provider Backbone":"commercial_provider_backbone","NREN Local Loops":"nren_local_loops","Regional NREN Backbone":"regional_nren_backbone",MAN:"man",Other:"other"},[t.ConnectivityLoad]:{"Average Load From Institutions (Mbit/s)":"average_load_from_institutions","Average Load To Institutions (Mbit/s)":"average_load_to_institutions","Peak Load To Institution (Mbit/s)":"peak_load_to_institutions","Peak Load From Institution (Mbit/s)":"peak_load_from_institutions"},[t.ConnectivityGrowth]:{"Percentage growth":"growth"},[t.CommercialChargingLevel]:{"No charges applied if requested by R&E users":"no_charges_if_r_e_requested","Same charging model as for R&E users":"same_as_r_e_charges","Charges typically higher than for R&E users":"higher_than_r_e_charges","Charges typically lower than for R&E users":"lower_than_r_e_charges"},[t.CommercialConnectivity]:{"No - but we offer a direct or IX peering":"no_but_direct_peering","No - not eligible for policy reasons":"no_policy","No - financial restrictions (NREN is unable to charge/recover costs)":"no_financial","No - other reason / unsure":"no_other","Yes - National NREN access only":"yes_national_nren","Yes - Including transit to other networks":"yes_incl_other","Yes - only if sponsored by a connected institution":"yes_if_sponsored"}};function ee(T){const e=U.c(36),{page:i}=T,M=`/api/connected-${i.toString()}`,{filterSelection:n,setFilterSelection:u}=Y.useContext(F),{data:v,years:b,nrens:_}=G(M,u);let r,a,c,s;if(e[0]!==v||e[1]!==n.selectedNrens||e[2]!==n.selectedYears||e[3]!==i){let C;e[8]!==n.selectedNrens||e[9]!==n.selectedYears?(C=j=>n.selectedYears.includes(j.year)&&n.selectedNrens.includes(j.nren),e[8]=n.selectedNrens,e[9]=n.selectedYears,e[10]=C):C=e[10],s=v.filter(C),c=!1,i==t.CommercialConnectivity?(r=I,c=!0,a=m(s,Object.keys(I),void 0)):i==t.CommercialChargingLevel?(r=P,c=!0,a=m(s,Object.keys(P),void 0)):i==t.ConnectionCarrier?(r=L,c=!0,a=m(s,["carry_mechanism"],"user_category")):i==t.ConnectedProportion?(r=L,a=m(s,Object.values(R[i]),"user_category",!1)):(r=L,a=m(s,Object.values(R[i]),"user_category",!1)),e[0]=v,e[1]=n.selectedNrens,e[2]=n.selectedYears,e[3]=i,e[4]=r,e[5]=a,e[6]=c,e[7]=s}else r=e[4],a=e[5],c=e[6],s=e[7];let l;e[11]!==b?(l=[...b],e[11]=b,e[12]=l):l=e[12];let h;e[13]!==_?(h=_.values(),e[13]=_,e[14]=h):h=e[14];let d;e[15]!==h?(d=[...h],e[15]=h,e[16]=d):d=e[16];let f;e[17]!==l||e[18]!==d?(f={availableYears:l,availableNrens:d},e[17]=l,e[18]=d,e[19]=f):f=e[19];let y;e[20]!==n||e[21]!==u||e[22]!==f?(y=o.jsx($,{filterOptions:f,filterSelection:n,setFilterSelection:u}),e[20]=n,e[21]=u,e[22]=f,e[23]=y):y=e[23];const N=y,w=R[i],E=`nren_connected_${i.toString()}`,k=S[i],x=z[i];let p;e[24]!==r||e[25]!==a||e[26]!==c||e[27]!==w?(p=o.jsx(q,{children:o.jsx(B,{dataLookup:a,rowInfo:w,isTickIcon:c,categoryLookup:r})}),e[24]=r,e[25]=a,e[26]=c,e[27]=w,e[28]=p):p=e[28];let g;return e[29]!==E||e[30]!==N||e[31]!==s||e[32]!==k||e[33]!==x||e[34]!==p?(g=o.jsx(A,{title:k,description:x,category:D.ConnectedUsers,filter:N,data:s,filename:E,children:p}),e[29]=E,e[30]=N,e[31]=s,e[32]=k,e[33]=x,e[34]=p,e[35]=g):g=e[35],g}export{ee as default};
diff --git a/compendium_v2/static/CorporateStrategy-Doz2JleE.js b/compendium_v2/static/CorporateStrategy-Doz2JleE.js
new file mode 100644
index 0000000000000000000000000000000000000000..4680cf3ccbdcdc7f4312a0234c4d397a14d79176
--- /dev/null
+++ b/compendium_v2/static/CorporateStrategy-Doz2JleE.js
@@ -0,0 +1,3 @@
+import{a as C,r as k,F as j,j as y}from"./main-BIBsTO5W.js";import{u as E,q as R,k as F,i as T,D as Y,F as w,f as L}from"./useData-BDYwoQEh.js";import{S as P}from"./report.js";import{N as B}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function I(){const e=C.c(23);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=x=>!!x.strategic_plan,e[0]=l):l=e[0];const _=l,{filterSelection:t,setFilterSelection:i}=k.useContext(j),{data:n,nrens:h}=E("/api/policy",i,_);let a,c;if(e[1]!==n||e[2]!==t.selectedNrens){const x=n?R(n):[];let d;e[5]!==t.selectedNrens?(d=D=>t.selectedNrens.includes(D.nren),e[5]=t.selectedNrens,e[6]=d):d=e[6],a=x.filter(d);const b=F(a);let u;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=(D,v)=>{const S=v.strategic_plan;D[S]=S},e[7]=u):u=e[7],c=T(b,u),e[1]=n,e[2]=t.selectedNrens,e[3]=a,e[4]=c}else a=e[3],c=e[4];const N=c;let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[8]=p):p=e[8];let s;e[9]!==h?(s=h.values(),e[9]=h,e[10]=s):s=e[10];let r;e[11]!==s?(r={availableYears:p,availableNrens:[...s]},e[11]=s,e[12]=r):r=e[12];let m;e[13]!==t||e[14]!==i||e[15]!==r?(m=y.jsx(w,{filterOptions:r,filterSelection:t,setFilterSelection:i}),e[13]=t,e[14]=i,e[15]=r,e[16]=m):m=e[16];const g=m;let o;e[17]!==N?(o=y.jsx(L,{children:y.jsx(B,{data:N,columnTitle:"Corporate Strategy",noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[17]=N,e[18]=o):o=e[18];let f;return e[19]!==g||e[20]!==a||e[21]!==o?(f=y.jsx(Y,{title:"NREN Corporate Strategies",description:`The table below contains links to the NRENs most recent corporate strategic plans. 
+            NRENs are asked if updates have been made to their corporate strategy over the previous year. 
+            To avoid showing outdated links, only the most recent responses are shown.`,category:P.Policy,filter:g,data:a,filename:"nren_corporate_strategy",children:o}),e[19]=g,e[20]=a,e[21]=o,e[22]=f):f=e[22],f}export{I as default};
diff --git a/compendium_v2/static/CrisisExercises-DIq1DMCc.js b/compendium_v2/static/CrisisExercises-DIq1DMCc.js
new file mode 100644
index 0000000000000000000000000000000000000000..af8e057fd9050109eb9d707e945b092080ccd8f2
--- /dev/null
+++ b/compendium_v2/static/CrisisExercises-DIq1DMCc.js
@@ -0,0 +1,2 @@
+import{a as F,r as R,F as S,j}from"./main-BIBsTO5W.js";import{u as D,g as L,F as M,D as O,f as A}from"./useData-BDYwoQEh.js";import{S as G}from"./report.js";import{P as V}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function X(){const e=F.c(51),{filterSelection:t,setFilterSelection:i}=R.useContext(S),{data:C,years:W,nrens:T}=D("/api/crisis-exercises",i);let s,w;if(e[0]!==C||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let r;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(r=P=>t.selectedYears.includes(P.year)&&t.selectedNrens.includes(P.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=r):r=e[7],s=C.filter(r),w=L(s,"exercise_descriptions"),e[0]=C,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=w}else s=e[3],w=e[4];const Y=w;let a;e[8]!==W?(a=[...W],e[8]=W,e[9]=a):a=e[9];let l;e[10]!==T?(l=T.values(),e[10]=T,e[11]=l):l=e[11];let n;e[12]!==l?(n=[...l],e[12]=l,e[13]=n):n=e[13];let o;e[14]!==a||e[15]!==n?(o={availableYears:a,availableNrens:n},e[14]=a,e[15]=n,e[16]=o):o=e[16];let v;e[17]!==t||e[18]!==i||e[19]!==o?(v=j.jsx(M,{filterOptions:o,filterSelection:t,setFilterSelection:i,coloredYears:!0}),e[17]=t,e[18]=i,e[19]=o,e[20]=v):v=e[20];const k=v;let c,p,u,d,m,x,f,h,N,_,y;if(e[21]!==k||e[22]!==s){const r={geant_workshops:"We participate in GEANT Crisis workshops such as CLAW",national_excercises:"We participated in National crisis exercises ",tabletop_exercises:"We run our own tabletop exercises",simulation_excercises:"We run our own simulation exercises",other_excercises:"We have done/participated in other exercises or trainings",real_crisis:"We had a real crisis",internal_security_programme:"We run an internal security awareness programme",none:"No, we have not done any crisis exercises or trainings"};d=new Map(Object.entries(r).map($)),u=O,N="Crisis Exercises - NREN Operation and Participation",_=`Many NRENs run or participate in crisis exercises to test procedures and train employees. 
+            The table below shows whether NRENs have run or participated in an exercise in the previous year. `,y=G.Policy,m=k,x=s,f="crisis_exercise_nrens_per_year",p=A,c=V,h=Object.values(r),e[21]=k,e[22]=s,e[23]=c,e[24]=p,e[25]=u,e[26]=d,e[27]=m,e[28]=x,e[29]=f,e[30]=h,e[31]=N,e[32]=_,e[33]=y}else c=e[23],p=e[24],u=e[25],d=e[26],m=e[27],x=e[28],f=e[29],h=e[30],N=e[31],_=e[32],y=e[33];let b;e[34]!==c||e[35]!==d||e[36]!==Y||e[37]!==h?(b=j.jsx(c,{columns:h,dataLookup:Y,circle:!0,columnLookup:d}),e[34]=c,e[35]=d,e[36]=Y,e[37]=h,e[38]=b):b=e[38];let g;e[39]!==p||e[40]!==b?(g=j.jsx(p,{children:b}),e[39]=p,e[40]=b,e[41]=g):g=e[41];let E;return e[42]!==u||e[43]!==m||e[44]!==x||e[45]!==f||e[46]!==g||e[47]!==N||e[48]!==_||e[49]!==y?(E=j.jsx(u,{title:N,description:_,category:y,filter:m,data:x,filename:f,children:g}),e[42]=u,e[43]=m,e[44]=x,e[45]=f,e[46]=g,e[47]=N,e[48]=_,e[49]=y,e[50]=E):E=e[50],E}function $(e){const[t,i]=e;return[i,t]}export{X as default};
diff --git a/compendium_v2/static/CrisisManagement-B-4V900E.js b/compendium_v2/static/CrisisManagement-B-4V900E.js
new file mode 100644
index 0000000000000000000000000000000000000000..45f6277118263170b07133101f8f91680dc16563
--- /dev/null
+++ b/compendium_v2/static/CrisisManagement-B-4V900E.js
@@ -0,0 +1 @@
+import{a as j,r as F,F as P,j as x}from"./main-BIBsTO5W.js";import{u as v,g as k,D as w,F as D,f as E}from"./useData-BDYwoQEh.js";import{S as M}from"./report.js";import{P as T}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function G(){const e=j.c(30);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=c=>c.crisis_management_procedure!==null,e[0]=m):m=e[0];const C=m,{filterSelection:t,setFilterSelection:d}=F.useContext(P),{data:N,years:_,nrens:g}=v("/api/standards",d,C);let s,f;if(e[1]!==N||e[2]!==t.selectedNrens||e[3]!==t.selectedYears){let c;e[6]!==t.selectedNrens||e[7]!==t.selectedYears?(c=Y=>t.selectedYears.includes(Y.year)&&t.selectedNrens.includes(Y.nren)&&C(Y),e[6]=t.selectedNrens,e[7]=t.selectedYears,e[8]=c):c=e[8],s=N.filter(c),f=k(s,"crisis_management_procedure"),e[1]=N,e[2]=t.selectedNrens,e[3]=t.selectedYears,e[4]=s,e[5]=f}else s=e[4],f=e[5];const b=f;let r,p;e[9]===Symbol.for("react.memo_cache_sentinel")?(r=["Yes","No"],p=new Map([[r[0],"True"],[r[1],"False"]]),e[9]=r,e[10]=p):(r=e[9],p=e[10]);const S=p;let l;e[11]!==_?(l=[..._],e[11]=_,e[12]=l):l=e[12];let a;e[13]!==g?(a=g.values(),e[13]=g,e[14]=a):a=e[14];let i;e[15]!==a?(i=[...a],e[15]=a,e[16]=i):i=e[16];let o;e[17]!==l||e[18]!==i?(o={availableYears:l,availableNrens:i},e[17]=l,e[18]=i,e[19]=o):o=e[19];let u;e[20]!==t||e[21]!==d||e[22]!==o?(u=x.jsx(D,{filterOptions:o,filterSelection:t,setFilterSelection:d,coloredYears:!0}),e[20]=t,e[21]=d,e[22]=o,e[23]=u):u=e[23];const y=u;let n;e[24]!==b?(n=x.jsx(E,{children:x.jsx(T,{columns:r,columnLookup:S,dataLookup:b})}),e[24]=b,e[25]=n):n=e[25];let h;return e[26]!==y||e[27]!==s||e[28]!==n?(h=x.jsx(w,{title:"Crisis Management Procedures",description:"The table below shows whether NRENs have a formal crisis management procedure.",category:M.Policy,filter:y,data:s,filename:"crisis_management_nrens_per_year",children:n}),e[26]=y,e[27]=s,e[28]=n,e[29]=h):h=e[29],h}export{G as default};
diff --git a/compendium_v2/static/DarkFibreInstalled-BG9k0mWY.js b/compendium_v2/static/DarkFibreInstalled-BG9k0mWY.js
new file mode 100644
index 0000000000000000000000000000000000000000..03d08198332c61f83aa2c8663b574ad48617f84f
--- /dev/null
+++ b/compendium_v2/static/DarkFibreInstalled-BG9k0mWY.js
@@ -0,0 +1 @@
+import{a as N,r as D,F,j as n}from"./main-BIBsTO5W.js";import{L as j}from"./index-BBrAyDR9.js";import{C as L,a as w,L as E,P as v,b as P,p as I,c as K,d as R,u as O,e as T,D as U,F as Y,f as $}from"./useData-BDYwoQEh.js";import{S as q}from"./report.js";import{g as z}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";L.register(w,E,v,P,I,K,R);function W(){const e=N.c(24);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=r=>r.fibre_length_in_country!=null,e[0]=o):o=e[0];const k=o,{filterSelection:t,setFilterSelection:c}=D.useContext(F),{data:u,nrens:_}=O("/api/dark-fibre-installed",c,k);let i,f;if(e[1]!==u||e[2]!==t.selectedNrens){let r;e[5]!==t.selectedNrens?(r=y=>t.selectedNrens.includes(y.nren)&&k(y),e[5]=t.selectedNrens,e[6]=r):r=e[6],i=u.filter(r),f=T(i,"fibre_length_in_country"),e[1]=u,e[2]=t.selectedNrens,e[3]=i,e[4]=f}else i=e[3],f=e[4];const g=f;let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=[],e[7]=m):m=e[7];let s;e[8]!==_?(s=_.values(),e[8]=_,e[9]=s):s=e[9];let l;e[10]!==s?(l={availableYears:m,availableNrens:[...s]},e[10]=s,e[11]=l):l=e[11];let d;e[12]!==t||e[13]!==c||e[14]!==l?(d=n.jsx(Y,{filterOptions:l,filterSelection:t,setFilterSelection:c}),e[12]=t,e[13]=c,e[14]=l,e[15]=d):d=e[15];const x=d;let p;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=z({title:"Kilometres of Installed Dark Fibre",tooltipUnit:"km",unit:"km"}),e[16]=p):p=e[16];const S=p;let h;e[17]===Symbol.for("react.memo_cache_sentinel")?(h=n.jsx("span",{children:"This graph shows the number of Kilometres of dark fibre installed by NRENs within their own countries, which they own themselves. The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair."}),e[17]=h):h=e[17];const C=h;let a;e[18]!==g?(a=n.jsx($,{children:n.jsx(j,{data:g,options:S})}),e[18]=g,e[19]=a):a=e[19];let b;return e[20]!==x||e[21]!==i||e[22]!==a?(b=n.jsx(U,{title:"Kilometres of Installed Dark Fibre",description:C,category:q.Network,filter:x,data:i,filename:"dark_fibre_lease_installed",children:a}),e[20]=x,e[21]=i,e[22]=a,e[23]=b):b=e[23],b}export{W as default};
diff --git a/compendium_v2/static/DarkFibreLease-DpIHorYZ.js b/compendium_v2/static/DarkFibreLease-DpIHorYZ.js
new file mode 100644
index 0000000000000000000000000000000000000000..46ea2a901d1c7530696837874bd81e7ff094993e
--- /dev/null
+++ b/compendium_v2/static/DarkFibreLease-DpIHorYZ.js
@@ -0,0 +1 @@
+import{a as E,r as w,F as R,j as c}from"./main-BIBsTO5W.js";import{L as I}from"./index-BBrAyDR9.js";import{C as P,a as K,L as U,P as $,b as O,p as T,c as A,d as Y,u as q,e as z,D as B,F as G,f as H}from"./useData-BDYwoQEh.js";import{S as J}from"./report.js";import{g as M}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";P.register(K,U,$,O,T,A,Y);function se(F){const e=E.c(32),{national:f}=F,s=f?"fibre_length_in_country":"fibre_length_outside_country";let d;e[0]!==s?(d=o=>o[s]!=null,e[0]=s,e[1]=d):d=e[1];const a=d,{filterSelection:t,setFilterSelection:m}=w.useContext(R),{data:N,nrens:x}=q("/api/dark-fibre-lease",m,a);let i,p;if(e[2]!==N||e[3]!==s||e[4]!==t.selectedNrens||e[5]!==a){let o;e[8]!==t.selectedNrens||e[9]!==a?(o=D=>t.selectedNrens.includes(D.nren)&&a(D),e[8]=t.selectedNrens,e[9]=a,e[10]=o):o=e[10],i=N.filter(o),p=z(i,s),e[2]=N,e[3]=s,e[4]=t.selectedNrens,e[5]=a,e[6]=i,e[7]=p}else i=e[6],p=e[7];const k=p;let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h=[],e[11]=h):h=e[11];let l;e[12]!==x?(l=x.values(),e[12]=x,e[13]=l):l=e[13];let n;e[14]!==l?(n={availableYears:h,availableNrens:[...l]},e[14]=l,e[15]=n):n=e[15];let b;e[16]!==t||e[17]!==m||e[18]!==n?(b=c.jsx(G,{filterOptions:n,filterSelection:t,setFilterSelection:m}),e[16]=t,e[17]=m,e[18]=n,e[19]=b):b=e[19];const y=b;let u;e[20]===Symbol.for("react.memo_cache_sentinel")?(u=M({title:"Kilometres of Leased Dark Fibre",tooltipUnit:"km",unit:"km"}),e[20]=u):u=e[20];const j=u,C=f?"within":"outside";let g;e[21]!==C?(g=c.jsxs("span",{children:["This graph shows the number of Kilometres of dark fibre leased by NRENs ",C," their own countries. Also included is fibre leased via an IRU (Indefeasible Right of Use), a type of long-term lease of a portion of the capacity of a cable. It does not however, include fibre NRENs have installed, and own, themselves. The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair."]}),e[21]=C,e[22]=g):g=e[22];const L=g,S=`Kilometres of Leased Dark Fibre (${f?"National":"International"})`,v=`dark_fibre_lease_${f?"national":"international"}`;let r;e[23]!==k?(r=c.jsx(H,{children:c.jsx(I,{data:k,options:j})}),e[23]=k,e[24]=r):r=e[24];let _;return e[25]!==L||e[26]!==y||e[27]!==i||e[28]!==S||e[29]!==v||e[30]!==r?(_=c.jsx(B,{title:S,description:L,category:J.Network,filter:y,data:i,filename:v,children:r}),e[25]=L,e[26]=y,e[27]=i,e[28]=S,e[29]=v,e[30]=r,e[31]=_):_=e[31],_}export{se as default};
diff --git a/compendium_v2/static/ECProjects-C-HN1lwo.js b/compendium_v2/static/ECProjects-C-HN1lwo.js
new file mode 100644
index 0000000000000000000000000000000000000000..a00c196820f7817aee3eac7454692c7a00a4871f
--- /dev/null
+++ b/compendium_v2/static/ECProjects-C-HN1lwo.js
@@ -0,0 +1 @@
+import{a as v,r as Y,F as y,j as u}from"./main-BIBsTO5W.js";import{u as C,h as D,i as T,D as _,F as g,f as F}from"./useData-BDYwoQEh.js";import{S as P}from"./report.js";import{N as R}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function $(){const e=v.c(27),{filterSelection:t,setFilterSelection:s}=Y.useContext(y),{data:a,years:j,nrens:N}=C("/api/ec-project",s);let r,d;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==a){let f;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(f=x=>t.selectedYears.includes(x.year)&&t.selectedNrens.includes(x.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=f):f=e[7],r=a.filter(f);const E=D(r);d=T(E,S),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=a,e[3]=r,e[4]=d}else r=e[3],d=e[4];const b=d;let o;e[8]!==j?(o=[...j],e[8]=j,e[9]=o):o=e[9];let i;e[10]!==N?(i=N.values(),e[10]=N,e[11]=i):i=e[11];let n;e[12]!==i?(n=[...i],e[12]=i,e[13]=n):n=e[13];let l;e[14]!==o||e[15]!==n?(l={availableYears:o,availableNrens:n},e[14]=o,e[15]=n,e[16]=l):l=e[16];let p;e[17]!==t||e[18]!==s||e[19]!==l?(p=u.jsx(g,{filterOptions:l,filterSelection:t,setFilterSelection:s}),e[17]=t,e[18]=s,e[19]=l,e[20]=p):p=e[20];const h=p;let c;e[21]!==b?(c=u.jsx(F,{children:u.jsx(R,{data:b,columnTitle:"EC Project Membership",dottedBorder:!0})}),e[21]=b,e[22]=c):c=e[22];let m;return e[23]!==h||e[24]!==r||e[25]!==c?(m=u.jsx(_,{title:"NREN Involvement in European Commission Projects",description:"Many NRENs are involved in a number of different European Commission project, besides GÉANT. The list of projects in the table below is not necessarily exhaustive, but does contain projects the NRENs consider important or worthy of mention.",category:P.Organisation,filter:h,data:r,filename:"nren_involvement_in_european_commission_projects",children:c}),e[23]=h,e[24]=r,e[25]=c,e[26]=m):m=e[26],m}function S(e,t){const s=t.map(O).sort();s.length&&s.forEach(a=>{e[a]=a})}function O(e){return e.project}export{$ as default};
diff --git a/compendium_v2/static/EOSCListings-DkHlXFjZ.js b/compendium_v2/static/EOSCListings-DkHlXFjZ.js
new file mode 100644
index 0000000000000000000000000000000000000000..5491b6c79b14ed85c6bb1cf86535ed6cb80ac8d5
--- /dev/null
+++ b/compendium_v2/static/EOSCListings-DkHlXFjZ.js
@@ -0,0 +1 @@
+import{a as y,r as C,F as Y,j as f}from"./main-BIBsTO5W.js";import{u as j,h as D,i as R,D as F,F as L,f as _}from"./useData-BDYwoQEh.js";import{S as O}from"./report.js";import{N as P}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function G(){const e=y.c(28),{filterSelection:t,setFilterSelection:a}=C.useContext(Y),{data:l,years:N,nrens:x}=j("/api/eosc-listings",a);let s,d;if(e[0]!==l||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=E=>t.selectedYears.includes(E.year)&&t.selectedNrens.includes(E.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=l.filter(u);const g=D(s);d=R(g,k),e[0]=l,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=d}else s=e[3],d=e[4];const S=d;let r;e[8]!==N?(r=[...N],e[8]=N,e[9]=r):r=e[9];let i;e[10]!==x?(i=x.values(),e[10]=x,e[11]=i):i=e[11];let o;e[12]!==i?(o=[...i],e[12]=i,e[13]=o):o=e[13];let n;e[14]!==r||e[15]!==o?(n={availableYears:r,availableNrens:o},e[14]=r,e[15]=o,e[16]=n):n=e[16];let m;e[17]!==t||e[18]!==a||e[19]!==n?(m=f.jsx(L,{filterOptions:n,filterSelection:t,setFilterSelection:a}),e[17]=t,e[18]=a,e[19]=n,e[20]=m):m=e[20];const v=m;let p;e[21]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsx("span",{children:"Some NRENs choose to list services on the EOSC portal, these can be seen in the table below. Click on the name of the NREN to expand the detail and see the names of the services they list."}),e[21]=p):p=e[21];const b=p;let c;e[22]!==S?(c=f.jsx(_,{children:f.jsx(P,{data:S,columnTitle:"Service Name",dottedBorder:!0,keysAreURLs:!0,noDots:!0})}),e[22]=S,e[23]=c):c=e[23];let h;return e[24]!==v||e[25]!==s||e[26]!==c?(h=f.jsx(F,{title:"NREN Services Listed on the EOSC Portal",description:b,category:O.Policy,filter:v,data:s,filename:"nren_eosc_listings",children:c}),e[24]=v,e[25]=s,e[26]=c,e[27]=h):h=e[27],h}function k(e,t){for(const a of t)for(const l of a.service_names)e[l]=l}export{G as default};
diff --git a/compendium_v2/static/ExternalConnections-CYJLiQ46.js b/compendium_v2/static/ExternalConnections-CYJLiQ46.js
new file mode 100644
index 0000000000000000000000000000000000000000..f103c81231a263b78fa41b7099645d5d38e669b9
--- /dev/null
+++ b/compendium_v2/static/ExternalConnections-CYJLiQ46.js
@@ -0,0 +1 @@
+import{a as _,j as r,r as C,F as E}from"./main-BIBsTO5W.js";import{u as S,h as w,D,F,f as R}from"./useData-BDYwoQEh.js";import{c as T,S as Y}from"./report.js";import{T as I}from"./Table-HH9WOnMU.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";function L(e){const t=_.c(8),{dataLookup:l,columnInfo:a}=e;if(!l){let n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(n=r.jsx("div",{className:"matrix-border-round"}),t[0]=n):n=t[0],n}let d;if(t[1]!==a||t[2]!==l){let n;t[4]!==a?(n=j=>{const[i,h]=j;return r.jsx(T,{title:i,theme:"-table",startCollapsed:!0,children:r.jsx("div",{className:"scrollable-horizontal",children:Array.from(h.entries()).map(m=>{const[o,b]=m,x={"--before-color":`var(--color-of-the-year-muted-${o%9})`};return r.jsxs("div",{children:[r.jsx("span",{className:`scrollable-table-year color-of-the-year-${o%9} bold-caps-16pt pt-3 ps-3`,style:x,children:o}),r.jsx("div",{className:`colored-table bg-muted-color-of-the-year-${o%9}`,children:r.jsxs(I,{children:[r.jsx("thead",{children:r.jsx("tr",{children:Object.keys(a).map(c=>r.jsx("th",{style:{position:"relative"},children:r.jsx("span",{style:x,children:c})},c))})}),r.jsx("tbody",{children:b.map((c,k)=>r.jsx("tr",{children:Object.entries(a).map(u=>{const[g,f]=u,y=c[f];return r.jsx("td",{children:y},g)})},k))})]})})]},o)})})},i)},t[4]=a,t[5]=n):n=t[5],d=Array.from(l.entries()).map(n),t[1]=a,t[2]=l,t[3]=d}else d=t[3];const p=d;let s;return t[6]!==p?(s=r.jsx("div",{className:"matrix-border-round",children:p}),t[6]=p,t[7]=s):s=t[7],s}function M(){const e=_.c(29),{filterSelection:t,setFilterSelection:l}=C.useContext(E),{data:a,years:d,nrens:p}=S("/api/external-connections",l);let s,n;if(e[0]!==a||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let N;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(N=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=N):N=e[7],s=a.filter(N),n=w([...s]),e[0]=a,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=n}else s=e[3],n=e[4];const j=n;let i;e[8]!==d?(i=[...d],e[8]=d,e[9]=i):i=e[9];let h;e[10]!==p?(h=p.values(),e[10]=p,e[11]=h):h=e[11];let m;e[12]!==h?(m=[...h],e[12]=h,e[13]=m):m=e[13];let o;e[14]!==i||e[15]!==m?(o={availableYears:i,availableNrens:m},e[14]=i,e[15]=m,e[16]=o):o=e[16];let b;e[17]!==t||e[18]!==l||e[19]!==o?(b=r.jsx(F,{filterOptions:o,filterSelection:t,setFilterSelection:l,coloredYears:!0}),e[17]=t,e[18]=l,e[19]=o,e[20]=b):b=e[20];const x=b;let c;e[21]===Symbol.for("react.memo_cache_sentinel")?(c={"Link Name":"link_name","Capacity (Gbit/s)":"capacity","From Organisation":"from_organization","To Organisation":"to_organization","Interconnection Method":"interconnection_method"},e[21]=c):c=e[21];const k=c;let u;e[22]===Symbol.for("react.memo_cache_sentinel")?(u=r.jsxs(r.Fragment,{children:[r.jsx("p",{children:"The table below shows the operational external IP connections of each NREN. These include links to their regional backbone (ie. GÉANT), to other research locations, to the commercial internet, peerings to internet exchanges, cross-border dark fibre links, and any other links they may have."}),r.jsx("p",{children:"NRENs are asked to state the capacity for production purposes, not any additional link that may be there solely for the purpose of giving resilience. Cross-border fibre links are meant as those links which have been commissioned or established by the NREN from a point on their network, which is near the border to another point near the border on the network of a neighbouring NREN."})]}),e[22]=u):u=e[22];const g=u;let f;e[23]!==j?(f=r.jsx(R,{children:r.jsx(L,{dataLookup:j,columnInfo:k})}),e[23]=j,e[24]=f):f=e[24];let y;return e[25]!==x||e[26]!==s||e[27]!==f?(y=r.jsx(D,{title:"NREN External IP Connections",description:g,category:Y.Network,filter:x,data:s,filename:"nren_external_connections",children:f}),e[25]=x,e[26]=s,e[27]=f,e[28]=y):y=e[28],y}export{M as default};
diff --git a/compendium_v2/static/FibreLight-4Mgdokfs.js b/compendium_v2/static/FibreLight-4Mgdokfs.js
new file mode 100644
index 0000000000000000000000000000000000000000..88c69507719d55df2c994c57384ebe76e594fb73
--- /dev/null
+++ b/compendium_v2/static/FibreLight-4Mgdokfs.js
@@ -0,0 +1,2 @@
+import{a as k,r as E,F as Y,j as h}from"./main-BIBsTO5W.js";import{u as j,g as v,D as F,F as R,f as S}from"./useData-BDYwoQEh.js";import{S as C}from"./report.js";import{P as D}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function z(){const e=k.c(29),{filterSelection:t,setFilterSelection:c}=E.useContext(Y),{data:N,years:_,nrens:g}=j("/api/fibre-light",c);let r,p;if(e[0]!==N||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let m;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(m=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=m):m=e[7],r=N.filter(m),p=v(r,"light_description"),e[0]=N,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=r,e[4]=p}else r=e[3],p=e[4];const w=p;let o;e[8]!==_?(o=[..._],e[8]=_,e[9]=o):o=e[9];let i;e[10]!==g?(i=g.values(),e[10]=g,e[11]=i):i=e[11];let n;e[12]!==i?(n=[...i],e[12]=i,e[13]=n):n=e[13];let a;e[14]!==o||e[15]!==n?(a={availableYears:o,availableNrens:n},e[14]=o,e[15]=n,e[16]=a):a=e[16];let d;e[17]!==t||e[18]!==c||e[19]!==a?(d=h.jsx(R,{filterOptions:a,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=a,e[20]=d):d=e[20];const x=d;let s,f;e[21]===Symbol.for("react.memo_cache_sentinel")?(s=["NREN owns and operates equipment","NREN owns equipment and operation is outsourced","Ownership and management are out-sourced (turn-key model)"],f=new Map([[s[0],"nren_owns_and_operates"],[s[1],"nren_owns_outsourced_operation"],[s[2],"outsourced_ownership_and_operation"]]),e[21]=s,e[22]=f):(s=e[21],f=e[22]);const y=f;let l;e[23]!==w?(l=h.jsx(S,{children:h.jsx(D,{columns:s,dataLookup:w,columnLookup:y,circle:!0})}),e[23]=w,e[24]=l):l=e[24];let u;return e[25]!==x||e[26]!==r||e[27]!==l?(u=h.jsx(F,{title:"Approaches to lighting NREN fibre networks",description:`This graphic shows the different ways NRENs can light their fibre networks. 
+            The option 'Other' is given, with extra information if you hover over the icon.`,category:C.Network,filter:x,data:r,filename:"fibre_light_of_nrens_per_year",children:l}),e[25]=x,e[26]=r,e[27]=l,e[28]=u):u=e[28],u}export{z as default};
diff --git a/compendium_v2/static/FundingSource-DRHIT4Ra.js b/compendium_v2/static/FundingSource-DRHIT4Ra.js
new file mode 100644
index 0000000000000000000000000000000000000000..b76c54414ea2fef5608ea81698e3e66da7857eab
--- /dev/null
+++ b/compendium_v2/static/FundingSource-DRHIT4Ra.js
@@ -0,0 +1 @@
+import{a as D,j as s,r as P,F as z,C as y,R as G}from"./main-BIBsTO5W.js";import{B as M}from"./index-BBrAyDR9.js";import{C as j,a as T,L as H,B as W,p as q,c as I,d as J,u as K,j as Q,D as U,F as V,f as X}from"./useData-BDYwoQEh.js";import{p as Z}from"./chartjs-plugin-datalabels.esm-D8EJYoxA.js";import{S as ee}from"./report.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";function N(e){const t=D.c(6),{index:i,active:l}=e,n=l===void 0?!0:l;let a;t[0]!==n||t[1]!==i?(a=n?s.jsx("div",{className:`color-of-badge-${i%5}`,style:{width:"20px",height:"35px",margin:"2px"}}):s.jsx("div",{className:"color-of-badge-blank",style:{width:"15px",height:"30px",margin:"2px"}}),t[0]=n,t[1]=i,t[2]=a):a=t[2];let r;return t[3]!==i||t[4]!==a?(r=s.jsx("div",{className:"d-inline-block m-2",children:a},i),t[3]=i,t[4]=a,t[5]=r):r=t[5],r}j.register(T,H,W,q,I,J);const te={maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(e){let t=e.dataset.label||"";return e.parsed.y!==null&&(t+=`: ${e.parsed.x}%`),t}}}},scales:{x:{position:"top",ticks:{callback:e=>`${e}%`,stepSize:10},max:100,min:0},xBottom:{ticks:{callback:e=>`${e}%`,stepSize:10},max:100,min:0,grid:{drawOnChartArea:!1},afterDataLimits:function(e){const t=Object.keys(j.instances);let i=-999999,l=999999;for(const n of t)j.instances[n]&&e.chart.scales.xBottom&&(l=Math.min(j.instances[n].scales.x.min,l),i=Math.max(j.instances[n].scales.x.max,i));e.chart.scales.xBottom.options.min=l,e.chart.scales.xBottom.options.max=i,e.chart.scales.xBottom.min=l,e.chart.scales.xBottom.max=i}},y:{ticks:{autoSkip:!1}}},indexAxis:"y"};function $(){const e=D.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(N,{index:0},0),"Client Institutions"]}),e[0]=t):t=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(N,{index:1},1),"Commercial"]}),e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(N,{index:2},2),"European Funding"]}),e[2]=l):l=e[2];let n;e[3]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(N,{index:3},3),"Gov/Public Bodies"]}),e[3]=n):n=e[3];let a;return e[4]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"d-flex justify-content-center bold-grey-12pt",children:s.jsxs(G,{xs:"auto",className:"border rounded-3 border-1 my-5 justify-content-center",children:[t,i,l,n,s.jsxs(y,{className:"d-flex align-items-center",children:[s.jsx(N,{index:4},4),"Other"]})]})}),e[4]=a):a=e[4],a}function fe(){const e=D.c(44),{filterSelection:t,setFilterSelection:i}=P.useContext(z),{data:l,years:n,nrens:a}=K("/api/funding",i);let r,c,o,_;if(e[0]!==t||e[1]!==l||e[2]!==a||e[3]!==i||e[4]!==n){let w;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(w=m=>t.selectedYears.includes(m.year)&&t.selectedNrens.includes(m.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=w):w=e[11],o=l.filter(w),c=Q(o),c.datasets.forEach(m=>{m.data=m.data.filter((ie,L)=>t.selectedNrens.includes(c.labels[L]))});let k;e[12]!==t.selectedNrens?(k=m=>t.selectedNrens.includes(m),e[12]=t.selectedNrens,e[13]=k):k=e[13],c.labels=c.labels.filter(k);let x;e[14]!==n?(x=[...n],e[14]=n,e[15]=x):x=e[15];let p;e[16]!==a?(p=a.values(),e[16]=a,e[17]=p):p=e[17];let g;e[18]!==p?(g=[...p],e[18]=p,e[19]=g):g=e[19];let b;e[20]!==x||e[21]!==g?(b={availableYears:x,availableNrens:g},e[20]=x,e[21]=g,e[22]=b):b=e[22];let R;e[23]!==t||e[24]!==i||e[25]!==b?(R=s.jsx(V,{filterOptions:b,filterSelection:t,setFilterSelection:i}),e[23]=t,e[24]=i,e[25]=b,e[26]=R):R=e[26],r=R,_=Array.from(new Set(o.map(se))),e[0]=t,e[1]=l,e[2]=a,e[3]=i,e[4]=n,e[5]=r,e[6]=c,e[7]=o,e[8]=_}else r=e[5],c=e[6],o=e[7],_=e[8];const O=_.length,Y=t.selectedYears.length,A=O*Y*2+5;let S;e[27]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsxs("span",{children:['The graph shows the percentage share of their income that NRENs derive from different sources, with any funding and NREN may receive from GÉANT included within "European funding". By "Client institutions" NRENs may be referring to universities, schools, research institutes, commercial clients, or other types of organisation. "Commercial services" include services such as being a domain registry, or security support.',s.jsx("br",{}),"Hovering over the graph bars will show the exact figures, per source. When viewing multiple years, it is advisable to restrict the number of NRENs being compared."]}),e[27]=S):S=e[27];let v;e[28]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx($,{}),e[28]=v):v=e[28];const F=`${A}rem`;let d;e[29]!==F?(d={height:F},e[29]=F,e[30]=d):d=e[30];let C;e[31]===Symbol.for("react.memo_cache_sentinel")?(C=[Z],e[31]=C):C=e[31];let f;e[32]!==c?(f=s.jsx(M,{plugins:C,data:c,options:te}),e[32]=c,e[33]=f):f=e[33];let u;e[34]!==d||e[35]!==f?(u=s.jsx("div",{className:"chart-container",style:d,children:f}),e[34]=d,e[35]=f,e[36]=u):u=e[36];let B;e[37]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx($,{}),e[37]=B):B=e[37];let h;e[38]!==u?(h=s.jsxs(X,{children:[v,u,B]}),e[38]=u,e[39]=h):h=e[39];let E;return e[40]!==r||e[41]!==o||e[42]!==h?(E=s.jsx(U,{title:"Income Source Of NRENs",description:S,category:ee.Organisation,filter:r,data:o,filename:"income_source_of_nren_per_year",children:h}),e[40]=r,e[41]=o,e[42]=h,e[43]=E):E=e[43],E}function se(e){return e.nren}export{fe as default};
diff --git a/compendium_v2/static/HTMLLegendPlugin-BO0IHS_R.js b/compendium_v2/static/HTMLLegendPlugin-BO0IHS_R.js
new file mode 100644
index 0000000000000000000000000000000000000000..37254f32f5642fc58de1c727c893e6921330d258
--- /dev/null
+++ b/compendium_v2/static/HTMLLegendPlugin-BO0IHS_R.js
@@ -0,0 +1 @@
+import{a as g,j as p}from"./main-BIBsTO5W.js";import{f as m,C as c}from"./useData-BDYwoQEh.js";const C=o=>{const e=g.c(8);let{children:s,location:t}=o;t||(t="both");const r=t==="top"||t==="both",a=t==="bottom"||t==="both";let n;e[0]!==r?(n=r&&p.jsx("div",{style:{paddingLeft:"33%",paddingTop:"2.5rem",paddingBottom:"1.5rem"},id:"legendtop"}),e[0]=r,e[1]=n):n=e[1];let l;e[2]!==a?(l=a&&p.jsx("div",{style:{paddingLeft:"33%",paddingTop:"1.5rem"},id:"legendbottom"}),e[2]=a,e[3]=l):l=e[3];let i;return e[4]!==s||e[5]!==n||e[6]!==l?(i=p.jsxs(m,{children:[n,s,l]}),e[4]=s,e[5]=n,e[6]=l,e[7]=i):i=e[7],i},u=(o,e)=>{const s=document.getElementById(e);if(!s)return null;let t=s.querySelector("ul");return t||(t=document.createElement("ul"),t.style.display="flex",t.style.flexDirection="row",t.style.margin="0",t.style.padding="0",s.appendChild(t)),t},b={id:"htmlLegend",afterUpdate(o,e,s){for(const t of s.containerIDs){const r=u(o,t);if(!r)return;for(;r.firstChild;)r.firstChild.remove();o.options.plugins.legend.labels.generateLabels(o).forEach(n=>{const l=document.createElement("li");l.style.alignItems="center",l.style.cursor="pointer",l.style.display="flex",l.style.flexDirection="row",l.style.marginLeft="10px",l.onclick=()=>{const{type:f}=o.config;f==="pie"||f==="doughnut"?o.toggleDataVisibility(n.index):o.setDatasetVisibility(n.datasetIndex,!o.isDatasetVisible(n.datasetIndex)),o.update()};const i=document.createElement("span");i.style.background=n.fillStyle,i.style.borderColor=n.strokeStyle,i.style.borderWidth=n.lineWidth+"px",i.style.display="inline-block",i.style.height="1rem",i.style.marginRight="10px",i.style.width="2.5rem";const d=document.createElement("p");d.style.color=n.fontColor,d.style.margin="0",d.style.padding="0",d.style.textDecoration=n.hidden?"line-through":"",d.style.fontSize=`${c.defaults.font.size}px`,d.style.fontFamily=`${c.defaults.font.family}`,d.style.fontWeight=`${c.defaults.font.weight}`;const y=document.createTextNode(n.text);d.appendChild(y),l.appendChild(i),l.appendChild(d),r.appendChild(l)})}}};export{C as W,b as h};
diff --git a/compendium_v2/static/IRUDuration-D50DEG35.js b/compendium_v2/static/IRUDuration-D50DEG35.js
new file mode 100644
index 0000000000000000000000000000000000000000..ba9b5fda6faf4112d6b00bed177f90e2c67c1114
--- /dev/null
+++ b/compendium_v2/static/IRUDuration-D50DEG35.js
@@ -0,0 +1 @@
+import{a as C,r as D,F as R,j as o}from"./main-BIBsTO5W.js";import{L}from"./index-BBrAyDR9.js";import{C as E,a as j,L as v,P as F,b as I,p as U,c as k,d as P,u as w,e as O,D as Y,F as A,f as T}from"./useData-BDYwoQEh.js";import{S as $}from"./report.js";import{g as q}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";E.register(j,v,F,I,U,k,P);function V(){const e=C.c(24);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=l=>l.iru_duration!=null,e[0]=n):n=e[0];const y=n,{filterSelection:t,setFilterSelection:c}=D.useContext(R),{data:g,nrens:_}=w("/api/dark-fibre-lease",c,y);let a,f;if(e[1]!==g||e[2]!==t.selectedNrens){let l;e[5]!==t.selectedNrens?(l=S=>t.selectedNrens.includes(S.nren),e[5]=t.selectedNrens,e[6]=l):l=e[6],a=g.filter(l),f=O(a,"iru_duration"),e[1]=g,e[2]=t.selectedNrens,e[3]=a,e[4]=f}else a=e[3],f=e[4];const N=f;let m;e[7]===Symbol.for("react.memo_cache_sentinel")?(m=[],e[7]=m):m=e[7];let s;e[8]!==_?(s=_.values(),e[8]=_,e[9]=s):s=e[9];let i;e[10]!==s?(i={availableYears:m,availableNrens:[...s]},e[10]=s,e[11]=i):i=e[11];let p;e[12]!==t||e[13]!==c||e[14]!==i?(p=o.jsx(A,{filterOptions:i,filterSelection:t,setFilterSelection:c}),e[12]=t,e[13]=c,e[14]=i,e[15]=p):p=e[15];const b=p;let d;e[16]===Symbol.for("react.memo_cache_sentinel")?(d=q({title:"Lease Duration In Years",tooltipUnit:"years",tickLimit:999}),e[16]=d):d=e[16];const x=d;let u;e[17]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsx("span",{children:"NRENs sometimes take out an IRU (Indefeasible Right of Use), which is essentially a long-term lease, on a portion of the capacity of a cable rather than laying cable themselves. This graph shows the average duration, in years, of the IRUs of NRENs."}),e[17]=u):u=e[17];let r;e[18]!==N?(r=o.jsx(T,{children:o.jsx(L,{data:N,options:x})}),e[18]=N,e[19]=r):r=e[19];let h;return e[20]!==b||e[21]!==a||e[22]!==r?(h=o.jsx(Y,{title:"Average Duration of IRU leases of Fibre by NRENs ",description:u,category:$.Network,filter:b,data:a,filename:"iru_duration_data",children:r}),e[20]=b,e[21]=a,e[22]=r,e[23]=h):h=e[23],h}export{V as default};
diff --git a/compendium_v2/static/MonitoringTools-BuTC_DRa.js b/compendium_v2/static/MonitoringTools-BuTC_DRa.js
new file mode 100644
index 0000000000000000000000000000000000000000..fa620fb53fd2cdfe0147a50f8764f922431e3039
--- /dev/null
+++ b/compendium_v2/static/MonitoringTools-BuTC_DRa.js
@@ -0,0 +1,2 @@
+import{a as T,r as v,F as S,j as h}from"./main-BIBsTO5W.js";import{u as Y,g as j,n as F,D as C,F as D,f as E}from"./useData-BDYwoQEh.js";import{S as L}from"./report.js";import{P as M}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function B(){const e=T.c(29),{filterSelection:t,setFilterSelection:c}=v.useContext(S),{data:w,years:_,nrens:N}=Y("/api/monitoring-tools",c);let s,f;if(e[0]!==w||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let m;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(m=x=>t.selectedYears.includes(x.year)&&t.selectedNrens.includes(x.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=m):m=e[7],s=w.filter(m);const y=j(s,"tool_descriptions");f=F(y,P),e[0]=w,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=f}else s=e[3],f=e[4];const g=f;let o,p;e[8]===Symbol.for("react.memo_cache_sentinel")?(o=["Looking Glass","Network or Services Status Dashboard","Historical traffic volume information","Netflow analysis tool"],p=new Map([[o[0],"looking_glass"],[o[1],"status_dashboard"],[o[2],"historical_traffic_volumes"],[o[3],"netflow_analysis"]]),e[8]=o,e[9]=p):(o=e[8],p=e[9]);const k=p;let l;e[10]!==_?(l=[..._],e[10]=_,e[11]=l):l=e[11];let r;e[12]!==N?(r=N.values(),e[12]=N,e[13]=r):r=e[13];let i;e[14]!==r?(i=[...r],e[14]=r,e[15]=i):i=e[15];let a;e[16]!==l||e[17]!==i?(a={availableYears:l,availableNrens:i},e[16]=l,e[17]=i,e[18]=a):a=e[18];let d;e[19]!==t||e[20]!==c||e[21]!==a?(d=h.jsx(D,{filterOptions:a,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=a,e[22]=d):d=e[22];const b=d;let n;e[23]!==g?(n=h.jsx(E,{children:h.jsx(M,{columns:o,columnLookup:k,dataLookup:g})}),e[23]=g,e[24]=n):n=e[24];let u;return e[25]!==b||e[26]!==s||e[27]!==n?(u=h.jsx(C,{title:"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions",description:`The table below shows which tools the NREN offers to client institutions to allow them to monitor the network and troubleshoot any issues which arise. 
+            Four common tools are named, however NRENs also have the opportunity to add their own tools to the table.`,category:L.Network,filter:b,data:s,filename:"monitoring_tools_nrens_per_year",children:n}),e[25]=b,e[26]=s,e[27]=n,e[28]=u):u=e[28],u}function P(e,t){if(e==="netflow_analysis"&&t.netflow_processing_description)return t.netflow_processing_description}export{B as default};
diff --git a/compendium_v2/static/NetworkFunctionVirtualisation-DMaSWRo0.js b/compendium_v2/static/NetworkFunctionVirtualisation-DMaSWRo0.js
new file mode 100644
index 0000000000000000000000000000000000000000..435d79991688664262e9a15c232ec16ac6163984
--- /dev/null
+++ b/compendium_v2/static/NetworkFunctionVirtualisation-DMaSWRo0.js
@@ -0,0 +1 @@
+import{a as W,r as X,F as Z,j as t}from"./main-BIBsTO5W.js";import{u as k,g as ee,F as te,D as se,f as le}from"./useData-BDYwoQEh.js";import{C as H}from"./ColorPill-CqT_mR3a.js";import{S as re}from"./report.js";import{T as ne}from"./Table-HH9WOnMU.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";function ue(){const e=W.c(67),{filterSelection:n,setFilterSelection:h}=X.useContext(Z),{data:I,years:o,nrens:V}=k("/api/nfv",h);let f,p,x,j,u,m,g,b,v,c,d,w,N,S,Y;if(e[0]!==I||e[1]!==n||e[2]!==V||e[3]!==h||e[4]!==o){let A;e[20]!==n.selectedNrens||e[21]!==n.selectedYears?(A=R=>n.selectedYears.includes(R.year)&&n.selectedNrens.includes(R.nren),e[20]=n.selectedNrens,e[21]=n.selectedYears,e[22]=A):A=e[22];const J=I.filter(A),Q=ee(J,"nfv_specifics");let C;e[23]!==o?(C=[...o],e[23]=o,e[24]=C):C=e[24];let T;e[25]!==V?(T=V.values(),e[25]=V,e[26]=T):T=e[26];let $;e[27]!==T?($=[...T],e[27]=T,e[28]=$):$=e[28];let E;e[29]!==C||e[30]!==$?(E={availableYears:C,availableNrens:$},e[29]=C,e[30]=$,e[31]=E):E=e[31];let L;e[32]!==n||e[33]!==h||e[34]!==E?(L=t.jsx(te,{filterOptions:E,filterSelection:n,setFilterSelection:h,coloredYears:!0}),e[32]=n,e[33]=h,e[34]=E,e[35]=L):L=e[35];const U=L;let O;e[36]!==o?(O=R=>o.has(R),e[36]=o,e[37]=O):O=e[37];const K=[...n.selectedYears.filter(O)].sort();x=se,w="Kinds of Network Function Virtualisation used by NRENs ",N="The table below shows the kinds of Network Function Virtualisation (NFV) used by NRENs.",S=re.Network,Y=U,m=J,g="network_function_virtualisation_nrens_per_year",p=le,f=ne,u="charging-struct-table",b=!0,v=!0;let M;e[38]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx("col",{span:1,style:{width:"20%"}}),e[38]=M):M=e[38];let _;e[39]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx("col",{span:2,style:{width:"16%"}}),e[39]=_):_=e[39];let q;e[40]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx("col",{span:2,style:{width:"16%"}}),e[40]=q):q=e[40];let z;e[41]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx("col",{span:2,style:{width:"16%"}}),e[41]=z):z=e[41];let B;e[42]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("col",{span:2,style:{width:"16%"}}),e[42]=B):B=e[42],e[43]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsxs("colgroup",{children:[M,_,q,z,B,t.jsx("col",{span:2,style:{width:"16%"}})]}),d=t.jsxs("thead",{children:[t.jsxs("tr",{children:[t.jsx("th",{}),t.jsx("th",{colSpan:2,children:"Routers/switches"}),t.jsx("th",{colSpan:2,children:"Firewalls"}),t.jsx("th",{colSpan:2,children:"Load balancers"}),t.jsx("th",{colSpan:2,children:"VPN Concentrator Services"}),t.jsx("th",{colSpan:2,children:"Other"})]}),t.jsxs("tr",{children:[t.jsx("th",{}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"}),t.jsx("th",{children:"Yes"}),t.jsx("th",{children:"Planned"})]})]}),e[43]=c,e[44]=d):(c=e[43],d=e[44]),j=Array.from(Q.entries()).map(R=>{const[G,a]=R;return t.jsxs("tr",{children:[t.jsx("td",{children:G}),["routers","firewalls","load_balancers","vpn_concentrators"].map(l=>t.jsxs(t.Fragment,{children:[t.jsx("td",{children:a.has(l)&&K.map(s=>{const i=a.get(l),r=i.get(s);return t.jsx(H,{year:s,active:i.has(s)&&!!(r&&r.nfv=="yes"),tooltip:"",rounded:!0},s)})},`${l}-yes`),t.jsx("td",{children:a.has(l)&&K.map(s=>{const i=a.get(l),r=i.get(s);return t.jsx(H,{year:s,active:i.has(s)&&!!(r&&r.nfv=="planned"),tooltip:"",rounded:!0},s)})},`${l}-planned`)]})),t.jsx("td",{children:Array.from(a.keys()).filter(ae).map(l=>t.jsx("div",{children:a.has(l)&&K.map(s=>{const i=a.get(l),r=i.get(s);return t.jsx(H,{year:s,active:i.has(s)&&!!(r&&(r==null?void 0:r.nfv)=="yes"),tooltip:l,rounded:!0},s)})},`${l}-yes`))},`${G}-other-yes`),t.jsx("td",{children:Array.from(a.keys()).filter(ie).map(l=>t.jsx("div",{children:a.has(l)&&K.map(s=>{const i=a.get(l),r=i.get(s);return t.jsx(H,{year:s,active:i.has(s)&&!!(r&&(r==null?void 0:r.nfv)=="planned"),tooltip:l,rounded:!0},s)})},`${l}-planned`))},`${G}-other-planned`)]},G)}),e[0]=I,e[1]=n,e[2]=V,e[3]=h,e[4]=o,e[5]=f,e[6]=p,e[7]=x,e[8]=j,e[9]=u,e[10]=m,e[11]=g,e[12]=b,e[13]=v,e[14]=c,e[15]=d,e[16]=w,e[17]=N,e[18]=S,e[19]=Y}else f=e[5],p=e[6],x=e[7],j=e[8],u=e[9],m=e[10],g=e[11],b=e[12],v=e[13],c=e[14],d=e[15],w=e[16],N=e[17],S=e[18],Y=e[19];let F;e[45]!==j?(F=t.jsx("tbody",{children:j}),e[45]=j,e[46]=F):F=e[46];let y;e[47]!==f||e[48]!==u||e[49]!==F||e[50]!==b||e[51]!==v||e[52]!==c||e[53]!==d?(y=t.jsxs(f,{className:u,striped:b,bordered:v,children:[c,d,F]}),e[47]=f,e[48]=u,e[49]=F,e[50]=b,e[51]=v,e[52]=c,e[53]=d,e[54]=y):y=e[54];let P;e[55]!==p||e[56]!==y?(P=t.jsx(p,{children:y}),e[55]=p,e[56]=y,e[57]=P):P=e[57];let D;return e[58]!==x||e[59]!==m||e[60]!==g||e[61]!==P||e[62]!==w||e[63]!==N||e[64]!==S||e[65]!==Y?(D=t.jsx(x,{title:w,description:N,category:S,filter:Y,data:m,filename:g,children:P}),e[58]=x,e[59]=m,e[60]=g,e[61]=P,e[62]=w,e[63]=N,e[64]=S,e[65]=Y,e[66]=D):D=e[66],D}function ie(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)}function ae(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)}export{ue as default};
diff --git a/compendium_v2/static/NetworkMapUrls-YVUXOiQm.js b/compendium_v2/static/NetworkMapUrls-YVUXOiQm.js
new file mode 100644
index 0000000000000000000000000000000000000000..e8540bbdae99b9f7bcbf7eacc7f768150d7b324a
--- /dev/null
+++ b/compendium_v2/static/NetworkMapUrls-YVUXOiQm.js
@@ -0,0 +1 @@
+import{a as b,r as h,F as j,j as u}from"./main-BIBsTO5W.js";import{u as y,q as _,k as g,i as v,D as S,F as E,f as F,s as R}from"./useData-BDYwoQEh.js";import{S as C}from"./report.js";import{N as L}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function $(){const e=b.c(21),{filterSelection:t,setFilterSelection:r}=h.useContext(j),{data:a,nrens:i}=y("/api/network-map-urls",r);let s,c;if(e[0]!==a||e[1]!==t.selectedNrens){const x=a?_(a):[];let d;e[4]!==t.selectedNrens?(d=w=>t.selectedNrens.includes(w.nren),e[4]=t.selectedNrens,e[5]=d):d=e[5],s=x.filter(d);const D=g(s);c=v(D,T),e[0]=a,e[1]=t.selectedNrens,e[2]=s,e[3]=c}else s=e[2],c=e[3];const N=c;let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[6]=f):f=e[6];let o;e[7]!==i?(o=i.values(),e[7]=i,e[8]=o):o=e[8];let l;e[9]!==o?(l={availableYears:f,availableNrens:[...o]},e[9]=o,e[10]=l):l=e[10];let p;e[11]!==t||e[12]!==r||e[13]!==l?(p=u.jsx(E,{filterOptions:l,filterSelection:t,setFilterSelection:r,coloredYears:!0}),e[11]=t,e[12]=r,e[13]=l,e[14]=p):p=e[14];const k=p;let n;e[15]!==N?(n=u.jsx(F,{children:u.jsx(L,{data:N,columnTitle:"Network Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=N,e[16]=n):n=e[16];let m;return e[17]!==k||e[18]!==s||e[19]!==n?(m=u.jsx(S,{title:"NREN Network Maps",description:"This table provides links to NREN network maps, showing layers 1, 2, and 3 of their networks.",category:C.Network,filter:k,data:s,filename:"network_map_nrens_per_year",children:n}),e[17]=k,e[18]=s,e[19]=n,e[20]=m):m=e[20],m}function T(e,t){const r=R(t);if(r!=null)for(const[a,i]of Object.entries(r))e[a]=i}export{$ as default};
diff --git a/compendium_v2/static/NonRAndEPeer-BvFWiPrM.js b/compendium_v2/static/NonRAndEPeer-BvFWiPrM.js
new file mode 100644
index 0000000000000000000000000000000000000000..3865f9f6963e2cdb89ebc8687c0b9421872a38b9
--- /dev/null
+++ b/compendium_v2/static/NonRAndEPeer-BvFWiPrM.js
@@ -0,0 +1,2 @@
+import{a as B,r as D,F,j as u}from"./main-BIBsTO5W.js";import{B as Y}from"./index-BBrAyDR9.js";import{C as k,a as v,L as A,B as L,p as O,c as T,d as $,u as G,o as I,D as M,F as W,f as q}from"./useData-BDYwoQEh.js";import{S as z}from"./report.js";import{p as H}from"./chartjs-plugin-datalabels.esm-D8EJYoxA.js";import{a as J}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";k.register(v,A,L,O,T,$);function ae(){const e=B.c(38),{filterSelection:t,setFilterSelection:r}=D.useContext(F),{data:b,years:d,nrens:h}=G("/api/non-re-peers",r);let a,l,s,g;if(e[0]!==b||e[1]!==t||e[2]!==h||e[3]!==r||e[4]!==d){let E;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(E=w=>t.selectedYears.includes(w.year)&&t.selectedNrens.includes(w.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=E):E=e[11],s=b.filter(E),a=I(s,"nr_of_non_r_and_e_peers","Number of Peers");let c;e[12]!==d?(c=[...d],e[12]=d,e[13]=c):c=e[13];let m;e[14]!==h?(m=h.values(),e[14]=h,e[15]=m):m=e[15];let f;e[16]!==m?(f=[...m],e[16]=m,e[17]=f):f=e[17];let p;e[18]!==c||e[19]!==f?(p={availableYears:c,availableNrens:f},e[18]=c,e[19]=f,e[20]=p):p=e[20];let S;e[21]!==t||e[22]!==r||e[23]!==p?(S=u.jsx(W,{filterOptions:p,filterSelection:t,setFilterSelection:r}),e[21]=t,e[22]=r,e[23]=p,e[24]=S):S=e[24],l=S,g=Array.from(new Set(s.map(K))),e[0]=b,e[1]=t,e[2]=h,e[3]=r,e[4]=d,e[5]=a,e[6]=l,e[7]=s,e[8]=g}else a=e[5],l=e[6],s=e[7],g=e[8];const y=g.length,R=Math.max(y*t.selectedYears.length*1.5+5,50),j=`The graph below shows the number of non-Research and Education networks 
+    NRENs peer with. This includes all direct IP-peerings to commercial networks, eg. Google`;let N;e[25]===Symbol.for("react.memo_cache_sentinel")?(N=J({title:"Number of Non-R&E Peers"}),e[25]=N):N=e[25];const P=N,C=`${R}rem`;let n;e[26]!==C?(n={height:C},e[26]=C,e[27]=n):n=e[27];let _;e[28]===Symbol.for("react.memo_cache_sentinel")?(_=[H],e[28]=_):_=e[28];let i;e[29]!==a?(i=u.jsx(Y,{data:a,options:P,plugins:_}),e[29]=a,e[30]=i):i=e[30];let o;e[31]!==n||e[32]!==i?(o=u.jsx(q,{children:u.jsx("div",{className:"chart-container",style:n,children:i})}),e[31]=n,e[32]=i,e[33]=o):o=e[33];let x;return e[34]!==l||e[35]!==s||e[36]!==o?(x=u.jsx(M,{title:"Number of Non-R&E Networks NRENs Peer With",description:j,category:z.Network,filter:l,data:s,filename:"non_r_and_e_peering",children:o}),e[34]=l,e[35]=s,e[36]=o,e[37]=x):x=e[37],x}function K(e){return e.nren}export{ae as default};
diff --git a/compendium_v2/static/NrenYearTable-BuqomkXK.js b/compendium_v2/static/NrenYearTable-BuqomkXK.js
new file mode 100644
index 0000000000000000000000000000000000000000..eeb7466924ac2568077bbb9499baf2e6171b6887
--- /dev/null
+++ b/compendium_v2/static/NrenYearTable-BuqomkXK.js
@@ -0,0 +1 @@
+import{a as j,j as r}from"./main-BIBsTO5W.js";import{w as p}from"./useData-BDYwoQEh.js";import{T as u}from"./Table-HH9WOnMU.js";function N(f,e,s,l,t){return f?l.startsWith("http")?r.jsx("li",{children:r.jsx("a",{href:p(l),target:"_blank",rel:"noopener noreferrer",style:e,children:t})},s):r.jsx("li",{children:r.jsx("span",{children:t})},s):r.jsx("li",{children:r.jsx("span",{children:t})},s)}function b(f,{dottedBorder:e=!1,noDots:s=!1,keysAreURLs:l=!1,removeDecoration:t=!1}){return Array.from(f.entries()).map(([i,x])=>Array.from(x.entries()).map(([o,m],d)=>{const n={};return t&&(n.textDecoration="none"),r.jsxs("tr",{className:e?"dotted-border":"",children:[r.jsx("td",{className:"pt-3 nren-column text-nowrap",children:d===0&&i}),r.jsx("td",{className:"pt-3 year-column",children:o}),r.jsx("td",{className:"pt-3 blue-column",children:r.jsx("ul",{className:s?"no-list-style-type":"",children:Array.from(Object.entries(m)).map(([a,c],h)=>N(l,n,h,c,a))})})]},i+o)}))}function _(f){const e=j.c(15),{data:s,columnTitle:l,dottedBorder:t,noDots:i,keysAreURLs:x,removeDecoration:o}=f;let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx("th",{className:"nren-column",children:r.jsx("span",{children:"NREN"})}),e[0]=m):m=e[0];let d;e[1]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx("th",{className:"year-column",children:r.jsx("span",{children:"Year"})}),e[1]=d):d=e[1];let n;e[2]!==l?(n=r.jsx("thead",{children:r.jsxs("tr",{children:[m,d,r.jsx("th",{className:"blue-column",children:r.jsx("span",{children:l})})]})}),e[2]=l,e[3]=n):n=e[3];let a;e[4]!==s||e[5]!==t||e[6]!==x||e[7]!==i||e[8]!==o?(a=b(s,{dottedBorder:t,noDots:i,keysAreURLs:x,removeDecoration:o}),e[4]=s,e[5]=t,e[6]=x,e[7]=i,e[8]=o,e[9]=a):a=e[9];let c;e[10]!==a?(c=r.jsx("tbody",{children:a}),e[10]=a,e[11]=c):c=e[11];let h;return e[12]!==n||e[13]!==c?(h=r.jsxs(u,{borderless:!0,className:"compendium-table",children:[n,c]}),e[12]=n,e[13]=c,e[14]=h):h=e[14],h}export{_ as N};
diff --git a/compendium_v2/static/OPsAutomation-mleIxb9-.js b/compendium_v2/static/OPsAutomation-mleIxb9-.js
new file mode 100644
index 0000000000000000000000000000000000000000..efc4ec279acad832d96f4b3f984d981c31b9bf7a
--- /dev/null
+++ b/compendium_v2/static/OPsAutomation-mleIxb9-.js
@@ -0,0 +1,3 @@
+import{a as j,r as y,F as S,j as h}from"./main-BIBsTO5W.js";import{u as g,g as k,n as v,D as E,F,f as C}from"./useData-BDYwoQEh.js";import{S as D}from"./report.js";import{P as L}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function I(){const e=j.c(29),{filterSelection:t,setFilterSelection:c}=y.useContext(S),{data:N,years:x,nrens:_}=g("/api/ops-automation",c);let s,p;if(e[0]!==N||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let d;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(d=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=d):d=e[7],s=N.filter(d);const T=k(s,"ops_automation");p=v(T,R),e[0]=N,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=p}else s=e[3],p=e[4];const w=p;let o,f;e[8]===Symbol.for("react.memo_cache_sentinel")?(o=["Yes","Planned","No"],f=new Map([[o[0],"yes"],[o[1],"planned"],[o[2],"no"]]),e[8]=o,e[9]=f):(o=e[8],f=e[9]);const P=f;let a;e[10]!==x?(a=[...x],e[10]=x,e[11]=a):a=e[11];let l;e[12]!==_?(l=_.values(),e[12]=_,e[13]=l):l=e[13];let i;e[14]!==l?(i=[...l],e[14]=l,e[15]=i):i=e[15];let r;e[16]!==a||e[17]!==i?(r={availableYears:a,availableNrens:i},e[16]=a,e[17]=i,e[18]=r):r=e[18];let m;e[19]!==t||e[20]!==c||e[21]!==r?(m=h.jsx(F,{filterOptions:r,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=r,e[22]=m):m=e[22];const Y=m;let n;e[23]!==w?(n=h.jsx(C,{children:h.jsx(L,{columns:o,columnLookup:P,dataLookup:w})}),e[23]=w,e[24]=n):n=e[24];let u;return e[25]!==Y||e[26]!==s||e[27]!==n?(u=h.jsx(E,{title:"NREN Automation of Operational Processes",description:`The table below shows which NRENs have, or plan to, automate their 
+            operational processes, with specification of which processes, and the names of 
+            software and tools used for this given when appropriate.`,category:D.Network,filter:Y,data:s,filename:"ops_automation_nrens_per_year",children:n}),e[25]=Y,e[26]=s,e[27]=n,e[28]=u):u=e[28],u}function R(e,t){if(t.ops_automation_specifics)return t.ops_automation_specifics}export{I as default};
diff --git a/compendium_v2/static/ParentOrganisation-DJLeH6g7.js b/compendium_v2/static/ParentOrganisation-DJLeH6g7.js
new file mode 100644
index 0000000000000000000000000000000000000000..7112723d9e19c4331b4ca268482a181b700b2591
--- /dev/null
+++ b/compendium_v2/static/ParentOrganisation-DJLeH6g7.js
@@ -0,0 +1 @@
+import{a as b,r as y,F as j,j as p}from"./main-BIBsTO5W.js";import{u as v,k as E,i as O,D as S,F,f as P}from"./useData-BDYwoQEh.js";import{S as R}from"./report.js";import{N as w}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function q(){const e=b.c(27),{filterSelection:t,setFilterSelection:a}=y.useContext(j),{data:u,years:g,nrens:N}=v("/api/parent-organizations",a);let s,c;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==u){let m;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(m=h=>t.selectedYears.includes(h.year)&&t.selectedNrens.includes(h.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=m):m=e[7],s=u.filter(m);const Y=E(s);c=O(Y,C),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=u,e[3]=s,e[4]=c}else s=e[3],c=e[4];const x=c;let r;e[8]!==g?(r=[...g],e[8]=g,e[9]=r):r=e[9];let i;e[10]!==N?(i=N.values(),e[10]=N,e[11]=i):i=e[11];let n;e[12]!==i?(n=[...i],e[12]=i,e[13]=n):n=e[13];let l;e[14]!==r||e[15]!==n?(l={availableYears:r,availableNrens:n},e[14]=r,e[15]=n,e[16]=l):l=e[16];let d;e[17]!==t||e[18]!==a||e[19]!==l?(d=p.jsx(F,{filterOptions:l,filterSelection:t,setFilterSelection:a,max1year:!0}),e[17]=t,e[18]=a,e[19]=l,e[20]=d):d=e[20];const D=d;let o;e[21]!==x?(o=p.jsx(P,{children:p.jsx(w,{data:x,columnTitle:"Parent Organisation",dottedBorder:!0,noDots:!0})}),e[21]=x,e[22]=o):o=e[22];let f;return e[23]!==D||e[24]!==s||e[25]!==o?(f=p.jsx(S,{title:"NREN Parent Organisations",description:"Some NRENs are part of larger organisations, including Ministries or universities. These are shown in the table below. Only NRENs who are managed in this way are available to select.",category:R.Organisation,filter:D,data:s,filename:"nren_parent_organisations",children:o}),e[23]=D,e[24]=s,e[25]=o,e[26]=f):f=e[26],f}function C(e,t){const a=t.name;e[a]=a}export{q as default};
diff --git a/compendium_v2/static/PassiveMonitoring-BQaZqq7o.js b/compendium_v2/static/PassiveMonitoring-BQaZqq7o.js
new file mode 100644
index 0000000000000000000000000000000000000000..494aa92aeec655d8f30765ed40ba391a4791c132
--- /dev/null
+++ b/compendium_v2/static/PassiveMonitoring-BQaZqq7o.js
@@ -0,0 +1 @@
+import{a as Y,r as j,F as y,j as N}from"./main-BIBsTO5W.js";import{u as T,g as _,D as F,F as M,f as k}from"./useData-BDYwoQEh.js";import{S as w}from"./report.js";import{P as A}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function $(){const e=Y.c(29),{filterSelection:t,setFilterSelection:c}=j.useContext(y),{data:h,years:x,nrens:P}=T("/api/passive-monitoring",c);let o,p;if(e[0]!==h||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=S=>t.selectedYears.includes(S.year)&&t.selectedNrens.includes(S.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],o=h.filter(u),p=_(o,"method",!0),e[0]=h,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=p}else o=e[3],p=e[4];const g=p;let r;e[8]!==x?(r=[...x],e[8]=x,e[9]=r):r=e[9];let l;e[10]!==P?(l=P.values(),e[10]=P,e[11]=l):l=e[11];let a;e[12]!==l?(a=[...l],e[12]=l,e[13]=a):a=e[13];let i;e[14]!==r||e[15]!==a?(i={availableYears:r,availableNrens:a},e[14]=r,e[15]=a,e[16]=i):i=e[16];let f;e[17]!==t||e[18]!==c||e[19]!==i?(f=N.jsx(M,{filterOptions:i,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[17]=t,e[18]=c,e[19]=i,e[20]=f):f=e[20];const v=f;let s,m;e[21]===Symbol.for("react.memo_cache_sentinel")?(s=["No monitoring occurs","SPAN ports","Passive optical TAPS","Both SPAN ports and passive optical TAPS"],m=new Map([[s[0],"null"],[s[1],"span_ports"],[s[2],"taps"],[s[3],"both"]]),e[21]=s,e[22]=m):(s=e[21],m=e[22]);const b=m;let n;e[23]!==g?(n=N.jsx(k,{children:N.jsx(A,{columns:s,dataLookup:g,columnLookup:b})}),e[23]=g,e[24]=n):n=e[24];let d;return e[25]!==v||e[26]!==o||e[27]!==n?(d=N.jsx(F,{title:"Methods for Passively Monitoring International Traffic",description:"The table below shows the methods NRENs use for the passive monitoring of international traffic.",category:w.Network,filter:v,data:o,filename:"passive_monitoring_nrens_per_year",children:n}),e[25]=v,e[26]=o,e[27]=n,e[28]=d):d=e[28],d}export{$ as default};
diff --git a/compendium_v2/static/PertTeam-Dk6-ebg9.js b/compendium_v2/static/PertTeam-Dk6-ebg9.js
new file mode 100644
index 0000000000000000000000000000000000000000..c3f02f278599c830f2ef7277150387036558ab48
--- /dev/null
+++ b/compendium_v2/static/PertTeam-Dk6-ebg9.js
@@ -0,0 +1,2 @@
+import{a as j,r as y,F as T,j as N}from"./main-BIBsTO5W.js";import{u as _,g as b,D as g,F as k,f as v}from"./useData-BDYwoQEh.js";import{S as F}from"./report.js";import{P as w}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function A(){const e=j.c(29),{filterSelection:t,setFilterSelection:c}=y.useContext(T),{data:x,years:h,nrens:P}=_("/api/pert-team",c);let s,m;if(e[0]!==x||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=R=>t.selectedYears.includes(R.year)&&t.selectedNrens.includes(R.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=x.filter(u),m=b(s,"pert_team"),e[0]=x,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=m}else s=e[3],m=e[4];const E=m;let r,p;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=["Yes","Planned","No"],p=new Map([[r[0],"yes"],[r[1],"planned"],[r[2],"no"]]),e[8]=r,e[9]=p):(r=e[8],p=e[9]);const S=p;let a;e[10]!==h?(a=[...h],e[10]=h,e[11]=a):a=e[11];let l;e[12]!==P?(l=P.values(),e[12]=P,e[13]=l):l=e[13];let n;e[14]!==l?(n=[...l],e[14]=l,e[15]=n):n=e[15];let o;e[16]!==a||e[17]!==n?(o={availableYears:a,availableNrens:n},e[16]=a,e[17]=n,e[18]=o):o=e[18];let f;e[19]!==t||e[20]!==c||e[21]!==o?(f=N.jsx(k,{filterOptions:o,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=o,e[22]=f):f=e[22];const Y=f;let i;e[23]!==E?(i=N.jsx(v,{children:N.jsx(w,{columns:r,columnLookup:S,dataLookup:E})}),e[23]=E,e[24]=i):i=e[24];let d;return e[25]!==Y||e[26]!==s||e[27]!==i?(d=N.jsx(g,{title:"NRENs with Performance Enhancement Response Teams",description:`Some NRENs have an in-house Performance Enhancement Response Team, 
+            or PERT, to investigate network performance issues.`,category:F.Network,filter:Y,data:s,filename:"pert_team_nrens_per_year",children:i}),e[25]=Y,e[26]=s,e[27]=i,e[28]=d):d=e[28],d}export{A as default};
diff --git a/compendium_v2/static/PillTable-5pkcg2T9.js b/compendium_v2/static/PillTable-5pkcg2T9.js
new file mode 100644
index 0000000000000000000000000000000000000000..1541d98bd2b67bb2f97eee5cbaf68625b7754d60
--- /dev/null
+++ b/compendium_v2/static/PillTable-5pkcg2T9.js
@@ -0,0 +1 @@
+import{j as t}from"./main-BIBsTO5W.js";import{C as c}from"./ColorPill-CqT_mR3a.js";import{T as u}from"./Table-HH9WOnMU.js";function b({columns:h,dataLookup:o,circle:p=!1,columnLookup:n=new Map}){const x=Array.from(new Set(Array.from(o.values()).flatMap(r=>Array.from(r.keys())))),d=h.map(r=>n.get(r)||r),j=Array.from(new Set(Array.from(o.values()).flatMap(r=>Array.from(r.values()).flatMap(e=>Array.from(e.keys()))))),f=x.filter(r=>{const e=n.get(r);return e?!d.includes(e):!d.includes(r)}).map(r=>n.get(r)||r);return t.jsxs(u,{className:"charging-struct-table",striped:!0,bordered:!0,children:[t.jsx("colgroup",{children:t.jsx("col",{span:1,style:{width:"12rem"}})}),t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{}),h.map(r=>t.jsx("th",{colSpan:1,children:r},r)),f.length?t.jsx("th",{children:"Other"}):null]})}),t.jsx("tbody",{children:Array.from(o.entries()).map(([r,e])=>t.jsxs("tr",{children:[t.jsx("td",{children:r}),d.map(s=>{const a=e.get(s);return a?t.jsx("td",{children:j.map(l=>{const i=a.get(l)||{};return t.jsx(c,{year:l,active:a.has(l),tooltip:i.tooltip,rounded:p},l)})},s):t.jsx("td",{},s)}),!!f.length&&t.jsx("td",{children:f.map(s=>{const a=e.get(s);return a?Array.from(Array.from(a.entries())).map(([i,m])=>t.jsx(c,{year:i,active:!0,tooltip:m.tooltip||s,rounded:p},i)):void 0})},`${r}-other`)]},r))})]})}export{b as P};
diff --git a/compendium_v2/static/Policy-rfVVQ2MG.js b/compendium_v2/static/Policy-rfVVQ2MG.js
new file mode 100644
index 0000000000000000000000000000000000000000..fc3377e552d60c147ef8b4960cd82e27b2c0179c
--- /dev/null
+++ b/compendium_v2/static/Policy-rfVVQ2MG.js
@@ -0,0 +1 @@
+import{a as h,r as v,F as E,j as y}from"./main-BIBsTO5W.js";import{u as _,q as b,k as g,i as S,D as j,F as k,f as R}from"./useData-BDYwoQEh.js";import{S as q}from"./report.js";import{N as C}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function G(){const e=h.c(21),{filterSelection:t,setFilterSelection:n}=v.useContext(E),{data:o,nrens:c}=_("/api/policy",n);let i,a;if(e[0]!==o||e[1]!==t.selectedNrens){const P=o?b(o):[];let u;e[4]!==t.selectedNrens?(u=x=>t.selectedNrens.includes(x.nren),e[4]=t.selectedNrens,e[5]=u):u=e[5],i=P.filter(u);const D=g(i);a=S(D,F),e[0]=o,e[1]=t.selectedNrens,e[2]=i,e[3]=a}else i=e[2],a=e[3];const d=a;let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[6]=p):p=e[6];let l;e[7]!==c?(l=c.values(),e[7]=c,e[8]=l):l=e[8];let s;e[9]!==l?(s={availableYears:p,availableNrens:[...l]},e[9]=l,e[10]=s):s=e[10];let f;e[11]!==t||e[12]!==n||e[13]!==s?(f=y.jsx(k,{filterOptions:s,filterSelection:t,setFilterSelection:n}),e[11]=t,e[12]=n,e[13]=s,e[14]=f):f=e[14];const N=f;let r;e[15]!==d?(r=y.jsx(R,{children:y.jsx(C,{data:d,columnTitle:"Policies",noDots:!0,dottedBorder:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=d,e[16]=r):r=e[16];let m;return e[17]!==N||e[18]!==i||e[19]!==r?(m=y.jsx(j,{title:"NREN Policies",description:"The table shows links to the NRENs policies. We only include links from the most recent response from each NREN.",category:q.Policy,filter:N,data:i,filename:"nren_policies",children:r}),e[17]=N,e[18]=i,e[19]=r,e[20]=m):m=e[20],m}function F(e,t){[["acceptable_use","Acceptable Use Policy"],["connectivity","Connectivity Policy"],["data_protection","Data Protection Policy"],["environmental","Environmental Policy"],["equal_opportunity","Equal Opportunity Policy"],["gender_equality","Gender Equality Plan"],["privacy_notice","Privacy Notice"],["strategic_plan","Strategic Plan"]].forEach(o=>{const[c,i]=o,a=t[c];a&&(e[i]=a)})}export{G as default};
diff --git a/compendium_v2/static/RemoteCampuses-B7LZiN42.js b/compendium_v2/static/RemoteCampuses-B7LZiN42.js
new file mode 100644
index 0000000000000000000000000000000000000000..8044f07c4e04dca965aed48e6db01b82a19b123e
--- /dev/null
+++ b/compendium_v2/static/RemoteCampuses-B7LZiN42.js
@@ -0,0 +1 @@
+import{a as v,j as n,r as Y,F as D}from"./main-BIBsTO5W.js";import{u as E,h as g,i as w,D as F,F as k,f as O}from"./useData-BDYwoQEh.js";import{S as T}from"./report.js";import{T as B}from"./Table-HH9WOnMU.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";function L({data:e,dottedBorder:t=!1,columns:c}){return Array.from(e.entries()).map(([s,a])=>Array.from(a.entries()).map(([i,d],l)=>n.jsxs("tr",{className:t?"dotted-border":"",children:[n.jsx("td",{className:"pt-3 nren-column text-nowrap",children:l===0&&s}),n.jsx("td",{className:"pt-3 year-column",children:i}),Object.keys(c).map((r,o)=>n.jsx("td",{className:"pt-3 blue-column",children:d[r]},o))]},s+i)))}function $(e){const t=v.c(15),{data:c,dottedBorder:s,columns:a}=e;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx("th",{className:"nren-column",children:n.jsx("span",{children:"NREN"})}),t[0]=i):i=t[0];let d;t[1]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx("th",{className:"year-column",children:n.jsx("span",{children:"Year"})}),t[1]=d):d=t[1];let l;t[2]!==a?(l=Object.values(a).map(A),t[2]=a,t[3]=l):l=t[3];let r;t[4]!==l?(r=n.jsx("thead",{children:n.jsxs("tr",{children:[i,d,l]})}),t[4]=l,t[5]=r):r=t[5];let o;t[6]!==a||t[7]!==c||t[8]!==s?(o=L({data:c,dottedBorder:s,columns:a}),t[6]=a,t[7]=c,t[8]=s,t[9]=o):o=t[9];let u;t[10]!==o?(u=n.jsx("tbody",{children:o}),t[10]=o,t[11]=u):u=t[11];let m;return t[12]!==r||t[13]!==u?(m=n.jsxs(B,{borderless:!0,className:"compendium-table",children:[r,u]}),t[12]=r,t[13]=u,t[14]=m):m=t[14],m}function A(e,t){return n.jsx("th",{className:"blue-column",children:n.jsx("span",{children:e})},t)}function M(){const e=v.c(29);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=x=>!!x.remote_campus_connectivity,e[0]=t):t=e[0];const c=t,{filterSelection:s,setFilterSelection:a}=Y.useContext(D),{data:i,years:d,nrens:l}=E("/api/remote-campuses",a,c);let r,o;if(e[1]!==i||e[2]!==s.selectedNrens||e[3]!==s.selectedYears){let x;e[6]!==s.selectedNrens||e[7]!==s.selectedYears?(x=C=>s.selectedYears.includes(C.year)&&s.selectedNrens.includes(C.nren),e[6]=s.selectedNrens,e[7]=s.selectedYears,e[8]=x):x=e[8],r=i.filter(x);const S=g(r);o=w(S,P),e[1]=i,e[2]=s.selectedNrens,e[3]=s.selectedYears,e[4]=r,e[5]=o}else r=e[4],o=e[5];const u=o;let m;e[9]!==d?(m=[...d],e[9]=d,e[10]=m):m=e[10];let f;e[11]!==l?(f=l.values(),e[11]=l,e[12]=f):f=e[12];let p;e[13]!==f?(p=[...f],e[13]=f,e[14]=p):p=e[14];let h;e[15]!==m||e[16]!==p?(h={availableYears:m,availableNrens:p},e[15]=m,e[16]=p,e[17]=h):h=e[17];let j;e[18]!==s||e[19]!==a||e[20]!==h?(j=n.jsx(k,{filterOptions:h,filterSelection:s,setFilterSelection:a}),e[18]=s,e[19]=a,e[20]=h,e[21]=j):j=e[21];const b=j;let N;e[22]===Symbol.for("react.memo_cache_sentinel")?(N={countries:"Countries with Remote Campuses",local_r_and_e_connection:"Local R&E Connection"},e[22]=N):N=e[22];const R=N;let _;e[23]!==u?(_=n.jsx(O,{children:n.jsx($,{data:u,columns:R,dottedBorder:!0})}),e[23]=u,e[24]=_):_=e[24];let y;return e[25]!==b||e[26]!==r||e[27]!==_?(y=n.jsx(F,{title:"NREN Connectivity to Remote Campuses in Other Countries",description:"NRENs are asked whether they have remote campuses in other countries, and if so, to list the countries where they have remote campuses and whether they are connected to the local R&E network.",category:T.ConnectedUsers,filter:b,data:r,filename:"nren_remote_campuses",children:_}),e[25]=b,e[26]=r,e[27]=_,e[28]=y):y=e[28],y}function P(e,t){for(const c of t){if(!c.remote_campus_connectivity)continue;const s=c.connections.map(U).join(", ");e.countries=s,e.local_r_and_e_connection=c.connections.map(J).join(", ")}}function J(e){return e.local_r_and_e_connection?"Yes":"No"}function U(e){return e.country}export{M as default};
diff --git a/compendium_v2/static/Schema-BuKG9dA7.js b/compendium_v2/static/Schema-BuKG9dA7.js
new file mode 100644
index 0000000000000000000000000000000000000000..966ad752552a05db62547e66940bdf6867acd25d
--- /dev/null
+++ b/compendium_v2/static/Schema-BuKG9dA7.js
@@ -0,0 +1 @@
+var d=(e=>(e.Unverified="unverified",e.Verified="verified",e.Edited="edited",e))(d||{}),i=(e=>(e.closed="closed",e.open="open",e.preview="preview",e.published="published",e))(i||{});export{i as S,d as V};
diff --git a/compendium_v2/static/ScrollableMatrix-Cdgj4J9X.js b/compendium_v2/static/ScrollableMatrix-Cdgj4J9X.js
new file mode 100644
index 0000000000000000000000000000000000000000..437f0bbf3df5be17870ddfa79a7d222526a575d1
--- /dev/null
+++ b/compendium_v2/static/ScrollableMatrix-Cdgj4J9X.js
@@ -0,0 +1 @@
+import{a as T,j as t}from"./main-BIBsTO5W.js";import{c as k}from"./report.js";import{T as A}from"./Table-HH9WOnMU.js";const L=t.jsx("span",{children:"✔"}),O=8;function Z(r){const e=T.c(12),{dataLookup:n,rowInfo:s,categoryLookup:h,isTickIcon:b}=r,l=b===void 0?!1:b;if(!n){let c;return e[0]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"matrix-border"}),e[0]=c):c=e[0],c}let m;if(e[1]!==h||e[2]!==n||e[3]!==l||e[4]!==s){let c;e[6]!==n||e[7]!==l||e[8]!==s?(c=v=>{const[p,E]=v,C=Object.entries(s).map(o=>{const[u,a]=o,i=[];return Array.from(n.entries()).sort(F).forEach(y=>{const[,_]=y;_.forEach(g=>{const f=g.get(p);if(!f)return;const N=f[a]!=null?Object.keys(f[a])[0]:null,I=N!=null&&l?L:N;i.push(I)})}),i.length?t.jsxs("tr",{children:[t.jsx("th",{className:"fixed-column",children:u}),i.map(D)]},u):null}),j=Array.from(n.entries()).sort(B).reduce((o,u)=>{const[a,i]=u;return Array.from(i.entries()).forEach(y=>{const[_,g]=y;g.get(p)&&(o[a]||(o[a]=[]),o[a].push(_))}),o},{});for(const o in j)j[o].sort($);return t.jsx(k,{title:E,startCollapsed:!0,theme:"-matrix",children:C?t.jsx("div",{className:"table-responsive",children:t.jsxs(A,{className:"matrix-table",bordered:!0,children:[t.jsx("thead",{children:(()=>{const o=Object.entries(j);return t.jsxs(t.Fragment,{children:[t.jsxs("tr",{children:[t.jsx("th",{className:"fixed-column"}),o.map(w)]}),t.jsxs("tr",{children:[t.jsx("th",{className:"fixed-column"}),o.flatMap(S)]})]})})()}),t.jsx("tbody",{children:C})]})}):t.jsx("div",{style:{paddingLeft:"5%"},children:t.jsx("p",{children:"No data available for this section."})})},p)},e[6]=n,e[7]=l,e[8]=s,e[9]=c):c=e[9],m=Object.entries(h).map(c),e[1]=h,e[2]=n,e[3]=l,e[4]=s,e[5]=m}else m=e[5];const x=m;let d;return e[10]!==x?(d=t.jsx("div",{className:"matrix-border",children:x}),e[10]=x,e[11]=d):d=e[11],d}function S(r){const[e,n]=r;return n.map(s=>t.jsx("th",{children:s},`${e}-${s}`))}function w(r){const[e,n]=r;return t.jsx("th",{colSpan:n.length,style:{width:`${n.length*O}rem`},children:e},e)}function $(r,e){return r-e}function B(r,e){const[n]=r,[s]=e;return n.localeCompare(s)}function D(r,e){return t.jsx("td",{children:r},e)}function F(r,e){const[n]=r,[s]=e;return n.localeCompare(s)}export{Z as S};
diff --git a/compendium_v2/static/SecurityControls-Ct-pN0fH.js b/compendium_v2/static/SecurityControls-Ct-pN0fH.js
new file mode 100644
index 0000000000000000000000000000000000000000..c03690a4699876f7ba6277cbdcb808d40ebbcb7b
--- /dev/null
+++ b/compendium_v2/static/SecurityControls-Ct-pN0fH.js
@@ -0,0 +1,2 @@
+import{a as T,r as E,F as L,j}from"./main-BIBsTO5W.js";import{u as R,g as A,F as I,D as M,f as O}from"./useData-BDYwoQEh.js";import{S as V}from"./report.js";import{P as U}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function X(){const e=T.c(51),{filterSelection:t,setFilterSelection:i}=E.useContext(L),{data:w,years:C,nrens:D}=R("/api/security-controls",i);let s,b;if(e[0]!==w||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let r;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(r=P=>t.selectedYears.includes(P.year)&&t.selectedNrens.includes(P.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=r):r=e[7],s=w.filter(r),b=A(s,"security_control_descriptions"),e[0]=w,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=b}else s=e[3],b=e[4];const Y=b;let l;e[8]!==C?(l=[...C],e[8]=C,e[9]=l):l=e[9];let o;e[10]!==D?(o=D.values(),e[10]=D,e[11]=o):o=e[11];let n;e[12]!==o?(n=[...o],e[12]=o,e[13]=n):n=e[13];let a;e[14]!==l||e[15]!==n?(a={availableYears:l,availableNrens:n},e[14]=l,e[15]=n,e[16]=a):a=e[16];let k;e[17]!==t||e[18]!==i||e[19]!==a?(k=j.jsx(I,{filterOptions:a,filterSelection:t,setFilterSelection:i,coloredYears:!0}),e[17]=t,e[18]=i,e[19]=a,e[20]=k):k=e[20];const F=k;let c,m,u,f,p,d,y,g,h,N,x;if(e[21]!==F||e[22]!==s){const r={anti_virus:"Anti Virus",anti_spam:"Anti-Spam",firewall:"Firewall",ddos_mitigation:"DDoS mitigation",monitoring:"Network monitoring",ips_ids:"IPS/IDS",acl:"ACL",segmentation:"Network segmentation",integrity_checking:"Integrity checking"};f=new Map(Object.entries(r).map(W)),u=M,h="Security Controls Used by NRENs",N=`The table below shows the different security controls, such as anti-virus, integrity checkers, and systemic firewalls used by 
+            NRENs to protect their assets. Where 'other' controls are mentioned, hover over the marker for more information.`,x=V.Policy,p=F,d=s,y="security_control_nrens_per_year",m=O,c=U,g=Object.values(r),e[21]=F,e[22]=s,e[23]=c,e[24]=m,e[25]=u,e[26]=f,e[27]=p,e[28]=d,e[29]=y,e[30]=g,e[31]=h,e[32]=N,e[33]=x}else c=e[23],m=e[24],u=e[25],f=e[26],p=e[27],d=e[28],y=e[29],g=e[30],h=e[31],N=e[32],x=e[33];let S;e[34]!==c||e[35]!==f||e[36]!==Y||e[37]!==g?(S=j.jsx(c,{columns:g,dataLookup:Y,circle:!0,columnLookup:f}),e[34]=c,e[35]=f,e[36]=Y,e[37]=g,e[38]=S):S=e[38];let _;e[39]!==m||e[40]!==S?(_=j.jsx(m,{children:S}),e[39]=m,e[40]=S,e[41]=_):_=e[41];let v;return e[42]!==u||e[43]!==p||e[44]!==d||e[45]!==y||e[46]!==_||e[47]!==h||e[48]!==N||e[49]!==x?(v=j.jsx(u,{title:h,description:N,category:x,filter:p,data:d,filename:y,children:_}),e[42]=u,e[43]=p,e[44]=d,e[45]=y,e[46]=_,e[47]=h,e[48]=N,e[49]=x,e[50]=v):v=e[50],v}function W(e){const[t,i]=e;return[i,t]}export{X as default};
diff --git a/compendium_v2/static/ServiceLevelTargets-DkcKRrX5.js b/compendium_v2/static/ServiceLevelTargets-DkcKRrX5.js
new file mode 100644
index 0000000000000000000000000000000000000000..04c38cf93c9c397da32f2152877e095c46352d32
--- /dev/null
+++ b/compendium_v2/static/ServiceLevelTargets-DkcKRrX5.js
@@ -0,0 +1,2 @@
+import{a as y,r as T,F as j,j as v}from"./main-BIBsTO5W.js";import{u as E,g as F,D as L,F as _,f as P}from"./useData-BDYwoQEh.js";import{S as R}from"./report.js";import{P as w}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function z(){const e=y.c(29),{filterSelection:t,setFilterSelection:c}=T.useContext(j),{data:N,years:h,nrens:g}=E("/api/service-management",c);let s,f;if(e[0]!==N||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let p;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(p=Y=>t.selectedYears.includes(Y.year)&&t.selectedNrens.includes(Y.nren)&&Y.service_level_targets!==null,e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=p):p=e[7],s=N.filter(p),f=F(s,"service_level_targets"),e[0]=N,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=f}else s=e[3],f=e[4];const x=f;let l,m;e[8]===Symbol.for("react.memo_cache_sentinel")?(l=["Yes","No"],m=new Map([[l[0],"True"],[l[1],"False"]]),e[8]=l,e[9]=m):(l=e[8],m=e[9]);const b=m;let r;e[10]!==h?(r=[...h],e[10]=h,e[11]=r):r=e[11];let a;e[12]!==g?(a=g.values(),e[12]=g,e[13]=a):a=e[13];let i;e[14]!==a?(i=[...a],e[14]=a,e[15]=i):i=e[15];let o;e[16]!==r||e[17]!==i?(o={availableYears:r,availableNrens:i},e[16]=r,e[17]=i,e[18]=o):o=e[18];let d;e[19]!==t||e[20]!==c||e[21]!==o?(d=v.jsx(_,{filterOptions:o,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=o,e[22]=d):d=e[22];const S=d;let n;e[23]!==x?(n=v.jsx(P,{children:v.jsx(w,{columns:l,columnLookup:b,dataLookup:x})}),e[23]=x,e[24]=n):n=e[24];let u;return e[25]!==S||e[26]!==s||e[27]!==n?(u=v.jsx(L,{title:"NRENs Offering Service Level Targets",description:`The table below shows which NRENs offer Service Levels Targets for their services. 
+            If NRENs have never responded to this question in the survey, they are excluded. `,category:R.Policy,filter:S,data:s,filename:"service_level_targets",children:n}),e[25]=S,e[26]=s,e[27]=n,e[28]=u):u=e[28],u}export{z as default};
diff --git a/compendium_v2/static/ServiceManagementFramework-0pFJ2GJW.js b/compendium_v2/static/ServiceManagementFramework-0pFJ2GJW.js
new file mode 100644
index 0000000000000000000000000000000000000000..cd9da633da503ac6ec51b15cf4be54d84c29b6fb
--- /dev/null
+++ b/compendium_v2/static/ServiceManagementFramework-0pFJ2GJW.js
@@ -0,0 +1,2 @@
+import{a as S,r as Y,F as b,j as N}from"./main-BIBsTO5W.js";import{u as j,g as E,D as _,F as y,f as P}from"./useData-BDYwoQEh.js";import{S as R}from"./report.js";import{P as C}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function A(){const e=S.c(29),{filterSelection:t,setFilterSelection:c}=Y.useContext(b),{data:h,years:v,nrens:g}=j("/api/service-management",c);let s,m;if(e[0]!==h||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=k=>t.selectedYears.includes(k.year)&&t.selectedNrens.includes(k.nren)&&k.service_management_framework!==null,e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],s=h.filter(u),m=E(s,"service_management_framework"),e[0]=h,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=m}else s=e[3],m=e[4];const w=m;let r,f;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=["Yes","No"],f=new Map([[r[0],"True"],[r[1],"False"]]),e[8]=r,e[9]=f):(r=e[8],f=e[9]);const F=f;let a;e[10]!==v?(a=[...v],e[10]=v,e[11]=a):a=e[11];let l;e[12]!==g?(l=g.values(),e[12]=g,e[13]=l):l=e[13];let o;e[14]!==l?(o=[...l],e[14]=l,e[15]=o):o=e[15];let i;e[16]!==a||e[17]!==o?(i={availableYears:a,availableNrens:o},e[16]=a,e[17]=o,e[18]=i):i=e[18];let p;e[19]!==t||e[20]!==c||e[21]!==i?(p=N.jsx(y,{filterOptions:i,filterSelection:t,setFilterSelection:c,coloredYears:!0}),e[19]=t,e[20]=c,e[21]=i,e[22]=p):p=e[22];const x=p;let n;e[23]!==w?(n=N.jsx(P,{children:N.jsx(C,{columns:r,columnLookup:F,dataLookup:w})}),e[23]=w,e[24]=n):n=e[24];let d;return e[25]!==x||e[26]!==s||e[27]!==n?(d=N.jsx(_,{title:"NRENs Operating a Formal Service Management Framework",description:`The chart below shows which NRENs operate a formal service management framework 
+            for all of their services. NRENs which have never answered this question cannot be selected.`,category:R.Policy,filter:x,data:s,filename:"service_management_framework",children:n}),e[25]=x,e[26]=s,e[27]=n,e[28]=d):d=e[28],d}export{A as default};
diff --git a/compendium_v2/static/Services-TWQx7C9G.js b/compendium_v2/static/Services-TWQx7C9G.js
new file mode 100644
index 0000000000000000000000000000000000000000..9f690e2775a550a3601638a5493fbd815af4bcc1
--- /dev/null
+++ b/compendium_v2/static/Services-TWQx7C9G.js
@@ -0,0 +1,8 @@
+import{X as te,a as K,j as s,r as se,F as ie}from"./main-BIBsTO5W.js";import{e as g,S as re}from"./report.js";import{u as oe,g as ae,F as le,D as ne,f as ce}from"./useData-BDYwoQEh.js";import{T as de}from"./Table-HH9WOnMU.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";function J(h){return te({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 15.586-3.293-3.293-1.414 1.414L10 18.414l9.707-9.707-1.414-1.414z"},child:[]}]})(h)}function me(h){const e=K.c(9),{year:i,active:t,serviceInfo:l,tickServiceIndex:u,current:o}=h;let r="No additional information available";if(l!==void 0){const x=l.service_name;let c=l.product_name,d=l.official_description,m=l.additional_information;(c!=""||d!=""||m!="")&&(c=c||"N/A",d=d||"N/A",m=m||"N/A",r=x+`
+`+c+`
+
+Description: `+d+`
+Information: `+m)}let f="";r!=="No additional information available"&&(f="pill-shadow"),r=`${i}: ${r}`;let a;e[0]!==t||e[1]!==o||e[2]!==f||e[3]!==u||e[4]!==r?(a=t&&o?s.jsx("div",{"data-description":r,className:" bottom-tooltip ",style:{width:"30px",height:"30px",margin:"2px"},children:s.jsx(J,{className:`rounded-pill color-of-the-current-service-${u%13} bottom-tooltip ${f}`})}):t&&!o?s.jsx("div",{"data-description":r,className:" bottom-tooltip ",style:{width:"30px",height:"30px",margin:"2px"},children:s.jsx(J,{className:`rounded-pill color-of-the-previous-service-${u%13} bottom-tooltip ${f}`})}):s.jsx("div",{className:"rounded-pill bg-color-of-the-year-blank",style:{width:"30px",height:"30px",margin:"2px"},children:" "}),e[0]=t,e[1]=o,e[2]=f,e[3]=u,e[4]=r,e[5]=a):a=e[5];let n;return e[6]!==a||e[7]!==i?(n=s.jsx("div",{className:"d-inline-block",children:a},i),e[6]=a,e[7]=i,e[8]=n):n=e[8],n}const v={};v[g.network_services]="network";v[g.isp_support]="ISP support";v[g.security]="security";v[g.identity]="identity";v[g.collaboration]="collaboration";v[g.multimedia]="multimedia";v[g.storage_and_hosting]="storage and hosting";v[g.professional_services]="professional";function je(h){const e=K.c(62),{category:i}=h,{filterSelection:t,setFilterSelection:l}=se.useContext(ie),{data:u,years:o,nrens:r}=oe("/api/nren-services",l),f=Math.max(...t.selectedYears);let a,n,x,c,d,m,b,N,j,y,_,w,S;if(e[0]!==i||e[1]!==t||e[2]!==f||e[3]!==r||e[4]!==u||e[5]!==l||e[6]!==o){let L;e[20]!==i||e[21]!==t.selectedNrens||e[22]!==t.selectedYears?(L=p=>t.selectedYears.includes(p.year)&&t.selectedNrens.includes(p.nren)&&p.service_category==i,e[20]=i,e[21]=t.selectedNrens,e[22]=t.selectedYears,e[23]=L):L=e[23];const P=u.filter(L),z={};P.forEach(p=>{z[p.service_name]=p.service_description});const G=Object.entries(z).sort(he),Q=ae(P,"service_name");let $;e[24]!==o?($=[...o],e[24]=o,e[25]=$):$=e[25];let D;e[26]!==r?(D=r.values(),e[26]=r,e[27]=D):D=e[27];let T;e[28]!==D?(T=[...D],e[28]=D,e[29]=T):T=e[29];let E;e[30]!==$||e[31]!==T?(E={availableYears:$,availableNrens:T},e[30]=$,e[31]=T,e[32]=E):E=e[32];let R;e[33]!==t||e[34]!==l||e[35]!==E?(R=s.jsx(le,{filterOptions:E,filterSelection:t,setFilterSelection:l}),e[33]=t,e[34]=l,e[35]=E,e[36]=R):R=e[36];const U=R;let A;e[37]!==o?(A=p=>o.has(p),e[37]=o,e[38]=A):A=e[38];const V=[...t.selectedYears.filter(A)].sort();x=ne,j="NREN "+v[i]+" services matrix",y=`The service matrix shows the services NRENs offer to their users. These 
+            services are grouped thematically, with navigation possible via. the side menu. NRENs 
+            are invited to give extra information about their services; where this is provided, 
+            you will see a black circle around the marker. Hover over the marker to read more.`,_=re.Services,w=U,S=P,d="nren_services",n=ce,a=de,m="service-table",b=!0;let B;e[39]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx("th",{}),e[39]=B):B=e[39];const M=s.jsxs("tr",{children:[B,G.map(pe)]});e[40]!==M?(N=s.jsx("thead",{children:M}),e[40]=M,e[41]=N):N=e[41],c=Array.from(Q.entries()).map(p=>{const[H,X]=p;return s.jsxs("tr",{children:[s.jsx("td",{className:"bold-text",children:H}),G.map((W,Z)=>{const[O]=W;return s.jsx("td",{children:X.has(O)&&V.map(I=>{const q=X.get(O),ee=q.get(I);return s.jsx(me,{year:I,active:q.has(I),serviceInfo:ee,tickServiceIndex:Z,current:I==f},I)})},O)})]},H)}),e[0]=i,e[1]=t,e[2]=f,e[3]=r,e[4]=u,e[5]=l,e[6]=o,e[7]=a,e[8]=n,e[9]=x,e[10]=c,e[11]=d,e[12]=m,e[13]=b,e[14]=N,e[15]=j,e[16]=y,e[17]=_,e[18]=w,e[19]=S}else a=e[7],n=e[8],x=e[9],c=e[10],d=e[11],m=e[12],b=e[13],N=e[14],j=e[15],y=e[16],_=e[17],w=e[18],S=e[19];let k;e[42]!==c?(k=s.jsx("tbody",{children:c}),e[42]=c,e[43]=k):k=e[43];let C;e[44]!==a||e[45]!==k||e[46]!==m||e[47]!==b||e[48]!==N?(C=s.jsxs(a,{className:m,bordered:b,children:[N,k]}),e[44]=a,e[45]=k,e[46]=m,e[47]=b,e[48]=N,e[49]=C):C=e[49];let Y;e[50]!==n||e[51]!==C?(Y=s.jsx(n,{children:C}),e[50]=n,e[51]=C,e[52]=Y):Y=e[52];let F;return e[53]!==x||e[54]!==d||e[55]!==Y||e[56]!==j||e[57]!==y||e[58]!==_||e[59]!==w||e[60]!==S?(F=s.jsx(x,{title:j,description:y,category:_,filter:w,data:S,filename:d,children:Y}),e[53]=x,e[54]=d,e[55]=Y,e[56]=j,e[57]=y,e[58]=_,e[59]=w,e[60]=S,e[61]=F):F=e[61],F}function pe(h,e){const[i,t]=h;return s.jsx("th",{"data-description":t,className:`bottom-tooltip color-of-the-service-header-${e%13}`,children:i},i)}function he(h,e){return h[0].toLowerCase()<e[0].toLowerCase()?-1:1}export{je as default};
diff --git a/compendium_v2/static/ServicesOffered-DAgKmLaL.js b/compendium_v2/static/ServicesOffered-DAgKmLaL.js
new file mode 100644
index 0000000000000000000000000000000000000000..b9273ff0e1e468604db53a9bf706218083410e3b
--- /dev/null
+++ b/compendium_v2/static/ServicesOffered-DAgKmLaL.js
@@ -0,0 +1 @@
+import{a as _,r as w,F as j,j as c}from"./main-BIBsTO5W.js";import{u as k,r as C,D as E,F as R,f as Y}from"./useData-BDYwoQEh.js";import{S as F,U as I}from"./report.js";import{S as P}from"./ScrollableMatrix-Cdgj4J9X.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function q(){const e=_.c(29),{filterSelection:t,setFilterSelection:n}=w.useContext(j),{data:h,years:g,nrens:v}=k("/api/services-offered",n);let s,f;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==h){let y;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(y=S=>t.selectedYears.includes(S.year)&&t.selectedNrens.includes(S.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=y):y=e[7],s=h.filter(y),f=C(s,["service_category"],"user_category"),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=h,e[3]=s,e[4]=f}else s=e[3],f=e[4];const N=f;let r;e[8]!==g?(r=[...g],e[8]=g,e[9]=r):r=e[9];let i;e[10]!==v?(i=v.values(),e[10]=v,e[11]=i):i=e[11];let o;e[12]!==i?(o=[...i],e[12]=i,e[13]=o):o=e[13];let a;e[14]!==r||e[15]!==o?(a={availableYears:r,availableNrens:o},e[14]=r,e[15]=o,e[16]=a):a=e[16];let d;e[17]!==t||e[18]!==n||e[19]!==a?(d=c.jsx(R,{filterOptions:a,filterSelection:t,setFilterSelection:n}),e[17]=t,e[18]=n,e[19]=a,e[20]=d):d=e[20];const x=d;let p;e[21]===Symbol.for("react.memo_cache_sentinel")?(p={"Identity/T&I":"identity",Multimedia:"multimedia","Professional services":"professional_services","Network services":"network_services",Collaboration:"collaboration",Security:"security","Storage and Hosting":"storage_and_hosting","ISP support":"isp_support"},e[21]=p):p=e[21];const b=p;let m;e[22]===Symbol.for("react.memo_cache_sentinel")?(m=c.jsx("span",{children:"The table below shows the different types of users served by NRENs. Selecting the institution type will expand the detail to show the categories of services offered by NRENs, with a tick indicating that the NREN offers a specific category of service to the type of user."}),e[22]=m):m=e[22];let l;e[23]!==N?(l=c.jsx(Y,{children:c.jsx(P,{dataLookup:N,rowInfo:b,categoryLookup:I,isTickIcon:!0})}),e[23]=N,e[24]=l):l=e[24];let u;return e[25]!==x||e[26]!==s||e[27]!==l?(u=c.jsx(E,{title:"Services Offered by NRENs by Types of Users",description:m,category:F.Policy,filter:x,data:s,filename:"nren_services_offered",children:l}),e[25]=x,e[26]=s,e[27]=l,e[28]=u):u=e[28],u}export{q as default};
diff --git a/compendium_v2/static/SiemVendors-AspEWRsK.js b/compendium_v2/static/SiemVendors-AspEWRsK.js
new file mode 100644
index 0000000000000000000000000000000000000000..17d64ce2c227cb8b4b32ff86815ee4c851cc369c
--- /dev/null
+++ b/compendium_v2/static/SiemVendors-AspEWRsK.js
@@ -0,0 +1 @@
+import{a as v,r as Y,F as j,j as u}from"./main-BIBsTO5W.js";import{u as C,g as _,D as g,F as k,f as F}from"./useData-BDYwoQEh.js";import{S as R}from"./report.js";import{P as D}from"./PillTable-5pkcg2T9.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./ColorPill-CqT_mR3a.js";import"./Table-HH9WOnMU.js";function Q(){const e=v.c(28),{filterSelection:t,setFilterSelection:n}=Y.useContext(j),{data:x,years:N,nrens:S}=C("/api/siem-vendors",n);let s,c;if(e[0]!==x||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let p;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(p=h=>t.selectedYears.includes(h.year)&&t.selectedNrens.includes(h.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=p):p=e[7],s=x.filter(p),c=_(s,"vendor_names"),e[0]=x,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=s,e[4]=c}else s=e[3],c=e[4];const b=c;let r;e[8]!==N?(r=[...N],e[8]=N,e[9]=r):r=e[9];let l;e[10]!==S?(l=S.values(),e[10]=S,e[11]=l):l=e[11];let a;e[12]!==l?(a=[...l],e[12]=l,e[13]=a):a=e[13];let o;e[14]!==r||e[15]!==a?(o={availableYears:r,availableNrens:a},e[14]=r,e[15]=a,e[16]=o):o=e[16];let d;e[17]!==t||e[18]!==n||e[19]!==o?(d=u.jsx(k,{filterOptions:o,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=o,e[20]=d):d=e[20];const y=d;let m;e[21]===Symbol.for("react.memo_cache_sentinel")?(m=["Splunk","IBM Qradar","Exabeam","LogRythm","Securonix"],e[21]=m):m=e[21];const E=m;let i;e[22]!==b?(i=u.jsx(F,{children:u.jsx(D,{columns:E,dataLookup:b,circle:!0})}),e[22]=b,e[23]=i):i=e[23];let f;return e[24]!==y||e[25]!==s||e[26]!==i?(f=u.jsx(g,{title:"Vendors of SIEM/SOC systems used by NRENs",description:"The table below shows the kinds of vendors of SIEM/SOC systems used by NRENs.",category:R.Network,filter:y,data:s,filename:"siem_vendor_nrens_per_year",children:i}),e[24]=y,e[25]=s,e[26]=i,e[27]=f):f=e[27],f}export{Q as default};
diff --git a/compendium_v2/static/StaffGraph-CRnD7Dbf.js b/compendium_v2/static/StaffGraph-CRnD7Dbf.js
new file mode 100644
index 0000000000000000000000000000000000000000..927f5c1410a06d3ba69af11a0cba53b3bb90f74d
--- /dev/null
+++ b/compendium_v2/static/StaffGraph-CRnD7Dbf.js
@@ -0,0 +1 @@
+import{a as O,r as $,F as B,j as x}from"./main-BIBsTO5W.js";import{B as A}from"./index-BBrAyDR9.js";import{C as g,a as M,L as P,B as q,p as W,c as G,d as V,u as z,l as H,D as J,F as K}from"./useData-BDYwoQEh.js";import{S as Q}from"./report.js";import{h as U,W as X}from"./HTMLLegendPlugin-BO0IHS_R.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";g.register(M,P,q,W,G,V);const Z={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(t){let e=t.dataset.label||"";return t.parsed.x!==null&&(e+=`: ${t.parsed.x}%`),e}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:(t,e)=>`${e*10}%`}},x2:{ticks:{callback:t=>typeof t=="number"?`${t}%`:t},grid:{drawOnChartArea:!1},afterDataLimits:function(t){const e=Object.keys(g.instances);let i=-999999,s=999999;for(const n of e)g.instances[n]&&t.chart.scales.x2&&(s=Math.min(g.instances[n].scales.x.min,s),i=Math.max(g.instances[n].scales.x.max,i));t.chart.scales.x2.options.min=s,t.chart.scales.x2.options.max=i,t.chart.scales.x2.min=s,t.chart.scales.x2.max=i}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};function re(t){const e=O.c(39),{roles:i}=t,s=i===void 0?!1:i;let n;e[0]!==s?(n=function(r){return s&&r.technical_fte>0&&r.non_technical_fte>0||!s&&r.permanent_fte>0&&r.subcontracted_fte>0},e[0]=s,e[1]=n):n=e[1];const D=n,{filterSelection:a,setFilterSelection:y}=$.useContext(B),{data:k,years:S,nrens:T}=z("/api/staff",y,D);let l,N;if(e[2]!==k||e[3]!==a.selectedNrens||e[4]!==a.selectedYears||e[5]!==s){let u;e[8]!==a.selectedNrens||e[9]!==a.selectedYears?(u=r=>a.selectedYears.includes(r.year)&&a.selectedNrens.includes(r.nren),e[8]=a.selectedNrens,e[9]=a.selectedYears,e[10]=u):u=e[10],l=k.filter(u),N=H(l,s,a.selectedYears[0]),e[2]=k,e[3]=a.selectedNrens,e[4]=a.selectedYears,e[5]=s,e[6]=l,e[7]=N}else l=e[6],N=e[7];const w=N;let o;e[11]!==S?(o=[...S],e[11]=S,e[12]=o):o=e[12];let c;e[13]!==T?(c=T.values(),e[13]=T,e[14]=c):c=e[14];let f;e[15]!==c?(f=[...c],e[15]=c,e[16]=f):f=e[16];let d;e[17]!==o||e[18]!==f?(d={availableYears:o,availableNrens:f},e[17]=o,e[18]=f,e[19]=d):d=e[19];let b;e[20]!==a||e[21]!==y||e[22]!==d?(b=x.jsx(K,{max1year:!0,filterOptions:d,filterSelection:a,setFilterSelection:y}),e[20]=a,e[21]=y,e[22]=d,e[23]=b):b=e[23];const R=b,Y=l.length,L=Math.max(Y*1.5,20),v=s?"Roles of NREN employees (Technical v. Non-Technical)":"Types of Employment within NRENs",F=s?"The graph shows division of staff FTEs (Full Time Equivalents) between technical and non-techical role per NREN. The exact figures of how many FTEs are dedicated to these two different functional areas can be accessed by downloading the data in either CSV or Excel format":"The graph shows the percentage of NREN staff who are permanent, and those who are subcontracted. The structures and models of NRENs differ across the community, which is reflected in the types of employment offered. The NRENs are asked to provide the Full Time Equivalents (FTEs) rather absolute numbers of staff.",C=s?"roles_of_nren_employees":"types_of_employment_for_nrens",j=`${L}rem`;let m;e[24]!==j?(m={height:j},e[24]=j,e[25]=m):m=e[25];let E;e[26]===Symbol.for("react.memo_cache_sentinel")?(E=[U],e[26]=E):E=e[26];let h;e[27]!==w?(h=x.jsx(A,{data:w,options:Z,plugins:E}),e[27]=w,e[28]=h):h=e[28];let p;e[29]!==m||e[30]!==h?(p=x.jsx(X,{children:x.jsx("div",{className:"chart-container",style:m,children:h})}),e[29]=m,e[30]=h,e[31]=p):p=e[31];let _;return e[32]!==F||e[33]!==C||e[34]!==R||e[35]!==l||e[36]!==p||e[37]!==v?(_=x.jsx(J,{title:v,description:F,category:Q.Organisation,filter:R,data:l,filename:C,children:p}),e[32]=F,e[33]=C,e[34]=R,e[35]=l,e[36]=p,e[37]=v,e[38]=_):_=e[38],_}export{re as default};
diff --git a/compendium_v2/static/StaffGraphAbsolute-1_iTYcqR.js b/compendium_v2/static/StaffGraphAbsolute-1_iTYcqR.js
new file mode 100644
index 0000000000000000000000000000000000000000..999e17ced2764eea075165f546870ba427d88e43
--- /dev/null
+++ b/compendium_v2/static/StaffGraphAbsolute-1_iTYcqR.js
@@ -0,0 +1 @@
+import{a as j,r as D,F as Y,j as d}from"./main-BIBsTO5W.js";import{B}from"./index-BBrAyDR9.js";import{C as T,a as P,L as A,B as O,p as q,c as L,d as $,u as k,m as G,D as M,F as W,f as z}from"./useData-BDYwoQEh.js";import{S as H}from"./report.js";import{p as I}from"./chartjs-plugin-datalabels.esm-D8EJYoxA.js";import{a as J}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";T.register(P,A,O,q,L,$);function ie(){const e=j.c(38),{filterSelection:t,setFilterSelection:a}=D.useContext(Y),{data:S,years:p,nrens:u}=k("/api/staff",a);let i,n,s,g;if(e[0]!==S||e[1]!==t||e[2]!==u||e[3]!==a||e[4]!==p){let y;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(y=_=>t.selectedYears.includes(_.year)&&t.selectedNrens.includes(_.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=y):y=e[11],s=S.filter(y),n=G(s,t.selectedYears);let c;e[12]!==p?(c=[...p],e[12]=p,e[13]=c):c=e[13];let f;e[14]!==u?(f=u.values(),e[14]=u,e[15]=f):f=e[15];let m;e[16]!==f?(m=[...f],e[16]=f,e[17]=m):m=e[17];let h;e[18]!==c||e[19]!==m?(h={availableYears:c,availableNrens:m},e[18]=c,e[19]=m,e[20]=h):h=e[20];let b;e[21]!==t||e[22]!==a||e[23]!==h?(b=d.jsx(W,{filterOptions:h,filterSelection:t,setFilterSelection:a}),e[21]=t,e[22]=a,e[23]=h,e[24]=b):b=e[24],i=b,g=Array.from(new Set(s.map(K))),e[0]=S,e[1]=t,e[2]=u,e[3]=a,e[4]=p,e[5]=i,e[6]=n,e[7]=s,e[8]=g}else i=e[5],n=e[6],s=e[7],g=e[8];const v=g.length,w=Math.max(v*t.selectedYears.length*1.5+5,50),C='The graph shows the total number of employees (in FTEs) at each NREN. When filling in the survey, NRENs are asked about the number of staff engaged (whether permanent or subcontracted) in NREN activities. Please note that diversity within the NREN community means that there is not one single definition of what constitutes "NREN activities". Therefore due to differences in how their organisations are arranged, and the relationship, in some cases, with parent organisations, there can be inconsistencies in how NRENs approach this question.';let N;e[25]===Symbol.for("react.memo_cache_sentinel")?(N=J({tooltipPrefix:"FTEs",title:"Full-Time Equivalents"}),e[25]=N):N=e[25];const F=N,R=`${w}rem`;let r;e[26]!==R?(r={height:R},e[26]=R,e[27]=r):r=e[27];let E;e[28]===Symbol.for("react.memo_cache_sentinel")?(E=[I],e[28]=E):E=e[28];let l;e[29]!==n?(l=d.jsx(B,{data:n,options:F,plugins:E}),e[29]=n,e[30]=l):l=e[30];let o;e[31]!==r||e[32]!==l?(o=d.jsx(z,{children:d.jsx("div",{className:"chart-container",style:r,children:l})}),e[31]=r,e[32]=l,e[33]=o):o=e[33];let x;return e[34]!==i||e[35]!==s||e[36]!==o?(x=d.jsx(M,{title:"Number of NREN Employees",description:C,category:H.Organisation,filter:i,data:s,filename:"number_of_nren_employees",children:o}),e[34]=i,e[35]=s,e[36]=o,e[37]=x):x=e[37],x}function K(e){return e.nren}export{ie as default};
diff --git a/compendium_v2/static/SubOrganisation-D8wGO2zm.js b/compendium_v2/static/SubOrganisation-D8wGO2zm.js
new file mode 100644
index 0000000000000000000000000000000000000000..8ee5d8310f745451de5e4326a23b4f8032893f9d
--- /dev/null
+++ b/compendium_v2/static/SubOrganisation-D8wGO2zm.js
@@ -0,0 +1 @@
+import{a as S,r as Y,F as y,j as p}from"./main-BIBsTO5W.js";import{u as C,h as j,i as v,D as E,F,f as R}from"./useData-BDYwoQEh.js";import{S as O}from"./report.js";import{N as T}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function q(){const e=S.c(27),{filterSelection:t,setFilterSelection:s}=Y.useContext(y),{data:r,years:g,nrens:N}=C("/api/sub-organizations",s);let a,d;if(e[0]!==r||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let u;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(u=b=>t.selectedYears.includes(b.year)&&t.selectedNrens.includes(b.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=u):u=e[7],a=r.filter(u);const D=j(a);d=v(D,P),e[0]=r,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=a,e[4]=d}else a=e[3],d=e[4];const h=d;let n;e[8]!==g?(n=[...g],e[8]=g,e[9]=n):n=e[9];let o;e[10]!==N?(o=N.values(),e[10]=N,e[11]=o):o=e[11];let i;e[12]!==o?(i=[...o],e[12]=o,e[13]=i):i=e[13];let l;e[14]!==n||e[15]!==i?(l={availableYears:n,availableNrens:i},e[14]=n,e[15]=i,e[16]=l):l=e[16];let f;e[17]!==t||e[18]!==s||e[19]!==l?(f=p.jsx(F,{filterOptions:l,filterSelection:t,setFilterSelection:s}),e[17]=t,e[18]=s,e[19]=l,e[20]=f):f=e[20];const x=f;let c;e[21]!==h?(c=p.jsx(R,{children:p.jsx(T,{data:h,columnTitle:"Suborganisation and Role",dottedBorder:!0})}),e[21]=h,e[22]=c):c=e[22];let m;return e[23]!==x||e[24]!==a||e[25]!==c?(m=p.jsx(E,{title:"NREN Sub-Organisations",description:"NRENs are asked whether they have any sub-organisations, and to give the name and role of these organisations. These organisations can include HPC centres or IDC federations, amongst many others.",category:O.Organisation,filter:x,data:a,filename:"nren_suborganisations",children:c}),e[23]=x,e[24]=a,e[25]=c,e[26]=m):m=e[26],m}function P(e,t){for(const s of t.sort($)){const r=`${s.name} (${s.role})`;e[r]=r}}function $(e,t){return e.name.localeCompare(t.name)}export{q as default};
diff --git a/compendium_v2/static/SurveyContainerComponent-D59B1_HE.js b/compendium_v2/static/SurveyContainerComponent-D59B1_HE.js
new file mode 100644
index 0000000000000000000000000000000000000000..758d39121fb7ea3e412bde53cb013d6c6d456267
--- /dev/null
+++ b/compendium_v2/static/SurveyContainerComponent-D59B1_HE.js
@@ -0,0 +1,48 @@
+import{Y as vh,Z as bh,a as Bo,j as de,r as at,C as Ch,e as xa,R as xr,g as Gu,$ as wh,a0 as Ph,b as xh}from"./main-BIBsTO5W.js";import{D as Vh,k as mt}from"./index-CuSQpLoM.js";import{V as yi}from"./Schema-BuKG9dA7.js";import{S as Sh}from"./survey.js";import"./xlsx-CxqzP9DR.js";import"./Table-HH9WOnMU.js";var qo={exports:{}};/*!
+ * surveyjs - Survey JavaScript library v1.12.20
+ * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
+ * License: MIT (http://www.opensource.org/licenses/mit-license.php)
+ */var Oh=qo.exports,zu;function Zu(){return zu||(zu=1,function(ne,S){(function(O,P){ne.exports=P()})(Oh,function(){return function(z){var O={};function P(B){if(O[B])return O[B].exports;var R=O[B]={i:B,l:!1,exports:{}};return z[B].call(R.exports,R,R.exports,P),R.l=!0,R.exports}return P.m=z,P.c=O,P.d=function(B,R,D){P.o(B,R)||Object.defineProperty(B,R,{enumerable:!0,get:D})},P.r=function(B){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(B,"__esModule",{value:!0})},P.t=function(B,R){if(R&1&&(B=P(B)),R&8||R&4&&typeof B=="object"&&B&&B.__esModule)return B;var D=Object.create(null);if(P.r(D),Object.defineProperty(D,"default",{enumerable:!0,value:B}),R&2&&typeof B!="string")for(var C in B)P.d(D,C,(function(h){return B[h]}).bind(null,C));return D},P.n=function(B){var R=B&&B.__esModule?function(){return B.default}:function(){return B};return P.d(R,"a",R),R},P.o=function(B,R){return Object.prototype.hasOwnProperty.call(B,R)},P.p="",P(P.s="./src/entries/core.ts")}({"./src/entries/core.ts":function(z,O,P){P.r(O),P.d(O,"Version",function(){return hi}),P.d(O,"ReleaseDate",function(){return ca}),P.d(O,"checkLibraryVersion",function(){return jp}),P.d(O,"setLicenseKey",function(){return Np}),P.d(O,"slk",function(){return Hl}),P.d(O,"hasLicense",function(){return qp}),P.d(O,"settings",function(){return I}),P.d(O,"Helpers",function(){return h}),P.d(O,"AnswerCountValidator",function(){return ao}),P.d(O,"EmailValidator",function(){return Xr}),P.d(O,"NumericValidator",function(){return so}),P.d(O,"RegexValidator",function(){return Yr}),P.d(O,"SurveyValidator",function(){return Jt}),P.d(O,"TextValidator",function(){return Kr}),P.d(O,"ValidatorResult",function(){return ft}),P.d(O,"ExpressionValidator",function(){return ei}),P.d(O,"ValidatorRunner",function(){return Zr}),P.d(O,"ItemValue",function(){return re}),P.d(O,"Base",function(){return fe}),P.d(O,"Event",function(){return Vn}),P.d(O,"EventBase",function(){return pt}),P.d(O,"ArrayChanges",function(){return zt}),P.d(O,"ComputedUpdater",function(){return De}),P.d(O,"SurveyError",function(){return et}),P.d(O,"SurveyElementCore",function(){return ir}),P.d(O,"SurveyElement",function(){return _e}),P.d(O,"DragTypeOverMeEnum",function(){return or}),P.d(O,"CalculatedValue",function(){return l}),P.d(O,"CustomError",function(){return ot}),P.d(O,"AnswerRequiredError",function(){return $r}),P.d(O,"OneAnswerRequiredError",function(){return to}),P.d(O,"RequreNumericError",function(){return Jr}),P.d(O,"ExceedSizeError",function(){return Gr}),P.d(O,"LocalizableString",function(){return gt}),P.d(O,"LocalizableStrings",function(){return Hr}),P.d(O,"HtmlConditionItem",function(){return f}),P.d(O,"UrlConditionItem",function(){return g}),P.d(O,"ChoicesRestful",function(){return H}),P.d(O,"ChoicesRestfull",function(){return ye}),P.d(O,"FunctionFactory",function(){return he}),P.d(O,"registerFunction",function(){return It}),P.d(O,"ConditionRunner",function(){return Ue}),P.d(O,"ExpressionRunner",function(){return jt}),P.d(O,"ExpressionExecutor",function(){return Lr}),P.d(O,"Operand",function(){return Mt}),P.d(O,"Const",function(){return Rr}),P.d(O,"BinaryOperand",function(){return xn}),P.d(O,"Variable",function(){return Ir}),P.d(O,"FunctionOperand",function(){return Ti}),P.d(O,"ArrayOperand",function(){return Ht}),P.d(O,"UnaryOperand",function(){return Tr}),P.d(O,"ConditionsParser",function(){return Yn}),P.d(O,"ProcessValue",function(){return Re}),P.d(O,"JsonError",function(){return Ke}),P.d(O,"JsonIncorrectTypeError",function(){return ht}),P.d(O,"JsonMetadata",function(){return en}),P.d(O,"JsonMetadataClass",function(){return ge}),P.d(O,"JsonMissingTypeError",function(){return ut}),P.d(O,"JsonMissingTypeErrorBase",function(){return $e}),P.d(O,"JsonObject",function(){return je}),P.d(O,"JsonObjectProperty",function(){return lt}),P.d(O,"JsonRequiredPropertyError",function(){return Qe}),P.d(O,"JsonUnknownPropertyError",function(){return vt}),P.d(O,"Serializer",function(){return j}),P.d(O,"property",function(){return x}),P.d(O,"propertyArray",function(){return me}),P.d(O,"MatrixDropdownCell",function(){return ys}),P.d(O,"MatrixDropdownRowModelBase",function(){return Kt}),P.d(O,"QuestionMatrixDropdownModelBase",function(){return mr}),P.d(O,"MatrixDropdownColumn",function(){return ri}),P.d(O,"matrixDropdownColumnTypes",function(){return fs}),P.d(O,"QuestionMatrixDropdownRenderedCell",function(){return _t}),P.d(O,"QuestionMatrixDropdownRenderedRow",function(){return hs}),P.d(O,"QuestionMatrixDropdownRenderedErrorRow",function(){return Ra}),P.d(O,"QuestionMatrixDropdownRenderedTable",function(){return gs}),P.d(O,"MatrixDropdownRowModel",function(){return Da}),P.d(O,"QuestionMatrixDropdownModel",function(){return ms}),P.d(O,"MatrixDynamicRowModel",function(){return ja}),P.d(O,"QuestionMatrixDynamicModel",function(){return Ps}),P.d(O,"MatrixRowModel",function(){return Xa}),P.d(O,"MatrixCells",function(){return el}),P.d(O,"QuestionMatrixModel",function(){return js}),P.d(O,"QuestionMatrixBaseModel",function(){return yt}),P.d(O,"MultipleTextItemModel",function(){return Bs}),P.d(O,"MultipleTextCell",function(){return ks}),P.d(O,"MultipleTextErrorCell",function(){return cl}),P.d(O,"MutlipleTextErrorRow",function(){return ul}),P.d(O,"MutlipleTextRow",function(){return Fs}),P.d(O,"QuestionMultipleTextModel",function(){return So}),P.d(O,"MultipleTextEditorModel",function(){return ll}),P.d(O,"PanelModel",function(){return ai}),P.d(O,"PanelModelBase",function(){return Os}),P.d(O,"QuestionRowModel",function(){return za}),P.d(O,"FlowPanelModel",function(){return pl}),P.d(O,"PageModel",function(){return Es}),P.d(O,"DefaultTitleModel",function(){return Bc}),P.d(O,"Question",function(){return Be}),P.d(O,"QuestionNonValue",function(){return Oo}),P.d(O,"QuestionEmptyModel",function(){return fl}),P.d(O,"QuestionCheckboxBase",function(){return li}),P.d(O,"QuestionSelectBase",function(){return Ts}),P.d(O,"QuestionCheckboxModel",function(){return ci}),P.d(O,"QuestionTagboxModel",function(){return Qs}),P.d(O,"QuestionRankingModel",function(){return Hs}),P.d(O,"QuestionCommentModel",function(){return zs}),P.d(O,"QuestionDropdownModel",function(){return ui}),P.d(O,"QuestionFactory",function(){return Se}),P.d(O,"ElementFactory",function(){return pn}),P.d(O,"QuestionFileModel",function(){return Ws}),P.d(O,"QuestionFilePage",function(){return bl}),P.d(O,"QuestionHtmlModel",function(){return $s}),P.d(O,"QuestionRadiogroupModel",function(){return Js}),P.d(O,"QuestionRatingModel",function(){return Zs}),P.d(O,"RenderedRatingItem",function(){return To}),P.d(O,"QuestionExpressionModel",function(){return ps}),P.d(O,"QuestionTextBase",function(){return xo}),P.d(O,"CharacterCounter",function(){return rl}),P.d(O,"QuestionTextModel",function(){return Vo}),P.d(O,"QuestionBooleanModel",function(){return Ks}),P.d(O,"QuestionImagePickerModel",function(){return fi}),P.d(O,"ImageItemValue",function(){return Pl}),P.d(O,"QuestionImageModel",function(){return Ys}),P.d(O,"QuestionSignaturePadModel",function(){return ea}),P.d(O,"QuestionPanelDynamicModel",function(){return na}),P.d(O,"QuestionPanelDynamicItem",function(){return st}),P.d(O,"SurveyTimer",function(){return xs}),P.d(O,"SurveyTimerModel",function(){return _a}),P.d(O,"tryFocusPage",function(){return Tc}),P.d(O,"createTOCListModel",function(){return $a}),P.d(O,"getTocRootCss",function(){return Ga}),P.d(O,"TOCModel",function(){return kn}),P.d(O,"SurveyProgressModel",function(){return yp}),P.d(O,"ProgressButtons",function(){return Ua}),P.d(O,"ProgressButtonsResponsivityManager",function(){return Ec}),P.d(O,"SurveyModel",function(){return dn}),P.d(O,"SurveyTrigger",function(){return zn}),P.d(O,"SurveyTriggerComplete",function(){return Tl}),P.d(O,"SurveyTriggerSetValue",function(){return Rl}),P.d(O,"SurveyTriggerVisible",function(){return El}),P.d(O,"SurveyTriggerCopyValue",function(){return Al}),P.d(O,"SurveyTriggerRunExpression",function(){return Dl}),P.d(O,"SurveyTriggerSkip",function(){return Il}),P.d(O,"Trigger",function(){return Ol}),P.d(O,"PopupSurveyModel",function(){return Ml}),P.d(O,"SurveyWindowModel",function(){return vp}),P.d(O,"TextPreProcessor",function(){return qt}),P.d(O,"Notifier",function(){return Ba}),P.d(O,"Cover",function(){return Co}),P.d(O,"CoverCell",function(){return Fa}),P.d(O,"dxSurveyService",function(){return qa}),P.d(O,"englishStrings",function(){return w}),P.d(O,"surveyLocalization",function(){return A}),P.d(O,"surveyStrings",function(){return ie}),P.d(O,"getLocaleString",function(){return k}),P.d(O,"getLocaleStrings",function(){return le}),P.d(O,"setupLocale",function(){return $}),P.d(O,"QuestionCustomWidget",function(){return lo}),P.d(O,"CustomWidgetCollection",function(){return Bn}),P.d(O,"QuestionCustomModel",function(){return Oa}),P.d(O,"QuestionCompositeModel",function(){return Ea}),P.d(O,"ComponentQuestionJSON",function(){return Va}),P.d(O,"ComponentCollection",function(){return po}),P.d(O,"ListModel",function(){return on}),P.d(O,"MultiSelectListModel",function(){return dl}),P.d(O,"PopupModel",function(){return On}),P.d(O,"createDialogOptions",function(){return ji}),P.d(O,"PopupBaseViewModel",function(){return Ds}),P.d(O,"PopupDropdownViewModel",function(){return Ls}),P.d(O,"PopupModalViewModel",function(){return ra}),P.d(O,"createPopupViewModel",function(){return wp}),P.d(O,"createPopupModalViewModel",function(){return Cp}),P.d(O,"DropdownListModel",function(){return Po}),P.d(O,"DropdownMultiSelectListModel",function(){return hl}),P.d(O,"QuestionButtonGroupModel",function(){return ql}),P.d(O,"ButtonGroupItemModel",function(){return Pp}),P.d(O,"ButtonGroupItemValue",function(){return Nl}),P.d(O,"IsMobile",function(){return mo}),P.d(O,"IsTouch",function(){return Le}),P.d(O,"_setIsTouch",function(){return sc}),P.d(O,"confirmAction",function(){return ki}),P.d(O,"confirmActionAsync",function(){return Wt}),P.d(O,"detectIEOrEdge",function(){return Dn}),P.d(O,"doKey2ClickUp",function(){return fr}),P.d(O,"doKey2ClickDown",function(){return $i}),P.d(O,"doKey2ClickBlur",function(){return Wi}),P.d(O,"loadFileFromBase64",function(){return sr}),P.d(O,"increaseHeightByContent",function(){return dr}),P.d(O,"createSvg",function(){return Mn}),P.d(O,"chooseFiles",function(){return Ki}),P.d(O,"sanitizeEditableContent",function(){return Gi}),P.d(O,"prepareElementForVerticalAnimation",function(){return Vt}),P.d(O,"cleanHtmlElementAfterAnimation",function(){return Xe}),P.d(O,"classesToSelector",function(){return ke}),P.d(O,"renamedIcons",function(){return ur}),P.d(O,"getIconNameFromProxy",function(){return Ur}),P.d(O,"InputMaskBase",function(){return Do}),P.d(O,"InputMaskPattern",function(){return la}),P.d(O,"InputMaskNumeric",function(){return ua}),P.d(O,"InputMaskDateTime",function(){return Fl}),P.d(O,"InputMaskCurrency",function(){return Ql}),P.d(O,"CssClassBuilder",function(){return _}),P.d(O,"TextAreaModel",function(){return Fn}),P.d(O,"surveyCss",function(){return qe}),P.d(O,"defaultV2Css",function(){return vo}),P.d(O,"defaultV2ThemeName",function(){return Na}),P.d(O,"DragDropCore",function(){return bs}),P.d(O,"DragDropChoices",function(){return gl}),P.d(O,"DragDropRankingSelectToRank",function(){return ml}),P.d(O,"StylesManager",function(){return Ul}),P.d(O,"defaultStandardCss",function(){return Cn}),P.d(O,"modernCss",function(){return Wl}),P.d(O,"SvgIconRegistry",function(){return $l}),P.d(O,"SvgRegistry",function(){return Gp}),P.d(O,"SvgThemeSets",function(){return Lo}),P.d(O,"addIconsToThemeSet",function(){return Zp}),P.d(O,"RendererFactory",function(){return uo}),P.d(O,"ResponsivityManager",function(){return Nr}),P.d(O,"VerticalResponsivityManager",function(){return Xn}),P.d(O,"unwrap",function(){return ts}),P.d(O,"getOriginalEvent",function(){return ns}),P.d(O,"getElement",function(){return Ln}),P.d(O,"activateLazyRenderingChecks",function(){return lr}),P.d(O,"createDropdownActionModel",function(){return Br}),P.d(O,"createDropdownActionModelAdvanced",function(){return Fr}),P.d(O,"createPopupModelWithListModel",function(){return tr}),P.d(O,"getActionDropdownButtonTarget",function(){return qi}),P.d(O,"BaseAction",function(){return En}),P.d(O,"Action",function(){return xe}),P.d(O,"ActionDropdownViewModel",function(){return Yo}),P.d(O,"AnimationUtils",function(){return Qr}),P.d(O,"AnimationPropertyUtils",function(){return _i}),P.d(O,"AnimationGroupUtils",function(){return nr}),P.d(O,"AnimationProperty",function(){return Rn}),P.d(O,"AnimationBoolean",function(){return In}),P.d(O,"AnimationGroup",function(){return Nt}),P.d(O,"AnimationTab",function(){return rr}),P.d(O,"AdaptiveActionContainer",function(){return Tn}),P.d(O,"defaultActionBarCss",function(){return er}),P.d(O,"ActionContainer",function(){return xt}),P.d(O,"DragOrClickHelper",function(){return Cs}),P.d(O,"Model",function(){return dn});var B=function(){function i(){}return i.isAvailable=function(){return typeof window<"u"},i.isFileReaderAvailable=function(){return i.isAvailable()?!!window.FileReader:!1},i.getLocation=function(){if(i.isAvailable())return window.location},i.getVisualViewport=function(){return i.isAvailable()?window.visualViewport:null},i.getInnerWidth=function(){if(i.isAvailable())return window.innerWidth},i.getInnerHeight=function(){return i.isAvailable()?window.innerHeight:null},i.getWindow=function(){if(i.isAvailable())return window},i.hasOwn=function(t){if(i.isAvailable())return t in window},i.getSelection=function(){if(i.isAvailable()&&window.getSelection)return window.getSelection()},i.requestAnimationFrame=function(t){if(i.isAvailable())return window.requestAnimationFrame(t)},i.addEventListener=function(t,e){i.isAvailable()&&window.addEventListener(t,e)},i.removeEventListener=function(t,e){i.isAvailable()&&window.removeEventListener(t,e)},i.matchMedia=function(t){return!i.isAvailable()||typeof window.matchMedia>"u"?null:window.matchMedia(t)},i}(),R=function(){function i(){}return i.isAvailable=function(){return typeof document<"u"},i.getBody=function(){if(i.isAvailable())return document.body},i.getDocumentElement=function(){if(i.isAvailable())return document.documentElement},i.getDocument=function(){if(i.isAvailable())return document},i.getCookie=function(){if(i.isAvailable())return document.cookie},i.setCookie=function(t){i.isAvailable()&&(document.cookie=t)},i.activeElementBlur=function(){if(i.isAvailable()){var t=document.activeElement;t&&t.blur&&t.blur()}},i.createElement=function(t){if(i.isAvailable())return document.createElement(t)},i.getComputedStyle=function(t){return i.isAvailable()?document.defaultView.getComputedStyle(t):new CSSStyleDeclaration},i.addEventListener=function(t,e){i.isAvailable()&&document.addEventListener(t,e)},i.removeEventListener=function(t,e){i.isAvailable()&&document.removeEventListener(t,e)},i}();function D(i,t){if(!t)return new Date;!I.storeUtcDates&&typeof t=="string"&&C(t)&&(t+="T00:00:00");var e=new Date(t);return I.onDateCreated(e,i,t)}function C(i){return i.indexOf("T")>0||!/\d{4}-\d{2}-\d{2}/.test(i)?!1:!isNaN(new Date(i).getTime())}var h=function(){function i(){}return i.isValueEmpty=function(t){if(Array.isArray(t)&&t.length===0)return!0;if(t&&i.isValueObject(t)&&t.constructor===Object){for(var e in t)if(!i.isValueEmpty(t[e]))return!1;return!0}return!t&&t!==0&&t!==!1},i.isArrayContainsEqual=function(t,e){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0;n<t.length;n++){for(var r=0;r<e.length&&!i.isTwoValueEquals(t[n],e[r]);r++);if(r===e.length)return!1}return!0},i.isArraysEqual=function(t,e,n,r,o){if(n===void 0&&(n=!1),!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;if(n){for(var s=[],u=[],d=0;d<t.length;d++)s.push(t[d]),u.push(e[d]);s.sort(),u.sort(),t=s,e=u}for(var d=0;d<t.length;d++)if(!i.isTwoValueEquals(t[d],e[d],n,r,o))return!1;return!0},i.compareStrings=function(t,e){var n=I.comparator.normalizeTextCallback;if(t&&(t=n(t,"compare").trim()),e&&(e=n(e,"compare").trim()),!t&&!e)return 0;if(!t)return-1;if(!e)return 1;if(t===e)return 0;for(var r=-1,o=0;o<t.length&&o<e.length;o++){if(this.isCharDigit(t[o])&&this.isCharDigit(e[o])){r=o;break}if(t[o]!==e[o])break}if(r>-1){var s=this.getNumberFromStr(t,r),u=this.getNumberFromStr(e,r);if(!Number.isNaN(s)&&!Number.isNaN(u)&&s!==u)return s>u?1:-1}return t>e?1:-1},i.isTwoValueEquals=function(t,e,n,r,o){if(n===void 0&&(n=!1),t===e||Array.isArray(t)&&t.length===0&&typeof e>"u"||Array.isArray(e)&&e.length===0&&typeof t>"u"||t==null&&e===""||e==null&&t==="")return!0;if(o===void 0&&(o=I.comparator.trimStrings),r===void 0&&(r=I.comparator.caseSensitive),typeof t=="string"&&typeof e=="string"){var s=I.comparator.normalizeTextCallback;return t=s(t,"compare"),e=s(e,"compare"),o&&(t=t.trim(),e=e.trim()),r||(t=t.toLowerCase(),e=e.toLowerCase()),t===e}if(t instanceof Date&&e instanceof Date)return t.getTime()==e.getTime();if(i.isConvertibleToNumber(t)&&i.isConvertibleToNumber(e)&&parseInt(t)===parseInt(e)&&parseFloat(t)===parseFloat(e))return!0;if(!i.isValueEmpty(t)&&i.isValueEmpty(e)||i.isValueEmpty(t)&&!i.isValueEmpty(e))return!1;if((t===!0||t===!1)&&typeof e=="string")return t.toString()===e.toLocaleLowerCase();if((e===!0||e===!1)&&typeof t=="string")return e.toString()===t.toLocaleLowerCase();if(!i.isValueObject(t)&&!i.isValueObject(e))return t==e;if(!i.isValueObject(t)||!i.isValueObject(e))return!1;if(t.equals&&e.equals)return t.equals(e);if(Array.isArray(t)&&Array.isArray(e))return i.isArraysEqual(t,e,n,r,o);for(var u in t)if(t.hasOwnProperty(u)&&(!e.hasOwnProperty(u)||!this.isTwoValueEquals(t[u],e[u],n,r,o)))return!1;for(u in e)if(e.hasOwnProperty(u)&&!t.hasOwnProperty(u))return!1;return!0},i.randomizeArray=function(t){for(var e=t.length-1;e>0;e--){var n=Math.floor(Math.random()*(e+1)),r=t[e];t[e]=t[n],t[n]=r}return t},i.getUnbindValue=function(t){if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n++)e.push(i.getUnbindValue(t[n]));return e}return t&&i.isValueObject(t)&&!(t instanceof Date)?JSON.parse(JSON.stringify(t)):t},i.createCopy=function(t){var e={};if(!t)return e;for(var n in t)e[n]=t[n];return e},i.isConvertibleToNumber=function(t){return t!=null&&!Array.isArray(t)&&!isNaN(t)},i.isValueObject=function(t,e){return t instanceof Object&&(!e||!Array.isArray(t))},i.isNumber=function(t){return!isNaN(this.getNumber(t))},i.getNumber=function(t){var e=i.getNumberCore(t);return I.parseNumber(t,e)},i.getNumberCore=function(t){if(typeof t=="string"){if(t=t.trim(),!t)return NaN;if(t.indexOf("0x")==0)return t.length>32?NaN:parseInt(t);if(t.length>15&&i.isDigitsOnly(t))return NaN;if(i.isStringHasOperator(t))return NaN}t=this.prepareStringToNumber(t);var e=parseFloat(t);return isNaN(e)||!isFinite(t)?NaN:e},i.isStringHasOperator=function(t){if(t.lastIndexOf("-")>0||t.lastIndexOf("+")>0)return!1;for(var e="*^/%",n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return!0;return!1},i.prepareStringToNumber=function(t){if(typeof t!="string"||!t)return t;var e=t.indexOf(",");return e>-1&&t.indexOf(",",e+1)<0?t.replace(",","."):t},i.getMaxLength=function(t,e){return t<0&&(t=e),t>0?t:null},i.getRemainingCharacterCounterText=function(t,e){if(!e||e<=0||!I.showMaxLengthIndicator)return"";var n=t?t.length:"0";return[n,e].join("/")},i.getNumberByIndex=function(t,e,n){if(t<0)return"";var r=1,o="",s=".",u=!0,d="A",y="",V=function(Y){if(!Y)return!1;for(var J=0;J<Y.length;J++)if(i.isCharDigit(Y[J]))return!0;return!1};if(e){y=e;for(var T=y.length-1,N=V(y),U=function(){return N&&!i.isCharDigit(y[T])||i.isCharNotLetterAndDigit(y[T])};T>=0&&U();)T--;var W="";for(T<y.length-1&&(W=y.substring(T+1),y=y.substring(0,T+1)),T=y.length-1;T>=0&&!(U()||(T--,!N)););d=y.substring(T+1),o=y.substring(0,T+1),parseInt(d)?r=parseInt(d):d.length==1&&(u=!1),(W||o)&&(s=W)}if(n>-1&&V(o)&&(o=this.getNumberByIndex(n,o)),u){for(var X=(t+r).toString();X.length<d.length;)X="0"+X;return o+X+s}return o+String.fromCharCode(d.charCodeAt(0)+t)+s},i.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!i.isCharDigit(t)},i.isCharDigit=function(t){return t>="0"&&t<="9"},i.isDigitsOnly=function(t){if(!t)return!1;for(var e=0;e<t.length;e++)if(!i.isCharDigit(t[e]))return!1;return!0},i.getNumberFromStr=function(t,e){if(!this.isCharDigit(t[e]))return NaN;for(var n="";e<t.length&&this.isCharDigit(t[e]);)n+=t[e],e++;return n?this.getNumber(n):NaN},i.countDecimals=function(t){if(i.isNumber(t)&&Math.floor(t)!==t){var e=t.toString().split(".");return e.length>1&&e[1].length||0}return 0},i.correctAfterPlusMinis=function(t,e,n){var r=i.countDecimals(t),o=i.countDecimals(e);if(r>0||o>0){var s=Math.max(r,o);n=parseFloat(n.toFixed(s))}return n},i.sumAnyValues=function(t,e){if(!i.isNumber(t)||!i.isNumber(e)){if(Array.isArray(t)&&Array.isArray(e))return[].concat(t).concat(e);if(Array.isArray(t)||Array.isArray(e)){var n=Array.isArray(t)?t:e,r=n===t?e:t;if(typeof r=="string"){var o=n.join(", ");return n===t?o+r:r+o}if(typeof r=="number"){for(var s=0,u=0;u<n.length;u++)typeof n[u]=="number"&&(s=i.correctAfterPlusMinis(s,n[u],s+n[u]));return i.correctAfterPlusMinis(s,r,s+r)}}return t+e}return typeof t=="string"||typeof e=="string"?t+e:i.correctAfterPlusMinis(t,e,t+e)},i.correctAfterMultiple=function(t,e,n){var r=i.countDecimals(t)+i.countDecimals(e);return r>0&&(n=parseFloat(n.toFixed(r))),n},i.convertArrayValueToObject=function(t,e,n){n===void 0&&(n=void 0);var r=new Array;if(!t||!Array.isArray(t))return r;for(var o=0;o<t.length;o++){var s=void 0;Array.isArray(n)&&(s=i.findObjByPropValue(n,e,t[o])),s||(s={},s[e]=t[o]),r.push(s)}return r},i.findObjByPropValue=function(t,e,n){for(var r=0;r<t.length;r++)if(i.isTwoValueEquals(t[r][e],n))return t[r]},i.convertArrayObjectToValue=function(t,e){var n=new Array;if(!t||!Array.isArray(t))return n;for(var r=0;r<t.length;r++){var o=t[r]?t[r][e]:void 0;i.isValueEmpty(o)||n.push(o)}return n},i.convertDateToString=function(t){var e=function(n){return n<10?"0"+n.toString():n.toString()};return t.getFullYear()+"-"+e(t.getMonth()+1)+"-"+e(t.getDate())},i.convertDateTimeToString=function(t){var e=function(n){return n<10?"0"+n.toString():n.toString()};return this.convertDateToString(t)+" "+e(t.getHours())+":"+e(t.getMinutes())},i.convertValToQuestionVal=function(t,e){return t instanceof Date?e==="datetime-local"?i.convertDateTimeToString(t):i.convertDateToString(t):this.getUnbindValue(t)},i.compareVerions=function(t,e){if(!t&&!e)return 0;for(var n=t.split("."),r=e.split("."),o=n.length,s=r.length,u=0;u<o&&u<s;u++){var d=n[u],y=r[u];if(d.length===y.length){if(d!==y)return d<y?-1:1}else return d.length<y.length?-1:1}return o===s?0:o<s?-1:1},i.isUrlYoutubeVideo=function(t){if(!t)return!1;var e=["www.youtube.com","m.youtube.com","youtube.com","youtu.be"];t=t.toLowerCase(),t=t.replace(/^https?:\/\//,"");for(var n=0;n<e.length;n++)if(t.indexOf(e[n]+"/")===0)return!0;return!1},i}();String.prototype.format||(String.prototype.format=function(){var i=arguments;return this.replace(/{(\d+)}/g,function(t,e){return typeof i[e]<"u"?i[e]:t})});var w={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",refuseItemText:"Refuse to answer",dontKnowItemText:"Don't know",selectAllItemText:"Select All",deselectAllItemText:"Deselect all",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain any visible elements.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"You have already completed this survey.",loadingSurvey:"Loading Survey...",placeholder:"Select...",ratingOptionsCaption:"Select...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",eachRowUniqueError:"Each row must have a unique value.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textNoDigitsAllow:"Numbers are not allowed.",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} option(s).",maxSelectError:"Please select no more than {0} option(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",noUploadFilesHandler:"Files cannot be uploaded. Please add a handler for the 'onUploadFiles' event.",otherRequiredError:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file selected",filePlaceholder:"Drag and drop a file here or click the button below to select a file to upload.",confirmDelete:"Are you sure you want to delete this record?",keyDuplicationError:"This value should be unique.",addColumn:"Add Column",addRow:"Add Row",removeRow:"Remove",emptyRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",showDetails:"Show Details",hideDetails:"Hide Details",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",savingExceedSize:"Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact the survey owner.",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",clearCaption:"Clear",signaturePlaceHolder:"Sign here",signaturePlaceHolderReadOnly:"No signature",chooseFileCaption:"Select File",takePhotoCaption:"Take Photo",photoPlaceholder:"Click the button below to take a photo using the camera.",fileOrPhotoPlaceholder:"Drag and drop or select a file to upload or take a photo using the camera.",replaceFileCaption:"Replace file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply",filterStringPlaceholder:"Type to search...",emptyMessage:"No data to display",noEntriesText:`No entries yet.
+Click the button below to add a new entry.`,noEntriesReadonlyText:"No entries",tabTitlePlaceholder:"New Panel",more:"More",tagboxDoneButtonCaption:"OK",selectToRankEmptyRankedAreaText:"All choices are selected for ranking",selectToRankEmptyUnrankedAreaText:"Drag choices here to rank them",ok:"OK",cancel:"Cancel"},A={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},localeNamesInEnglish:{},localeDirections:{},supportedLocales:[],useEnglishNames:!1,get showNamesInEnglish(){return this.useEnglishNames},set showNamesInEnglish(i){this.useEnglishNames=i},setupLocale:function(i){var t=i.localeCode;this.locales[t]=i.strings,this.localeNames[t]=i.nativeName,this.localeNamesInEnglish[t]=i.englishName,i.rtl!==void 0&&(this.localeDirections[t]=i.rtl)},get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(i){i==="cz"&&(i="cs"),this.currentLocaleValue=i},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(i){i==="cz"&&(i="cs"),this.defaultLocaleValue=i},getLocaleStrings:function(i){return this.locales[i]},getString:function(i,t){var e=this;t===void 0&&(t=null);var n=new Array,r=function(d){var y=e.locales[d];y&&n.push(y)},o=function(d){if(d){r(d);var y=d.indexOf("-");y<1||(d=d.substring(0,y),r(d))}};o(t),o(this.currentLocale),o(this.defaultLocale),this.defaultLocale!=="en"&&r("en");for(var s=0;s<n.length;s++){var u=n[s][i];if(u!==void 0)return u}return this.onGetExternalString(i,t)},getLocaleName:function(i,t){if(!i)return"";t===void 0&&(t=this.showNamesInEnglish);var e=t?this.localeNamesInEnglish:this.localeNames,n=t?this.localeNames:this.localeNamesInEnglish;return e[i]||n[i]||i},getLocales:function(i){var t=this;i===void 0&&(i=!1);var e=[];e.push("");var n=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){n={};for(var r=0;r<this.supportedLocales.length;r++)n[this.supportedLocales[r]]=!0}for(var o in n)i&&o==this.defaultLocale||e.push(o);var s=function(u){return t.getLocaleName(u).toLowerCase()};return e.sort(function(u,d){var y=s(u),V=s(d);return y===V?0:y<V?-1:1}),e},onGetExternalString:function(i,t){}};function k(i,t){return t===void 0&&(t=null),A.getString(i,t)}function le(i){return A.getLocaleStrings(i)}function $(i){A.setupLocale(i)}var ie=w;A.locales.en=w,A.localeNames.en="english";var ce=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),We=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function be(i,t,e){var n=i.getLocalizableString(e);if(!n){var r=void 0;typeof t.localizable=="object"&&t.localizable.defaultStr&&(r=t.localizable.defaultStr),n=i.createLocalizableString(e,i,!0,r),typeof t.localizable=="object"&&typeof t.localizable.onGetTextCallback=="function"&&(n.onGetTextCallback=t.localizable.onGetTextCallback)}}function pe(i,t,e){be(i,t,e);var n=i.getLocalizableStringText(e);if(n)return n;if(typeof t.localizable=="object"&&t.localizable.defaultStr){var r=i.getLocale?i.getLocale():"";return k(t.localizable.defaultStr,r)}return""}function x(i){return i===void 0&&(i={}),function(t,e){var n=function(r,o){if(o&&typeof o=="object"&&o.type===De.ComputedUpdaterType){fe.startCollectDependencies(function(){return r[e]=o.updater()},r,e);var s=o.updater(),u=fe.finishCollectDependencies();return o.setDependencies(u),r.dependencies[e]&&r.dependencies[e].dispose(),r.dependencies[e]=o,s}return o};!i||!i.localizable?Object.defineProperty(t,e,{get:function(){var r=null;return i&&(typeof i.getDefaultValue=="function"&&(r=i.getDefaultValue(this)),i.defaultValue!==void 0&&(r=i.defaultValue)),this.getPropertyValue(e,r)},set:function(r){var o=n(this,r),s=this.getPropertyValue(e);o!==s&&(this.setPropertyValue(e,o),i&&i.onSet&&i.onSet(o,this,s))}}):(Object.defineProperty(t,e,{get:function(){return pe(this,i,e)},set:function(r){be(this,i,e);var o=n(this,r);this.setLocalizableStringText(e,o),i&&i.onSet&&i.onSet(o,this)}}),Object.defineProperty(t,typeof i.localizable=="object"&&i.localizable.name?i.localizable.name:"loc"+e.charAt(0).toUpperCase()+e.slice(1),{get:function(){return be(this,i,e),this.getLocalizableString(e)}}))}}function we(i,t,e){i.ensureArray(e,function(n,r){var o=t?t.onPush:null;o&&o(n,r,i)},function(n,r){var o=t?t.onRemove:null;o&&o(n,r,i)})}function me(i){return function(t,e){Object.defineProperty(t,e,{get:function(){return we(this,i,e),this.getPropertyValue(e)},set:function(n){we(this,i,e);var r=this.getPropertyValue(e);n!==r&&(r?r.splice.apply(r,We([0,r.length],n||[])):this.setPropertyValue(e,n),i&&i.onSet&&i.onSet(n,this))}})}}var lt=function(){function i(t,e,n){n===void 0&&(n=!1),this.name=e,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=n,this.idValue=i.Index++}return Object.defineProperty(i.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(t){t==="itemvalues"&&(t="itemvalue[]"),t==="textitems"&&(t="textitem[]"),this.typeValue=t,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(t){t!==this.isRequired&&(this.isRequiredValue=t,this.classInfo&&this.classInfo.resetAllProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(t){this.isUniqueValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(t){this.uniquePropertyValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),i.prototype.getDefaultValue=function(t){var e=this.defaultValueFunc?this.defaultValueFunc(t):this.defaultValueValue;return i.getItemValuesDefaultValue&&j.isDescendantOf(this.className,"itemvalue")&&(e=i.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),e},Object.defineProperty(i.prototype,"defaultValue",{get:function(){return this.getDefaultValue(void 0)},set:function(t){this.defaultValueValue=t},enumerable:!1,configurable:!0}),i.prototype.isDefaultValue=function(t){return this.isDefaultValueByObj(void 0,t)},i.prototype.isDefaultValueByObj=function(t,e){if(this.isLocalizable)return e==null;var n=this.getDefaultValue(t);return h.isValueEmpty(n)?e===!1&&(this.type=="boolean"||this.type=="switch")&&!this.defaultValueFunc||e===""||h.isValueEmpty(e):h.isTwoValueEquals(e,n,!1,!0,!1)},i.prototype.getSerializableValue=function(t,e){if(this.onSerializeValue)return this.onSerializeValue(t);var n=this.getValue(t);if(n!=null&&!(!e&&this.isDefaultValueByObj(t,n)))return n},i.prototype.getValue=function(t){return this.onGetValue?(t=this.getOriginalObj(t),this.onGetValue(t)):this.serializationProperty&&t[this.serializationProperty]?t[this.serializationProperty].getJson():t[this.name]},i.prototype.getPropertyValue=function(t){return this.isLocalizable?t[this.serializationProperty]?t[this.serializationProperty].text:null:this.getValue(t)},Object.defineProperty(i.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),i.prototype.settingValue=function(t,e){return!this.onSettingValue||t.isLoadingFromJson?e:this.onSettingValue(t,e)},i.prototype.setValue=function(t,e,n){this.onSetValue?(t=this.getOriginalObj(t),this.onSetValue(t,e,n)):this.serializationProperty&&t[this.serializationProperty]?t[this.serializationProperty].setJson(e,!0):(e&&typeof e=="string"&&(this.type=="number"&&(e=parseInt(e)),(this.type=="boolean"||this.type=="switch")&&(e=e.toLowerCase()==="true")),t[this.name]=e)},i.prototype.validateValue=function(t){var e=this.choices;return!Array.isArray(e)||e.length===0?!0:e.indexOf(t)>-1},i.prototype.getObjType=function(t){return this.classNamePart?t.replace(this.classNamePart,""):t},Object.defineProperty(i.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),i.prototype.getChoices=function(t,e){return e===void 0&&(e=null),this.choicesValue!=null?this.choicesValue:this.choicesfunc!=null?this.choicesfunc(t,e):null},i.prototype.setChoices=function(t,e){e===void 0&&(e=null),this.choicesValue=t,this.choicesfunc=e},i.prototype.getBaseValue=function(){return this.baseValue?typeof this.baseValue=="function"?this.baseValue():this.baseValue:""},i.prototype.setBaseValue=function(t){this.baseValue=t},Object.defineProperty(i.prototype,"readOnly",{get:function(){return this.readOnlyValue!=null?this.readOnlyValue:!1},set:function(t){this.readOnlyValue=t},enumerable:!1,configurable:!0}),i.prototype.isEnable=function(t){return this.readOnly?!1:!t||!this.enableIf?!0:this.enableIf(this.getOriginalObj(t))},i.prototype.isVisible=function(t,e){e===void 0&&(e=null);var n=!this.layout||!t||this.layout===t;return!this.visible||!n?!1:this.visibleIf&&e?this.visibleIf(this.getOriginalObj(e)):!0},i.prototype.getOriginalObj=function(t){if(t&&t.getOriginalObj){var e=t.getOriginalObj();if(e&&j.findProperty(e.getType(),this.name))return e}return t},Object.defineProperty(i.prototype,"visible",{get:function(){return this.visibleValue!=null?this.visibleValue:!0},set:function(t){this.visibleValue=t},enumerable:!1,configurable:!0}),i.prototype.isAvailableInVersion=function(t){return this.alternativeName||this.oldName?!0:this.isAvailableInVersionCore(t)},i.prototype.getSerializedName=function(t){return this.alternativeName?this.isAvailableInVersionCore(t)?this.name:this.alternativeName||this.oldName:this.name},i.prototype.getSerializedProperty=function(t,e){return!this.oldName||this.isAvailableInVersionCore(e)?this:!t||!t.getType?null:j.findProperty(t.getType(),this.oldName)},i.prototype.isAvailableInVersionCore=function(t){return!t||!this.version?!0:h.compareVerions(this.version,t)<=0},Object.defineProperty(i.prototype,"isLocalizable",{get:function(){return this.isLocalizableValue!=null?this.isLocalizableValue:!1},set:function(t){this.isLocalizableValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(t){this.dataListValue=t},enumerable:!1,configurable:!0}),i.prototype.mergeWith=function(t){for(var e=i.mergableValues,n=0;n<e.length;n++)this.mergeValue(t,e[n])},i.prototype.addDependedProperty=function(t){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(t)<0&&this.dependedProperties.push(t)},i.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},i.prototype.schemaType=function(){if(this.className!=="choicesByUrl")return this.className==="string"?this.className:this.className||this.baseClassName?"array":this.type=="switch"?"boolean":this.type=="boolean"||this.type=="number"?this.type:"string"},i.prototype.schemaRef=function(){if(this.className)return this.className},i.prototype.mergeValue=function(t,e){this[e]==null&&t[e]!=null&&(this[e]=t[e])},i.Index=1,i.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","oldName","layout","version","classNamePart","baseClassName","defaultValue","defaultValueFunc","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","overridingProperty","showMode","dependedProperties","visibleIf","enableIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],i}(),Fe=function(){function i(){}return i.addProperty=function(t,e){t=t.toLowerCase();var n=i.properties;n[t]||(n[t]=[]),n[t].push(e)},i.removeProperty=function(t,e){t=t.toLowerCase();var n=i.properties;if(n[t]){for(var r=n[t],o=0;o<r.length;o++)if(r[o].name==e){n[t].splice(o,1);break}}},i.removeAllProperties=function(t){t=t.toLowerCase(),delete i.properties[t]},i.addClass=function(t,e){t=t.toLowerCase(),e&&(e=e.toLowerCase()),i.parentClasses[t]=e},i.getProperties=function(t){t=t.toLowerCase();for(var e=[],n=i.properties;t;){var r=n[t];if(r)for(var o=0;o<r.length;o++)e.push(r[o]);t=i.parentClasses[t]}return e},i.createProperties=function(t){!t||!t.getType||i.createPropertiesCore(t,t.getType())},i.createPropertiesCore=function(t,e){var n=i.properties;n[e]&&i.createPropertiesInObj(t,n[e]);var r=i.parentClasses[e];r&&i.createPropertiesCore(t,r)},i.createPropertiesInObj=function(t,e){for(var n=0;n<e.length;n++)i.createPropertyInObj(t,e[n])},i.createPropertyInObj=function(t,e){if(!i.checkIsPropertyExists(t,e.name)&&!(e.serializationProperty&&i.checkIsPropertyExists(t,e.serializationProperty))){if(e.isLocalizable&&e.serializationProperty&&t.createCustomLocalizableObj){var n=t.createCustomLocalizableObj(e.name);n.defaultValue=e.getDefaultValue(t);var r={get:function(){return t.getLocalizableString(e.name)}};Object.defineProperty(t,e.serializationProperty,r);var o={get:function(){return t.getLocalizableStringText(e.name)},set:function(d){t.setLocalizableStringText(e.name,d)}};Object.defineProperty(t,e.name,o)}else{var s=e.isArray||e.type==="multiplevalues";if(typeof t.createNewArray=="function"&&(j.isDescendantOf(e.className,"itemvalue")?(t.createNewArray(e.name,function(d){d.locOwner=t,d.ownerPropertyName=e.name}),s=!0):s&&t.createNewArray(e.name),s)){var u=e.getDefaultValue(t);Array.isArray(u)&&t.setPropertyValue(e.name,u)}if(t.getPropertyValue&&t.setPropertyValue){var o={get:function(){return e.onGetValue?e.onGetValue(t):t.getPropertyValue(e.name,void 0)},set:function(y){e.onSetValue?e.onSetValue(t,y,null):t.setPropertyValue(e.name,y)}};Object.defineProperty(t,e.name,o)}}(e.type==="condition"||e.type==="expression")&&e.onExecuteExpression&&t.addExpressionProperty(e.name,e.onExecuteExpression)}},i.checkIsPropertyExists=function(t,e){return t.hasOwnProperty(e)||t[e]},i.properties={},i.parentClasses={},i}(),ge=function(){function i(t,e,n,r){n===void 0&&(n=null),r===void 0&&(r=null),this.name=t,this.creator=n,this.parentName=r,t=t.toLowerCase(),this.isCustomValue=!n&&t!=="survey",this.parentName&&(this.parentName=this.parentName.toLowerCase(),Fe.addClass(t,this.parentName),n&&this.makeParentRegularClass()),this.properties=new Array;for(var o=0;o<e.length;o++)this.createProperty(e[o],this.isCustom)}return i.prototype.find=function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].name==t)return this.properties[e];return null},i.prototype.findProperty=function(t){return this.fillAllProperties(),this.hashProperties[t]},i.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},i.prototype.getRequiredProperties=function(){if(this.requiredProperties)return this.requiredProperties;this.requiredProperties=[];for(var t=this.getAllProperties(),e=0;e<t.length;e++)t[e].isRequired&&this.requiredProperties.push(t[e]);return this.requiredProperties},i.prototype.resetAllProperties=function(){this.allProperties=void 0,this.requiredProperties=void 0,this.hashProperties=void 0;for(var t=j.getChildrenClasses(this.name),e=0;e<t.length;e++)t[e].resetAllProperties()},Object.defineProperty(i.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),i.prototype.fillAllProperties=function(){var t=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var e={};this.properties.forEach(function(o){return e[o.name]=o});var n=this.parentName?j.findClass(this.parentName):null;if(n){var r=n.getAllProperties();r.forEach(function(o){var s=e[o.name];s?(s.mergeWith(o),t.addPropCore(s)):t.addPropCore(o)})}this.properties.forEach(function(o){t.hashProperties[o.name]||t.addPropCore(o)})}},i.prototype.addPropCore=function(t){this.allProperties.push(t),this.hashProperties[t.name]=t,t.alternativeName&&(this.hashProperties[t.alternativeName]=t)},i.prototype.isOverridedProp=function(t){return!!this.parentName&&!!j.findProperty(this.parentName,t)},i.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var t=0;t<this.properties.length;t++)this.properties[t].isCustom=!1;Fe.removeAllProperties(this.name),this.makeParentRegularClass()}},i.prototype.makeParentRegularClass=function(){if(this.parentName){var t=j.findClass(this.parentName);t&&t.hasRegularChildClass()}},i.prototype.createProperty=function(t,e){e===void 0&&(e=!1);var n=typeof t=="string"?t:t.name;if(n){var r=null,o=n.indexOf(i.typeSymbol);o>-1&&(r=n.substring(o+1),n=n.substring(0,o));var s=this.getIsPropertyNameRequired(n)||!!t.isRequired;n=this.getPropertyName(n);var u=new lt(this,n,s);if(r&&(u.type=r),typeof t=="object"){if(t.type&&(u.type=t.type),t.default!==void 0&&(u.defaultValue=t.default),t.defaultFunc!==void 0&&(u.defaultValueFunc=t.defaultFunc),h.isValueEmpty(t.isSerializable)||(u.isSerializable=t.isSerializable),h.isValueEmpty(t.isLightSerializable)||(u.isLightSerializable=t.isLightSerializable),h.isValueEmpty(t.maxLength)||(u.maxLength=t.maxLength),t.displayName!==void 0&&(u.displayName=t.displayName),h.isValueEmpty(t.category)||(u.category=t.category),h.isValueEmpty(t.categoryIndex)||(u.categoryIndex=t.categoryIndex),h.isValueEmpty(t.nextToProperty)||(u.nextToProperty=t.nextToProperty),h.isValueEmpty(t.overridingProperty)||(u.overridingProperty=t.overridingProperty),h.isValueEmpty(t.visibleIndex)||(u.visibleIndex=t.visibleIndex),h.isValueEmpty(t.showMode)||(u.showMode=t.showMode),h.isValueEmpty(t.maxValue)||(u.maxValue=t.maxValue),h.isValueEmpty(t.minValue)||(u.minValue=t.minValue),h.isValueEmpty(t.dataList)||(u.dataList=t.dataList),h.isValueEmpty(t.isDynamicChoices)||(u.isDynamicChoices=t.isDynamicChoices),h.isValueEmpty(t.isBindable)||(u.isBindable=t.isBindable),h.isValueEmpty(t.isUnique)||(u.isUnique=t.isUnique),h.isValueEmpty(t.uniqueProperty)||(u.uniquePropertyName=t.uniqueProperty),h.isValueEmpty(t.isArray)||(u.isArray=t.isArray),(t.visible===!0||t.visible===!1)&&(u.visible=t.visible),t.visibleIf&&(u.visibleIf=t.visibleIf),t.enableIf&&(u.enableIf=t.enableIf),t.onExecuteExpression&&(u.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(u.onPropertyEditorUpdate=t.onPropertyEditorUpdate),t.readOnly===!0&&(u.readOnly=!0),t.availableInMatrixColumn===!0&&(u.availableInMatrixColumn=!0),t.choices){var d=typeof t.choices=="function"?t.choices:null,y=typeof t.choices!="function"?t.choices:null;u.setChoices(y,d)}t.baseValue&&u.setBaseValue(t.baseValue),t.onSerializeValue&&(u.onSerializeValue=t.onSerializeValue),t.onGetValue&&(u.onGetValue=t.onGetValue),t.onSetValue&&(u.onSetValue=t.onSetValue),t.onSettingValue&&(u.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+u.name),t.serializationProperty&&(u.serializationProperty=t.serializationProperty,u.serializationProperty&&u.serializationProperty.indexOf("loc")==0&&(u.isLocalizable=!0)),t.isLocalizable&&(u.isLocalizable=t.isLocalizable),t.className&&(u.className=t.className),t.baseClassName&&(u.baseClassName=t.baseClassName,u.isArray=!0),u.isArray===!0&&(u.isArray=!0),t.classNamePart&&(u.classNamePart=t.classNamePart),t.alternativeName&&(u.alternativeName=t.alternativeName),t.oldName&&(u.oldName=t.oldName),t.layout&&(u.layout=t.layout),t.version&&(u.version=t.version),t.dependsOn&&this.addDependsOnProperties(u,t.dependsOn)}return this.properties.push(u),e&&!this.isOverridedProp(u.name)&&(u.isCustom=!0,Fe.addProperty(this.name,u)),u}},i.prototype.addDependsOnProperties=function(t,e){var n=Array.isArray(e)?e:[e];t.dependsOn=n;for(var r=0;r<n.length;r++)this.addDependsOnProperty(t,n[r])},i.prototype.addDependsOnProperty=function(t,e){var n=this.find(e);n||(n=j.findProperty(this.parentName,e)),n&&n.addDependedProperty(t.name)},i.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==i.requiredSymbol},i.prototype.getPropertyName=function(t){return this.getIsPropertyNameRequired(t)&&(t=t.slice(1)),t},i.requiredSymbol="!",i.typeSymbol=":",i}(),en=function(){function i(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.dynamicPropsCache={}}return i.prototype.getObjPropertyValue=function(t,e){if(this.isObjWrapper(t)&&this.isNeedUseObjWrapper(t,e)){var n=t.getOriginalObj(),r=j.findProperty(n.getType(),e);if(r)return this.getObjPropertyValueCore(n,r)}var o=j.findProperty(t.getType(),e);return o?this.getObjPropertyValueCore(t,o):t[e]},i.prototype.setObjPropertyValue=function(t,e,n){if(t[e]!==n)if(t[e]&&t[e].setJson)t[e].setJson(n,!0);else{if(Array.isArray(n)){for(var r=[],o=0;o<n.length;o++)r.push(n[o]);n=r}t[e]=n}},i.prototype.getObjPropertyValueCore=function(t,e){if(!e.isSerializable)return t[e.name];if(e.isLocalizable){if(e.isArray)return t[e.name];if(e.serializationProperty)return t[e.serializationProperty].text}return t.getPropertyValue(e.name)},i.prototype.isObjWrapper=function(t){return!!t.getOriginalObj&&!!t.getOriginalObj()},i.prototype.isNeedUseObjWrapper=function(t,e){if(!t.getDynamicProperties)return!0;var n=t.getDynamicProperties();if(!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(n[r].name===e)return!0;return!1},i.prototype.addClass=function(t,e,n,r){n===void 0&&(n=null),r===void 0&&(r=null),t=t.toLowerCase();var o=new ge(t,e,n,r);if(this.classes[t]=o,r){r=r.toLowerCase();var s=this.childrenClasses[r];s||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(o)}return o},i.prototype.removeClass=function(t){var e=this.findClass(t);if(e&&(delete this.classes[e.name],e.parentName)){var n=this.childrenClasses[e.parentName].indexOf(e);n>-1&&this.childrenClasses[e.parentName].splice(n,1)}},i.prototype.overrideClassCreatore=function(t,e){this.overrideClassCreator(t,e)},i.prototype.overrideClassCreator=function(t,e){t=t.toLowerCase();var n=this.findClass(t);n&&(n.creator=e)},i.prototype.getProperties=function(t){var e=this.findClass(t);return e?e.getAllProperties():[]},i.prototype.getPropertiesByObj=function(t){var e=t&&t.getType?t.getType():void 0;if(!e)return[];for(var n=this.getProperties(e),r=this.getDynamicPropertiesByObj(t),o=r.length-1;o>=0;o--)this.findProperty(e,r[o].name)&&r.splice(o,1);return r.length===0?n:[].concat(n).concat(r)},i.prototype.addDynamicPropertiesIntoObj=function(t,e,n){var r=this;n.forEach(function(o){r.addDynamicPropertyIntoObj(t,e,o.name,!1),o.serializationProperty&&r.addDynamicPropertyIntoObj(t,e,o.serializationProperty,!0),o.alternativeName&&r.addDynamicPropertyIntoObj(t,e,o.alternativeName,!1)})},i.prototype.addDynamicPropertyIntoObj=function(t,e,n,r){var o={configurable:!0,get:function(){return e[n]}};r||(o.set=function(s){e[n]=s}),Object.defineProperty(t,n,o)},i.prototype.getDynamicPropertiesByObj=function(t,e){if(e===void 0&&(e=null),!t||!t.getType)return[];if(t.getDynamicProperties)return t.getDynamicProperties();if(!t.getDynamicType&&!e)return[];var n=e||t.getDynamicType();return this.getDynamicPropertiesByTypes(t.getType(),n)},i.prototype.getDynamicPropertiesByTypes=function(t,e,n){if(!e)return[];var r=e+"-"+t;if(this.dynamicPropsCache[r])return this.dynamicPropsCache[r];var o=this.getProperties(e);if(!o||o.length==0)return[];for(var s={},u=this.getProperties(t),d=0;d<u.length;d++)s[u[d].name]=u[d];var y=[];n||(n=[]);for(var V=0;V<o.length;V++){var T=o[V];n.indexOf(T.name)<0&&this.canAddDybamicProp(T,s[T.name])&&y.push(T)}return this.dynamicPropsCache[r]=y,y},i.prototype.canAddDybamicProp=function(t,e){if(!e)return!0;if(t===e)return!1;for(var n=t.classInfo;n&&n.parentName;){if(t=this.findProperty(n.parentName,t.name),t&&t===e)return!0;n=t?t.classInfo:void 0}return!1},i.prototype.hasOriginalProperty=function(t,e){return!!this.getOriginalProperty(t,e)},i.prototype.getOriginalProperty=function(t,e){var n=this.findProperty(t.getType(),e);return n||(this.isObjWrapper(t)?this.findProperty(t.getOriginalObj().getType(),e):null)},i.prototype.getProperty=function(t,e){var n=this.findProperty(t,e);if(!n)return n;var r=this.findClass(t);if(n.classInfo===r)return n;var o=new lt(r,n.name,n.isRequired);return o.mergeWith(n),o.isArray=n.isArray,r.properties.push(o),r.resetAllProperties(),o},i.prototype.findProperty=function(t,e){var n=this.findClass(t);return n?n.findProperty(e):null},i.prototype.findProperties=function(t,e){var n=new Array,r=this.findClass(t);if(!r)return n;for(var o=0;o<e.length;o++){var s=r.findProperty(e[o]);s&&n.push(s)}return n},i.prototype.getAllPropertiesByName=function(t){for(var e=new Array,n=this.getAllClasses(),r=0;r<n.length;r++)for(var o=this.findClass(n[r]),s=0;s<o.properties.length;s++)if(o.properties[s].name==t){e.push(o.properties[s]);break}return e},i.prototype.getAllClasses=function(){var t=new Array;for(var e in this.classes)t.push(e);return t},i.prototype.createClass=function(t,e){e===void 0&&(e=void 0),t=t.toLowerCase();var n=this.findClass(t);if(!n)return null;if(n.creator)return n.creator(e);for(var r=n.parentName;r;){if(n=this.findClass(r),!n)return null;if(r=n.parentName,n.creator)return this.createCustomType(t,n.creator,e)}return null},i.prototype.createCustomType=function(t,e,n){n===void 0&&(n=void 0),t=t.toLowerCase();var r=e(n),o=t,s=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return o},r.getTemplate=function(){return s},Fe.createProperties(r),r},i.prototype.getChildrenClasses=function(t,e){e===void 0&&(e=!1),t=t.toLowerCase();var n=[];return this.fillChildrenClasses(t,e,n),n},i.prototype.getRequiredProperties=function(t){var e=this.findClass(t);if(!e)return[];for(var n=e.getRequiredProperties(),r=[],o=0;o<n.length;o++)r.push(n[o].name);return r},i.prototype.addProperties=function(t,e){t=t.toLowerCase();for(var n=this.findClass(t),r=0;r<e.length;r++)this.addCustomPropertyCore(n,e[r])},i.prototype.addProperty=function(t,e){return this.addCustomPropertyCore(this.findClass(t),e)},i.prototype.addCustomPropertyCore=function(t,e){if(!t)return null;var n=t.createProperty(e,!0);return n&&(this.clearDynamicPropsCache(t),t.resetAllProperties()),n},i.prototype.removeProperty=function(t,e){var n=this.findClass(t);if(!n)return!1;var r=n.find(e);r&&(this.clearDynamicPropsCache(n),this.removePropertyFromClass(n,r),n.resetAllProperties(),Fe.removeProperty(n.name,e))},i.prototype.clearDynamicPropsCache=function(t){this.dynamicPropsCache={}},i.prototype.removePropertyFromClass=function(t,e){var n=t.properties.indexOf(e);n<0||t.properties.splice(n,1)},i.prototype.fillChildrenClasses=function(t,e,n){var r=this.childrenClasses[t];if(r)for(var o=0;o<r.length;o++)(!e||r[o].creator)&&n.push(r[o]),this.fillChildrenClasses(r[o].name,e,n)},i.prototype.findClass=function(t){t=t.toLowerCase();var e=this.classes[t];if(!e){var n=this.alternativeNames[t];if(n&&n!=t)return this.findClass(n)}return e},i.prototype.isDescendantOf=function(t,e){if(!t||!e)return!1;t=t.toLowerCase(),e=e.toLowerCase();var n=this.findClass(t);if(!n)return!1;var r=n;do{if(r.name===e)return!0;r=this.classes[r.parentName]}while(r);return!1},i.prototype.addAlterNativeClassName=function(t,e){this.alternativeNames[e.toLowerCase()]=t.toLowerCase()},i.prototype.generateSchema=function(t){t===void 0&&(t=void 0),t||(t="survey");var e=this.findClass(t);if(!e)return null;var n={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{locstring:this.generateLocStrClass()}};return this.generateSchemaProperties(e,n,n.definitions,!0),n},i.prototype.generateLocStrClass=function(){var t={},e=j.findProperty("survey","locale");if(e){var n=e.getChoices(null);Array.isArray(n)&&(n.indexOf("en")<0&&n.splice(0,0,"en"),n.splice(0,0,"default"),n.forEach(function(r){r&&(t[r]={type:"string"})}))}return{$id:"locstring",type:"object",properties:t}},i.prototype.generateSchemaProperties=function(t,e,n,r){if(t){var o=e.properties,s=[];(t.name==="question"||t.name==="panel")&&(o.type={type:"string"},s.push("type"));for(var u=0;u<t.properties.length;u++){var d=t.properties[u];t.parentName&&j.findProperty(t.parentName,d.name)||(o[d.name]=this.generateSchemaProperty(d,n,r),d.isRequired&&s.push(d.name))}s.length>0&&(e.required=s)}},i.prototype.generateSchemaProperty=function(t,e,n){if(t.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",n)}]};var r=t.schemaType(),o=t.schemaRef(),s={};if(r&&(s.type=r),t.hasChoices){var u=t.getChoices(null);Array.isArray(u)&&u.length>0&&(s.enum=this.getChoicesValues(u))}if(o&&(r==="array"?t.className==="string"?s.items={type:t.className}:s.items={$ref:this.getChemeRefName(t.className,n)}:s.$ref=this.getChemeRefName(o,n),this.generateChemaClass(t.className,e,!1)),t.baseClassName){var d=this.getChildrenClasses(t.baseClassName,!0);t.baseClassName=="question"&&d.push(this.findClass("panel")),s.items={anyOf:[]};for(var y=0;y<d.length;y++){var V=d[y].name;s.items.anyOf.push({$ref:this.getChemeRefName(V,n)}),this.generateChemaClass(V,e,!1)}}return s},i.prototype.getChemeRefName=function(t,e){return e?"#/definitions/"+t:t},i.prototype.generateChemaClass=function(t,e,n){if(!e[t]){var r=this.findClass(t);if(r){var o=!!r.parentName&&r.parentName!="base";o&&this.generateChemaClass(r.parentName,e,n);var s={type:"object",$id:t};e[t]=s;var u={properties:{}};this.generateSchemaProperties(r,u,e,n),o?s.allOf=[{$ref:this.getChemeRefName(r.parentName,n)},{properties:u.properties}]:s.properties=u.properties,Array.isArray(u.required)&&(s.required=u.required)}}},i.prototype.getChoicesValues=function(t){var e=new Array;return t.forEach(function(n){typeof n=="object"&&n.value!==void 0?e.push(n.value):e.push(n)}),e},i}(),Ke=function(){function i(t,e){this.type=t,this.message=e,this.description="",this.at=-1,this.end=-1}return i.prototype.getFullDescription=function(){return this.message+(this.description?`
+`+this.description:"")},i}(),vt=function(i){ce(t,i);function t(e,n){var r=i.call(this,"unknownproperty","Unknown property in class '"+n+"': '"+e+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(Ke),$e=function(i){ce(t,i);function t(e,n,r){var o=i.call(this,n,r)||this;return o.baseClassName=e,o.type=n,o.message=r,o}return t}(Ke),ut=function(i){ce(t,i);function t(e,n){var r=i.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+e+"'.")||this;return r.propertyName=e,r.baseClassName=n,r}return t}($e),ht=function(i){ce(t,i);function t(e,n){var r=i.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+e+"'.")||this;return r.propertyName=e,r.baseClassName=n,r}return t}($e),Qe=function(i){ce(t,i);function t(e,n){var r=i.call(this,"requiredproperty","The property '"+e+"' is required in class '"+n+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(Ke),bt=function(i){ce(t,i);function t(e,n){var r=i.call(this,"arrayproperty","The property '"+e+"' should be an array in '"+n+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(Ke),Rt=function(i){ce(t,i);function t(e,n){var r=i.call(this,"incorrectvalue","The property value: '"+n+"' is incorrect for property '"+e.name+"'.")||this;return r.property=e,r.value=n,r}return t}(Ke),je=function(){function i(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(i,"metaData",{get:function(){return i.metaDataValue},enumerable:!1,configurable:!0}),i.prototype.toJsonObject=function(t,e){return this.toJsonObjectCore(t,null,e)},i.prototype.toObject=function(t,e,n){this.toObjectCore(t,e,n);var r=this.getRequiredError(e,t);r&&this.addNewError(r,t,e)},i.prototype.toObjectCore=function(t,e,n){if(t){var r=null,o=void 0,s=!0;if(e.getType&&(o=e.getType(),r=j.getProperties(o),s=!!o&&!j.isDescendantOf(o,"itemvalue")),!!r){e.startLoadingFromJson&&e.startLoadingFromJson(t),r=this.addDynamicProperties(e,t,r),this.options=n;var u={};u[i.typePropertyName]=!0;var d={};for(var y in t)this.setPropertyValueToObj(t,e,y,r,u,d,o,s,n);this.options=void 0,e.endLoadingFromJson&&e.endLoadingFromJson()}}},i.prototype.setPropertyValueToObj=function(t,e,n,r,o,s,u,d,y){var V=this;if(!o[n]){if(n===i.positionPropertyName){e[n]=t[n];return}var T=this.findProperty(r,n);if(!T&&d&&this.addNewError(new vt(n.toString(),u),t,e),T){var N=T.dependsOn;Array.isArray(N)&&(s[n]=!0,N.forEach(function(U){s[U]||V.setPropertyValueToObj(t,e,U,r,o,s,u,!1,y)})),this.valueToObj(t[n],e,T,t,y),o[n]=!0}}},i.prototype.toJsonObjectCore=function(t,e,n){if(!t||!t.getType)return t;if(!t.isSurvey&&typeof t.getData=="function")return t.getData();var r={};e!=null&&!e.className&&(r[i.typePropertyName]=e.getObjType(t.getType()));var o=n===!0;return(!n||n===!0)&&(n={}),o&&(n.storeDefaults=o),this.propertiesToJson(t,j.getProperties(t.getType()),r,n),this.propertiesToJson(t,this.getDynamicProperties(t),r,n),r},i.prototype.getDynamicProperties=function(t){return j.getDynamicPropertiesByObj(t)},i.prototype.addDynamicProperties=function(t,e,n){if(!t.getDynamicPropertyName&&!t.getDynamicProperties)return n;if(t.getDynamicPropertyName){var r=t.getDynamicPropertyName();if(!r)return n;r&&e[r]&&(t[r]=e[r])}var o=this.getDynamicProperties(t);return o.length===0?n:[].concat(n).concat(o)},i.prototype.propertiesToJson=function(t,e,n,r){for(var o=0;o<e.length;o++)this.valueToJson(t,n,e[o],r)},i.prototype.valueToJson=function(t,e,n,r){r||(r={}),!(n.isSerializable===!1||n.isLightSerializable===!1&&this.lightSerializing)&&(r.version&&!n.isAvailableInVersion(r.version)||this.valueToJsonCore(t,e,n,r))},i.prototype.valueToJsonCore=function(t,e,n,r){var o=n.getSerializedProperty(t,r.version);if(o&&o!==n){this.valueToJsonCore(t,e,o,r);return}var s=n.getSerializableValue(t,r.storeDefaults);if(s!==void 0){if(this.isValueArray(s)){for(var u=[],d=0;d<s.length;d++)u.push(this.toJsonObjectCore(s[d],n,r));s=u.length>0?u:null}else s=this.toJsonObjectCore(s,n,r);if(s!=null){var y=n.getSerializedName(r.version),V=typeof t.getPropertyValue=="function"&&t.getPropertyValue(y,null)!==null;(r.storeDefaults&&V||!n.isDefaultValueByObj(t,s))&&(!j.onSerializingProperty||!j.onSerializingProperty(t,n,s,e))&&(e[y]=this.removePosOnValueToJson(n,s))}}},i.prototype.valueToObj=function(t,e,n,r,o){if(t!=null){if(this.removePos(n,t),n!=null&&n.hasToUseSetValue){n.setValue(e,t,this);return}if(n.isArray&&!Array.isArray(t)&&t){t=[t];var s=r&&n.alternativeName&&r[n.alternativeName]?n.alternativeName:n.name;this.addNewError(new bt(s,e.getType()),r||t,e)}if(this.isValueArray(t)){this.valueToArray(t,e,n.name,n,o);return}var u=this.createNewObj(t,n);u.newObj&&(this.toObjectCore(t,u.newObj,o),t=u.newObj),u.error||(n!=null?(n.setValue(e,t,this),o&&o.validatePropertyValues&&(n.validateValue(t)||this.addNewError(new Rt(n,t),r,e))):e[n.name]=t)}},i.prototype.removePosOnValueToJson=function(t,e){return!t.isCustom||!e||this.removePosFromObj(e),e},i.prototype.removePos=function(t,e){!t||!t.type||t.type.indexOf("value")<0||this.removePosFromObj(e)},i.prototype.removePosFromObj=function(t){if(!(!t||typeof t.getType=="function")){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.removePosFromObj(t[e]);if(typeof t=="object"){t[i.positionPropertyName]&&delete t[i.positionPropertyName];for(var n in t)this.removePosFromObj(t[n])}}},i.prototype.isValueArray=function(t){return t&&Array.isArray(t)},i.prototype.createNewObj=function(t,e){var n={newObj:null,error:null},r=this.getClassNameForNewObj(t,e);return n.newObj=r?j.createClass(r,t):null,n.error=this.checkNewObjectOnErrors(n.newObj,t,e,r),n},i.prototype.getClassNameForNewObj=function(t,e){var n=e!=null&&e.className?e.className:void 0;if(n||(n=t[i.typePropertyName]),!n)return n;n=n.toLowerCase();var r=e.classNamePart;return r&&n.indexOf(r)<0&&(n+=r),n},i.prototype.checkNewObjectOnErrors=function(t,e,n,r){var o=null;return t?o=this.getRequiredError(t,e):n.baseClassName&&(r?o=new ht(n.name,n.baseClassName):o=new ut(n.name,n.baseClassName)),o&&this.addNewError(o,e,t),o},i.prototype.getRequiredError=function(t,e){if(!t.getType||typeof t.getData=="function")return null;var n=j.findClass(t.getType());if(!n)return null;var r=n.getRequiredProperties();if(!Array.isArray(r))return null;for(var o=0;o<r.length;o++){var s=r[o];if(h.isValueEmpty(s.defaultValue)&&!e[s.name])return new Qe(s.name,t.getType())}return null},i.prototype.addNewError=function(t,e,n){if(t.jsonObj=e,t.element=n,this.errors.push(t),!!e){var r=e[i.positionPropertyName];r&&(t.at=r.start,t.end=r.end)}},i.prototype.valueToArray=function(t,e,n,r,o){if(!(e[n]&&!this.isValueArray(e[n]))){e[n]&&t.length>0&&e[n].splice(0,e[n].length);var s=e[n]?e[n]:[];this.addValuesIntoArray(t,s,r,o),e[n]||(e[n]=s)}},i.prototype.addValuesIntoArray=function(t,e,n,r){for(var o=0;o<t.length;o++){var s=this.createNewObj(t[o],n);s.newObj?(t[o].name&&(s.newObj.name=t[o].name),t[o].valueName&&(s.newObj.valueName=t[o].valueName.toString()),e.push(s.newObj),this.toObjectCore(t[o],s.newObj,r)):s.error||e.push(t[o])}},i.prototype.findProperty=function(t,e){if(!t)return null;for(var n=0;n<t.length;n++){var r=t[n];if(r.name==e||r.alternativeName==e)return r}return null},i.typePropertyName="type",i.positionPropertyName="pos",i.metaDataValue=new en,i}(),j=je.metaData,wn="@survey",Re=function(){function i(){this.values=null,this.properties=null,this.asyncValues={}}return i.prototype.getFirstName=function(t,e){if(e===void 0&&(e=null),!t)return t;var n="";if(e&&(n=this.getFirstPropertyName(t,e),n))return n;for(var r=0;r<t.length;r++){var o=t[r];if(o=="."||o=="[")break;n+=o}return n},i.prototype.hasValue=function(t,e){e===void 0&&(e=null),e||(e=this.values);var n=this.getValueCore(t,e);return n.hasValue},i.prototype.getValue=function(t,e){e===void 0&&(e=null),e||(e=this.values);var n=this.getValueCore(t,e);return n.value},i.prototype.setValue=function(t,e,n){if(e){var r=this.getNonNestedObject(t,e,!0);r&&(t=r.value,e=r.text,t&&e&&(t[e]=n))}},i.prototype.getValueInfo=function(t){if(t.path){t.value=this.getValueFromPath(t.path,this.values),t.hasValue=t.value!==null&&!h.isValueEmpty(t.value),!t.hasValue&&t.path.length>1&&t.path[t.path.length-1]=="length"&&(t.hasValue=!0,t.value=0);return}var e=this.getValueCore(t.name,this.values);t.value=e.value,t.hasValue=e.hasValue,t.path=e.hasValue?e.path:null,t.sctrictCompare=e.sctrictCompare},i.prototype.isAnyKeyChanged=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];if(r){var o=r.toLowerCase();if(t.hasOwnProperty(r)||r!==o&&t.hasOwnProperty(o))return!0;var s=this.getFirstName(r);if(t.hasOwnProperty(s)){if(r===s)return!0;var u=t[s];if(u!=null){if(!u.hasOwnProperty("oldValue")||!u.hasOwnProperty("newValue"))return!0;var d={};d[s]=u.oldValue;var y=this.getValue(r,d);d[s]=u.newValue;var V=this.getValue(r,d);if(!h.isTwoValueEquals(y,V,!1,!1,!1))return!0}}}}return!1},i.prototype.getValueFromPath=function(t,e){if(t.length===2&&t[0]===wn)return this.getValueFromSurvey(t[1]);for(var n=0;e&&n<t.length;){var r=t[n];if(h.isNumber(r)&&Array.isArray(e)&&r>=e.length)return null;e=e[r],n++}return e},i.prototype.getValueCore=function(t,e){var n=this.getQuestionDirectly(t);if(n)return{hasValue:!0,value:n.value,path:[t],sctrictCompare:n.requireStrictCompare};var r=this.getValueFromValues(t,e);if(t&&!r.hasValue){var o=this.getValueFromSurvey(t);o!==void 0&&(r.hasValue=!0,r.value=o,r.path=[wn,t])}return r},i.prototype.getQuestionDirectly=function(t){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(t)},i.prototype.getValueFromSurvey=function(t){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(t.toLocaleLowerCase())},i.prototype.getValueFromValues=function(t,e){var n={hasValue:!1,value:null,path:null},r=e;if(!r&&r!==0&&r!==!1)return n;t&&t.lastIndexOf(".length")>-1&&t.lastIndexOf(".length")===t.length-7&&(n.value=0,n.hasValue=!0);var o=this.getNonNestedObject(r,t,!1);return o&&(n.path=o.path,n.value=o.text?this.getObjectValue(o.value,o.text):o.value,n.hasValue=!h.isValueEmpty(n.value)),n},i.prototype.getNonNestedObject=function(t,e,n){for(var r=new Array,o=0,s=this.getNonNestedObjectCore(t,e,n,r);!s&&o<r.length;)o=r.length,s=this.getNonNestedObjectCore(t,e,n,r);return s},i.prototype.getNonNestedObjectCore=function(t,e,n,r){var o=this.getFirstPropertyName(e,t,n,r);o&&r.push(o);for(var s=o?[o]:null;e!=o&&t;){var u=e[0]=="[";if(u){var d=this.getObjInArray(t,e);if(!d)return null;t=d.value,e=d.text,s.push(d.index)}else{if(!o&&e==this.getFirstName(e))return{value:t,text:e,path:s};if(t=this.getObjectValue(t,o),h.isValueEmpty(t)&&!n)return null;e=e.substring(o.length)}e&&e[0]=="."&&(e=e.substring(1)),o=this.getFirstPropertyName(e,t,n,r),o&&s.push(o)}return{value:t,text:e,path:s}},i.prototype.getObjInArray=function(t,e){if(!Array.isArray(t))return null;for(var n=1,r="";n<e.length&&e[n]!="]";)r+=e[n],n++;return e=n<e.length?e.substring(n+1):"",n=this.getIntValue(r),n<0||n>=t.length?null:{value:t[n],text:e,index:n}},i.prototype.getFirstPropertyName=function(t,e,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=void 0),!t||(e||(e={}),e.hasOwnProperty(t)))return t;var o=t.toLowerCase(),s=o[0],u=s.toUpperCase();for(var d in e)if(!(Array.isArray(r)&&r.indexOf(d)>-1)){var y=d[0];if(y===u||y===s){var V=d.toLowerCase();if(V==o)return d;if(o.length<=V.length)continue;var T=o[V.length];if(T!="."&&T!="[")continue;if(V==o.substring(0,V.length))return d}}if(n&&t[0]!=="["){var N=t.indexOf(".");return N>-1&&(t=t.substring(0,N),e[t]={}),t}return""},i.prototype.getObjectValue=function(t,e){return e?t[e]:null},i.prototype.getIntValue=function(t){return t=="0"||(t|0)>0&&t%1==0?Number(t):-1},i}(),He=function(){function i(){}return i.disposedObjectChangedProperty=function(t,e){i.warn('An attempt to set a property "'+t+'" of a disposed object "'+e+'"')},i.inCorrectQuestionValue=function(t,e){var n=JSON.stringify(e,null,3);i.warn("An attempt to assign an incorrect value"+n+' to the following question: "'+t+'"')},i.warn=function(t){console.warn(t)},i.error=function(t){console.error(t)},i}(),he=function(){function i(){this.functionHash={},this.isAsyncHash={}}return i.prototype.register=function(t,e,n){n===void 0&&(n=!1),this.functionHash[t]=e,n&&(this.isAsyncHash[t]=!0)},i.prototype.unregister=function(t){delete this.functionHash[t],delete this.isAsyncHash[t]},i.prototype.hasFunction=function(t){return!!this.functionHash[t]},i.prototype.isAsyncFunction=function(t){return!!this.isAsyncHash[t]},i.prototype.clear=function(){this.functionHash={}},i.prototype.getAll=function(){var t=[];for(var e in this.functionHash)t.push(e);return t.sort()},i.prototype.run=function(t,e,n,r){n===void 0&&(n=null);var o=this.functionHash[t];if(!o)return He.warn("Unknown function name: "+t),null;var s={func:o};if(n)for(var u in n)s[u]=n[u];return s.func(e,r)},i.Instance=new i,i}(),It=he.Instance.register;function Je(i,t){if(i!=null)if(Array.isArray(i))for(var e=0;e<i.length;e++)Je(i[e],t);else h.isNumber(i)&&(i=h.getNumber(i)),t.push(i)}function Qt(i){var t=[];Je(i,t);for(var e=0,n=0;n<t.length;n++)e=h.correctAfterPlusMinis(e,t[n],e+t[n]);return e}he.Instance.register("sum",Qt);function tt(i,t){var e=[];Je(i,e);for(var n=void 0,r=0;r<e.length;r++)n===void 0&&(n=e[r]),t?n>e[r]&&(n=e[r]):n<e[r]&&(n=e[r]);return n}function Ce(i){return tt(i,!0)}he.Instance.register("min",Ce);function tn(i){return tt(i,!1)}he.Instance.register("max",tn);function Ot(i){var t=[];return Je(i,t),t.length}he.Instance.register("count",Ot);function Dt(i){var t=[];Je(i,t);var e=Qt(i);return t.length>0?e/t.length:0}he.Instance.register("avg",Dt);function At(i,t){if(i.length<2||i.length>3)return null;var e=i[0];if(!e||!Array.isArray(e)&&!Array.isArray(Object.keys(e)))return null;var n=i[1];if(typeof n!="string"&&!(n instanceof String))return null;var r=i.length>2?i[2]:void 0;if(typeof r!="string"&&!(r instanceof String)&&(r=void 0),!r){var o=Array.isArray(t)&&t.length>2?t[2]:void 0;o&&o.toString()&&(r=o.toString())}return{data:e,name:n,expression:r}}function Ct(i){return typeof i=="string"?h.isNumber(i)?h.getNumber(i):void 0:i}function wt(i,t,e,n,r,o){if(!i||h.isValueEmpty(i[t])||o&&!o.run(i))return e;var s=r?Ct(i[t]):1;return n(e,s)}function nt(i,t,e,n){n===void 0&&(n=!0);var r=At(i,t);if(r){var o=r.expression?new Ue(r.expression):void 0;o&&o.isAsync&&(o=void 0);var s=void 0;if(Array.isArray(r.data))for(var u=0;u<r.data.length;u++)s=wt(r.data[u],r.name,s,e,n,o);else for(var d in r.data)s=wt(r.data[d],r.name,s,e,n,o);return s}}function ct(i,t){var e=nt(i,t,function(n,r){return n==null&&(n=0),r==null||r==null?n:h.correctAfterPlusMinis(n,r,n+r)});return e!==void 0?e:0}he.Instance.register("sumInArray",ct);function Vr(i,t){return nt(i,t,function(e,n){return e==null?n:n==null||n==null||e<n?e:n})}he.Instance.register("minInArray",Vr);function Sr(i,t){return nt(i,t,function(e,n){return e==null?n:n==null||n==null||e>n?e:n})}he.Instance.register("maxInArray",Sr);function mi(i,t){var e=nt(i,t,function(n,r){return n==null&&(n=0),r==null||r==null?n:n+1},!1);return e!==void 0?e:0}he.Instance.register("countInArray",mi);function vi(i,t){var e=mi(i,t);return e==0?0:ct(i,t)/e}he.Instance.register("avgInArray",vi);function Pn(i){return!i&&i.length!==3?"":i[0]?i[1]:i[2]}he.Instance.register("iif",Pn);function nn(i){return!i&&i.length<1||!i[0]?null:D("function-getDate",i[0])}he.Instance.register("getDate",nn);function rn(i,t,e){if(e==="days")return Gn([i,t]);var n=D("function-dateDiffMonths",i),r=D("function-dateDiffMonths",t),o=r.getFullYear()-n.getFullYear();e=e||"years";var s=o*12+r.getMonth()-n.getMonth();return r.getDate()<n.getDate()&&(s-=1),e==="months"?s:~~(s/12)}function bi(i){return!Array.isArray(i)||i.length<1||!i[0]?null:rn(i[0],void 0,(i.length>1?i[1]:"")||"years")}he.Instance.register("age",bi);function Ci(i){return!Array.isArray(i)||i.length<2||!i[0]||!i[1]?null:rn(i[0],i[1],(i.length>2?i[2]:"")||"days")}he.Instance.register("dateDiff",Ci);function wi(i){if(!Array.isArray(i)||i.length<2||!i[0]||!i[1])return null;var t=D("function-dateAdd",i[0]),e=i[1],n=i[2]||"days";return n==="days"&&t.setDate(t.getDate()+e),n==="months"&&t.setMonth(t.getMonth()+e),n==="years"&&t.setFullYear(t.getFullYear()+e),t}he.Instance.register("dateAdd",wi);function Pi(i){if(!i)return!1;for(var t=i.questions,e=0;e<t.length;e++)if(!t[e].validate(!1))return!1;return!0}function xi(i){if(!i&&i.length<1||!i[0]||!this.survey)return!1;var t=i[0],e=this.survey.getPageByName(t);if(e||(e=this.survey.getPanelByName(t)),!e){var n=this.survey.getQuestionByName(t);if(!n||!Array.isArray(n.panels))return!1;if(i.length>1)i[1]<n.panels.length&&(e=n.panels[i[1]]);else{for(var r=0;r<n.panels.length;r++)if(!Pi(n.panels[r]))return!1;return!0}}return Pi(e)}he.Instance.register("isContainerReady",xi);function Fo(){return this.survey&&this.survey.isDisplayMode}he.Instance.register("isDisplayMode",Fo);function Or(){return D("function-currentDate")}he.Instance.register("currentDate",Or);function Vi(i){var t=D("function-today");return I.localization.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(i)&&i.length==1&&t.setDate(t.getDate()+i[0]),t}he.Instance.register("today",Vi);function ko(i){if(!(i.length!==1||!i[0]))return D("function-getYear",i[0]).getFullYear()}he.Instance.register("getYear",ko);function Qo(){return D("function-currentYear").getFullYear()}he.Instance.register("currentYear",Qo);function Gn(i){if(!Array.isArray(i)||i.length!==2||!i[0]||!i[1])return 0;var t=D("function-diffDays",i[0]),e=D("function-diffDays",i[1]),n=Math.abs(e-t);return Math.ceil(n/(1e3*60*60*24))}he.Instance.register("diffDays",Gn);function Zn(i,t){var e=Vi(void 0);return t&&t[0]&&(e=D("function-"+i,t[0])),e}function Pt(i){var t=Zn("year",i);return t.getFullYear()}he.Instance.register("year",Pt);function Ho(i){var t=Zn("month",i);return t.getMonth()+1}he.Instance.register("month",Ho);function Si(i){var t=Zn("day",i);return t.getDate()}he.Instance.register("day",Si);function zo(i){var t=Zn("weekday",i);return t.getDay()}he.Instance.register("weekday",zo);function Oi(i,t){if(!(!i||!t)){for(var e=i.question;e&&e.parent;){var n=e.parent.getQuestionByName(t);if(n)return n;e=e.parentQuestion}for(var r=["row","panel","survey"],o=0;o<r.length;o++){var s=i[r[o]];if(s&&s.getQuestionByName){var n=s.getQuestionByName(t);if(n)return n}}return null}}function Er(i,t){return t.length>1&&!h.isValueEmpty(t[1])?i.getDisplayValue(!0,t[1]):i.displayValue}function Ei(i){var t=this,e=Oi(this,i[0]);if(!e)return"";if(e.isReady)this.returnResult(Er(e,i));else{var n=function(r,o){r.isReady&&(r.onReadyChanged.remove(n),t.returnResult(Er(r,i)))};e.onReadyChanged.add(n)}}he.Instance.register("displayValue",Ei,!0);function Uo(i){if(!(i.length!==2||!i[0]||!i[1])){var t=Oi(this,i[0]);return t?t[i[1]]:void 0}}he.Instance.register("propertyValue",Uo);function Wo(i){if(i.length<2)return"";var t=i[0];if(!t||typeof t!="string")return"";var e=i[1];if(!h.isNumber(e))return"";var n=i.length>2?i[2]:void 0;return h.isNumber(n)?t.substring(e,n):t.substring(e)}he.Instance.register("substring",Wo);var Lt=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Mt=function(){function i(){this._id=i.counter++}return Object.defineProperty(i.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),i.prototype.toString=function(t){return""},i.prototype.hasFunction=function(){return!1},i.prototype.hasAsyncFunction=function(){return!1},i.prototype.addToAsyncList=function(t){},i.prototype.isEqual=function(t){return!!t&&t.getType()===this.getType()&&this.isContentEqual(t)},i.prototype.areOperatorsEquals=function(t,e){return!t&&!e||!!t&&t.isEqual(e)},i.counter=1,i}(),xn=function(i){Lt(t,i);function t(e,n,r,o){n===void 0&&(n=null),r===void 0&&(r=null),o===void 0&&(o=!1);var s=i.call(this)||this;return s.operatorName=e,s.left=n,s.right=r,s.isArithmeticValue=o,o?s.consumer=ze.binaryFunctions.arithmeticOp(e):s.consumer=ze.binaryFunctions[e],s.consumer==null&&ze.throwInvalidOperatorError(e),s}return Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.getIsOperandRequireStrict(this.left)||this.getIsOperandRequireStrict(this.right)},enumerable:!1,configurable:!0}),t.prototype.getIsOperandRequireStrict=function(e){return!!e&&e.requireStrictCompare},t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return this.operatorName=="or"||this.operatorName=="and"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){var n=e;return n.operator===this.operator&&this.areOperatorsEquals(this.left,n.left)&&this.areOperatorsEquals(this.right,n.right)},t.prototype.evaluateParam=function(e,n){return e==null?null:e.evaluate(n)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e),this.requireStrictCompare)},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return"("+ze.safeToString(this.left,e)+" "+ze.operatorToString(this.operatorName)+" "+ze.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){this.left!=null&&this.left.setVariables(e),this.right!=null&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(Mt),Tr=function(i){Lt(t,i);function t(e,n){var r=i.call(this)||this;return r.expressionValue=e,r.operatorName=n,r.consumer=ze.unaryFunctions[n],r.consumer==null&&ze.throwInvalidOperatorError(n),r}return Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return ze.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){var n=e;return n.operator==this.operator&&this.areOperatorsEquals(this.expression,n.expression)},t.prototype.hasFunction=function(){return this.expression.hasFunction()},t.prototype.hasAsyncFunction=function(){return this.expression.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.expression.addToAsyncList(e)},t.prototype.evaluate=function(e){var n=this.expression.evaluate(e);return this.consumer.call(this,n)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(Mt),Ht=function(i){Lt(t,i);function t(e){var n=i.call(this)||this;return n.values=e,n}return t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return"["+this.values.map(function(r){return r.toString(e)}).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map(function(n){return n.evaluate(e)})},t.prototype.setVariables=function(e){this.values.forEach(function(n){n.setVariables(e)})},t.prototype.hasFunction=function(){return this.values.some(function(e){return e.hasFunction()})},t.prototype.hasAsyncFunction=function(){return this.values.some(function(e){return e.hasAsyncFunction()})},t.prototype.addToAsyncList=function(e){this.values.forEach(function(n){return n.addToAsyncList(e)})},t.prototype.isContentEqual=function(e){var n=e;if(n.values.length!==this.values.length)return!1;for(var r=0;r<this.values.length;r++)if(!n.values[r].isEqual(this.values[r]))return!1;return!0},t}(Mt),Rr=function(i){Lt(t,i);function t(e){var n=i.call(this)||this;return n.value=e,n}return t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){if(!e||typeof e!="string")return e;if(ze.isBooleanValue(e))return e.toLowerCase()==="true";if(e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1]))return e.substring(1,e.length-1);if(h.isNumber(e)){if(e[0]==="0"&&e.indexOf("0x")!=0){var n=e.length,r=n>1&&(e[1]==="."||e[1]===",");if(!r&&n>1||r&&n<2)return e}return h.getNumber(e)}return e},t.prototype.isContentEqual=function(e){var n=e;return n.value==this.value},t.prototype.isQuote=function(e){return e=="'"||e=='"'},t}(Mt),Ir=function(i){Lt(t,i);function t(e){var n=i.call(this,e)||this;return n.variableName=e,n.valueInfo={},n.useValueAsItIs=!1,n.variableName&&n.variableName.length>1&&n.variableName[0]===t.DisableConversionChar&&(n.variableName=n.variableName.substring(1),n.useValueAsItIs=!0),n}return Object.defineProperty(t,"DisableConversionChar",{get:function(){return I.expressionDisableConversionChar},set:function(e){I.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.valueInfo.sctrictCompare===!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}var r=this.useValueAsItIs?t.DisableConversionChar:"";return"{"+r+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(e){return this.useValueAsItIs?e:i.prototype.getCorrectValue.call(this,e)},t.prototype.isContentEqual=function(e){var n=e;return n.variable==this.variable},t}(Rr),Ti=function(i){Lt(t,i);function t(e,n){var r=i.call(this)||this;return r.originalValue=e,r.parameters=n,Array.isArray(n)&&n.length===0&&(r.parameters=new Ht([])),r}return t.prototype.getType=function(){return"function"},t.prototype.evaluate=function(e){var n=this.getAsynValue(e);return n?n.value:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){var n=e.properties;if(this.isAsyncFunction){n=h.createCopy(e.properties);var r=this.id,o=e.asyncValues,s=e.onCompleteAsyncFunc,u=this;n.returnResult=function(d){o[r]={value:d},s(u)}}return he.Instance.run(this.originalValue,this.parameters.evaluate(e),n,this.parameters.values)},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},t.prototype.isReady=function(e){return!!this.getAsynValue(e)},t.prototype.getAsynValue=function(e){return e.asyncValues[this.id]},t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return this.isAsyncFunction()||this.parameters.hasAsyncFunction()},t.prototype.isAsyncFunction=function(){return he.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){var n=void 0;if(this.isAsyncFunction()&&(n={operand:this}),this.parameters.hasAsyncFunction()){var r=new Array;this.parameters.addToAsyncList(r),r.forEach(function(o){return o.parent=n}),n||(n={}),n.children=r}n&&e.push(n)},t.prototype.isContentEqual=function(e){var n=e;return n.originalValue==this.originalValue&&this.areOperatorsEquals(n.parameters,this.parameters)},t}(Mt),ze=function(){function i(){}return i.throwInvalidOperatorError=function(t){throw new Error("Invalid operator: '"+t+"'")},i.safeToString=function(t,e){return t==null?"":t.toString(e)},i.toOperandString=function(t){return t&&!h.isNumber(t)&&!i.isBooleanValue(t)&&(t="'"+t+"'"),t},i.isBooleanValue=function(t){return!!t&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")},i.countDecimals=function(t){if(h.isNumber(t)&&Math.floor(t)!==t){var e=t.toString().split(".");return e.length>1&&e[1].length||0}return 0},i.plusMinus=function(t,e,n){var r=i.countDecimals(t),o=i.countDecimals(e);if(r>0||o>0){var s=Math.max(r,o);n=parseFloat(n.toFixed(s))}return n},i.isTwoValueEquals=function(t,e,n){return n===void 0&&(n=!0),t==="undefined"&&(t=void 0),e==="undefined"&&(e=void 0),h.isTwoValueEquals(t,e,n)},i.operatorToString=function(t){var e=i.signs[t];return e??t},i.convertValForDateCompare=function(t,e){if(e instanceof Date&&typeof t=="string"){var n=D("expression-operand",t);return n.setHours(0,0,0),n}return t},i.unaryFunctions={empty:function(t){return h.isValueEmpty(t)},notempty:function(t){return!i.unaryFunctions.empty(t)},negate:function(t){return!t}},i.binaryFunctions={arithmeticOp:function(t){var e=function(n,r){return h.isValueEmpty(n)?typeof r=="number"?0:typeof n=="string"?n:typeof r=="string"?"":Array.isArray(r)?[]:0:n};return function(n,r){n=e(n,r),r=e(r,n);var o=i.binaryFunctions[t];return o==null?null:o.call(this,n,r)}},and:function(t,e){return t&&e},or:function(t,e){return t||e},plus:function(t,e){return h.sumAnyValues(t,e)},minus:function(t,e){return h.correctAfterPlusMinis(t,e,t-e)},mul:function(t,e){return h.correctAfterMultiple(t,e,t*e)},div:function(t,e){return e?t/e:null},mod:function(t,e){return e?t%e:null},power:function(t,e){return Math.pow(t,e)},greater:function(t,e){return t==null||e==null?!1:(t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),t>e)},less:function(t,e){return t==null||e==null?!1:(t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),t<e)},greaterorequal:function(t,e){return i.binaryFunctions.equal(t,e)?!0:i.binaryFunctions.greater(t,e)},lessorequal:function(t,e){return i.binaryFunctions.equal(t,e)?!0:i.binaryFunctions.less(t,e)},equal:function(t,e,n){return t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),i.isTwoValueEquals(t,e,n!==!0)},notequal:function(t,e,n){return!i.binaryFunctions.equal(t,e,n)},contains:function(t,e){return i.binaryFunctions.containsCore(t,e,!0)},notcontains:function(t,e){return!t&&!h.isValueEmpty(e)?!0:i.binaryFunctions.containsCore(t,e,!1)},anyof:function(t,e){if(h.isValueEmpty(t)&&h.isValueEmpty(e))return!0;if(h.isValueEmpty(t)||!Array.isArray(t)&&t.length===0)return!1;if(h.isValueEmpty(e))return!0;if(!Array.isArray(t))return i.binaryFunctions.contains(e,t);if(!Array.isArray(e))return i.binaryFunctions.contains(t,e);for(var n=0;n<e.length;n++)if(i.binaryFunctions.contains(t,e[n]))return!0;return!1},allof:function(t,e){if(!t&&!h.isValueEmpty(e))return!1;if(!Array.isArray(e))return i.binaryFunctions.contains(t,e);for(var n=0;n<e.length;n++)if(!i.binaryFunctions.contains(t,e[n]))return!1;return!0},containsCore:function(t,e,n){if(!t&&t!==0&&t!==!1)return!1;if(t.length||(t=t.toString(),(typeof e=="string"||e instanceof String)&&(t=t.toUpperCase(),e=e.toUpperCase())),typeof t=="string"||t instanceof String){if(!e)return!1;e=e.toString();var r=t.indexOf(e)>-1;return n?r:!r}for(var o=Array.isArray(e)?e:[e],s=0;s<o.length;s++){var u=0;for(e=o[s];u<t.length&&!i.isTwoValueEquals(t[u],e);u++);if(u==t.length)return!n}return n}},i.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},i}(),$o=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Kn=function(i){$o(t,i);function t(e,n,r,o){var s=i.call(this)||this;return s.message=e,s.expected=n,s.found=r,s.location=o,s.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(s,t),s}return t.buildMessage=function(e,n){function r(V){return V.charCodeAt(0).toString(16).toUpperCase()}function o(V){return V.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(T){return"\\x0"+r(T)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(T){return"\\x"+r(T)})}function s(V){return V.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(T){return"\\x0"+r(T)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(T){return"\\x"+r(T)})}function u(V){switch(V.type){case"literal":return'"'+o(V.text)+'"';case"class":var T=V.parts.map(function(N){return Array.isArray(N)?s(N[0])+"-"+s(N[1]):s(N)});return"["+(V.inverted?"^":"")+T+"]";case"any":return"any character";case"end":return"end of input";case"other":return V.description}}function d(V){var T=V.map(u),N,U;if(T.sort(),T.length>0){for(N=1,U=1;N<T.length;N++)T[N-1]!==T[N]&&(T[U]=T[N],U++);T.length=U}switch(T.length){case 1:return T[0];case 2:return T[0]+" or "+T[1];default:return T.slice(0,-1).join(", ")+", or "+T[T.length-1]}}function y(V){return V?'"'+o(V)+'"':"end of input"}return"Expected "+d(e)+" but "+y(n)+" found."},t}(Error);function Ri(i,t){t=t!==void 0?t:{};var e={},n={Expression:$n},r=$n,o=function(m,b){return Hu(m,b,!0)},s="||",u=se("||",!1),d="or",y=se("or",!0),V=function(){return"or"},T="&&",N=se("&&",!1),U="and",W=se("and",!0),X=function(){return"and"},Y=function(m,b){return Hu(m,b)},J="<=",ue=se("<=",!1),Me="lessorequal",Ne=se("lessorequal",!0),St=function(){return"lessorequal"},Tt=">=",wr=se(">=",!1),Un="greaterorequal",Kp=se("greaterorequal",!0),Yp=function(){return"greaterorequal"},Jl="==",Xp=se("==",!1),Gl="equal",Zl=se("equal",!0),Kl=function(){return"equal"},ef="=",tf=se("=",!1),Yl="!=",nf=se("!=",!1),rf="notequal",of=se("notequal",!0),sf=function(){return"notequal"},af="<",lf=se("<",!1),uf="less",cf=se("less",!0),pf=function(){return"less"},ff=">",df=se(">",!1),hf="greater",gf=se("greater",!0),yf=function(){return"greater"},mf="+",vf=se("+",!1),bf=function(){return"plus"},Cf="-",wf=se("-",!1),Pf=function(){return"minus"},xf="*",Vf=se("*",!1),Sf=function(){return"mul"},Of="/",Ef=se("/",!1),Tf=function(){return"div"},Rf="%",If=se("%",!1),Df=function(){return"mod"},Af="^",Lf=se("^",!1),Mf="power",jf=se("power",!0),Nf=function(){return"power"},Xl="*=",qf=se("*=",!1),_f="contains",Bf=se("contains",!0),Ff="contain",kf=se("contain",!0),Qf=function(){return"contains"},Hf="notcontains",zf=se("notcontains",!0),Uf="notcontain",Wf=se("notcontain",!0),$f=function(){return"notcontains"},Jf="anyof",Gf=se("anyof",!0),Zf=function(){return"anyof"},Kf="allof",Yf=se("allof",!0),Xf=function(){return"allof"},eu="(",tu=se("(",!1),nu=")",ru=se(")",!1),ed=function(m){return m},td=function(m,b){return new Ti(m,b)},nd="!",rd=se("!",!1),id="negate",od=se("negate",!0),sd=function(m){return new Tr(m,"negate")},ad=function(m,b){return new Tr(m,b)},ld="empty",ud=se("empty",!0),cd=function(){return"empty"},pd="notempty",fd=se("notempty",!0),dd=function(){return"notempty"},iu="undefined",hd=se("undefined",!1),ou="null",gd=se("null",!1),yd=function(){return null},md=function(m){return new Rr(m)},vd="{",bd=se("{",!1),Cd="}",wd=se("}",!1),Pd=function(m){return new Ir(m)},pa=function(m){return m},su="''",xd=se("''",!1),au=function(){return""},lu='""',Vd=se('""',!1),uu="'",cu=se("'",!1),pu=function(m){return"'"+m+"'"},fu='"',du=se('"',!1),Sd="[",Od=se("[",!1),Ed="]",Td=se("]",!1),Rd=function(m){return m},hu=",",gu=se(",",!1),Id=function(m,b){if(m==null)return new Ht([]);var M=[m];if(Array.isArray(b))for(var E=mh(b),q=3;q<E.length;q+=4)M.push(E[q]);return new Ht(M)},Dd="true",Ad=se("true",!0),Ld=function(){return!0},Md="false",jd=se("false",!0),Nd=function(){return!1},yu="0x",qd=se("0x",!1),_d=function(){return parseInt(No(),16)},Bd=/^[\-]/,Fd=Wn(["-"],!1,!1),kd=function(m,b){return m==null?b:-b},Qd=".",Hd=se(".",!1),zd=function(){return parseFloat(No())},Ud=function(){return parseInt(No(),10)},Wd="0",$d=se("0",!1),Jd=function(){return 0},mu=function(m){return m.join("")},vu="\\'",Gd=se("\\'",!1),Zd=function(){return"'"},bu='\\"',Kd=se('\\"',!1),Yd=function(){return'"'},Xd=/^[^"']/,eh=Wn(['"',"'"],!0,!1),fa=function(){return No()},th=/^[^{}]/,nh=Wn(["{","}"],!0,!1),Cu=/^[0-9]/,wu=Wn([["0","9"]],!1,!1),Pu=/^[1-9]/,xu=Wn([["1","9"]],!1,!1),Vu=/^[a-zA-Z_]/,Su=Wn([["a","z"],["A","Z"],"_"],!1,!1),rh=oh("whitespace"),Ou=/^[ \t\n\r]/,Eu=Wn([" ","	",`
+`,"\r"],!1,!1),v=0,oe=0,Mo=[{line:1,column:1}],kt=0,da=[],G=0,ee={},jo;if(t.startRule!==void 0){if(!(t.startRule in n))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');r=n[t.startRule]}function No(){return i.substring(oe,v)}function se(m,b){return{type:"literal",text:m,ignoreCase:b}}function Wn(m,b,M){return{type:"class",parts:m,inverted:b,ignoreCase:M}}function ih(){return{type:"end"}}function oh(m){return{type:"other",description:m}}function Tu(m){var b=Mo[m],M;if(b)return b;for(M=m-1;!Mo[M];)M--;for(b=Mo[M],b={line:b.line,column:b.column};M<m;)i.charCodeAt(M)===10?(b.line++,b.column=1):b.column++,M++;return Mo[m]=b,b}function Ru(m,b){var M=Tu(m),E=Tu(b);return{start:{offset:m,line:M.line,column:M.column},end:{offset:b,line:E.line,column:E.column}}}function K(m){v<kt||(v>kt&&(kt=v,da=[]),da.push(m))}function sh(m,b,M){return new Kn(Kn.buildMessage(m,b),m,b,M)}function $n(){var m,b,M,E,q,Q,Z,te,Oe,Te=v*34+0,wa=ee[Te];if(wa)return v=wa.nextPos,wa.result;if(m=v,b=ve(),b!==e)if(M=ha(),M!==e){for(E=[],q=v,Q=ve(),Q!==e?(Z=Iu(),Z!==e?(te=ve(),te!==e?(Oe=ha(),Oe!==e?(Q=[Q,Z,te,Oe],q=Q):(v=q,q=e)):(v=q,q=e)):(v=q,q=e)):(v=q,q=e);q!==e;)E.push(q),q=v,Q=ve(),Q!==e?(Z=Iu(),Z!==e?(te=ve(),te!==e?(Oe=ha(),Oe!==e?(Q=[Q,Z,te,Oe],q=Q):(v=q,q=e)):(v=q,q=e)):(v=q,q=e)):(v=q,q=e);E!==e?(q=ve(),q!==e?(oe=m,b=o(M,E),m=b):(v=m,m=e)):(v=m,m=e)}else v=m,m=e;else v=m,m=e;return ee[Te]={nextPos:v,result:m},m}function Iu(){var m,b,M=v*34+1,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.substr(v,2)===s?(b=s,v+=2):(b=e,G===0&&K(u)),b===e&&(i.substr(v,2).toLowerCase()===d?(b=i.substr(v,2),v+=2):(b=e,G===0&&K(y))),b!==e&&(oe=m,b=V()),m=b,ee[M]={nextPos:v,result:m},m)}function ha(){var m,b,M,E,q,Q,Z,te,Oe=v*34+2,Te=ee[Oe];if(Te)return v=Te.nextPos,Te.result;if(m=v,b=ga(),b!==e){for(M=[],E=v,q=ve(),q!==e?(Q=Du(),Q!==e?(Z=ve(),Z!==e?(te=ga(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);E!==e;)M.push(E),E=v,q=ve(),q!==e?(Q=Du(),Q!==e?(Z=ve(),Z!==e?(te=ga(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);M!==e?(oe=m,b=o(b,M),m=b):(v=m,m=e)}else v=m,m=e;return ee[Oe]={nextPos:v,result:m},m}function Du(){var m,b,M=v*34+3,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.substr(v,2)===T?(b=T,v+=2):(b=e,G===0&&K(N)),b===e&&(i.substr(v,3).toLowerCase()===U?(b=i.substr(v,3),v+=3):(b=e,G===0&&K(W))),b!==e&&(oe=m,b=X()),m=b,ee[M]={nextPos:v,result:m},m)}function ga(){var m,b,M,E,q,Q,Z,te,Oe=v*34+4,Te=ee[Oe];if(Te)return v=Te.nextPos,Te.result;if(m=v,b=ya(),b!==e){for(M=[],E=v,q=ve(),q!==e?(Q=Au(),Q!==e?(Z=ve(),Z!==e?(te=ya(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);E!==e;)M.push(E),E=v,q=ve(),q!==e?(Q=Au(),Q!==e?(Z=ve(),Z!==e?(te=ya(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);M!==e?(oe=m,b=Y(b,M),m=b):(v=m,m=e)}else v=m,m=e;return ee[Oe]={nextPos:v,result:m},m}function Au(){var m,b,M=v*34+5,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.substr(v,2)===J?(b=J,v+=2):(b=e,G===0&&K(ue)),b===e&&(i.substr(v,11).toLowerCase()===Me?(b=i.substr(v,11),v+=11):(b=e,G===0&&K(Ne))),b!==e&&(oe=m,b=St()),m=b,m===e&&(m=v,i.substr(v,2)===Tt?(b=Tt,v+=2):(b=e,G===0&&K(wr)),b===e&&(i.substr(v,14).toLowerCase()===Un?(b=i.substr(v,14),v+=14):(b=e,G===0&&K(Kp))),b!==e&&(oe=m,b=Yp()),m=b,m===e&&(m=v,i.substr(v,2)===Jl?(b=Jl,v+=2):(b=e,G===0&&K(Xp)),b===e&&(i.substr(v,5).toLowerCase()===Gl?(b=i.substr(v,5),v+=5):(b=e,G===0&&K(Zl))),b!==e&&(oe=m,b=Kl()),m=b,m===e&&(m=v,i.charCodeAt(v)===61?(b=ef,v++):(b=e,G===0&&K(tf)),b===e&&(i.substr(v,5).toLowerCase()===Gl?(b=i.substr(v,5),v+=5):(b=e,G===0&&K(Zl))),b!==e&&(oe=m,b=Kl()),m=b,m===e&&(m=v,i.substr(v,2)===Yl?(b=Yl,v+=2):(b=e,G===0&&K(nf)),b===e&&(i.substr(v,8).toLowerCase()===rf?(b=i.substr(v,8),v+=8):(b=e,G===0&&K(of))),b!==e&&(oe=m,b=sf()),m=b,m===e&&(m=v,i.charCodeAt(v)===60?(b=af,v++):(b=e,G===0&&K(lf)),b===e&&(i.substr(v,4).toLowerCase()===uf?(b=i.substr(v,4),v+=4):(b=e,G===0&&K(cf))),b!==e&&(oe=m,b=pf()),m=b,m===e&&(m=v,i.charCodeAt(v)===62?(b=ff,v++):(b=e,G===0&&K(df)),b===e&&(i.substr(v,7).toLowerCase()===hf?(b=i.substr(v,7),v+=7):(b=e,G===0&&K(gf))),b!==e&&(oe=m,b=yf()),m=b)))))),ee[M]={nextPos:v,result:m},m)}function ya(){var m,b,M,E,q,Q,Z,te,Oe=v*34+6,Te=ee[Oe];if(Te)return v=Te.nextPos,Te.result;if(m=v,b=ma(),b!==e){for(M=[],E=v,q=ve(),q!==e?(Q=Lu(),Q!==e?(Z=ve(),Z!==e?(te=ma(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);E!==e;)M.push(E),E=v,q=ve(),q!==e?(Q=Lu(),Q!==e?(Z=ve(),Z!==e?(te=ma(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);M!==e?(oe=m,b=o(b,M),m=b):(v=m,m=e)}else v=m,m=e;return ee[Oe]={nextPos:v,result:m},m}function Lu(){var m,b,M=v*34+7,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.charCodeAt(v)===43?(b=mf,v++):(b=e,G===0&&K(vf)),b!==e&&(oe=m,b=bf()),m=b,m===e&&(m=v,i.charCodeAt(v)===45?(b=Cf,v++):(b=e,G===0&&K(wf)),b!==e&&(oe=m,b=Pf()),m=b),ee[M]={nextPos:v,result:m},m)}function ma(){var m,b,M,E,q,Q,Z,te,Oe=v*34+8,Te=ee[Oe];if(Te)return v=Te.nextPos,Te.result;if(m=v,b=va(),b!==e){for(M=[],E=v,q=ve(),q!==e?(Q=Mu(),Q!==e?(Z=ve(),Z!==e?(te=va(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);E!==e;)M.push(E),E=v,q=ve(),q!==e?(Q=Mu(),Q!==e?(Z=ve(),Z!==e?(te=va(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);M!==e?(oe=m,b=o(b,M),m=b):(v=m,m=e)}else v=m,m=e;return ee[Oe]={nextPos:v,result:m},m}function Mu(){var m,b,M=v*34+9,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.charCodeAt(v)===42?(b=xf,v++):(b=e,G===0&&K(Vf)),b!==e&&(oe=m,b=Sf()),m=b,m===e&&(m=v,i.charCodeAt(v)===47?(b=Of,v++):(b=e,G===0&&K(Ef)),b!==e&&(oe=m,b=Tf()),m=b,m===e&&(m=v,i.charCodeAt(v)===37?(b=Rf,v++):(b=e,G===0&&K(If)),b!==e&&(oe=m,b=Df()),m=b)),ee[M]={nextPos:v,result:m},m)}function va(){var m,b,M,E,q,Q,Z,te,Oe=v*34+10,Te=ee[Oe];if(Te)return v=Te.nextPos,Te.result;if(m=v,b=ba(),b!==e){for(M=[],E=v,q=ve(),q!==e?(Q=ju(),Q!==e?(Z=ve(),Z!==e?(te=ba(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);E!==e;)M.push(E),E=v,q=ve(),q!==e?(Q=ju(),Q!==e?(Z=ve(),Z!==e?(te=ba(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);M!==e?(oe=m,b=o(b,M),m=b):(v=m,m=e)}else v=m,m=e;return ee[Oe]={nextPos:v,result:m},m}function ju(){var m,b,M=v*34+11,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.charCodeAt(v)===94?(b=Af,v++):(b=e,G===0&&K(Lf)),b===e&&(i.substr(v,5).toLowerCase()===Mf?(b=i.substr(v,5),v+=5):(b=e,G===0&&K(jf))),b!==e&&(oe=m,b=Nf()),m=b,ee[M]={nextPos:v,result:m},m)}function ba(){var m,b,M,E,q,Q,Z,te,Oe=v*34+12,Te=ee[Oe];if(Te)return v=Te.nextPos,Te.result;if(m=v,b=Ca(),b!==e){for(M=[],E=v,q=ve(),q!==e?(Q=Nu(),Q!==e?(Z=ve(),Z!==e?(te=Ca(),te===e&&(te=null),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);E!==e;)M.push(E),E=v,q=ve(),q!==e?(Q=Nu(),Q!==e?(Z=ve(),Z!==e?(te=Ca(),te===e&&(te=null),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);M!==e?(oe=m,b=Y(b,M),m=b):(v=m,m=e)}else v=m,m=e;return ee[Oe]={nextPos:v,result:m},m}function Nu(){var m,b,M=v*34+13,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.substr(v,2)===Xl?(b=Xl,v+=2):(b=e,G===0&&K(qf)),b===e&&(i.substr(v,8).toLowerCase()===_f?(b=i.substr(v,8),v+=8):(b=e,G===0&&K(Bf)),b===e&&(i.substr(v,7).toLowerCase()===Ff?(b=i.substr(v,7),v+=7):(b=e,G===0&&K(kf)))),b!==e&&(oe=m,b=Qf()),m=b,m===e&&(m=v,i.substr(v,11).toLowerCase()===Hf?(b=i.substr(v,11),v+=11):(b=e,G===0&&K(zf)),b===e&&(i.substr(v,10).toLowerCase()===Uf?(b=i.substr(v,10),v+=10):(b=e,G===0&&K(Wf))),b!==e&&(oe=m,b=$f()),m=b,m===e&&(m=v,i.substr(v,5).toLowerCase()===Jf?(b=i.substr(v,5),v+=5):(b=e,G===0&&K(Gf)),b!==e&&(oe=m,b=Zf()),m=b,m===e&&(m=v,i.substr(v,5).toLowerCase()===Kf?(b=i.substr(v,5),v+=5):(b=e,G===0&&K(Yf)),b!==e&&(oe=m,b=Xf()),m=b))),ee[M]={nextPos:v,result:m},m)}function Ca(){var m,b,M,E,q,Q,Z=v*34+14,te=ee[Z];return te?(v=te.nextPos,te.result):(m=v,i.charCodeAt(v)===40?(b=eu,v++):(b=e,G===0&&K(tu)),b!==e?(M=ve(),M!==e?(E=$n(),E!==e?(q=ve(),q!==e?(i.charCodeAt(v)===41?(Q=nu,v++):(Q=e,G===0&&K(ru)),Q===e&&(Q=null),Q!==e?(oe=m,b=ed(E),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),m===e&&(m=ah(),m===e&&(m=lh(),m===e&&(m=qu(),m===e&&(m=ph())))),ee[Z]={nextPos:v,result:m},m)}function ah(){var m,b,M,E,q,Q=v*34+15,Z=ee[Q];return Z?(v=Z.nextPos,Z.result):(m=v,b=Qu(),b!==e?(i.charCodeAt(v)===40?(M=eu,v++):(M=e,G===0&&K(tu)),M!==e?(E=_u(),E!==e?(i.charCodeAt(v)===41?(q=nu,v++):(q=e,G===0&&K(ru)),q===e&&(q=null),q!==e?(oe=m,b=td(b,E),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),ee[Q]={nextPos:v,result:m},m)}function lh(){var m,b,M,E,q=v*34+16,Q=ee[q];return Q?(v=Q.nextPos,Q.result):(m=v,i.charCodeAt(v)===33?(b=nd,v++):(b=e,G===0&&K(rd)),b===e&&(i.substr(v,6).toLowerCase()===id?(b=i.substr(v,6),v+=6):(b=e,G===0&&K(od))),b!==e?(M=ve(),M!==e?(E=$n(),E!==e?(oe=m,b=sd(E),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,b=qu(),b!==e?(M=ve(),M!==e?(E=uh(),E!==e?(oe=m,b=ad(b,E),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e)),ee[q]={nextPos:v,result:m},m)}function uh(){var m,b,M=v*34+17,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.substr(v,5).toLowerCase()===ld?(b=i.substr(v,5),v+=5):(b=e,G===0&&K(ud)),b!==e&&(oe=m,b=cd()),m=b,m===e&&(m=v,i.substr(v,8).toLowerCase()===pd?(b=i.substr(v,8),v+=8):(b=e,G===0&&K(fd)),b!==e&&(oe=m,b=dd()),m=b),ee[M]={nextPos:v,result:m},m)}function qu(){var m,b,M,E,q,Q=v*34+18,Z=ee[Q];return Z?(v=Z.nextPos,Z.result):(m=v,b=ve(),b!==e?(i.substr(v,9)===iu?(M=iu,v+=9):(M=e,G===0&&K(hd)),M===e&&(i.substr(v,4)===ou?(M=ou,v+=4):(M=e,G===0&&K(gd))),M!==e?(oe=m,b=yd(),m=b):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,b=ve(),b!==e?(M=ch(),M!==e?(oe=m,b=md(M),m=b):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,b=ve(),b!==e?(i.charCodeAt(v)===123?(M=vd,v++):(M=e,G===0&&K(bd)),M!==e?(E=gh(),E!==e?(i.charCodeAt(v)===125?(q=Cd,v++):(q=e,G===0&&K(wd)),q!==e?(oe=m,b=Pd(E),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e)):(v=m,m=e))),ee[Q]={nextPos:v,result:m},m)}function ch(){var m,b,M,E,q=v*34+19,Q=ee[q];return Q?(v=Q.nextPos,Q.result):(m=v,b=fh(),b!==e&&(oe=m,b=pa(b)),m=b,m===e&&(m=v,b=dh(),b!==e&&(oe=m,b=pa(b)),m=b,m===e&&(m=v,b=Qu(),b!==e&&(oe=m,b=pa(b)),m=b,m===e&&(m=v,i.substr(v,2)===su?(b=su,v+=2):(b=e,G===0&&K(xd)),b!==e&&(oe=m,b=au()),m=b,m===e&&(m=v,i.substr(v,2)===lu?(b=lu,v+=2):(b=e,G===0&&K(Vd)),b!==e&&(oe=m,b=au()),m=b,m===e&&(m=v,i.charCodeAt(v)===39?(b=uu,v++):(b=e,G===0&&K(cu)),b!==e?(M=Bu(),M!==e?(i.charCodeAt(v)===39?(E=uu,v++):(E=e,G===0&&K(cu)),E!==e?(oe=m,b=pu(M),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,i.charCodeAt(v)===34?(b=fu,v++):(b=e,G===0&&K(du)),b!==e?(M=Bu(),M!==e?(i.charCodeAt(v)===34?(E=fu,v++):(E=e,G===0&&K(du)),E!==e?(oe=m,b=pu(M),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e))))))),ee[q]={nextPos:v,result:m},m)}function ph(){var m,b,M,E,q=v*34+20,Q=ee[q];return Q?(v=Q.nextPos,Q.result):(m=v,i.charCodeAt(v)===91?(b=Sd,v++):(b=e,G===0&&K(Od)),b!==e?(M=_u(),M!==e?(i.charCodeAt(v)===93?(E=Ed,v++):(E=e,G===0&&K(Td)),E!==e?(oe=m,b=Rd(M),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),ee[q]={nextPos:v,result:m},m)}function _u(){var m,b,M,E,q,Q,Z,te,Oe=v*34+21,Te=ee[Oe];if(Te)return v=Te.nextPos,Te.result;if(m=v,b=$n(),b===e&&(b=null),b!==e){for(M=[],E=v,q=ve(),q!==e?(i.charCodeAt(v)===44?(Q=hu,v++):(Q=e,G===0&&K(gu)),Q!==e?(Z=ve(),Z!==e?(te=$n(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);E!==e;)M.push(E),E=v,q=ve(),q!==e?(i.charCodeAt(v)===44?(Q=hu,v++):(Q=e,G===0&&K(gu)),Q!==e?(Z=ve(),Z!==e?(te=$n(),te!==e?(q=[q,Q,Z,te],E=q):(v=E,E=e)):(v=E,E=e)):(v=E,E=e)):(v=E,E=e);M!==e?(oe=m,b=Id(b,M),m=b):(v=m,m=e)}else v=m,m=e;return ee[Oe]={nextPos:v,result:m},m}function fh(){var m,b,M=v*34+22,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.substr(v,4).toLowerCase()===Dd?(b=i.substr(v,4),v+=4):(b=e,G===0&&K(Ad)),b!==e&&(oe=m,b=Ld()),m=b,m===e&&(m=v,i.substr(v,5).toLowerCase()===Md?(b=i.substr(v,5),v+=5):(b=e,G===0&&K(jd)),b!==e&&(oe=m,b=Nd()),m=b),ee[M]={nextPos:v,result:m},m)}function dh(){var m,b,M,E=v*34+23,q=ee[E];return q?(v=q.nextPos,q.result):(m=v,i.substr(v,2)===yu?(b=yu,v+=2):(b=e,G===0&&K(qd)),b!==e?(M=Pr(),M!==e?(oe=m,b=_d(),m=b):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,Bd.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(Fd)),b===e&&(b=null),b!==e?(M=hh(),M!==e?(oe=m,b=kd(b,M),m=b):(v=m,m=e)):(v=m,m=e)),ee[E]={nextPos:v,result:m},m)}function hh(){var m,b,M,E,q=v*34+24,Q=ee[q];return Q?(v=Q.nextPos,Q.result):(m=v,b=Pr(),b!==e?(i.charCodeAt(v)===46?(M=Qd,v++):(M=e,G===0&&K(Hd)),M!==e?(E=Pr(),E!==e?(oe=m,b=zd(),m=b):(v=m,m=e)):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,b=yh(),b!==e?(M=Pr(),M===e&&(M=null),M!==e?(oe=m,b=Ud(),m=b):(v=m,m=e)):(v=m,m=e),m===e&&(m=v,i.charCodeAt(v)===48?(b=Wd,v++):(b=e,G===0&&K($d)),b!==e&&(oe=m,b=Jd()),m=b)),ee[q]={nextPos:v,result:m},m)}function gh(){var m,b,M,E=v*34+25,q=ee[E];if(q)return v=q.nextPos,q.result;if(m=v,b=[],M=ku(),M!==e)for(;M!==e;)b.push(M),M=ku();else b=e;return b!==e&&(oe=m,b=mu(b)),m=b,ee[E]={nextPos:v,result:m},m}function Bu(){var m,b,M,E=v*34+26,q=ee[E];if(q)return v=q.nextPos,q.result;if(m=v,b=[],M=Fu(),M!==e)for(;M!==e;)b.push(M),M=Fu();else b=e;return b!==e&&(oe=m,b=mu(b)),m=b,ee[E]={nextPos:v,result:m},m}function Fu(){var m,b,M=v*34+27,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,i.substr(v,2)===vu?(b=vu,v+=2):(b=e,G===0&&K(Gd)),b!==e&&(oe=m,b=Zd()),m=b,m===e&&(m=v,i.substr(v,2)===bu?(b=bu,v+=2):(b=e,G===0&&K(Kd)),b!==e&&(oe=m,b=Yd()),m=b,m===e&&(m=v,Xd.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(eh)),b!==e&&(oe=m,b=fa()),m=b)),ee[M]={nextPos:v,result:m},m)}function ku(){var m,b,M=v*34+28,E=ee[M];return E?(v=E.nextPos,E.result):(m=v,th.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(nh)),b!==e&&(oe=m,b=fa()),m=b,ee[M]={nextPos:v,result:m},m)}function Qu(){var m,b,M,E,q,Q,Z,te=v*34+29,Oe=ee[te];if(Oe)return v=Oe.nextPos,Oe.result;if(m=v,b=gi(),b!==e){if(M=[],E=v,q=Pr(),q!==e){for(Q=[],Z=gi();Z!==e;)Q.push(Z),Z=gi();Q!==e?(q=[q,Q],E=q):(v=E,E=e)}else v=E,E=e;for(;E!==e;)if(M.push(E),E=v,q=Pr(),q!==e){for(Q=[],Z=gi();Z!==e;)Q.push(Z),Z=gi();Q!==e?(q=[q,Q],E=q):(v=E,E=e)}else v=E,E=e;M!==e?(oe=m,b=fa(),m=b):(v=m,m=e)}else v=m,m=e;return ee[te]={nextPos:v,result:m},m}function Pr(){var m,b,M=v*34+30,E=ee[M];if(E)return v=E.nextPos,E.result;if(m=[],Cu.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(wu)),b!==e)for(;b!==e;)m.push(b),Cu.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(wu));else m=e;return ee[M]={nextPos:v,result:m},m}function yh(){var m,b,M=v*34+31,E=ee[M];if(E)return v=E.nextPos,E.result;if(m=[],Pu.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(xu)),b!==e)for(;b!==e;)m.push(b),Pu.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(xu));else m=e;return ee[M]={nextPos:v,result:m},m}function gi(){var m,b,M=v*34+32,E=ee[M];if(E)return v=E.nextPos,E.result;if(m=[],Vu.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(Su)),b!==e)for(;b!==e;)m.push(b),Vu.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(Su));else m=e;return ee[M]={nextPos:v,result:m},m}function ve(){var m,b,M=v*34+33,E=ee[M];if(E)return v=E.nextPos,E.result;for(G++,m=[],Ou.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(Eu));b!==e;)m.push(b),Ou.test(i.charAt(v))?(b=i.charAt(v),v++):(b=e,G===0&&K(Eu));return G--,m===e&&(b=e,G===0&&K(rh)),ee[M]={nextPos:v,result:m},m}function Hu(m,b,M){return M===void 0&&(M=!1),b.reduce(function(E,q){return new xn(q[1],E,q[3],M)},m)}function mh(m){return[].concat.apply([],m)}if(jo=r(),jo!==e&&v===i.length)return jo;throw jo!==e&&v<i.length&&K(ih()),sh(da,kt<i.length?i.charAt(kt):null,kt<i.length?Ru(kt,kt+1):Ru(kt,kt))}var Ii=Ri,Dr=function(){function i(t,e){this.at=t,this.code=e}return i}(),Yn=function(){function i(){}return i.prototype.patchExpression=function(t){return t.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},i.prototype.createCondition=function(t){return this.parseExpression(t)},i.prototype.parseExpression=function(t){try{var e=i.parserCache[t];return e===void 0&&(e=Ii(this.patchExpression(t)),e.hasAsyncFunction()||(i.parserCache[t]=e)),e}catch(n){n instanceof Kn&&(this.conditionError=new Dr(n.location.start.offset,n.message))}},Object.defineProperty(i.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),i.parserCache={},i}(),Ar=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Di=function(){function i(t,e,n,r,o){this.operand=t,this.id=e,this.onComplete=n,this.processValue=new Re,this.processValue.values=r,this.processValue.properties=o}return i.prototype.run=function(t){var e=this;if(!t)return this.runValues();this.processValue.values=h.createCopy(this.processValue.values),this.processValue.onCompleteAsyncFunc=function(r){var o=e.getAsyncItemByOperand(r,e.asyncFuncList);o&&e.doAsyncFunctionReady(o)},this.asyncFuncList=new Array,this.operand.addToAsyncList(this.asyncFuncList);for(var n=0;n<this.asyncFuncList.length;n++)this.runAsyncItem(this.asyncFuncList[n]);return!1},i.prototype.getAsyncItemByOperand=function(t,e){if(!Array.isArray(e))return null;for(var n=0;n<e.length;n++){if(e[n].operand===t)return e[n];var r=this.getAsyncItemByOperand(t,e[n].children);if(r)return r}return null},i.prototype.runAsyncItem=function(t){var e=this;t.children?t.children.forEach(function(n){return e.runAsyncItem(n)}):this.runAsyncItemCore(t)},i.prototype.runAsyncItemCore=function(t){t.operand?t.operand.evaluate(this.processValue):this.doAsyncFunctionReady(t)},i.prototype.doAsyncFunctionReady=function(t){if(t.parent&&this.isAsyncChildrenReady(t)){this.runAsyncItemCore(t.parent);return}for(var e=0;e<this.asyncFuncList.length;e++)if(!this.isAsyncFuncReady(this.asyncFuncList[e]))return;this.runValues()},i.prototype.isAsyncFuncReady=function(t){return t.operand&&!t.operand.isReady(this.processValue)?!1:this.isAsyncChildrenReady(t)},i.prototype.isAsyncChildrenReady=function(t){if(t.children){for(var e=0;e<t.children.length;e++)if(!this.isAsyncFuncReady(t.children[e]))return!1}return!0},i.prototype.runValues=function(){var t=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(t,this.id),t},i}(),Lr=function(){function i(t){this.parser=new Yn,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(t)}return Object.defineProperty(i.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),i.prototype.setExpression=function(t){this.expression!==t&&(this.expressionValue=t,this.operand=this.parser.parseExpression(t),this.hasFunctionValue=this.canRun()?this.operand.hasFunction():!1,this.isAsyncValue=this.hasFunction()?this.operand.hasAsyncFunction():!1)},i.prototype.getVariables=function(){if(!this.operand)return[];var t=[];return this.operand.setVariables(t),t},i.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(i.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),i.prototype.canRun=function(){return!!this.operand},i.prototype.run=function(t,e,n){if(e===void 0&&(e=null),!this.operand)return this.expression&&He.warn("Invalid expression: "+this.expression),null;var r=new Di(this.operand,n,this.onComplete,t,e);return r.run(this.isAsync)},i.createExpressionExecutor=function(t){return new i(t)},i}(),Mr=function(){function i(t){this.expression=t}return Object.defineProperty(i.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(t){var e=this;this.expressionExecutor&&t===this.expression||(this.expressionExecutor=Lr.createExpressionExecutor(t),this.expressionExecutor.onComplete=function(n,r){e.doOnComplete(n,r)},this.variables=void 0,this.containsFunc=void 0)},enumerable:!1,configurable:!0}),i.prototype.getVariables=function(){return this.variables===void 0&&(this.variables=this.expressionExecutor.getVariables()),this.variables},i.prototype.hasFunction=function(){return this.containsFunc===void 0&&(this.containsFunc=this.expressionExecutor.hasFunction()),this.containsFunc},Object.defineProperty(i.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),i.prototype.canRun=function(){return this.expressionExecutor.canRun()},i.prototype.runCore=function(t,e){e===void 0&&(e=null);var n=i.IdRunnerCounter++;return this.onBeforeAsyncRun&&this.isAsync&&this.onBeforeAsyncRun(n),this.expressionExecutor.run(t,e,n)},i.prototype.doOnComplete=function(t,e){this.onAfterAsyncRun&&this.isAsync&&this.onAfterAsyncRun(e)},i.IdRunnerCounter=1,i}(),Ue=function(i){Ar(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.run=function(e,n){return n===void 0&&(n=null),this.runCore(e,n)==!0},t.prototype.doOnComplete=function(e,n){this.onRunComplete&&this.onRunComplete(e==!0),i.prototype.doOnComplete.call(this,e,n)},t}(Mr),jt=function(i){Ar(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.run=function(e,n){return n===void 0&&(n=null),this.runCore(e,n)},t.prototype.doOnComplete=function(e,n){this.onRunComplete&&this.onRunComplete(e),i.prototype.doOnComplete.call(this,e,n)},t}(Mr),Jo=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),jr=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},Go=function(){function i(t){this.obj=t,this.properties=null,this.values=null}return i.prototype.getType=function(){return"bindings"},i.prototype.getNames=function(){var t=[];this.fillProperties();for(var e=0;e<this.properties.length;e++)this.properties[e].isVisible("",this.obj)&&t.push(this.properties[e].name);return t},i.prototype.getProperties=function(){var t=[];this.fillProperties();for(var e=0;e<this.properties.length;e++)t.push(this.properties[e]);return t},i.prototype.setBinding=function(t,e){this.values||(this.values={});var n=this.getJson();n!==e&&(e?this.values[t]=e:(delete this.values[t],Object.keys(this.values).length==0&&(this.values=null)),this.onChangedJSON(n))},i.prototype.clearBinding=function(t){this.setBinding(t,"")},i.prototype.isEmpty=function(){if(!this.values)return!0;for(var t in this.values)return!1;return!0},i.prototype.getValueNameByPropertyName=function(t){if(this.values)return this.values[t]},i.prototype.getPropertiesByValueName=function(t){if(!this.values)return[];var e=[];for(var n in this.values)this.values[n]==t&&e.push(n);return e},i.prototype.getJson=function(){if(!this.isEmpty()){var t={};for(var e in this.values)t[e]=this.values[e];return t}},i.prototype.setJson=function(t,e){var n=this.getJson();if(this.values=null,t){this.values={};for(var r in t)this.values[r]=t[r]}e||this.onChangedJSON(n)},i.prototype.fillProperties=function(){if(this.properties===null){this.properties=[];for(var t=j.getPropertiesByObj(this.obj),e=0;e<t.length;e++)t[e].isBindable&&this.properties.push(t[e])}},i.prototype.onChangedJSON=function(t){this.obj&&this.obj.onBindingChanged(t,this.getJson())},i}(),Ai=function(){function i(t,e,n){this.currentDependency=t,this.target=e,this.property=n,this.dependencies=[],this.id=""+ ++i.DependenciesCount}return i.prototype.addDependency=function(t,e){this.target===t&&this.property===e||this.dependencies.some(function(n){return n.obj===t&&n.prop===e})||(this.dependencies.push({obj:t,prop:e,id:this.id}),t.registerPropertyChangedHandlers([e],this.currentDependency,this.id))},i.prototype.dispose=function(){this.dependencies.forEach(function(t){t.obj.unregisterPropertyChangedHandlers([t.prop],t.id)})},i.DependenciesCount=0,i}(),De=function(){function i(t){this._updater=t,this.dependencies=void 0,this.type=i.ComputedUpdaterType}return Object.defineProperty(i.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),i.prototype.setDependencies=function(t){this.clearDependencies(),this.dependencies=t},i.prototype.getDependencies=function(){return this.dependencies},i.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},i.prototype.dispose=function(){this.clearDependencies(),this._updater=void 0},i.ComputedUpdaterType="__dependency_computed",i}(),fe=function(){function i(){this.dependencies={},this.propertyHash=i.createPropertiesHash(),this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.animationAllowedLock=0,this.supportOnElementRerenderedEvent=!0,this.onElementRerenderedEventEnabled=!1,this._onElementRerendered=new pt,this.bindingsValue=new Go(this),Fe.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return i.finishCollectDependencies=function(){var t=i.currentDependencis;return i.currentDependencis=void 0,t},i.startCollectDependencies=function(t,e,n){if(i.currentDependencis!==void 0)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");i.currentDependencis=new Ai(t,e,n)},i.collectDependency=function(t,e){i.currentDependencis!==void 0&&i.currentDependencis.addDependency(t,e)},Object.defineProperty(i,"commentSuffix",{get:function(){return I.commentSuffix},set:function(t){I.commentSuffix=t},enumerable:!1,configurable:!0}),Object.defineProperty(i,"commentPrefix",{get:function(){return i.commentSuffix},set:function(t){i.commentSuffix=t},enumerable:!1,configurable:!0}),i.prototype.isValueEmpty=function(t,e){return e===void 0&&(e=!0),e&&(t=this.trimValue(t)),h.isValueEmpty(t)},i.prototype.equals=function(t){return!t||this.isDisposed||t.isDisposed||this.getType()!=t.getType()?!1:this.equalsCore(t)},i.prototype.equalsCore=function(t){return this.name!==t.name?!1:h.isTwoValueEquals(this.toJSON(),t.toJSON(),!1,!0,!1)},i.prototype.trimValue=function(t){return t&&(typeof t=="string"||t instanceof String)?t.trim():t},i.prototype.isPropertyEmpty=function(t){return t!==""&&this.isValueEmpty(t)},i.createPropertiesHash=function(){return{}},i.prototype.dispose=function(){for(var t=this,e=0;e<this.eventList.length;e++)this.eventList[e].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0,Object.keys(this.dependencies).forEach(function(n){return t.dependencies[n].dispose()}),Object.keys(this.propertyHash).forEach(function(n){var r=t.getPropertyValueCore(t.propertyHash,n);r&&r.type==De.ComputedUpdaterType&&r.dispose()})},Object.defineProperty(i.prototype,"isDisposed",{get:function(){return this.isDisposedValue===!0},enumerable:!1,configurable:!0}),i.prototype.addEvent=function(){var t=new pt;return this.eventList.push(t),t},i.prototype.onBaseCreating=function(){},i.prototype.getType=function(){return"base"},i.prototype.isDescendantOf=function(t){return j.isDescendantOf(this.getType(),t)},i.prototype.getSurvey=function(t){return null},Object.defineProperty(i.prototype,"isDesignMode",{get:function(){var t=this.getSurvey();return!!t&&t.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDesignModeV2",{get:function(){return I.supportCreatorV2&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),i.prototype.checkBindings=function(t,e){},i.prototype.updateBindings=function(t,e){var n=this.bindings.getValueNameByPropertyName(t);n&&this.updateBindingValue(n,e)},i.prototype.updateBindingValue=function(t,e){},i.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(i.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),i.prototype.getIsLoadingFromJson=function(){return this.loadingOwner&&this.loadingOwner.isLoadingFromJson?!0:this.isLoadingFromJsonValue},i.prototype.startLoadingFromJson=function(t){this.isLoadingFromJsonValue=!0,this.jsonObj=t},i.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},i.prototype.toJSON=function(t){return new je().toJsonObject(this,t)},i.prototype.fromJSON=function(t,e){new je().toObject(t,this,e),this.onSurveyLoad()},i.prototype.onSurveyLoad=function(){},i.prototype.clone=function(){var t=j.createClass(this.getType());return t.fromJSON(this.toJSON()),t},i.prototype.getPropertyByName=function(t){var e=this.getType();return(!this.classMetaData||this.classMetaData.name!==e)&&(this.classMetaData=j.findClass(e)),this.classMetaData?this.classMetaData.findProperty(t):null},i.prototype.isPropertyVisible=function(t){var e=this.getPropertyByName(t);return e?e.isVisible("",this):!1},i.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},i.prototype.getProgressInfo=function(){return i.createProgressInfo()},i.prototype.localeChanged=function(){},i.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo){var e=this.arraysInfo[t];if(e&&e.isItemValues){var n=this.getPropertyValue(t);n&&i.itemValueLocStrChanged&&i.itemValueLocStrChanged(n)}}if(this.localizableStrings)for(var t in this.localizableStrings){var e=this.getLocalizableString(t);e&&e.strChanged()}},i.prototype.getPropertyValue=function(t,e,n){var r=this.getPropertyValueWithoutDefault(t);if(this.isPropertyEmpty(r)){var o=this.localizableStrings?this.localizableStrings[t]:void 0;if(o)return o.text;if(e!=null)return e;if(n){var s=n();if(s!==void 0)if(Array.isArray(s)){var u=this.createNewArray(t);return u.splice.apply(u,jr([0,0],s)),u}else return this.setPropertyValueDirectly(t,s),s}var d=this.getDefaultPropertyValue(t);if(d!==void 0)return d}return r},i.prototype.getDefaultPropertyValue=function(t){var e=this.getPropertyByName(t);if(!(!e||e.isCustom&&this.isCreating)){if(e.defaultValueFunc)return e.defaultValueFunc(this);var n=e.getDefaultValue(this);if(!this.isPropertyEmpty(n)&&!Array.isArray(n))return n;var r=this.localizableStrings?this.localizableStrings[t]:void 0;if(r&&r.localizationName)return this.getLocalizationString(r.localizationName);if(e.type=="boolean"||e.type=="switch")return!1;if(e.isCustom&&e.onGetValue)return e.onGetValue(this)}},i.prototype.hasDefaultPropertyValue=function(t){return this.getDefaultPropertyValue(t)!==void 0},i.prototype.resetPropertyValue=function(t){var e=this.localizableStrings?this.localizableStrings[t]:void 0;e?(this.setLocalizableStringText(t,void 0),e.clear()):this.setPropertyValue(t,void 0)},i.prototype.getPropertyValueWithoutDefault=function(t){return this.getPropertyValueCore(this.propertyHash,t)},i.prototype.getPropertyValueCore=function(t,e){return this.isLoadingFromJson||i.collectDependency(this,e),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,e):t[e]},i.prototype.geValueFromHash=function(){return this.propertyHash.value},i.prototype.setPropertyValueCore=function(t,e,n){this.setPropertyValueCoreHandler?this.isDisposedValue?He.disposedObjectChangedProperty(e,this.getType()):this.setPropertyValueCoreHandler(t,e,n):t[e]=n},Object.defineProperty(i.prototype,"isEditingSurveyElement",{get:function(){var t=this.getSurvey();return!!t&&t.isEditingSurveyElement},enumerable:!1,configurable:!0}),i.prototype.iteratePropertiesHash=function(t){var e=this,n=[];for(var r in this.propertyHash)r==="value"&&this.isEditingSurveyElement&&Array.isArray(this.value)||n.push(r);n.forEach(function(o){return t(e.propertyHash,o)})},i.prototype.setPropertyValue=function(t,e){if(!this.isLoadingFromJson){var n=this.getPropertyByName(t);n&&(e=n.settingValue(this,e))}var r=this.getPropertyValue(t);r&&Array.isArray(r)&&this.arraysInfo&&(!e||Array.isArray(e))?this.isTwoValueEquals(r,e)||this.setArrayPropertyDirectly(t,e):(this.setPropertyValueDirectly(t,e),!this.isDisposedValue&&!this.isTwoValueEquals(r,e)&&this.propertyValueChanged(t,r,e))},i.prototype.setArrayPropertyDirectly=function(t,e,n){n===void 0&&(n=!0);var r=this.arraysInfo[t];this.setArray(t,this.getPropertyValue(t),e,r?r.isItemValues:!1,r?n&&r.onPush:null)},i.prototype.setPropertyValueDirectly=function(t,e){this.setPropertyValueCore(this.propertyHash,t,e)},i.prototype.clearPropertyValue=function(t){this.setPropertyValueCore(this.propertyHash,t,null),delete this.propertyHash[t]},i.prototype.onPropertyValueChangedCallback=function(t,e,n,r,o){},i.prototype.itemValuePropertyChanged=function(t,e,n,r){this.onItemValuePropertyChanged.fire(this,{obj:t,name:e,oldValue:n,newValue:r,propertyName:t.ownerPropertyName})},i.prototype.onPropertyValueChanged=function(t,e,n){},i.prototype.propertyValueChanged=function(t,e,n,r,o){if(!this.isLoadingFromJson&&(this.updateBindings(t,n),this.onPropertyValueChanged(t,e,n),this.onPropertyChanged.fire(this,{name:t,oldValue:e,newValue:n,arrayChanges:r,target:o}),this.doPropertyValueChangedCallback(t,e,n,r,this),this.checkConditionPropertyChanged(t),!!this.onPropChangeFunctions))for(var s=0;s<this.onPropChangeFunctions.length;s++)this.onPropChangeFunctions[s].name==t&&this.onPropChangeFunctions[s].func(n,r)},i.prototype.onBindingChanged=function(t,e){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",t,e)},Object.defineProperty(i.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),i.prototype.doPropertyValueChangedCallback=function(t,e,n,r,o){var s=function(d){d&&d.onPropertyValueChangedCallback&&d.onPropertyValueChangedCallback(t,e,n,o,r)};if(this.isInternal){s(this);return}o||(o=this);var u=this.getSurvey();u||(u=this),s(u),u!==this&&s(this)},i.prototype.addExpressionProperty=function(t,e,n){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[t]={onExecute:e,canRun:n}},i.prototype.getDataFilteredValues=function(){return{}},i.prototype.getDataFilteredProperties=function(){return{}},i.prototype.runConditionCore=function(t,e){if(this.expressionInfo)for(var n in this.expressionInfo)this.runConditionItemCore(n,t,e)},i.prototype.canRunConditions=function(){return!this.isDesignMode},i.prototype.checkConditionPropertyChanged=function(t){!this.expressionInfo||!this.expressionInfo[t]||this.canRunConditions()&&this.runConditionItemCore(t,this.getDataFilteredValues(),this.getDataFilteredProperties())},i.prototype.runConditionItemCore=function(t,e,n){var r=this,o=this.expressionInfo[t],s=this.getPropertyValue(t);s&&(o.canRun&&!o.canRun(this)||(o.runner||(o.runner=this.createExpressionRunner(s),o.runner.onRunComplete=function(u){o.onExecute(r,u)}),o.runner.expression=s,o.runner.run(e,n)))},i.prototype.doBeforeAsynRun=function(t){this.asynExpressionHash||(this.asynExpressionHash={});var e=!this.isAsyncExpressionRunning;this.asynExpressionHash[t]=!0,e&&this.onAsyncRunningChanged()},i.prototype.doAfterAsynRun=function(t){this.asynExpressionHash&&(delete this.asynExpressionHash[t],this.isAsyncExpressionRunning||this.onAsyncRunningChanged())},i.prototype.onAsyncRunningChanged=function(){},Object.defineProperty(i.prototype,"isAsyncExpressionRunning",{get:function(){return!!this.asynExpressionHash&&Object.keys(this.asynExpressionHash).length>0},enumerable:!1,configurable:!0}),i.prototype.createExpressionRunner=function(t){var e=this,n=new jt(t);return n.onBeforeAsyncRun=function(r){e.doBeforeAsynRun(r)},n.onAfterAsyncRun=function(r){e.doAfterAsynRun(r)},n},i.prototype.registerPropertyChangedHandlers=function(t,e,n){n===void 0&&(n=null);for(var r=0;r<t.length;r++)this.registerFunctionOnPropertyValueChanged(t[r],e,n)},i.prototype.unregisterPropertyChangedHandlers=function(t,e){e===void 0&&(e=null);for(var n=0;n<t.length;n++)this.unRegisterFunctionOnPropertyValueChanged(t[n],e)},i.prototype.registerFunctionOnPropertyValueChanged=function(t,e,n){if(n===void 0&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var o=this.onPropChangeFunctions[r];if(o.name==t&&o.key==n){o.func=e;return}}this.onPropChangeFunctions.push({name:t,func:e,key:n})},i.prototype.registerFunctionOnPropertiesValueChanged=function(t,e,n){n===void 0&&(n=null),this.registerPropertyChangedHandlers(t,e,n)},i.prototype.unRegisterFunctionOnPropertyValueChanged=function(t,e){if(e===void 0&&(e=null),!!this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==t&&r.key==e){this.onPropChangeFunctions.splice(n,1);return}}},i.prototype.unRegisterFunctionOnPropertiesValueChanged=function(t,e){e===void 0&&(e=null),this.unregisterPropertyChangedHandlers(t,e)},i.prototype.createCustomLocalizableObj=function(t){var e=this.getLocalizableString(t);return e||this.createLocalizableString(t,this,!1,!0)},i.prototype.getLocale=function(){var t=this.getSurvey();return t?t.getLocale():""},i.prototype.getLocalizationString=function(t){return k(t,this.getLocale())},i.prototype.getLocalizationFormatString=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=this.getLocalizationString(t);return!r||!r.format?"":r.format.apply(r,e)},i.prototype.createLocalizableString=function(t,e,n,r){var o=this;n===void 0&&(n=!1),r===void 0&&(r=!1);var s=void 0;r&&(s=r===!0?t:r);var u=new gt(e,n,t,s);u.onStrChanged=function(y,V){o.propertyValueChanged(t,y,V)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[t]=u;var d=this.getPropertyByName(t);return u.disableLocalization=d&&d.isLocalizable===!1,u},i.prototype.getLocalizableString=function(t){return this.localizableStrings?this.localizableStrings[t]:null},i.prototype.getLocalizableStringText=function(t,e){e===void 0&&(e=""),i.collectDependency(this,t);var n=this.getLocalizableString(t);if(!n)return"";var r=n.text;return r||e},i.prototype.setLocalizableStringText=function(t,e){var n=this.getLocalizableString(t);if(n){var r=n.text;r!=e&&(n.text=e)}},i.prototype.addUsedLocales=function(t){if(this.localizableStrings)for(var e in this.localizableStrings){var n=this.getLocalizableString(e);n&&this.AddLocStringToUsedLocales(n,t)}if(this.arraysInfo)for(var e in this.arraysInfo){var r=this.getPropertyByName(e);if(!(!r||!r.isSerializable)){var o=this.getPropertyValue(e);if(!(!o||!o.length))for(var s=0;s<o.length;s++){var n=o[s];n&&n.addUsedLocales&&n.addUsedLocales(t)}}}},i.prototype.searchText=function(t,e){var n=[];this.getSearchableLocalizedStrings(n);for(var r=0;r<n.length;r++)n[r].setFindText(t)&&e.push({element:this,str:n[r]})},i.prototype.getSearchableLocalizedStrings=function(t){if(this.localizableStrings){var e=[];this.getSearchableLocKeys(e);for(var n=0;n<e.length;n++){var r=this.getLocalizableString(e[n]);r&&t.push(r)}}if(this.arraysInfo){var o=[];this.getSearchableItemValueKeys(o);for(var n=0;n<o.length;n++){var s=this.getPropertyValue(o[n]);if(s)for(var u=0;u<s.length;u++)t.push(s[u].locText)}}},i.prototype.getSearchableLocKeys=function(t){},i.prototype.getSearchableItemValueKeys=function(t){},i.prototype.AddLocStringToUsedLocales=function(t,e){for(var n=t.getLocales(),r=0;r<n.length;r++)e.indexOf(n[r])<0&&e.push(n[r])},i.prototype.createItemValues=function(t){var e=this,n=this.createNewArray(t,function(r){if(r.locOwner=e,r.ownerPropertyName=t,typeof r.getSurvey=="function"){var o=r.getSurvey();o&&typeof o.makeReactive=="function"&&o.makeReactive(r)}});return this.arraysInfo[t].isItemValues=!0,n},i.prototype.notifyArrayChanged=function(t,e){t.onArrayChanged&&t.onArrayChanged(e)},i.prototype.createNewArrayCore=function(t){var e=null;return this.createArrayCoreHandler&&(e=this.createArrayCoreHandler(this.propertyHash,t)),e||(e=new Array,this.setPropertyValueCore(this.propertyHash,t,e)),e},i.prototype.ensureArray=function(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!(this.arraysInfo&&this.arraysInfo[t]))return this.createNewArray(t,e,n)},i.prototype.createNewArray=function(t,e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=this.createNewArrayCore(t);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[t]={onPush:e,isItemValues:!1};var o=this;return r.push=function(s){var u=Object.getPrototypeOf(r).push.call(r,s);if(!o.isDisposedValue){e&&e(s,r.length-1);var d=new zt(r.length-1,0,[s],[]);o.propertyValueChanged(t,r,r,d),o.notifyArrayChanged(r,d)}return u},r.shift=function(){var s=Object.getPrototypeOf(r).shift.call(r);if(!o.isDisposedValue&&s){n&&n(s);var u=new zt(r.length-1,1,[],[]);o.propertyValueChanged(t,r,r,u),o.notifyArrayChanged(r,u)}return s},r.unshift=function(s){var u=Object.getPrototypeOf(r).unshift.call(r,s);if(!o.isDisposedValue){e&&e(s,r.length-1);var d=new zt(0,0,[s],[]);o.propertyValueChanged(t,r,r,d),o.notifyArrayChanged(r,d)}return u},r.pop=function(){var s=Object.getPrototypeOf(r).pop.call(r);if(!o.isDisposedValue){n&&n(s);var u=new zt(r.length-1,1,[],[]);o.propertyValueChanged(t,r,r,u),o.notifyArrayChanged(r,u)}return s},r.splice=function(s,u){for(var d,y=[],V=2;V<arguments.length;V++)y[V-2]=arguments[V];s||(s=0),u||(u=0);var T=(d=Object.getPrototypeOf(r).splice).call.apply(d,jr([r,s,u],y));if(y||(y=[]),!o.isDisposedValue){if(n&&T)for(var N=0;N<T.length;N++)n(T[N]);if(e)for(var N=0;N<y.length;N++)e(y[N],s+N);var U=new zt(s,u,y,T);o.propertyValueChanged(t,r,r,U),o.notifyArrayChanged(r,U)}return T},r},i.prototype.getItemValueType=function(){},i.prototype.setArray=function(t,e,n,r,o){var s=[].concat(e);if(Object.getPrototypeOf(e).splice.call(e,0,e.length),n)for(var u=0;u<n.length;u++){var d=n[u];r&&i.createItemValue&&(d=i.createItemValue(d,this.getItemValueType())),Object.getPrototypeOf(e).push.call(e,d),o&&o(e[u])}var y=new zt(0,s.length,e,s);this.propertyValueChanged(t,s,e,y),this.notifyArrayChanged(e,y)},i.prototype.isTwoValueEquals=function(t,e,n,r){return n===void 0&&(n=!1),r===void 0&&(r=!1),h.isTwoValueEquals(t,e,!1,!n,r)},i.copyObject=function(t,e){for(var n in e){var r=e[n];typeof r=="object"&&(r={},this.copyObject(r,e[n])),t[n]=r}},i.prototype.copyCssClasses=function(t,e){e&&(typeof e=="string"||e instanceof String?t.root=e:i.copyObject(t,e))},i.prototype.getValueInLowCase=function(t){return t&&typeof t=="string"?t.toLowerCase():t},i.prototype.getElementsInDesign=function(t){return[]},Object.defineProperty(i.prototype,"animationAllowed",{get:function(){return this.getIsAnimationAllowed()},enumerable:!1,configurable:!0}),i.prototype.getIsAnimationAllowed=function(){return I.animationEnabled&&this.animationAllowedLock>=0&&!this.isLoadingFromJson&&!this.isDisposed&&(!!this.onElementRerendered||!this.supportOnElementRerenderedEvent)},i.prototype.blockAnimations=function(){this.animationAllowedLock--},i.prototype.releaseAnimations=function(){this.animationAllowedLock++},i.prototype.enableOnElementRerenderedEvent=function(){this.onElementRerenderedEventEnabled=!0},i.prototype.disableOnElementRerenderedEvent=function(){var t;(t=this.onElementRerendered)===null||t===void 0||t.fire(this,{isCancel:!0}),this.onElementRerenderedEventEnabled=!1},Object.defineProperty(i.prototype,"onElementRerendered",{get:function(){return this.supportOnElementRerenderedEvent&&this.onElementRerenderedEventEnabled?this._onElementRerendered:void 0},enumerable:!1,configurable:!0}),i.prototype.afterRerender=function(){var t;(t=this.onElementRerendered)===null||t===void 0||t.fire(this,{isCancel:!1})},i.currentDependencis=void 0,i}(),zt=function(){function i(t,e,n,r){this.index=t,this.deleteCount=e,this.itemsToAdd=n,this.deletedItems=r}return i}(),Vn=function(){function i(){}return Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),i.prototype.fireByCreatingOptions=function(t,e){if(this.callbacks){for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](t,e()),!this.callbacks)return}},i.prototype.fire=function(t,e){if(this.callbacks){for(var n=[].concat(this.callbacks),r=0;r<n.length;r++)if(n[r](t,e),!this.callbacks)return}},i.prototype.clear=function(){this.callbacks=void 0},i.prototype.add=function(t){this.hasFunc(t)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(t),this.fireCallbackChanged())},i.prototype.remove=function(t){if(this.hasFunc(t)){var e=this.callbacks.indexOf(t,0);this.callbacks.splice(e,1),this.fireCallbackChanged()}},i.prototype.hasFunc=function(t){return this.callbacks==null?!1:this.callbacks.indexOf(t,0)>-1},i.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},i}(),pt=function(i){Jo(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t}(Vn),Li=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Nr=function(){function i(t,e,n,r,o){var s=this;r===void 0&&(r=null),o===void 0&&(o=function(u){queueMicrotask?queueMicrotask(u):u()}),this.container=t,this.model=e,this.itemsSelector=n,this.dotsItemSize=r,this.delayedUpdateFunction=o,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.dotsIconClass=".sv-dots",this.iconClass=".sv-svg-icon",this.recalcMinDimensionConst=!0,this.getComputedStyle=function(u){return R.getComputedStyle(u)},this.model.updateCallback=function(u){u&&(s.isInitialized=!1),setTimeout(function(){s.process()},1)},typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(function(u){B.requestAnimationFrame(function(){s.process()})}),this.resizeObserver.observe(this.container.parentElement))}return i.prototype.getDimensions=function(t){return{scroll:t.scrollWidth,offset:t.offsetWidth}},i.prototype.getAvailableSpace=function(){var t=this.getComputedStyle(this.container),e=this.container.offsetWidth;return t.boxSizing==="border-box"&&(e-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)),e},i.prototype.calcItemSize=function(t){return t.offsetWidth||t.getBoundingClientRect().width},i.prototype.calcMinDimension=function(t,e){var n;if(e&&(!t.iconSize||t.iconSize==="auto")){var r=e.querySelector(this.iconClass);n=r&&this.calcItemSize(r)}else t.iconSize&&typeof t.iconSize=="number"&&this.recalcMinDimensionConst&&(n=t.iconSize);var o=n?n+2*this.paddingSizeConst:this.minDimensionConst;return t.canShrink?o+(t.needSeparator?this.separatorSize:0):t.maxDimension},i.prototype.calcItemsSizes=function(){var t=this;if(!(!this.container||this.isInitialized)){var e=this.model.actions,n=this.container.querySelectorAll(this.itemsSelector);(n||[]).forEach(function(r,o){var s=e[o];s&&t.calcActionDimensions(s,r)})}},i.prototype.calcActionDimensions=function(t,e){t.maxDimension=this.calcItemSize(e),t.minDimension=this.calcMinDimension(t,e)},Object.defineProperty(i.prototype,"isContainerVisible",{get:function(){return!!this.container&&hr(this.container)},enumerable:!1,configurable:!0}),i.prototype.process=function(){var t=this;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||this.model.setActionsMode("large");var e=function(){var r,o=t.dotsItemSize;if(!t.dotsItemSize){var s=(r=t.container)===null||r===void 0?void 0:r.querySelector(t.dotsIconClass);o=s&&t.calcItemSize(s)||t.dotsSizeConst}t.model.fit(t.getAvailableSpace(),o)};if(this.isInitialized)e();else{var n=function(){t.container&&(t.calcItemsSizes(),t.isInitialized=!0,e())};this.delayedUpdateFunction?this.delayedUpdateFunction(n):n()}}},i.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.container=void 0},i}(),Xn=function(i){Li(t,i);function t(e,n,r,o,s,u){s===void 0&&(s=40);var d=i.call(this,e,n,r,o,u)||this;return d.minDimensionConst=s,d.recalcMinDimensionConst=!1,d}return t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),n=this.container.offsetHeight;return e.boxSizing==="border-box"&&(n-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),n},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,n){e.maxDimension=this.calcItemSize(n),e.minDimension=this.calcItemSize(n)},t}(Nr),_=function(){function i(){this.classes=[]}return i.prototype.isEmpty=function(){return this.toString()===""},i.prototype.append=function(t,e){return e===void 0&&(e=!0),t&&e&&(typeof t=="string"&&(t=t.trim()),this.classes.push(t)),this},i.prototype.toString=function(){return this.classes.join(" ")},i}(),qr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Sn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},er={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemWithTitle:"",itemAsIcon:"sv-action-bar-item--icon",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},xt=function(i){qr(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.sizeMode="default",e}return t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getRenderedActions=function(){return this.actions},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.actions.forEach(function(e){e.locTitle&&e.locTitle.strChanged(),e.locStrsChanged()})},t.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some(function(n){return n.visible}),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach(function(n){e.setActionCssClasses(n)}),this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},t.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},t.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter(function(e){return e.visible!==!1})},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e=this.sizeMode==="small"?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return new _().append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return er},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var n=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),ln(e,this.cssClasses),this.actions.forEach(function(r){n.setActionCssClasses(r)})},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof En?e:new xe(e)},t.prototype.addAction=function(e,n){n===void 0&&(n=!0);var r=this.createAction(e);if(n&&!this.isActionVisible(r))return r;var o=[].concat(this.actions,r);return this.sortItems(o),this.actions=o,r},t.prototype.setItems=function(e,n){var r=this;n===void 0&&(n=!0);var o=[];e.forEach(function(s){(!n||r.isActionVisible(s))&&o.push(r.createAction(s))}),n&&this.sortItems(o),this.actions=o},t.prototype.sortItems=function(e){this.hasSetVisibleIndex(e)&&e.sort(this.compareByVisibleIndex)},t.prototype.hasSetVisibleIndex=function(e){for(var n=0;n<e.length;n++){var r=e[n].visibleIndex;if(r!==void 0&&r>=0)return!0}return!1},t.prototype.compareByVisibleIndex=function(e,n){return e.visibleIndex-n.visibleIndex},t.prototype.isActionVisible=function(e){return e.visibleIndex>=0||e.visibleIndex===void 0},t.prototype.popupAfterShowCallback=function(e){},t.prototype.mouseOverHandler=function(e){var n=this;e.isHovered=!0,this.actions.forEach(function(r){r===e&&e.popupModel&&(e.showPopupDelayed(n.subItemsShowDelay),n.popupAfterShowCallback(e))})},t.prototype.initResponsivityManager=function(e,n){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var n=0;n<this.actions.length;n++)if(this.actions[n].id===e)return this.actions[n];return null},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.resetResponsivityManager(),this.actions.forEach(function(e){return e.dispose()}),this.actions.length=0},Sn([me({onSet:function(e,n){n.onSet()},onPush:function(e,n,r){r.onPush(e)},onRemove:function(e,n,r){r.onRemove(e)}})],t.prototype,"actions",void 0),Sn([x({})],t.prototype,"containerCss",void 0),Sn([x({defaultValue:!1})],t.prototype,"isEmpty",void 0),Sn([x({defaultValue:300})],t.prototype,"subItemsShowDelay",void 0),Sn([x({defaultValue:300})],t.prototype,"subItemsHideDelay",void 0),t}(fe),Ut=function(){function i(){}return i.focusElement=function(t){t&&t.focus()},i.visibility=function(t){var e=R.getComputedStyle(t);return e.display==="none"||e.visibility==="hidden"?!1:t.parentElement?this.visibility(t.parentElement):!0},i.getNextElementPreorder=function(t){var e=t.nextElementSibling?t.nextElementSibling:t.parentElement.firstElementChild;return this.visibility(e)?e:this.getNextElementPreorder(e)},i.getNextElementPostorder=function(t){var e=t.previousElementSibling?t.previousElementSibling:t.parentElement.lastElementChild;return this.visibility(e)?e:this.getNextElementPostorder(e)},i.hasHorizontalScroller=function(t){return t?t.scrollWidth>t.offsetWidth:!1},i.hasVerticalScroller=function(t){return t?t.scrollHeight>t.offsetHeight:!1},i}(),Zo=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ye=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},_r={root:"sv-list__container",item:"sv-list__item",searchClearButtonIcon:"sv-list__filter-clear-button",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemGroup:"sv-list__item--group",itemGroupSelected:"sv-list__item--group-selected",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemHovered:"sv-list__item--hovered",itemTextWrap:"sv-list__item-text--wrap",itemIcon:"sv-list__item-icon",itemMarkerIcon:"sv-list-item__marker-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",itemsContainerFiltering:"sv-list--filtering",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},on=function(i){Zo(t,i);function t(e,n,r,o,s){var u=i.call(this)||this;if(u.onSelectionChanged=n,u.allowSelection=r,u.elementId=s,u.onItemClick=function(y){if(!u.isItemDisabled(y)){u.isExpanded=!1,u.allowSelection&&(u.selectedItem=y),u.onSelectionChanged&&u.onSelectionChanged(y);var V=y.action;V&&V(y)}},u.onItemHover=function(y){u.mouseOverHandler(y)},u.isItemDisabled=function(y){return y.enabled!==void 0&&!y.enabled},u.isItemSelected=function(y){return u.areSameItems(u.selectedItem,y)},u.isItemFocused=function(y){return u.areSameItems(u.focusedItem,y)},u.getListClass=function(){return new _().append(u.cssClasses.itemsContainer).append(u.cssClasses.itemsContainerFiltering,!!u.filterString&&u.visibleActions.length!==u.visibleItems.length).toString()},u.getItemClass=function(y){var V=u.isItemSelected(y);return new _().append(u.cssClasses.item).append(u.cssClasses.itemWithIcon,!!y.iconName).append(u.cssClasses.itemDisabled,u.isItemDisabled(y)).append(u.cssClasses.itemFocused,u.isItemFocused(y)).append(u.cssClasses.itemSelected,!y.hasSubItems&&V).append(u.cssClasses.itemGroup,y.hasSubItems).append(u.cssClasses.itemGroupSelected,y.hasSubItems&&V).append(u.cssClasses.itemHovered,y.isHovered).append(u.cssClasses.itemTextWrap,u.textWrapEnabled).append(y.css).toString()},u.getItemStyle=function(y){var V=y.level||0;return{"--sjs-list-item-level":V+1}},Object.keys(e).indexOf("items")!==-1){var d=e;Object.keys(d).forEach(function(y){switch(y){case"items":u.setItems(d.items);break;case"onFilterStringChangedCallback":u.setOnFilterStringChangedCallback(d.onFilterStringChangedCallback);break;case"onTextSearchCallback":u.setOnTextSearchCallback(d.onTextSearchCallback);break;default:u[y]=d[y]}}),u.updateActionsIds()}else u.setItems(e),u.selectedItem=o;return u}return t.prototype.hasText=function(e,n){if(!n)return!0;var r=e.title||"";if(this.onTextSearchCallback)return this.onTextSearchCallback(e,n);var o=r.toLocaleLowerCase();return o=I.comparator.normalizeTextCallback(o,"filter"),o.indexOf(n.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},t.prototype.getRenderedActions=function(){var e=i.prototype.getRenderedActions.call(this);if(this.filterString){var n=[];return e.forEach(function(r){n.push(r),r.items&&r.items.forEach(function(o){var s=new xe(o);s.iconName||(s.iconName=r.iconName),n.push(s)})}),n}return e},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter(function(n){return e.isItemVisible(n)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.updateIsEmpty()},t.prototype.updateIsEmpty=function(){var e=this;this.isEmpty=this.renderedActions.filter(function(n){return e.isItemVisible(n)}).length===0},t.prototype.scrollToItem=function(e,n){var r=this;n===void 0&&(n=0),setTimeout(function(){if(r.listContainerHtmlElement){var o=r.listContainerHtmlElement.querySelector(ke(e));o&&setTimeout(function(){o.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})},n)}},n)},t.prototype.setOnFilterStringChangedCallback=function(e){this.onFilterStringChangedCallback=e},t.prototype.setOnTextSearchCallback=function(e){this.onTextSearchCallback=e},t.prototype.setItems=function(e,n){n===void 0&&(n=!0),i.prototype.setItems.call(this,e,n),this.updateActionsIds(),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.updateActionsIds=function(){var e=this;this.elementId&&this.renderedActions.forEach(function(n){n.elementId=e.elementId+n.id})},t.prototype.setSearchEnabled=function(e){this.searchEnabled=e,this.showSearchClearButton=e},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),i.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return _r},t.prototype.popupAfterShowCallback=function(e){this.addScrollEventListener(function(){e.hidePopup()})},t.prototype.onItemLeave=function(e){e.hidePopupDelayed(this.subItemsHideDelay)},t.prototype.areSameItems=function(e,n){return this.areSameItemsCallback?this.areSameItemsCallback(e,n):!!e&&!!n&&e.id==n.id},Object.defineProperty(t.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyMessage",{get:function(){return this.isAllDataLoaded?this.getLocalizationString("emptyMessage"):this.loadingText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector(ke(this.cssClasses.itemsContainer))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingIndicator",{get:function(){return this.loadingIndicatorValue||(this.loadingIndicatorValue=new xe({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if(e.key==="ArrowDown"||e.keyCode===40){var n=e.target.parentElement,r=n.parentElement.querySelector("ul"),o=rs(r);r&&o&&(Ut.focusElement(o),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var n=e.target;e.key==="ArrowDown"||e.keyCode===40?(Ut.focusElement(Ut.getNextElementPreorder(n)),e.preventDefault()):(e.key==="ArrowUp"||e.keyCode===38)&&(Ut.focusElement(Ut.getNextElementPostorder(n)),e.preventDefault())},t.prototype.onPointerDown=function(e,n){},t.prototype.refresh=function(){this.filterString!==""?this.filterString="":this.updateIsEmpty(),this.resetFocusedItem()},t.prototype.onClickSearchClearButton=function(e){e.currentTarget.parentElement.querySelector("input").focus(),this.refresh()},t.prototype.resetFocusedItem=function(){this.focusedItem=void 0},t.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},t.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},t.prototype.initFocusedItem=function(){var e=this;this.focusedItem=this.visibleItems.filter(function(n){return n.visible&&e.isItemSelected(n)})[0],this.focusedItem||this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(!this.focusedItem)this.initFocusedItem();else{var e=this.visibleItems,n=e.indexOf(this.focusedItem),r=e[n+1];r?this.focusedItem=r:this.focusFirstVisibleItem()}},t.prototype.focusPrevVisibleItem=function(){if(!this.focusedItem)this.initFocusedItem();else{var e=this.visibleItems,n=e.indexOf(this.focusedItem),r=e[n-1];r?this.focusedItem=r:this.focusLastVisibleItem()}},t.prototype.selectFocusedItem=function(){this.focusedItem&&this.onItemClick(this.focusedItem)},t.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},t.prototype.onLastItemRended=function(e){this.isAllDataLoaded||e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=Ut.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.cssClasses.itemFocused)},t.prototype.scrollToSelectedItem=function(){this.selectedItem&&this.selectedItem.items&&this.selectedItem.items.length>0?this.scrollToItem(this.cssClasses.itemGroupSelected,110):this.scrollToItem(this.cssClasses.itemSelected,110)},t.prototype.addScrollEventListener=function(e){e&&(this.removeScrollEventListener(),this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},t.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose(),this.listContainerHtmlElement=void 0},t.INDENT=16,t.MINELEMENTCOUNT=10,Ye([x({defaultValue:!0,onSet:function(e,n){n.onSet()}})],t.prototype,"searchEnabled",void 0),Ye([x({defaultValue:!1})],t.prototype,"showFilter",void 0),Ye([x({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),Ye([x({defaultValue:!1})],t.prototype,"isExpanded",void 0),Ye([x({})],t.prototype,"selectedItem",void 0),Ye([x()],t.prototype,"focusedItem",void 0),Ye([x({onSet:function(e,n){n.onFilterStringChanged(n.filterString)}})],t.prototype,"filterString",void 0),Ye([x({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),Ye([x({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),Ye([x({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),Ye([x({defaultValue:!0})],t.prototype,"renderElements",void 0),Ye([x({defaultValue:!1})],t.prototype,"textWrapEnabled",void 0),Ye([x({defaultValue:"sv-list-item-content"})],t.prototype,"itemComponent",void 0),t}(xt),Mi=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ge=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},On=function(i){Mi(t,i);function t(e,n,r,o){var s=i.call(this)||this;if(s.focusFirstInputSelector="",s.onCancel=function(){},s.onApply=function(){return!0},s.onHide=function(){},s.onShow=function(){},s.onDispose=function(){},s.onVisibilityChanged=s.addEvent(),s.onFooterActionsCreated=s.addEvent(),s.onRecalculatePosition=s.addEvent(),s.contentComponentName=e,s.contentComponentData=n,r&&typeof r=="string")s.verticalPosition=r,s.horizontalPosition=o;else if(r){var u=r;for(var d in u)s[d]=u[d]}return s}return t.prototype.refreshInnerModel=function(){var e=this.contentComponentData.model;e&&e.refresh&&e.refresh()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){this.isVisible!==e&&(this.setPropertyValue("isVisible",e),this.onVisibilityChanged.fire(this,{model:this,isVisible:e}))},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},t.prototype.show=function(){this.isVisible||(this.isVisible=!0)},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},t.prototype.recalculatePosition=function(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})},t.prototype.updateFooterActions=function(e){var n={actions:e};return this.onFooterActionsCreated.fire(this,n),n.actions},t.prototype.updateDisplayMode=function(e){switch(this.displayMode!==e&&(this.setWidthByTarget=e==="dropdown"),e){case"dropdown":{this.displayMode="popup";break}case"popup":{this.displayMode="overlay",this.overlayDisplayMode="tablet-dropdown-overlay";break}case"overlay":{this.displayMode="overlay",this.overlayDisplayMode="dropdown-overlay";break}}},t.prototype.onHiding=function(){this.refreshInnerModel(),this.onHide()},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.onDispose()},Ge([x()],t.prototype,"contentComponentName",void 0),Ge([x()],t.prototype,"contentComponentData",void 0),Ge([x({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),Ge([x({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),Ge([x({defaultValue:!0})],t.prototype,"showPointer",void 0),Ge([x({defaultValue:!1})],t.prototype,"isModal",void 0),Ge([x({defaultValue:!0})],t.prototype,"canShrink",void 0),Ge([x({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),Ge([x({defaultValue:!0})],t.prototype,"isFocusedContainer",void 0),Ge([x({defaultValue:""})],t.prototype,"cssClass",void 0),Ge([x({defaultValue:""})],t.prototype,"title",void 0),Ge([x({defaultValue:"auto"})],t.prototype,"overlayDisplayMode",void 0),Ge([x({defaultValue:"popup"})],t.prototype,"displayMode",void 0),Ge([x({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(fe);function ji(i,t,e,n,r,o,s,u,d){return r===void 0&&(r=function(){}),o===void 0&&(o=function(){}),d===void 0&&(d="popup"),He.warn("The `showModal()` and `createDialogOptions()` methods are obsolete. Use the `showDialog()` method instead."),{componentName:i,data:t,onApply:e,onCancel:n,onHide:r,onShow:o,cssClass:s,title:u,displayMode:d}}var Ni=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Pe=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ko=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function Br(i,t,e){return t.locOwner=e,Fr(i,t,t)}function Fr(i,t,e){var n,r=t.onSelectionChanged;t.onSelectionChanged=function(d){for(var y=[],V=1;V<arguments.length;V++)y[V-1]=arguments[V];u.hasTitle&&(u.title=d.title),r&&r(d,y)};var o=tr(t,e);o.getTargetCallback=qi;var s=Object.assign({},i,{component:"sv-action-bar-item-dropdown",popupModel:o,action:function(d,y){i.action&&i.action(),o.isFocusedContent=o.isFocusedContent||!y,o.show()}}),u=new xe(s);return u.data=(n=o.contentComponentData)===null||n===void 0?void 0:n.model,u}function tr(i,t){var e=new on(i);e.onSelectionChanged=function(o){i.onSelectionChanged&&i.onSelectionChanged(o),r.hide()};var n=t||{};n.onDispose=function(){e.dispose()};var r=new On("sv-list",{model:e},n);return r.isFocusedContent=e.showFilter,r.onShow=function(){n.onShow&&n.onShow(),e.scrollToSelectedItem()},r}function qi(i){return i==null?void 0:i.previousElementSibling}var En=function(i){Ni(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.rendredIdValue=t.getNextRendredId(),e}return t.getNextRendredId=function(){return t.renderedId++},Object.defineProperty(t.prototype,"renderedId",{get:function(){return this.rendredIdValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},set:function(e){e!==this.owner&&(this.ownerValue=e,this.locStrsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getVisible()},set:function(e){this.setVisible(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.getEnabled()},set:function(e){this.setEnabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.getComponent()},set:function(e){this.setComponent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocTitle()},set:function(e){this.setLocTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getTitle()},set:function(e){this.setTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||er},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&this.mode!=="popup"&&this.mode!=="removed"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.enabled!==void 0&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!this.disableShrink&&!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return(this.mode!="small"&&(this.showTitle||this.showTitle===void 0)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSubItems",{get:function(){return!!this.items&&this.items.length>0},enumerable:!1,configurable:!0}),t.prototype.getActionBarItemTitleCss=function(){return new _().append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return new _().append(this.cssClasses.item).append(this.cssClasses.itemWithTitle,this.hasTitle).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},t.prototype.getActionRootCss=function(){return new _().append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getTooltip=function(){return this.tooltip||this.title},t.prototype.getIsTrusted=function(e){return e.originalEvent?e.originalEvent.isTrusted:e.isTrusted},t.prototype.showPopup=function(){this.popupModel&&this.popupModel.show()},t.prototype.hidePopup=function(){this.popupModel&&this.popupModel.hide()},t.prototype.clearPopupTimeouts=function(){this.showPopupTimeout&&clearTimeout(this.showPopupTimeout),this.hidePopupTimeout&&clearTimeout(this.hidePopupTimeout)},t.prototype.showPopupDelayed=function(e){var n=this;this.clearPopupTimeouts(),this.showPopupTimeout=setTimeout(function(){n.clearPopupTimeouts(),n.showPopup()},e)},t.prototype.hidePopupDelayed=function(e){var n=this,r;!((r=this.popupModel)===null||r===void 0)&&r.isVisible?(this.clearPopupTimeouts(),this.hidePopupTimeout=setTimeout(function(){n.clearPopupTimeouts(),n.hidePopup(),n.isHovered=!1},e)):(this.clearPopupTimeouts(),this.isHovered=!1)},t.renderedId=1,Pe([x()],t.prototype,"tooltip",void 0),Pe([x()],t.prototype,"showTitle",void 0),Pe([x()],t.prototype,"innerCss",void 0),Pe([x()],t.prototype,"active",void 0),Pe([x()],t.prototype,"pressed",void 0),Pe([x()],t.prototype,"data",void 0),Pe([x()],t.prototype,"popupModel",void 0),Pe([x()],t.prototype,"needSeparator",void 0),Pe([x()],t.prototype,"template",void 0),Pe([x({defaultValue:"large"})],t.prototype,"mode",void 0),Pe([x()],t.prototype,"visibleIndex",void 0),Pe([x()],t.prototype,"disableTabStop",void 0),Pe([x()],t.prototype,"disableShrink",void 0),Pe([x()],t.prototype,"disableHide",void 0),Pe([x({defaultValue:!1})],t.prototype,"needSpace",void 0),Pe([x()],t.prototype,"ariaChecked",void 0),Pe([x()],t.prototype,"ariaExpanded",void 0),Pe([x({defaultValue:"button"})],t.prototype,"ariaRole",void 0),Pe([x()],t.prototype,"iconName",void 0),Pe([x({defaultValue:24})],t.prototype,"iconSize",void 0),Pe([x()],t.prototype,"markerIconName",void 0),Pe([x()],t.prototype,"css",void 0),Pe([x({defaultValue:!1})],t.prototype,"isPressed",void 0),Pe([x({defaultValue:!1})],t.prototype,"isHovered",void 0),t}(fe),xe=function(i){Ni(t,i);function t(e){var n=i.call(this)||this;n.locTitleChanged=function(){var s=n.locTitle.renderedHtml;n.setPropertyValue("_title",s||void 0)};var r=e instanceof t?e.innerItem:e;if(n.innerItem=r,n.locTitle=r?r.locTitle:null,r)for(var o in r)o==="locTitle"||o==="title"&&n.locTitle&&n.title||(n[o]=r[o]);return n.locTitleName&&n.locTitleChanged(),n.registerFunctionOnPropertyValueChanged("_title",function(){n.raiseUpdate(!0)}),n.locStrChangedInPopupModel(),n}return t.prototype.raiseUpdate=function(e){e===void 0&&(e=!1),this.updateCallback&&this.updateCallback(e)},t.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},t.prototype.setSubItems=function(e){this.markerIconName="icon-next_16x16",this.component="sv-list-item-group",this.items=Ko([],e.items);var n=Object.assign({},e);n.searchEnabled=!1;var r=tr(n,{horizontalPosition:"right",showPointer:!1,canShrink:!1});r.cssClass="sv-popup-inner",this.popupModel=r},t.prototype.getLocTitle=function(){return this.locTitleValue},t.prototype.setLocTitle=function(e){!e&&!this.locTitleValue&&(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},t.prototype.getTitle=function(){return this._title},t.prototype.setTitle=function(e){this._title=e},Object.defineProperty(t.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(e){this.locTitle.localizationName=e},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.doAction=function(e){var n=e.originalEvent?e.originalEvent:e;return this.action(this,n.isTrusted),n.preventDefault(),n.stopPropagation(),!0},t.prototype.doMouseDown=function(e){this.isMouseDown=!0},t.prototype.doFocus=function(e){if(this.onFocus){var n=e.originalEvent?e.originalEvent:e;this.onFocus(this.isMouseDown,n)}this.isMouseDown=!1},t.prototype.locStrChangedInPopupModel=function(){if(!(!this.popupModel||!this.popupModel.contentComponentData||!this.popupModel.contentComponentData.model)){var e=this.popupModel.contentComponentData.model;if(Array.isArray(e.actions)){var n=e.actions;n.forEach(function(r){r.locStrsChanged&&r.locStrsChanged()})}}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=k(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.owner?this.owner.getMarkdownHtml(e,n):void 0},t.prototype.getProcessedText=function(e){return this.owner?this.owner.getProcessedText(e):e},t.prototype.getRenderer=function(e){return this.owner?this.owner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.owner?this.owner.getRendererContext(e):e},t.prototype.setVisible=function(e){this.visible!==e&&(this._visible=e)},t.prototype.getVisible=function(){return this._visible},t.prototype.setEnabled=function(e){this._enabled=e},t.prototype.getEnabled=function(){return this.enabledIf?this.enabledIf():this._enabled},t.prototype.setComponent=function(e){this._component=e},t.prototype.getComponent=function(){return this._component},t.prototype.dispose=function(){this.updateCallback=void 0,this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleChanged=void 0,this.action=void 0,i.prototype.dispose.call(this),this.popupModel&&this.popupModel.dispose()},Pe([x()],t.prototype,"id",void 0),Pe([x({defaultValue:!0,onSet:function(e,n){n.raiseUpdate()}})],t.prototype,"_visible",void 0),Pe([x({onSet:function(e,n){n.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),Pe([x()],t.prototype,"_enabled",void 0),Pe([x()],t.prototype,"action",void 0),Pe([x()],t.prototype,"onFocus",void 0),Pe([x()],t.prototype,"_component",void 0),Pe([x()],t.prototype,"items",void 0),Pe([x({onSet:function(e,n){n.locTitleValue.text!==e&&(n.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(En),Yo=function(){function i(t){this.item=t,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return i.prototype.setupPopupCallbacks=function(){var t=this,e=this.popupModel=this.item.popupModel;e&&e.registerPropertyChangedHandlers(["isVisible"],function(){e.isVisible?t.item.pressed=!0:t.item.pressed=!1},this.funcKey)},i.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},i.prototype.dispose=function(){this.removePopupCallbacks()},i}(),Xo=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Tn=function(i){Xo(t,i);function t(){var e=i.call(this)||this;return e.minVisibleItemsCount=0,e.isResponsivenessDisabled=!1,e.dotsItem=Fr({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:k("more")},{items:[],allowSelection:!1}),e}return t.prototype.hideItemsGreaterN=function(e){var n=this.getActionsToHide();e=Math.max(e,this.minVisibleItemsCount-(this.visibleActions.length-n.length));var r=[];n.forEach(function(o){e<=0&&(o.removePriority?o.mode="removed":(o.mode="popup",r.push(o.innerItem))),e--}),this.hiddenItemsListModel.setItems(r)},t.prototype.getActionsToHide=function(){return this.visibleActions.filter(function(e){return!e.disableHide}).sort(function(e,n){return e.removePriority||0-n.removePriority||0})},t.prototype.getVisibleItemsCount=function(e){this.visibleActions.filter(function(s){return s.disableHide}).forEach(function(s){return e-=s.minDimension});for(var n=this.getActionsToHide().map(function(s){return s.minDimension}),r=0,o=0;o<n.length;o++)if(r+=n[o],r>e)return o;return o},t.prototype.updateItemMode=function(e,n){for(var r=this.visibleActions,o=r.length-1;o>=0;o--)n>e&&!r[o].disableShrink?(n-=r[o].maxDimension-r[o].minDimension,r[o].mode="small"):r[o].mode="large";if(n>e){var s=this.visibleActions.filter(function(u){return u.removePriority});s.sort(function(u,d){return u.removePriority-d.removePriority});for(var o=0;o<s.length;o++)n>e&&(n-=r[o].disableShrink?s[o].maxDimension:s[o].minDimension,s[o].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.onSet=function(){var e=this;this.actions.forEach(function(n){return n.updateCallback=function(r){return e.raiseUpdate(r)}}),i.prototype.onSet.call(this)},t.prototype.onPush=function(e){var n=this;e.updateCallback=function(r){return n.raiseUpdate(r)},i.prototype.onPush.call(this,e)},t.prototype.getRenderedActions=function(){return this.actions.length===1&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(e){this.isResponsivenessDisabled||i.prototype.raiseUpdate.call(this,e)},t.prototype.fit=function(e,n){if(!(e<=0)){this.dotsItem.visible=!1;var r=0,o=0,s=this.visibleActions;s.forEach(function(u){r+=u.minDimension,o+=u.maxDimension}),e>=o?this.setActionsMode("large"):e<r?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-n)),this.dotsItem.visible=!!this.hiddenItemsListModel.actions.length):this.updateItemMode(e,o)}},t.prototype.initResponsivityManager=function(e,n){if(this.responsivityManager){if(this.responsivityManager.container==e)return;this.responsivityManager.dispose()}this.responsivityManager=new Nr(e,this,":scope > .sv-action:not(.sv-dots) > .sv-action__content",null,n)},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach(function(n){e=="small"&&n.disableShrink?n.mode="large":n.mode=e})},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dotsItem.data.dispose(),this.dotsItem.dispose(),this.resetResponsivityManager()},t.ContainerID=1,t}(xt);(function(){function i(t,e){var n=this;e===void 0&&(e=!1),this.func=t,this.isMultiple=e,this._isCompleted=!1,this.execute=function(){n._isCompleted||(n.func(),n._isCompleted=!n.isMultiple)}}return i.prototype.discard=function(){this._isCompleted=!0},Object.defineProperty(i.prototype,"isCompleted",{get:function(){return this._isCompleted},enumerable:!1,configurable:!0}),i})();function kr(i){var t=this,e=!1,n=!1,r;return{run:function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];n=!1,r=o,e||(e=!0,queueMicrotask(function(){n||i.apply(t,r),n=!1,e=!1}))},cancel:function(){n=!0}}}var sn=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qr=function(){function i(){this.cancelQueue=[]}return i.prototype.getMsFromRule=function(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3},i.prototype.reflow=function(t){return t.offsetHeight},i.prototype.getAnimationsCount=function(t){var e="";return getComputedStyle&&(e=getComputedStyle(t).animationName),e&&e!="none"?e.split(", ").length:0},i.prototype.getAnimationDuration=function(t){for(var e=getComputedStyle(t),n=e.animationDelay.split(", "),r=e.animationDuration.split(", "),o=0,s=0;s<Math.max(r.length,n.length);s++)o=Math.max(o,this.getMsFromRule(r[s%r.length])+this.getMsFromRule(n[s%n.length]));return o},i.prototype.addCancelCallback=function(t){this.cancelQueue.push(t)},i.prototype.removeCancelCallback=function(t){this.cancelQueue.indexOf(t)>=0&&this.cancelQueue.splice(this.cancelQueue.indexOf(t),1)},i.prototype.onAnimationEnd=function(t,e,n){var r=this,o,s=this.getAnimationsCount(t),u=function(y){y===void 0&&(y=!0),e(y),clearTimeout(o),r.removeCancelCallback(u),t.removeEventListener("animationend",d)},d=function(y){y.target==y.currentTarget&&--s<=0&&u(!1)};s>0?(t.addEventListener("animationend",d),this.addCancelCallback(u),o=setTimeout(function(){u(!1)},this.getAnimationDuration(t)+10)):e(!0)},i.prototype.afterAnimationRun=function(t,e){t&&e&&e.onAfterRunAnimation&&e.onAfterRunAnimation(t)},i.prototype.beforeAnimationRun=function(t,e){t&&e&&e.onBeforeRunAnimation&&e.onBeforeRunAnimation(t)},i.prototype.getCssClasses=function(t){return t.cssClass.replace(/\s+$/,"").split(/\s+/)},i.prototype.runAnimation=function(t,e,n){t&&(e!=null&&e.cssClass)?(this.reflow(t),this.getCssClasses(e).forEach(function(r){t.classList.add(r)}),this.onAnimationEnd(t,n,e)):n(!0)},i.prototype.clearHtmlElement=function(t,e){t&&e.cssClass&&this.getCssClasses(e).forEach(function(n){t.classList.remove(n)}),this.afterAnimationRun(t,e)},i.prototype.onNextRender=function(t,e){var n=this;if(e===void 0&&(e=!1),!e&&B.isAvailable()){var r=function(){t(!0),cancelAnimationFrame(o)},o=B.requestAnimationFrame(function(){o=B.requestAnimationFrame(function(){t(!1),n.removeCancelCallback(r)})});this.addCancelCallback(r)}else t(!0)},i.prototype.cancel=function(){var t=[].concat(this.cancelQueue);t.forEach(function(e){return e()}),this.cancelQueue=[]},i}(),_i=function(i){sn(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.onEnter=function(e){var n=this,r=e.getAnimatedElement(),o=e.getEnterOptions?e.getEnterOptions():{};this.beforeAnimationRun(r,o),this.runAnimation(r,o,function(){n.clearHtmlElement(r,o)})},t.prototype.onLeave=function(e,n){var r=this,o=e.getAnimatedElement(),s=e.getLeaveOptions?e.getLeaveOptions():{};this.beforeAnimationRun(o,s),this.runAnimation(o,s,function(u){n(),r.onNextRender(function(){r.clearHtmlElement(o,s)},u)})},t}(Qr),nr=function(i){sn(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.runGroupAnimation=function(e,n,r,o,s){var u=this,d={isAddingRunning:n.length>0,isDeletingRunning:r.length>0,isReorderingRunning:o.length>0},y=n.map(function(J){return e.getAnimatedElement(J)}),V=n.map(function(J){return e.getEnterOptions?e.getEnterOptions(J,d):{}}),T=r.map(function(J){return e.getAnimatedElement(J)}),N=r.map(function(J){return e.getLeaveOptions?e.getLeaveOptions(J,d):{}}),U=o.map(function(J){return e.getAnimatedElement(J.item)}),W=o.map(function(J){return e.getReorderOptions?e.getReorderOptions(J.item,J.movedForward,d):{}});n.forEach(function(J,ue){u.beforeAnimationRun(y[ue],V[ue])}),r.forEach(function(J,ue){u.beforeAnimationRun(T[ue],N[ue])}),o.forEach(function(J,ue){u.beforeAnimationRun(U[ue],W[ue])});var X=n.length+r.length+U.length,Y=function(J){--X<=0&&(s&&s(),u.onNextRender(function(){n.forEach(function(ue,Me){u.clearHtmlElement(y[Me],V[Me])}),r.forEach(function(ue,Me){u.clearHtmlElement(T[Me],N[Me])}),o.forEach(function(ue,Me){u.clearHtmlElement(U[Me],W[Me])})},J))};n.forEach(function(J,ue){u.runAnimation(y[ue],V[ue],Y)}),r.forEach(function(J,ue){u.runAnimation(T[ue],N[ue],Y)}),o.forEach(function(J,ue){u.runAnimation(U[ue],W[ue],Y)})},t}(Qr),Rn=function(){function i(t,e,n){var r=this;this.animationOptions=t,this.update=e,this.getCurrentValue=n,this._debouncedSync=kr(function(o){r.cancelAnimations();try{r._sync(o)}catch{r.update(o)}})}return i.prototype.onNextRender=function(t,e){var n=this,r=this.animationOptions.getRerenderEvent();if(r){var s=function(){r.remove(u),n.cancelCallback=void 0},u=function(d,y){y.isCancel?e&&e():t(),s()};this.cancelCallback=function(){e&&e(),s()},r.add(u)}else if(B.isAvailable()){var o=B.requestAnimationFrame(function(){t(),n.cancelCallback=void 0});this.cancelCallback=function(){e&&e(),cancelAnimationFrame(o),n.cancelCallback=void 0}}else throw new Error("Can't get next render")},i.prototype.sync=function(t){this.animationOptions.isAnimationEnabled()?this._debouncedSync.run(t):(this.cancel(),this.update(t))},i.prototype.cancel=function(){this._debouncedSync.cancel(),this.cancelAnimations()},i.prototype.cancelAnimations=function(){this.cancelCallback&&this.cancelCallback(),this.animation.cancel()},i}(),In=function(i){sn(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.animation=new _i,e}return t.prototype._sync=function(e){var n=this;e!==this.getCurrentValue()?e?(this.onNextRender(function(){n.animation.onEnter(n.animationOptions)}),this.update(e)):this.animation.onLeave(this.animationOptions,function(){n.update(e)}):this.update(e)},t}(Rn),Nt=function(i){sn(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.animation=new nr,e}return t.prototype._sync=function(e){var n=this,r,o;e=[].concat(e);var s=[].concat(this.getCurrentValue()),u=(r=this.animationOptions.allowSyncRemovalAddition)!==null&&r!==void 0?r:!0,d=Yi(s,e,(o=this.animationOptions.getKey)!==null&&o!==void 0?o:function(W){return W});!u&&(d.reorderedItems.length>0||d.addedItems.length>0)&&(d.deletedItems=[],d.mergedItems=e),this.animationOptions.onCompareArrays&&this.animationOptions.onCompareArrays(d);var y=d.addedItems,V=d.reorderedItems,T=d.deletedItems,N=d.mergedItems,U=function(){n.animation.runGroupAnimation(n.animationOptions,y,T,V,function(){T.length>0&&n.update(e)})};[y,T,V].some(function(W){return W.length>0})?T.length<=0||V.length>0||y.length>0?(this.onNextRender(U,function(){n.update(e)}),this.update(N)):U():this.update(e)},t}(Rn),rr=function(i){sn(t,i);function t(e,n,r,o){var s=i.call(this,e,n,r)||this;return s.mergeValues=o,s.animation=new nr,s}return t.prototype._sync=function(e){var n=this,r=[].concat(this.getCurrentValue());if(r[0]!==e[0]){var o=this.mergeValues?this.mergeValues(e,r):[].concat(r,e);this.onNextRender(function(){n.animation.runGroupAnimation(n.animationOptions,e,r,[],function(){n.update(e)})},function(){return n.update(e)}),this.update(o,!0)}else this.update(e)},t}(Rn),Bi=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),rt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ir=function(i){Bi(t,i);function t(){var e=i.call(this)||this;return e.createLocTitleProperty(),e}return t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSurvey",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setTitleValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},t.prototype.setTitleValue=function(e){this.setLocalizableStringText("title",e)},t.prototype.updateDescriptionVisibility=function(e){var n=!1;if(this.isDesignMode){var r=j.findProperty(this.getType(),"description");n=!!(r!=null&&r.placeholder)}this.hasDescription=!!e||n&&this.isDesignMode},Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),n=this.getSurvey();return n?n.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return I.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return this.ariaLabel},enumerable:!1,configurable:!0}),t.prototype.getIsTitleRenderedAsString=function(){return!this.isTitleOwner},rt([x({})],t.prototype,"hasDescription",void 0),rt([x({localizable:!0,onSet:function(e,n){n.updateDescriptionVisibility(e)}})],t.prototype,"description",void 0),t}(fe),or;(function(i){i[i.InsideEmptyPanel=1]="InsideEmptyPanel",i[i.MultilineRight=2]="MultilineRight",i[i.MultilineLeft=3]="MultilineLeft",i[i.Top=4]="Top",i[i.Right=5]="Right",i[i.Bottom=6]="Bottom",i[i.Left=7]="Left"})(or||(or={}));var _e=function(i){Bi(t,i);function t(e){var n=i.call(this)||this;return n.selectedElementInDesignValue=n,n.disableDesignActions=t.CreateDisabledDesignElements,n.parentQuestionValue=null,n.isContentElement=!1,n.isEditableTemplateElement=!1,n.isInteractiveDesignElement=!0,n.isSingleInRow=!0,n._renderedIsExpanded=!0,n._isAnimatingCollapseExpand=!1,n.animationCollapsed=new In(n.getExpandCollapseAnimationOptions(),function(r){n._renderedIsExpanded=r,n.animationAllowed&&(r?n.isAnimatingCollapseExpand=!0:n.updateElementCss(!1))},function(){return n.renderedIsExpanded}),n.onAfterRenderElement=n.addEvent(),n.name=e,n.createNewArray("errors"),n.createNewArray("titleActions"),n.registerPropertyChangedHandlers(["isReadOnly"],function(){n.onReadOnlyChanged()}),n.registerPropertyChangedHandlers(["errors"],function(){n.updateVisibleErrors()}),n.registerPropertyChangedHandlers(["isSingleInRow"],function(){n.updateElementCss(!1)}),n.registerPropertyChangedHandlers(["minWidth","maxWidth","renderWidth","allowRootStyle","parent"],function(){n.updateRootStyle()}),n}return t.getProgressInfoByElements=function(e,n){for(var r=fe.createProgressInfo(),o=0;o<e.length;o++)if(e[o].isVisible){var s=e[o].getProgressInfo();r.questionCount+=s.questionCount,r.answeredQuestionCount+=s.answeredQuestionCount,r.requiredQuestionCount+=s.requiredQuestionCount,r.requiredAnsweredQuestionCount+=s.requiredAnsweredQuestionCount}return n&&r.questionCount>0&&(r.requiredQuestionCount==0&&(r.requiredQuestionCount=1),r.answeredQuestionCount>0&&(r.requiredAnsweredQuestionCount=1)),r},t.IsNeedScrollIntoView=function(e,n,r){var o=r?-1:e.getBoundingClientRect().top,s=o<0,u=-1;if(!s&&n&&(u=e.getBoundingClientRect().left,s=u<0),!s&&B.isAvailable()){var d=B.getInnerHeight();if(s=d>0&&d<o,!s&&n){var y=B.getInnerWidth();s=y>0&&y<u}}return s},t.ScrollIntoView=function(e,n,r){if(e.scrollIntoView(n),typeof r=="function"){var o=null,s=0,u=function(){var d=e.getBoundingClientRect().top;if(d===o){if(s++>2){r();return}}else o=d,s=0;requestAnimationFrame(u)};B.requestAnimationFrame(u)}},t.ScrollElementToTop=function(e,n,r,o){var s=I.environment.root;if(!e||typeof s>"u")return!1;var u=s.getElementById(e);return t.ScrollElementToViewCore(u,!1,n,r,o)},t.ScrollElementToViewCore=function(e,n,r,o,s){if(!e||!e.scrollIntoView)return s&&s(),!1;var u=t.IsNeedScrollIntoView(e,n,r);return u?t.ScrollIntoView(e,o,s):s&&s(),u},t.GetFirstNonTextElement=function(e,n){if(n===void 0&&(n=!1),!e||!e.length||e.length==0)return null;if(n){var r=e[0];r.nodeName==="#text"&&(r.data=""),r=e[e.length-1],r.nodeName==="#text"&&(r.data="")}for(var o=0;o<e.length;o++)if(e[o].nodeName!="#text"&&e[o].nodeName!="#comment")return e[o];return null},t.FocusElement=function(e,n,r){if(!e||!R.isAvailable())return!1;var o=n?!1:t.focusElementCore(e,r);return o||setTimeout(function(){t.focusElementCore(e,r)},n?100:10),o},t.focusElementCore=function(e,n){var r=I.environment.root;if(!r&&!n)return!1;var o=n?n.querySelector("#"+CSS.escape(e)):r.getElementById(e);return o&&!o.disabled&&o.style.display!=="none"&&o.offsetParent!==null?(t.ScrollElementToViewCore(o,!0,!1),o.focus(),!0):!1},Object.defineProperty(t.prototype,"colSpan",{get:function(){return this.getPropertyValue("colSpan",1)},set:function(e){this.setPropertyValue("colSpan",e)},enumerable:!1,configurable:!0}),t.prototype.onPropertyValueChanged=function(e,n,r){i.prototype.onPropertyValueChanged.call(this,e,n,r),e==="state"&&(this.updateElementCss(!1),this.notifyStateChanged(n),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},t.prototype.updateElementVisibility=function(){this.setPropertyValue("isVisible",this.isVisible)},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.renderedIsExpanded=!(this.state==="collapsed"&&!this.isDesignMode)},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(e){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return this.state==="collapsed"&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.state==="expanded"},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):this.isExpanded?(this.collapse(),!1):!0},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.locOwner=this,this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.createActionContainer=function(e){var n=e?new Tn:new xt;return this.survey&&this.survey.getCss().actionBar&&(n.cssClasses=this.survey.getCss().actionBar),n},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.getDefaultTitleActions=function(){return[]},t.prototype.updateTitleActions=function(){var e=this.getDefaultTitleActions();this.survey&&(e=this.survey.getUpdatedElementTitleActions(this,e)),this.setPropertyValue("titleActions",e)},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.titleToolbarValue&&this.titleToolbarValue.locStrsChanged()},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.state!==void 0&&this.state!=="default"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return!this.isPage&&this.state!=="default"?0:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!(this.isPage||this.state==="default"))return this.state==="expanded"?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!(this.isPage||this.state==="default"))return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,n){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null),this.survey&&(this.updateDescriptionVisibility(this.description),this.clearCssClasses())},t.prototype.canRunConditions=function(){return i.prototype.canRunConditions.call(this)&&!!this.data},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),t.prototype.__setData=function(e){I.supportCreatorV2&&(this.surveyDataValue=e)},Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return this.surveyValue?this.surveyValue:(this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue)},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"skeletonHeight",{get:function(){var e=void 0;return this.survey&&this.survey.skeletonHeight&&(e=this.survey.skeletonHeight+"px"),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return this.readOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly")},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClassesValue",{get:function(){var e=this.getPropertyValueWithoutDefault("cssClassesValue");return!e&&!this.isCssValueCalculating&&(this.isCssValueCalculating=!0,e=this.createCssClassesValue(),this.isCssValueCalculating=!1),e},enumerable:!1,configurable:!0}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||this.createCssClassesValue()},t.prototype.createCssClassesValue=function(){var e=this.calcCssClasses(this.css);return this.setPropertyValue("cssClassesValue",e),this.onCalcCssClasses(e),this.updateElementCssCore(this.cssClassesValue),e},t.prototype.onCalcCssClasses=function(e){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue,this.survey?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){var e=this.cssClasses;return e.number?e.number:e.panel?e.panel.number:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){var e=this.cssClasses;return e.requiredText||e.panel&&e.panel.requiredText},enumerable:!1,configurable:!0}),t.prototype.getCssTitleExpandableSvg=function(){return this.state==="default"?null:this.cssClasses.titleExpandableSvg},t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.clearCssClasses()},t.prototype.clearCssClasses=function(){this.resetPropertyValue("cssClassesValue")},t.prototype.getIsLoadingFromJson=function(){return i.prototype.getIsLoadingFromJson.call(this)?!0:this.surveyValue?this.surveyValue.isLoadingFromJson:!1},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var n=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&n&&this.onNameChanged(n)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,n){this.data&&!this.isTwoValueEquals(n,this.data.getValue(e))&&this.data.setValue(e,n,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,n=0;n<this.errors.length;n++)this.errors[n].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},Object.defineProperty(t.prototype,"wasRendered",{get:function(){return!!this.wasRenderedValue},enumerable:!1,configurable:!0}),t.prototype.onFirstRendering=function(){this.wasRendered||(this.wasRenderedValue=!0,this.onFirstRenderingCore())},t.prototype.onFirstRenderingCore=function(){this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad(),this.updateDescriptionVisibility(this.description)},t.prototype.setVisibleIndex=function(e){return 0},t.prototype.delete=function(e){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,n):this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.survey&&typeof this.survey.getRendererForString=="function"?this.survey.getRendererForString(this,e):this.locOwner&&typeof this.locOwner.getRenderer=="function"?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&typeof this.survey.getRendererContextForString=="function"?this.survey.getRendererContextForString(this,e):this.locOwner&&typeof this.locOwner.getRendererContext=="function"?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},t.prototype.removeSelfFromList=function(e){if(!(!e||!Array.isArray(e))){var n=e.indexOf(this);n>-1&&e.splice(n,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return!e||!this.textProcessor?e:this.textProcessor.processText(e,!0)},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&e.isPage?e:null},t.prototype.moveToBase=function(e,n,r){if(r===void 0&&(r=null),!n)return!1;e.removeElement(this);var o=-1;return h.isNumber(r)&&(o=parseInt(r)),o==-1&&r&&r.getType&&(o=n.indexOf(r)),n.addElement(this,o),!0},t.prototype.setPage=function(e,n){var r=this.getPage(e);if(this.prevSurvey=this.survey,typeof n=="string"){var o=this.getSurvey();o.pages.forEach(function(s){n===s.name&&(n=s)})}r!==n&&(e&&e.removeElement(this),n&&n.addElement(this,-1),this.prevSurvey=void 0)},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&this.survey.getCss().root.indexOf("sd-root-modern")!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage||this.parent===void 0},enumerable:!1,configurable:!0}),t.prototype.shouldAddRunnerStyles=function(){return!this.isDesignMode&&this.isDefaultV2Theme},Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.survey&&this.survey.isCompact},enumerable:!1,configurable:!0}),t.prototype.canHaveFrameStyles=function(){return this.parent!==void 0&&(!this.hasParent||this.parent&&this.parent.showPanelAsPage)},t.prototype.getHasFrameV2=function(){return this.shouldAddRunnerStyles()&&this.canHaveFrameStyles()},t.prototype.getIsNested=function(){return this.shouldAddRunnerStyles()&&!this.canHaveFrameStyles()},t.prototype.getCssRoot=function(e){var n=!!this.isCollapsed||!!this.isExpanded;return new _().append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expandableAnimating,n&&this.isAnimatingCollapseExpand).append(e.expanded,!!this.isExpanded&&this.renderedIsExpanded).append(e.expandable,n).append(e.nested,this.getIsNested()).toString()},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),t.prototype.getRootStyle=function(){var e={};return this.paddingLeft&&(e["--sv-element-add-padding-left"]=this.paddingLeft),this.paddingRight&&(e["--sv-element-add-padding-right"]=this.paddingRight),e},Object.defineProperty(t.prototype,"paddingLeft",{get:function(){var e=this;return this.getPropertyValue("paddingLeft",void 0,function(){return e.calcPaddingLeft()})},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return""},Object.defineProperty(t.prototype,"paddingRight",{get:function(){var e=this;return this.getPropertyValue("paddingRight",void 0,function(){return e.calcPaddingRight()})},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),t.prototype.calcPaddingRight=function(){return""},t.prototype.resetIndents=function(){this.resetPropertyValue("paddingLeft"),this.resetPropertyValue("paddingRight")},t.prototype.updateRootStyle=function(){var e={},n;if(this.parent){var r=this.parent.getColumsForElement(this);n=r.reduce(function(u,d){return d.effectiveWidth+u},0),n&&n!==100&&(e.flexGrow=1,e.flexShrink=0,e.flexBasis=n+"%",e.minWidth=void 0,e.maxWidth=this.maxWidth)}if(Object.keys(e).length==0){var o=""+this.minWidth;if(o&&o!="auto"){if(o.indexOf("px")!=-1&&this.survey){o=o.replace("px","");var s=parseFloat(o);isNaN(s)||(o=s*this.survey.widthScale/100,o=""+o+"px")}o="min(100%, "+o+")"}this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=o,e.maxWidth=this.maxWidth)}this.rootStyle=e},t.prototype.isContainsSelection=function(e){var n=void 0,r=R.getDocument();if(R.isAvailable()&&r&&r.selection)n=r.selection.createRange().parentElement();else{var o=B.getSelection();if(o&&o.rangeCount>0){var s=o.getRangeAt(0);s.startOffset!==s.endOffset&&(n=s.startContainer.parentNode)}}return n==e},Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(n){if(!(n&&e.isContainsSelection(n.target)))return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return this.state!=="default"},t.prototype.processTitleClick=function(){this.state!=="default"&&this.toggleState()},Object.defineProperty(t.prototype,"hasAdditionalTitleToolbar",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"additionalTitleToolbar",{get:function(){return this.getAdditionalTitleToolbar()},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return null},t.prototype.getCssTitle=function(e){if(!e)return"";var n=this.state!=="default",r=4;return new _().append(e.title).append(e.titleNumInline,(this.no||"").length>r||n).append(e.titleExpandable,n).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isDisabledStyle).append(e.titleReadOnly,this.isReadOnly).append(e.titleOnError,this.containsErrors).toString()},Object.defineProperty(t.prototype,"isDisabledStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[0]},enumerable:!1,configurable:!0}),t.prototype.getIsDisableAndReadOnlyStyles=function(e){var n=this.isPreviewStyle,r=e||this.isReadOnly,o=r&&!n,s=!this.isDefaultV2Theme&&(r||n);return[o,s]},Object.defineProperty(t.prototype,"isPreviewStyle",{get:function(){return!!this.survey&&this.survey.state==="preview"},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach(function(e){e.updateText()})},t.prototype.setWrapperElement=function(e){this.wrapperElement=e},t.prototype.getWrapperElement=function(){return this.wrapperElement},Object.defineProperty(t.prototype,"isAnimatingCollapseExpand",{get:function(){return this._isAnimatingCollapseExpand||this._renderedIsExpanded!=this.isExpanded},set:function(e){e!==this._isAnimatingCollapseExpand&&(this._isAnimatingCollapseExpand=e,this.updateElementCss(!1))},enumerable:!1,configurable:!0}),t.prototype.onElementExpanded=function(e){},t.prototype.getExpandCollapseAnimationOptions=function(){var e=this,n=function(o){e.isAnimatingCollapseExpand=!0,Vt(o)},r=function(o){e.isAnimatingCollapseExpand=!1,Xe(o)};return{getRerenderEvent:function(){return e.onElementRerendered},getEnterOptions:function(){var o=e.isPanel?e.cssClasses.panel:e.cssClasses;return{cssClass:o.contentEnter,onBeforeRunAnimation:n,onAfterRunAnimation:function(s){r(s),e.onElementExpanded(!0)}}},getLeaveOptions:function(){var o=e.isPanel?e.cssClasses.panel:e.cssClasses;return{cssClass:o.contentLeave,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getAnimatedElement:function(){var o,s=e.isPanel?e.cssClasses.panel:e.cssClasses;if(s.content){var u=ke(s.content);if(u)return(o=e.getWrapperElement())===null||o===void 0?void 0:o.querySelector(":scope "+u)}},isAnimationEnabled:function(){return e.isExpandCollapseAnimationEnabled}}},Object.defineProperty(t.prototype,"isExpandCollapseAnimationEnabled",{get:function(){return this.animationAllowed&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedIsExpanded",{get:function(){return!!this._renderedIsExpanded},set:function(e){var n=this._renderedIsExpanded;this.animationCollapsed.sync(e),!this.isExpandCollapseAnimationEnabled&&!n&&this.renderedIsExpanded&&this.onElementExpanded(!1)},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){return i.prototype.getIsAnimationAllowed.call(this)&&!!this.survey&&!this.survey.isEndLoadingFromJson},t.prototype.afterRenderCore=function(e){this.onAfterRenderElement.fire(this,{htmlElement:e})},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.titleToolbarValue&&this.titleToolbarValue.dispose()},t.CreateDisabledDesignElements=!1,rt([x({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),rt([x({defaultValue:!1})],t.prototype,"isDragMe",void 0),rt([x({onSet:function(e,n){n.colSpan=e}})],t.prototype,"effectiveColSpan",void 0),rt([x({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),rt([x({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),rt([x({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),rt([x()],t.prototype,"rootStyle",void 0),rt([x()],t.prototype,"_renderedIsExpanded",void 0),t}(ir),Fi=function(){function i(t,e,n){var r=this;n===void 0&&(n=100),this._elements=t,this._renderedHandler=e,this._elementsToRenderCount=0,this._elementsToRenderTimer=void 0,this._elementRenderedHandler=function(o,s){var u;(u=o.onAfterRenderElement)===null||u===void 0||u.remove(r._elementRenderedHandler),r._elementsToRenderCount--,r._elementsToRenderCount<=0&&r.visibleElementsRendered()},this._elements.forEach(function(o){o.onAfterRenderElement&&(o.onAfterRenderElement.add(r._elementRenderedHandler),r._elementsToRenderCount++)}),this._elementsToRenderCount>0?this._elementsToRenderTimer=setTimeout(function(){r._elementsToRenderCount>0&&r.visibleElementsRendered()},n):this.visibleElementsRendered()}return i.prototype.stopWaitingForElementsRendering=function(){var t=this;this._elementsToRenderTimer&&(clearTimeout(this._elementsToRenderTimer),this._elementsToRenderTimer=void 0),this._elements.forEach(function(e){var n;(n=e.onAfterRenderElement)===null||n===void 0||n.remove(t._elementRenderedHandler)}),this._elementsToRenderCount=0},i.prototype.visibleElementsRendered=function(){var t=this._renderedHandler;this.dispose(),typeof t=="function"&&t()},i.prototype.dispose=function(){this.stopWaitingForElementsRendering(),this._elements=void 0,this._renderedHandler=void 0},i}(),gt=function(){function i(t,e,n,r){e===void 0&&(e=!1),this.owner=t,this.useMarkdown=e,this.name=n,this.values={},this.htmlValues={},this.onStringChanged=new pt,this._localizationName=r,this.onCreating()}return Object.defineProperty(i,"defaultLocale",{get:function(){return I.localization.defaultLocaleName},set:function(t){I.localization.defaultLocaleName=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"localizationName",{get:function(){return this._localizationName},set:function(t){this._localizationName!=t&&(this._localizationName=t,this.strChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"allowLineBreaks",{get:function(){var t;return this._allowLineBreaks===void 0&&(this._allowLineBreaks=!1,this.name&&this.owner instanceof ir&&(this._allowLineBreaks=((t=j.findProperty(this.owner.getType(),this.name))===null||t===void 0?void 0:t.type)=="text")),this._allowLineBreaks},enumerable:!1,configurable:!0}),i.prototype.getIsMultiple=function(){return!1},Object.defineProperty(i.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var t=this.owner.getLocale();if(t||!this.sharedData)return t}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),i.prototype.strChanged=function(){this.searchableText=void 0,!(this.renderedText===void 0&&this.isEmpty&&!this.onGetTextCallback&&!this.localizationName)&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(i.prototype,"text",{get:function(){return this.pureText},set:function(t){this.setLocaleText(this.locale,t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"calculatedText",{get:function(){return this.renderedText=this.calculatedTextValue!==void 0?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),i.prototype.calcText=function(){var t=this.pureText;return t&&this.owner&&this.owner.getProcessedText&&t.indexOf("{")>-1&&(t=this.owner.getProcessedText(t)),this.onGetTextCallback&&(t=this.onGetTextCallback(t)),t},Object.defineProperty(i.prototype,"pureText",{get:function(){var t=this.locale;t||(t=this.defaultLoc);var e=this.getValue(t);if(this.isValueEmpty(e)&&t===this.defaultLoc&&(e=this.getValue(A.defaultLocale)),this.isValueEmpty(e)){var n=this.getRootDialect(t);n&&(e=this.getValue(n))}return this.isValueEmpty(e)&&t!==this.defaultLoc&&(e=this.getValue(this.defaultLoc)),this.isValueEmpty(e)&&this.getLocalizationName()&&(e=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(e=this.onGetLocalizationTextCallback(e))),e||(e=this.defaultValue||""),e},enumerable:!1,configurable:!0}),i.prototype.getRootDialect=function(t){if(!t)return t;var e=t.indexOf("-");return e>-1?t.substring(0,e):""},i.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},i.prototype.getLocalizationStr=function(){var t=this.getLocalizationName();return t?k(t,this.locale):""},Object.defineProperty(i.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.getValuesKeys().length==0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),i.prototype.getLocaleText=function(t){var e=this.getLocaleTextCore(t);return e||""},i.prototype.getLocaleTextCore=function(t){return t||(t=this.defaultLoc),this.getValue(t)},i.prototype.isLocaleTextEqualsWithDefault=function(t,e){var n=this.getLocaleTextCore(t);return n===e?!0:this.isValueEmpty(n)&&this.isValueEmpty(e)},i.prototype.clear=function(){this.setJson(void 0)},i.prototype.clearLocale=function(t){this.setLocaleText(t,void 0)},i.prototype.setLocaleText=function(t,e){if(t=this.getValueLoc(t),t&&e===void 0){var n=this.getValue(t);n!==void 0&&(this.deleteValue(t),this.fireStrChanged(t,n));return}if(!this.storeDefaultText&&this.isLocaleTextEqualsWithDefault(t,e)){if(!this.isValueEmpty(e)||t&&t!==this.defaultLoc)return;var r=A.defaultLocale,o=this.getValue(r);r&&!this.isValueEmpty(o)&&(this.setValue(r,e),this.fireStrChanged(r,o));return}if(!(!I.localization.storeDuplicatedTranslations&&!this.isValueEmpty(e)&&t&&t!=this.defaultLoc&&!this.getValue(t)&&e==this.getLocaleText(this.defaultLoc))){var s=this.curLocale;t||(t=this.defaultLoc);var u=this.onStrChanged&&t===s?this.pureText:void 0;delete this.htmlValues[t],this.isValueEmpty(e)?this.deleteValue(t):typeof e=="string"&&(this.canRemoveLocValue(t,e)?this.setLocaleText(t,null):(this.setValue(t,e),t==this.defaultLoc&&this.deleteValuesEqualsToDefault(e))),this.fireStrChanged(t,u)}},i.prototype.isValueEmpty=function(t){return t==null?!0:this.localizationName?!1:t===""},Object.defineProperty(i.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),i.prototype.canRemoveLocValue=function(t,e){if(I.localization.storeDuplicatedTranslations||t===this.defaultLoc)return!1;var n=this.getRootDialect(t);if(n){var r=this.getLocaleText(n);return r?r==e:this.canRemoveLocValue(n,e)}else return e==this.getLocaleText(this.defaultLoc)},i.prototype.fireStrChanged=function(t,e){if(this.strChanged(),!!this.onStrChanged){var n=this.pureText;(t!==this.curLocale||e!==n)&&this.onStrChanged(e,n)}},i.prototype.hasNonDefaultText=function(){var t=this.getValuesKeys();return t.length==0?!1:t.length>1||t[0]!=this.defaultLoc},i.prototype.getLocales=function(){var t=this.getValuesKeys();return t.length==0?[]:t},i.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var t=this.getValuesKeys();if(t.length==0){if(this.serializeCallBackText){var e=this.calcText();if(e)return e}return null}if(t.length==1&&t[0]==I.localization.defaultLocaleName&&!I.serialization.localizableStringSerializeAsObject)return this.values[t[0]];var n={};for(var r in this.values)n[r]=this.values[r];return n},i.prototype.setJson=function(t,e){if(this.sharedData){this.sharedData.setJson(t,e);return}if(this.values={},this.htmlValues={},t!=null)if(e)typeof t=="string"?this.values[I.defaultLocaleName]=t:(this.values=t,delete this.values.pos);else{if(typeof t=="string")this.setLocaleText(null,t);else for(var n in t)this.setLocaleText(n,t[n]);this.strChanged()}},Object.defineProperty(i.prototype,"renderAs",{get:function(){return!this.owner||typeof this.owner.getRenderer!="function"?i.defaultRenderer:this.owner.getRenderer(this.name)||i.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"renderAsData",{get:function(){return!this.owner||typeof this.owner.getRendererContext!="function"?this:this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),i.prototype.equals=function(t){return this.sharedData?this.sharedData.equals(t):!t||!t.values?!1:h.isTwoValueEquals(this.values,t.values,!1,!0,!1)},i.prototype.setFindText=function(t){if(this.searchText!=t){if(this.searchText=t,!this.searchableText){var e=this.textOrHtml;this.searchableText=e?e.toLowerCase():""}var n=this.searchableText,r=n&&t?n.indexOf(t):void 0;return r<0&&(r=void 0),(r!=null||this.searchIndex!=r)&&(this.searchIndex=r,this.onSearchChanged&&this.onSearchChanged()),this.searchIndex!=null}},i.prototype.onChanged=function(){},i.prototype.onCreating=function(){},i.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var t=this.locale;if(t||(t=this.defaultLoc),this.htmlValues[t]!==void 0)return!!this.htmlValues[t];var e=this.calculatedText;if(!e)return this.setHtmlValue(t,""),!1;if(this.getLocalizationName()&&e===this.getLocalizationStr())return this.setHtmlValue(t,""),!1;var n=this.owner.getMarkdownHtml(e,this.name);return this.setHtmlValue(t,n),!!n},i.prototype.setHtmlValue=function(t,e){this.htmlValues[t]=e},i.prototype.getHtmlValue=function(){var t=this.locale;return t||(t=this.defaultLoc),this.htmlValues[t]},i.prototype.deleteValuesEqualsToDefault=function(t){if(!I.localization.storeDuplicatedTranslations)for(var e=this.getValuesKeys(),n=0;n<e.length;n++)e[n]!=this.defaultLoc&&this.getValue(e[n])==t&&this.deleteValue(e[n])},i.prototype.getValue=function(t){return this.sharedData?this.sharedData.getValue(t):this.values[this.getValueLoc(t)]},i.prototype.setValue=function(t,e){this.sharedData?this.sharedData.setValue(t,e):this.values[this.getValueLoc(t)]=e},i.prototype.deleteValue=function(t){this.sharedData?this.sharedData.deleteValue(t):delete this.values[this.getValueLoc(t)]},i.prototype.getValueLoc=function(t){return this.disableLocalization?I.localization.defaultLocaleName:t},i.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(i.prototype,"defaultLoc",{get:function(){return I.localization.defaultLocaleName},enumerable:!1,configurable:!0}),i.SerializeAsObject=!1,i.defaultRenderer="sv-string-viewer",i.editableRenderer="sv-string-editor",i}(),Hr=function(){function i(t){this.owner=t,this.values={}}return i.prototype.getIsMultiple=function(){return!0},Object.defineProperty(i.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this.getValue("")},set:function(t){this.setValue("",t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join(`
+`):""},set:function(t){this.value=t?t.split(`
+`):[]},enumerable:!1,configurable:!0}),i.prototype.getLocaleText=function(t){var e=this.getValueCore(t,!t||t===this.locale);return!e||!Array.isArray(e)||e.length==0?"":e.join(`
+`)},i.prototype.setLocaleText=function(t,e){var n=e?e.split(`
+`):null;this.setValue(t,n)},i.prototype.getValue=function(t){return this.getValueCore(t)},i.prototype.getValueCore=function(t,e){if(e===void 0&&(e=!0),t=this.getLocale(t),this.values[t])return this.values[t];if(e){var n=I.localization.defaultLocaleName;if(t!==n&&this.values[n])return this.values[n]}return[]},i.prototype.setValue=function(t,e){t=this.getLocale(t);var n=h.createCopy(this.values);!e||e.length==0?delete this.values[t]:this.values[t]=e,this.onValueChanged&&this.onValueChanged(n,this.values)},i.prototype.hasValue=function(t){return t===void 0&&(t=""),!this.isEmpty&&this.getValue(t).length>0},Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.getValuesKeys().length==0},enumerable:!1,configurable:!0}),i.prototype.getLocale=function(t){return t||(t=this.locale,t||I.localization.defaultLocaleName)},i.prototype.getLocales=function(){var t=this.getValuesKeys();return t.length==0?[]:t},i.prototype.getJson=function(){var t=this.getValuesKeys();return t.length==0?null:t.length==1&&t[0]==I.localization.defaultLocaleName&&!I.serialization.localizableStringSerializeAsObject?this.values[t[0]]:h.createCopy(this.values)},i.prototype.setJson=function(t){if(this.values={},!!t)if(Array.isArray(t))this.setValue(null,t);else for(var e in t)this.setValue(e,t[e])},i.prototype.getValuesKeys=function(){return Object.keys(this.values)},i}();function ki(i){return I&&I.confirmActionFunc?I.confirmActionFunc(i):confirm(i)}function Wt(i){var t=function(e){e?i.funcOnYes():i.funcOnNo&&i.funcOnNo()};I&&I.confirmActionAsync&&I.confirmActionAsync(i.message,t,i)||t(ki(i.message))}function Dn(){if(typeof Dn.isIEOrEdge>"u"){var i=navigator.userAgent,t=i.indexOf("MSIE "),e=i.indexOf("Trident/"),n=i.indexOf("Edge/");Dn.isIEOrEdge=n>0||e>0||t>0}return Dn.isIEOrEdge}function sr(i,t){try{for(var e=atob(i.split(",")[1]),n=i.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(e.length),o=new Uint8Array(r),s=0;s<e.length;s++)o[s]=e.charCodeAt(s);var u=new Blob([r],{type:n});navigator&&navigator.msSaveBlob&&navigator.msSaveOrOpenBlob(u,t)}catch{}}function an(){return B.isAvailable()&&B.hasOwn("orientation")}var An=function(i){return!!i&&!!("host"in i&&i.host)},Ln=function(i){var t=I.environment.root;return typeof i=="string"?t.getElementById(i):i};function es(i,t){if(typeof I.environment>"u")return!1;var e=I.environment.root,n=An(e)?e.host.clientHeight:e.documentElement.clientHeight,r=i.getBoundingClientRect(),o=Math.max(n,B.getInnerHeight()),s=-50,u=o+t,d=r.top,y=r.bottom,V=Math.max(s,d),T=Math.min(u,y);return V<=T}function ar(i){var t=I.environment.root;return i?i.scrollHeight>i.clientHeight&&(getComputedStyle(i).overflowY==="scroll"||getComputedStyle(i).overflowY==="auto")||i.scrollWidth>i.clientWidth&&(getComputedStyle(i).overflowX==="scroll"||getComputedStyle(i).overflowX==="auto")?i:ar(i.parentElement):An(t)?t.host:t.documentElement}function lr(i){var t=I.environment;if(t){var e=t.root,n=e.getElementById(i);if(n){var r=ar(n);r&&setTimeout(function(){return r.dispatchEvent(new CustomEvent("scroll"))},10)}}}function Qi(i){var t=B.getLocation();!i||!t||(t.href=Ui(i))}function zr(i){return i?["url(",i,")"].join(""):""}function Hi(i){return typeof i=="string"?/^data:((?:\w+\/(?:(?!;).)+)?)((?:;[^;]+?)*),(.+)$/.test(i):null}var ur={changecamera:"flip-24x24",clear:"clear-24x24",cancel:"cancel-24x24",closecamera:"close-24x24",defaultfile:"file-72x72",choosefile:"folder-24x24",file:"toolbox-file-24x24",left:"chevronleft-16x16",modernbooleancheckchecked:"plus-32x32",modernbooleancheckunchecked:"minus-32x32",more:"more-24x24",navmenu_24x24:"navmenu-24x24",removefile:"error-24x24",takepicture:"camera-32x32",takepicture_24x24:"camera-24x24",v2check:"check-16x16",checked:"check-16x16",v2check_24x24:"check-24x24","back-to-panel_16x16":"restoredown-16x16",clear_16x16:"clear-16x16",close_16x16:"close-16x16",collapsedetail:"collapsedetails-16x16",expanddetail:"expanddetails-16x16","full-screen_16x16":"maximize-16x16",loading:"loading-48x48",minimize_16x16:"minimize-16x16",next_16x16:"chevronright-16x16",previous_16x16:"chevronleft-16x16","no-image":"noimage-48x48","ranking-dash":"rankingundefined-16x16","drag-n-drop":"drag-24x24","ranking-arrows":"reorder-24x24",restore_16x16:"fullsize-16x16",reset:"restore-24x24",search:"search-24x24",average:"smiley-rate5-24x24",excellent:"smiley-rate9-24x24",good:"smiley-rate7-24x24",normal:"smiley-rate6-24x24","not-good":"smiley-rate4-24x24",perfect:"smiley-rate10-24x24",poor:"smiley-rate3-24x24",terrible:"smiley-rate1-24x24","very-good":"smiley-rate8-24x24","very-poor":"smiley-rate2-24x24",add_16x16:"add-16x16",add_24x24:"add-24x24",alert_24x24:"warning-24x24",apply:"apply-24x24","arrow-down":"arrowdown-24x24","arrow-left":"arrowleft-24x24","arrow-left_16x16":"arrowleft-16x16",arrowleft:"arrowleft-16x16","arrow-right":"arrowright-24x24","arrow-right_16x16":"arrowright-16x16",arrowright:"arrowright-16x16","arrow-up":"arrowup-24x24",boolean:"toolbox-boolean-24x24","change-question-type_16x16":"speechbubble-16x16",checkbox:"toolbox-checkbox-24x24","collapse-detail_16x16":"minusbox-16x16","collapse-panel":"collapse-pg-24x24",collapse_16x16:"collapse-16x16","color-picker":"dropper-16x16",comment:"toolbox-longtext-24x24",config:"wrench-24x24",copy:"copy-24x24",default:"toolbox-customquestion-24x24",delete_16x16:"delete-16x16",delete_24x24:"delete-24x24",delete:"delete-24x24","description-hide":"hidehint-16x16",description:"hint-16x16","device-desktop":"desktop-24x24","device-phone":"phone-24x24","device-rotate":"rotate-24x24","device-tablet":"tablet-24x24",download:"download-24x24","drag-area-indicator":"drag-24x24","drag-area-indicator_24x16":"draghorizontal-24x16",v2dragelement_16x16:"draghorizontal-24x16","drop-down-arrow":"chevrondown-24x24","drop-down-arrow_16x16":"chevrondown-16x16",chevron_16x16:"chevrondown-16x16",dropdown:"toolbox-dropdown-24x24",duplicate_16x16:"copy-16x16",edit:"edit-24x24",edit_16x16:"edit-16x16","editing-finish":"finishedit-24x24",error:"error-16x16","expand-detail_16x16":"plusbox-16x16","expand-panel":"expand-pg-24x24",expand_16x16:"expand-16x16",expression:"toolbox-expression-24x24","fast-entry":"textedit-24x24",fix:"fix-24x24",html:"toolbox-html-24x24",image:"toolbox-image-24x24",imagepicker:"toolbox-imagepicker-24x24",import:"import-24x24","invisible-items":"invisible-24x24",language:"language-24x24",load:"import-24x24","logic-collapse":"collapse-24x24","logic-expand":"expand-24x24",logo:"image-48x48",matrix:"toolbox-matrix-24x24",matrixdropdown:"toolbox-multimatrix-24x24",matrixdynamic:"toolbox-dynamicmatrix-24x24",multipletext:"toolbox-multipletext-24x24",panel:"toolbox-panel-24x24",paneldynamic:"toolbox-dynamicpanel-24x24",preview:"preview-24x24",radiogroup:"toolbox-radiogroup-24x24",ranking:"toolbox-ranking-24x24",rating:"toolbox-rating-24x24",redo:"redo-24x24",remove_16x16:"remove-16x16",required:"required-16x16",save:"save-24x24","select-page":"selectpage-24x24",settings:"settings-24x24",settings_16x16:"settings-16x16",signaturepad:"toolbox-signature-24x24","switch-active_16x16":"switchon-16x16","switch-inactive_16x16":"switchoff-16x16",tagbox:"toolbox-tagbox-24x24",text:"toolbox-singleline-24x24",theme:"theme-24x24",toolbox:"toolbox-24x24",undo:"undo-24x24",visible:"visible-24x24",wizard:"wand-24x24",searchclear:"clear-16x16","chevron-16x16":"chevrondown-16x16",chevron:"chevrondown-24x24",progressbuttonv2:"arrowleft-16x16",right:"chevronright-16x16","add-lg":"add-24x24",add:"add-24x24"};function Ur(i){var t=zi(i);return t||cr(i)}function cr(i){var t="icon-",e=i.replace(t,""),n=ur[e]||e;return t+n}function zi(i){var t=I.customIcons[i];return t?cr(t):(i=cr(i),t=I.customIcons[i],t||null)}function Mn(i,t,e,n,r,o){if(r){i!=="auto"&&(r.style.width=(i||t||16)+"px",r.style.height=(i||e||16)+"px");var s=r.childNodes[0],u=Ur(n);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+u);var d=r.getElementsByTagName("title")[0];if(o)d||(d=R.getDocument().createElementNS("http://www.w3.org/2000/svg","title"),r.appendChild(d));else{d&&r.removeChild(d);return}d.textContent=o}}function Ui(i){return i&&(i.toLocaleLowerCase().indexOf("javascript:")>-1?encodeURIComponent(i):i)}function ts(i){return typeof i!="function"?i:i()}function Et(i){if(typeof i=="string")if(isNaN(Number(i))){if(i.includes("px"))return parseFloat(i)}else return Number(i);if(typeof i=="number")return i}function pr(i){if(Et(i)===void 0)return i}var jn="sv-focused--by-key";function Wi(i){var t=i.target;!t||!t.classList||t.classList.remove(jn)}function fr(i,t){if(!(i.target&&i.target.contentEditable==="true")){var e=i.target;if(e){var n=i.which||i.keyCode;if(n===9){e.classList&&!e.classList.contains(jn)&&e.classList.add(jn);return}if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}n===13||n===32?e.click&&e.click():(!t||t.processEsc)&&n===27&&e.blur&&e.blur()}}}function $i(i,t){if(t===void 0&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!(i.target&&i.target.contentEditable==="true")){var e=i.which||i.keyCode,n=[13,32];t.processEsc&&n.push(27),n.indexOf(e)!==-1&&i.preventDefault()}}function dr(i,t){if(i){t||(t=function(n){return R.getComputedStyle(n)});var e=t(i);i.style.height="auto",i.scrollHeight&&(i.style.height=i.scrollHeight+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth)+"px")}}function ns(i){return i.originalEvent||i}function Ji(i){i.preventDefault(),i.stopPropagation()}function ke(i){if(!i)return i;var t=/\s*?([\w-]+)\s*?/g;return i.replace(t,".$1")}function Wr(i){return getComputedStyle?Number.parseFloat(getComputedStyle(i).width):i.offsetWidth}function hr(i){return!!(i.offsetWidth||i.offsetHeight||i.getClientRects().length)}function rs(i){for(var t,e=0;e<i.children.length;e++)!t&&getComputedStyle(i.children[e]).display!=="none"&&(t=i.children[e]);return t}function Gi(i,t){if(t===void 0&&(t=!0),B.isAvailable()&&R.isAvailable()&&i.childNodes.length>0){var e=B.getSelection();if(e.rangeCount==0)return;var n=e.getRangeAt(0);n.setStart(n.endContainer,n.endOffset),n.setEndAfter(i.lastChild),e.removeAllRanges(),e.addRange(n);var r=e.toString(),o=i.innerText;r=r.replace(/\r/g,""),t&&(r=r.replace(/\n/g,""),o=o.replace(/\n/g,""));var s=r.length;for(i.innerText=o,n=R.getDocument().createRange(),n.setStart(i.firstChild,0),n.setEnd(i.firstChild,0),e.removeAllRanges(),e.addRange(n);e.toString().length<o.length-s;){var u=e.toString().length;if(e.modify("extend","forward","character"),e.toString().length==u)break}n=e.getRangeAt(0),n.setStart(n.endContainer,n.endOffset)}}function ln(i,t){if(!(!t||!i)&&typeof t=="object")for(var e in i){var n=i[e];!Array.isArray(n)&&n&&typeof n=="object"?((!t[e]||typeof t[e]!="object")&&(t[e]={}),ln(n,t[e])):t[e]=n}}function Nn(i,t){var e={};ln(t.list,e),ln(i.list,e),i.list=e}(function(){function i(){this._result=""}return i.prototype.log=function(t){this._result+="->"+t},Object.defineProperty(i.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),i})();function is(i,t,e){var n=new gt(void 0),r=I.showDialog({componentName:"sv-string-viewer",data:{locStr:n,locString:n,model:n},onApply:function(){return t(!0),!0},onCancel:function(){return t(!1),!1},title:i||e.message,displayMode:"popup",isFocusedContent:!1,cssClass:e.cssClass||"sv-popup--confirm"},e.rootElement),o=r.footerToolbar,s=o.getActionById("apply"),u=o.getActionById("cancel");return u.title=k("cancel",e.locale),u.innerCss="sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small",s.title=e.applyTitle||k("ok",e.locale),s.innerCss="sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger",Zi(r),!0}function Zi(i){i.width="min-content"}function Ki(i,t){B.isFileReaderAvailable()&&(i.value="",i.onchange=function(e){if(B.isFileReaderAvailable()&&!(!i||!i.files||i.files.length<1)){for(var n=[],r=0;r<i.files.length;r++)n.push(i.files[r]);t(n)}},i.click())}function Yi(i,t,e){var n=new Map,r=new Map,o=new Map,s=new Map;i.forEach(function(Y){var J=e(Y);if(!n.has(J))n.set(e(Y),Y);else throw new Error("keys must be unique")}),t.forEach(function(Y){var J=e(Y);if(!r.has(J))r.set(J,Y);else throw new Error("keys must be unique")});var u=[],d=[];r.forEach(function(Y,J){n.has(J)?o.set(J,o.size):u.push(Y)}),n.forEach(function(Y,J){r.has(J)?s.set(J,s.size):d.push(Y)});var y=[];o.forEach(function(Y,J){var ue=s.get(J),Me=r.get(J);ue!==Y&&y.push({item:Me,movedForward:ue<Y})});var V=new Array(i.length),T=0,N=Array.from(o.keys());i.forEach(function(Y,J){o.has(e(Y))?(V[J]=r.get(N[T]),T++):V[J]=Y});var U=new Map,W=[];V.forEach(function(Y){var J=e(Y);r.has(J)?W.length>0&&(U.set(J,W),W=[]):W.push(Y)});var X=new Array;return r.forEach(function(Y,J){U.has(J)&&U.get(J).forEach(function(ue){X.push(ue)}),X.push(Y)}),W.forEach(function(Y){X.push(Y)}),{reorderedItems:y,deletedItems:d,addedItems:u,mergedItems:X}}function os(i){if(R.isAvailable()){var t=R.getComputedStyle(i),e=t.paddingTop,n=t.paddingBottom,r=t.borderTopWidth,o=t.borderBottomWidth,s=t.marginTop,u=t.marginBottom,d=t.boxSizing,y=i.offsetHeight+"px";if(d=="content-box"){var V=i.offsetHeight;[o,r,n,e].forEach(function(T){V-=parseFloat(T)}),y=V+"px"}return{paddingTop:e,paddingBottom:n,borderTopWidth:r,borderBottomWidth:o,marginTop:s,marginBottom:u,heightFrom:"0px",heightTo:y}}else return}function un(i,t,e){var n;e===void 0&&(e="--animation-"),i.__sv_created_properties=(n=i.__sv_created_properties)!==null&&n!==void 0?n:[],Object.keys(t).forEach(function(r){var o=""+e+r.split(/\.?(?=[A-Z])/).join("-").toLowerCase();i.style.setProperty(o,t[r]),i.__sv_created_properties.push(o)})}function Vt(i){un(i,os(i))}function Xe(i){Array.isArray(i.__sv_created_properties)&&(i.__sv_created_properties.forEach(function(t){i.style.removeProperty(t)}),delete i.__sv_created_properties)}function Xi(i){return Math.floor(i*100)/100}var qn=typeof globalThis<"u"?globalThis.document:(void 0).document,ss=qn?{root:qn,_rootElement:R.getBody(),get rootElement(){var i;return(i=this._rootElement)!==null&&i!==void 0?i:R.getBody()},set rootElement(i){this._rootElement=i},_popupMountContainer:R.getBody(),get popupMountContainer(){var i;return(i=this._popupMountContainer)!==null&&i!==void 0?i:R.getBody()},set popupMountContainer(i){this._popupMountContainer=i},svgMountContainer:qn.head,stylesSheetsMountContainer:qn.head}:void 0,eo={file:{minWidth:"240px"},comment:{minWidth:"200px"}},I={version:"",designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(i){this.designMode.showEmptyDescriptions=i},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(i){this.designMode.showEmptyTitles=i},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:"default"},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(i){this.localization.useLocalTimeZone=i},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(i){this.localization.storeDuplicatedTranslations=i},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(i){this.localization.defaultLocaleName=i},web:{onBeforeRequestChoices:function(i,t){},encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey"},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(i){this.web.encodeUrlParams=i},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(i){this.web.cacheLoadedChoices=i},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(i){this.web.cacheLoadedChoices=i},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(i){this.web.disableQuestionWhileLoadingChoices=i},get surveyServiceUrl(){return this.web.surveyServiceUrl},set surveyServiceUrl(i){this.web.surveyServiceUrl=i},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(i){this.triggers.executeCompleteOnValueChanged=i},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(i){this.triggers.changeNavigationButtonsOnComplete=i},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(i){this.triggers.executeSkipOnValueChanged=i},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1,matrixDropdownColumnSerializeTitle:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(i){this.serialization.itemValueSerializeAsObject=i},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(i){this.serialization.itemValueSerializeDisplayText=i},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject},set serializeLocalizableStringAsObject(i){this.serialization.localizableStringSerializeAsObject=i},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(i){this.lazyRender.enabled=i},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(i){this.lazyRender.firstBatchSize=i},matrix:{defaultCellType:"dropdown",defaultRowName:"default",totalsSuffix:"-total",maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:eo,rateSize:"small"},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(i){this.matrix.defaultRowName=i},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(i){this.matrix.defaultCellType=i},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(i){this.matrix.totalsSuffix=i},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(i){this.matrix.maxRowCount=i},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(i){this.matrix.maxRowCountInCondition=i},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(i){this.matrix.renderRemoveAsIcon=i},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(i){this.panel.maxPanelCountInCondition=i},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(i){this.panel.maxPanelCount=i},readOnly:{enableValidation:!1,commentRenderMode:"textarea",textRenderMode:"input"},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(i){this.readOnly.commentRenderMode=i},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(i){this.readOnly.textRenderMode=i},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(i){this.numbering.includeQuestionsWithHiddenTitle=i},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(i){this.numbering.includeQuestionsWithHiddenNumber=i},enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:function(i,t){return i}},expressionDisableConversionChar:"#",get commentPrefix(){return I.commentSuffix},set commentPrefix(i){I.commentSuffix=i},commentSuffix:"-Comment",itemValueSeparator:"|",ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,dropdownSearchDelay:500,confirmActionFunc:function(i){return confirm(i)},confirmActionAsync:function(i,t,e){return is(i,t,e)},minWidth:"300px",maxWidth:"100%",maxConditionRunCountOnValueChanged:10,notifications:{lifetime:2e3},autoAdvanceDelay:300,showItemsInOrder:"default",noneItemValue:"none",refuseItemValue:"refused",dontKnowItemValue:"dontknow",specialChoicesOrder:{selectAllItem:[-1],noneItem:[1],refuseItem:[2],dontKnowItem:[3],otherItem:[4]},choicesSeparator:", ",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,showDialog:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},rankingDragHandleArea:"entireItem",environment:ss,showMaxLengthIndicator:!0,animationEnabled:!0,titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},legacyProgressBarView:!1,maskSettings:{patternPlaceholderChar:"_",patternEscapeChar:"\\",patternDefinitions:{9:/[0-9]/,a:/[a-zA-Z]/,"#":/[a-zA-Z0-9]/}},storeUtcDates:!1,onDateCreated:function(i,t,e){return i},parseNumber:function(i,t){return t}},et=function(){function i(t,e){t===void 0&&(t=null),e===void 0&&(e=null),this.text=t,this.errorOwner=e,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return i.prototype.equals=function(t){return!t||!t.getErrorType||this.getErrorType()!==t.getErrorType()?!1:this.text===t.text&&this.visible===t.visible},Object.defineProperty(i.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new gt(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),i.prototype.getText=function(){var t=this.text;return t||(t=this.getDefaultText()),this.errorOwner&&(t=this.errorOwner.getErrorCustomText(t,this)),t},i.prototype.getErrorType=function(){return"base"},i.prototype.getDefaultText=function(){return""},i.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},i.prototype.getLocalizationString=function(t){return k(t,this.getLocale())},i.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},i}(),it=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$r=function(i){it(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},t}(et),to=function(i){it(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},t}(et),Jr=function(i){it(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},t}(et),Gr=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,null,n)||this;return r.maxSize=e,r.locText.text=r.getText(),r}return t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return k("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){var e=["Bytes","KB","MB","GB","TB"],n=[0,0,2,3,3];if(this.maxSize===0)return"0 Byte";var r=Math.floor(Math.log(this.maxSize)/Math.log(1024)),o=this.maxSize/Math.pow(1024,r);return o.toFixed(n[r])+" "+e[r]},t}(et),as=function(i){it(t,i);function t(e,n,r){r===void 0&&(r=null);var o=i.call(this,null,r)||this;return o.status=e,o.response=n,o}return t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){var e=this.getLocalizationString("urlRequestError");return e?e.format(this.status,this.response):""},t}(et),ls=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},t}(et),no=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},t}(et),_n=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},t}(et),ro=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},t}(et),us=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"eachrowuniqueeerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("eachRowUniqueError")},t}(et),io=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,null,n)||this;return r.minRowCount=e,r}return t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return k("minRowCountError").format(this.minRowCount)},t}(et),oo=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},t}(et),ot=function(i){it(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"custom"},t}(et),$t=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ft=function(){function i(t,e){e===void 0&&(e=null),this.value=t,this.error=e}return i}(),Jt=function(i){$t(t,i);function t(){var e=i.call(this)||this;return e.createLocalizableString("text",e,!0),e}return Object.defineProperty(t.prototype,"isValidator",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return this.errorOwner&&this.errorOwner.getSurvey?this.errorOwner.getSurvey():null},Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,n,r,o){return null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.errorOwner?this.errorOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.errorOwner?this.errorOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){var n=this,r=new ot(this.getErrorText(e),this.errorOwner);return r.onUpdateErrorTextCallback=function(o){return o.text=n.getErrorText(e)},r},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(fe),Zr=function(){function i(){}return i.prototype.run=function(t){var e=this,n=[],r=null,o=null;this.prepareAsyncValidators();for(var s=[],u=t.getValidators(),d=0;d<u.length;d++){var y=u[d];!r&&y.isValidateAllValues&&(r=t.getDataFilteredValues(),o=t.getDataFilteredProperties()),y.isAsync&&(this.asyncValidators.push(y),y.onAsyncCompleted=function(T){if(T&&T.error&&s.push(T.error),!!e.onAsyncCompleted){for(var N=0;N<e.asyncValidators.length;N++)if(e.asyncValidators[N].isRunning)return;e.onAsyncCompleted(s)}})}u=t.getValidators();for(var d=0;d<u.length;d++){var y=u[d],V=y.validate(t.validatedValue,t.getValidatorTitle(),r,o);V&&V.error&&n.push(V.error)}return this.asyncValidators.length==0&&this.onAsyncCompleted&&this.onAsyncCompleted([]),n},i.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var t=0;t<this.asyncValidators.length;t++)this.asyncValidators[t].onAsyncCompleted=null;this.asyncValidators=[]},i}(),so=function(i){$t(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.minValue=e,r.maxValue=n,r}return t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),this.isValueEmpty(e))return null;if(!h.isNumber(e))return new ft(null,new Jr(this.text,this.errorOwner));var s=new ft(h.getNumber(e));return this.minValue!==null&&this.minValue>s.value?(s.error=this.createCustomError(n),s):this.maxValue!==null&&this.maxValue<s.value?(s.error=this.createCustomError(n),s):typeof e=="number"?null:s},t.prototype.getDefaultErrorText=function(e){var n=e||this.getLocalizationString("value");return this.minValue!==null&&this.maxValue!==null?this.getLocalizationFormatString("numericMinMax",n,this.minValue,this.maxValue):this.minValue!==null?this.getLocalizationFormatString("numericMin",n,this.minValue):this.getLocalizationFormatString("numericMax",n,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!1,configurable:!0}),t}(Jt),Kr=function(i){$t(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),this.isValueEmpty(e))return null;if(!this.allowDigits){var s=/\d+$/;if(s.test(e))return new ft(null,this.createCustomError("textNoDigitsAllow"))}return this.minLength>0&&e.length<this.minLength?new ft(null,this.createCustomError(n)):this.maxLength>0&&e.length>this.maxLength?new ft(null,this.createCustomError(n)):null},t.prototype.getDefaultErrorText=function(e){return e==="textNoDigitsAllow"?this.getLocalizationString(e):this.minLength>0&&this.maxLength>0?this.getLocalizationFormatString("textMinMaxLength",this.minLength,this.maxLength):this.minLength>0?this.getLocalizationFormatString("textMinLength",this.minLength):this.getLocalizationFormatString("textMaxLength",this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits")},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!1,configurable:!0}),t}(Jt),ao=function(i){$t(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.minCount=e,r.maxCount=n,r}return t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,n,r,o){if(e==null||e.constructor!=Array)return null;var s=e.length;return s==0?null:this.minCount&&s<this.minCount?new ft(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&s>this.maxCount?new ft(null,this.createCustomError(this.getLocalizationFormatString("maxSelectError",this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!1,configurable:!0}),t}(Jt),Yr=function(i){$t(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.regex=e,n}return t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),!this.regex||this.isValueEmpty(e))return null;var s=this.createRegExp();if(Array.isArray(e))for(var u=0;u<e.length;u++){var d=this.hasError(s,e[u],n);if(d)return d}return this.hasError(s,e,n)},t.prototype.hasError=function(e,n,r){return e.test(n)?null:new ft(n,this.createCustomError(r))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"caseInsensitive",{get:function(){return this.getPropertyValue("caseInsensitive")},set:function(e){this.setPropertyValue("caseInsensitive",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"insensitive",{get:function(){return this.caseInsensitive},set:function(e){this.caseInsensitive=e},enumerable:!1,configurable:!0}),t.prototype.createRegExp=function(){return new RegExp(this.regex,this.caseInsensitive?"i":"")},t}(Jt),Xr=function(i){$t(t,i);function t(){var e=i.call(this)||this;return e.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,e}return t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,n,r,o){return n===void 0&&(n=null),!e||this.re.test(e)?null:new ft(e,this.createCustomError(n))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(Jt),ei=function(i){$t(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.conditionRunner=null,n.isRunningValue=!1,n.expression=e,n}return t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return this.ensureConditionRunner(!1)?this.conditionRunner.isAsync:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,n,r,o){var s=this;if(n===void 0&&(n=null),r===void 0&&(r=null),o===void 0&&(o=null),!this.expression)return null;this.conditionRunner&&(this.conditionRunner.onRunComplete=null),this.ensureConditionRunner(!0),this.conditionRunner.onRunComplete=function(d){s.isRunningValue=!1,s.onAsyncCompleted&&s.onAsyncCompleted(s.generateError(d,e,n))},this.isRunningValue=!0;var u=this.conditionRunner.run(r,o);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(u,e,n))},t.prototype.generateError=function(e,n,r){return e?null:new ft(n,this.createCustomError(r))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationFormatString("invalidExpression",this.expression)},t.prototype.ensureConditionRunner=function(e){return this.expression?(e||!this.conditionRunner?this.conditionRunner=new Ue(this.expression):this.conditionRunner.expression=this.expression,!0):!1},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(Jt);j.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),j.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new so},"surveyvalidator"),j.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],function(){return new Kr},"surveyvalidator"),j.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new ao},"surveyvalidator"),j.addClass("regexvalidator",["regex",{name:"caseInsensitive:boolean",alternativeName:"insensitive"}],function(){return new Yr},"surveyvalidator"),j.addClass("emailvalidator",[],function(){return new Xr},"surveyvalidator"),j.addClass("expressionvalidator",["expression:condition"],function(){return new ei},"surveyvalidator");var lo=function(){function i(t,e){this.name=t,this.widgetJson=e,this.htmlTemplate=e.htmlTemplate?e.htmlTemplate:""}return i.prototype.afterRender=function(t,e){var n=this;this.widgetJson.afterRender&&(t.localeChangedCallback=function(){n.widgetJson.willUnmount&&n.widgetJson.willUnmount(t,e),n.widgetJson.afterRender(t,e)},this.widgetJson.afterRender(t,e))},i.prototype.willUnmount=function(t,e){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(t,e)},i.prototype.getDisplayValue=function(t,e){return e===void 0&&(e=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(t,e):null},i.prototype.validate=function(t){if(this.widgetJson.validate)return this.widgetJson.validate(t)},i.prototype.isFit=function(t){return this.isLibraryLoaded()&&this.widgetJson.isFit?this.widgetJson.isFit(t):!1},Object.defineProperty(i.prototype,"canShowInToolbox",{get:function(){return this.widgetJson.showInToolbox===!1||Bn.Instance.getActivatedBy(this.name)!="customtype"?!1:!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showInToolbox",{get:function(){return this.widgetJson.showInToolbox!==!1},set:function(t){this.widgetJson.showInToolbox=t},enumerable:!1,configurable:!0}),i.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},i.prototype.activatedByChanged=function(t){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(t)},i.prototype.isLibraryLoaded=function(){return this.widgetJson.widgetIsLoaded?this.widgetJson.widgetIsLoaded()==!0:!0},Object.defineProperty(i.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),i}(),Bn=function(){function i(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new Vn}return Object.defineProperty(i.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),i.prototype.add=function(t,e){e===void 0&&(e="property"),this.addCustomWidget(t,e)},i.prototype.addCustomWidget=function(t,e){e===void 0&&(e="property");var n=t.name;n||(n="widget_"+this.widgets.length+1);var r=new lo(n,t);return this.widgetsValues.push(r),r.init(),this.widgetsActivatedBy[n]=e,r.activatedByChanged(e),this.onCustomWidgetAdded.fire(r,null),r},i.prototype.getActivatedBy=function(t){var e=this.widgetsActivatedBy[t];return e||"property"},i.prototype.setActivatedBy=function(t,e){if(!(!t||!e)){var n=this.getCustomWidgetByName(t);n&&(this.widgetsActivatedBy[t]=e,n.activatedByChanged(e))}},i.prototype.clear=function(){this.widgetsValues=[]},i.prototype.getCustomWidgetByName=function(t){for(var e=0;e<this.widgets.length;e++)if(this.widgets[e].name==t)return this.widgets[e];return null},i.prototype.getCustomWidget=function(t){for(var e=0;e<this.widgetsValues.length;e++)if(this.widgetsValues[e].isFit(t))return this.widgetsValues[e];return null},i.Instance=new i,i}(),uo=function(){function i(){this.renderersHash={},this.defaultHash={}}return i.prototype.unregisterRenderer=function(t,e){delete this.renderersHash[t][e],this.defaultHash[t]===e&&delete this.defaultHash[t]},i.prototype.registerRenderer=function(t,e,n,r){r===void 0&&(r=!1),this.renderersHash[t]||(this.renderersHash[t]={}),this.renderersHash[t][e]=n,r&&(this.defaultHash[t]=e)},i.prototype.getRenderer=function(t,e){var n=this.renderersHash[t];if(n){if(e&&n[e])return n[e];var r=this.defaultHash[t];if(r&&n[r])return n[r]}return"default"},i.prototype.getRendererByQuestion=function(t){return this.getRenderer(t.getType(),t.renderAs)},i.prototype.clear=function(){this.renderersHash={}},i.Instance=new i,i}(),Fn=function(){function i(t){var e=this;this.options=t,this.onPropertyChangedCallback=function(){e.element&&(e.element.value=e.getTextValue(),e.updateElement())},this.question.registerFunctionOnPropertyValueChanged(this.options.propertyName,this.onPropertyChangedCallback,"__textarea")}return i.prototype.updateElement=function(){var t=this;this.element&&this.autoGrow&&setTimeout(function(){return dr(t.element)},1)},i.prototype.setElement=function(t){t&&(this.element=t,this.updateElement())},i.prototype.resetElement=function(){this.element=void 0},i.prototype.getTextValue=function(){return this.options.getTextValue&&this.options.getTextValue()||""},i.prototype.onTextAreaChange=function(t){this.options.onTextAreaChange&&this.options.onTextAreaChange(t)},i.prototype.onTextAreaInput=function(t){this.options.onTextAreaInput&&this.options.onTextAreaInput(t),this.element&&this.autoGrow&&dr(this.element)},i.prototype.onTextAreaKeyDown=function(t){this.options.onTextAreaKeyDown&&this.options.onTextAreaKeyDown(t)},i.prototype.onTextAreaBlur=function(t){this.onTextAreaChange(t),this.options.onTextAreaBlur&&this.options.onTextAreaBlur(t)},i.prototype.onTextAreaFocus=function(t){this.options.onTextAreaFocus&&this.options.onTextAreaFocus(t)},Object.defineProperty(i.prototype,"question",{get:function(){return this.options.question},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this.options.id()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"placeholder",{get:function(){return this.options.placeholder()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"className",{get:function(){return this.options.className()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"maxLength",{get:function(){if(this.options.maxLength)return this.options.maxLength()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"autoGrow",{get:function(){if(this.options.autoGrow)return this.options.autoGrow()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rows",{get:function(){if(this.options.rows)return this.options.rows()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cols",{get:function(){if(this.options.cols)return this.options.cols()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDisabledAttr",{get:function(){return this.options.isDisabledAttr()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isReadOnlyAttr",{get:function(){if(this.options.isReadOnlyAttr)return this.options.isReadOnlyAttr()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaRequired",{get:function(){if(this.options.ariaRequired)return this.options.ariaRequired()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaLabel",{get:function(){if(this.options.ariaLabel)return this.options.ariaLabel()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaInvalid",{get:function(){if(this.options.ariaInvalid)return this.options.ariaInvalid()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaLabelledBy",{get:function(){if(this.options.ariaLabelledBy)return this.options.ariaLabelledBy()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaDescribedBy",{get:function(){if(this.options.ariaDescribedBy)return this.options.ariaDescribedBy()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaErrormessage",{get:function(){if(this.options.ariaErrormessage)return this.options.ariaErrormessage()},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.question&&this.question.unRegisterFunctionOnPropertyValueChanged(this.options.propertyName,"__textarea"),this.resetElement()},i}(),cs=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Gt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ti=function(){function i(t,e,n){this.name=t,this.canRun=e,this.doComplete=n,this.runSecondCheck=function(r){return!1}}return i}(),Be=function(i){cs(t,i);function t(e){var n=i.call(this,e)||this;n.customWidgetData={isNeedRender:!0},n.hasCssErrorCallback=function(){return!1},n.isReadyValue=!0,n.dependedQuestions=[],n.onReadyChanged=n.addEvent(),n.triggersInfo=[],n.isRunningValidatorsValue=!1,n.isValueChangedInSurvey=!1,n.allowNotifyValueChanged=!0,n.id=t.getQuestionId(),n.onCreating(),n.createNewArray("validators",function(o){o.errorOwner=n}),n.addExpressionProperty("visibleIf",function(o,s){n.visible=s===!0}),n.addExpressionProperty("enableIf",function(o,s){n.readOnly=s===!1}),n.addExpressionProperty("requiredIf",function(o,s){n.isRequired=s===!0}),n.createLocalizableString("commentText",n,!0,"otherItemText"),n.createLocalizableString("requiredErrorText",n),n.addTriggerInfo("resetValueIf",function(){return!n.isEmpty()},function(){n.startSetValueOnExpression(),n.clearValue(),n.updateValueWithDefaults(),n.finishSetValueOnExpression()});var r=n.addTriggerInfo("setValueIf",function(){return!0},function(){return n.runSetValueExpression()});return r.runSecondCheck=function(o){return n.checkExpressionIf(o)},n.registerPropertyChangedHandlers(["width"],function(){n.updateQuestionCss(),n.parent&&n.parent.elementWidthChanged(n)}),n.registerPropertyChangedHandlers(["isRequired"],function(){!n.isRequired&&n.errors.length>0&&n.validate(),n.locTitle.strChanged(),n.clearCssClasses()}),n.registerPropertyChangedHandlers(["indent","rightIndent"],function(){n.resetIndents()}),n.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],function(){n.initCommentFromSurvey()}),n.registerFunctionOnPropertiesValueChanged(["no","readOnly","hasVisibleErrors","containsErrors"],function(){n.updateQuestionCss()}),n.registerPropertyChangedHandlers(["_isMobile"],function(){n.onMobileChanged()}),n.registerPropertyChangedHandlers(["colSpan"],function(){var o;(o=n.parent)===null||o===void 0||o.updateColumns()}),n}return t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&I.readOnly.commentRenderMode==="div"},t.prototype.allowMobileInDesignMode=function(){return!1},t.prototype.updateIsMobileFromSurvey=function(){this.setIsMobile(this.survey._isMobile)},t.prototype.setIsMobile=function(e){var n=e&&(this.allowMobileInDesignMode()||!this.isDesignMode);this.isMobile=n},t.prototype.getIsMobile=function(){return this._isMobile},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this.getIsMobile()},set:function(e){this._isMobile=e},enumerable:!1,configurable:!0}),t.prototype.themeChanged=function(e){},t.prototype.getDefaultTitle=function(){return this.name},t.prototype.createLocTitleProperty=function(){var e=this,n=i.prototype.createLocTitleProperty.call(this);return n.storeDefaultText=!0,n.onGetTextCallback=function(r){return r||(r=e.getDefaultTitle()),e.survey?e.survey.getUpdatedQuestionTitle(e,r):r},this.locProcessedTitle=new gt(this,!0),this.locProcessedTitle.sharedData=n,n},Object.defineProperty(t.prototype,"commentTextAreaModel",{get:function(){return this.commentTextAreaModelValue||(this.commentTextAreaModelValue=new Fn(this.getCommentTextAreaOptions())),this.commentTextAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getCommentTextAreaOptions=function(){var e=this,n={question:this,id:function(){return e.commentId},propertyName:"comment",className:function(){return e.cssClasses.comment},placeholder:function(){return e.renderedCommentPlaceholder},isDisabledAttr:function(){return e.isInputReadOnly||!1},rows:function(){return e.commentAreaRows},autoGrow:function(){return e.autoGrowComment},maxLength:function(){return e.getOthersMaxLength()},ariaRequired:function(){return e.a11y_input_ariaRequired},ariaLabel:function(){return e.a11y_input_ariaLabel},getTextValue:function(){return e.comment},onTextAreaChange:function(r){e.onCommentChange(r)},onTextAreaInput:function(r){e.onCommentInput(r)}};return n},t.prototype.getSurvey=function(e){return e===void 0&&(e=!1),e?this.parent?this.parent.getSurvey(e):null:this.onGetSurvey?this.onGetSurvey():i.prototype.getSurvey.call(this)},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var n=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(n)},enumerable:!1,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.locTitle.strChanged(),this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.onAsyncRunningChanged=function(){this.updateIsReady()},t.prototype.updateIsReady=function(){var e=this.getIsQuestionReady();if(e){for(var n=this.getIsReadyDependsOn(),r=0;r<n.length;r++)if(!n[r].getIsQuestionReady()){e=!1;break}}this.setIsReady(e)},t.prototype.getIsQuestionReady=function(){return!this.isAsyncExpressionRunning&&this.getAreNestedQuestionsReady()},t.prototype.getAreNestedQuestionsReady=function(){var e=this.getIsReadyNestedQuestions();if(!Array.isArray(e))return!0;for(var n=0;n<e.length;n++)if(!e[n].isReady)return!1;return!0},t.prototype.getIsReadyNestedQuestions=function(){return this.getNestedQuestions()},t.prototype.setIsReady=function(e){var n=this.isReadyValue;this.isReadyValue=e,n!=e&&(this.getIsReadyDependends().forEach(function(r){return r.updateIsReady()}),this.onReadyChanged.fire(this,{question:this,isReady:e,oldIsReady:n}))},t.prototype.getIsReadyDependsOn=function(){return this.getIsReadyDependendCore(!0)},t.prototype.getIsReadyDependends=function(){return this.getIsReadyDependendCore(!1)},t.prototype.getIsReadyDependendCore=function(e){var n=this;if(!this.survey)return[];var r=this.survey.questionsByValueName(this.getValueName()),o=new Array;return r.forEach(function(s){s!==n&&o.push(s)}),e||(this.parentQuestion&&o.push(this.parentQuestion),this.dependedQuestions.length>0&&this.dependedQuestions.forEach(function(s){return o.push(s)})),o},t.prototype.choicesLoaded=function(){},Object.defineProperty(t.prototype,"page",{get:function(){return this.parentQuestion?this.parentQuestion.page:this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return null},t.prototype.delete=function(e){e===void 0&&(e=!0),this.removeFromParent(),e?this.dispose():this.resetDependedQuestions()},t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.addDependedQuestion=function(e){!e||this.dependedQuestions.indexOf(e)>-1||this.dependedQuestions.push(e)},t.prototype.removeDependedQuestion=function(e){if(e){var n=this.dependedQuestions.indexOf(e);n>-1&&this.dependedQuestions.splice(n,1)}},t.prototype.updateDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].updateDependedQuestion()},t.prototype.updateDependedQuestion=function(){},t.prototype.resetDependedQuestion=function(){},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return this.getLayoutType()==="flow"},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return e!=="flow"},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.notifySurveyVisibilityChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){this.updateIsVisibleProp(),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},t.prototype.notifyStateChanged=function(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed&&this.onHidingContent()},t.prototype.updateElementVisibility=function(){this.updateIsVisibleProp()},t.prototype.updateIsVisibleProp=function(){var e=this.getPropertyValue("isVisible"),n=this.isVisible;e!==n&&(this.setPropertyValue("isVisible",n),n||this.onHidingContent()),n!==this.visible&&this.areInvisibleElementsShowing&&this.updateQuestionCss(!0)},Object.defineProperty(t.prototype,"useDisplayValuesInDynamicTexts",{get:function(){return this.getPropertyValue("useDisplayValuesInDynamicTexts")},set:function(e){this.setPropertyValue("useDisplayValuesInDynamicTexts",e)},enumerable:!1,configurable:!0}),t.prototype.getUseDisplayValuesInDynamicTexts=function(){return this.useDisplayValuesInDynamicTexts},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty()?!1:this.areInvisibleElementsShowing?!0:this.isVisibleCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisibleInSurvey",{get:function(){return this.isVisible&&this.isParentVisible},enumerable:!1,configurable:!0}),t.prototype.isVisibleCore=function(){return this.visible},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){},Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber")},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.moveTo=function(e,n){return n===void 0&&(n=null),this.moveToBase(this.parent,e,n)},t.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:this.isEmpty()?0:1,requiredQuestionCount:this.isRequired?1:0,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:i.prototype.getProgressInfo.call(this)},t.prototype.ensureSetValueExpressionRunner=function(){var e=this;this.setValueExpressionRunner?this.setValueExpressionRunner.expression=this.setValueExpression:(this.setValueExpressionRunner=new jt(this.setValueExpression),this.setValueExpressionRunner.onRunComplete=function(n){e.runExpressionSetValue(n)})},t.prototype.runSetValueExpression=function(){this.setValueExpression?(this.ensureSetValueExpressionRunner(),this.setValueExpressionRunner.run(this.getDataFilteredValues(),this.getDataFilteredProperties())):this.clearValue()},t.prototype.checkExpressionIf=function(e){return this.ensureSetValueExpressionRunner(),this.setValueExpressionRunner?this.canExecuteTriggerByKeys(e,this.setValueExpressionRunner):!1},t.prototype.addTriggerInfo=function(e,n,r){var o=new ti(e,n,r);return this.triggersInfo.push(o),o},t.prototype.runTriggerInfo=function(e,n){var r=this[e.name];if(!r||e.isRunning||!e.canRun()){e.runSecondCheck(n)&&e.doComplete();return}e.runner?e.runner.expression=r:(e.runner=new jt(r),e.runner.onRunComplete=function(o){o===!0&&e.doComplete(),e.isRunning=!1}),!(!this.canExecuteTriggerByKeys(n,e.runner)&&!e.runSecondCheck(n))&&(e.isRunning=!0,e.runner.run(this.getDataFilteredValues(),this.getDataFilteredProperties()))},t.prototype.canExecuteTriggerByKeys=function(e,n){var r=n.getVariables();return(!r||r.length===0)&&n.hasFunction()?!0:new Re().isAnyKeyChanged(e,r)},t.prototype.runTriggers=function(e,n,r){var o=this;this.isSettingQuestionValue||this.parentQuestion&&this.parentQuestion.getValueName()===e||(r||(r={},r[e]=n),this.triggersInfo.forEach(function(s){o.runTriggerInfo(s,r)}))},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e),this.survey&&(this.survey.questionCreated(this),n!==!0&&this.runConditions(),this.visible||this.updateIsVisibleProp(),this.updateIsMobileFromSurvey())},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.parent!==e&&(this.removeFromParent(),this.setPropertyValue("parent",e),e&&this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.getTitleLocation()!=="hidden"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var n=this.titleLocation=="hidden"||e=="hidden";this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),n&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.getIsTitleRenderedAsString=function(){return this.titleLocation==="hidden"},t.prototype.notifySurveyOnChildrenVisibilityChanged=function(){return!1},t.prototype.notifySurveyVisibilityChanged=function(){if(!(!this.survey||this.isLoadingFromJson)){this.survey.questionVisibilityChanged(this,this.isVisible,!this.parentQuestion||this.parentQuestion.notifySurveyOnChildrenVisibilityChanged());var e=this.isClearValueOnHidden;this.visible||this.clearValueOnHidding(e),e&&this.isVisibleInSurvey&&this.updateValueWithDefaults()}},t.prototype.clearValueOnHidding=function(e){e&&this.clearValueIfInvisible()},Object.defineProperty(t.prototype,"titleWidth",{get:function(){if(this.parent&&this.getTitleLocation()==="left"){var e=this.parent.getColumsForElement(this),n=e.length;if(n!==0&&e[0].questionTitleWidth)return e[0].questionTitleWidth;var r=this.getPercentQuestionTitleWidth();if(!r&&this.parent){var o=this.parent.getQuestionTitleWidth();return o&&!isNaN(o)&&(o=o+"px"),o}return r/(n||1)+"%"}},enumerable:!1,configurable:!0}),t.prototype.getPercentQuestionTitleWidth=function(){var e=!!this.parent&&this.parent.getQuestionTitleWidth();if(e&&e[e.length-1]==="%")return parseInt(e)},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return e==="left"&&!this.isAllowTitleLeft&&(e="top"),e},t.prototype.getTitleLocationCore=function(){return this.titleLocation!=="default"?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&this.getTitleLocation()==="left"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&this.getTitleLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&this.getTitleLocation()==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return e==="left"||e==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.getPropertyValue("errorLocation")},set:function(e){this.setPropertyValue("errorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getErrorLocation=function(){return this.errorLocation!=="default"?this.errorLocation:this.parentQuestion?this.parentQuestion.getChildErrorLocation(this):this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},t.prototype.getChildErrorLocation=function(e){return this.getErrorLocation()},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){return this.name},t.prototype.getDefaultTitleTagName=function(){return I.titleTags.question},Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e),this.updateQuestionCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.getDescriptionLocation()=="underTitle"&&this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return this.getDescriptionLocation()=="underInput"&&this.hasDescription},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return this.descriptionLocation!=="default"?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},t.prototype.needClickTitleFunction=function(){return i.prototype.needClickTitleFunction.call(this)||this.hasInput},t.prototype.processTitleClick=function(){var e=this;if(i.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout(function(){e.focus()},1),!0},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText")},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPlaceHolder",{get:function(){return this.commentPlaceholder},set:function(e){this.commentPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedCommentPlaceholder",{get:function(){var e=this,n=function(){return e.isReadOnly?void 0:e.commentPlaceHolder};return this.getPropertyValue("renderedCommentPlaceholder",void 0,n)},enumerable:!1,configurable:!0}),t.prototype.resetRenderedCommentPlaceholder=function(){this.resetPropertyValue("renderedCommentPlaceholder")},t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var n=0;n<this.errors.length;n++)if(this.errors[n].getErrorType()===e)return this.errors[n];return null},Object.defineProperty(t.prototype,"customWidget",{get:function(){return!this.isCustomWidgetRequested&&!this.customWidgetValue&&(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=Bn.Instance.getCustomWidget(this)},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.resetRenderedCommentPlaceholder(),this.localeChangedCallback&&this.localeChangedCallback()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateCommentElements=function(){},t.prototype.onCommentInput=function(e){this.isInputTextUpdate?e.target&&(this.comment=e.target.value):this.updateCommentElements()},t.prototype.onCommentChange=function(e){this.comment=e.target.value,this.comment!==e.target.value&&(e.target.value=this.comment)},t.prototype.afterRenderQuestionElement=function(e){!this.survey||!this.hasSingleInput||this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){var n=this;this.afterRenderCore(e),this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e),(this.supportComment()||this.supportOther())&&(this.commentElements=[],this.getCommentElementsId().forEach(function(r){var o=I.environment.root,s=o.getElementById(r);s&&n.commentElements.push(s)}),this.updateCommentElements()),this.checkForResponsiveness(e))},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e)},t.prototype.getCommentElementsId=function(){return[this.commentId]},t.prototype.beforeDestroyQuestionElement=function(e){this.commentElements=void 0},Object.defineProperty(t.prototype,"processedTitle",{get:function(){var e=this.locProcessedTitle.textOrHtml;return e||this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&this.titlePattern=="requireNumTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&this.titlePattern=="numRequireTitle"&&this.requiredText!==""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&this.titlePattern=="numTitleRequire"&&this.requiredText!==""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var n={error:{}};return this.copyCssClasses(n,e.question),this.copyCssClasses(n.error,e.error),this.updateCssClasses(n,e),n},t.prototype.onCalcCssClasses=function(e){i.prototype.onCalcCssClasses.call(this,e),this.survey&&this.survey.updateQuestionCssClasses(this,e),this.onUpdateCssClassesCallback&&this.onUpdateCssClassesCallback(e)},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(e){var n=this.hasCssError();return new _().append(i.prototype.getCssRoot.call(this,e)).append(this.isFlowLayout&&!this.isDesignMode?e.flowRoot:e.mainRoot).append(e.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(e.titleTopRoot,!this.isFlowLayout&&this.hasTitleOnTop).append(e.titleBottomRoot,!this.isFlowLayout&&this.hasTitleOnBottom).append(e.descriptionUnderInputRoot,!this.isFlowLayout&&this.hasDescriptionUnderInput).append(e.hasError,n).append(e.hasErrorTop,n&&this.getErrorLocation()=="top").append(e.hasErrorBottom,n&&this.getErrorLocation()=="bottom").append(e.small,!this.width).append(e.answered,this.isAnswered).append(e.noPointerEventsMode,this.isReadOnlyAttr).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssHeader","")},enumerable:!1,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){return new _().append(e.header).append(e.headerTop,this.hasTitleOnTop).append(e.headerLeft,this.hasTitleOnLeft).append(e.headerBottom,this.hasTitleOnBottom).toString()},t.prototype.supportContainerQueries=function(){return!1},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssContent","")},enumerable:!1,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){return new _().append(e.content).append(e.contentSupportContainerQueries,this.supportContainerQueries()).append(e.contentLeft,this.hasTitleOnLeft).toString()},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssTitle","")},enumerable:!1,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(e){return new _().append(i.prototype.getCssTitle.call(this,e)).append(e.titleOnAnswer,!this.containsErrors&&this.isAnswered).append(e.titleEmpty,!this.title.trim()).toString()},Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssDescription","")},enumerable:!1,configurable:!0}),t.prototype.setCssDescription=function(e){this.setPropertyValue("cssDescription",e)},t.prototype.getCssDescription=function(e){return new _().append(e.description).append(e.descriptionUnderInput,this.getDescriptionLocation()=="underInput").toString()},t.prototype.showErrorOnCore=function(e){return!this.showErrorsAboveQuestion&&!this.showErrorsBelowQuestion&&this.getErrorLocation()===e},Object.defineProperty(t.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsOutsideQuestion",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAboveQuestion",{get:function(){return this.showErrorsOutsideQuestion&&this.getErrorLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&this.getErrorLocation()==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssError","")},enumerable:!1,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){return new _().append(e.error.root).append(e.errorsContainer,this.showErrorsBelowQuestion||this.showErrorsAboveQuestion).append(e.errorsContainerTop,this.showErrorsAboveQuestion).append(e.errorsContainerBottom,this.showErrorsBelowQuestion).append(e.error.locationTop,this.showErrorOnTop).append(e.error.locationBottom,this.showErrorOnBottom).toString()},t.prototype.hasCssError=function(){return this.errors.length>0||this.hasCssErrorCallback()},t.prototype.getRootCss=function(){return new _().append(this.cssRoot).append(this.cssClasses.mobile,this.isMobile).append(this.cssClasses.readOnly,this.isReadOnlyStyle).append(this.cssClasses.disabled,this.isDisabledStyle).append(this.cssClasses.preview,this.isPreviewStyle).append(this.cssClasses.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getQuestionRootCss=function(){return new _().append(this.cssClasses.root).append(this.cssClasses.rootMobile,this.isMobile).toString()},t.prototype.updateElementCss=function(e){this.wasRendered?(i.prototype.updateElementCss.call(this,e),e&&this.updateQuestionCss(!0)):this.isRequireUpdateElements=!0,this.resetIndents()},t.prototype.onFirstRenderingCore=function(){this.isRequireUpdateElements&&(this.isRequireUpdateElements=!1,this.updateElementCss(!0)),i.prototype.onFirstRenderingCore.call(this)},t.prototype.updateQuestionCss=function(e){this.isLoadingFromJson||!this.survey||(this.wasRendered?this.updateElementCssCore(this.cssClasses):this.isRequireUpdateElements=!0)},t.prototype.ensureElementCss=function(){this.cssClassesValue||this.updateQuestionCss(!0)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssDescription(this.getCssDescription(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,n){if(n.question){var r=n[this.getCssType()],o=new _().append(e.title).append(n.question.titleRequired,this.isRequired);e.title=o.toString();var s=new _().append(e.root).append(r,this.isRequired&&!!n.question.required);if(r==null)e.root=s.toString();else if(typeof r=="string"||r instanceof String)e.root=s.append(r.toString()).toString();else{e.root=s.toString();for(var u in r)e[u]=r[u]}}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return this.cssClasses.root||void 0},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return this.getIndentSize(this.indent)},t.prototype.calcPaddingRight=function(){return this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1||!this.getSurvey()||!this.cssClasses||!this.cssClasses.indent?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e,n){var r=this;if(e===void 0&&(e=!1),!(this.isDesignMode||!this.isVisible||!this.survey)){var o=this.page,s=!!o&&this.survey.activePage!==o;if(s)this.survey.focusQuestionByInstance(this,e);else if(this.survey){this.expandAllParents();var u=this.survey.isSmoothScrollEnabled?{behavior:"smooth"}:void 0;this.survey.scrollElementToTop(this,this,null,this.id,n,u,void 0,function(){r.focusInputElement(e)})}else this.focusInputElement(e)}},t.prototype.focusInputElement=function(e){var n,r=e?this.getFirstErrorInputElementId():this.getFirstInputElementId(),o=(n=this.survey)===null||n===void 0?void 0:n.rootElement;_e.FocusElement(r,!1,o)&&this.fireCallback(this.focusCallback)},Object.defineProperty(t.prototype,"isValidateVisitedEmptyFields",{get:function(){return this.supportEmptyValidation()&&!!this.survey&&this.survey.getValidateVisitedEmptyFields()&&this.isEmpty()},enumerable:!1,configurable:!0}),t.prototype.supportEmptyValidation=function(){return!1},t.prototype.onBlur=function(e){this.onBlurCore(e)},t.prototype.onFocus=function(e){this.onFocusCore(e)},t.prototype.onBlurCore=function(e){this.isFocusEmpty&&this.isEmpty()&&this.validate(!0)},t.prototype.onFocusCore=function(e){this.isFocusEmpty=this.isValidateVisitedEmptyFields},t.prototype.expandAllParents=function(){this.expandAllParentsCore(this)},t.prototype.expandAllParentsCore=function(e){e&&(e.isCollapsed&&e.expand(),this.expandAllParentsCore(e.parent),this.expandAllParentsCore(e.parentQuestion))},t.prototype.focusIn=function(){!this.survey||this.isDisposed||this.isContainer||this.survey.whenQuestionFocusIn(this)},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.getFirstQuestionToFocus=function(e){return this.hasInput&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var n=e.name.toLocaleLowerCase();e.isExists=Object.keys(t.TextPreprocessorValuesMap).indexOf(n)!==-1||this[e.name]!==void 0,e.value=this[t.TextPreprocessorValuesMap[n]||e.name]},t.prototype.supportComment=function(){var e=this.getPropertyByName("showCommentArea");return!e||e.visible},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCommentArea",{get:function(){return this.getPropertyValue("showCommentArea",!1)},set:function(e){this.supportComment()&&this.setPropertyValue("showCommentArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.showCommentArea},set:function(e){this.showCommentArea=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){return this.id+"_ariaDescription"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentId",{get:function(){return this.id+"_comment"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showOtherItem",{get:function(){return this.getPropertyValue("showOtherItem",!1)},set:function(e){!this.supportOther()||this.showOtherItem==e||(this.setPropertyValue("showOtherItem",e),this.hasOtherChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.showOtherItem},set:function(e){this.showOtherItem=e},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,n=!!this.parentQuestion&&this.parentQuestion.isReadOnly,r=!!this.survey&&this.survey.isDisplayMode,o=!!this.readOnlyCallback&&this.readOnlyCallback();return this.readOnly||e||r||n||o},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){return this.forceIsInputReadOnly!==void 0?this.forceIsInputReadOnly:this.isReadOnly||this.isDesignModeV2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputReadOnly",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputDisabled",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyAttr",{get:function(){return this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabledAttr",{get:function(){return this.isDesignModeV2||!!this.readOnlyCallback&&this.readOnlyCallback()},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),i.prototype.onReadOnlyChanged.call(this),this.isReadOnly&&this.clearErrors(),this.updateQuestionCss(),this.resetRenderedCommentPlaceholder()},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){},t.prototype.runCondition=function(e,n){this.isDesignMode||(n||(n={}),n.question=this,this.runConditionCore(e,n),!this.isValueChangedDirectly&&(!this.isClearValueOnHidden||this.isVisibleInSurvey)&&(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,e,n)))},Object.defineProperty(t.prototype,"isInDesignMode",{get:function(){return!this.isContentElement&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInDesignModeV2",{get:function(){return!this.isContentElement&&this.isDesignModeV2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){var e;if(!this.hasTitle||this.hideNumber)return"";var n=(e=this.parent)===null||e===void 0?void 0:e.visibleIndex,r=h.getNumberByIndex(this.visibleIndex,this.getStartIndex(),n);return this.survey&&(r=this.survey.getUpdatedQuestionNo(this,r)),r},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.isCustomWidgetRequested=!1,this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.isEmpty()&&this.initDataFromSurvey()},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),!this.isDesignMode&&this.survey&&!this.isLoadingFromJson&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());(!h.isValueEmpty(e)||!this.isLoadingFromJson)&&this.updateValueFromSurvey(e),this.initCommentFromSurvey()}},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},t.prototype.runExpression=function(e){if(!(!this.survey||!e))return this.survey.runExpression(e)},Object.defineProperty(t.prototype,"commentAreaRows",{get:function(){return this.survey&&this.survey.commentAreaRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.survey&&this.survey.autoGrowComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.survey&&this.survey.allowResizeComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValueWithoutDefault("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValueWithoutDefault("comment")},set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilteredValue",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getFilteredValue=function(){return this.value},t.prototype.getFilteredName=function(){return this.getValueName()},Object.defineProperty(t.prototype,"valueForSurvey",{get:function(){return this.valueForSurveyCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.valueForSurveyCore=function(e){return this.valueToDataCallback?this.valueToDataCallback(e):e},t.prototype.valueFromDataCore=function(e){return this.valueFromDataCallback?this.valueFromDataCallback(e):e},t.prototype.clearValue=function(e){this.value!==void 0&&(this.value=void 0),this.comment&&e!==!0&&(this.comment=void 0),this.setValueChangedDirectly(!1)},t.prototype.clearValueOnly=function(){this.clearValue(!0)},t.prototype.unbindValue=function(){this.clearValue()},t.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},t.prototype.initDataUI=function(){},t.prototype.getUnbindValue=function(e){return this.isValueSurveyElement(e)?e:h.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return e?Array.isArray(e)?e.length>0?this.isValueSurveyElement(e[0]):!1:!!e.getType&&!!e.onPropertyChanged:!1},t.prototype.canClearValueAsInvisible=function(e){return e==="onHiddenContainer"&&!this.isParentVisible?!0:this.isVisibleInSurvey||this.page&&this.page.isStartPage?!1:this.survey?!this.survey.hasVisibleQuestionByValueName(this.getValueName()):!0},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){if(this.parentQuestion&&!this.parentQuestion.isVisible)return!1;for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!1,configurable:!0}),t.prototype.clearValueIfInvisible=function(e){e===void 0&&(e="onHidden");var n=this.getClearIfInvisible();n!=="none"&&(e==="onHidden"&&n==="onComplete"||e==="onHiddenContainer"&&n!==e||this.clearValueIfInvisibleCore(e))},t.prototype.clearValueIfInvisibleCore=function(e){this.canClearValueAsInvisible(e)&&this.clearValue()},Object.defineProperty(t.prototype,"clearIfInvisible",{get:function(){return this.getPropertyValue("clearIfInvisible")},set:function(e){this.setPropertyValue("clearIfInvisible",e)},enumerable:!1,configurable:!0}),t.prototype.getClearIfInvisible=function(){var e=this.clearIfInvisible;return this.survey?this.survey.getQuestionClearIfInvisible(e):e!=="default"?e:"onComplete"},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,n){n===void 0&&(n=void 0);var r=this.calcDisplayValue(e,n);return this.survey&&(r=this.survey.getQuestionDisplayValue(this,r)),this.displayValueCallback?this.displayValueCallback(r):r},t.prototype.calcDisplayValue=function(e,n){if(n===void 0&&(n=void 0),this.customWidget){var r=this.customWidget.getDisplayValue(this,n);if(r)return r}return n=n??this.createValueCopy(),this.isValueEmpty(n,!this.allowSpaceAsAnswer)?this.getDisplayValueEmpty():this.getDisplayValueCore(e,n)},t.prototype.getDisplayValueCore=function(e,n){return n},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){if(this.isValueExpression(e)){this.defaultValueExpression=e.substring(1);return}this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(e){this.setPropertyValue("defaultValueExpression",e),this.defaultValueRunner=void 0,this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetValueIf",{get:function(){return this.getPropertyValue("resetValueIf")},set:function(e){this.setPropertyValue("resetValueIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueIf",{get:function(){return this.getPropertyValue("setValueIf")},set:function(e){this.setPropertyValue("setValueIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueExpression",{get:function(){return this.getPropertyValue("setValueExpression")},set:function(e){this.setPropertyValue("setValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResizeComment?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var n=this;if(e||(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var r={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(o){return typeof o=="object"?JSON.stringify(o):o}};return e.includeQuestionTypes===!0&&(r.questionType=this.getType()),(e.calculations||[]).forEach(function(o){r[o.propertyName]=n.getPlainDataCalculatedValue(o.propertyName)}),this.hasComment&&(r.isNode=!0,r.data=[{name:0,isComment:!0,title:"Comment",value:I.commentSuffix,displayValue:this.comment,getString:function(o){return typeof o=="object"?JSON.stringify(o):o},isNode:!1}]),r}},t.prototype.getPlainDataCalculatedValue=function(e){return this[e]},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!this.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return!this.isEmpty()&&!this.isValueEmpty(this.correctAnswer)?this.getCorrectAnswerCount():0},enumerable:!1,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.checkIfAnswerCorrect()?1:0},t.prototype.checkIfAnswerCorrect=function(){var e=h.isTwoValueEquals(this.value,this.correctAnswer,this.getAnswerCorrectIgnoreOrder(),I.comparator.caseSensitive,!0),n=e?1:0,r=this.quizQuestionCount-n,o={result:e,correctAnswers:n,correctAnswerCount:n,incorrectAnswers:r,incorrectAnswerCount:r};return this.survey&&this.survey.onCorrectQuestionAnswer(this,o),o.result},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.correctAnswerCount==this.quizQuestionCount},t.prototype.updateValueWithDefaults=function(){this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty()||!this.isDesignMode&&!this.isEmpty()||this.isEmpty()&&this.isDefaultValueEmpty()||this.isClearValueOnHidden&&!this.isVisible||this.isDesignMode&&this.isContentElement&&this.isDefaultValueEmpty()||this.setDefaultValue()},Object.defineProperty(t.prototype,"isValueDefault",{get:function(){return!this.isEmpty()&&(this.isTwoValueEquals(this.defaultValue,this.value)||!this.isValueChangedDirectly&&!!this.defaultValueExpression)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){var e=this.getClearIfInvisible();return e==="none"||e==="onComplete"?!1:e==="onHidden"||e==="onHiddenContainer"},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,n){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue,!this.allowSpaceAsAnswer)},t.prototype.getDefaultRunner=function(e,n){return!e&&n&&(e=this.createExpressionRunner(n)),e&&(e.expression=n),e},t.prototype.setDefaultValue=function(){var e=this;this.setDefaultValueCore(function(n){e.isTwoValueEquals(e.value,n)||(e.value=n)})},t.prototype.setDefaultValueCore=function(e){this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),function(n){return e(n)})},t.prototype.isValueExpression=function(e){return!!e&&typeof e=="string"&&e.length>0&&e[0]=="="},t.prototype.setValueAndRunExpression=function(e,n,r,o,s){var u=this;o===void 0&&(o=null),s===void 0&&(s=null);var d=function(y){u.runExpressionSetValueCore(y,r)};this.runDefaultValueExpression(e,o,s,d)||d(n)},t.prototype.convertFuncValuetoQuestionValue=function(e){return h.convertValToQuestionVal(e)},t.prototype.runExpressionSetValueCore=function(e,n){n(this.convertFuncValuetoQuestionValue(e))},t.prototype.runExpressionSetValue=function(e){var n=this;this.runExpressionSetValueCore(e,function(r){n.isTwoValueEquals(n.value,r)||(n.startSetValueOnExpression(),n.value=r,n.finishSetValueOnExpression())})},t.prototype.startSetValueOnExpression=function(){var e;(e=this.survey)===null||e===void 0||e.startSetValueOnExpression()},t.prototype.finishSetValueOnExpression=function(){var e;(e=this.survey)===null||e===void 0||e.finishSetValueOnExpression()},t.prototype.runDefaultValueExpression=function(e,n,r,o){var s=this;return n===void 0&&(n=null),r===void 0&&(r=null),!e||!this.data?!1:(o||(o=function(u){s.runExpressionSetValue(u)}),n||(n=this.defaultValueExpression?this.data.getFilteredValues():{}),r||(r=this.defaultValueExpression?this.data.getFilteredProperties():{}),e&&e.canRun&&(e.onRunComplete=function(u){u==null&&(u=s.defaultValue),s.isChangingViaDefaultValue=!0,o(u),s.isChangingViaDefaultValue=!1},e.run(n,r)),!0)},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var n=e.toString().trim();n!==e&&(e=n,e===this.comment&&this.setPropertyValueDirectly("comment",e))}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElements())},enumerable:!1,configurable:!0}),t.prototype.getCommentAreaCss=function(e){return e===void 0&&(e=!1),new _().append("form-group",e).append(this.cssClasses.formGroup,!e).append(this.cssClasses.commentArea).toString()},t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value,!this.allowSpaceAsAnswer)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")||!1},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsAnswered=function(){var e=this.isAnswered;this.setPropertyValue("isAnswered",this.getIsAnswered()),e!==this.isAnswered&&this.updateQuestionCss()},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.getSupportedValidators=function(){for(var e=[],n=this.getType();n;){var r=I.supportedValidators[n];if(r)for(var o=r.length-1;o>=0;o--)e.splice(0,0,r[o]);var s=j.findClass(n);n=s.parentName}return e},t.prototype.addConditionObjectsByContext=function(e,n){e.push({name:this.getFilteredName(),text:this.processedTitle,question:this})},t.prototype.getNestedQuestions=function(e){e===void 0&&(e=!1);var n=[];return this.collectNestedQuestions(n,e),n.length===1&&n[0]===this?[]:n},t.prototype.collectNestedQuestions=function(e,n){n===void 0&&(n=!1),!(n&&!this.isVisible)&&this.collectNestedQuestionsCore(e,n)},t.prototype.collectNestedQuestionsCore=function(e,n){e.push(this)},t.prototype.getConditionJson=function(e,n){var r=new je().toJsonObject(this);return r.type=this.getType(),r},t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=this.checkForErrors(!!n&&n.isOnValueChanged===!0,e);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,r),this.errors=r,this.errors!==r&&this.errors.forEach(function(o){return o.locText.strChanged()})),this.updateContainsErrors(),this.isCollapsed&&n&&e&&r.length>0&&this.expand(),r.length>0},t.prototype.validate=function(e,n){return e===void 0&&(e=!0),n===void 0&&(n=null),n&&n.isOnValueChanged&&this.parent&&this.parent.validateContainerOnly(),!this.hasErrors(e,n)},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey!=null&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var n=null;typeof e=="string"||e instanceof String?n=this.addCustomError(e):n=e,this.errors.push(n)}},t.prototype.addCustomError=function(e){return new ot(e,this.survey)},t.prototype.removeError=function(e){if(!e)return!1;var n=this.errors,r=n.indexOf(e);return r!==-1&&n.splice(r,1),r!==-1},t.prototype.checkForErrors=function(e,n){var r=new Array;return this.isVisible&&this.canCollectErrors()&&this.collectErrors(r,e,n),r},t.prototype.canCollectErrors=function(){return!this.isReadOnly||I.readOnly.enableValidation},t.prototype.collectErrors=function(e,n,r){if(this.onCheckForErrors(e,n,r),!(e.length>0||!this.canRunValidators(n))){var o=this.runValidators();if(o.length>0){e.length=0;for(var s=0;s<o.length;s++)e.push(o[s])}if(this.survey&&e.length==0){var u=this.fireSurveyValidation();u&&e.push(u)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,n,r){var o=this;if((!n||this.isOldAnswered)&&this.hasRequiredError()){var s=new $r(this.requiredErrorText,this);s.onUpdateErrorTextCallback=function(d){d.text=o.requiredErrorText},e.push(s)}if(!this.isEmpty()&&this.customWidget){var u=this.customWidget.validate(this);u&&e.push(this.addCustomError(u))}},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!1,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new Zr,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(n){e.doOnAsyncCompleted(n)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var n=0;n<e.length;n++)this.errors.push(e[n]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){this.isNewValueEqualsToValue(e)||this.checkIsValueCorrect(e)&&(this.isOldAnswered=this.isAnswered,this.isSettingQuestionValue=!0,this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isSettingQuestionValue=!1,this.isAnswered!==this.isOldAnswered&&this.updateQuestionCss(),this.isOldAnswered=void 0,this.parent&&this.parent.onQuestionValueChanged(this))},t.prototype.checkIsValueCorrect=function(e){var n=this.isValueEmpty(e,!this.allowSpaceAsAnswer)||this.isNewValueCorrect(e);return n||He.inCorrectQuestionValue(this.name,e),n},t.prototype.isNewValueCorrect=function(e){return!0},t.prototype.isNewValueEqualsToValue=function(e){var n=this.value;if(!this.isTwoValueEquals(e,n,!1,!1))return!1;var r=e===n&&!!n&&(Array.isArray(n)||typeof n=="object");return!r},t.prototype.isTextValue=function(){return!1},t.prototype.getIsInputTextUpdate=function(){return this.survey?this.survey.isUpdateValueTextOnTyping:!1},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getDataLocNotification=function(){return this.isInputTextUpdate?"text":!1},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.getIsInputTextUpdate()&&this.isTextValue()},enumerable:!1,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),this.data!=null&&this.canSetValueToSurvey()&&(e=this.valueForSurvey,this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged,this.name)),this.isMouseDown=!1},t.prototype.canSetValueToSurvey=function(){return!0},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.convertToCorrectValue=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.onMouseDown=function(){this.isMouseDown=!0},t.prototype.setNewComment=function(e){this.questionComment!==e&&(this.questionComment=e,this.setCommentIntoData(e))},t.prototype.setCommentIntoData=function(e){this.data!=null&&this.data.setComment(this.getValueName(),e,this.getIsInputTextUpdate()?"text":!1)},t.prototype.getValidName=function(e){return gr(e)},t.prototype.updateValueFromSurvey=function(e,n){var r=this;if(n===void 0&&(n=!1),e=this.getUnbindValue(e),e=this.valueFromDataCore(e),!!this.checkIsValueCorrect(e)){var o=this.isValueEmpty(e);!o&&this.defaultValueExpression?this.setDefaultValueCore(function(s){r.updateValueFromSurveyCore(e,r.isTwoValueEquals(e,s))}):(this.updateValueFromSurveyCore(e,this.data!==this.getSurvey()),n&&o&&(this.isValueChangedDirectly=!1)),this.updateDependedQuestions(),this.updateIsAnswered()}},t.prototype.updateValueFromSurveyCore=function(e,n){this.isChangingViaDefaultValue=n,this.setQuestionValue(this.valueFromData(e)),this.isChangingViaDefaultValue=!1},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.onChangeQuestionValue=function(e){},t.prototype.setValueChangedDirectly=function(e){this.isValueChangedDirectly=e,this.setValueChangedDirectlyCallback&&this.setValueChangedDirectlyCallback(e)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),e=this.convertToCorrectValue(e);var r=this.isTwoValueEquals(this.questionValue,e);!r&&!this.isChangingViaDefaultValue&&!this.isParentChangingViaDefaultValue&&this.setValueChangedDirectly(!0),this.questionValue=e,r||this.onChangeQuestionValue(e),!r&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),n&&this.updateIsAnswered()},Object.defineProperty(t.prototype,"isParentChangingViaDefaultValue",{get:function(){var e;return((e=this.data)===null||e===void 0?void 0:e.isChangingViaDefaultValue)===!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!I.numbering.includeQuestionsWithHiddenTitle||this.hideNumber&&!I.numbering.includeQuestionsWithHiddenNumber)&&(e=-1),this.setPropertyValue("visibleIndex",e),this.setPropertyValue("no",this.calcNo()),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e,n){},t.prototype.checkBindings=function(e,n){if(!(this.bindings.isEmpty()||!this.data))for(var r=this.bindings.getPropertiesByValueName(e),o=0;o<r.length;o++){var s=r[o];this.isValueEmpty(n)&&h.isNumber(this[s])&&(n=0),this.updateBindingProp(s,n)}},t.prototype.updateBindingProp=function(e,n){this[e]=n},t.prototype.getComponentName=function(){return uo.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||this.getComponentName()==="default"},t.prototype.getErrorCustomText=function(e,n){return this.survey?this.survey.getSurveyErrorCustomText(this,e,n):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.processPopupVisiblilityChanged=function(e,n){this.survey.processPopupVisiblityChanged(this,e,n)},t.prototype.processOpenDropdownMenu=function(e){this.survey.processOpenDropdownMenu(this,e)},t.prototype.onTextKeyDownHandler=function(e){e.keyCode===13&&this.survey.questionEditFinishCallback(this,e)},t.prototype.transformToMobileView=function(){},t.prototype.transformToDesktopView=function(){},t.prototype.needResponsiveWidth=function(){return!1},t.prototype.supportResponsiveness=function(){return!1},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme&&!this.isDesignMode},t.prototype.checkForResponsiveness=function(e){var n=this;if(this.needResponsiveness())if(this.isCollapsed){var r=function(){n.isExpanded&&(n.initResponsiveness(e),n.unregisterPropertyChangedHandlers(["state"],"for-responsiveness"))};this.registerPropertyChangedHandlers(["state"],r,"for-responsiveness")}else this.initResponsiveness(e)},t.prototype.getObservedElementSelector=function(){return".sd-scrollable-container"},t.prototype.onMobileChanged=function(){this.onMobileChangedCallback&&this.onMobileChangedCallback()},t.prototype.triggerResponsiveness=function(e){e===void 0&&(e=!0),this.triggerResponsivenessCallback&&this.triggerResponsivenessCallback(e)},t.prototype.initResponsiveness=function(e){var n=this;if(this.destroyResizeObserver(),e&&this.isDefaultRendering()){var r=this.getObservedElementSelector();if(!r)return;var o=e.querySelector(r);if(!o)return;var s=!1,u=void 0;this.triggerResponsivenessCallback=function(d){d&&(u=void 0,n.renderAs="default",s=!1);var y=function(){var V=e.querySelector(r);!u&&n.isDefaultRendering()&&(u=V.scrollWidth),s||!hr(V)?s=!1:s=n.processResponsiveness(u,Wr(V))};d?setTimeout(y,1):y()},this.resizeObserver=new ResizeObserver(function(d){B.requestAnimationFrame(function(){n.triggerResponsiveness(!1)})}),this.onMobileChangedCallback=function(){setTimeout(function(){var d=e.querySelector(r);n.processResponsiveness(u,Wr(d))},0)},this.resizeObserver.observe(e)}},t.prototype.getCompactRenderAs=function(){return"default"},t.prototype.getDesktopRenderAs=function(){return"default"},t.prototype.onBeforeSetCompactRenderer=function(){},t.prototype.onBeforeSetDesktopRenderer=function(){},t.prototype.processResponsiveness=function(e,n){if(n=Math.round(n),Math.abs(e-n)>2){var r=this.renderAs;return e>n?(this.onBeforeSetCompactRenderer(),this.renderAs=this.getCompactRenderAs()):(this.onBeforeSetDesktopRenderer(),this.renderAs=this.getDesktopRenderAs()),r!==this.renderAs}return!1},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.onMobileChangedCallback=void 0,this.triggerResponsivenessCallback=void 0,this.renderAs=this.getDesktopRenderAs())},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.resetDependedQuestions(),this.destroyResizeObserver()},t.prototype.resetDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].resetDependedQuestion()},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.isNewA11yStructure?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return this.isNewA11yStructure?null:"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return this.isNewA11yStructure?null:this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return this.isNewA11yStructure?null:this.hasCssError()?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return this.isNewA11yStructure?null:this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return this.isNewA11yStructure?null:this.hasTitle&&this.hasDescription?this.ariaDescriptionId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaErrormessage",{get:function(){return this.isNewA11yStructure?null:this.hasCssError()?this.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaInvalid",{get:function(){return this.hasCssError()?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.hasTitle&&!this.parentQuestion?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return this.hasTitle&&!this.parentQuestion?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return this.hasTitle&&!this.parentQuestion&&this.hasDescription?this.ariaDescriptionId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaErrormessage",{get:function(){return this.hasCssError()?this.id+"_errors":null},enumerable:!1,configurable:!0}),t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,Gt([x({defaultValue:!1})],t.prototype,"_isMobile",void 0),Gt([x()],t.prototype,"forceIsInputReadOnly",void 0),Gt([x()],t.prototype,"ariaExpanded",void 0),Gt([x({localizable:!0,onSet:function(e,n){return n.resetRenderedCommentPlaceholder()}})],t.prototype,"commentPlaceholder",void 0),Gt([x()],t.prototype,"renderAs",void 0),Gt([x({defaultValue:!1})],t.prototype,"inMatrixMode",void 0),t}(_e);function gr(i){if(!i)return i;for(i=i.trim().replace(/[\{\}]+/g,"");i&&i[0]===I.expressionDisableConversionChar;)i=i.substring(1);return i}j.addClass("question",[{name:"!name",onSettingValue:function(i,t){return gr(t)}},{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"useDisplayValuesInDynamicTexts:boolean",alternativeName:"useDisplayValuesInTitle",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",defaultFunc:function(){return I.minWidth}},{name:"maxWidth",defaultFunc:function(){return I.maxWidth}},{name:"colSpan:number",visible:!1,onSerializeValue:function(i){return i.getPropertyValue("colSpan")}},{name:"effectiveColSpan:number",minValue:1,isSerializable:!1,visibleIf:function(i){return!!i&&!!i.survey&&i.survey.gridLayoutEnabled}},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(i){var t=i?i.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(i){var t=i?i.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row",dependsOn:"name",onPropertyEditorUpdate:function(i,t){i&&t&&(t.placeholder=i.getDefaultTitle())}},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(i){if(!i)return!0;if(i.titleLocation==="hidden")return!1;var t=i?i.parent:null,e=!t||t.showQuestionNumbers!=="off";if(!e)return!1;var n=i?i.survey:null;return!n||n.showQuestionNumbers!=="off"||!!t&&t.showQuestionNumbers==="onpanel"}},{name:"valueName",onSettingValue:function(i,t){return gr(t)}},"enableIf:condition","resetValueIf:condition","setValueIf:condition","setValueExpression:expression","defaultValue:value",{name:"defaultValueExpression:expression",category:"logic"},"correctAnswer:value",{name:"clearIfInvisible",default:"default",choices:["default","none","onComplete","onHidden","onHiddenContainer"]},{name:"isRequired:switch",overridingProperty:"requiredIf"},"requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"errorLocation",default:"default",choices:["default","top","bottom"]},{name:"readOnly:switch",overridingProperty:"enableIf"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(i){return i.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1},{name:"showCommentArea",visible:!1,default:!1,alternativeName:"hasComment",category:"general"},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(i){return i.showCommentArea},serializationProperty:"locCommentText"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(i){return i.hasComment}}]),j.addAlterNativeClassName("question","questionbase");var co=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ni=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},re=function(i){co(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="itemvalue");var o=i.call(this)||this;return o.typeName=r,o.ownerPropertyName="",o.locTextValue=new gt(o,!0,"text"),o.locTextValue.onStrChanged=function(s,u){u==o.value&&(u=void 0),o.propertyValueChanged("text",s,u)},o.locTextValue.onGetTextCallback=function(s){return s||(h.isValueEmpty(o.value)?null:o.value.toString())},n&&(o.locText.text=n),e&&typeof e=="object"?o.setData(e,!0):o.setValue(e,!0),o.getType()!="itemvalue"&&Fe.createProperties(o),o.data=o,o.onCreating(),o}return t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},Object.defineProperty(t,"Separator",{get:function(){return I.itemValueSeparator},set:function(e){I.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.setData=function(e,n,r){e.length=0;for(var o=0;o<n.length;o++){var s=n[o],u=s&&typeof s.getType=="function"?s.getType():r??"itemvalue",d=j.createClass(u);d.setData(s),s.originalItem&&(d.originalItem=s.originalItem),e.push(d)}},t.getData=function(e){for(var n=[],r=0;r<e.length;r++)n.push(e[r].getData());return n},t.getItemByValue=function(e,n){if(!Array.isArray(e))return null;for(var r=h.isValueEmpty(n),o=0;o<e.length;o++)if(r&&h.isValueEmpty(e[o].value)||h.isTwoValueEquals(e[o].value,n,!1,!0,!1))return e[o];return null},t.getTextOrHtmlByValue=function(e,n){var r=t.getItemByValue(e,n);return r!==null?r.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var n=0;n<e.length;n++)e[n].locStrsChanged()},t.runConditionsForItems=function(e,n,r,o,s,u,d){return u===void 0&&(u=!0),t.runConditionsForItemsCore(e,n,r,o,s,!0,u,d)},t.runEnabledConditionsForItems=function(e,n,r,o,s){return t.runConditionsForItemsCore(e,null,n,r,o,!1,!0,s)},t.runConditionsForItemsCore=function(e,n,r,o,s,u,d,y){d===void 0&&(d=!0),o||(o={});for(var V=o.item,T=o.choice,N=!1,U=0;U<e.length;U++){var W=e[U];o.item=W.value,o.choice=W.value;var X=d&&W.getConditionRunner?W.getConditionRunner(u):!1;X||(X=r);var Y=!0;X&&(Y=X.run(o,s)),y&&(Y=y(W,Y)),n&&Y&&n.push(W);var J=u?W.isVisible:W.isEnabled;Y!=J&&(N=!0,u?W.setIsVisible&&W.setIsVisible(Y):W.setIsEnabled&&W.setIsEnabled(Y))}return V?o.item=V:delete o.item,T?o.choice=T:delete o.choice,N},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return this.locOwner&&this.locOwner.getSurvey?this.locOwner.getSurvey():null},t.prototype.getLocale=function(){return this.locOwner&&this.locOwner.getLocale?this.locOwner.getLocale():""},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isGhost===!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!1,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this._locOwner},set:function(e){this._locOwner=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){this.setValue(e,!1)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e,n){var r=void 0;if(!h.isValueEmpty(e)){var o=e.toString(),s=o.indexOf(I.itemValueSeparator);s>-1&&(e=o.slice(0,s),r=o.slice(s+1))}n?this.setPropertyValueDirectly("value",e):this.setPropertyValue("value",e),r&&(this.text=r),this.id=this.value},Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(e){this.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){this.locText.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.text},enumerable:!1,configurable:!0}),t.prototype.canSerializeValue=function(){var e=this.value;return e==null?!1:!Array.isArray(e)&&typeof e!="object"},t.prototype.getData=function(){var e=this.toJSON();if(e.value&&e.value.pos&&delete e.value.pos,h.isValueEmpty(e.value))return e;var n=this.canSerializeValue(),r=!n||!I.serialization.itemValueSerializeAsObject&&!I.serialization.itemValueSerializeDisplayText;return r&&Object.keys(e).length==1?this.value:(I.serialization.itemValueSerializeDisplayText&&e.text===void 0&&n&&(e.text=this.value.toString()),e)},t.prototype.toJSON=function(){var e={},n=j.getProperties(this.getType());(!n||n.length==0)&&(n=j.getProperties("itemvalue"));for(var r=new je,o=0;o<n.length;o++){var s=n[o];s.name==="text"&&!this.locText.hasNonDefaultText()&&h.isTwoValueEquals(this.value,this.text,!1,!0,!1)||r.valueToJson(this,e,s)}return e},t.prototype.setData=function(e,n){if(!h.isValueEmpty(e)){if(typeof e.value>"u"&&typeof e.text<"u"&&Object.keys(e).length===1&&(e.value=e.text),typeof e.value<"u"){var r=void 0;typeof e.toJSON=="function"?r=e.toJSON():r=e,new je().toObject(r,this)}else this.setValue(e,n);n||this.locText.strChanged()}},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValueWithoutDefault("visibleIf")||""},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValueWithoutDefault("enableIf")||""},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){var e=this.getPropertyValueWithoutDefault("isVisible");return e!==void 0?e:!0},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this.setPropertyValue("isVisible",e)},Object.defineProperty(t.prototype,"isEnabled",{get:function(){var e=this.getPropertyValueWithoutDefault("isEnabled");return e!==void 0?e:!0},enumerable:!1,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,n,r){e==="value"&&!this.hasText&&this.locText.strChanged();var o="itemValuePropertyChanged";!this.locOwner||!this.locOwner[o]||this.locOwner[o](this,e,n,r)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new Ue(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new Ue(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"selected",{get:function(){var e=this,n=this._locOwner;return n instanceof Be&&n.isItemSelected&&this.selectedValue===void 0&&(this.selectedValue=new De(function(){return n.isItemSelected(e)})),this.selectedValue},enumerable:!1,configurable:!0}),t.prototype.getComponent=function(){return this._locOwner instanceof Be?this.componentValue||this._locOwner.itemComponent:this.componentValue},t.prototype.setComponent=function(e){this.componentValue=e},t.prototype.setRootElement=function(e){this._htmlElement=e},t.prototype.getRootElement=function(){return this._htmlElement},t.prototype.getEnabled=function(){return this.isEnabled},t.prototype.setEnabled=function(e){this.setIsEnabled(e)},t.prototype.getVisible=function(){var e=this.isVisible===void 0?!0:this.isVisible,n=this._visible===void 0?!0:this._visible;return e&&n},t.prototype.setVisible=function(e){this.visible!==e&&(this._visible=e)},t.prototype.getLocTitle=function(){return this.locText},t.prototype.getTitle=function(){return this.text},t.prototype.setLocTitle=function(e){},t.prototype.setTitle=function(e){},ni([x({defaultValue:!0})],t.prototype,"_visible",void 0),ni([x()],t.prototype,"selectedValue",void 0),ni([x()],t.prototype,"icon",void 0),t}(En);fe.createItemValue=function(i,t){var e=null;return t?e=je.metaData.createClass(t,{}):typeof i.getType=="function"?e=new re(null,void 0,i.getType()):e=new re(null),e.setData(i),e},fe.itemValueLocStrChanged=function(i){re.locStrsChanged(i)},lt.getItemValuesDefaultValue=function(i,t){var e=new Array;return re.setData(e,Array.isArray(i)?i:[],t),e},j.addClass("itemvalue",[{name:"!value",isUnique:!0},{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(i){return!i||i.ownerPropertyName!=="rateValues"}}],function(i){return new re(i)});var p=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),l=function(i){p(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.expressionIsRunning=!1,r.isCalculated=!1,e&&(r.name=e),n&&(r.expression=n),r}return t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return this.data&&this.data.getSurvey?this.data.getSurvey():null},Object.defineProperty(t.prototype,"owner",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")||""},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult")},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")||""},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,n,r){this.isCalculated||(this.runExpressionCore(e,n,r),this.isCalculated=!0)},t.prototype.runExpression=function(e,n){this.runExpressionCore(null,e,n)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!!this.data&&!this.isLoadingFromJson&&!!this.expression&&!this.expressionIsRunning&&!!this.name},enumerable:!1,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,n,r){this.canRunExpression&&(this.ensureExpression(n),this.locCalculation(),e&&this.runDependentExpressions(e,n,r),this.expressionRunner.run(n,r))},t.prototype.runDependentExpressions=function(e,n,r){var o=this.expressionRunner.getVariables();if(o)for(var s=0;s<e.length;s++){var u=e[s];u===this||o.indexOf(u.name)<0||(u.doCalculation(e,n,r),n[u.name]=u.value)}},t.prototype.ensureExpression=function(e){var n=this;this.expressionRunner||(this.expressionRunner=new jt(this.expression),this.expressionRunner.onRunComplete=function(r){h.isTwoValueEquals(r,n.value,!1,!0,!1)||n.setValue(r),n.unlocCalculation()})},t}(fe);j.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],function(){return new l},"base");var a=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),c=function(i){a(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.expression=e,n}return t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,n){return this.expression?new Ue(this.expression).run(e,n):!1},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getSurvey=function(e){return this.locOwner},t}(fe),f=function(i){a(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e)||this;return r.createLocalizableString("html",r),r.html=n,r}return t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t}(c),g=function(i){a(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e)||this;return r.createLocalizableString("url",r),r.url=n,r}return t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!1,configurable:!0}),t}(c);j.addClass("expressionitem",["expression:condition"],function(){return new c},"base"),j.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new f},"expressionitem"),j.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],function(){return new g},"expressionitem");var L=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),F=function(){function i(){this.parser=new DOMParser}return i.prototype.assignValue=function(t,e,n){Array.isArray(t[e])?t[e].push(n):t[e]!==void 0?t[e]=[t[e]].concat(n):typeof n=="object"&&Object.keys(n).length===1&&Object.keys(n)[0]===e?t[e]=n[e]:t[e]=n},i.prototype.xml2Json=function(t,e){if(t.children&&t.children.length>0)for(var n=0;n<t.children.length;n++){var r=t.children[n],o={};this.xml2Json(r,o),this.assignValue(e,r.nodeName,o)}else this.assignValue(e,t.nodeName,t.textContent)},i.prototype.parseXmlString=function(t){var e=this.parser.parseFromString(t,"text/xml"),n={};return this.xml2Json(e,n),n},i}(),H=function(i){L(t,i);function t(){var e=i.call(this)||this;return e.lastObjHash="",e.isRunningValue=!1,e.processedUrl="",e.processedPath="",e.isUsingCacheFromUrl=void 0,e.error=null,e.createItemValue=function(n){return new re(n)},e.registerPropertyChangedHandlers(["url"],function(){e.owner&&e.owner.setPropertyValue("isUsingRestful",!!e.url)}),e}return Object.defineProperty(t,"EncodeParameters",{get:function(){return I.web.encodeUrlParams},set:function(e){I.web.encodeUrlParams=e},enumerable:!1,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){if(!e.isUsingCache)return!1;var n=e.objHash,r=t.sendingSameRequests[n];return r?(r.push(e),e.isRunningValue=!0,!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,n){if(e.isUsingCache){var r=t.sendingSameRequests[e.objHash];if(delete t.sendingSameRequests[e.objHash],!!r)for(var o=0;o<r.length;o++)r[o].isRunningValue=!1,r[o].getResultCallback&&r[o].getResultCallback(n)}},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return I.web.onBeforeRequestChoices},set:function(e){I.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t.getCachedItemsResult=function(e){var n=e.objHash,r=t.itemsResult[n];return r?(e.getResultCallback&&e.getResultCallback(r),!0):!1},t.prototype.getSurvey=function(e){return this.owner?this.owner.survey:null},t.prototype.run=function(e){if(e===void 0&&(e=null),!(!this.url||!this.getResultCallback)){if(this.processedText(e),!this.processedUrl){this.doEmptyResultCallback({}),this.lastObjHash=this.objHash;return}this.lastObjHash!==this.objHash&&(this.lastObjHash=this.objHash,this.error=null,!this.useChangedItemsResults()&&(t.addSameRequest(this)||this.sendRequest()))}},Object.defineProperty(t.prototype,"isUsingCache",{get:function(){return this.isUsingCacheFromUrl===!0?!0:this.isUsingCacheFromUrl===!1?!1:I.web.cacheLoadedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getIsRunning()},enumerable:!1,configurable:!0}),t.prototype.getIsRunning=function(){return this.isRunningValue},Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!1,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var n=[];this.updateResultCallback&&(n=this.updateResultCallback(n,e)),this.getResultCallback(n)},t.prototype.processedText=function(e){var n=this.url;if(n&&(n=n.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var r=e.processTextEx({text:n,runAtDesign:!0}),o=e.processTextEx({text:this.path,runAtDesign:!0});!r.hasAllValuesOnLastRun||!o.hasAllValuesOnLastRun?(this.processedUrl="",this.processedPath=""):(this.processedUrl=r.text,this.processedPath=o.text)}else this.processedUrl=n,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var n;if(e&&typeof e.indexOf=="function"&&e.indexOf("<")===0){var r=new F;n=r.parseXmlString(e)}else try{n=JSON.parse(e)}catch{n=(e||"").split(`
+`).map(function(s){return s.trim(" ")}).filter(function(s){return!!s})}return n},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var n=this,r=this.objHash;e.onload=function(){n.beforeLoadRequest(),e.status===200?n.onLoad(n.parseResponse(e.response),r):n.onError(e.statusText,e.responseText)};var o={request:e};I.web.onBeforeRequestChoices&&I.web.onBeforeRequestChoices(this,o),this.beforeSendRequest(),o.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.url&&!this.path},enumerable:!1,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),n=new Array,r=0;r<e.length;r++)n.push(this.getCustomPropertyName(e[r].name));return n},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=j.getProperties(this.itemValueType),n=[],r=0;r<e.length;r++)e[r].name==="value"||e[r].name==="text"||e[r].name==="visibleIf"||e[r].name==="enableIf"||n.push(e[r]);return n},t.prototype.getAllPropertiesNames=function(){var e=new Array;return j.getPropertiesByObj(this).forEach(function(n){return e.push(n.name)}),this.getCustomPropertiesNames().forEach(function(n){return e.push(n)}),e},t.prototype.setData=function(e){var n=this;e||(e={}),this.getAllPropertiesNames().forEach(function(r){n[r]=e[r]})},t.prototype.getData=function(){var e=this,n={},r=!1;return this.getAllPropertiesNames().forEach(function(o){var s=e[o];!e.isValueEmpty(s)&&s!==e.getDefaultPropertyValue(o)&&(n[o]=s,r=!0)}),r?n:null},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url")||""},set:function(e){this.setPropertyValue("url",e),this.isUsingCacheFromUrl=void 0,e&&(e.indexOf(t.cacheText)>-1?this.isUsingCacheFromUrl=!0:e.indexOf(t.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path")||""},set:function(e){this.setPropertyValue("path",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse")},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems")},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=j.findProperty(this.owner.getType(),"choices");return!e||e.type=="itemvalue[]"?"itemvalue":e.type},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.setData(void 0)},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,n){n===void 0&&(n=null),n||(n=this.objHash);var r=new Array,o=this.getResultAfterPath(e);if(o&&o.length)for(var s=0;s<o.length;s++){var u=o[s];if(u){var d=this.getItemValueCallback?this.getItemValueCallback(u):this.getValue(u),y=this.createItemValue(d);this.setTitle(y,u),this.setCustomProperties(y,u),this.attachOriginalItems&&(y.originalItem=u);var V=this.getImageLink(u);V&&(y.imageLink=V),r.push(y)}}else this.allowEmptyResponse||(this.error=new ls(null,this.owner));this.updateResultCallback&&(r=this.updateResultCallback(r,e)),this.isUsingCache&&(t.itemsResult[n]=r),this.callResultCallback(r,n),t.unregisterSameRequests(this,r)},t.prototype.callResultCallback=function(e,n){n==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,n){for(var r=this.getCustomProperties(),o=0;o<r.length;o++){var s=r[o],u=this.getValueCore(n,this.getPropertyBinding(s.name));this.isValueEmpty(u)||(e[s.name]=u)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,n){this.error=new as(e,n,this.owner),this.doEmptyResultCallback(n),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e||!this.processedPath)return e;for(var n=this.getPathes(),r=0;r<n.length;r++)if(e=e[n[r]],!e)return null;return e},t.prototype.getPathes=function(){var e=[];return this.processedPath.indexOf(";")>-1?e=this.path.split(";"):e=this.processedPath.split(","),e.length==0&&e.push(this.processedPath),e},t.prototype.getValue=function(e){if(!e)return null;if(this.valueName)return this.getValueCore(e,this.valueName);if(!(e instanceof Object))return e;var n=Object.keys(e).length;return n<1?null:e[Object.keys(e)[0]]},t.prototype.setTitle=function(e,n){var r=this.titleName?this.titleName:"title",o=this.getValueCore(n,r);o&&(typeof o=="string"?e.text=o:e.locText.setJson(o))},t.prototype.getImageLink=function(e){var n=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,n)},t.prototype.getValueCore=function(e,n){if(!e)return null;if(n.indexOf(".")<0)return e[n];for(var r=n.split("."),o=0;o<r.length;o++)if(e=e[r[o]],!e)return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName+";"+this.imageLinkName},enumerable:!1,configurable:!0}),t.cacheText="{CACHE}",t.noCacheText="{NOCACHE}",t.itemsResult={},t.sendingSameRequests={},t}(fe),ye=function(i){L(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return Object.defineProperty(t,"EncodeParameters",{get:function(){return H.EncodeParameters},set:function(e){H.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){H.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return I.web.onBeforeRequestChoices},set:function(e){I.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t}(H);j.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(i){return!!i&&!!i.owner&&i.owner.getType()=="imagepicker"}},{name:"allowEmptyResponse:boolean"},{name:"attachOriginalItems:boolean",visible:!1}],function(){return new H});var ae=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ve=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},yt=function(i){ae(t,i);function t(e){var n=i.call(this,e)||this;return n.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.updateVisibilityBasedOnRows()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){var e=this,n=[];return this.columns.forEach(function(r){e.isColumnVisible(r)&&n.push(r)}),n},enumerable:!1,configurable:!0}),t.prototype.isColumnVisible=function(e){return e.isVisible},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var n=this.processRowsOnSet(e);this.setPropertyValue("rows",n)},enumerable:!1,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.isLoadingFromJsonValue||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.isLoadingFromJson||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.runItemsCondition(e,n)},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&this.onVisibleChanged()},t.prototype.isVisibleCore=function(){var e,n=i.prototype.isVisibleCore.call(this);return!n||!this.hideIfRowsEmpty?n:((e=this.visibleRows)===null||e===void 0?void 0:e.length)>0},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,n){var r=this.hasRowsAsItems()&&this.runConditionsForRows(e,n),o=this.runConditionsForColumns(e,n);r=o||r,r&&(this.isClearValueOnHidden&&o&&this.clearInvisibleColumnValues(),this.clearGeneratedRows(),o&&this.onColumnsChanged(),this.onRowsChanged())},t.prototype.isRowsFiltered=function(){return!!this.filteredRows},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.createRowsVisibleIfRunner=function(){return null},t.prototype.runConditionsForRows=function(e,n){var r=!!this.survey&&this.survey.areInvisibleElementsShowing,o=r?null:this.createRowsVisibleIfRunner();this.filteredRows=[];var s=re.runConditionsForItems(this.rows,this.filteredRows,o,e,n,!r);return re.runEnabledConditionsForItems(this.rows,void 0,e,n),this.filteredRows.length===this.rows.length&&(this.filteredRows=null),s},t.prototype.runConditionsForColumns=function(e,n){var r=!!this.survey&&!this.survey.areInvisibleElementsShowing,o=r&&this.columnsVisibleIf?new Ue(this.columnsVisibleIf):null;return re.runConditionsForItems(this.columns,void 0,o,e,n,this.shouldRunColumnExpression())},t.prototype.clearInvisibleColumnValues=function(){},t.prototype.clearInvisibleValuesInRows=function(){},t.prototype.needResponsiveWidth=function(){return!0},Object.defineProperty(t.prototype,"columnsAutoWidth",{get:function(){return!this.isMobile&&!this.columns.some(function(e){return!!e.width})},enumerable:!1,configurable:!0}),t.prototype.getTableCss=function(){var e;return new _().append(this.cssClasses.root).append(this.cssClasses.columnsAutoWidth,this.columnsAutoWidth).append(this.cssClasses.noHeader,!this.showHeader).append(this.cssClasses.hasFooter,!!(!((e=this.renderedTable)===null||e===void 0)&&e.showAddRowOnBottom)).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,this.verticalAlign==="top").append(this.cssClasses.rootVerticalAlignMiddle,this.verticalAlign==="middle").toString()},Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth")||""},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth")||""},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayMode",{get:function(){return this.getPropertyValue("displayMode")},set:function(e){this.setPropertyValue("displayMode",e)},enumerable:!1,configurable:!0}),t.prototype.getCellAriaLabel=function(e,n){var r=(this.getLocalizationString("matrix_row")||"row").toLocaleLowerCase(),o=(this.getLocalizationString("matrix_column")||"column").toLocaleLowerCase();return r+" "+e+", "+o+" "+n},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getIsMobile=function(){return this.displayMode=="auto"?i.prototype.getIsMobile.call(this):this.displayMode==="list"},Ve([x()],t.prototype,"verticalAlign",void 0),Ve([x()],t.prototype,"alternateRows",void 0),t}(Be);j.addClass("matrixbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"columnsVisibleIf:condition","rowsVisibleIf:condition","columnMinWidth",{name:"showHeader:boolean",default:!0},{name:"verticalAlign",choices:["top","middle"],default:"middle"},{name:"alternateRows:boolean",default:!1},{name:"displayMode",default:"auto",choices:["auto","table","list"],visible:!1}],void 0,"question");var Ze=function(){function i(){}return i}(),cn=function(){function i(t,e){this.name=t,this.returnDisplayValue=e,this.isExists=!1,this.canProcess=!0}return i}(),qt=function(){function i(){this._unObservableValues=[void 0]}return Object.defineProperty(i.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(t){this._unObservableValues[0]=t},enumerable:!1,configurable:!0}),i.prototype.process=function(t,e,n){if(e===void 0&&(e=!1),n===void 0&&(n=!1),this.hasAllValuesOnLastRunValue=!0,!t||!this.onProcess)return t;for(var r=this.getItems(t),o=r.length-1;o>=0;o--){var s=r[o],u=this.getName(t.substring(s.start+1,s.end));if(u){var d=new cn(u,e);if(this.onProcess(d),!d.isExists){d.canProcess&&(this.hasAllValuesOnLastRunValue=!1);continue}h.isValueEmpty(d.value)&&(this.hasAllValuesOnLastRunValue=!1);var y=h.isValueEmpty(d.value)?"":d.value;n&&(y=encodeURIComponent(y)),t=t.substring(0,s.start)+y+t.substring(s.end+1)}}return t},i.prototype.processValue=function(t,e){var n=new cn(t,e);return this.onProcess&&this.onProcess(n),n},Object.defineProperty(i.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),i.prototype.getItems=function(t){for(var e=[],n=t.length,r=-1,o="",s=0;s<n;s++)if(o=t[s],o=="{"&&(r=s),o=="}"){if(r>-1){var u=new Ze;u.start=r,u.end=s,e.push(u)}r=-1}return e},i.prototype.getName=function(t){if(t)return t.trim()},i}(),yr=function(){function i(t){var e=this;this.variableName=t,this.textPreProcessor=new qt,this.textPreProcessor.onProcess=function(n){e.getProcessedTextValue(n)}}return i.prototype.processValue=function(t,e){return this.textPreProcessor.processValue(t,e)},Object.defineProperty(i.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),i.prototype.getValues=function(){return this.panel?this.panel.getValue():null},i.prototype.getQuestionByName=function(t){return this.panel?this.panel.getQuestionByValueName(t):null},i.prototype.getParentTextProcessor=function(){return null},i.prototype.onCustomProcessText=function(t){return!1},i.prototype.getQuestionDisplayText=function(t){return t.displayValue},i.prototype.getProcessedTextValue=function(t){if(t&&!this.onCustomProcessText(t)){var e=new Re().getFirstName(t.name);if(t.isExists=e==this.variableName,t.canProcess=t.isExists,!!t.canProcess){t.name=t.name.replace(this.variableName+".","");var e=new Re().getFirstName(t.name),n=this.getQuestionByName(e),r={};if(n)r[e]=t.returnDisplayValue?this.getQuestionDisplayText(n):n.value;else{var o=this.panel?this.getValues():null;o&&(r[e]=o[e])}t.value=new Re().getValue(t.name,r)}}},i.prototype.processText=function(t,e){return this.survey&&this.survey.isDesignMode?t:(t=this.textPreProcessor.process(t,e),t=this.processTextCore(this.getParentTextProcessor(),t,e),this.processTextCore(this.survey,t,e))},i.prototype.processTextEx=function(t){t.text=this.processText(t.text,t.returnDisplayValue);var e=this.textPreProcessor.hasAllValuesOnLastRun,n={hasAllValuesOnLastRun:!0,text:t.text};return this.survey&&(n=this.survey.processTextEx(t)),n.hasAllValuesOnLastRun=n.hasAllValuesOnLastRun&&e,n},i.prototype.processTextCore=function(t,e,n){return t?t.processText(e,n):e},i}(),Zt=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Va=function(){function i(t,e){this.name=t,this.json=e;var n=this;j.addClass(t,[],function(r){return po.Instance.createQuestion(r?r.name:"",n)},"question"),this.onInit()}return i.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},i.prototype.onCreated=function(t){this.json.onCreated&&this.json.onCreated(t)},i.prototype.onLoaded=function(t){this.json.onLoaded&&this.json.onLoaded(t)},i.prototype.onAfterRender=function(t,e){this.json.onAfterRender&&this.json.onAfterRender(t,e)},i.prototype.onAfterRenderContentElement=function(t,e,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(t,e,n)},i.prototype.onUpdateQuestionCssClasses=function(t,e,n){this.json.onUpdateQuestionCssClasses&&this.json.onUpdateQuestionCssClasses(t,e,n)},i.prototype.onSetQuestionValue=function(t,e){this.json.onSetQuestionValue&&this.json.onSetQuestionValue(t,e),this.json.onValueSet&&this.json.onValueSet(t,e)},i.prototype.onPropertyChanged=function(t,e,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(t,e,n)},i.prototype.onValueChanged=function(t,e,n){this.json.onValueChanged&&this.json.onValueChanged(t,e,n)},i.prototype.onValueChanging=function(t,e,n){return this.json.onValueChanging?this.json.onValueChanging(t,e,n):n},i.prototype.onGetErrorText=function(t){if(this.json.getErrorText)return this.json.getErrorText(t)},i.prototype.onItemValuePropertyChanged=function(t,e,n,r,o){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(t,{obj:e,propertyName:n,name:r,newValue:o})},i.prototype.getDisplayValue=function(t,e,n){return this.json.getDisplayValue?this.json.getDisplayValue(n):n.getDisplayValue(t,e)},Object.defineProperty(i.prototype,"defaultQuestionTitle",{get:function(){return this.json.defaultQuestionTitle},enumerable:!1,configurable:!0}),i.prototype.setValueToQuestion=function(t){var e=this.json.valueToQuestion||this.json.setValue;return e?e(t):t},i.prototype.getValueFromQuestion=function(t){var e=this.json.valueFromQuestion||this.json.getValue;return e?e(t):t},Object.defineProperty(i.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),i.prototype.getDynamicProperties=function(){return Array.isArray(this.dynamicProperties)||(this.dynamicProperties=this.calcDynamicProperties()),this.dynamicProperties},i.prototype.calcDynamicProperties=function(){var t=this.json.inheritBaseProps;if(!t||!this.json.questionJSON)return[];var e=this.json.questionJSON.type;if(!e)return[];if(Array.isArray(t)){var n=[];return t.forEach(function(s){var u=j.findProperty(e,s);u&&n.push(u)}),n}var r=[];for(var o in this.json.questionJSON)r.push(o);return j.getDynamicPropertiesByTypes(this.name,e,r)},i}(),po=function(){function i(){this.customQuestionValues=[]}return i.prototype.add=function(t){if(t){var e=t.name;if(!e)throw"Attribute name is missed";if(e=e.toLowerCase(),this.getCustomQuestionByName(e))throw"There is already registered custom question with name '"+e+"'";if(j.findClass(e))throw"There is already class with name '"+e+"'";var n=new Va(e,t);this.onAddingJson&&this.onAddingJson(e,n.isComposite),this.customQuestionValues.push(n)}},i.prototype.remove=function(t){if(!t)return!1;var e=this.getCustomQuestionIndex(t.toLowerCase());return e<0?!1:(this.removeByIndex(e),!0)},Object.defineProperty(i.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),i.prototype.getCustomQuestionByName=function(t){var e=this.getCustomQuestionIndex(t);return e>=0?this.customQuestionValues[e]:void 0},i.prototype.getCustomQuestionIndex=function(t){for(var e=0;e<this.customQuestionValues.length;e++)if(this.customQuestionValues[e].name===t)return e;return-1},i.prototype.removeByIndex=function(t){j.removeClass(this.customQuestionValues[t].name),this.customQuestionValues.splice(t,1)},i.prototype.clear=function(t){for(var e=this.customQuestionValues.length-1;e>=0;e--)(t||!this.customQuestionValues[e].json.internal)&&this.removeByIndex(e)},i.prototype.createQuestion=function(t,e){return e.isComposite?this.createCompositeModel(t,e):this.createCustomModel(t,e)},i.prototype.createCompositeModel=function(t,e){return this.onCreateComposite?this.onCreateComposite(t,e):new Ea(t,e)},i.prototype.createCustomModel=function(t,e){return this.onCreateCustom?this.onCreateCustom(t,e):new Oa(t,e)},i.Instance=new i,i}(),Sa=function(i){Zt(t,i);function t(e,n){var r=i.call(this,e)||this;return r.customQuestion=n,Fe.createProperties(r),_e.CreateDisabledDesignElements=!0,r.locQuestionTitle=r.createLocalizableString("questionTitle",r),r.locQuestionTitle.setJson(r.customQuestion.defaultQuestionTitle),r.createWrapper(),_e.CreateDisabledDesignElements=!1,r.customQuestion&&r.customQuestion.onCreated(r),r}return t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStrsChanged()},t.prototype.localeChanged=function(){i.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().localeChanged()},t.prototype.getDefaultTitle=function(){return this.locQuestionTitle.isEmpty?i.prototype.getDefaultTitle.call(this):this.getProcessedText(this.locQuestionTitle.textOrHtml)},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.getElement()&&this.getElement().addUsedLocales(e)},t.prototype.needResponsiveWidth=function(){var e=this.getElement();return e?e.needResponsiveWidth():!1},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(e,n,r){i.prototype.onPropertyValueChanged.call(this,e,n,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,e,r)},t.prototype.itemValuePropertyChanged=function(e,n,r,o){i.prototype.itemValuePropertyChanged.call(this,e,n,r,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,e,e.ownerPropertyName,n,o)},t.prototype.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this);var e=this.getElement();e&&e.onFirstRendering()},t.prototype.onHidingContent=function(){i.prototype.onHidingContent.call(this);var e=this.getElement();e&&e.onHidingContent()},t.prototype.getProgressInfo=function(){var e=i.prototype.getProgressInfo.call(this);return this.getElement()&&(e=this.getElement().getProgressInfo()),this.isRequired&&e.requiredQuestionCount==0&&(e.requiredQuestionCount=1,this.isEmpty()||(e.answeredQuestionCount=1)),e},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(e,n){this.isSettingValOnLoading=!0,i.prototype.setSurveyImpl.call(this,e,n),this.initElement(this.getElement()),this.isSettingValOnLoading=!1},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.customQuestion&&this.customQuestion.onAfterRender(this,e)},t.prototype.onUpdateQuestionCssClasses=function(e,n){this.customQuestion&&this.customQuestion.onUpdateQuestionCssClasses(this,e,n)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.updateElementCss(),this.customQuestion&&this.customQuestion.onSetQuestionValue(this,e)},t.prototype.setNewValue=function(e){i.prototype.setNewValue.call(this,e),this.updateElementCss()},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),this.customQuestion){var o=this.customQuestion.onGetErrorText(this);o&&e.push(new ot(o,this))}},t.prototype.getSurveyData=function(){return this},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,n,r,o){if(this.data){this.customQuestion&&this.customQuestion.onValueChanged(this,e,n);var s=this.convertDataName(e),u=this.convertDataValue(e,n);this.valueToDataCallback&&(u=this.valueToDataCallback(u)),this.data.setValue(s,u,r,o),this.updateIsAnswered(),this.updateElementCss()}},t.prototype.getQuestionByName=function(e){},t.prototype.isValueChanging=function(e,n){if(this.customQuestion){var r=n;if(n=this.customQuestion.onValueChanging(this,e,n),!h.isTwoValueEquals(n,r)){var o=this.getQuestionByName(e);if(o)return o.value=n,!0}}return!1},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,n){return n},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,n){this.data&&this.data.setVariable(e,n)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,n,r){this.data&&this.data.setComment(this.getValueName(),n,r)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.findQuestionByName=function(e){return this.data?this.data.findQuestionByName(e):null},t.prototype.getEditingSurveyElement=function(){},t.prototype.addElement=function(e,n){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getColumsForElement=function(e){return[]},t.prototype.updateColumns=function(){},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.onQuestionValueChanged=function(e){},t.prototype.getQuestionErrorLocation=function(){return this.getErrorLocation()},t.prototype.getContentDisplayValueCore=function(e,n,r){return r?this.customQuestion.getDisplayValue(e,n,r):i.prototype.getDisplayValueCore.call(this,e,n)},t}(Be),Oa=function(i){Zt(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getTemplate=function(){return"custom"},t.prototype.getDynamicProperties=function(){return this.customQuestion.getDynamicProperties()||[]},t.prototype.getDynamicType=function(){return this.questionWrapper?this.questionWrapper.getType():"question"},t.prototype.getOriginalObj=function(){return this.questionWrapper},t.prototype.createWrapper=function(){var e=this;this.questionWrapper=this.createQuestion(),this.createDynamicProperties(this.questionWrapper),this.getDynamicProperties().length>0&&(this.questionWrapper.onPropertyValueChangedCallback=function(n,r,o,s,u){var d=e.getDynamicProperty(n);d&&e.propertyValueChanged(n,r,o,u)})},t.prototype.getDynamicProperty=function(e){for(var n=this.getDynamicProperties(),r=0;r<n.length;r++)if(n[r].name===e)return n[r];return null},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(e,n)},t.prototype.getQuestionByName=function(e){return this.contentQuestion},t.prototype.getDefaultTitle=function(){return this.hasJSONTitle&&this.contentQuestion?this.getProcessedText(this.contentQuestion.title):i.prototype.getDefaultTitle.call(this)},t.prototype.setValue=function(e,n,r,o){this.isValueChanging(e,n)||i.prototype.setValue.call(this,e,n,r,o)},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),this.survey&&!this.isEmpty()&&this.setValue(this.name,this.value,!1,this.allowNotifyValueChanged)},t.prototype.hasErrors=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=null),!this.contentQuestion)return!1;var r=this.contentQuestion.hasErrors(e,n);this.errors=[];for(var o=0;o<this.contentQuestion.errors.length;o++)this.errors.push(this.contentQuestion.errors[o]);return r||(r=i.prototype.hasErrors.call(this,e,n)),this.updateElementCss(),r},t.prototype.focus=function(e){e===void 0&&(e=!1),this.contentQuestion?this.contentQuestion.focus(e):i.prototype.focus.call(this,e)},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.contentQuestion&&this.contentQuestion.afterRender(e)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this,n=this.customQuestion.json,r=null;if(n.questionJSON){this.hasJSONTitle=!!n.questionJSON.title;var o=n.questionJSON.type;if(!o||!j.findClass(o))throw"type attribute in questionJSON is empty or incorrect";r=j.createClass(o),r.fromJSON(n.questionJSON),r=this.checkCreatedQuestion(r)}else n.createQuestion&&(r=this.checkCreatedQuestion(n.createQuestion()));return this.initElement(r),r&&(r.isContentElement=!0,r.name||(r.name="question"),r.onUpdateCssClassesCallback=function(s){e.onUpdateQuestionCssClasses(r,s)},r.hasCssErrorCallback=function(){return e.errors.length>0},r.setValueChangedDirectlyCallback=function(s){e.setValueChangedDirectly(s)}),r},t.prototype.checkCreatedQuestion=function(e){return e&&(e.isQuestion||(Array.isArray(e.questions)&&e.questions.length>0?e=e.questions[0]:e=j.createClass("text"),He.error("Could not create component: '"+this.getType()+"'. questionJSON should be a question.")),e)},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.getContentQuestionValue())},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.contentQuestion&&this.contentQuestion.runCondition(e,n)},t.prototype.convertDataName=function(e){var n=this.contentQuestion;if(!n||e===this.getValueName())return i.prototype.convertDataName.call(this,e);var r=e.replace(n.getValueName(),this.getValueName());return r.indexOf(this.getValueName())==0?r:i.prototype.convertDataName.call(this,e)},t.prototype.convertDataValue=function(e,n){return this.convertDataName(e)==i.prototype.convertDataName.call(this,e)?this.getContentQuestionValue():n},t.prototype.getContentQuestionValue=function(){if(this.contentQuestion){var e=this.contentQuestion.value;return this.customQuestion&&(e=this.customQuestion.getValueFromQuestion(e)),e}},t.prototype.setContentQuestionValue=function(e){this.contentQuestion&&(this.customQuestion&&(e=this.customQuestion.setValueToQuestion(e)),this.contentQuestion.value=e)},t.prototype.canSetValueToSurvey=function(){return!1},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),!this.isLoadingFromJson&&this.contentQuestion&&!this.isTwoValueEquals(this.getContentQuestionValue(),e)&&this.setContentQuestionValue(this.getUnbindValue(e))},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(e)},t.prototype.getValueCore=function(){return this.contentQuestion?this.getContentQuestionValue():i.prototype.getValueCore.call(this)},t.prototype.setValueChangedDirectly=function(e){this.isSettingValueChanged||(this.isSettingValueChanged=!0,i.prototype.setValueChangedDirectly.call(this,e),this.contentQuestion&&this.contentQuestion.setValueChangedDirectly(e),this.isSettingValueChanged=!1)},t.prototype.createDynamicProperties=function(e){if(e){var n=this.getDynamicProperties();Array.isArray(n)&&j.addDynamicPropertiesIntoObj(this,e,n)}},t.prototype.initElement=function(e){var n=this;i.prototype.initElement.call(this,e),e&&(e.parent=this,e.afterRenderQuestionCallback=function(r,o){n.customQuestion&&n.customQuestion.onAfterRenderContentElement(n,r,o)})},t.prototype.updateElementCss=function(e){this.contentQuestion&&this.questionWrapper.updateElementCss(e),i.prototype.updateElementCss.call(this,e)},t.prototype.updateElementCssCore=function(e){this.contentQuestion&&(e=this.contentQuestion.cssClasses),i.prototype.updateElementCssCore.call(this,e)},t.prototype.getDisplayValueCore=function(e,n){return i.prototype.getContentDisplayValueCore.call(this,e,n,this.contentQuestion)},t}(Sa),Ku=function(i){Zt(t,i);function t(e,n){var r=i.call(this,n)||this;return r.composite=e,r.variableName=n,r}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.composite.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.composite.contentPanel},enumerable:!1,configurable:!0}),t}(yr),Ea=function(i){Zt(t,i);function t(e,n){var r=i.call(this,e,n)||this;return r.customQuestion=n,r.settingNewValue=!1,r.textProcessing=new Ku(r,t.ItemVariableName),r}return t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},t.prototype.getCssRoot=function(e){return new _().append(i.prototype.getCssRoot.call(this,e)).append(e.composite).toString()},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=i.prototype.hasErrors.call(this,e,n);return this.contentPanel&&this.contentPanel.hasErrors(e,!1,n)||r},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e),this.contentPanel&&this.contentPanel.updateElementCss(e)},t.prototype.dispose=function(){this.unConnectEditingObj(),i.prototype.dispose.call(this)},t.prototype.updateEditingObj=function(){var e=this,n,r=(n=this.data)===null||n===void 0?void 0:n.getEditingSurveyElement();if(r){var o=r[this.getValueName()];return o&&!o.onPropertyChanged&&(o=void 0),o!==this.editingObjValue&&(this.unConnectEditingObj(),this.editingObjValue=o,o&&(this.onEditingObjPropertyChanged=function(s,u){e.setNewValueIntoQuestion(u.name,e.editingObjValue[u.name])},o.onPropertyChanged.add(this.onEditingObjPropertyChanged))),this.editingObjValue}},t.prototype.unConnectEditingObj=function(){this.editingObjValue&&!this.editingObjValue.isDisposed&&this.editingObjValue.onPropertyChanged.remove(this.onEditingObjPropertyChanged)},t.prototype.getEditingSurveyElement=function(){return this.editingObjValue},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.findQuestionByName=function(e){var n=this.getQuestionByName(e);return n||i.prototype.findQuestionByName.call(this,e)},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e);for(var n=this.contentPanel.questions,r=0;r<n.length;r++)n[r].clearValueIfInvisible(e)},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n);for(var r=this.contentPanel.questions,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,n)},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.createPanel=function(){var e=this,n=j.createClass("panel");n.showQuestionNumbers="off",n.renderWidth="100%";var r=this.customQuestion.json;return r.elementsJSON&&n.fromJSON({elements:r.elementsJSON}),r.createElements&&r.createElements(n,this),this.initElement(n),n.readOnly=this.isReadOnly,n.questions.forEach(function(o){return o.onUpdateCssClassesCallback=function(s){e.onUpdateQuestionCssClasses(o,s)}}),this.setAfterRenderCallbacks(n),n},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateValueFromSurvey=function(e,n){n===void 0&&(n=!1),this.updateEditingObj(),i.prototype.updateValueFromSurvey.call(this,e,n)},t.prototype.onSurveyLoad=function(){if(this.isSettingValOnLoading=!0,this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),i.prototype.onSurveyLoad.call(this),this.contentPanel){var e=this.getContentPanelValue();h.isValueEmpty(e)||(this.value=e)}this.isSettingValOnLoading=!1},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var n=e.elements,r=0;r<n.length;r++){var o=n[r];o.isPanel?this.setIsContentElement(o):o.isContentElement=!0}},t.prototype.setVisibleIndex=function(e){var n=i.prototype.setVisibleIndex.call(this,e);return this.isVisible&&this.contentPanel&&(n+=this.contentPanel.setVisibleIndex(e)),n},t.prototype.runCondition=function(e,n){if(i.prototype.runCondition.call(this,e,n),this.contentPanel){var r=e[t.ItemVariableName];e[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(e,n),delete e[t.ItemVariableName],r&&(e[t.ItemVariableName]=r)}},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e);var n=e||{};this.contentPanel&&this.contentPanel.questions.forEach(function(r){r.onSurveyValueChanged(n[r.getValueName()])})},t.prototype.getValue=function(e){var n=this.value;return n?n[e]:null},t.prototype.getQuestionByName=function(e){return this.contentPanel?this.contentPanel.getQuestionByName(e):void 0},t.prototype.setValue=function(e,n,r,o){if(this.settingNewValue){this.setNewValueIntoQuestion(e,n);return}if(!this.isValueChanging(e,n)){if(this.settingNewValue=!0,!this.isEditingSurveyElement&&this.contentPanel)for(var s=0,u=this.contentPanel.questions.length+1;s<u&&this.updateValueCoreWithPanelValue();)s++;this.setNewValueIntoQuestion(e,n),i.prototype.setValue.call(this,e,n,r,o),this.settingNewValue=!1,this.runPanelTriggers(t.ItemVariableName+"."+e,n)}},t.prototype.runPanelTriggers=function(e,n){this.contentPanel&&this.contentPanel.questions.forEach(function(r){r.runTriggers(e,n)})},t.prototype.getFilteredValues=function(){var e=this.data?this.data.getFilteredValues():{};return this.contentPanel&&(e[t.ItemVariableName]=this.contentPanel.getValue()),e},t.prototype.updateValueCoreWithPanelValue=function(){var e=this.getContentPanelValue();return this.isTwoValueEquals(this.getValueCore(),e)?!1:(this.setValueCore(e),!0)},t.prototype.getContentPanelValue=function(e){return e||(e=this.contentPanel.getValue()),this.customQuestion.setValueToQuestion(e)},t.prototype.getValueForContentPanel=function(e){return this.customQuestion.getValueFromQuestion(e)},t.prototype.setNewValueIntoQuestion=function(e,n){var r=this.getQuestionByName(e);r&&!this.isTwoValueEquals(n,r.value)&&(r.value=n)},t.prototype.addConditionObjectsByContext=function(e,n){if(this.contentPanel)for(var r=this.contentPanel.questions,o=this.name,s=this.title,u=0;u<r.length;u++)e.push({name:o+"."+r[u].name,text:s+"."+r[u].title,question:r[u]})},t.prototype.collectNestedQuestionsCore=function(e,n){this.contentPanel&&this.contentPanel.questions.forEach(function(r){return r.collectNestedQuestions(e,n)})},t.prototype.convertDataValue=function(e,n){var r=this.contentPanel&&!this.isEditingSurveyElement?this.contentPanel.getValue():this.getValueForContentPanel(this.value);return r||(r={}),r.getType||(r=h.getUnbindValue(r)),this.isValueEmpty(n)&&!this.isEditingSurveyElement?delete r[e]:r[e]=n,this.getContentPanelValue(r)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),this.setValuesIntoQuestions(e),!this.isEditingSurveyElement&&this.contentPanel&&(e=this.getContentPanelValue()),i.prototype.setQuestionValue.call(this,e,n)},t.prototype.setValuesIntoQuestions=function(e){if(this.contentPanel){e=this.getValueForContentPanel(e);var n=this.settingNewValue;this.settingNewValue=!0;for(var r=this.contentPanel.questions,o=0;o<r.length;o++){var s=r[o].getValueName(),u=e?e[s]:void 0,d=r[o];!this.isTwoValueEquals(d.value,u)&&(u!==void 0||!d.isEmpty())&&(d.value=u)}this.settingNewValue=n}},t.prototype.getDisplayValueCore=function(e,n){return i.prototype.getContentDisplayValueCore.call(this,e,n,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var n=this;if(!(!e||!this.customQuestion))for(var r=e.questions,o=0;o<r.length;o++)r[o].afterRenderQuestionCallback=function(s,u){n.customQuestion.onAfterRenderContentElement(n,s,u)}},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),t.ItemVariableName="composite",t}(Sa),Se=function(){function i(){}return Object.defineProperty(i,"DefaultChoices",{get:function(){var t=k("choices_Item");return[t+"1",t+"2",t+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultColums",{get:function(){var t=k("matrix_column")+" ";return[t+"1",t+"2",t+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultRows",{get:function(){var t=k("matrix_row")+" ";return[t+"1",t+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultMutlipleTextItems",{get:function(){var t=k("multipletext_itemname");return[t+"1",t+"2"]},enumerable:!1,configurable:!0}),i.prototype.registerQuestion=function(t,e,n){n===void 0&&(n=!0),pn.Instance.registerElement(t,e,n)},i.prototype.registerCustomQuestion=function(t){pn.Instance.registerCustomQuestion(t)},i.prototype.unregisterElement=function(t,e){e===void 0&&(e=!1),pn.Instance.unregisterElement(t,e)},i.prototype.clear=function(){pn.Instance.clear()},i.prototype.getAllTypes=function(){return pn.Instance.getAllTypes()},i.prototype.createQuestion=function(t,e){return pn.Instance.createElement(t,e)},i.Instance=new i,i}(),pn=function(){function i(){var t=this;this.creatorHash={},this.registerCustomQuestion=function(e,n){n===void 0&&(n=!0);var r=function(o){var s=j.createClass(e);return s&&(s.name=o),s};t.registerElement(e,r,n)}}return i.prototype.registerElement=function(t,e,n){n===void 0&&(n=!0),this.creatorHash[t]={showInToolbox:n,creator:e}},i.prototype.clear=function(){this.creatorHash={}},i.prototype.unregisterElement=function(t,e){e===void 0&&(e=!1),delete this.creatorHash[t],e&&j.removeClass(t)},i.prototype.getAllToolboxTypes=function(){return this.getAllTypesCore(!0)},i.prototype.getAllTypes=function(){return this.getAllTypesCore(!1)},i.prototype.createElement=function(t,e){var n=this.creatorHash[t];if(n&&n.creator)return n.creator(e);var r=po.Instance.getCustomQuestionByName(t);return r?po.Instance.createQuestion(e,r):null},i.prototype.getAllTypesCore=function(t){var e=new Array;for(var n in this.creatorHash)(!t||this.creatorHash[n].showInToolbox)&&e.push(n);return e.sort()},i.Instance=new i,i}(),Yu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ps=function(i){Yu(t,i);function t(e){var n=i.call(this,e)||this;return n.createLocalizableString("format",n),n.registerPropertyChangedHandlers(["expression"],function(){n.expressionRunner&&(n.expressionRunner=n.createRunner())}),n.registerPropertyChangedHandlers(["format","currency","displayStyle"],function(){n.updateFormatedValue()}),n}return t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),!(!this.expression||this.expressionIsRunning||!this.runIfReadOnly&&this.isReadOnly)&&(this.locCalculation(),this.expressionRunner||(this.expressionRunner=this.createRunner()),this.expressionRunner.run(e,n))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1},t.prototype.createRunner=function(){var e=this,n=this.createExpressionRunner(this.expression);return n.onRunComplete=function(r){e.value=e.roundValue(r),e.unlocCalculation()},n},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runIfReadOnly",{get:function(){return this.runIfReadOnlyValue===!0},set:function(e){this.runIfReadOnlyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatedValue",{get:function(){return this.getPropertyValue("formatedValue","")},enumerable:!1,configurable:!0}),t.prototype.updateFormatedValue=function(){this.setPropertyValue("formatedValue",this.getDisplayValueCore(!1,this.value))},t.prototype.onValueChanged=function(){this.updateFormatedValue()},t.prototype.updateValueFromSurvey=function(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),this.updateFormatedValue()},t.prototype.getDisplayValueCore=function(e,n){var r=n??this.defaultValue,o="";if(!this.isValueEmpty(r)){var s=this.getValueAsStr(r);o=this.format?this.format.format(s):s}return this.survey&&(o=this.survey.getExpressionDisplayValue(this,r,o)),o},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){fo().indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping")},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(e){this.setPropertyValue("precision",e)},enumerable:!1,configurable:!0}),t.prototype.roundValue=function(e){if(e!==1/0)return this.precision<0||!h.isNumber(e)?e:parseFloat(e.toFixed(this.precision))},t.prototype.getValueAsStr=function(e){if(this.displayStyle=="date"){var n=D("question-expression",e);if(n&&n.toLocaleDateString)return n.toLocaleDateString()}if(this.displayStyle!="none"&&h.isNumber(e)){var r=this.getLocale();r||(r="en");var o={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(o.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(o.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(r,o)}return e.toString()},t}(Be);function fo(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]}j.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return fo()},default:"USD",visibleIf:function(i){return i.displayStyle==="currency"}},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"precision:number",default:-1,category:"data"},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"resetValueIf",visible:!1},{name:"setValueIf",visible:!1},{name:"setValueExpression",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],function(){return new ps("")},"question"),Se.Instance.registerQuestion("expression",function(i){return new ps(i)});var Xu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();function ho(i,t,e,n){i.storeOthersAsComment=e?e.storeOthersAsComment:!1,(!i.choices||i.choices.length==0)&&i.choicesByUrl.isEmpty&&(i.choices=e.choices),i.choicesByUrl.isEmpty||i.choicesByUrl.run(n.getTextProcessor())}function ec(i,t,e,n){ho(i,t,e,n),i.locPlaceholder&&i.locPlaceholder.isEmpty&&!e.locPlaceholder.isEmpty&&(i.optionsCaption=e.optionsCaption)}var fs={dropdown:{onCellQuestionUpdate:function(i,t,e,n){ec(i,t,e,n)}},checkbox:{onCellQuestionUpdate:function(i,t,e,n){ho(i,t,e,n),i.colCount=t.colCount>-1?t.colCount:e.columnColCount}},radiogroup:{onCellQuestionUpdate:function(i,t,e,n){ho(i,t,e,n),i.colCount=t.colCount>-1?t.colCount:e.columnColCount}},tagbox:{onCellQuestionUpdate:function(i,t,e,n){ho(i,t,e,n)}},text:{},comment:{},boolean:{onCellQuestionUpdate:function(i,t,e,n){i.renderAs=t.renderAs}},expression:{},rating:{}},ri=function(i){Xu(t,i);function t(e,n,r){var o=i.call(this)||this;return o.indexValue=-1,o._hasVisibleCell=!0,o.isColumnsVisibleIf=!0,o.previousChoicesId=void 0,o.colOwnerValue=r,o.createLocalizableString("totalFormat",o),o.createLocalizableString("cellHint",o),o.registerPropertyChangedHandlers(["showInMultipleColumns"],function(){o.doShowInMultipleColumnsChanged()}),o.registerPropertyChangedHandlers(["visible"],function(){o.doColumnVisibilityChanged()}),o.updateTemplateQuestion(void 0,e,n),o}return t.getColumnTypes=function(){var e=[];for(var n in fs)e.push(n);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var e=this;i.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return e.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return this.cellType==="default"?"question":this.calcCellQuestionType(null)},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,e&&(this.updateTemplateQuestion(),this.setParentQuestionToTemplate(this.templateQuestion))},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.templateQuestion.addUsedLocales(e)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!1,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(e){e=e.toLocaleLowerCase(),this.updateTemplateQuestion(e),this.setPropertyValue("cellType",e),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isColumnVisible",{get:function(){return this.isDesignMode?!0:this.visible&&this.hasVisibleCell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.templateQuestion.visible},set:function(e){this.templateQuestion.visible=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e},enumerable:!1,configurable:!0}),t.prototype.getVisibleMultipleChoices=function(){var e=this.templateQuestion.visibleChoices;if(!Array.isArray(e))return[];if(!Array.isArray(this._visiblechoices))return e;for(var n=new Array,r=0;r<e.length;r++){var o=e[r];this._visiblechoices.indexOf(o.value)>-1&&n.push(o)}return n},Object.defineProperty(t.prototype,"getVisibleChoicesInCell",{get:function(){if(Array.isArray(this._visiblechoices))return this._visiblechoices;var e=this.templateQuestion.visibleChoices;return Array.isArray(e)?e:[]},enumerable:!1,configurable:!0}),t.prototype.setVisibleChoicesInCell=function(e){this._visiblechoices=e},Object.defineProperty(t.prototype,"isFilteredMultipleColumns",{get:function(){if(!this.showInMultipleColumns)return!1;var e=this.templateQuestion.choices;if(!Array.isArray(e))return!1;for(var n=0;n<e.length;n++)if(e[n].visibleIf)return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderedRequired",{get:function(){return this.getPropertyValue("isRenderedRequired",this.isRequired)},set:function(e){this.setPropertyValue("isRenderedRequired",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsRenderedRequired=function(e){this.isRenderedRequired=e||this.isRequired},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.isRenderedRequired&&this.getSurvey()?this.getSurvey().requiredText:this.templateQuestion.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetValueIf",{get:function(){return this.templateQuestion.resetValueIf},set:function(e){this.templateQuestion.resetValueIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.templateQuestion.defaultValueExpression},set:function(e){this.templateQuestion.defaultValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueIf",{get:function(){return this.templateQuestion.setValueIf},set:function(e){this.templateQuestion.setValueIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueExpression",{get:function(){return this.templateQuestion.setValueExpression},set:function(e){this.templateQuestion.setValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUnique",{get:function(){return this.getPropertyValue("isUnique")},set:function(e){this.setPropertyValue("isUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns")},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return this.totalType!="none"||!!this.totalExpression},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellHint",{get:function(){return this.getLocalizableStringText("cellHint","")},set:function(e){this.setLocalizableStringText("cellHint",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCellHint",{get:function(){return this.getLocalizableString("cellHint")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(e){this.setPropertyValue("renderAs",e),this.templateQuestion&&(this.templateQuestion.renderAs=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalAlignment",{get:function(){return this.getPropertyValue("totalAlignment")},set:function(e){this.setPropertyValue("totalAlignment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){fo().indexOf(e)<0||this.setPropertyValue("totalCurrency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.templateQuestion.width},set:function(e){this.templateQuestion.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.colOwner?this.colOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.colOwner?this.colOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.colOwner?this.colOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var n=this.calcCellQuestionType(e),r=this.createNewQuestion(n);return this.callOnCellQuestionUpdate(r,e),r},t.prototype.startLoadingFromJson=function(e){i.prototype.startLoadingFromJson.call(this,e),e&&!e.cellType&&e.choices&&(e.cellType=this.colOwner.getCellType())},t.prototype.updateCellQuestion=function(e,n,r){r===void 0&&(r=null),this.setQuestionProperties(e,r)},t.prototype.callOnCellQuestionUpdate=function(e,n){var r=e.getType(),o=fs[r];o&&o.onCellQuestionUpdate&&o.onCellQuestionUpdate(e,this,this.colOwner,n)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var n=this.getDefaultCellQuestionType();return e&&this.colOwner&&(n=this.colOwner.getCustomCellType(this,e,n)),n},t.prototype.getDefaultCellQuestionType=function(e){return e||(e=this.cellType),e!=="default"?e:this.colOwner?this.colOwner.getCellType():I.matrix.defaultCellType},t.prototype.updateTemplateQuestion=function(e,n,r){var o=this,s=this.getDefaultCellQuestionType(e),u=this.templateQuestion?this.templateQuestion.getType():"";s!==u&&(this.templateQuestion&&this.removeProperties(u),this.templateQuestionValue=this.createNewQuestion(s),this.templateQuestion.locOwner=this,this.addProperties(s),n&&(this.name=n),r?this.title=r:this.templateQuestion.locTitle.strChanged(),I.serialization.matrixDropdownColumnSerializeTitle&&(this.templateQuestion.locTitle.serializeCallBackText=!0),this.templateQuestion.onPropertyChanged.add(function(d,y){o.propertyValueChanged(y.name,y.oldValue,y.newValue,y.arrayChanges,y.target)}),this.templateQuestion.onItemValuePropertyChanged.add(function(d,y){o.doItemValuePropertyChanged(y.propertyName,y.obj,y.name,y.newValue,y.oldValue)}),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return o.getSurvey()}),this.templateQuestion.locTitle.strChanged())},t.prototype.createNewQuestion=function(e){var n=j.createClass(e);return n||(n=j.createClass("text")),n.loadingOwner=this,n.isEditableTemplateElement=!0,n.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(n),this.setParentQuestionToTemplate(n),n},t.prototype.setParentQuestionToTemplate=function(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)},t.prototype.setQuestionProperties=function(e,n){var r=this;if(n===void 0&&(n=null),this.templateQuestion){var o=new je().toJsonObject(this.templateQuestion,!0);if(n&&n(o),o.type=e.getType(),this.cellType==="default"&&this.colOwner&&this.colOwner.hasChoices()&&delete o.choices,delete o.itemComponent,this.jsonObj&&o.type==="rating"&&Object.keys(this.jsonObj).forEach(function(u){o[u]=r.jsonObj[u]}),o.choicesOrder==="random"){o.choicesOrder="none";var s=this.templateQuestion.visibleChoices;Array.isArray(s)&&(o.choices=s)}new je().toObject(o,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=function(){if(r.isShowInMultipleColumns&&!(r.previousChoicesId&&r.previousChoicesId!==e.id)){r.previousChoicesId=e.id;var u=e.visibleChoices;r.templateQuestion.choices=u,r.propertyValueChanged("choices",u,u)}}}},t.prototype.propertyValueChanged=function(e,n,r,o,s){if(i.prototype.propertyValueChanged.call(this,e,n,r,o,s),e==="isRequired"&&this.updateIsRenderedRequired(r),!(!this.colOwner||this.isLoadingFromJson)){if(this.isShowInMultipleColumns){if(e==="choicesOrder")return;["visibleChoices","choices"].indexOf(e)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this)}j.hasOriginalProperty(this,e)&&this.colOwner.onColumnPropertyChanged(this,e,r)}},t.prototype.doItemValuePropertyChanged=function(e,n,r,o,s){j.hasOriginalProperty(n,r)&&this.colOwner!=null&&!this.isLoadingFromJson&&this.colOwner.onColumnItemValuePropertyChanged(this,e,n,r,o,s)},t.prototype.doShowInMultipleColumnsChanged=function(){this.colOwner!=null&&this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},t.prototype.doColumnVisibilityChanged=function(){this.colOwner!=null&&!this.isDesignMode&&this.colOwner.onColumnVisibilityChanged(this)},t.prototype.getProperties=function(e){return j.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var n=this.getProperties(e),r=0;r<n.length;r++){var o=n[r];delete this[o.name],o.serializationProperty&&delete this[o.serializationProperty]}},t.prototype.addProperties=function(e){var n=this.getProperties(e);j.addDynamicPropertiesIntoObj(this,this.templateQuestion,n)},t}(fe);j.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle",dependsOn:"name",onPropertyEditorUpdate:function(i,t){i&&t&&(t.placeholder=i.name)}},{name:"cellHint",serializationProperty:"locCellHint",visible:!1},{name:"cellType",default:"default",choices:function(){var i=ri.getColumnTypes();return i.splice(0,0,"default"),i}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean","isUnique:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"minWidth",onPropertyEditorUpdate:function(i,t){i&&t&&(t.value=i.minWidth)}},"width",{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},"visibleIf:condition","enableIf:condition","requiredIf:condition","resetValueIf:condition","setValueIf:condition","setValueExpression:expression",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(i){return i.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",visibleIf:function(i){return!i.isShowInMultipleColumns},default:"none",choices:["none","sum","count","min","max","avg"]},{name:"totalExpression:expression",visibleIf:function(i){return!i.isShowInMultipleColumns}},{name:"totalFormat",serializationProperty:"locTotalFormat",visibleIf:function(i){return i.hasTotal}},{name:"totalDisplayStyle",visibleIf:function(i){return i.hasTotal},default:"none",choices:["none","decimal","currency","percent"]},{name:"totalAlignment",visibleIf:function(i){return i.hasTotal},default:"auto",choices:["auto","left","center","right"]},{name:"totalCurrency",visibleIf:function(i){return i.hasTotal},choices:function(){return fo()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1,visibleIf:function(i){return i.hasTotal}},{name:"totalMinimumFractionDigits:number",default:-1,visibleIf:function(i){return i.hasTotal}},{name:"renderAs",default:"default",visible:!1}],function(){return new ri("")});var ds=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ii=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},tc=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function Ta(i,t,e){return i+(t?"-error":"")+(e?"-detail":"")}var _t=function(){function i(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isErrorsCell=!1,this.isDragHandlerCell=!1,this.isDetailRowCell=!1,this.classNameValue="",this.idValue=i.counter++}return Object.defineProperty(i.prototype,"requiredText",{get:function(){return this.column&&this.column.isRenderedRequired?this.column.requiredText:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasQuestion",{get:function(){return!!this.question&&!this.isErrorsCell},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){var t=this.question?this.question.id:this.idValue.toString();return this.isChoice&&(t+="-"+(Number.isInteger(this.choiceIndex)?"index"+this.choiceIndex.toString():this.item.id)),Ta(t,this.isErrorsCell,this.isDetailRowCell)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"item",{get:function(){return this.itemValue},set:function(t){this.itemValue=t,t&&(t.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isFirstChoice",{get:function(){return this.choiceIndex===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"className",{get:function(){var t=new _().append(this.classNameValue);return this.hasQuestion&&t.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),t.toString()},set:function(t){this.classNameValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cellQuestionWrapperClassName",{get:function(){return this.cell.getQuestionWrapperClassName(this.matrix.cssClasses.cellQuestionWrapper)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isVisible",{get:function(){var t;return!this.hasQuestion&&!this.isErrorsCell||!(!((t=this.matrix)===null||t===void 0)&&t.isMobile)||this.question.isVisible},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showResponsiveTitle",{get:function(){var t;return this.hasQuestion&&((t=this.matrix)===null||t===void 0?void 0:t.isMobile)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"responsiveTitleCss",{get:function(){return new _().append(this.matrix.cssClasses.cellResponsiveTitle).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"responsiveLocTitle",{get:function(){return this.cell.column.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"headers",{get:function(){if(this.cell&&this.cell.column){if(this.matrix.IsMultiplyColumn(this.cell.column))return this.item?this.item.locText.renderedHtml:"";var t=this.cell.column.cellHint;return t?t.trim()===""?"":this.cell.column.locCellHint.renderedHtml:this.hasQuestion&&this.question.isVisible&&this.question.title?this.question.title:this.cell.column.title}return this.hasQuestion&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||""},enumerable:!1,configurable:!0}),i.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},i.prototype.calculateFinalClassName=function(t){var e=this.cell.question.cssClasses,n=new _().append(e.itemValue,!!e).append(e.asCell,!!e);return n.append(t.cell,n.isEmpty()&&!!t).append(t.choiceCell,this.isChoice).toString()},i.prototype.focusIn=function(){this.question&&this.question.focusIn()},i.counter=1,i}(),hs=function(i){ds(t,i);function t(e,n){n===void 0&&(n=!1);var r=i.call(this)||this;return r.cssClasses=e,r.isDetailRow=n,r.hasEndActions=!1,r.isErrorsRow=!1,r.cells=[],r.idValue=t.counter++,r}return Object.defineProperty(t.prototype,"id",{get:function(){var e;return Ta(((e=this.row)===null||e===void 0?void 0:e.id)||this.idValue.toString(),this.isErrorsRow,this.isDetailRow)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){var e,n;return new _().append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.rowHasPanel,(e=this.row)===null||e===void 0?void 0:e.hasPanel).append(this.cssClasses.expandedRow,((n=this.row)===null||n===void 0?void 0:n.isDetailPanelShowing)&&!this.isDetailRow).append(this.cssClasses.rowHasEndActions,this.hasEndActions).append(this.cssClasses.ghostRow,this.isGhostRow).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()},enumerable:!1,configurable:!0}),t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t.prototype.focusCell=function(e){if(this.rootElement){var n=":scope td:nth-of-type("+(e+1)+") input, :scope td:nth-of-type("+(e+1)+") button",r=this.rootElement.querySelectorAll(n)[0];r&&r.focus()}},t.counter=1,ii([x({defaultValue:!1})],t.prototype,"isGhostRow",void 0),ii([x({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),ii([x({defaultValue:!0})],t.prototype,"visible",void 0),t}(fe),Ra=function(i){ds(t,i);function t(e){var n=i.call(this,e)||this;return n.isErrorsRow=!0,n}return Object.defineProperty(t.prototype,"attributes",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return new _().append(this.cssClasses.row).append(this.cssClasses.errorRow).toString()},enumerable:!1,configurable:!0}),t.prototype.onAfterCreated=function(){var e=this,n=function(){e.visible=e.cells.some(function(r){return r.question&&r.question.hasVisibleErrors})};this.cells.forEach(function(r){r.question&&r.question.registerFunctionOnPropertyValueChanged("hasVisibleErrors",n)}),n()},t}(hs),gs=function(i){ds(t,i);function t(e){var n=i.call(this)||this;return n.matrix=e,n._renderedRows=[],n.renderedRowsAnimation=new Nt(n.getRenderedRowsAnimationOptions(),function(r){n._renderedRows=r},function(){return n._renderedRows}),n.hasActionCellInRowsValues={},n.build(),n}return t.prototype.getIsAnimationAllowed=function(){return i.prototype.getIsAnimationAllowed.call(this)&&this.matrix.animationAllowed},t.prototype.getRenderedRowsAnimationOptions=function(){var e=this,n=function(o){o.querySelectorAll(":scope > td > *").forEach(function(s){Vt(s)})},r=function(o){o.querySelectorAll(":scope > td > *").forEach(function(s){Xe(s)})};return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(o){return o.getRootElement()},getLeaveOptions:function(){return{cssClass:e.cssClasses.rowLeave,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getEnterOptions:function(o,s){return{cssClass:e.cssClasses.rowEnter,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getKey:function(o){return o.id}}},t.prototype.updateRenderedRows=function(){this.renderedRows=this.rows},Object.defineProperty(t.prototype,"renderedRows",{get:function(){return this._renderedRows},set:function(e){this.renderedRowsAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTable",{get:function(){return this.getPropertyValue("showTable",!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRow",{get:function(){return this.getPropertyValue("showAddRow",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnTop",{get:function(){return this.getPropertyValue("showAddRowOnTop",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnBottom",{get:function(){return this.getPropertyValue("showAddRowOnBottom",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!1,configurable:!0}),t.prototype.isRequireReset=function(){return this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal},Object.defineProperty(t.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDragAndDrop",{get:function(){return this.matrix.isRowsDragAndDrop&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsTop",{get:function(){return this.matrix.getErrorLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsBottom",{get:function(){return this.matrix.getErrorLocation()==="bottom"},enumerable:!1,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()},t.prototype.updateShowTableAndAddRow=function(){var e=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue("showTable",e);var n=this.matrix.canAddRow&&e,r=n,o=n;r&&(this.matrix.getAddRowLocation()==="default"?r=!this.matrix.isColumnLayoutHorizontal:r=this.matrix.getAddRowLocation()!=="bottom"),o&&this.matrix.getAddRowLocation()!=="topBottom"&&(o=!r),this.setPropertyValue("showAddRow",this.matrix.canAddRow),this.setPropertyValue("showAddRowOnTop",r),this.setPropertyValue("showAddRowOnBottom",o)},t.prototype.onAddedRow=function(e,n){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var r=this.getRenderedRowIndexByIndex(n);this.rowsActions.splice(n,0,this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,r),this.updateShowTableAndAddRow()}},t.prototype.getRenderedRowIndexByIndex=function(e){for(var n=0,r=0,o=0;o<this.rows.length;o++){if(r===e){(this.rows[o].isErrorsRow||this.rows[o].isDetailRow)&&(n++,o+1<this.rows.length&&this.rows[o+1].isDetailRow&&n++);break}n++,!this.rows[o].isErrorsRow&&!this.rows[o].isDetailRow&&r++}return r<e?this.rows.length:n},t.prototype.getRenderedDataRowCount=function(){for(var e=0,n=0;n<this.rows.length;n++)!this.rows[n].isErrorsRow&&!this.rows[n].isDetailRow&&e++;return e},t.prototype.onRemovedRow=function(e){var n=this.getRenderedRowIndex(e);if(!(n<0)){this.rowsActions.splice(n,1);var r=1;n<this.rows.length-1&&this.showCellErrorsBottom&&this.rows[n+1].isErrorsRow&&r++,n<this.rows.length-1&&(this.rows[n+1].isDetailRow||this.showCellErrorsBottom&&n+1<this.rows.length-1&&this.rows[n+2].isDetailRow)&&r++,n>0&&this.showCellErrorsTop&&this.rows[n-1].isErrorsRow&&(n--,r++),this.rows.splice(n,r),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,n){var r=this.getRenderedRowIndex(e);if(!(r<0)){var o=r;this.showCellErrorsBottom&&o++;var s=o<this.rows.length-1&&this.rows[o+1].isDetailRow?o+1:-1;if(!(n&&s>-1||!n&&s<0))if(n){var u=this.createDetailPanelRow(e,this.rows[r]);this.rows.splice(o+1,0,u)}else this.rows.splice(s,1)}},t.prototype.focusActionCell=function(e,n){var r=this.rows[this.rows.length-1];if(this.matrix.isColumnLayoutHorizontal){var o=this.getRenderedRowIndex(e);r=this.rows[o]}r==null||r.focusCell(n)},t.prototype.getRenderedRowIndex=function(e){for(var n=0;n<this.rows.length;n++)if(this.rows[n].row==e)return n;return-1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,n=0;n<e.length;n++)this.rowsActions.push(this.buildRowActions(e[n]))},t.prototype.createRenderedRow=function(e,n){return n===void 0&&(n=!1),new hs(e,n)},t.prototype.createErrorRenderedRow=function(e){return new Ra(e)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader,n=e||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",n),!!n){if(this.headerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null,"action",this.cssClasses.actionsCellDrag)),this.hasActionCellInRows("start")&&this.headerRow.cells.push(this.createHeaderCell(null,"action")),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var r=0;r<this.matrix.columns.length;r++){var o=this.matrix.columns[r];o.isColumnVisible&&(this.matrix.IsMultiplyColumn(o)?this.createMutlipleColumnsHeader(o):this.headerRow.cells.push(this.createHeaderCell(o)))}else{for(var s=this.matrix.visibleRows,r=0;r<s.length;r++){var u=this.createTextCell(s[r].locText);this.setHeaderCellCssClasses(u),u.row=s[r],this.headerRow.cells.push(u)}if(this.matrix.hasFooter){var u=this.createTextCell(this.matrix.getFooterText());this.setHeaderCellCssClasses(u),this.headerRow.cells.push(u)}}this.hasActionCellInRows("end")&&this.headerRow.cells.push(this.createHeaderCell(null,"action"))}},t.prototype.buildFooter=function(){if(this.showFooter){if(this.footerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.footerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.footerRow.cells.push(this.createHeaderCell(null,"action")),this.matrix.hasRowText){var e=this.createTextCell(this.matrix.getFooterText());e.className=new _().append(e.className).append(this.cssClasses.footerTotalCell).toString(),this.footerRow.cells.push(e)}for(var n=this.matrix.visibleTotalRow.cells,r=0;r<n.length;r++){var o=n[r];if(o.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(o.column))this.createMutlipleColumnsFooter(this.footerRow,o);else{var s=this.createEditCell(o);o.column&&this.setCellWidth(o.column,s),s.className=new _().append(s.className).append(this.cssClasses.footerCell).toString(),this.footerRow.cells.push(s)}}this.hasActionCellInRows("end")&&this.footerRow.cells.push(this.createHeaderCell(null,"action"))}},t.prototype.buildRows=function(){this.blockAnimations();var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.rows=e,this.releaseAnimations()},t.prototype.hasActionCellInRows=function(e){return this.hasActionCellInRowsValues[e]===void 0&&(this.hasActionCellInRowsValues[e]=this.hasActionsCellInLocaltion(e)),this.hasActionCellInRowsValues[e]},t.prototype.hasActionsCellInLocaltion=function(e){var n=this;return e=="end"&&this.hasRemoveRows?!0:this.matrix.visibleRows.some(function(r,o){return!n.isValueEmpty(n.getRowActions(o,e))})},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,n=[],r=0;r<e.length;r++)this.addHorizontalRow(n,e[r]);return n},t.prototype.addHorizontalRow=function(e,n,r){r===void 0&&(r=-1);var o=this.createHorizontalRow(n),s=this.createErrorRow(o);if(o.row=n,r<0&&(r=e.length),this.matrix.isMobile){for(var u=[],d=0;d<o.cells.length;d++)this.showCellErrorsTop&&!s.cells[d].isEmpty&&u.push(s.cells[d]),u.push(o.cells[d]),this.showCellErrorsBottom&&!s.cells[d].isEmpty&&u.push(s.cells[d]);o.cells=u,e.splice(r,0,o)}else e.splice.apply(e,tc([r,0],this.showCellErrorsTop?[s,o]:[o,s])),r++;n.isDetailPanelShowing&&e.splice(r+1,0,this.createDetailPanelRow(n,o))},t.prototype.getRowDragCell=function(e){var n=new _t,r=this.matrix.lockedRowCount;return n.isDragHandlerCell=r<1||e>=r,n.isEmpty=!n.isDragHandlerCell,n.className=this.getActionsCellClassName(n),n.row=this.matrix.visibleRows[e],n},t.prototype.getActionsCellClassName=function(e){var n=this;e===void 0&&(e=null);var r=new _().append(this.cssClasses.actionsCell).append(this.cssClasses.actionsCellDrag,e==null?void 0:e.isDragHandlerCell).append(this.cssClasses.detailRowCell,e==null?void 0:e.isDetailRowCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal);if(e.isActionsCell){var o=e.item.value.actions;this.cssClasses.actionsCellPrefix&&o.forEach(function(s){r.append(n.cssClasses.actionsCellPrefix+"--"+s.id)})}return r.toString()},t.prototype.getRowActionsCell=function(e,n,r){r===void 0&&(r=!1);var o=this.getRowActions(e,n);if(!this.isValueEmpty(o)){var s=new _t,u=this.matrix.allowAdaptiveActions?new Tn:new xt;this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(u.cssClasses=this.matrix.survey.getCss().actionBar),u.setItems(o);var d=new re(u);return s.item=d,s.isActionsCell=!0,s.isDragHandlerCell=!1,s.isDetailRowCell=r,s.className=this.getActionsCellClassName(s),s.row=this.matrix.visibleRows[e],s}return null},t.prototype.getRowActions=function(e,n){var r=this.rowsActions[e];return Array.isArray(r)?r.filter(function(o){return o.location||(o.location="start"),o.location===n}):[]},t.prototype.buildRowActions=function(e){var n=[];return this.setDefaultRowActions(e,n),this.matrix.survey&&(n=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,n)),n},Object.defineProperty(t.prototype,"showRemoveButtonAsIcon",{get:function(){return I.matrix.renderRemoveAsIcon&&this.matrix.survey&&this.matrix.survey.css.root==="sd-root-modern"},enumerable:!1,configurable:!0}),t.prototype.setDefaultRowActions=function(e,n){var r=this,o=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?n.push(new xe({id:"remove-row",iconName:"icon-delete-24x24",iconSize:"auto",component:"sv-action-bar-item",innerCss:new _().append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:"end",showTitle:!1,title:o.removeRowText,enabled:!o.isInputReadOnly,data:{row:e,question:o},action:function(){o.removeRowUI(e)}})):n.push(new xe({id:"remove-row",location:"end",enabled:!this.matrix.isInputReadOnly,component:"sv-matrix-remove-button",data:{row:e,question:this.matrix}}))),e.hasPanel&&(this.matrix.isMobile?n.unshift(new xe({id:"show-detail-mobile",title:"Show Details",showTitle:!0,location:"end",action:function(s){s.title=e.isDetailPanelShowing?r.matrix.getLocalizationString("showDetails"):r.matrix.getLocalizationString("hideDetails"),e.showHideDetailPanelClick()}})):n.push(new xe({id:"show-detail",title:this.matrix.getLocalizationString("editText"),showTitle:!1,location:"start",component:"sv-matrix-detail-button",data:{row:e,question:this.matrix}})))},t.prototype.createErrorRow=function(e){for(var n=this.createErrorRenderedRow(this.cssClasses),r=0;r<e.cells.length;r++){var o=e.cells[r];o.hasQuestion?this.matrix.IsMultiplyColumn(o.cell.column)?o.isFirstChoice?n.cells.push(this.createErrorCell(o.cell)):n.cells.push(this.createEmptyCell(!0)):n.cells.push(this.createErrorCell(o.cell)):n.cells.push(this.createEmptyCell(!0))}return n.onAfterCreated(),n},t.prototype.createHorizontalRow=function(e){var n=this.createRenderedRow(this.cssClasses);if(this.isRowsDragAndDrop){var r=this.matrix.visibleRows.indexOf(e);n.cells.push(this.getRowDragCell(r))}if(this.addRowActionsCell(e,n,"start"),this.matrix.hasRowText){var o=this.createTextCell(e.locText);o.row=e,n.cells.push(o),this.setCellWidth(null,o),o.className=new _().append(o.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell,!this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.detailRowText,e.hasPanel).toString()}for(var s=0;s<e.cells.length;s++){var u=e.cells[s];if(u.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(u.column))this.createMutlipleEditCells(n,u);else{u.column.isShowInMultipleColumns&&u.question.visibleChoices.map(function(y){return y.hideCaption=!1});var o=this.createEditCell(u);n.cells.push(o),this.setCellWidth(u.column,o)}}return this.addRowActionsCell(e,n,"end"),n},t.prototype.addRowActionsCell=function(e,n,r){var o=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(r)){var s=this.getRowActionsCell(o,r,n.isDetailRow);if(s)n.cells.push(s),n.hasEndActions=!0;else{var u=new _t;u.isEmpty=!0,u.isDetailRowCell=n.isDetailRow,n.cells.push(u)}}},t.prototype.createDetailPanelRow=function(e,n){var r=this.matrix.isDesignMode,o=this.createRenderedRow(this.cssClasses,!0);o.row=e;var s=new _t;this.matrix.hasRowText&&(s.colSpans=2),s.isEmpty=!0,r||o.cells.push(s);var u=null;this.hasActionCellInRows("end")&&(u=new _t,u.isEmpty=!0);var d=new _t;return d.panel=e.detailPanel,d.colSpans=n.cells.length-(r?0:s.colSpans)-(u?u.colSpans:0),d.className=this.cssClasses.detailPanelCell,o.cells.push(d),u&&(this.matrix.isMobile?this.addRowActionsCell(e,o,"end"):o.cells.push(u)),typeof this.matrix.onCreateDetailPanelRenderedRowCallback=="function"&&this.matrix.onCreateDetailPanelRenderedRowCallback(o),o},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,n=[],r=0;r<e.length;r++){var o=e[r];if(o.isColumnVisible)if(this.matrix.IsMultiplyColumn(o))this.createMutlipleVerticalRows(n,o,r);else{var s=this.createVerticalRow(o,r),u=this.createErrorRow(s);this.showCellErrorsTop?(n.push(u),n.push(s)):(n.push(s),n.push(u))}}return this.hasActionCellInRows("end")&&n.push(this.createEndVerticalActionRow()),n},t.prototype.createMutlipleVerticalRows=function(e,n,r){var o=this.getMultipleColumnChoices(n);if(o)for(var s=0;s<o.length;s++){var u=this.createVerticalRow(n,r,o[s],s),d=this.createErrorRow(u);this.showCellErrorsTop?(e.push(d),e.push(u)):(e.push(u),e.push(d))}},t.prototype.createVerticalRow=function(e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=-1);var s=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var u=r?r.locText:e.locTitle,d=this.createTextCell(u);d.column=e,d.className=new _().append(d.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell).toString(),s.cells.push(d)}for(var y=this.matrix.visibleRows,V=0;V<y.length;V++){var T=r,N=o>=0?o:V,U=y[V].cells[n],W=r?U.question.visibleChoices:void 0;W&&N<W.length&&(T=W[N]);var X=this.createEditCell(U,T);X.item=T,X.choiceIndex=N,s.cells.push(X)}return this.matrix.hasTotal&&s.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[n])),s},t.prototype.createEndVerticalActionRow=function(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var n=this.matrix.visibleRows,r=0;r<n.length;r++)e.cells.push(this.getRowActionsCell(r,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,n,r){r===void 0&&(r=!1);var o=r?this.getMultipleColumnChoices(n.column):n.question.visibleChoices;if(o)for(var s=0;s<o.length;s++){var u=this.createEditCell(n,r?void 0:o[s]);r||(this.setItemCellCssClasses(u),u.choiceIndex=s),e.cells.push(u)}},t.prototype.setItemCellCssClasses=function(e){e.className=new _().append(this.cssClasses.cell).append(this.cssClasses.itemCell).append(this.cssClasses.radioCell,e.isRadio).append(this.cssClasses.checkboxCell,e.isCheckbox).toString()},t.prototype.createEditCell=function(e,n){n===void 0&&(n=void 0);var r=new _t;return r.cell=e,r.row=e.row,r.column=e.column,r.question=e.question,r.matrix=this.matrix,r.item=n,r.isOtherChoice=!!n&&!!e.question&&e.question.otherItem===n,r.className=r.calculateFinalClassName(this.cssClasses),r},t.prototype.createErrorCell=function(e,n){var r=new _t;return r.question=e.question,r.row=e.row,r.matrix=this.matrix,r.isErrorsCell=!0,r.className=new _().append(this.cssClasses.cell).append(this.cssClasses.errorsCell).append(this.cssClasses.errorsCellTop,this.showCellErrorsTop).append(this.cssClasses.errorsCellBottom,this.showCellErrorsBottom).toString(),r},t.prototype.createMutlipleColumnsFooter=function(e,n){this.createMutlipleEditCells(e,n,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var n=this.getMultipleColumnChoices(e);if(n)for(var r=0;r<n.length;r++){var o=this.createTextCell(n[r].locText);this.setHeaderCell(e,o),this.setHeaderCellCssClasses(o),this.headerRow.cells.push(o)}},t.prototype.getMultipleColumnChoices=function(e){var n=e.templateQuestion.choices;return n&&Array.isArray(n)&&n.length==0?[].concat(this.matrix.choices,e.getVisibleMultipleChoices()):(n=e.getVisibleMultipleChoices(),!n||!Array.isArray(n)?null:n)},t.prototype.setHeaderCellCssClasses=function(e,n,r){e.className=new _().append(this.cssClasses.headerCell).append(this.cssClasses.columnTitleCell,this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.emptyCell,!!e.isEmpty).append(this.cssClasses.cell+"--"+n,!!n).append(r,!!r).toString()},t.prototype.createHeaderCell=function(e,n,r){n===void 0&&(n=null);var o=e?this.createTextCell(e.locTitle):this.createEmptyCell();return o.column=e,this.setHeaderCell(e,o),n||(n=e&&e.cellType!=="default"?e.cellType:this.matrix.cellType),this.setHeaderCellCssClasses(o,n,r),o},t.prototype.setHeaderCell=function(e,n){this.setCellWidth(e,n)},t.prototype.setCellWidth=function(e,n){n.minWidth=e!=null?this.matrix.getColumnWidth(e):this.matrix.getRowTitleWidth(),n.width=e!=null?e.width:this.matrix.getRowTitleWidth()},t.prototype.createTextCell=function(e){var n=new _t;return n.locTitle=e,this.cssClasses.cell&&(n.className=this.cssClasses.cell),n},t.prototype.createEmptyCell=function(e){e===void 0&&(e=!1);var n=this.createTextCell(null);return n.isEmpty=!0,n.className=new _().append(this.cssClasses.cell).append(this.cssClasses.emptyCell).append(this.cssClasses.errorsCell,e).toString(),n},ii([me({onPush:function(e,n,r){r.updateRenderedRows()},onRemove:function(e,n,r){r.updateRenderedRows()}})],t.prototype,"rows",void 0),ii([me()],t.prototype,"_renderedRows",void 0),t}(fe),go=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ys=function(){function i(t,e,n){this.column=t,this.row=e,this.data=n,this.questionValue=this.createQuestion(t,e,n),this.questionValue.updateCustomWidget(),this.updateCellQuestionTitleDueToAccessebility(e)}return i.prototype.updateCellQuestionTitleDueToAccessebility=function(t){var e=this;this.questionValue.locTitle.onGetTextCallback=function(n){if(!t||!t.getSurvey())return e.questionValue.title;var r=t.getAccessbilityText();return r?e.column.colOwner.getCellAriaLabel(r,e.questionValue.title):e.questionValue.title}},i.prototype.locStrsChanged=function(){this.question.locStrsChanged()},i.prototype.createQuestion=function(t,e,n){var r=this,o=n.createQuestion(this.row,this.column);return o.readOnlyCallback=function(){return!r.row.isRowEnabled()},o.validateValueCallback=function(){return n.validateCell(e,t.name,e.value)},Fe.getProperties(t.getType()).forEach(function(s){var u=s.name;t[u]!==void 0&&(o[u]=t[u])}),o},Object.defineProperty(i.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this.question.value},set:function(t){this.question.value=t},enumerable:!1,configurable:!0}),i.prototype.getQuestionWrapperClassName=function(t){return t},i.prototype.runCondition=function(t,e){this.question.runCondition(t,e)},i}(),nc=function(i){go(t,i);function t(e,n,r){var o=i.call(this,e,n,r)||this;return o.column=e,o.row=n,o.data=r,o.updateCellQuestion(),o}return t.prototype.createQuestion=function(e,n,r){var o=j.createClass("expression");return o.setSurveyImpl(n),o},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),i.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,function(e){delete e.defaultValue}),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation(),this.question.runIfReadOnly=!0},t.prototype.getQuestionWrapperClassName=function(e){var n=i.prototype.getQuestionWrapperClassName.call(this,e);if(!n)return n;this.question.expression&&this.question.expression!="''"&&(n+=" "+e+"--expression");var r=this.column.totalAlignment;return r==="auto"&&this.column.cellType==="dropdown"&&(r="left"),n+" "+e+"--"+r},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if(this.column.totalType=="none")return"''";var e=this.column.totalType+"InArray";return he.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(ys),rc=function(i){go(t,i);function t(e,n,r){var o=i.call(this,n)||this;return o.row=e,o.variableName=n,o.parentTextProcessor=r,o}return t.prototype.getParentTextProcessor=function(){return this.parentTextProcessor},Object.defineProperty(t.prototype,"survey",{get:function(){return this.row.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.row.value},t.prototype.getQuestionByName=function(e){return this.row.getQuestionByName(e)},t.prototype.onCustomProcessText=function(e){return e.name==Kt.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):[Kt.RowValueVariableName,Kt.RowNameVariableName].indexOf(e.name)>-1?(e.isExists=!0,e.value=this.row.rowName,!0):!1},t}(yr),Kt=function(){function i(t,e){var n=this;this.isSettingValue=!1,this.detailPanelValue=null,this.visibleValue=!0,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(e),this.textPreProcessor=new rc(this,i.RowVariableName,t?t.getParentTextProcessor():null),this.showHideDetailPanelClick=function(){if(n.getSurvey().isDesignMode)return!0;n.showHideDetailPanel()},this.idValue=i.getId()}return i.getId=function(){return"srow_"+i.idCounter++},Object.defineProperty(i.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dataName",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),i.prototype.isRowEnabled=function(){return!0},i.prototype.isRowHasEnabledCondition=function(){return!1},Object.defineProperty(i.prototype,"isVisible",{get:function(){return this.visible&&this.isItemVisible()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return this.visibleValue},set:function(t){var e;this.visible!==t&&(this.visibleValue=t,(e=this.data)===null||e===void 0||e.onRowVisibilityChanged(this))},enumerable:!1,configurable:!0}),i.prototype.isItemVisible=function(){return!0},Object.defineProperty(i.prototype,"value",{get:function(){for(var t={},e=this.questions,n=0;n<e.length;n++){var r=e[n];r.isEmpty()||(t[r.getValueName()]=r.value),r.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(t[r.getValueName()+fe.commentSuffix]=r.comment)}return t},set:function(t){this.isSettingValue=!0,this.subscribeToChanges(t);for(var e=this.questions,n=0;n<e.length;n++){var r=e[n],o=this.getCellValue(t,r.getValueName()),s=r.comment,u=t?t[r.getValueName()+fe.commentSuffix]:"";u==null&&(u=""),r.updateValueFromSurvey(o),(u||this.isTwoValueEquals(s,r.comment))&&r.updateCommentFromSurvey(u),r.onSurveyValueChanged(o)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),i.prototype.getAccessbilityText=function(){return this.locText&&this.locText.renderedHtml},Object.defineProperty(i.prototype,"hasPanel",{get:function(){return this.data?this.data.hasDetailPanel(this):!1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDetailPanelShowing",{get:function(){return this.data?this.data.getIsDetailPanelShowing(this):!1},enumerable:!1,configurable:!0}),i.prototype.setIsDetailPanelShowing=function(t){!t&&this.detailPanel&&this.detailPanel.onHidingContent(),this.data&&this.data.setIsDetailPanelShowing(this,t),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},i.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},i.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},i.prototype.hideDetailPanel=function(t){t===void 0&&(t=!1),this.setIsDetailPanelShowing(!1),t&&(this.detailPanelValue=null)},i.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!(this.detailPanelValue||!this.hasPanel||!this.data)){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var t=this.detailPanelValue.questions,e=this.data.getRowValue(this.data.getRowIndex(this));if(!h.isValueEmpty(e))for(var n=0;n<t.length;n++){var r=t[n].getValueName(),o=this.editingObj?j.getObjPropertyValue(this.editingObj,r):e[r];h.isValueEmpty(o)||(t[n].value=o)}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},i.prototype.getAllValues=function(){return this.value},i.prototype.getFilteredValues=function(){var t=this.data?this.data.getDataFilteredValues():{},e=this.validationValues;if(e)for(var n in e)t[n]=e[n];return t.row=this.getAllValues(),this.applyRowVariablesToValues(t,this.rowIndex),t},i.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},i.prototype.applyRowVariablesToValues=function(t,e){t[i.IndexVariableName]=e,t[i.RowValueVariableName]=this.rowName,t[i.RowNameVariableName]=this.rowName},i.prototype.runCondition=function(t,e,n){if(this.data){t[i.OwnerVariableName]=this.data.getFilteredData();var r=this.rowIndex;this.applyRowVariablesToValues(t,r);var o=h.createCopy(e);o[i.RowVariableName]=this;var s=r>0?this.data.getRowValue(this.rowIndex-1):this.value;n?(t[i.RowVariableName]=s,this.setRowsVisibleIfValues(t),this.visible=new Ue(n).run(t,e)):this.visible=!0;for(var u=0;u<this.cells.length;u++)u>0&&ln(this.value,s),t[i.RowVariableName]=s,this.cells[u].runCondition(t,o);this.detailPanel&&this.detailPanel.runCondition(t,o),this.isRowHasEnabledCondition()&&this.onQuestionReadOnlyChanged()}},i.prototype.updateElementVisibility=function(){this.cells.forEach(function(t){return t.question.updateElementVisibility()}),this.detailPanel&&this.detailPanel.updateElementVisibility()},i.prototype.setRowsVisibleIfValues=function(t){},i.prototype.getNamesWithDefaultValues=function(){var t=[];return this.questions.forEach(function(e){e.isValueDefault&&t.push(e.getValueName())}),t},i.prototype.clearValue=function(t){for(var e=this.questions,n=0;n<e.length;n++)e[n].clearValue(t)},i.prototype.onAnyValueChanged=function(t,e){for(var n=this.questions,r=0;r<n.length;r++)n[r].onAnyValueChanged(t,e)},i.prototype.getDataValueCore=function(t,e){var n=this.getSurvey();return n?n.getDataValueCore(t,e):t[e]},i.prototype.getValue=function(t){var e=this.getQuestionByName(t);return e?e.value:null},i.prototype.setValue=function(t,e){this.setValueCore(t,e,!1)},i.prototype.getVariable=function(t){},i.prototype.setVariable=function(t,e){},i.prototype.getComment=function(t){var e=this.getQuestionByName(t);return e?e.comment:""},i.prototype.setComment=function(t,e,n){this.setValueCore(t,e,!0)},i.prototype.findQuestionByName=function(t){if(t){var e=i.RowVariableName+".";if(t.indexOf(e)===0)return this.getQuestionByName(t.substring(e.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},i.prototype.getEditingSurveyElement=function(){},i.prototype.setValueCore=function(t,e,n){if(!this.isSettingValue){this.updateQuestionsValue(t,e,n),n||this.updateSharedQuestionsValue(t,e);var r=this.value,o=n?t+fe.commentSuffix:t,s=e,u=this.getQuestionByName(t),d=this.data.onRowChanging(this,o,r);if(u&&!this.isTwoValueEquals(d,s)&&(this.isSettingValue=!0,n?u.comment=d:u.value=d,this.isSettingValue=!1,r=this.value),!(this.data.isValidateOnValueChanging&&this.hasQuestonError(u))){var y=e==null&&!u||n&&!e&&!!u;this.data.onRowChanged(this,o,r,y),o&&this.runTriggers(yo.RowVariableName+"."+o,r),this.onAnyValueChanged(i.RowVariableName,"")}}},i.prototype.updateQuestionsValue=function(t,e,n){if(this.detailPanel){var r=this.getQuestionByColumnName(t),o=this.detailPanel.getQuestionByName(t);if(!(!r||!o)){var s=this.isTwoValueEquals(e,n?r.comment:r.value),u=s?o:r;this.isSettingValue=!0,n?u.comment=e:u.value=e,this.isSettingValue=!1}}},i.prototype.updateSharedQuestionsValue=function(t,e){var n=this.getQuestionsByValueName(t);if(n.length>1)for(var r=0;r<n.length;r++)h.isTwoValueEquals(n[r].value,e)||(this.isSettingValue=!0,n[r].updateValueFromSurvey(e),this.isSettingValue=!1)},i.prototype.runTriggers=function(t,e){t&&this.questions.forEach(function(n){return n.runTriggers(t,e)})},i.prototype.hasQuestonError=function(t){if(!t)return!1;if(t.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(t.isEmpty())return!1;var e=this.getCellByColumnName(t.name);return!e||!e.column||!e.column.isUnique?!1:this.data.checkIfValueInRowDuplicated(this,t)},Object.defineProperty(i.prototype,"isEmpty",{get:function(){var t=this.value;if(h.isValueEmpty(t))return!0;for(var e in t)if(t[e]!==void 0&&t[e]!==null)return!1;return!0},enumerable:!1,configurable:!0}),i.prototype.getQuestionByColumn=function(t){var e=this.getCellByColumn(t);return e?e.question:null},i.prototype.getCellByColumn=function(t){for(var e=0;e<this.cells.length;e++)if(this.cells[e].column==t)return this.cells[e];return null},i.prototype.getCellByColumnName=function(t){for(var e=0;e<this.cells.length;e++)if(this.cells[e].column.name==t)return this.cells[e];return null},i.prototype.getQuestionByColumnName=function(t){var e=this.getCellByColumnName(t);return e?e.question:null},Object.defineProperty(i.prototype,"questions",{get:function(){for(var t=[],e=0;e<this.cells.length;e++)t.push(this.cells[e].question);for(var n=this.detailPanel?this.detailPanel.questions:[],e=0;e<n.length;e++)t.push(n[e]);return t},enumerable:!1,configurable:!0}),i.prototype.getQuestionByName=function(t){var e=this.getQuestionByColumnName(t);return e||(this.detailPanel?this.detailPanel.getQuestionByName(t):null)},i.prototype.getQuestionsByName=function(t){var e=[],n=this.getQuestionByColumnName(t);return n&&e.push(n),this.detailPanel&&(n=this.detailPanel.getQuestionByName(t),n&&e.push(n)),e},i.prototype.getQuestionsByValueName=function(t){for(var e=[],n=0;n<this.cells.length;n++){var r=this.cells[n];r.question&&r.question.getValueName()===t&&e.push(r.question)}return this.detailPanel&&(e=e.concat(this.detailPanel.getQuestionsByValueName(t))),e},i.prototype.getSharedQuestionByName=function(t){return this.data?this.data.getSharedQuestionByName(t,this):null},i.prototype.clearIncorrectValues=function(t){for(var e in t){var n=this.getQuestionByName(e);if(n){var r=n.value;n.clearIncorrectValues(),this.isTwoValueEquals(r,n.value)||this.setValue(e,n.value)}else!this.getSharedQuestionByName(e)&&e.indexOf(I.matrix.totalsSuffix)<0&&this.setValue(e,null)}},i.prototype.getLocale=function(){return this.data?this.data.getLocale():""},i.prototype.getMarkdownHtml=function(t,e){return this.data?this.data.getMarkdownHtml(t,e):void 0},i.prototype.getRenderer=function(t){return this.data?this.data.getRenderer(t):null},i.prototype.getRendererContext=function(t){return this.data?this.data.getRendererContext(t):t},i.prototype.getProcessedText=function(t){return this.data?this.data.getProcessedText(t):t},i.prototype.locStrsChanged=function(){for(var t=0;t<this.cells.length;t++)this.cells[t].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},i.prototype.updateCellQuestionOnColumnChanged=function(t,e,n){var r=this.getCellByColumn(t);r&&this.updateCellOnColumnChanged(r,e,n)},i.prototype.updateCellQuestionOnColumnItemValueChanged=function(t,e,n,r,o,s){var u=this.getCellByColumn(t);u&&this.updateCellOnColumnItemValueChanged(u,e,n,r,o,s)},i.prototype.onQuestionReadOnlyChanged=function(){for(var t=this.questions,e=0;e<t.length;e++){var n=t[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}if(this.detailPanel){var r=!!this.data&&this.data.isMatrixReadOnly();this.detailPanel.readOnly=r||!this.isRowEnabled()}},i.prototype.hasErrors=function(t,e,n){var r=!1,o=this.cells;if(!o)return r;this.validationValues=e.validationValues;for(var s=0;s<o.length;s++)if(o[s]){var u=o[s].question;!u||!u.visible||(u.onCompletedAsyncValidators=function(y){n()},!(e&&e.isOnValueChanged===!0&&u.isEmpty())&&(r=u.hasErrors(t,e)||r))}if(this.hasPanel){this.ensureDetailPanel();var d=this.detailPanel.hasErrors(t,!1,e);!e.hideErroredPanel&&d&&t&&(e.isSingleDetailPanel&&(e.hideErroredPanel=!0),this.showDetailPanel()),r=d||r}return this.validationValues=void 0,r},i.prototype.updateCellOnColumnChanged=function(t,e,n){e==="choices"&&Array.isArray(n)&&n.length===0&&this.data&&(n=this.data.choices),t.question[e]=n},i.prototype.updateCellOnColumnItemValueChanged=function(t,e,n,r,o,s){var u=t.question[e];if(Array.isArray(u)){var d=r==="value"?s:n.value,y=re.getItemByValue(u,d);y&&(y[r]=o)}},i.prototype.buildCells=function(t){this.isSettingValue=!0;for(var e=this.data.columns,n=0;n<e.length;n++){var r=e[n],o=this.createCell(r);this.cells.push(o);var s=this.getCellValue(t,r.name);if(!h.isValueEmpty(s)){o.question.value=s;var u=r.name+fe.commentSuffix;t&&!h.isValueEmpty(t[u])&&(o.question.comment=t[u])}}this.isSettingValue=!1},i.prototype.isTwoValueEquals=function(t,e){return h.isTwoValueEquals(t,e,!1,!0,!1)},i.prototype.getCellValue=function(t,e){return this.editingObj?j.getObjPropertyValue(this.editingObj,e):t?t[e]:void 0},i.prototype.createCell=function(t){return new ys(t,this,this.data)},i.prototype.getSurveyData=function(){return this},i.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},i.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(i.prototype,"rowIndex",{get:function(){return this.getRowIndex()},enumerable:!1,configurable:!0}),i.prototype.getRowIndex=function(){return this.data?this.data.getRowIndex(this)+1:-1},Object.defineProperty(i.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},i.prototype.subscribeToChanges=function(t){var e=this;!t||!t.getType||!t.onPropertyChanged||t!==this.editingObj&&(this.editingObjValue=t,this.onEditingObjPropertyChanged=function(n,r){e.updateOnSetValue(r.name,r.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},i.prototype.updateOnSetValue=function(t,e){this.isSettingValue=!0;for(var n=this.getQuestionsByName(t),r=0;r<n.length;r++)n[r].value=e;this.isSettingValue=!1},i.RowVariableName="row",i.OwnerVariableName="self",i.IndexVariableName="rowIndex",i.RowValueVariableName="rowValue",i.RowNameVariableName="rowName",i.idCounter=1,i}(),yo=function(i){go(t,i);function t(e){var n=i.call(this,e,null)||this;return n.buildCells(null),n}return t.prototype.createCell=function(e){return new nc(e,this,this.data)},t.prototype.setValue=function(e,n){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(e,n,r){var o=0,s;do s=h.getUnbindValue(this.value),i.prototype.runCondition.call(this,e,n,""),o++;while(!h.isTwoValueEquals(s,this.value)&&o<3)},t.prototype.updateCellOnColumnChanged=function(e,n,r){e.updateCellQuestion()},t}(Kt),mr=function(i){go(t,i);function t(e){var n=i.call(this,e)||this;return n.isRowChanging=!1,n.lockResetRenderedTable=!1,n.isDoingonAnyValueChanged=!1,n.createItemValues("choices"),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.detailPanelValue=n.createNewDetailPanel(),n.detailPanel.selectedElementInDesign=n,n.detailPanel.renderWidth="100%",n.detailPanel.isInteractiveDesignElement=!1,n.detailPanel.showTitle=!1,n.registerPropertyChangedHandlers(["columns","cellType"],function(){n.updateColumnsAndRows()}),n.registerPropertyChangedHandlers(["placeholder","columnColCount","rowTitleWidth","choices"],function(){n.clearRowsAndResetRenderedTable()}),n.registerPropertyChangedHandlers(["transposeData","addRowLocation","hideColumnsIfEmpty","showHeader","minRowCount","isReadOnly","rowCount","hasFooter","detailPanelMode","displayMode"],function(){n.resetRenderedTable()}),n}return Object.defineProperty(t,"defaultCellType",{get:function(){return I.matrix.defaultCellType},set:function(e){I.matrix.defaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var n=Se.DefaultColums,r=0;r<n.length;r++)e.addColumn(n[r])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",function(n){n.colOwner=e,e.onAddColumn&&e.onAddColumn(n),e.survey&&e.survey.matrixColumnAdded(e,n)},function(n){n.colOwner=null,e.onRemoveColumn&&e.onRemoveColumn(n)})},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.clearGeneratedRows()},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateLocked",{get:function(){return this.isLoadingFromJson||this.isUpdating},enumerable:!1,configurable:!0}),t.prototype.beginUpdate=function(){this.isUpdating=!0},t.prototype.endUpdate=function(){this.isUpdating=!1,this.updateColumnsAndRows()},t.prototype.updateColumnsAndRows=function(){this.updateColumnsIndexes(this.columns),this.updateColumnsCellType(),this.generatedTotalRow=null,this.clearRowsAndResetRenderedTable()},t.prototype.itemValuePropertyChanged=function(e,n,r,o){i.prototype.itemValuePropertyChanged.call(this,e,n,r,o),e.ownerPropertyName==="choices"&&this.clearRowsAndResetRenderedTable()},Object.defineProperty(t.prototype,"transposeData",{get:function(){return this.getPropertyValue("transposeData")},set:function(e){this.setPropertyValue("transposeData",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.transposeData?"vertical":"horizontal"},set:function(e){this.transposeData=e==="vertical"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailErrorLocation",{get:function(){return this.getPropertyValue("detailErrorLocation")},set:function(e){this.setPropertyValue("detailErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellErrorLocation",{get:function(){return this.getPropertyValue("cellErrorLocation")},set:function(e){this.setPropertyValue("cellErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(e){var n=e.parent?this.detailErrorLocation:this.cellErrorLocation;return n!=="default"?n:i.prototype.getChildErrorLocation.call(this,e)},Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return this.isMobile?!0:!this.transposeData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUniqueCaseSensitive",{get:function(){return this.isUniqueCaseSensitiveValue!==void 0?this.isUniqueCaseSensitiveValue:I.comparator.caseSensitive},set:function(e){this.isUniqueCaseSensitiveValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanelMode",{get:function(){return this.getPropertyValue("detailPanelMode")},set:function(e){this.setPropertyValue("detailPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.detailPanel},Object.defineProperty(t.prototype,"detailElements",{get:function(){return this.detailPanel.elements},enumerable:!1,configurable:!0}),t.prototype.createNewDetailPanel=function(){return j.createClass("panel")},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onPointerDown=function(e,n){},t.prototype.onRowsChanged=function(){this.clearVisibleRows(),this.resetRenderedTable(),i.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0,this.setValueChangedDirectly(!0)},t.prototype.onEndRowAdding=function(){if(this.lockResetRenderedTable=!1,!!this.renderedTable)if(this.renderedTable.isRequireReset())this.resetRenderedTable();else{var e=this.visibleRows.length-1;this.renderedTable.onAddedRow(this.visibleRows[e],e)}},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)},Object.defineProperty(t.prototype,"renderedTableValue",{get:function(){return this.getPropertyValue("renderedTable",null)},set:function(e){this.setPropertyValue("renderedTable",e)},enumerable:!1,configurable:!0}),t.prototype.clearRowsAndResetRenderedTable=function(){this.clearGeneratedRows(),this.resetRenderedTable(),this.fireCallback(this.columnsChangedCallback)},t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isUpdateLocked||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},t.prototype.clearGeneratedRows=function(){if(this.clearVisibleRows(),!!this.generatedVisibleRows){for(var e=0;e<this.generatedVisibleRows.length;e++)this.generatedVisibleRows[e].dispose();i.prototype.clearGeneratedRows.call(this)}},Object.defineProperty(t.prototype,"isRendredTableCreated",{get:function(){return!!this.renderedTableValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new gs(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var n={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},r=0;r<this.columns.length;r++){n.column=this.columns[r],n.columnName=n.column.name;var o=e.cells[r];n.cell=o,n.cellQuestion=o.question,n.value=o.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(n),this.survey.matrixCellCreated(this,n)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",I.matrix.defaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,configurable:!0}),t.prototype.isSelectCellType=function(){return j.isDescendantOf(this.cellType,"selectbase")},t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var n=0;n<e.length;n++)e[n].setIndex(n)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount")},set:function(e){e<0||e>4||this.setPropertyValue("columnColCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll")},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e),this.detailPanel&&(this.detailPanel.allowAdaptiveActions=e)},enumerable:!1,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.hasChoices=function(){return this.choices.length>0},t.prototype.onColumnPropertyChanged=function(e,n,r){if(this.updateHasFooter(),!!this.generatedVisibleRows){for(var o=0;o<this.generatedVisibleRows.length;o++)this.generatedVisibleRows[o].updateCellQuestionOnColumnChanged(e,n,r);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,n,r),this.onColumnsChanged(),n=="isRequired"&&this.resetRenderedTable()}},t.prototype.onColumnItemValuePropertyChanged=function(e,n,r,o,s,u){if(this.generatedVisibleRows)for(var d=0;d<this.generatedVisibleRows.length;d++)this.generatedVisibleRows[d].updateCellQuestionOnColumnItemValueChanged(e,n,r,o,s,u)},t.prototype.onShowInMultipleColumnsChanged=function(e){this.resetTableAndRows()},t.prototype.onColumnVisibilityChanged=function(e){this.resetTableAndRows()},t.prototype.onColumnCellTypeChanged=function(e){this.resetTableAndRows()},t.prototype.resetTableAndRows=function(){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return"default"},t.prototype.getShowColumnsIfEmpty=function(){return!1},t.prototype.updateShowTableAndAddRow=function(){this.renderedTable&&this.renderedTable.updateShowTableAndAddRow()},t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getCustomCellType=function(e,n,r){if(!this.survey)return r;var o={rowValue:n.value,row:n,column:e,columnName:e.name,cellType:r};return this.survey.matrixCellCreating(this,o),o.cellType},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);for(var r="",o=n.length-1;o>=0&&n[o]!=".";o--)r=n[o]+r;var s=void 0,u=this.getColumnByName(r);return u?s=u.createCellQuestion(null):this.detailPanelMode!=="none"&&(s=this.detailPanel.getQuestionByName(r)),s?s.getConditionJson(e):null},t.prototype.clearIncorrectValues=function(){if(Array.isArray(this.visibleRows))for(var e=this.generatedVisibleRows,n=0;n<e.length;n++)e[n].clearIncorrectValues(this.getRowValue(n))},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this),this.runFuncForCellQuestions(function(e){e.clearErrors()})},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.runFuncForCellQuestions(function(e){e.localeChanged()})},t.prototype.runFuncForCellQuestions=function(e){if(this.generatedVisibleRows)for(var n=0;n<this.generatedVisibleRows.length;n++)for(var r=this.generatedVisibleRows[n],o=0;o<r.cells.length;o++)e(r.cells[o].question)},t.prototype.runCondition=function(e,n){var r=e[Kt.RowVariableName];i.prototype.runCondition.call(this,e,n);var o=0,s;do s=h.getUnbindValue(this.totalValue),this.runCellsCondition(e,n),this.runTotalsCondition(e,n),o++;while(!h.isTwoValueEquals(s,this.totalValue)&&o<3);this.updateVisibilityBasedOnRows(),e[Kt.RowVariableName]=r},t.prototype.runTriggers=function(e,n,r){i.prototype.runTriggers.call(this,e,n,r),this.runFuncForCellQuestions(function(o){o.runTriggers(e,n,r)})},t.prototype.updateElementVisibility=function(){i.prototype.updateElementVisibility.call(this);var e=this.generatedVisibleRows;e&&e.forEach(function(n){return n.updateElementVisibility()})},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,n){var r=this.generatedVisibleRows;if(r)for(var o=this.getRowConditionValues(e),s=0;s<r.length;s++)r[s].runCondition(o,n,this.rowsVisibleIf);this.checkColumnsVisibility(),this.checkColumnsRenderedRequired()},t.prototype.runConditionsForColumns=function(e,n){var r=this;return this.columns.forEach(function(o){if(!r.columnsVisibleIf)o.isColumnsVisibleIf=!0;else{var s=new Ue(r.columnsVisibleIf);e.item=o.name,o.isColumnsVisibleIf=s.run(e,n)===!0}}),!1},t.prototype.checkColumnsVisibility=function(){if(!this.isDesignMode){for(var e=!1,n=0;n<this.columns.length;n++){var r=this.columns[n],o=!!r.visibleIf||r.isFilteredMultipleColumns;!o&&!this.columnsVisibleIf&&r.isColumnVisible||(e=this.isColumnVisibilityChanged(r,o)||e)}e&&this.resetRenderedTable()}},t.prototype.checkColumnsRenderedRequired=function(){var e=this.generatedVisibleRows;if(e)for(var n=0;n<this.columns.length;n++){var r=this.columns[n];if(!(!r.requiredIf||!r.isColumnVisible)){for(var o=e.length>0,s=0;s<e.length;s++)if(!e[s].cells[n].question.isRequired){o=!1;break}r.updateIsRenderedRequired(o)}}},t.prototype.isColumnVisibilityChanged=function(e,n){var r=e.isColumnVisible,o=!n,s=this.generatedVisibleRows,u=n&&s,d=u&&e.isFilteredMultipleColumns,y=d?e.getVisibleChoicesInCell:[],V=new Array;if(u)for(var T=0;T<s.length;T++){var N=s[T].cells[e.index],U=N==null?void 0:N.question;if(U&&U.isVisible)if(o=!0,d)this.updateNewVisibleChoices(U,V);else break}return e.hasVisibleCell=o&&e.isColumnsVisibleIf,d&&(e.setVisibleChoicesInCell(V),!h.isArraysEqual(y,V,!0,!1,!1))?!0:r!==e.isColumnVisible},t.prototype.updateNewVisibleChoices=function(e,n){var r=e.visibleChoices;if(Array.isArray(r))for(var o=0;o<r.length;o++){var s=r[o];n.indexOf(s.value)<0&&n.push(s.value)}},t.prototype.runTotalsCondition=function(e,n){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),n)},t.prototype.getRowConditionValues=function(e){var n=e;n||(n={});var r={};return this.isValueEmpty(this.totalValue)||(r=JSON.parse(JSON.stringify(this.totalValue))),n.row={},n.totalRow=r,n},t.prototype.IsMultiplyColumn=function(e){return e.isShowInMultipleColumns&&!this.isMobile},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=this.columns,n=0;n<e.length;n++)e[n].locStrsChanged();var r=this.generatedVisibleRows;if(r){for(var n=0;n<r.length;n++)r[n].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var n=0;n<this.columns.length;n++)if(this.columns[n].name==e)return this.columns[n];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){var n;return e.minWidth?e.minWidth:this.columnMinWidth?this.columnMinWidth:((n=I.matrix.columnWidthsByType[e.cellType])===null||n===void 0?void 0:n.minWidth)||""},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.survey?this.survey.storeOthersAsComment:!1},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,n){var r=new ri(e,n,this);return this.columns.push(r),r},t.prototype.clearVisibleRows=function(){this.visibleRowsArray=null},t.prototype.isColumnVisible=function(e){return e.isColumnVisible},t.prototype.getVisibleRows=function(){return this.isUpdateLocked?null:this.isGenereatingRows?[]:this.visibleRowsArray?this.visibleRowsArray:(this.generateVisibleRowsIfNeeded(),this.visibleRowsArray=this.getVisibleFromGenerated(this.generatedVisibleRows),this.visibleRowsArray)},t.prototype.generateVisibleRowsIfNeeded=function(){var e=this;!this.isUpdateLocked&&!this.generatedVisibleRows&&!this.generatedVisibleRows&&(this.isGenereatingRows=!0,this.generatedVisibleRows=this.generateRows(),this.isGenereatingRows=!1,this.generatedVisibleRows.forEach(function(n){return e.onMatrixRowCreated(n)}),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.generatedVisibleRows&&(this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()))},t.prototype.getVisibleFromGenerated=function(e){var n=[];return e?(e.forEach(function(r){r.isVisible&&n.push(r)}),n.length===e.length?e:n):n},t.prototype.updateValueOnRowsGeneration=function(e){for(var n=this.createNewValue(!0),r=this.createNewValue(),o=0;o<e.length;o++){var s=e[o];if(!s.editingObj){var u=this.getRowValue(o),d=s.value;this.isTwoValueEquals(u,d)||(r=this.getNewValueOnRowChanged(s,"",d,!1,r).value)}}this.isTwoValueEquals(n,r)||(this.isRowChanging=!0,this.setNewValue(r),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return!this.hasTotal||!this.visibleTotalRow?{}:this.visibleTotalRow.value},enumerable:!1,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isUpdateLocked)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0||!Array.isArray(this.visibleRows))return null;var n=this.generatedVisibleRows;if(e>=n.length)return null;var r=this.createNewValue();return this.getRowValueCore(n[e],r)},t.prototype.checkIfValueInRowDuplicated=function(e,n){return this.generatedVisibleRows?this.isValueInColumnDuplicated(n.name,!0,e):!1},t.prototype.setRowValue=function(e,n){if(e<0)return null;var r=this.visibleRows;if(e>=r.length)return null;r[e].value=n,this.onRowChanged(r[e],"",n,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new yo(this)},t.prototype.createNewValue=function(e){e===void 0&&(e=!1);var n=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(n)?null:n},t.prototype.getRowValueCore=function(e,n,r){r===void 0&&(r=!1);var o=n&&n[e.rowName]?n[e.rowName]:null;return!o&&r&&(o={},n&&(n[e.rowName]=o)),o},t.prototype.getRowObj=function(e){var n=this.getRowValueCore(e,this.value);return n&&n.getType?n:null},t.prototype.getRowDisplayValue=function(e,n,r){if(!r||n.editingObj)return r;for(var o=Object.keys(r),s=0;s<o.length;s++){var u=o[s],d=n.getQuestionByName(u);if(d||(d=this.getSharedQuestionByName(u,n)),d){var y=d.getDisplayValue(e,r[u]);e&&d.title&&d.title!==u?(r[d.title]=y,delete r[u]):r[u]=y}}return r},t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0});var r=i.prototype.getPlainData.call(this,e);if(r){r.isNode=!0;var o=Array.isArray(r.data)?[].concat(r.data):[];r.data=this.visibleRows.map(function(s){var u={name:s.dataName,title:s.text,value:s.value,displayValue:n.getRowDisplayValue(!1,s,s.value),getString:function(d){return typeof d=="object"?JSON.stringify(d):d},isNode:!0,data:s.cells.map(function(d){return d.question.getPlainData(e)}).filter(function(d){return!!d})};return(e.calculations||[]).forEach(function(d){u[d.propertyName]=s[d.propertyName]}),u}),r.data=r.data.concat(o)}return r},t.prototype.addConditionObjectsByContext=function(e,n){var r=[].concat(this.columns);this.detailPanelMode!=="none"&&(r=r.concat(this.detailPanel.questions));var o=!!n&&r.indexOf(n)>-1,s=n===!0||o,u=this.getConditionObjectsRowIndeces();s&&u.push(-1);for(var d=0;d<u.length;d++){var y=u[d],V=y>-1?this.getConditionObjectRowName(y):"row";if(V)for(var T=y>-1?this.getConditionObjectRowText(y):"row",N=y>-1||n===!0,U=N&&y===-1?".":"",W=(N?this.getValueName():"")+U+V+".",X=(N?this.processedTitle:"")+U+T+".",Y=0;Y<r.length;Y++){var J=r[Y];if(!(y===-1&&n===J)){var ue={name:W+J.name,text:X+J.fullTitle,question:this};y===-1&&n===!0?ue.context=this:o&&W.startsWith("row.")&&(ue.context=n),e.push(ue)}}}},t.prototype.onHidingContent=function(){if(i.prototype.onHidingContent.call(this),!!this.generatedVisibleRows){var e=[];this.collectNestedQuestions(e,!0),e.forEach(function(n){return n.onHidingContent()})}},t.prototype.getIsReadyNestedQuestions=function(){if(!this.generatedVisibleRows)return[];var e=new Array;return this.collectNestedQuestonsInRows(this.generatedVisibleRows,e,!1),this.generatedTotalRow&&this.collectNestedQuestonsInRows([this.generatedTotalRow],e,!1),e},t.prototype.collectNestedQuestionsCore=function(e,n){this.collectNestedQuestonsInRows(this.visibleRows,e,n)},t.prototype.collectNestedQuestonsInRows=function(e,n,r){Array.isArray(e)&&e.forEach(function(o){o.questions.forEach(function(s){return s.collectNestedQuestions(n,r)})})},t.prototype.getConditionObjectRowName=function(e){return""},t.prototype.getConditionObjectRowText=function(e){return this.getConditionObjectRowName(e)},t.prototype.getConditionObjectsRowIndeces=function(){return[]},t.prototype.getProgressInfo=function(){if(this.generatedVisibleRows)return _e.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=fe.createProgressInfo();return this.updateProgressInfoByValues(e),e.requiredQuestionCount===0&&this.isRequired&&(e.requiredQuestionCount=1,e.requiredAnsweredQuestionCount=this.isEmpty()?0:1),e},t.prototype.updateProgressInfoByValues=function(e){},t.prototype.updateProgressInfoByRow=function(e,n){for(var r=0;r<this.columns.length;r++){var o=this.columns[r];if(o.templateQuestion.hasInput){var s=!h.isValueEmpty(n[o.name]);!s&&o.templateQuestion.visibleIf||(e.questionCount+=1,e.requiredQuestionCount+=o.isRequired,e.answeredQuestionCount+=s?1:0,e.requiredAnsweredQuestionCount+=s&&o.isRequired?1:0)}}},t.prototype.getCellQuestions=function(){var e=[];return this.runFuncForCellQuestions(function(n){e.push(n)}),e},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),!(!this.generatedVisibleRows||this.generatedVisibleRows.length==0))){this.isRowChanging=!0;for(var e=this.createNewValue(),n=0;n<this.generatedVisibleRows.length;n++){var r=this.generatedVisibleRows[n];this.generatedVisibleRows[n].value=this.getRowValueCore(r,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(e){i.prototype.setQuestionValue.call(this,e,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var n=0;n<e.length;n++){var r=this.generatedVisibleRows[n].cells;if(r)for(var o=0;o<r.length;o++){var s=r[o].question;if(s&&(!s.supportGoNextPageAutomatic()||!s.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return i.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors(function(e){return e.containsErrors},!1)},t.prototype.getIsAnswered=function(){return i.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors(function(e){return e.isAnswered},!0)},t.prototype.checkForAnswersOrErrors=function(e,n){n===void 0&&(n=!1);var r=this.generatedVisibleRows;if(!r)return!1;for(var o=0;o<r.length;o++){var s=r[o].cells;if(s){for(var u=0;u<s.length;u++)if(s[u]){var d=s[u].question;if(d&&d.isVisible){if(e(d)){if(!n)return!0}else if(n)return!1}}}}return!!n},t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=this.hasErrorInRows(e,n),o=this.isValueDuplicated();return i.prototype.hasErrors.call(this,e,n)||r||o},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var e=0;e<this.generatedVisibleRows.length;e++){var n=this.generatedVisibleRows[e].cells;if(n){for(var r=0;r<n.length;r++)if(n[r]){var o=n[r].question;if(o&&o.isRunningValidators)return!0}}}return!1},t.prototype.getAllErrors=function(){var e=i.prototype.getAllErrors.call(this),n=this.generatedVisibleRows;if(n===null)return e;for(var r=0;r<n.length;r++)for(var o=n[r],s=0;s<o.cells.length;s++){var u=o.cells[s].question.getAllErrors();u&&u.length>0&&(e=e.concat(u))}return e},t.prototype.hasErrorInRows=function(e,n){var r=this,o=this.generatedVisibleRows;this.generatedVisibleRows||(o=this.visibleRows);var s=!1;if(n||(n={}),!o)return n;n.validationValues=this.getDataFilteredValues(),n.isSingleDetailPanel=this.detailPanelMode==="underRowSingle";for(var u=0;u<o.length;u++)o[u].isVisible&&(s=o[u].hasErrors(e,n,function(){r.raiseOnCompletedAsyncValidators()})||s);return s},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumnsNames(),n=!1,r=0;r<e.length;r++)n=this.isValueInColumnDuplicated(e[r],!0)||n;return n},t.prototype.getUniqueColumnsNames=function(){for(var e=new Array,n=0;n<this.columns.length;n++)this.columns[n].isUnique&&e.push(this.columns[n].name);return e},t.prototype.isValueInColumnDuplicated=function(e,n,r){var o=this.getDuplicatedRows(e);return n&&this.showDuplicatedErrorsInRows(o,e),this.removeDuplicatedErrorsInRows(o,e),r?o.indexOf(r)>-1:o.length>0},t.prototype.getDuplicatedRows=function(e){for(var n={},r=[],o=this.generatedVisibleRows,s=0;s<o.length;s++){var u=void 0,d=o[s].getQuestionByName(e);if(d)u=d.value;else{var y=this.getRowValue(s);u=y?y[e]:void 0}this.isValueEmpty(u)||(!this.isUniqueCaseSensitive&&typeof u=="string"&&(u=u.toLocaleLowerCase()),n[u]||(n[u]=[]),n[u].push(o[s]))}for(var V in n)n[V].length>1&&n[V].forEach(function(T){return r.push(T)});return r},t.prototype.showDuplicatedErrorsInRows=function(e,n){var r=this;e.forEach(function(o){var s=o.getQuestionByName(n),u=r.detailPanel.getQuestionByName(n);!s&&u&&(o.showDetailPanel(),o.detailPanel&&(s=o.detailPanel.getQuestionByName(n))),s&&(u&&o.showDetailPanel(),r.addDuplicationError(s))})},t.prototype.removeDuplicatedErrorsInRows=function(e,n){var r=this;this.generatedVisibleRows.forEach(function(o){if(e.indexOf(o)<0){var s=o.getQuestionByName(n);s&&r.removeDuplicationError(o,s)}})},t.prototype.getDuplicationError=function(e){for(var n=e.errors,r=0;r<n.length;r++)if(n[r].getErrorType()==="keyduplicationerror")return n[r];return null},t.prototype.addDuplicationError=function(e){this.getDuplicationError(e)||e.addError(new oo(this.keyDuplicationError,this))},t.prototype.removeDuplicationError=function(e,n){n.removeError(this.getDuplicationError(n))&&n.errors.length===0&&e.editingObj&&(e.editingObj[n.getValueName()]=n.value)},t.prototype.getFirstQuestionToFocus=function(e){return this.getFirstCellQuestion(e)},t.prototype.getFirstInputElementId=function(){var e=this.getFirstCellQuestion(!1);return e?e.inputId:i.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var e=this.getFirstCellQuestion(!0);return e?e.inputId:i.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var n=0;n<this.generatedVisibleRows.length;n++)for(var r=this.generatedVisibleRows[n].cells,o=0;o<r.length;o++)if(!e||r[o].question.currentErrorCount>0)return r[o].question;return null},t.prototype.onReadOnlyChanged=function(){if(i.prototype.onReadOnlyChanged.call(this),!!this.generateRows)for(var e=0;e<this.visibleRows.length;e++)this.visibleRows[e].onQuestionReadOnlyChanged()},t.prototype.createQuestion=function(e,n){return this.createQuestionCore(e,n)},t.prototype.createQuestionCore=function(e,n){var r=n.createCellQuestion(e);return r.setSurveyImpl(e),r.setParentQuestion(this),r.inMatrixMode=!0,r},t.prototype.deleteRowValue=function(e,n){return e&&(delete e[n.rowName],this.isObject(e)&&Object.keys(e).length==0?null:e)},t.prototype.onAnyValueChanged=function(e,n){if(!(this.isUpdateLocked||this.isDoingonAnyValueChanged||!this.generatedVisibleRows)){this.isDoingonAnyValueChanged=!0;for(var r=this.generatedVisibleRows,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,n);var s=this.visibleTotalRow;s&&s.onAnyValueChanged(e,n),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return e!==null&&typeof e=="object"},t.prototype.getOnCellValueChangedOptions=function(e,n,r){var o=function(s){return e.getQuestionByName(s)};return{row:e,columnName:n,rowValue:r,value:r?r[n]:null,getCellQuestion:o,cellQuestion:e.getQuestionByName(n),column:this.getColumnByName(n)}},t.prototype.onCellValueChanged=function(e,n,r){if(this.survey){var o=this.getOnCellValueChangedOptions(e,n,r);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(o),this.survey.matrixCellValueChanged(this,o)}},t.prototype.validateCell=function(e,n,r){if(this.survey){var o=this.getOnCellValueChangedOptions(e,n,r);return this.survey.matrixCellValidate(this,o)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return this.survey?this.survey.isValidateOnValueChanging:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasInvisibleRows",{get:function(){var e=this.generatedVisibleRows;if(!Array.isArray(e))return!1;for(var n=0;n<e.length;n++)if(!e[n].isVisible)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getFilteredData=function(){return this.isEmpty()||!this.generatedVisibleRows||!this.hasInvisibleRows?this.value:this.getFilteredDataCore()},t.prototype.getFilteredDataCore=function(){return this.value},t.prototype.onRowChanging=function(e,n,r){if(!this.survey&&!this.cellValueChangingCallback)return r?r[n]:null;var o=this.getOnCellValueChangedOptions(e,n,r),s=this.getRowValueCore(e,this.createNewValue(),!0);return o.oldValue=s?s[n]:null,this.cellValueChangingCallback&&(o.value=this.cellValueChangingCallback(e,n,o.value,o.oldValue)),this.survey&&this.survey.matrixCellValueChanging(this,o),o.value},t.prototype.onRowChanged=function(e,n,r,o){var s=n?this.getRowObj(e):null;if(s){var u=null;r&&!o&&(u=r[n]),this.isRowChanging=!0,j.setObjPropertyValue(s,n,u),this.isRowChanging=!1,this.onCellValueChanged(e,n,s)}else{var d=this.createNewValue(!0),y=this.getNewValueOnRowChanged(e,n,r,o,this.createNewValue());if(this.isTwoValueEquals(d,y.value))return;this.isRowChanging=!0,this.setNewValue(y.value),this.isRowChanging=!1,n&&this.onCellValueChanged(e,n,y.rowValue)}this.getUniqueColumnsNames().indexOf(n)>-1&&this.isValueInColumnDuplicated(n,!!s)},t.prototype.getNewValueOnRowChanged=function(e,n,r,o,s){var u=this.getRowValueCore(e,s,!0);if(o&&delete u[n],e.questions.forEach(function(y){delete u[y.getValueName()]}),r){r=JSON.parse(JSON.stringify(r));for(var d in r)this.isValueEmpty(r[d])||(u[d]=r[d])}return this.isObject(u)&&Object.keys(u).length===0&&(s=this.deleteRowValue(s,e)),{value:s,rowValue:u}},t.prototype.getRowIndex=function(e){return Array.isArray(this.generatedVisibleRows)?this.generatedVisibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(e){e===void 0&&(e=!1);var n;return this.detailPanelMode=="none"?n=i.prototype.getElementsInDesign.call(this,e):n=e?[this.detailPanel]:this.detailElements,this.columns.concat(n)},t.prototype.hasDetailPanel=function(e){return this.detailPanelMode=="none"?!1:this.isDesignMode?!0:this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0},t.prototype.getIsDetailPanelShowing=function(e){if(this.detailPanelMode=="none")return!1;if(this.isDesignMode){var n=this.visibleRows.indexOf(e)==0;return n&&(e.detailPanel||e.showDetailPanel()),n}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,n){if(n!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,n),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,n),this.survey&&this.survey.matrixDetailPanelVisibleChanged(this,e.rowIndex-1,e,n),n&&this.detailPanelMode==="underRowSingle"))for(var r=this.visibleRows,o=0;o<r.length;o++)r[o].id!==e.id&&r[o].isDetailPanelShowing&&r[o].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var n=new _().append(this.getPropertyValue("detailButtonCss"+e.id));return n.append(this.cssClasses.detailButton,n.toString()==="").toString()},t.prototype.getDetailPanelIconCss=function(e){var n=new _().append(this.getPropertyValue("detailIconCss"+e.id));return n.append(this.cssClasses.detailIcon,n.toString()==="").toString()},t.prototype.getDetailPanelIconId=function(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId},t.prototype.updateDetailPanelButtonCss=function(e){var n=this.cssClasses,r=this.getIsDetailPanelShowing(e),o=new _().append(n.detailIcon).append(n.detailIconExpanded,r);this.setPropertyValue("detailIconCss"+e.id,o.toString());var s=new _().append(n.detailButton).append(n.detailButtonExpanded,r);this.setPropertyValue("detailButtonCss"+e.id,s.toString())},t.prototype.createRowDetailPanel=function(e){var n=this;if(this.isDesignMode)return this.detailPanel;var r=this.createNewDetailPanel();r.readOnly=this.isReadOnly||!e.isRowEnabled(),r.setSurveyImpl(e);var o=this.detailPanel.toJSON();return new je().toObject(o,r),r.renderWidth="100%",r.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,r),r.questions.forEach(function(s){return s.setParentQuestion(n)}),r.onSurveyLoad(),r},t.prototype.getSharedQuestionByName=function(e,n){if(!this.survey||!this.valueName)return null;var r=this.getRowIndex(n);return r<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,r)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isUpdateLocked&&!this.isSett&&this.data.setValue(this.getValueName()+I.matrix.totalsSuffix,this.totalValue,!1)},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getParentTextProcessor=function(){if(!this.parentQuestion||!this.parent)return null;var e=this.parent.data;return e&&e.getTextProcessor?e.getTextProcessor():null},t.prototype.isMatrixReadOnly=function(){return this.isReadOnly},t.prototype.onRowVisibilityChanged=function(e){this.clearVisibleRows(),this.resetRenderedTable()},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),this.clearInvisibleValuesInRows()},t.prototype.clearInvisibleValuesInRows=function(){var e;if(!(this.isEmpty()||!this.isRowsFiltered())){var n=((e=this.survey)===null||e===void 0?void 0:e.questionsByValueName(this.getValueName()))||[];n.length<2&&(this.value=this.getFilteredData())}},t.prototype.isRowsFiltered=function(){return i.prototype.isRowsFiltered.call(this)||this.visibleRows!==this.generatedVisibleRows},t.prototype.getQuestionFromArray=function(e,n){return n>=this.visibleRows.length?null:this.visibleRows[n].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(this.isObject(e[n])&&Object.keys(e[n]).length>0)return!1;return!0}return Object.keys(e).length==0}},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getCellTemplateData=function(e){return this.SurveyModel.getMatrixCellTemplateData(e)},t.prototype.getCellWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,e.row instanceof yo?"row-footer":"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof yo?"row-footer":"cell")},t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"row-header")},Object.defineProperty(t.prototype,"showHorizontalScroll",{get:function(){return!this.isDefaultV2Theme&&this.horizontalScroll},enumerable:!1,configurable:!0}),t.prototype.onMobileChanged=function(){i.prototype.onMobileChanged.call(this),this.resetRenderedTable()},t.prototype.getRootCss=function(){return new _().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},t.prototype.afterRenderQuestionElement=function(e){i.prototype.afterRenderQuestionElement.call(this,e),this.setRootElement(e==null?void 0:e.parentElement)},t.prototype.beforeDestroyQuestionElement=function(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.setRootElement(void 0)},t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t}(yt);j.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn",isArray:!0},{name:"columnLayout",alternativeName:"columnsLocation",choices:["horizontal","vertical"],visible:!1,isSerializable:!1},{name:"transposeData:boolean",version:"1.9.130",oldName:"columnLayout"},{name:"detailElements",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},{name:"cellErrorLocation",default:"default",choices:["default","top","bottom"]},{name:"detailErrorLocation",default:"default",choices:["default","top","bottom"],visibleIf:function(i){return!!i&&i.detailPanelMode!="none"}},{name:"horizontalScroll:boolean",visible:!1},{name:"choices:itemvalue[]",uniqueProperty:"value",visibleIf:function(i){return i.isSelectCellType()}},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return ri.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],function(){return new mr("")},"matrixbase");var Ia=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Da=function(i){Ia(t,i);function t(e,n,r,o){var s=i.call(this,r,o)||this;return s.name=e,s.item=n,s.buildCells(o),s}return Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),t.prototype.isItemVisible=function(){return this.item.isVisible},t.prototype.isRowEnabled=function(){return this.item.isEnabled},t.prototype.isRowHasEnabledCondition=function(){return!!this.item.enableIf},t.prototype.setRowsVisibleIfValues=function(e){e.item=this.item.value,e.choice=this.item.value},t}(Kt),ms=function(i){Ia(t,i);function t(e){var n=i.call(this,e)||this;return n.defaultValuesInRows={},n.createLocalizableString("totalText",n,!0),n.registerPropertyChangedHandlers(["rows"],function(){n.generatedVisibleRows&&(n.clearGeneratedRows(),n.resetRenderedTable(),n.getVisibleRows(),n.clearIncorrectValues())}),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){n.updateVisibilityBasedOnRows()}),n}return t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,n){if(!n)return n;var r=this.visibleRows,o={};if(!r)return o;for(var s=0;s<r.length;s++){var u=r[s].rowName,d=n[u];if(d){if(e){var y=re.getTextOrHtmlByValue(this.rows,u);y&&(u=y)}o[u]=this.getRowDisplayValue(e,r[s],d)}}return o},t.prototype.getConditionObjectRowName=function(e){return"."+this.rows[e].value},t.prototype.getConditionObjectRowText=function(e){return"."+this.rows[e].calculatedText},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],n=0;n<this.rows.length;n++)e.push(n);return e},t.prototype.isNewValueCorrect=function(e){return h.isValueObject(e,!0)},t.prototype.clearIncorrectValues=function(){if(!this.isEmpty()){this.getVisibleRows();var e={},n=this.value;for(var r in n){var o=this.getRowByKey(r);o&&o.isVisible&&(e[r]=n[r])}this.value=e}i.prototype.clearIncorrectValues.call(this)},t.prototype.getRowByKey=function(e){var n=this.generatedVisibleRows;if(!n)return null;for(var r=0;r<n.length;r++)if(n[r].rowName===e)return n[r];return null},t.prototype.clearGeneratedRows=function(){var e=this;this.generatedVisibleRows&&(this.isDisposed||this.generatedVisibleRows.forEach(function(n){e.defaultValuesInRows[n.rowName]=n.getNamesWithDefaultValues()}),i.prototype.clearGeneratedRows.call(this))},t.prototype.getRowValueForCreation=function(e,n){var r=e[n];if(!r)return r;var o=this.defaultValuesInRows[n];return!Array.isArray(o)||o.length===0||o.forEach(function(s){delete r[s]}),r},t.prototype.generateRows=function(){var e=new Array,n=this.rows;if(!n||n.length===0)return e;var r=this.value;r||(r={});for(var o=0;o<n.length;o++){var s=n[o];this.isValueEmpty(s.value)||e.push(this.createMatrixRow(s,this.getRowValueForCreation(r,s.value)))}return e},t.prototype.createMatrixRow=function(e,n){return new Da(e.value,e,this,n)},t.prototype.getFilteredDataCore=function(){var e={},n=this.createValueCopy();return this.generatedVisibleRows.forEach(function(r){var o=n[r.rowName];r.isVisible&&!h.isValueEmpty(o)&&(e[r.rowName]=o)}),e},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t.prototype.updateProgressInfoByValues=function(e){var n=this.value;n||(n={});for(var r=0;r<this.rows.length;r++){var o=this.rows[r],s=n[o.value];this.updateProgressInfoByRow(e,s||{})}},t}(mr);j.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],function(){return new ms("")},"matrixdropdownbase"),Se.Instance.registerQuestion("matrixdropdown",function(i){var t=new ms(i);return t.choices=[1,2,3,4,5],t.rows=Se.DefaultRows,mr.addDefaultColumns(t),t});var vs=!1,Aa=null;typeof navigator<"u"&&navigator&&B.isAvailable()&&(Aa=navigator.userAgent||navigator.vendor||B.hasOwn("opera")),function(i){i&&(navigator.platform==="MacIntel"&&navigator.maxTouchPoints>0||navigator.platform==="iPad"||/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substring(0,4)))&&(vs=!0)}(Aa);var ic=!1,mo=vs||ic,La={get isTouch(){return!this.hasMouse&&this.hasTouchEvent},get hasTouchEvent(){return B.isAvailable()&&(B.hasOwn("ontouchstart")||navigator.maxTouchPoints>0)},hasMouse:!0},oc=B.matchMedia;La.hasMouse=ac(oc);var Le=La.isTouch;function sc(i){Le=i}function ac(i){if(!i||mo)return!1;var t=i("(pointer:fine)"),e=i("(any-hover:hover)");return!!t&&t.matches||!!e&&e.matches}var lc=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};typeof window<"u"&&window.addEventListener("touchmove",function(i){Ma.PreventScrolling&&i.preventDefault()},{passive:!1});var Ma=function(){function i(t,e,n){var r=this;e===void 0&&(e=!0),n===void 0&&(n=!1),this.dd=t,this.longTap=e,this.fitToContainer=n,this.scrollIntervalId=null,this.stopLongTapIfMoveEnough=function(o){o.preventDefault(),r.currentX=o.pageX,r.currentY=o.pageY,!r.isMicroMovement&&(r.returnUserSelectBack(),r.stopLongTap())},this.stopLongTap=function(o){clearTimeout(r.timeoutID),r.timeoutID=null,document.removeEventListener("pointerup",r.stopLongTap),document.removeEventListener("pointermove",r.stopLongTapIfMoveEnough)},this.handlePointerCancel=function(o){r.clear()},this.handleEscapeButton=function(o){o.keyCode==27&&r.clear()},this.onContextMenu=function(o){o.preventDefault(),o.stopPropagation()},this.dragOver=function(o){r.moveShortcutElement(o),r.draggedElementShortcut.style.cursor="grabbing",r.dd.dragOver(o)},this.clear=function(){cancelAnimationFrame(r.scrollIntervalId),document.removeEventListener("pointermove",r.dragOver),document.removeEventListener("pointercancel",r.handlePointerCancel),document.removeEventListener("keydown",r.handleEscapeButton),document.removeEventListener("pointerup",r.drop),r.draggedElementShortcut.removeEventListener("pointerup",r.drop),Le&&r.draggedElementShortcut.removeEventListener("contextmenu",r.onContextMenu),r.draggedElementShortcut.parentElement.removeChild(r.draggedElementShortcut),r.dd.clear(),r.draggedElementShortcut=null,r.scrollIntervalId=null,Le&&(r.savedTargetNode.style.cssText=null,r.savedTargetNode&&r.savedTargetNode.parentElement.removeChild(r.savedTargetNode),r.insertNodeToParentAtIndex(r.savedTargetNodeParent,r.savedTargetNode,r.savedTargetNodeIndex),i.PreventScrolling=!1),r.savedTargetNode=null,r.savedTargetNodeParent=null,r.savedTargetNodeIndex=null,r.returnUserSelectBack()},this.drop=function(){r.dd.drop(),r.clear()},this.draggedElementShortcut=null}return Object.defineProperty(i.prototype,"documentOrShadowRoot",{get:function(){return I.environment.root},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rootElement",{get:function(){return An(I.environment.root)?this.rootContainer||I.environment.root.host:this.rootContainer||I.environment.root.documentElement||document.body},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isMicroMovement",{get:function(){var t=5,e=Math.abs(this.currentX-this.startX),n=Math.abs(this.currentY-this.startY);return e<t&&n<t},enumerable:!1,configurable:!0}),i.prototype.startLongTapProcessing=function(t,e,n,r,o){var s=this;o===void 0&&(o=!1),this.startX=t.pageX,this.startY=t.pageY,document.body.style.setProperty("touch-action","none","important"),this.timeoutID=setTimeout(function(){s.doStartDrag(t,e,n,r),o||(s.savedTargetNode=t.target,s.savedTargetNode.style.cssText=`
+          position: absolute;
+          height: 1px!important;
+          width: 1px!important;
+          overflow: hidden;
+          clip: rect(1px 1px 1px 1px);
+          clip: rect(1px, 1px, 1px, 1px);
+        `,s.savedTargetNodeParent=s.savedTargetNode.parentElement,s.savedTargetNodeIndex=s.getNodeIndexInParent(s.savedTargetNode),s.rootElement.appendChild(s.savedTargetNode)),s.stopLongTap()},this.longTap?500:0),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},i.prototype.moveShortcutElement=function(t){var e=this.rootElement.getBoundingClientRect().x,n=this.rootElement.getBoundingClientRect().y,r=this.rootElement.scrollLeft,o=this.rootElement.scrollTop;this.doScroll(t.clientY,t.clientX);var s=this.draggedElementShortcut.offsetHeight,u=this.draggedElementShortcut.offsetWidth,d=this.draggedElementShortcut.shortcutXOffset||u/2,y=this.draggedElementShortcut.shortcutYOffset||s/2;document.querySelectorAll("[dir='rtl']").length!==0&&(d=u/2,y=s/2);var V=document.documentElement.clientHeight,T=document.documentElement.clientWidth,N=t.pageX,U=t.pageY,W=t.clientX,X=t.clientY;e-=r,n-=o;var Y=this.getShortcutBottomCoordinate(X,s,y),J=this.getShortcutRightCoordinate(W,u,d);if(J>=T){this.draggedElementShortcut.style.left=T-u-e+"px",this.draggedElementShortcut.style.top=X-y-n+"px";return}if(W-d<=0){this.draggedElementShortcut.style.left=N-W-e+"px",this.draggedElementShortcut.style.top=X-n-y+"px";return}if(Y>=V){this.draggedElementShortcut.style.left=W-d-e+"px",this.draggedElementShortcut.style.top=V-s-n+"px";return}if(X-y<=0){this.draggedElementShortcut.style.left=W-d-e+"px",this.draggedElementShortcut.style.top=U-X-n+"px";return}this.draggedElementShortcut.style.left=W-e-d+"px",this.draggedElementShortcut.style.top=X-n-y+"px"},i.prototype.getShortcutBottomCoordinate=function(t,e,n){return t+e-n},i.prototype.getShortcutRightCoordinate=function(t,e,n){return t+e-n},i.prototype.requestAnimationFrame=function(t){return requestAnimationFrame(t)},i.prototype.scrollByDrag=function(t,e,n){var r=this,o=100,s,u,d,y;t.tagName==="HTML"?(s=0,u=document.documentElement.clientHeight,d=0,y=document.documentElement.clientWidth):(s=t.getBoundingClientRect().top,u=t.getBoundingClientRect().bottom,d=t.getBoundingClientRect().left,y=t.getBoundingClientRect().right);var V=function(){var T=e-s<=o,N=u-e<=o,U=n-d<=o,W=y-n<=o;T&&!U&&!W?t.scrollTop-=15:N&&!U&&!W?t.scrollTop+=15:W&&!T&&!N?t.scrollLeft+=15:U&&!T&&!N&&(t.scrollLeft-=15),r.scrollIntervalId=r.requestAnimationFrame(V)};this.scrollIntervalId=this.requestAnimationFrame(V)},i.prototype.doScroll=function(t,e){cancelAnimationFrame(this.scrollIntervalId);var n=this.draggedElementShortcut.style.display;this.draggedElementShortcut.style.display="none";var r=this.documentOrShadowRoot.elementFromPoint(e,t);this.draggedElementShortcut.style.display=n||"block";var o=ar(r);this.scrollByDrag(o,t,e)},i.prototype.doStartDrag=function(t,e,n,r){Le&&(i.PreventScrolling=!0),t.which!==3&&(this.dd.dragInit(t,e,n,r),this.rootElement.append(this.draggedElementShortcut),this.moveShortcutElement(t),document.addEventListener("pointermove",this.dragOver),document.addEventListener("pointercancel",this.handlePointerCancel),document.addEventListener("keydown",this.handleEscapeButton),document.addEventListener("pointerup",this.drop),Le?this.draggedElementShortcut.addEventListener("contextmenu",this.onContextMenu):this.draggedElementShortcut.addEventListener("pointerup",this.drop))},i.prototype.returnUserSelectBack=function(){document.body.style.setProperty("touch-action","auto"),document.body.style.setProperty("user-select","auto"),document.body.style.setProperty("-webkit-user-select","auto")},i.prototype.startDrag=function(t,e,n,r,o){if(o===void 0&&(o=!1),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),Le){this.startLongTapProcessing(t,e,n,r,o);return}this.doStartDrag(t,e,n,r)},i.prototype.getNodeIndexInParent=function(t){return lc([],t.parentElement.childNodes).indexOf(t)},i.prototype.insertNodeToParentAtIndex=function(t,e,n){t.insertBefore(e,t.childNodes[n])},i.PreventScrolling=!1,i}(),bs=function(){function i(t,e,n,r){var o=this,s;this.surveyValue=t,this.creator=e,this._isBottom=null,this.onGhostPositionChanged=new pt,this.onDragStart=new pt,this.onDragEnd=new pt,this.onDragClear=new pt,this.onBeforeDrop=this.onDragStart,this.onAfterDrop=this.onDragEnd,this.draggedElement=null,this.dropTarget=null,this.prevDropTarget=null,this.allowDropHere=!1,this.banDropHere=function(){o.allowDropHere=!1,o.doBanDropHere(),o.dropTarget=null,o.domAdapter.draggedElementShortcut.style.cursor="not-allowed",o.isBottom=null},this.doBanDropHere=function(){},this.domAdapter=r||new Ma(this,n,(s=this.survey)===null||s===void 0?void 0:s.fitToContainer)}return Object.defineProperty(i.prototype,"isBottom",{get:function(){return!!this._isBottom},set:function(t){this._isBottom=t,this.ghostPositionChanged()},enumerable:!1,configurable:!0}),i.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(i.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-"+this.draggedElementType+"]"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"survey",{get:function(){var t;return this.surveyValue||((t=this.creator)===null||t===void 0?void 0:t.survey)},enumerable:!1,configurable:!0}),i.prototype.startDrag=function(t,e,n,r,o){o===void 0&&(o=!1),this.domAdapter.rootContainer=this.getRootElement(this.survey,this.creator),this.domAdapter.startDrag(t,e,n,r,o)},i.prototype.getRootElement=function(t,e){return e?e.rootElement:t.rootElement},i.prototype.dragInit=function(t,e,n,r){this.draggedElement=e,this.parentElement=n;var o=this.getShortcutText(this.draggedElement);this.domAdapter.draggedElementShortcut=this.createDraggedElementShortcut(o,r,t),this.onStartDrag(t);var s=this.draggedElement&&this.draggedElement.parent;this.onDragStart.fire(this,{fromElement:s,draggedElement:this.draggedElement})},i.prototype.onStartDrag=function(t){},i.prototype.isDropTargetDoesntChanged=function(t){return this.dropTarget===this.prevDropTarget&&t===this.isBottom},i.prototype.getShortcutText=function(t){return t==null?void 0:t.shortcutText},i.prototype.createDraggedElementShortcut=function(t,e,n){var r=R.createElement("div");return r&&(r.innerText=t,r.className=this.getDraggedElementClass()),r},i.prototype.getDraggedElementClass=function(){return"sv-dragged-element-shortcut"},i.prototype.doDragOver=function(){},i.prototype.afterDragOver=function(t){},i.prototype.findDropTargetNodeFromPoint=function(t,e){var n=this.domAdapter.draggedElementShortcut.style.display;if(this.domAdapter.draggedElementShortcut.style.display="none",!R.isAvailable())return null;var r=this.domAdapter.documentOrShadowRoot.elementsFromPoint(t,e);this.domAdapter.draggedElementShortcut.style.display=n||"block";for(var o=0,s=r[o];s&&s.className&&typeof s.className.indexOf=="function"&&s.className.indexOf("sv-drag-target-skipped")!=-1;)o++,s=r[o];return s?this.findDropTargetNodeByDragOverNode(s):null},i.prototype.getDataAttributeValueByNode=function(t){var e=this,n="svDropTarget",r=this.draggedElementType.split("-");return r.forEach(function(o){n+=e.capitalizeFirstLetter(o)}),t.dataset[n]},i.prototype.getDropTargetByNode=function(t,e){var n=this.getDataAttributeValueByNode(t);return this.getDropTargetByDataAttributeValue(n,t,e)},i.prototype.capitalizeFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},i.prototype.calculateVerticalMiddleOfHTMLElement=function(t){var e=t.getBoundingClientRect();return e.y+e.height/2},i.prototype.calculateHorizontalMiddleOfHTMLElement=function(t){var e=t.getBoundingClientRect();return e.x+e.width/2},i.prototype.calculateIsBottom=function(t,e){return!1},i.prototype.findDropTargetNodeByDragOverNode=function(t){var e=t.closest(this.dropTargetDataAttributeName);return e},i.prototype.dragOver=function(t){var e=this.findDropTargetNodeFromPoint(t.clientX,t.clientY);if(!e){this.banDropHere();return}this.dropTarget=this.getDropTargetByNode(e,t);var n=this.isDropTargetValid(this.dropTarget,e);if(this.doDragOver(),!n){this.banDropHere();return}var r=this.calculateIsBottom(t.clientY,e);this.allowDropHere=!0,!this.isDropTargetDoesntChanged(r)&&(this.isBottom=null,this.isBottom=r,this.draggedElement!=this.dropTarget&&this.afterDragOver(e),this.prevDropTarget=this.dropTarget)},i.prototype.drop=function(){if(this.allowDropHere){var t=this.draggedElement.parent,e=this.doDrop();this.onDragEnd.fire(this,{fromElement:t,draggedElement:e,toElement:this.dropTarget})}},i.prototype.clear=function(){this.dropTarget=null,this.prevDropTarget=null,this.draggedElement=null,this.isBottom=null,this.parentElement=null,this.onDragClear.fire(this,{})},i}(),uc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),cc=function(i){uc(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.fromIndex=null,e.toIndex=null,e.doDrop=function(){return e.parentElement.moveRowByIndex(e.fromIndex,e.toIndex),e.parentElement},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.onStartDrag=function(){var e=R.getBody();e&&(this.restoreUserSelectValue=e.style.userSelect,e.style.userSelect="none")},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return new _().append(this.parentElement.cssClasses.draggedRow).toString()},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){var o=this,s=R.createElement("div");if(s){s.className=this.shortcutClass;var u=!0;if(n){var d=n.closest("[data-sv-drop-target-matrix-row]"),y=d.cloneNode(u);y.style.cssText=`
+        width: `+d.offsetWidth+`px;
+      `,y.classList.remove("sv-matrix__drag-drop--moveup"),y.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,s.appendChild(y);var V=n.getBoundingClientRect();s.shortcutXOffset=r.clientX-V.x,s.shortcutYOffset=r.clientY-V.y}var T=this.parentElement.renderedTable.rows;return T.forEach(function(N,U){N.row===o.draggedElement&&(N.isGhostRow=!0)}),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),s}},t.prototype.getDropTargetByDataAttributeValue=function(e){var n=this.parentElement,r;return r=n.renderedTable.rows.filter(function(o){return o.row&&o.row.id===e})[0],r.row},t.prototype.canInsertIntoThisRow=function(e){var n=this.parentElement.lockedRowCount;return n<=0||e.rowIndex>n},t.prototype.isDropTargetValid=function(e,n){return this.canInsertIntoThisRow(e)},t.prototype.calculateIsBottom=function(e){var n=this.parentElement.renderedTable.rows,r=n.map(function(o){return o.row});return r.indexOf(this.dropTarget)-r.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(e){var n=this;if(!this.isDropTargetDoesntChanged(this.isBottom)){var r,o,s,u=this.parentElement.renderedTable.rows;u.forEach(function(d,y){d.row===n.dropTarget&&(r=y),d.row===n.draggedElement&&(s=d,o=y,s.isGhostRow=!0)}),u.splice(o,1),u.splice(r,0,s),this.toIndex=this.parentElement.visibleRows.indexOf(this.dropTarget),i.prototype.ghostPositionChanged.call(this)}},t.prototype.clear=function(){var e=this.parentElement.renderedTable.rows;e.forEach(function(r){r.isGhostRow=!1}),this.parentElement.clearOnDrop(),this.fromIndex=null,this.toIndex=null;var n=R.getBody();n&&(n.style.userSelect=this.restoreUserSelectValue||"initial"),i.prototype.clear.call(this)},t}(bs),Cs=function(){function i(t){var e=this;this.dragHandler=t,this.onPointerUp=function(n){e.clearListeners()},this.tryToStartDrag=function(n){if(e.currentX=n.pageX,e.currentY=n.pageY,!e.isMicroMovement)return e.clearListeners(),e.dragHandler(e.pointerDownEvent,e.currentTarget,e.itemModel),!0}}return i.prototype.onPointerDown=function(t,e){if(Le){this.dragHandler(t,t.currentTarget,e);return}this.pointerDownEvent=t,this.currentTarget=t.currentTarget,this.startX=t.pageX,this.startY=t.pageY,R.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=e},Object.defineProperty(i.prototype,"isMicroMovement",{get:function(){var t=10,e=Math.abs(this.currentX-this.startX),n=Math.abs(this.currentY-this.startY);return e<t&&n<t},enumerable:!1,configurable:!0}),i.prototype.clearListeners=function(){this.pointerDownEvent&&(R.removeEventListener("pointermove",this.tryToStartDrag),this.currentTarget.removeEventListener("pointerup",this.onPointerUp))},i}(),ws=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ja=function(i){ws(t,i);function t(e,n,r){var o=i.call(this,n,r)||this;return o.index=e,o.buildCells(r),o}return t.prototype.getRowIndex=function(){var e=i.prototype.getRowIndex.call(this);return e>0?e:this.index+1},Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataName",{get:function(){return"row"+(this.index+1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return"row "+(this.index+1)},enumerable:!1,configurable:!0}),t.prototype.getAccessbilityText=function(){return(this.index+1).toString()},Object.defineProperty(t.prototype,"shortcutText",{get:function(){var e=this.data,n=e.visibleRows.indexOf(this)+1,r=this.cells.length>1?this.cells[1].questionValue:void 0,o=this.cells.length>0?this.cells[0].questionValue:void 0;return r&&r.value||o&&o.value||""+n},enumerable:!1,configurable:!0}),t}(Kt),Ps=function(i){ws(t,i);function t(e){var n=i.call(this,e)||this;n.rowCounter=0,n.setRowCountValueFromData=!1,n.startDragMatrixRow=function(o,s){n.dragDropMatrixRows.startDrag(o,n.draggedRow,n,o.target)},n.initialRowCount=n.getDefaultPropertyValue("rowCount"),n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete");var r=n.createLocalizableString("addRowText",n);return r.onGetTextCallback=function(o){return o||n.defaultAddRowText},n.createLocalizableString("removeRowText",n,!1,"removeRow"),n.createLocalizableString("emptyRowsText",n,!1,!0),n.registerPropertyChangedHandlers(["hideColumnsIfEmpty","allowAddRows"],function(){n.updateShowTableAndAddRow()}),n.registerPropertyChangedHandlers(["allowRowsDragAndDrop","isReadOnly","lockedRowCount"],function(){n.resetRenderedTable()}),n.registerPropertyChangedHandlers(["minRowCount"],function(){n.onMinRowCountChanged()}),n.registerPropertyChangedHandlers(["maxRowCount"],function(){n.onMaxRowCountChanged()}),n.dragOrClickHelper=new Cs(n.startDragMatrixRow),n}return t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.dragDropMatrixRows=new cc(this.survey,null,!0)},t.prototype.isBanStartDrag=function(e){var n=e.target;return n.getAttribute("contenteditable")==="true"||n.nodeName==="INPUT"||!this.isDragHandleAreaValid(n)},t.prototype.isDragHandleAreaValid=function(e){return this.survey.matrixDragHandleArea==="icon"?e.classList.contains(this.cssClasses.dragElementDecorator):!0},t.prototype.onPointerDown=function(e,n){!n||!this.isRowsDragAndDrop||this.isDesignMode||this.isBanStartDrag(e)||n.isDetailPanelShowing||(this.draggedRow=n,this.dragOrClickHelper.onPointerDown(e))},t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow")},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return i.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(e){if(this.minRowCount<1||this.isEmpty())return i.prototype.valueFromData.call(this,e);Array.isArray(e)||(e=[]);for(var n=e.length;n<this.minRowCount;n++)e.push({});return e},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultRowValue)||!this.isValueEmpty(this.defaultValue)){i.prototype.setDefaultValue.call(this);return}if(!(!this.isEmpty()||this.rowCount==0)){for(var e=[],n=0;n<this.rowCount;n++)e.push(this.defaultRowValue);this.value=e}},t.prototype.moveRowByIndex=function(e,n){var r=this.createNewValue();if(!(!Array.isArray(r)&&Math.max(e,n)>=r.length)){var o=r[e];r.splice(e,1),r.splice(n,0,o),this.value=r}},t.prototype.clearOnDrop=function(){this.isEditingSurveyElement||this.resetRenderedTable()},t.prototype.initDataUI=function(){this.generatedVisibleRows||this.getVisibleRows()},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(e=h.getNumber(e),!(e<0||e>I.matrix.maxRowCount)){this.setRowCountValueFromData=!1;var n=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var r=this.value;r.splice(e),this.value=r}if(this.isUpdateLocked){this.initialRowCount=e;return}if(this.generatedVisibleRows||n==0){this.generatedVisibleRows||(this.clearGeneratedRows(),this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var o=n;o<e;o++){var s=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(s),this.onMatrixRowCreated(s)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())}this.onRowsChanged()}},enumerable:!1,configurable:!0}),t.prototype.updateBindingProp=function(e,n){i.prototype.updateBindingProp.call(this,e,n);var r=this.generatedVisibleRows;if(!(e!=="rowCount"||!Array.isArray(r))){var o=this.getUnbindValue(this.value)||[];if(o.length<r.length){for(var s=!1,u=o.length;u<r.length;u++)s||(s=!r[u].isEmpty),o.push(r[u].value||{});s&&(this.value=o)}}},t.prototype.updateProgressInfoByValues=function(e){var n=this.value;Array.isArray(n)||(n=[]);for(var r=0;r<this.rowCount;r++){var o=r<n.length?n[r]:{};this.updateProgressInfoByRow(e,o)}},t.prototype.getValueForNewRow=function(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e},Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return this.getPropertyValue("allowRowsDragAndDrop")},set:function(e){this.setPropertyValue("allowRowsDragAndDrop",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDragAndDrop",{get:function(){return this.allowRowsDragAndDrop&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lockedRowCount",{get:function(){return this.getPropertyValue("lockedRowCount",0)},set:function(e){this.setPropertyValue("lockedRowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconDragElement",{get:function(){return this.cssClasses.iconDragElement},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new pc(this)},Object.defineProperty(t.prototype,"rowCountValue",{get:function(){return this.getPropertyValue("rowCount")},set:function(e){this.setPropertyValue("rowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e)},enumerable:!1,configurable:!0}),t.prototype.onMinRowCountChanged=function(){var e=this.minRowCount;e>this.maxRowCount&&(this.maxRowCount=e),this.initialRowCount<e&&(this.initialRowCount=e),this.rowCount<e&&(this.rowCount=e)},Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){e<=0||(e>I.matrix.maxRowCount&&(e=I.matrix.maxRowCount),e!=this.maxRowCount&&this.setPropertyValue("maxRowCount",e))},enumerable:!1,configurable:!0}),t.prototype.onMaxRowCountChanged=function(){var e=this.maxRowCount;e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)},Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows")},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows")},set:function(e){this.setPropertyValue("allowRemoveRows",e),this.isUpdateLocked||this.resetRenderedTable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){var e=this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(e):e},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){if(!this.survey)return!0;var n=e.rowIndex-1;return this.lockedRowCount>0&&n<this.lockedRowCount?!1:this.survey.matrixAllowRemoveRow(this,n,e)},t.prototype.addRowUI=function(){this.addRow(!0)},t.prototype.getQuestionToFocusOnAddingRow=function(){if(this.visibleRows.length===0)return null;for(var e=this.visibleRows[this.visibleRows.length-1],n=0;n<e.cells.length;n++){var r=e.cells[n].question;if(r&&r.isVisible&&!r.isReadOnly)return r}return null},t.prototype.addRow=function(e){var n=this.rowCount,r=this.canAddRow,o={question:this,canAddRow:r,allow:r};this.survey&&this.survey.matrixBeforeRowAdded(o);var s=r!==o.allow?o.allow:r!==o.canAddRow?o.canAddRow:r;if(s&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel(),e&&n!==this.rowCount)){var u=this.getQuestionToFocusOnAddingRow();u&&u.focus()}},Object.defineProperty(t.prototype,"detailPanelShowOnAdding",{get:function(){return this.getPropertyValue("detailPanelShowOnAdding")},set:function(e){this.setPropertyValue("detailPanelShowOnAdding",e)},enumerable:!1,configurable:!0}),t.prototype.hasRowsAsItems=function(){return!1},t.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,i.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(e){return this.isEditingSurveyElement||i.prototype.isValueSurveyElement.call(this,e)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var n=this.getDefaultRowValue(!0),r=null;if(this.isValueEmpty(n)||(r=this.createNewValue(),r.length==this.rowCount&&(r[r.length-1]=n,this.value=r)),this.data){this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties());var o=this.visibleRows;if(this.isValueEmpty(n)&&o.length>0){var s=o[o.length-1];this.isValueEmpty(s.value)||(r||(r=this.createNewValue()),!this.isValueSurveyElement(r)&&!this.isTwoValueEquals(r[r.length-1],s.value)&&(r[r.length-1]=s.value,this.value=r))}}if(this.survey){var o=this.visibleRows;if(e+1==this.rowCount&&o.length>0){var s=o[o.length-1];this.survey.matrixRowAdded(this,s),this.onRowsChanged()}}},t.prototype.getDefaultRowValue=function(e){for(var n=null,r=0;r<this.columns.length;r++){var o=this.columns[r].templateQuestion;o&&!this.isValueEmpty(o.getDefaultValue())&&(n=n||{},n[this.columns[r].name]=o.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var s in this.defaultRowValue)n=n||{},n[s]=this.defaultRowValue[s];if(e&&this.defaultValueFromLastRow){var u=this.value;if(u&&Array.isArray(u)&&u.length>=this.rowCount-1){var d=u[this.rowCount-2];for(var s in d)n=n||{},n[s]=d[s]}}return n},t.prototype.focusAddBUtton=function(){var e=this.getRootElement();if(e&&this.cssClasses.buttonAdd){var n=e.querySelectorAll("."+this.cssClasses.buttonAdd)[0];n&&n.focus()}},t.prototype.getActionCellIndex=function(e){var n=this.showHeader?1:0;return this.isColumnLayoutHorizontal?e.cells.length-1+n:this.visibleRows.indexOf(e)+n},t.prototype.removeRowUI=function(e){var n=this;if(e&&e.rowName){var r=this.visibleRows.indexOf(e);if(r<0)return;e=r}this.removeRow(e,void 0,function(){var o=n.visibleRows.length,s=r>=o?o-1:r,u=s>-1?n.visibleRows[s]:void 0;setTimeout(function(){u?n.renderedTable.focusActionCell(u,n.getActionCellIndex(u)):n.focusAddBUtton()},10)})},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete||e<0||e>=this.rowCount)return!1;var n=this.createNewValue();return this.isValueEmpty(n)||!Array.isArray(n)||e>=n.length?!1:!this.isValueEmpty(n[e])},t.prototype.removeRow=function(e,n,r){var o=this;if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var s=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;if(n===void 0&&(n=this.isRequireConfirmOnRowDelete(e)),n){Wt({message:this.confirmDeleteText,funcOnYes:function(){o.removeRowAsync(e,s),r&&r()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.removeRowAsync(e,s),r&&r()}},t.prototype.removeRowAsync=function(e,n){n&&this.survey&&!this.survey.matrixRowRemoving(this,e,n)||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(n))},t.prototype.removeRowCore=function(e){var n=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var r=[];Array.isArray(this.value)&&e<this.value.length?r=this.createValueCopy():r=this.createNewValue(),r.splice(e,1),r=this.deleteRowValue(r,null),this.isRowChanging=!0,this.value=r,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,n)},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){return this.getLocalizableStringText("addRowText",this.defaultAddRowText)},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultAddRowText",{get:function(){return this.getLocalizationString(this.isColumnLayoutHorizontal?"addRow":"addColumn")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return this.addRowLocation},Object.defineProperty(t.prototype,"hideColumnsIfEmpty",{get:function(){return this.getPropertyValue("hideColumnsIfEmpty")},set:function(e){this.setPropertyValue("hideColumnsIfEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getShowColumnsIfEmpty=function(){return this.hideColumnsIfEmpty},Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText")},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyRowsText",{get:function(){return this.getLocalizableStringText("emptyRowsText")},set:function(e){this.setLocalizableStringText("emptyRowsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEmptyRowsText",{get:function(){return this.getLocalizableString("emptyRowsText")},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,n){if(!n||!Array.isArray(n))return n;for(var r=this.getUnbindValue(n),o=this.visibleRows,s=0;s<o.length&&s<r.length;s++){var u=r[s];u&&(r[s]=this.getRowDisplayValue(e,o[s],u))}return r},t.prototype.getConditionObjectRowName=function(e){return"["+e.toString()+"]"},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],n=Math.max(this.rowCount,1),r=0;r<Math.min(I.matrix.maxRowCountInCondition,n);r++)e.push(r);return e},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(e,n,r){i.prototype.onCheckForErrors.call(this,e,n,r),!n&&this.hasErrorInMinRows()&&e.push(new io(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,n=0;n<this.generatedVisibleRows.length;n++){var r=this.generatedVisibleRows[n];r.isEmpty||e++}return e<this.minRowCount},t.prototype.getUniqueColumnsNames=function(){var e=i.prototype.getUniqueColumnsNames.call(this),n=this.keyName;return n&&e.indexOf(n)<0&&e.push(n),e},t.prototype.generateRows=function(){var e=new Array;if(this.rowCount===0)return e;for(var n=this.createNewValue(),r=0;r<this.rowCount;r++)e.push(this.createMatrixRow(this.getRowValueByIndex(n,r)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=n),e},t.prototype.createMatrixRow=function(e){return new ja(this.rowCounter++,this,e)},t.prototype.getInsertedDeletedIndex=function(e,n){for(var r=Math.min(e.length,n.length),o=0;o<r;o++)if(n[o]!==e[o].editingObj)return o;return r},t.prototype.isEditingObjectValueChanged=function(){var e=this.value;if(!this.generatedVisibleRows||!this.isValueSurveyElement(e))return!1;var n=this.lastDeletedRow;this.lastDeletedRow=void 0;var r=this.generatedVisibleRows;if(!Array.isArray(e)||Math.abs(r.length-e.length)>1||r.length===e.length)return!1;var o=this.getInsertedDeletedIndex(r,e);if(r.length>e.length){this.lastDeletedRow=r[o];var s=r[o];r.splice(o,1),this.isRendredTableCreated&&this.renderedTable.onRemovedRow(s)}else{var u=void 0;n&&n.editingObj===e[o]?u=n:(n=void 0,u=this.createMatrixRow(e[o])),r.splice(o,0,u),n||this.onMatrixRowCreated(u),this.isRendredTableCreated&&this.renderedTable.onAddedRow(u,o)}return this.setPropertyValueDirectly("rowCount",e.length),!0},t.prototype.updateValueFromSurvey=function(e,n){if(n===void 0&&(n=!1),this.setRowCountValueFromData=!0,this.minRowCount>0&&h.isValueEmpty(e)&&!h.isValueEmpty(this.defaultRowValue)){e=[];for(var r=0;r<this.minRowCount;r++)e.push(h.createCopy(this.defaultRowValue))}i.prototype.updateValueFromSurvey.call(this,e,n),this.setRowCountValueFromData=!1},t.prototype.getFilteredDataCore=function(){var e=[],n=this.createValueCopy();if(!Array.isArray(n))return e;for(var r=this.generatedVisibleRows,o=0;o<r.length&&o<n.length;o++){var s=n[o];r[o].isVisible&&!h.isValueEmpty(s)&&e.push(s)}return e},t.prototype.onBeforeValueChanged=function(e){if(!(!e||!Array.isArray(e))){var n=e.length;if(n!=this.rowCount&&!(!this.setRowCountValueFromData&&n<this.initialRowCount)&&!this.isEditingObjectValueChanged()&&(this.setRowCountValueFromData=!0,this.rowCountValue=n,!!this.generatedVisibleRows)){if(n==this.generatedVisibleRows.length+1){this.onStartRowAddingRemoving();var r=this.getRowValueByIndex(e,n-1),o=this.createMatrixRow(r);this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o),this.onEndRowAdding()}else this.clearGeneratedRows(),this.getVisibleRows(),this.onRowsChanged();this.setRowCountValueFromData=!1}}},t.prototype.createNewValue=function(){var e=this.createValueCopy();(!e||!Array.isArray(e))&&(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var n=this.getDefaultRowValue(!1);n=n||{};for(var r=e.length;r<this.rowCount;r++)e.push(this.getUnbindValue(n));return e},t.prototype.deleteRowValue=function(e,n){if(!Array.isArray(e))return e;for(var r=!0,o=0;o<e.length;o++)if(this.isObject(e[o])&&Object.keys(e[o]).length>0){r=!1;break}return r?null:e},t.prototype.getRowValueByIndex=function(e,n){return Array.isArray(e)&&n>=0&&n<e.length?e[n]:null},t.prototype.getRowValueCore=function(e,n,r){if(r===void 0&&(r=!1),!this.generatedVisibleRows)return{};var o=this.getRowValueByIndex(n,this.generatedVisibleRows.indexOf(e));return!o&&r&&(o={}),o},t.prototype.getAddRowButtonCss=function(e){return e===void 0&&(e=!1),new _().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return new _().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var e;return new _().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(!((e=this.renderedTable)===null||e===void 0)&&e.showTable)).toString()},t}(mr),pc=function(i){ws(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.setDefaultRowActions=function(e,n){i.prototype.setDefaultRowActions.call(this,e,n)},t}(gs);j.addClass("matrixdynamic",[{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0,isBindable:!0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:I.matrix.maxRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(i){return!i||i.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"},"hideColumnsIfEmpty:boolean",{name:"emptyRowsText:text",serializationProperty:"locEmptyRowsText",dependsOn:"hideColumnsIfEmpty",visibleIf:function(i){return!i||i.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(i){return i.detailPanelMode!=="none"}},"allowRowsDragAndDrop:switch"],function(){return new Ps("")},"matrixdropdownbase"),Se.Instance.registerQuestion("matrixdynamic",function(i){var t=new Ps(i);return t.choices=[1,2,3,4,5],mr.addDefaultColumns(t),t});var qe={currentType:"",getCss:function(){var i=this.currentType?this[this.currentType]:vo;return i||(i=vo),i},getAvailableThemes:function(){return Object.keys(this).filter(function(i){return["currentType","getCss","getAvailableThemes"].indexOf(i)===-1})}},vo={root:"sd-root-modern",rootProgress:"sd-progress",rootMobile:"sd-root-modern--mobile",rootAnimationDisabled:"sd-root-modern--animation-disabled",rootReadOnly:"sd-root--readonly",rootCompact:"sd-root--compact",rootFitToContainer:"sd-root-modern--full-container",rootWrapper:"sd-root-modern__wrapper",rootWrapperFixed:"sd-root-modern__wrapper--fixed",rootWrapperHasImage:"sd-root-modern__wrapper--has-image",rootBackgroundImage:"sd-root_background-image",container:"sd-container-modern",header:"sd-title sd-container-modern__title",bodyContainer:"sv-components-row",body:"sd-body",bodyWithTimer:"sd-body--with-timer",clockTimerRoot:"sd-timer",clockTimerRootTop:"sd-timer--top",clockTimerRootBottom:"sd-timer--bottom",clockTimerProgress:"sd-timer__progress",clockTimerProgressAnimation:"sd-timer__progress--animation",clockTimerTextContainer:"sd-timer__text-container",clockTimerMinorText:"sd-timer__text--minor",clockTimerMajorText:"sd-timer__text--major",bodyEmpty:"sd-body sd-body--empty",bodyLoading:"sd-body--loading",footer:"sd-footer sd-body__navigation sd-clearfix",title:"sd-title",description:"sd-description",logo:"sd-logo",logoImage:"sd-logo__image",headerText:"sd-header__text",headerClose:"sd-hidden",navigationButton:"",bodyNavigationButton:"sd-btn",completedPage:"sd-completedpage",completedBeforePage:"sd-completed-before-page",timerRoot:"sd-body__timer",navigation:{complete:"sd-btn--action sd-navigation__complete-btn",prev:"sd-navigation__prev-btn",next:"sd-navigation__next-btn",start:"sd-navigation__start-btn",preview:"sd-navigation__preview-btn",edit:"sd-btn sd-btn--small"},panel:{contentEnter:"sd-element__content--enter",contentLeave:"sd-element__content--leave",enter:"sd-element-wrapper--enter",leave:"sd-element-wrapper--leave",asPage:"sd-panel--as-page",number:"sd-element__num",title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleNumInline:"sd-element__title--num-inline",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",titleBar:"sd-action-title-bar",description:"sd-description sd-panel__description",container:"sd-element sd-element--complex sd-panel sd-row__panel",withFrame:"sd-element--with-frame",content:"sd-element__content sd-panel__content",icon:"sd-panel__icon",iconExpanded:"sd-panel__icon--expanded",footer:"sd-panel__footer",requiredText:"sd-panel__required-text",header:"sd-panel__header sd-element__header sd-element__header--location-top",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",expandable:"sd-element--expandable",expandableAnimating:"sd-elemenet--expandable--animating",nested:"sd-element--nested sd-element--nested-with-borders",invisible:"sd-element--invisible",navigationButton:"",compact:"sd-element--with-frame sd-element--compact",errorsContainer:"sd-panel__errbox sd-element__erbox sd-element__erbox--above-element"},paneldynamic:{mainRoot:"sd-element  sd-question sd-question--paneldynamic sd-element--complex sd-question--complex sd-row__question",empty:"sd-question--empty",root:"sd-paneldynamic",iconRemove:"sd-hidden",navigation:"sd-paneldynamic__navigation",title:"sd-title sd-element__title sd-question__title",header:"sd-paneldynamic__header sd-element__header",headerTab:"sd-paneldynamic__header-tab",button:"sd-action sd-paneldynamic__btn",buttonRemove:"sd-action--negative sd-paneldynamic__remove-btn",buttonAdd:"sd-paneldynamic__add-btn",buttonPrev:"sd-paneldynamic__prev-btn sd-action--icon sd-action",buttonPrevDisabled:"sd-action--disabled",buttonNextDisabled:"sd-action--disabled",buttonNext:"sd-paneldynamic__next-btn sd-action--icon sd-action",progressContainer:"sd-paneldynamic__progress-container",progress:"sd-progress",progressBar:"sd-progress__bar",nested:"sd-element--nested sd-element--nested-with-borders",progressText:"sd-paneldynamic__progress-text",separator:"sd-paneldynamic__separator",panelWrapper:"sd-paneldynamic__panel-wrapper",footer:"sd-paneldynamic__footer",panelFooter:"sd-paneldynamic__panel-footer",footerButtonsContainer:"sd-paneldynamic__buttons-container",panelsContainer:"sd-paneldynamic__panels-container",panelWrapperInRow:"sd-paneldynamic__panel-wrapper--in-row",panelWrapperEnter:"sd-paneldynamic__panel-wrapper--enter",panelWrapperLeave:"sd-paneldynamic__panel-wrapper--leave",panelWrapperList:"sd-paneldynamic__panel-wrapper--list",progressBtnIcon:"icon-progressbuttonv2",noEntriesPlaceholder:"sd-paneldynamic__placeholder sd-question__placeholder",compact:"sd-element--with-frame sd-element--compact",tabsRoot:"sd-tabs-toolbar",tabsLeft:"sd-tabs-toolbar--left",tabsRight:"sd-tabs-toolbar--right",tabsCenter:"sd-tabs-toolbar--center",tabs:{item:"sd-tab-item",itemPressed:"sd-tab-item--pressed",itemAsIcon:"sd-tab-item--icon",itemIcon:"sd-tab-item__icon",itemTitle:"sd-tab-item__title"}},progress:"sd-progress sd-body__progress",progressTop:"sd-body__progress--top",progressBottom:"sd-body__progress--bottom",progressBar:"sd-progress__bar",progressText:"sd-progress__text",progressButtonsRoot:"sd-progress-buttons",progressButtonsNumbered:"sd-progress-buttons--numbered",progressButtonsFitSurveyWidth:"sd-progress-buttons--fit-survey-width",progressButtonsContainerCenter:"sd-progress-buttons__container-center",progressButtonsContainer:"sd-progress-buttons__container",progressButtonsConnector:"sd-progress-buttons__connector",progressButtonsButton:"sd-progress-buttons__button",progressButtonsButtonBackground:"sd-progress-buttons__button-background",progressButtonsButtonContent:"sd-progress-buttons__button-content",progressButtonsHeader:"sd-progress-buttons__header",progressButtonsFooter:"sd-progress-buttons__footer",progressButtonsImageButtonLeft:"sd-progress-buttons__image-button-left",progressButtonsImageButtonRight:"sd-progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sd-progress-buttons__image-button--hidden",progressButtonsListContainer:"sd-progress-buttons__list-container",progressButtonsList:"sd-progress-buttons__list",progressButtonsListElementPassed:"sd-progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sd-progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sd-progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sd-progress-buttons__page-title",progressButtonsPageDescription:"sd-progress-buttons__page-description",progressTextInBar:"sd-hidden",page:{root:"sd-page sd-body__page",emptyHeaderRoot:"sd-page__empty-header",title:"sd-title sd-page__title",description:"sd-description sd-page__description",number:"sd-page__num",errorsContainer:"sd-page__errbox"},pageTitle:"sd-title sd-page__title",pageDescription:"sd-description sd-page__description",row:"sd-row sd-clearfix",rowMultiple:"sd-row--multiple",rowCompact:"sd-row--compact",rowEnter:"sd-row--enter",rowDelayedEnter:"sd-row--delayed-enter",rowLeave:"sd-row--leave",rowReplace:"sd-row--replace",pageRow:"sd-page__row",question:{contentEnter:"sd-element__content--enter",contentLeave:"sd-element__content--leave",enter:"sd-element-wrapper--enter",leave:"sd-element-wrapper--leave",mobile:"sd-question--mobile",mainRoot:"sd-element sd-question sd-row__question",flowRoot:"sd-element sd-question sd-row__question sd-row__question--flow",withFrame:"sd-element--with-frame",asCell:"sd-table__cell",answered:"sd-question--answered",header:"sd-question__header sd-element__header",headerLeft:"sd-question__header--location--left",headerTop:"sd-question__header--location-top sd-element__header--location-top",headerBottom:"sd-question__header--location--bottom",content:"sd-element__content sd-question__content",contentSupportContainerQueries:"sd-question__content--support-container-queries",contentLeft:"sd-question__content--left",titleNumInline:"sd-element__title--num-inline",titleLeftRoot:"sd-question--left",titleTopRoot:"sd-question--title-top",descriptionUnderInputRoot:"sd-question--description-under-input",titleBottomRoot:"sd-question--title-bottom",titleOnAnswer:"sd-question__title--answer",titleEmpty:"sd-question__title--empty",titleOnError:"sd-question__title--error",title:"sd-title sd-element__title sd-question__title",titleExpandable:"sd-element__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleReadOnly:"sd-element__title--readonly",titleBar:"sd-action-title-bar",requiredText:"sd-question__required-text",number:"sd-element__num",description:"sd-description sd-question__description",descriptionUnderInput:"sd-question__description--under-input",comment:"sd-input sd-comment",other:"sd-input sd-comment",required:"sd-question--required",titleRequired:"sd-question__title--required",indent:20,footer:"sd-question__footer",commentArea:"sd-question__comment-area",formGroup:"sd-question__form-group",hasError:"sd-question--error",hasErrorTop:"sd-question--error-top",hasErrorBottom:"sd-question--error-bottom",collapsed:"sd-element--collapsed",expandable:"sd-element--expandable",expandableAnimating:"sd-elemenet--expandable--animating",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",composite:"sd-element--complex sd-composite",disabled:"sd-question--disabled",readOnly:"sd-question--readonly",preview:"sd-question--preview",noPointerEventsMode:"sd-question--no-pointer-events",errorsContainer:"sd-element__erbox sd-question__erbox",errorsContainerTop:"sd-element__erbox--above-element sd-question__erbox--above-question",errorsContainerBottom:"sd-question__erbox--below-question",confirmDialog:"sd-popup--confirm sv-popup--confirm"},image:{mainRoot:"sd-question sd-question--image",root:"sd-image",image:"sd-image__image",adaptive:"sd-image__image--adaptive",noImage:"sd-image__no-image",noImageSvgIconId:"icon-no-image",withFrame:""},html:{mainRoot:"sd-question sd-row__question sd-question--html",root:"sd-html",withFrame:"",nested:"sd-element--nested sd-html--nested"},error:{root:"sd-error",icon:"",item:"",locationTop:"",locationBottom:""},checkbox:{root:"sd-selectbase",rootMobile:"sd-selectbase--mobile",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-checkbox sd-selectbase__item",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",itemOnError:"sd-item--error",itemSelectAll:"sd-checkbox--selectall",itemNone:"sd-checkbox--none",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemReadOnly:"sd-item--readonly sd-checkbox--readonly",itemPreview:"sd-item--preview sd-checkbox--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemSvgIconId:"#icon-check-16x16",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-checkbox__decorator",other:"sd-input sd-comment sd-selectbase__other",column:"sd-selectbase__column"},radiogroup:{root:"sd-selectbase",rootMobile:"sd-selectbase--mobile",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-radio sd-selectbase__item",itemOnError:"sd-item--error",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-radio__decorator",other:"sd-input sd-comment sd-selectbase__other",clearButton:"",column:"sd-selectbase__column"},boolean:{mainRoot:"sd-element sd-question sd-row__question sd-question--boolean",root:"sv_qcbc sv_qbln sd-scrollable-container sd-boolean-root",rootRadio:"sv_qcbc sv_qbln sd-scrollable-container sd-scrollable-container--compact",item:"sd-boolean",itemOnError:"sd-boolean--error",control:"sd-boolean__control sd-visuallyhidden",itemChecked:"sd-boolean--checked",itemExchanged:"sd-boolean--exchanged",itemIndeterminate:"sd-boolean--indeterminate",itemDisabled:"sd-boolean--disabled",itemReadOnly:"sd-boolean--readonly",itemPreview:"sd-boolean--preview",itemHover:"sd-boolean--allowhover",label:"sd-boolean__label",labelTrue:"sd-boolean__label--true",labelFalse:"sd-boolean__label--false",switch:"sd-boolean__switch",disabledLabel:"sd-checkbox__label--disabled",labelReadOnly:"sd-checkbox__label--readonly",labelPreview:"sd-checkbox__label--preview",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb",sliderGhost:"sd-boolean__thumb-ghost",radioItem:"sd-item",radioItemChecked:"sd-item--checked sd-radio--checked",radioItemDisabled:"sd-item--disabled sd-radio--disabled",radioItemReadOnly:"sd-item--readonly sd-radio--readonly",radioItemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",radioLabel:"sd-selectbase__label",radioControlLabel:"sd-item__control-label",radioFieldset:"sd-selectbase",itemRadioDecorator:"sd-item__svg sd-radio__svg",materialRadioDecorator:"sd-item__decorator sd-radio__decorator",itemRadioControl:"sd-visuallyhidden sd-item__control sd-radio__control",rootCheckbox:"sd-selectbase",checkboxItem:"sd-item sd-selectbase__item sd-checkbox",checkboxLabel:"sd-selectbase__label",checkboxItemOnError:"sd-item--error",checkboxItemIndeterminate:"sd-checkbox--intermediate",checkboxItemChecked:"sd-item--checked sd-checkbox--checked",checkboxItemDecorator:"sd-item__svg sd-checkbox__svg",checkboxItemDisabled:"sd-item--disabled sd-checkbox--disabled",checkboxItemReadOnly:"sd-item--readonly sd-checkbox--readonly",checkboxItemPreview:"sd-item--preview sd-checkbox--preview",controlCheckbox:"sd-visuallyhidden sd-item__control sd-checkbox__control",checkboxMaterialDecorator:"sd-item__decorator sd-checkbox__decorator",checkboxControlLabel:"sd-item__control-label",svgIconCheckedId:"#icon-check-16x16"},text:{root:"sd-input sd-text",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",constrolWithCharacterCounter:"sd-text__character-counter",characterCounterBig:"sd-text__character-counter--big",content:"sd-text__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},multipletext:{root:"sd-multipletext",rootMobile:"sd-multipletext--mobile",itemLabel:"sd-multipletext__item-container sd-input",itemLabelReadOnly:"sd-input--readonly",itemLabelDisabled:"sd-input--disabled",itemLabelPreview:"sd-input--preview",itemLabelOnError:"sd-multipletext__item-container--error",itemLabelAllowFocus:"sd-multipletext__item-container--allow-focus",itemLabelAnswered:"sd-multipletext__item-container--answered",itemWithCharacterCounter:"sd-multipletext-item__character-counter",item:"sd-multipletext__item",itemTitle:"sd-multipletext__item-title",content:"sd-multipletext__content sd-question__content",row:"sd-multipletext__row",cell:"sd-multipletext__cell",cellError:"sd-multipletext__cell--error",cellErrorTop:"sd-multipletext__cell--error-top",cellErrorBottom:"sd-multipletext__cell--error-bottom"},dropdown:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-dropdown_clean-button",cleanButtonSvg:"sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-cancel",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-dropdown",controlInputFieldComponent:"sd-dropdown__input-field-component",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-radio__decorator",hintPrefix:"sd-dropdown__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix"},imagepicker:{mainRoot:"sd-element sd-question sd-row__question",root:"sd-selectbase sd-imagepicker",rootColumn:"sd-imagepicker--column",item:"sd-imagepicker__item",itemOnError:"sd-imagepicker__item--error",itemInline:"sd-imagepicker__item--inline",itemChecked:"sd-imagepicker__item--checked",itemDisabled:"sd-imagepicker__item--disabled",itemReadOnly:"sd-imagepicker__item--readonly",itemPreview:"sd-imagepicker__item--preview",itemHover:"sd-imagepicker__item--allowhover",label:"sd-imagepicker__label",itemDecorator:"sd-imagepicker__item-decorator",imageContainer:"sd-imagepicker__image-container",itemControl:"sd-imagepicker__control sd-visuallyhidden",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",other:"sd-input sd-comment",itemNoImage:"sd-imagepicker__no-image",itemNoImageSvgIcon:"sd-imagepicker__no-image-svg",itemNoImageSvgIconId:"icon-no-image",column:"sd-selectbase__column sd-imagepicker__column",checkedItemDecorator:"sd-imagepicker__check-decorator",checkedItemSvgIcon:"sd-imagepicker__check-icon",checkedItemSvgIconId:"icon-check-24x24"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix sd-table-wrapper",root:"sd-table sd-matrix__table",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",rootAlternateRows:"sd-table--alternate-rows",rowError:"sd-matrix__row--error",cell:"sd-table__cell sd-matrix__cell",row:"sd-table__row",rowDisabled:"sd-table__row-disabled",rowReadOnly:"sd-table__row-readonly",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-matrix__cell sd-table__cell--row-text",label:"sd-item sd-radio sd-matrix__label",itemOnError:"sd-item--error",itemValue:"sd-visuallyhidden sd-item__control sd-radio__control",itemChecked:"sd-item--checked sd-radio--checked",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemHover:"sd-radio--allowhover",materialDecorator:"sd-item__decorator sd-radio__decorator",itemDecorator:"sd-item__svg sd-radio__svg",cellText:"sd-matrix__text",cellTextSelected:"sd-matrix__text--checked",cellTextDisabled:"sd-matrix__text--disabled",cellResponsiveTitle:"sd-matrix__responsive-title",compact:"sd-element--with-frame sd-element--compact"},matrixdropdown:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",root:"sd-table sd-matrixdropdown",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",hasFooter:"sd-table--has-footer",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",cell:"sd-table__cell",cellResponsiveTitle:"sd-table__responsive-title",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",itemCell:"sd-table__cell--item",row:"sd-table__row",rowDelayedEnter:"sd-table__row--delayed-enter",rowEnter:"sd-table__row--enter",rowLeave:"sd-table__row--leave",expandedRow:"sd-table__row--expanded",rowHasPanel:"sd-table__row--has-panel",rowHasEndActions:"sd-table__row--has-end-actions",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",footerCell:"sd-table__cell sd-table__cell--footer",footerTotalCell:"sd-table__cell sd-table__cell--footer-total",columnTitleCell:"sd-table__cell--column-title",cellRequiredText:"sd-question__required-text",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",detailRowCell:"sd-table__cell--detail",actionsCellPrefix:"sd-table__cell-action",actionsCell:"sd-table__cell sd-table__cell--actions",actionsCellDrag:"sd-table__cell--drag",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-matrix__question-wrapper sd-table__question-wrapper",compact:"sd-element--with-frame sd-element--compact"},matrixdynamic:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",hasFooter:"sd-table--has-footer",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",content:"sd-matrixdynamic__content sd-question__content",cell:"sd-table__cell",cellResponsiveTitle:"sd-table__responsive-title",row:"sd-table__row",rowDelayedEnter:"sd-table__row--delayed-enter",rowEnter:"sd-table__row--enter",rowLeave:"sd-table__row--leave",rowHasPanel:"sd-table__row--has-panel",rowHasEndActions:"sd-table__row--has-end-actions",expandedRow:"sd-table__row--expanded",itemCell:"sd-table__cell--item",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",footerCell:"sd-table__cell sd-table__cell--footer",columnTitleCell:"sd-table__cell--column-title",cellRequiredText:"sd-question__required-text",button:"sd-action sd-matrixdynamic__btn",detailRow:"sd-table__row sd-table__row--detail",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",detailRowCell:"sd-table__cell--detail",actionsCellPrefix:"sd-table__cell-action",actionsCell:"sd-table__cell sd-table__cell--actions",actionsCellDrag:"sd-table__cell--drag",buttonAdd:"sd-matrixdynamic__add-btn",buttonRemove:"sd-action--negative sd-matrixdynamic__remove-btn",iconAdd:"sd-hidden",iconRemove:"",dragElementDecorator:"sd-drag-element__svg",iconDragElement:"#icon-drag-24x24",footer:"sd-matrixdynamic__footer",footerTotalCell:"sd-table__cell sd-table__cell--footer-total",emptyRowsSection:"sd-matrixdynamic__placeholder sd-question__placeholder",iconDrag:"sv-matrixdynamic__drag-icon",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-matrix__question-wrapper sd-table__question-wrapper",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",compact:"sd-element--with-frame sd-element--compact"},rating:{rootDropdown:"sd-scrollable-container sd-scrollable-container--compact sd-selectbase",root:"sd-scrollable-container sd-rating",rootWrappable:"sd-rating--wrappable",rootLabelsTop:"sd-rating--labels-top",rootLabelsBottom:"sd-rating--labels-bottom",rootLabelsDiagonal:"sd-rating--labels-diagonal",item:"sd-rating__item",itemOnError:"sd-rating__item--error",itemHover:"sd-rating__item--allowhover",selected:"sd-rating__item--selected",itemStar:"sd-rating__item-star",itemStarOnError:"sd-rating__item-star--error",itemStarHover:"sd-rating__item-star--allowhover",itemStarSelected:"sd-rating__item-star--selected",itemStarDisabled:"sd-rating__item-star--disabled",itemStarReadOnly:"sd-rating__item-star--readonly",itemStarPreview:"sd-rating__item-star--preview",itemStarHighlighted:"sd-rating__item-star--highlighted",itemStarUnhighlighted:"sd-rating__item-star--unhighlighted",itemStarSmall:"sd-rating__item-star--small",itemSmiley:"sd-rating__item-smiley",itemSmileyOnError:"sd-rating__item-smiley--error",itemSmileyHover:"sd-rating__item-smiley--allowhover",itemSmileySelected:"sd-rating__item-smiley--selected",itemSmileyDisabled:"sd-rating__item-smiley--disabled",itemSmileyReadOnly:"sd-rating__item-smiley--readonly",itemSmileyPreview:"sd-rating__item-smiley--preview",itemSmileyHighlighted:"sd-rating__item-star--highlighted",itemSmileyScaleColored:"sd-rating__item-smiley--scale-colored",itemSmileyRateColored:"sd-rating__item-smiley--rate-colored",itemSmileySmall:"sd-rating__item-smiley--small",minText:"sd-rating__item-text sd-rating__min-text",itemText:"sd-rating__item-text",maxText:"sd-rating__item-text sd-rating__max-text",itemDisabled:"sd-rating__item--disabled",itemReadOnly:"sd-rating__item--readonly",itemPreview:"sd-rating__item--preview",itemFixedSize:"sd-rating__item--fixed-size",control:"sd-input sd-dropdown",itemSmall:"sd-rating--small",selectWrapper:"sv-dropdown_select-wrapper",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty",filterStringInput:"sd-dropdown__filter-string-input",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",popup:"sv-dropdown-popup",onError:"sd-input--error"},comment:{root:"sd-input sd-comment",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",content:"sd-comment__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},expression:"sd-expression",file:{root:"sd-file",rootDragging:"sd-file--dragging",rootAnswered:"sd-file--answered",rootDisabled:"sd-file--disabled",rootReadOnly:"sd-file--readonly",rootPreview:"sd-file--preview",other:"sd-input sd-comment",placeholderInput:"sd-visuallyhidden",previewItem:"sd-file__preview-item",fileSign:"",fileList:"sd-file__list",fileSignBottom:"sd-file__sign",dragArea:"sd-file__drag-area",dragAreaActive:"sd-file__drag-area--active",fileDecorator:"sd-file__decorator",onError:"sd-file__decorator--error",fileDecoratorDrag:"sd-file__decorator--drag",fileInput:"sd-visuallyhidden",noFileChosen:"sd-description sd-file__no-file-chosen",chooseFile:"sd-file__choose-btn",chooseFileAsText:"sd-action sd-file__choose-btn--text",chooseFileAsTextDisabled:"sd-action--disabled",chooseFileAsIcon:"sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",controlDisabled:"sd-file__choose-file-btn--disabled",removeButton:"sd-context-btn--negative",removeButtonBottom:"",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-close_16x16",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",defaultImageIconId:"icon-defaultfile",leftIconId:"icon-arrowleft",rightIconId:"icon-arrowright",removeFileButton:"sd-context-btn--small sd-context-btn--with-border sd-context-btn--colorful sd-context-btn--negative sd-file__remove-file-button",dragAreaPlaceholder:"sd-file__drag-area-placeholder",imageWrapper:"sd-file__image-wrapper",imageWrapperDefaultImage:"sd-file__image-wrapper--default-image",single:"sd-file--single",singleImage:"sd-file--single-image",mobile:"sd-file--mobile",videoContainer:"sd-file__video-container",contextButton:"sd-context-btn",video:"sd-file__video",actionsContainer:"sd-file__actions-container",closeCameraButton:"sd-file__close-camera-button",changeCameraButton:"sd-file__change-camera-button",takePictureButton:"sd-file__take-picture-button",loadingIndicator:"sd-file__loading-indicator",page:"sd-file__page"},signaturepad:{mainRoot:"sd-element sd-question sd-question--signature sd-row__question",root:"sd-signaturepad sjs_sp_container",small:"sd-row__question--small",controls:"sjs_sp_controls sd-signaturepad__controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas sd-signaturepad__canvas",backgroundImage:"sjs_sp__background-image sd-signaturepad__background-image",clearButton:"sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear",clearButtonIconId:"icon-clear",loadingIndicator:"sd-signaturepad__loading-indicator"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sd-ranking--disabled",rootReadOnly:"sd-ranking--readonly",rootPreview:"sd-ranking--preview",rootDesignMode:"sv-ranking--design-mode",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankEmptyValueMod:"sv-ranking--select-to-rank-empty-value",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content sd-ranking-item__content",itemIndex:"sv-ranking-item__index sd-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty sd-ranking-item__index--empty",itemDisabled:"sv-ranking-item--disabled",itemReadOnly:"sv-ranking-item--readonly",itemPreview:"sv-ranking-item--preview",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking--drag",itemOnError:"sv-ranking-item--error",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},list:{root:"sv-list__container sd-list",item:"sv-list__item sd-list__item",itemBody:"sv-list__item-body sd-list__item-body",itemSelected:"sv-list__item--selected sd-list__item--selected",itemFocused:"sv-list__item--focused sd-list__item--focused",itemHovered:"sv-list__item--hovered sd-list__item--hovered"},actionBar:{root:"sd-action-bar",item:"sd-action",defaultSizeMode:"",smallSizeMode:"",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon",itemTitle:"sd-action__title"},variables:{mobileWidth:"--sd-mobile-width",themeMark:"--sv-defaultV2-mark"},tagbox:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",itemSvgIconId:"#icon-check-16x16",item:"sd-item sd-checkbox sd-selectbase__item",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-cancel-24x24",cleanItemButton:"sd-tagbox-item_clean-button",cleanItemButtonSvg:"sd-tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-tagbox sd-dropdown",controlValue:"sd-tagbox__value sd-dropdown__value",controlValueItems:"sd-tagbox__value-items",placeholderInput:"sd-tagbox__placeholder",controlEditable:"sd-input--editable",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty sd-tagbox--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-tagbox__filter-string-input sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-checkbox__decorator",hint:"sd-tagbox__hint",hintPrefix:"sd-dropdown__hint-prefix sd-tagbox__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix sd-tagbox__hint-suffix",hintSuffixWrapper:"sd-tagbox__hint-suffix-wrapper"}},Na="defaultV2";qe[Na]=vo;var fc="surveyjs.io",dc=65536,qa=function(){function i(){}return Object.defineProperty(i,"serviceUrl",{get:function(){return I.web.surveyServiceUrl},set:function(t){I.web.surveyServiceUrl=t},enumerable:!1,configurable:!0}),i.prototype.loadSurvey=function(t,e){var n=new XMLHttpRequest;n.open("GET",this.serviceUrl+"/getSurvey?surveyId="+t),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var r=JSON.parse(n.response);e(n.status==200,r,n.response)},n.send()},i.prototype.getSurveyJsonAndIsCompleted=function(t,e,n){var r=new XMLHttpRequest;r.open("GET",this.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+e),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var o=JSON.parse(r.response),s=o?o.survey:null,u=o?o.isCompleted:null;n(r.status==200,s,u,r.response)},r.send()},i.prototype.canSendResult=function(t){if(!this.isSurveJSIOService)return!0;var e=JSON.stringify(t);return e.length<dc},Object.defineProperty(i.prototype,"isSurveJSIOService",{get:function(){return this.serviceUrl.indexOf(fc)>=0},enumerable:!1,configurable:!0}),i.prototype.sendResult=function(t,e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=!1),this.canSendResult(e)?this.sendResultCore(t,e,n,r,o):n(!1,k("savingExceedSize",this.locale),void 0)},i.prototype.sendResultCore=function(t,e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=!1);var s=new XMLHttpRequest;s.open("POST",this.serviceUrl+"/post/"),s.setRequestHeader("Content-Type","application/json; charset=utf-8");var u={postId:t,surveyResult:JSON.stringify(e)};r&&(u.clientId=r),o&&(u.isPartialCompleted=!0);var d=JSON.stringify(u);s.onload=s.onerror=function(){n&&n(s.status===200,s.response,s)},s.send(d)},i.prototype.sendFile=function(t,e,n){var r=new XMLHttpRequest;r.onload=r.onerror=function(){n&&n(r.status==200,JSON.parse(r.response))},r.open("POST",this.serviceUrl+"/upload/",!0);var o=new FormData;o.append("file",e),o.append("postId",t),r.send(o)},i.prototype.getResult=function(t,e,n){var r=new XMLHttpRequest,o="resultId="+t+"&name="+e;r.open("GET",this.serviceUrl+"/getResult?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var s=null,u=null;if(r.status==200){s=JSON.parse(r.response),u=[];for(var d in s.QuestionResult){var y={name:d,value:s.QuestionResult[d]};u.push(y)}}n(r.status==200,s,u,r.response)},r.send()},i.prototype.isCompleted=function(t,e,n){var r=new XMLHttpRequest,o="resultId="+t+"&clientId="+e;r.open("GET",this.serviceUrl+"/isCompleted?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var s=null;r.status==200&&(s=JSON.parse(r.response)),n(r.status==200,s,r.response)},r.send()},Object.defineProperty(i.prototype,"serviceUrl",{get:function(){return i.serviceUrl||""},enumerable:!1,configurable:!0}),i}(),fn={setTimeout:function(i){return fn.safeTimeOut(i,1e3)},clearTimeout:function(i){clearTimeout(i)},safeTimeOut:function(i,t){return t<=0?(i(),0):setTimeout(i,t)},now:function(){return Date.now()}},xs=function(){function i(){this.listenerCounter=0,this.timerId=-1,this.onTimerTick=new pt,this.onTimer=this.onTimerTick}return Object.defineProperty(i,"instance",{get:function(){return i.instanceValue||(i.instanceValue=new i),i.instanceValue},enumerable:!1,configurable:!0}),i.prototype.start=function(t){var e=this;t===void 0&&(t=null),t&&this.onTimerTick.add(t),this.prevTimeInMs=fn.now(),this.timerId<0&&(this.timerId=fn.setTimeout(function(){e.doTimer()})),this.listenerCounter++},i.prototype.stop=function(t){t===void 0&&(t=null),t&&this.onTimerTick.remove(t),this.listenerCounter--,this.listenerCounter==0&&this.timerId>-1&&(fn.clearTimeout(this.timerId),this.timerId=-1)},i.prototype.doTimer=function(){var t=this;if((this.onTimerTick.isEmpty||this.listenerCounter==0)&&(this.timerId=-1),!(this.timerId<0)){var e=fn.now(),n=Math.floor((e-this.prevTimeInMs)/1e3);this.prevTimeInMs=e,n<0&&(n=1);var r=this.timerId;this.onTimerTick.fire(this,{seconds:n}),r===this.timerId&&(this.timerId=fn.setTimeout(function(){t.doTimer()}))}},i.instanceValue=null,i}(),hc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),oi=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},_a=function(i){hc(t,i);function t(e){var n=i.call(this)||this;return n.timerFunc=null,n.surveyValue=e,n.onCreating(),n}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),t.prototype.onCreating=function(){},t.prototype.start=function(){var e=this;this.survey&&(this.isRunning||this.isDesignMode||(this.survey.onCurrentPageChanged.add(function(){e.update()}),this.timerFunc=function(n,r){e.doTimer(r.seconds)},this.setIsRunning(!0),this.update(),xs.instance.start(this.timerFunc)))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),xs.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getPropertyValue("isRunning",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsRunning=function(e){this.setPropertyValue("isRunning",e)},t.prototype.update=function(){this.updateText(),this.updateProgress()},t.prototype.doTimer=function(e){var n=this.survey.currentPage;if(n){var r=n.getMaxTimeToFinish();r>0&&r<n.timeSpent+e&&(e=r-n.timeSpent),n.timeSpent=n.timeSpent+e}this.spent=this.spent+e,this.update(),this.onTimerTick&&this.onTimerTick(n)},t.prototype.updateProgress=function(){var e=this,n=this.survey.timerInfo,r=n.spent,o=n.limit;o?(r==0?(this.progress=0,setTimeout(function(){e.progress=Math.floor((r+1)/o*100)/100},0)):r<=o&&(this.progress=Math.floor((r+1)/o*100)/100),this.progress>1&&(this.progress=void 0)):this.progress=void 0},t.prototype.updateText=function(){var e=this.survey.timerClock;this.clockMajorText=e.majorText,this.clockMinorText=e.minorText,this.text=this.survey.timerInfoText},Object.defineProperty(t.prototype,"showProgress",{get:function(){return this.progress!==void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerAsClock",{get:function(){return!!this.survey.getCss().clockTimerRoot},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootCss",{get:function(){return new _().append(this.survey.getCss().clockTimerRoot).append(this.survey.getCss().clockTimerRootTop,this.survey.isTimerPanelShowingOnTop).append(this.survey.getCss().clockTimerRootBottom,this.survey.isTimerPanelShowingOnBottom).toString()},enumerable:!1,configurable:!0}),t.prototype.getProgressCss=function(){return new _().append(this.survey.getCss().clockTimerProgress).append(this.survey.getCss().clockTimerProgressAnimation,this.progress>0).toString()},Object.defineProperty(t.prototype,"textContainerCss",{get:function(){return this.survey.getCss().clockTimerTextContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minorTextCss",{get:function(){return this.survey.getCss().clockTimerMinorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"majorTextCss",{get:function(){return this.survey.getCss().clockTimerMajorText},enumerable:!1,configurable:!0}),oi([x()],t.prototype,"text",void 0),oi([x()],t.prototype,"progress",void 0),oi([x()],t.prototype,"clockMajorText",void 0),oi([x()],t.prototype,"clockMinorText",void 0),oi([x({defaultValue:0})],t.prototype,"spent",void 0),t}(fe),gc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),bo=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ba=function(i){gc(t,i);function t(e){var n=i.call(this)||this;return n.cssClasses=e,n.timeout=I.notifications.lifetime,n.timer=void 0,n.actionsVisibility={},n.showActions=!0,n.actionBar=new xt,n.actionBar.updateCallback=function(r){n.actionBar.actions.forEach(function(o){return o.cssClasses={}})},n.css=n.cssClasses.root,n}return t.prototype.getCssClass=function(e){return new _().append(this.cssClasses.root).append(this.cssClasses.rootWithButtons,this.actionBar.visibleActions.length>0).append(this.cssClasses.info,e!=="error"&&e!=="success").append(this.cssClasses.error,e==="error").append(this.cssClasses.success,e==="success").append(this.cssClasses.shown,this.active).toString()},t.prototype.updateActionsVisibility=function(e){var n=this;this.actionBar.actions.forEach(function(r){return r.visible=n.showActions&&n.actionsVisibility[r.id]===e})},t.prototype.notify=function(e,n,r){var o=this;n===void 0&&(n="info"),r===void 0&&(r=!1),this.isDisplayed=!0,setTimeout(function(){o.updateActionsVisibility(n),o.message=e,o.active=!0,o.css=o.getCssClass(n),o.timer&&(clearTimeout(o.timer),o.timer=void 0),r||(o.timer=setTimeout(function(){o.timer=void 0,o.active=!1,o.css=o.getCssClass(n)},o.timeout))},1)},t.prototype.addAction=function(e,n){e.visible=!1,e.innerCss=this.cssClasses.button;var r=this.actionBar.addAction(e);this.actionsVisibility[r.id]=n},bo([x({defaultValue:!1})],t.prototype,"active",void 0),bo([x({defaultValue:!1})],t.prototype,"isDisplayed",void 0),bo([x()],t.prototype,"message",void 0),bo([x()],t.prototype,"css",void 0),t}(fe),yc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ie=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Fa=function(){function i(t,e,n){this.cover=t,this.positionX=e,this.positionY=n}return i.prototype.calcRow=function(t){return t==="top"?1:t==="middle"?2:3},i.prototype.calcColumn=function(t){return t==="left"?1:t==="center"?2:3},i.prototype.calcAlignItems=function(t){return t==="left"?"flex-start":t==="center"?"center":"flex-end"},i.prototype.calcAlignText=function(t){return t==="left"?"start":t==="center"?"center":"end"},i.prototype.calcJustifyContent=function(t){return t==="top"?"flex-start":t==="middle"?"center":"flex-end"},Object.defineProperty(i.prototype,"survey",{get:function(){return this.cover.survey},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"css",{get:function(){var t=i.CLASSNAME+" "+i.CLASSNAME+"--"+this.positionX+" "+i.CLASSNAME+"--"+this.positionY;return t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"style",{get:function(){var t={};return t.gridColumn=this.calcColumn(this.positionX),t.gridRow=this.calcRow(this.positionY),t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"contentStyle",{get:function(){var t={};return t.textAlign=this.calcAlignText(this.positionX),t.alignItems=this.calcAlignItems(this.positionX),t.justifyContent=this.calcJustifyContent(this.positionY),t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showLogo",{get:function(){return this.survey.hasLogo&&this.positionX===this.cover.logoPositionX&&this.positionY===this.cover.logoPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showTitle",{get:function(){return this.survey.hasTitle&&this.positionX===this.cover.titlePositionX&&this.positionY===this.cover.titlePositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showDescription",{get:function(){return this.survey.renderedHasDescription&&this.positionX===this.cover.descriptionPositionX&&this.positionY===this.cover.descriptionPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"textAreaWidth",{get:function(){return this.cover.textAreaWidth?""+this.cover.textAreaWidth+"px":""},enumerable:!1,configurable:!0}),i.CLASSNAME="sv-header__cell",i}(),Co=function(i){yc(t,i);function t(){var e=i.call(this)||this;return e.cells=[],["top","middle","bottom"].forEach(function(n){return["left","center","right"].forEach(function(r){return e.cells.push(new Fa(e,r,n))})}),e.init(),e}return t.prototype.calcBackgroundSize=function(e){return e==="fill"?"100% 100%":e==="tile"?"auto":e},t.prototype.updateHeaderClasses=function(){this.headerClasses=new _().append("sv-header").append("sv-header__without-background",this.backgroundColor==="transparent"&&!this.backgroundImage).append("sv-header__background-color--none",this.backgroundColor==="transparent"&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--accent",!this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--custom",!!this.backgroundColor&&this.backgroundColor!=="transparent"&&!this.titleColor&&!this.descriptionColor).append("sv-header__overlap",this.overlapEnabled).toString()},t.prototype.updateContentClasses=function(){var e=!!this.survey&&this.survey.calculateWidthMode();this.maxWidth=this.inheritWidthFrom==="survey"&&!!e&&e==="static"&&this.survey.renderedWidth,this.contentClasses=new _().append("sv-header__content").append("sv-header__content--static",this.inheritWidthFrom==="survey"&&!!e&&e==="static").append("sv-header__content--responsive",this.inheritWidthFrom==="container"||!!e&&e==="responsive").toString()},t.prototype.updateBackgroundImageClasses=function(){this.backgroundImageClasses=new _().append("sv-header__background-image").append("sv-header__background-image--contain",this.backgroundImageFit==="contain").append("sv-header__background-image--tile",this.backgroundImageFit==="tile").toString()},t.prototype.fromTheme=function(e){i.prototype.fromJSON.call(this,e.header||{}),e.cssVariables&&(this.backgroundColor=e.cssVariables["--sjs-header-backcolor"],this.titleColor=e.cssVariables["--sjs-font-headertitle-color"],this.descriptionColor=e.cssVariables["--sjs-font-headerdescription-color"]),this.init()},t.prototype.init=function(){this.renderBackgroundImage=zr(this.backgroundImage),this.updateHeaderClasses(),this.updateContentClasses(),this.updateBackgroundImageClasses()},t.prototype.getType=function(){return"cover"},Object.defineProperty(t.prototype,"renderedHeight",{get:function(){if(this.survey&&!this.survey.isMobile||!this.survey)return this.height?Math.max(this.height,this.actualHeight+40)+"px":void 0;if(this.survey&&this.survey.isMobile)return this.mobileHeight?Math.max(this.mobileHeight,this.actualHeight)+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedtextAreaWidth",{get:function(){return this.textAreaWidth?this.textAreaWidth+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this._survey},set:function(e){var n=this;this._survey!==e&&(this._survey=e,e&&(this.updateContentClasses(),this._survey.onPropertyChanged.add(function(r,o){(o.name=="widthMode"||o.name=="width")&&n.updateContentClasses()})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImageStyle",{get:function(){return this.backgroundImage?{opacity:this.backgroundImageOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.calcBackgroundSize(this.backgroundImageFit)}:null},enumerable:!1,configurable:!0}),t.prototype.propertyValueChanged=function(e,n,r,o,s){i.prototype.propertyValueChanged.call(this,e,n,r),(e==="backgroundColor"||e==="backgroundImage"||e==="overlapEnabled")&&this.updateHeaderClasses(),e==="inheritWidthFrom"&&this.updateContentClasses(),e==="backgroundImageFit"&&this.updateBackgroundImageClasses()},t.prototype.calculateActualHeight=function(e,n,r){var o=["top","middle","bottom"],s=o.indexOf(this.logoPositionY),u=o.indexOf(this.titlePositionY),d=o.indexOf(this.descriptionPositionY),y=["left","center","right"],V=y.indexOf(this.logoPositionX),T=y.indexOf(this.titlePositionX),N=y.indexOf(this.descriptionPositionX),U=[[0,0,0],[0,0,0],[0,0,0]];return U[s][V]=e,U[u][T]+=n,U[d][N]+=r,U.reduce(function(W,X){return W+Math.max.apply(Math,X)},0)},t.prototype.processResponsiveness=function(e){if(this.survey&&this.survey.rootElement)if(this.survey.isMobile){var y=this.survey.rootElement.querySelectorAll(".sv-header > div")[0];this.actualHeight=y?y.getBoundingClientRect().height:0}else{var n=this.survey.rootElement.querySelectorAll(".sv-header__logo")[0],r=this.survey.rootElement.querySelectorAll(".sv-header__title")[0],o=this.survey.rootElement.querySelectorAll(".sv-header__description")[0],s=n?n.getBoundingClientRect().height:0,u=r?r.getBoundingClientRect().height:0,d=o?o.getBoundingClientRect().height:0;this.actualHeight=this.calculateActualHeight(s,u,d)}},Object.defineProperty(t.prototype,"hasBackground",{get:function(){return!!this.backgroundImage||this.backgroundColor!=="transparent"},enumerable:!1,configurable:!0}),Ie([x({defaultValue:0})],t.prototype,"actualHeight",void 0),Ie([x()],t.prototype,"height",void 0),Ie([x()],t.prototype,"mobileHeight",void 0),Ie([x()],t.prototype,"inheritWidthFrom",void 0),Ie([x()],t.prototype,"textAreaWidth",void 0),Ie([x()],t.prototype,"textGlowEnabled",void 0),Ie([x()],t.prototype,"overlapEnabled",void 0),Ie([x()],t.prototype,"backgroundColor",void 0),Ie([x()],t.prototype,"titleColor",void 0),Ie([x()],t.prototype,"descriptionColor",void 0),Ie([x({onSet:function(e,n){n.renderBackgroundImage=zr(e)}})],t.prototype,"backgroundImage",void 0),Ie([x()],t.prototype,"renderBackgroundImage",void 0),Ie([x()],t.prototype,"backgroundImageFit",void 0),Ie([x()],t.prototype,"backgroundImageOpacity",void 0),Ie([x()],t.prototype,"logoPositionX",void 0),Ie([x()],t.prototype,"logoPositionY",void 0),Ie([x()],t.prototype,"titlePositionX",void 0),Ie([x()],t.prototype,"titlePositionY",void 0),Ie([x()],t.prototype,"descriptionPositionX",void 0),Ie([x()],t.prototype,"descriptionPositionY",void 0),Ie([x()],t.prototype,"logoStyle",void 0),Ie([x()],t.prototype,"titleStyle",void 0),Ie([x()],t.prototype,"descriptionStyle",void 0),Ie([x()],t.prototype,"headerClasses",void 0),Ie([x()],t.prototype,"contentClasses",void 0),Ie([x()],t.prototype,"maxWidth",void 0),Ie([x()],t.prototype,"backgroundImageClasses",void 0),t}(fe);j.addClass("cover",[{name:"height:number",minValue:0,default:256},{name:"mobileHeight:number",minValue:0,default:0},{name:"inheritWidthFrom",default:"container"},{name:"textAreaWidth:number",minValue:0,default:512},{name:"textGlowEnabled:boolean"},{name:"overlapEnabled:boolean"},{name:"backgroundImage:file"},{name:"backgroundImageOpacity:number",minValue:0,maxValue:1,default:1},{name:"backgroundImageFit",default:"cover",choices:["cover","fill","contain"]},{name:"logoPositionX",default:"right"},{name:"logoPositionY",default:"top"},{name:"titlePositionX",default:"left"},{name:"titlePositionY",default:"bottom"},{name:"descriptionPositionX",default:"left"},{name:"descriptionPositionY",default:"bottom"}],function(){return new Co});var mc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),vc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},bc=function(){function i(t){this.type=t,this.timestamp=new Date}return i}(),Cc=function(i){mc(t,i);function t(){var e=i.call(this)||this;return e.taskList=[],e.onAllTasksCompleted=e.addEvent(),e}return t.prototype.runTask=function(e,n){var r=this,o=new bc(e);return this.taskList.push(o),this.hasActiveTasks=!0,n(function(){return r.taskFinished(o)}),o},t.prototype.waitAndExecute=function(e){if(!this.hasActiveTasks){e();return}this.onAllTasksCompleted.add(function(){e()})},t.prototype.taskFinished=function(e){var n=this.taskList.indexOf(e);n>-1&&this.taskList.splice(n,1),this.hasActiveTasks&&this.taskList.length==0&&(this.hasActiveTasks=!1,this.onAllTasksCompleted.fire(this,{}))},vc([x({defaultValue:!1})],t.prototype,"hasActiveTasks",void 0),t}(fe),ka=function(){function i(t,e,n){n===void 0&&(n=-1),this.source=t,this.target=e,this.nestedPanelDepth=n}return i}(),wc=function(){function i(t){this.panel=t}return i.prototype.dragDropAddTarget=function(t){var e=this.dragDropFindRow(t.target);this.dragDropAddTargetToRow(t,e)&&this.panel.updateRowsRemoveElementFromRow(t.target,e)},i.prototype.dragDropFindRow=function(t){if(!t||t.isPage)return null;for(var e=t,n=this.panel.rows,r=0;r<n.length;r++)if(n[r].elements.indexOf(e)>-1)return n[r];for(var r=0;r<this.panel.elements.length;r++){var o=this.panel.elements[r].getPanel();if(o){var s=o.dragDropFindRow(e);if(s)return s}}return null},i.prototype.dragDropMoveElement=function(t,e,n){var r=t.parent.elements.indexOf(t);n>r&&n--,this.panel.removeElement(t),this.panel.addElement(e,n)},i.prototype.updateRowsOnElementAdded=function(t,e,n,r){n||(n=new ka(null,t),n.target=t,n.isEdge=this.panel.elements.length>1,this.panel.elements.length<2?n.destination=r:(n.isBottom=e>0,e==0?n.destination=this.panel.elements[1]:n.destination=this.panel.elements[e-1])),this.dragDropAddTargetToRow(n,null)},i.prototype.dragDropAddTargetToRow=function(t,e){if(!t.destination||this.dragDropAddTargetToEmptyPanel(t))return!0;var n=t.destination,r=this.dragDropFindRow(n);return r?t.target.startWithNewLine?this.dragDropAddTargetToNewRow(t,r,e):this.dragDropAddTargetToExistingRow(t,r,e):!0},i.prototype.dragDropAddTargetToEmptyPanel=function(t){if(t.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.panel.root,t.target,t.isBottom),!0;var e=t.destination;if(e.isPanel&&!t.isEdge){var n=e;if(t.target.template===e)return!1;if(t.nestedPanelDepth<0||t.nestedPanelDepth>=n.depth)return this.dragDropAddTargetToEmptyPanelCore(e,t.target,t.isBottom),!0}return!1},i.prototype.dragDropAddTargetToExistingRow=function(t,e,n){var r=e.elements.indexOf(t.destination);if(r==0&&!t.isBottom&&!this.panel.isDesignModeV2){if(e.elements[0].startWithNewLine)return e.index>0?(t.isBottom=!0,e=e.panel.rows[e.index-1],t.destination=e.elements[e.elements.length-1],this.dragDropAddTargetToExistingRow(t,e,n)):this.dragDropAddTargetToNewRow(t,e,n)}var o=-1;n==e&&(o=e.elements.indexOf(t.target)),t.isBottom&&r++;var s=this.panel.findRowByElement(t.source);return s==e&&s.elements.indexOf(t.source)==r||r==o?!1:(o>-1&&(e.elements.splice(o,1),o<r&&r--),e.elements.splice(r,0,t.target),e.updateVisible(),o<0)},i.prototype.dragDropAddTargetToNewRow=function(t,e,n){var r=e.panel.createRowAndSetLazy(e.panel.rows.length);this.panel.isDesignModeV2&&r.setIsLazyRendering(!1),r.addElement(t.target);var o=e.index;if(t.isBottom&&o++,n&&n.panel==r.panel&&n.index==o)return!1;var s=this.panel.findRowByElement(t.source);return s&&s.panel==r.panel&&s.elements.length==1&&s.index==o?!1:(e.panel.rows.splice(o,0,r),!0)},i.prototype.dragDropAddTargetToEmptyPanelCore=function(t,e,n){var r=t.createRow();r.addElement(e),t.elements.length==0||n?t.rows.push(r):t.rows.splice(0,0,r)},i}(),Pc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vs=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Qa=function(i){Pc(t,i);function t(e,n){var r=i.call(this)||this;return r.effectiveWidth=e,r.questionTitleWidth=n,r}return t.prototype.getType=function(){return"panellayoutcolumn"},t.prototype.isEmpty=function(){return!this.width&&!this.questionTitleWidth},Vs([x()],t.prototype,"width",void 0),Vs([x({onSet:function(e,n,r){e!==r&&(n.width=e)}})],t.prototype,"effectiveWidth",void 0),Vs([x()],t.prototype,"questionTitleWidth",void 0),t}(fe);j.addClass("panellayoutcolumn",[{name:"effectiveWidth:number",isSerializable:!1,minValue:0},{name:"width:number",visible:!1},"questionTitleWidth"],function(i){return new Qa});var Ss=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),si=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ha=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},za=function(i){Ss(t,i);function t(e){var n=i.call(this)||this;return n.panel=e,n._scrollableParent=void 0,n._updateVisibility=void 0,n.visibleElementsAnimation=new Nt(n.getVisibleElementsAnimationOptions(),function(r){n.setWidth(r),n.setPropertyValue("visibleElements",r)},function(){return n.visibleElements}),n.idValue=t.getRowId(),n.visible=e.areInvisibleElementsShowing,n.createNewArray("elements"),n.createNewArray("visibleElements"),n}return t.getRowId=function(){return"pr_"+t.rowCounter++},Object.defineProperty(t.prototype,"allowRendering",{get:function(){return!this.panel||!this.panel.survey||!this.panel.survey.isLazyRenderingSuspended},enumerable:!1,configurable:!0}),t.prototype.startLazyRendering=function(e,n){var r=this;if(n===void 0&&(n=ar),!!R.isAvailable()){this._scrollableParent=n(e),this._scrollableParent===R.getDocumentElement()&&(this._scrollableParent=B.getWindow());var o=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!o,o&&(this._updateVisibility=function(){if(r.allowRendering){var s=es(e,50);!r.isNeedRender&&s&&(r.isNeedRender=!0,r.stopLazyRendering())}},setTimeout(function(){r._scrollableParent&&r._scrollableParent.addEventListener&&r._scrollableParent.addEventListener("scroll",r._updateVisibility),r.ensureVisibility()},10))}},t.prototype.ensureVisibility=function(){this._updateVisibility&&this._updateVisibility()},t.prototype.stopLazyRendering=function(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),this._scrollableParent=void 0,this._updateVisibility=void 0},t.prototype.setIsLazyRendering=function(e){this.isLazyRenderingValue=e,this.isNeedRender=!e},t.prototype.isLazyRendering=function(){return this.isLazyRenderingValue===!0},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.equalsCore=function(e){return this==e},Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){var e;return i.prototype.getIsAnimationAllowed.call(this)&&this.visible&&((e=this.panel)===null||e===void 0?void 0:e.animationAllowed)},t.prototype.getVisibleElementsAnimationOptions=function(){var e=this,n=function(r){Vt(r),un(r,{width:Wr(r)+"px"})};return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},allowSyncRemovalAddition:!1,getAnimatedElement:function(r){return r.getWrapperElement()},getLeaveOptions:function(r){var o=r,s=r.isPanel?o.cssClasses.panel:o.cssClasses;return{cssClass:s.leave,onBeforeRunAnimation:n,onAfterRunAnimation:Xe}},getEnterOptions:function(r){var o=r,s=r.isPanel?o.cssClasses.panel:o.cssClasses;return{cssClass:s.enter,onBeforeRunAnimation:n,onAfterRunAnimation:Xe}}}},Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},set:function(e){if(e.length)this.visible=!0;else{this.visible=!1,this.visibleElementsAnimation.cancel();return}this.visibleElementsAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e),this.onVisibleChangedCallback&&this.onVisibleChangedCallback()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNeedRender",{get:function(){return this.getPropertyValue("isneedrender",!0)},set:function(e){this.setPropertyValue("isneedrender",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisible=function(){for(var e=[],n=0;n<this.elements.length;n++)this.elements[n].isVisible&&e.push(this.elements[n]),(this.elements[n].isPanel||this.elements[n].getType()==="paneldynamic")&&(this.setIsLazyRendering(!1),this.stopLazyRendering());this.visibleElements=e},t.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},Object.defineProperty(t.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!1,configurable:!0}),t.prototype.setWidth=function(e){var n,r=e.length;if(r!=0){for(var o=e.length===1,s=0,u=[],d=0;d<this.elements.length;d++){var y=this.elements[d];if(y.isVisible){y.isSingleInRow=o;var V=this.getElementWidth(y);V&&(y.renderWidth=this.getRenderedWidthFromWidth(V),u.push(y)),s<r-1&&!(this.panel.isDefaultV2Theme||!((n=this.panel.parentQuestion)===null||n===void 0)&&n.isDefaultV2Theme)?y.rightIndent=1:y.rightIndent=0,s++}else y.renderWidth=""}for(var d=0;d<this.elements.length;d++){var y=this.elements[d];!y.isVisible||u.indexOf(y)>-1||(u.length==0?y.renderWidth=Number.parseFloat((100/r).toFixed(6))+"%":y.renderWidth=this.getRenderedCalcWidth(y,u,r))}}},t.prototype.getRenderedCalcWidth=function(e,n,r){for(var o="100%",s=0;s<n.length;s++)o+=" - "+n[s].renderWidth;var u=r-n.length;return u>1&&(o="("+o+")/"+u.toString()),"calc("+o+")"},t.prototype.getElementWidth=function(e){var n=e.width;return!n||typeof n!="string"?"":n.trim()},t.prototype.getRenderedWidthFromWidth=function(e){return h.isNumber(e)?e+"px":e},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return new _().append(this.panel.cssClasses.row).append(this.panel.cssClasses.rowCompact,this.panel.isCompact).append(this.panel.cssClasses.pageRow,this.panel.isPage||this.panel.showPanelAsPage).append(this.panel.cssClasses.rowMultiple,this.visibleElements.length>1).toString()},t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t.rowCounter=100,si([x({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),t}(fe),Os=function(i){Ss(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.isQuestionsReady=!1,n.questionsValue=new Array,n._columns=void 0,n._columnsReady=!1,n.rowsAnimation=new Nt(n.getRowsAnimationOptions(),function(r){n.setPropertyValue("visibleRows",r)},function(){return n.visibleRows}),n.isRandomizing=!1,n.onColumnPropertyValueChangedCallback=function(r,o,s,u,d){n._columnsReady&&(n.updateColumnWidth(n.gridLayoutColumns),n.updateRootStyle())},n.locCountRowUpdates=0,n.createNewArray("rows",function(r,o){n.onAddRow(r)},function(r){n.onRemoveRow(r)}),n.createNewArray("visibleRows"),n.elementsValue=n.createNewArray("elements",n.onAddElement.bind(n),n.onRemoveElement.bind(n)),n.id=t.getPanelId(),n.addExpressionProperty("visibleIf",function(r,o){n.visible=o===!0},function(r){return!n.areInvisibleElementsShowing}),n.addExpressionProperty("enableIf",function(r,o){n.readOnly=o===!1}),n.addExpressionProperty("requiredIf",function(r,o){n.isRequired=o===!0}),n.createLocalizableString("requiredErrorText",n),n.createLocalizableString("navigationTitle",n,!0).onGetTextCallback=function(r){return r||n.title||n.name},n.registerPropertyChangedHandlers(["questionTitleLocation"],function(){n.onVisibleChanged.bind(n),n.updateElementCss(!0)}),n.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],function(){n.updateVisibleIndexes()}),n.registerPropertyChangedHandlers(["title"],function(){n.resetHasTextInTitle()}),n.dragDropPanelHelper=new wc(n),n}return t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.onAddRow=function(e){var n=this;this.onRowVisibleChanged(),e.onVisibleChangedCallback=function(){return n.onRowVisibleChanged()}},t.prototype.getRowsAnimationOptions=function(){var e=this;return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},getAnimatedElement:function(n){return n.getRootElement()},getLeaveOptions:function(n,r){return{cssClass:e.cssClasses.rowLeave,onBeforeRunAnimation:Vt,onAfterRunAnimation:Xe}},getEnterOptions:function(n,r){var o=e.cssClasses;return{cssClass:new _().append(o.rowEnter).append(o.rowDelayedEnter,r.isDeletingRunning).toString(),onBeforeRunAnimation:Vt,onAfterRunAnimation:Xe}}}},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getPropertyValue("visibleRows")},set:function(e){this.rowsAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.onRemoveRow=function(e){e.visibleElementsAnimation.cancel(),this.visibleRows=this.rows.filter(function(n){return n.visible}),e.onVisibleChangedCallback=void 0},t.prototype.onRowVisibleChanged=function(){this.visibleRows=this.rows.filter(function(e){return e.visible})},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(e,n){this.blockAnimations(),i.prototype.setSurveyImpl.call(this,e,n),this.isDesignMode&&this.onVisibleChanged();for(var r=0;r<this.elements.length;r++)this.elements[r].setSurveyImpl(e,n);this.releaseAnimations()},t.prototype.endLoadingFromJson=function(){var e=this;i.prototype.endLoadingFromJson.call(this),this.updateDescriptionVisibility(this.description),this.markQuestionListDirty(),this.onRowsChanged(),this.gridLayoutColumns.forEach(function(n){n.onPropertyValueChangedCallback=e.onColumnPropertyValueChangedCallback})},Object.defineProperty(t.prototype,"hasTextInTitle",{get:function(){var e=this;return this.getPropertyValue("hasTextInTitle",void 0,function(){return!!e.title})},enumerable:!1,configurable:!0}),t.prototype.resetHasTextInTitle=function(){this.resetPropertyValue("hasTextInTitle")},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle(this.survey)&&(this.hasTextInTitle||this.locTitle.textOrHtml.length>0)||this.isDesignMode&&!(I.supportCreatorV2&&this.isPanel)&&this.showTitle&&I.designMode.showEmptyTitles},enumerable:!1,configurable:!0}),t.prototype.delete=function(e){e===void 0&&(e=!0),this.deletePanel(),this.removeFromParent(),e&&this.dispose()},t.prototype.deletePanel=function(){for(var e=this.elements,n=0;n<e.length;n++){var r=e[n];r.isPanel&&r.deletePanel(),this.onRemoveElementNotifySurvey(r)}},t.prototype.removeFromParent=function(){},t.prototype.canShowTitle=function(e){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return!this.hasTitle&&this.isDesignMode?!1:this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&I.designMode.showEmptyDescriptions},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].localeChanged()},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].locStrsChanged()},t.prototype.getMarkdownHtml=function(e,n){return n==="navigationTitle"&&this.locNavigationTitle.isEmpty?this.locTitle.renderedHtml||this.name:i.prototype.getMarkdownHtml.call(this,e,n)},Object.defineProperty(t.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedNavigationTitle",{get:function(){return this.locNavigationTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&this.titlePattern=="requireNumTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&this.titlePattern=="numRequireTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&this.titlePattern=="numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.canRandomize=function(e){return e&&this.questionsOrder!=="initial"||this.questionsOrder==="random"},t.prototype.randomizeElements=function(e){if(!(!this.canRandomize(e)||this.isRandomizing)){this.isRandomizing=!0;for(var n=[],r=this.elements,o=0;o<r.length;o++)n.push(r[o]);var s=h.randomizeArray(n);this.setArrayPropertyDirectly("elements",s,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){var e=this.questionsOrder=="default"&&this.survey?this.survey.questionsOrder:this.questionsOrder;return e=="random"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return this.parent==null?0:this.parent.depth+1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var n={panel:{},error:{},row:"",rowEnter:"",rowLeave:"",rowDelayedEnter:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(n.panel,e.panel),this.copyCssClasses(n.error,e.error),e.pageRow&&(n.pageRow=e.pageRow),e.rowCompact&&(n.rowCompact=e.rowCompact),e.row&&(n.row=e.row),e.rowEnter&&(n.rowEnter=e.rowEnter),e.rowLeave&&(n.rowLeave=e.rowLeave),e.rowDelayedEnter&&(n.rowDelayedEnter=e.rowDelayedEnter),e.rowMultiple&&(n.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,n),n},Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return e!=="flow"},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var n=this.elements[e];if(n.isPanel)for(var r=n.questions,o=0;o<r.length;o++)this.questionsValue.push(r[o]);else this.questionsValue.push(n)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!1,configurable:!0}),t.prototype.getQuestions=function(e){var n=this.questions;if(!e)return n;var r=[];return n.forEach(function(o){r.push(o),o.getNestedQuestions().forEach(function(s){return r.push(s)})}),r},t.prototype.getValidName=function(e){return e&&e.trim()},t.prototype.getQuestionByName=function(e){for(var n=this.questions,r=0;r<n.length;r++)if(n[r].name==e)return n[r];return null},t.prototype.getElementByName=function(e){for(var n=this.elements,r=0;r<n.length;r++){var o=n[r];if(o.name==e)return o;var s=o.getPanel();if(s){var u=s.getElementByName(e);if(u)return u}}return null},t.prototype.getQuestionByValueName=function(e){var n=this.getQuestionsByValueName(e);return n.length>0?n[0]:null},t.prototype.getQuestionsByValueName=function(e){for(var n=[],r=this.questions,o=0;o<r.length;o++)r[o].getValueName()==e&&n.push(r[o]);return n},t.prototype.getValue=function(){var e={};return this.collectValues(e,0),h.getUnbindValue(e)},t.prototype.collectValues=function(e,n){var r=this.elements;n===0&&(r=this.questions);for(var o=0;o<r.length;o++){var s=r[o];if(s.isPanel||s.isPage){var u={};s.collectValues(u,n-1)&&(e[s.name]=u)}else{var d=s;if(!d.isEmpty()){var y=d.getValueName();if(e[y]=d.value,this.data){var V=this.data.getComment(y);V&&(e[y+fe.commentSuffix]=V)}}}}return!0},t.prototype.getDisplayValue=function(e){for(var n={},r=this.questions,o=0;o<r.length;o++){var s=r[o];if(!s.isEmpty()){var u=e?s.title:s.getValueName();n[u]=s.getDisplayValue(e)}}return n},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var n=this.questions,r=0;r<n.length;r++){var o=n[r],s=this.data.getComment(o.getValueName());s&&(e[o.getValueName()]=s)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return fe.collectDependency(this,"elements"),this.elementsValue},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return this.elements},t.prototype.containsElement=function(e){for(var n=0;n<this.elements.length;n++){var r=this.elements[n];if(r==e)return!0;var o=r.getPanel();if(o&&o.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),t.prototype.searchText=function(e,n){i.prototype.searchText.call(this,e,n);for(var r=0;r<this.elements.length;r++)this.elements[r].searchText(e,n)},t.prototype.hasErrors=function(e,n,r){return e===void 0&&(e=!0),n===void 0&&(n=!1),r===void 0&&(r=null),!this.validate(e,n,r)},t.prototype.validate=function(e,n,r){return e===void 0&&(e=!0),n===void 0&&(n=!1),r===void 0&&(r=null),r=r||{fireCallback:e,focusOnFirstError:n,firstErrorQuestion:null,result:!1},r.result!==!0&&(r.result=!1),this.hasErrorsCore(r),!r.result},t.prototype.validateContainerOnly=function(){this.hasErrorsInPanels({fireCallback:!0}),this.parent&&this.parent.validateContainerOnly()},t.prototype.onQuestionValueChanged=function(e){var n=this.questions.indexOf(e);if(!(n<0)){for(var r=5,o=this.questions.length-1,s=n-r>0?n-r:0,u=n+r<o?n+r:o,d=s;d<=u;d++)if(d!==n){var y=this.questions[d];y.errors.length>0&&y.validate(!1)&&y.validate(!0)}}},t.prototype.hasErrorsInPanels=function(e){var n=[];if(this.hasRequiredError(e,n),this.isPanel&&this.survey){var r=this.survey.validatePanel(this);r&&(n.push(r),e.result=!0)}e.fireCallback&&(this.survey&&this.survey.beforeSettingPanelErrors(this,n),this.errors=n)},t.prototype.getErrorCustomText=function(e,n){return this.survey?this.survey.getSurveyErrorCustomText(this,e,n):e},t.prototype.hasRequiredError=function(e,n){if(this.isRequired){var r=[];if(this.addQuestionsToList(r,!0),r.length!=0){for(var o=0;o<r.length;o++)if(!r[o].isEmpty())return;e.result=!0,n.push(new to(this.requiredErrorText,this)),e.focusOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=r[0])}}},t.prototype.hasErrorsCore=function(e){for(var n=this.elements,r=null,o=null,s=0;s<n.length;s++)if(r=n[s],!!r.isVisible)if(r.isPanel)r.hasErrorsCore(e);else{var u=r;u.validate(e.fireCallback,e)||(o||(o=u),e.firstErrorQuestion||(e.firstErrorQuestion=u),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors(),!o&&this.errors.length>0&&(o=this.getFirstQuestionToFocus(!1,!0),e.firstErrorQuestion||(e.firstErrorQuestion=o)),e.fireCallback&&o&&(o===e.firstErrorQuestion&&e.focusOnFirstError?o.focus(!0):o.expandAllParents())},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;for(var n=this.elements,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateElementVisibility();i.prototype.updateElementVisibility.call(this)},t.prototype.getFirstQuestionToFocus=function(e,n){if(e===void 0&&(e=!1),n===void 0&&(n=!1),!e&&!n&&this.isCollapsed)return null;for(var r=this.elements,o=0;o<r.length;o++){var s=r[o];if(!(!s.isVisible||!n&&s.isCollapsed))if(s.isPanel){var u=s.getFirstQuestionToFocus(e,n);if(u)return u}else{var d=s.getFirstQuestionToFocus(e);if(d)return d}}return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.addQuestionsToList=function(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1),this.addElementsToList(e,n,r,!1)},t.prototype.addPanelsIntoList=function(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1),this.addElementsToList(e,n,r,!0)},t.prototype.addElementsToList=function(e,n,r,o){n&&!this.visible||this.addElementsToListCore(e,this.elements,n,r,o)},t.prototype.addElementsToListCore=function(e,n,r,o,s){for(var u=0;u<n.length;u++){var d=n[u];r&&!d.visible||((s&&d.isPanel||!s&&!d.isPanel)&&e.push(d),d.isPanel?d.addElementsToListCore(e,d.elements,r,o,s):o&&this.addElementsToListCore(e,d.getElementsInDesign(!1),r,o,s))}},t.prototype.calcMaxRowColSpan=function(){var e=0;return this.rows.forEach(function(n){var r=0,o=!1;n.elements.forEach(function(s){s.width&&(o=!0),r+=s.colSpan||1}),!o&&r>e&&(e=r)}),e},t.prototype.updateColumnWidth=function(e){var n=0,r=0;if(e.forEach(function(u){u.width?(n+=u.width,u.setPropertyValue("effectiveWidth",u.width)):r++}),r)for(var o=Xi((100-n)/r),s=0;s<e.length;s++)e[s].width||e[s].setPropertyValue("effectiveWidth",o)},t.prototype.updateColumns=function(){this._columns=void 0,this.updateRootStyle()},t.prototype.updateRootStyle=function(){var e;i.prototype.updateRootStyle.call(this),(e=this.elements)===null||e===void 0||e.forEach(function(n){return n.updateRootStyle()})},t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():this.questionTitleLocation!="default"?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.availableQuestionTitleWidth=function(){var e=this.getQuestionTitleLocation();return e==="left"?!0:this.hasElementWithTitleLocationLeft()},t.prototype.hasElementWithTitleLocationLeft=function(){var e=this.elements.some(function(n){if(n instanceof t)return n.hasElementWithTitleLocationLeft();if(n instanceof Be)return n.getTitleLocation()==="left"});return e},t.prototype.getQuestionTitleWidth=function(){return this.questionTitleWidth||this.parent&&this.parent.getQuestionTitleWidth()},Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns||this.generateColumns(),this._columns||[]},enumerable:!1,configurable:!0}),t.prototype.generateColumns=function(){var e=this.calcMaxRowColSpan(),n=[].concat(this.gridLayoutColumns);if(e<=this.gridLayoutColumns.length)n=this.gridLayoutColumns.slice(0,e);else for(var r=this.gridLayoutColumns.length;r<e;r++){var o=new Qa;o.onPropertyValueChangedCallback=this.onColumnPropertyValueChangedCallback,n.push(o)}this._columns=n;try{this._columnsReady=!1,this.updateColumnWidth(n)}finally{this._columnsReady=!0}this.gridLayoutColumns=n},t.prototype.updateGridColumns=function(){this.updateColumns(),this.elements.forEach(function(e){e.isPanel&&e.updateGridColumns()})},t.prototype.getColumsForElement=function(e){var n=this.findRowByElement(e);if(!n||!this.survey||!this.survey.gridLayoutEnabled)return[];for(var r=n.elements.length-1;r>=0&&n.elements[r].getPropertyValueWithoutDefault("colSpan");)r--;for(var o=n.elements.indexOf(e),s=0,u=0;u<o;u++)s+=n.elements[u].colSpan;var d=e.getPropertyValueWithoutDefault("colSpan");if(!d&&o===r){for(var y=0,u=0;u<n.elements.length;u++)u!==r&&(y+=n.elements[u].colSpan);d=this.columns.length-y}var V=this.columns.slice(s,s+(d||1));return e.setPropertyValue("effectiveColSpan",V.length),V},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.getProgressInfo=function(){return _e.getProgressInfoByElements(this.elements,this.isRequired)},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t.prototype.childVisibilityChanged=function(){var e=this.getIsPageVisible(null),n=this.getPropertyValue("isVisible",!0);e!==n&&this.onVisibleChanged()},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.isLazyRenderInRow=function(e){return!this.survey||!this.survey.isLazyRendering?!1:e>=this.survey.lazyRenderingFirstBatchSize||!this.canRenderFirstRows()},t.prototype.createRowAndSetLazy=function(e){var n=this.createRow();return n.setIsLazyRendering(this.isLazyRenderInRow(e)),n},t.prototype.createRow=function(){return new za(this)},t.prototype.onSurveyLoad=function(){this.blockAnimations(),i.prototype.onSurveyLoad.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this),this.releaseAnimations()},t.prototype.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this),this.onRowsChanged(),this.elements.forEach(function(e){return e.onFirstRendering()})},t.prototype.updateRows=function(){this.isLoadingFromJson||(this.getElementsForRows().forEach(function(e){e.isPanel&&e.updateRows()}),this.onRowsChanged())},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!1,configurable:!0}),t.prototype.ensureRowsVisibility=function(){this.rows.forEach(function(e){e.ensureVisibility()})},t.prototype.onRowsChanged=function(){this.isLoadingFromJson||(this.blockAnimations(),this.setArrayPropertyDirectly("rows",this.buildRows()),this.updateColumns(),this.releaseAnimations())},t.prototype.blockRowsUpdates=function(){this.locCountRowUpdates++},t.prototype.releaseRowsUpdates=function(){this.locCountRowUpdates--},t.prototype.updateRowsBeforeElementRemoved=function(e){var n=this,r=this.findRowByElement(e),o=this.rows.indexOf(r),s=r.elements.indexOf(e);r.elements.splice(s,1),r.elements.length==0?this.rows.splice(o,1):!r.elements[0].startWithNewLine&&this.rows[o-1]?(r.elements.forEach(function(u){return n.rows[o-1].addElement(u)}),this.rows.splice(o,1)):r.updateVisible()},t.prototype.updateRowsOnElementAdded=function(e){var n=this,r=this.elements.indexOf(e),o=this.elements[r+1],s=function(T){var N=n.createRowAndSetLazy(T);return n.isDesignModeV2&&N.setIsLazyRendering(!1),n.rows.splice(T,0,N),N},u=function(T,N,U){for(var W,X=[],Y=3;Y<arguments.length;Y++)X[Y-3]=arguments[Y];var J=(W=T.elements).splice.apply(W,Ha([N,U],X));return T.updateVisible(),J};if(!o){r==0||e.startWithNewLine?u(s(this.rows.length),0,0,e):this.rows[this.rows.length-1].addElement(e);return}var d=this.findRowByElement(o);if(d){var y=this.rows.indexOf(d),V=d.elements.indexOf(o);V==0?o.startWithNewLine?e.startWithNewLine||y<1?s(y).addElement(e):this.rows[y-1].addElement(e):u(d,0,0,e):e.startWithNewLine?u.apply(void 0,Ha([s(y+1),0,0],[e].concat(u(d,V,d.elements.length)))):u(d,V,0,e)}},t.prototype.canFireAddRemoveNotifications=function(e){return!!this.survey&&e.prevSurvey!==this.survey},t.prototype.onAddElement=function(e,n){var r=this,o=this.survey,s=this.canFireAddRemoveNotifications(e);this.surveyImpl&&e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.canBuildRows()&&this.updateRowsOnElementAdded(e),s&&(e.isPanel?o.panelAdded(e,n,this,this.root):o.questionAdded(e,n,this,this.root)),this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers(["visible","isVisible"],function(){r.onElementVisibilityChanged(e)},this.id),e.registerPropertyChangedHandlers(["startWithNewLine"],function(){r.onElementStartWithNewLineChanged(e)},this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.unregisterElementPropertiesChanged(e),this.markQuestionListDirty(),this.updateRowsOnElementRemoved(e),!this.isRandomizing&&(this.onRemoveElementNotifySurvey(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))},t.prototype.unregisterElementPropertiesChanged=function(e){e.unregisterPropertyChangedHandlers(["visible","isVisible","startWithNewLine"],this.id)},t.prototype.onRemoveElementNotifySurvey=function(e){this.canFireAddRemoveNotifications(e)&&(e.isPanel?this.survey.panelRemoved(e):this.survey.questionRemoved(e))},t.prototype.onElementVisibilityChanged=function(e){this.isLoadingFromJson||this.isRandomizing||(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))},t.prototype.onElementStartWithNewLineChanged=function(e){this.locCountRowUpdates>0||(this.blockAnimations(),this.updateRowsBeforeElementRemoved(e),this.updateRowsOnElementAdded(e),this.releaseAnimations())},t.prototype.updateRowsVisibility=function(e){for(var n=this.rows,r=0;r<n.length;r++){var o=n[r];if(o.elements.indexOf(e)>-1){o.updateVisible(),o.visible&&!o.isNeedRender&&(o.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&this.getChildrenLayoutType()=="row"},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,n=this.getElementsForRows(),r=0;r<n.length;r++){var o=n[r],s=r==0||o.startWithNewLine,u=s?this.createRowAndSetLazy(e.length):e[e.length-1];s&&e.push(u),u.addElement(o)}return e.forEach(function(d){return d.updateVisible()}),e},t.prototype.getElementsForRows=function(){return this.elements},t.prototype.getDragDropInfo=function(){var e=this.getPage(this.parent);return e?e.getDragDropInfo():void 0},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&(this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e)),this.updateColumns())},t.prototype.updateRowsRemoveElementFromRow=function(e,n){if(!(!n||!n.panel)){var r=n.elements.indexOf(e);r<0||(n.elements.splice(r,1),n.elements.length>0?(this.blockRowsUpdates(),n.elements[0].startWithNewLine=!0,this.releaseRowsUpdates(),n.updateVisible()):n.index>=0&&n.panel.rows.splice(n.index,1))}},t.prototype.getAllRows=function(){var e=this,n=[];return this.rows.forEach(function(r){var o=[];r.elements.forEach(function(s){s.isPanel?o.push.apply(o,s.getAllRows()):s.getType()=="paneldynamic"&&(e.isDesignMode?o.push.apply(o,s.template.getAllRows()):s.panels.forEach(function(u){return o.push.apply(o,u.getAllRows())}))}),n.push(r),n.push.apply(n,o)}),n},t.prototype.findRowAndIndexByElement=function(e,n){if(!e)return{row:void 0,index:this.rows.length-1};n=n||this.rows;for(var r=0;r<n.length;r++)if(n[r].elements.indexOf(e)>-1)return{row:n[r],index:r};return{row:null,index:-1}},t.prototype.forceRenderRow=function(e){e&&!e.isNeedRender&&(e.isNeedRender=!0,e.stopLazyRendering())},t.prototype.forceRenderElement=function(e,n,r){n===void 0&&(n=function(){}),r===void 0&&(r=0);var o=this.getAllRows(),s=this.findRowAndIndexByElement(e,o),u=s.row,d=s.index;if(d>=0&&d<o.length){var y=[];y.push(u);for(var V=d-1;V>=d-r&&V>=0;V--)y.push(o[V]);this.forceRenderRows(y,n)}},t.prototype.forceRenderRows=function(e,n){var r=this;n===void 0&&(n=function(){});var o=function(s){return function(){s--,s<=0&&n()}}(e.length);e.forEach(function(s){return new Fi(s.visibleElements,o)}),e.forEach(function(s){return r.forceRenderRow(s)})},t.prototype.findRowByElement=function(e){return this.findRowAndIndexByElement(e).row},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var n=this.findRowByElement(e);n&&n.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),t.prototype.getRenderedTitle=function(e){return this.textProcessor!=null?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){this.questions.forEach(function(e){return e.onHidingContent()})},t.prototype.onVisibleChanged=function(){if(!this.isRandomizing&&(this.setPropertyValue("isVisible",this.isVisible),this.survey&&this.survey.getQuestionClearIfInvisible("default")!=="none"&&!this.isLoadingFromJson))for(var e=this.questions,n=this.isVisible,r=0;r<e.length;r++){var o=e[r];n?o.updateValueWithDefaults():(o.clearValueIfInvisible("onHiddenContainer"),o.onHidingContent())}},t.prototype.notifyStateChanged=function(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed&&this.questions.forEach(function(n){return n.onHidingContent()})},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!1,configurable:!0}),t.prototype.getIsContentVisible=function(e){if(this.areInvisibleElementsShowing)return!0;for(var n=0;n<this.elements.length;n++)if(this.elements[n]!=e&&this.elements[n].isVisible)return!0;return!1},t.prototype.getIsPageVisible=function(e){return this.visible&&this.getIsContentVisible(e)},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0)return this.resetVisibleIndexes(),0;this.lastVisibleIndex=e;var n=e;e+=this.beforeSetVisibleIndex(e);for(var r=this.getPanelStartIndex(e),o=r,s=0;s<this.elements.length;s++)o+=this.elements[s].setVisibleIndex(o);return this.isContinueNumbering()&&(e+=o-r),e-n},t.prototype.updateVisibleIndexes=function(){this.lastVisibleIndex!==void 0&&(this.resetVisibleIndexes(),this.setVisibleIndex(this.lastVisibleIndex))},t.prototype.resetVisibleIndexes=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].setVisibleIndex(-1)},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,n=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||n},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var e=0;e<this.elements.length;e++){var n=this.elements[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e);for(var n=0;n<this.elements.length;n++){var r=this.elements[n];r.updateElementCss(e)}},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.addElement=function(e,n){return n===void 0&&(n=-1),this.canAddElement(e)?(n<0||n>=this.elements.length?this.elements.push(e):this.elements.splice(n,0,e),this.wasRendered&&e.onFirstRendering(),this.updateColumns(),!0):!1},t.prototype.insertElement=function(e,n,r){if(r===void 0&&(r="bottom"),!n){this.addElement(e);return}this.blockRowsUpdates();var o=this.elements.indexOf(n),s=this.findRowByElement(n);r=="left"||r=="right"?r=="right"?(e.startWithNewLine=!1,o++):s.elements.indexOf(n)==0?(n.startWithNewLine=!1,e.startWithNewLine=!0):e.startWithNewLine=!1:(e.startWithNewLine=!0,r=="top"?o=this.elements.indexOf(s.elements[0]):o=this.elements.indexOf(s.elements[s.elements.length-1])+1),this.releaseRowsUpdates(),this.addElement(e,o)},t.prototype.insertElementAfter=function(e,n){var r=this.elements.indexOf(n);r>=0&&this.addElement(e,r+1)},t.prototype.insertElementBefore=function(e,n){var r=this.elements.indexOf(n);r>=0&&this.addElement(e,r)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,n){return n===void 0&&(n=-1),this.addElement(e,n)},t.prototype.addPanel=function(e,n){return n===void 0&&(n=-1),this.addElement(e,n)},t.prototype.addNewQuestion=function(e,n,r){n===void 0&&(n=null),r===void 0&&(r=-1);var o=Se.Instance.createQuestion(e,n);return this.addQuestion(o,r)?o:null},t.prototype.addNewPanel=function(e){e===void 0&&(e=null);var n=this.createNewPanel(e);return this.addPanel(n)?n:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var n=j.createClass("panel");return n.name=e,n},t.prototype.removeElement=function(e){var n=this.elements.indexOf(e);if(n<0){for(var r=0;r<this.elements.length;r++)if(this.elements[r].removeElement(e))return!0;return!1}return this.elements.splice(n,1),this.updateColumns(),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,n){if(!(this.isDesignMode||this.isLoadingFromJson)){for(var r=this.elements.slice(),o=0;o<r.length;o++)r[o].runCondition(e,n);this.runConditionCore(e,n)}},t.prototype.onAnyValueChanged=function(e,n){for(var r=this.elements,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,n)},t.prototype.checkBindings=function(e,n){for(var r=this.elements,o=0;o<r.length;o++)r[o].checkBindings(e,n)},t.prototype.dragDropAddTarget=function(e){this.dragDropPanelHelper.dragDropAddTarget(e)},t.prototype.dragDropFindRow=function(e){return this.dragDropPanelHelper.dragDropFindRow(e)},t.prototype.dragDropMoveElement=function(e,n,r){this.dragDropPanelHelper.dragDropMoveElement(e,n,r)},t.prototype.needResponsiveWidth=function(){var e=!1;return this.elements.forEach(function(n){n.needResponsiveWidth()&&(e=!0)}),this.rows.forEach(function(n){n.elements.length>1&&(e=!0)}),e},Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.cssClasses.panel.header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.cssClasses.panel.description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionErrorLocation=function(){return this.questionErrorLocation!=="default"?this.questionErrorLocation:this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){return this.cssClasses.panel.number},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){return this.cssClasses.panel.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getCssError(this.cssClasses)},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){return new _().append(e.error.root).toString()},t.prototype.getSerializableColumnsValue=function(){for(var e=-1,n=this.gridLayoutColumns.length-1;n>=0;n--)if(!this.gridLayoutColumns[n].isEmpty()){e=n;break}return this.gridLayoutColumns.slice(0,e+1)},t.prototype.afterRender=function(e){this.afterRenderCore(e)},t.prototype.dispose=function(){if(i.prototype.dispose.call(this),this.rows){for(var e=0;e<this.rows.length;e++)this.rows[e].dispose();this.rows.splice(0,this.rows.length)}this.disposeElements(),this.elements.splice(0,this.elements.length)},t.prototype.disposeElements=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].dispose()},t.panelCounter=100,si([me()],t.prototype,"gridLayoutColumns",void 0),si([x({defaultValue:!0})],t.prototype,"showTitle",void 0),si([x({defaultValue:!0})],t.prototype,"showDescription",void 0),si([x()],t.prototype,"questionTitleWidth",void 0),t}(_e),ai=function(i){Ss(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.forcusFirstQuestionOnExpand=!0,n.createNewArray("footerActions"),n.registerPropertyChangedHandlers(["width"],function(){n.parent&&n.parent.elementWidthChanged(n)}),n.registerPropertyChangedHandlers(["indent","innerIndent","rightIndent"],function(){n.resetIndents()}),n.registerPropertyChangedHandlers(["colSpan"],function(){var r;(r=n.parent)===null||r===void 0||r.updateColumns()}),n}return t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"contentId",{get:function(){return this.id+"_content"},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return e===void 0&&(e=!1),e&&this.isPanel?this.parent?this.parent.getSurvey(e):null:i.prototype.getSurvey.call(this,e)},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.moveTo=function(e,n){return n===void 0&&(n=null),this.moveToBase(this.parent,e,n)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber")},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:i.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){var e=this;return this.getPropertyValue("no",void 0,function(){return e.calcNo()})},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){var e=h.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedPanelNo(this,e)),e||""},t.prototype.notifyStateChanged=function(e){this.isLoadingFromJson||this.locTitle.strChanged(),i.prototype.notifyStateChanged.call(this,e)},t.prototype.createLocTitleProperty=function(){var e=this,n=i.prototype.createLocTitleProperty.call(this);return n.onGetTextCallback=function(r){return!r&&e.state!=="default"&&(r=e.name),r},n},t.prototype.beforeSetVisibleIndex=function(e){if(this.isPage)return i.prototype.beforeSetVisibleIndex.call(this,e);var n=-1;return this.showNumber&&(this.isDesignMode||!this.locTitle.isEmpty||this.hasParentInQuestionIndex())&&(n=e),this.setPropertyValue("visibleIndex",n),this.resetPropertyValue("no"),n<0?0:1},t.prototype.getPanelStartIndex=function(e){return this.showQuestionNumbers==="off"?-1:this.showQuestionNumbers==="onpanel"?0:e},t.prototype.hasParentInQuestionIndex=function(){if(this.showQuestionNumbers!=="onpanel")return!1;var e=this.questionStartIndex,n=e.indexOf(".");return n>-1&&n<e.length-1},t.prototype.isContinueNumbering=function(){return this.showQuestionNumbers!=="off"&&this.showQuestionNumbers!=="onpanel"},t.prototype.notifySurveyOnVisibilityChanged=function(){this.survey!=null&&!this.isLoadingFromJson&&this.page&&this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.getRenderedTitle=function(e){if(this.isPanel&&!e){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return i.prototype.getRenderedTitle.call(this,e)},Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent")},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){var e=this,n=function(){return e.getIndentSize(e.innerIndent)};return this.getPropertyValue("innerPaddingLeft",void 0,n)},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return this.getIndentSize(this.indent)},t.prototype.calcPaddingRight=function(){return this.getIndentSize(this.rightIndent)},t.prototype.resetIndents=function(){this.resetPropertyValue("innerPaddingLeft"),i.prototype.resetIndents.call(this)},t.prototype.getIndentSize=function(e){if(this.survey){if(e<1)return"";var n=this.survey.css;return!n||!n.question||!n.question.indent?"":e*n.question.indent+"px"}},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach(function(e){(e instanceof Be||e instanceof t)&&e.clearOnDeletingContainer()})},Object.defineProperty(t.prototype,"footerActions",{get:function(){return this.getPropertyValue("footerActions")},enumerable:!1,configurable:!0}),t.prototype.getFooterToolbar=function(){var e=this,n,r;if(!this.footerToolbarValue){var o=this.footerActions;this.hasEditButton&&o.push({id:"cancel-preview",locTitle:this.survey.locEditText,innerCss:this.survey.cssNavigationEdit,component:"sv-nav-btn",action:function(){e.cancelPreview()}}),this.onGetFooterActionsCallback?o=this.onGetFooterActionsCallback():o=(n=this.survey)===null||n===void 0?void 0:n.getUpdatedPanelFooterActions(this,o),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions);var s=this.onGetFooterToolbarCssCallback?this.onGetFooterToolbarCssCallback():"";s||(s=(r=this.cssClasses.panel)===null||r===void 0?void 0:r.footer),s&&(this.footerToolbarValue.containerCss=s),this.footerToolbarValue.setItems(o)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getCssPanelTitle()},enumerable:!1,configurable:!0}),t.prototype.getCssPanelTitle=function(){return this.getCssTitle(this.cssClasses.panel)},t.prototype.getCssTitleExpandableSvg=function(){return this.state==="default"?null:this.cssClasses.panel.titleExpandableSvg},Object.defineProperty(t.prototype,"showErrorsAbovePanel",{get:function(){return this.isDefaultV2Theme&&!this.showPanelAsPage},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){if(this.isPage)return i.prototype.getCssError.call(this,e);var n=new _().append(i.prototype.getCssError.call(this,e)).append(e.panel.errorsContainer);return n.append("panel-error-root",n.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){i.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t.prototype.needResponsiveWidth=function(){return this.startWithNewLine?i.prototype.needResponsiveWidth.call(this):!0},t.prototype.focusIn=function(){this.survey&&this.survey.whenPanelFocusIn(this)},t.prototype.getHasFrameV2=function(){return i.prototype.getHasFrameV2.call(this)&&!this.showPanelAsPage},t.prototype.getIsNested=function(){return i.prototype.getIsNested.call(this)&&this.parent!==void 0},Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.expand=function(e){e===void 0&&(e=!0),this.forcusFirstQuestionOnExpand=e,i.prototype.expand.call(this)},t.prototype.onElementExpanded=function(e){var n=this;if(this.forcusFirstQuestionOnExpand&&this.survey!=null&&!this.isLoadingFromJson){var r=this.getFirstQuestionToFocus(!1);r&&setTimeout(function(){!n.isDisposed&&n.survey&&n.survey.scrollElementToTop(r,r,null,r.inputId,!1,{behavior:"smooth"})},e?0:15)}},t.prototype.getCssRoot=function(e){return new _().append(i.prototype.getCssRoot.call(this,e)).append(e.container).append(e.asPage,this.showPanelAsPage).append(e.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getContainerCss=function(){return this.getCssRoot(this.cssClasses.panel)},t.prototype.afterRenderCore=function(e){var n;i.prototype.afterRenderCore.call(this,e),this.isPanel&&((n=this.survey)===null||n===void 0||n.afterRenderPanel(this,e))},t}(Os);j.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"readOnly:boolean",overridingProperty:"enableIf"},"visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"questionTitleWidth",visibleIf:function(i){return!!i&&i.availableQuestionTitleWidth()}},{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"gridLayoutColumns:panellayoutcolumns",className:"panellayoutcolumn",isArray:!0,onSerializeValue:function(i){return i.getSerializableColumnsValue()},visibleIf:function(i){return!!i&&!!i.survey&&i.survey.gridLayoutEnabled}},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"questionsOrder",default:"default",choices:["default","initial","random"]},{name:"questionErrorLocation",default:"default",choices:["default","top","bottom"]}],function(){return new Os}),j.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"isRequired:switch",overridingProperty:"requiredIf"},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},{name:"width"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"maxWidth",defaultFunc:function(){return I.maxWidth}},{name:"colSpan:number",visible:!1,onSerializeValue:function(i){return i.getPropertyValue("colSpan")}},{name:"effectiveColSpan:number",minValue:1,isSerializable:!1,visibleIf:function(i){return!!i.survey&&i.survey.gridLayoutEnabled}},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3],visible:!1},{name:"page",isSerializable:!1,visibleIf:function(i){var t=i?i.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(i){var t=i?i.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"showNumber:boolean"},{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},{name:"questionStartIndex",visibleIf:function(i){return i.isPanel}},{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],function(){return new ai},"panelbase"),pn.Instance.registerElement("panel",function(i){return new ai(i)});var xc=function(){function i(t){this.page=t}return i.prototype.getDragDropInfo=function(){return this.dragDropInfo},i.prototype.dragDropStart=function(t,e,n){n===void 0&&(n=-1),this.dragDropInfo=new ka(t,e,n)},i.prototype.dragDropMoveTo=function(t,e,n){if(e===void 0&&(e=!1),n===void 0&&(n=!1),!this.dragDropInfo||(this.dragDropInfo.destination=t,this.dragDropInfo.isBottom=e,this.dragDropInfo.isEdge=n,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert()))return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var r=this.page.dragDropFindRow(this.dragDropInfo.target);this.page.updateRowsRemoveElementFromRow(this.dragDropInfo.target,r)}return!1}return this.page.dragDropAddTarget(this.dragDropInfo),!0},i.prototype.correctDragDropInfo=function(t){if(t.destination){var e=t.destination.isPanel?t.destination:null;e&&(t.target.isLayoutTypeSupported(e.getChildrenLayoutType())||(t.isEdge=!0))}},i.prototype.dragDropAllowFromSurvey=function(){var t=this.dragDropInfo.destination;if(!t||!this.page.survey)return!0;var e=null,n=null,r=t.isPage||!this.dragDropInfo.isEdge&&t.isPanel?t:t.parent;if(!t.isPage){var o=t.parent;if(o){var s=o.elements,u=s.indexOf(t);u>-1&&(e=t,n=t,this.dragDropInfo.isBottom?e=u<s.length-1?s[u+1]:null:n=u>0?s[u-1]:null)}}var d={allow:!0,target:this.dragDropInfo.target,source:this.dragDropInfo.source,toElement:this.dragDropInfo.target,draggedElement:this.dragDropInfo.source,parent:r,fromElement:this.dragDropInfo.source?this.dragDropInfo.source.parent:null,insertAfter:n,insertBefore:e};return this.page.survey.dragAndDropAllow(d)},i.prototype.dragDropFinish=function(t){if(t===void 0&&(t=!1),!!this.dragDropInfo){var e=this.dragDropInfo.target,n=this.dragDropInfo.source,r=this.dragDropInfo.destination,o=this.page.dragDropFindRow(e),s=this.dragDropGetElementIndex(e,o);this.page.updateRowsRemoveElementFromRow(e,o);var u=[],d=[];if(!t&&o){var y=!1;if(this.page.isDesignModeV2){var V=n&&n.parent&&n.parent.dragDropFindRow(n);o.panel.elements[s]&&o.panel.elements[s].startWithNewLine&&o.elements.length>1&&o.panel.elements[s]===r&&(u.push(e),d.push(o.panel.elements[s])),e.startWithNewLine&&o.elements.length>1&&(!o.panel.elements[s]||!o.panel.elements[s].startWithNewLine)&&d.push(e),V&&V.elements[0]===n&&V.elements[1]&&u.push(V.elements[1]),o.elements.length<=1&&u.push(e),e.startWithNewLine&&o.elements.length>1&&o.elements[0]!==r&&d.push(e)}this.page.survey.startMovingQuestion(),n&&n.parent&&(y=o.panel==n.parent,y?(o.panel.dragDropMoveElement(n,e,s),s=-1):n.parent.removeElement(n)),s>-1&&o.panel.addElement(e,s),this.page.survey.stopMovingQuestion()}return u.map(function(T){T.startWithNewLine=!0}),d.map(function(T){T.startWithNewLine=!1}),this.dragDropInfo=null,t?null:e}},i.prototype.dragDropGetElementIndex=function(t,e){if(!e)return-1;var n=e.elements.indexOf(t);if(e.index==0)return n;var r=e.panel.rows[e.index-1],o=r.elements[r.elements.length-1];return n+e.panel.elements.indexOf(o)+1},i.prototype.dragDropCanDropTagert=function(){var t=this.dragDropInfo.destination;return!t||t.isPage?!0:this.dragDropCanDropCore(this.dragDropInfo.target,t)},i.prototype.dragDropCanDropSource=function(){var t=this.dragDropInfo.source;if(!t)return!0;var e=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(t,e))return!1;if(this.page.isDesignModeV2){var n=this.page.dragDropFindRow(t),r=this.page.dragDropFindRow(e);if(n!==r&&(!t.startWithNewLine&&e.startWithNewLine||t.startWithNewLine&&!e.startWithNewLine))return!0;var o=this.page.dragDropFindRow(e);if(o&&o.elements.length==1)return!0}return this.dragDropCanDropNotNext(t,e,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},i.prototype.dragDropCanDropCore=function(t,e){if(!e)return!0;if(this.dragDropIsSameElement(e,t))return!1;if(t.isPanel){var n=t;if(n.containsElement(e)||n.getElementByName(e.name))return!1}return!0},i.prototype.dragDropCanDropNotNext=function(t,e,n,r){if(!e||e.isPanel&&!n||typeof t.parent>"u"||t.parent!==e.parent)return!0;var o=t.parent,s=o.elements.indexOf(t),u=o.elements.indexOf(e);return u<s&&!r&&u--,r&&u++,s<u?u-s>1:s-u>0},i.prototype.dragDropIsSameElement=function(t,e){return t==e||t.name==e.name},i}(),Vc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Sc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Es=function(i){Vc(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.hasShownValue=!1,n.timeSpent=0,n._isReadyForClean=!0,n.createLocalizableString("navigationDescription",n,!0),n.dragDropPageHelper=new xc(n),n}return t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!this.isPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!!this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return this.isPanel&&this.survey&&this.survey.state==="preview"&&!!this.parent&&!this.parent.isPanel},enumerable:!1,configurable:!0}),t.prototype.getElementsForRows=function(){var e,n=(e=this.survey)===null||e===void 0?void 0:e.currentSingleQuestion;return n?n.page===this?[n]:[]:i.prototype.getElementsForRows.call(this)},t.prototype.disposeElements=function(){this.isPageContainer||i.prototype.disposeElements.call(this)},t.prototype.onRemoveElement=function(e){this.isPageContainer?(e.parent=null,this.unregisterElementPropertiesChanged(e)):i.prototype.onRemoveElement.call(this,e)},t.prototype.getTemplate=function(){return this.isPanel?"panel":i.prototype.getTemplate.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){if(!this.canShowPageNumber()||!this.survey)return"";var e=this.isStartPage?"":this.num+". ";return this.survey.getUpdatedPageNo(this,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){return this.cssClasses.page.number},enumerable:!1,configurable:!0}),t.prototype.getCssTitleExpandableSvg=function(){return null},Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},t.prototype.canShowTitle=function(e){return!e||e.showPageTitles},t.prototype.setTitleValue=function(e){i.prototype.setTitleValue.call(this,e),this.navigationLocStrChanged()},Object.defineProperty(t.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(e){this.setLocalizableStringText("navigationTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationDescription",{get:function(){return this.getLocalizableStringText("navigationDescription")},set:function(e){this.setLocalizableStringText("navigationDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationDescription",{get:function(){return this.getLocalizableString("navigationDescription")},enumerable:!1,configurable:!0}),t.prototype.navigationLocStrChanged=function(){this.locNavigationTitle.isEmpty&&this.locTitle.strChanged(),this.locNavigationTitle.strChanged(),this.locNavigationDescription.strChanged()},t.prototype.getMarkdownHtml=function(e,n){var r=i.prototype.getMarkdownHtml.call(this,e,n);return n==="navigationTitle"&&this.canShowPageNumber()&&r?this.num+". "+r:r},Object.defineProperty(t.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(e){this.setPropertyValue("passed",e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!1,configurable:!0}),t.prototype.canRenderFirstRows=function(){return!this.isDesignMode||this.visibleIndex==0},Object.defineProperty(t.prototype,"isStartPage",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.isStartPage},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){if(this.isPanel)return i.prototype.calcCssClasses.call(this,e);var n={page:{},error:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:"",rowCompact:"",rowEnter:"",rowLeave:"",rowDelayedEnter:"",rowReplace:""};return this.copyCssClasses(n.page,e.page),this.copyCssClasses(n.error,e.error),e.pageTitle&&(n.pageTitle=e.pageTitle),e.pageDescription&&(n.pageDescription=e.pageDescription),e.row&&(n.row=e.row),e.pageRow&&(n.pageRow=e.pageRow),e.rowMultiple&&(n.rowMultiple=e.rowMultiple),e.rowCompact&&(n.rowCompact=e.rowCompact),e.rowEnter&&(n.rowEnter=e.rowEnter),e.rowDelayedEnter&&(n.rowDelayedEnter=e.rowDelayedEnter),e.rowLeave&&(n.rowLeave=e.rowLeave),e.rowReplace&&(n.rowReplace=e.rowReplace),this.survey&&this.survey.updatePageCssClasses(this,n),n},t.prototype.getCssPanelTitle=function(){return this.isPanel?i.prototype.getCssPanelTitle.call(this):this.cssClasses.page?new _().append(this.cssClasses.page.title).toString():""},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.isPanel||!this.cssClasses.page||!this.survey?"":new _().append(this.cssClasses.page.root).append(this.cssClasses.page.emptyHeaderRoot,!this.survey.renderedHasHeader&&!(this.survey.isShowProgressBarOnTop&&!this.survey.isStaring)).toString()},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){return this.isPanel?i.prototype.getCssError.call(this,e):new _().append(i.prototype.getCssError.call(this,e)).append(e.page.errorsContainer).toString()},Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return!!this.survey&&this.survey.currentPage===this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!1,configurable:!0}),t.prototype.setWasShown=function(e){if(e!=this.hasShownValue&&(this.hasShownValue=e,!(this.isDesignMode||e!==!0))){for(var n=this.elements,r=0;r<n.length;r++)n[r].isPanel&&n[r].randomizeElements(this.areQuestionsRandomized);this.randomizeElements(this.areQuestionsRandomized)}},t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getAllPanels=function(e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=new Array;return this.addPanelsIntoList(r,e,n),r},t.prototype.getPanels=function(e,n){return e===void 0&&(e=!1),n===void 0&&(n=!1),this.getAllPanels(e,n)},Object.defineProperty(t.prototype,"timeLimit",{get:function(){return this.getPropertyValue("timeLimit",0)},set:function(e){this.setPropertyValue("timeLimit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.timeLimit},set:function(e){this.timeLimit=e},enumerable:!1,configurable:!0}),t.prototype.getMaxTimeToFinish=function(){if(this.timeLimit!==0)return this.timeLimit;var e=this.survey?this.survey.timeLimitPerPage:0;return e>0?e:0},t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(i.prototype.onVisibleChanged.call(this),this.survey!=null&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.getDragDropInfo=function(){return this.dragDropPageHelper.getDragDropInfo()},t.prototype.dragDropStart=function(e,n,r){r===void 0&&(r=-1),this.dragDropPageHelper.dragDropStart(e,n,r)},t.prototype.dragDropMoveTo=function(e,n,r){return n===void 0&&(n=!1),r===void 0&&(r=!1),this.dragDropPageHelper.dragDropMoveTo(e,n,r)},t.prototype.dragDropFinish=function(e){return e===void 0&&(e=!1),this.dragDropPageHelper.dragDropFinish(e)},t.prototype.ensureRowsVisibility=function(){i.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach(function(e){return e.ensureRowsVisibility()})},Object.defineProperty(t.prototype,"isReadyForClean",{get:function(){return this._isReadyForClean},set:function(e){var n=this._isReadyForClean;this._isReadyForClean=e,this._isReadyForClean!==n&&this.isReadyForCleanChangedCallback&&this.isReadyForCleanChangedCallback()},enumerable:!1,configurable:!0}),t.prototype.enableOnElementRerenderedEvent=function(){i.prototype.enableOnElementRerenderedEvent.call(this),this.isReadyForClean=!1},t.prototype.disableOnElementRerenderedEvent=function(){i.prototype.disableOnElementRerenderedEvent.call(this),this.isReadyForClean=!0},Sc([x({defaultValue:-1,onSet:function(e,n){return n.onNumChanged(e)}})],t.prototype,"num",void 0),t}(ai);j.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"timeLimit:number",alternativeName:"maxTimeToFinish",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(i){return!!i.survey&&(i.survey.progressBarType==="buttons"||i.survey.showTOC)},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(i){return!!i.survey&&i.survey.progressBarType==="buttons"},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"state",visible:!1},{name:"isRequired",visible:!1},{name:"startWithNewLine",visible:!1},{name:"width",visible:!1},{name:"minWidth",visible:!1},{name:"maxWidth",visible:!1},{name:"colSpan",visible:!1,isSerializable:!1},{name:"effectiveColSpan:number",visible:!1,isSerializable:!1},{name:"innerIndent",visible:!1},{name:"indent",visible:!1},{name:"page",visible:!1,isSerializable:!1},{name:"showNumber",visible:!1},{name:"showQuestionNumbers",visible:!1},{name:"questionStartIndex",visible:!1},{name:"allowAdaptiveActions",visible:!1},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText",visible:!1}],function(){return new Es},"panel");var Oc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ua=function(i){Oc(t,i);function t(e){var n=i.call(this)||this;return n.survey=e,n.onResize=n.addEvent(),n}return t.prototype.isListElementClickable=function(e){return!this.survey.onServerValidateQuestions||this.survey.onServerValidateQuestions.isEmpty||this.survey.checkErrorsMode==="onComplete"?!0:e<=this.survey.currentPageNo+1},t.prototype.getRootCss=function(e){e===void 0&&(e="center");var n=this.survey.css.progressButtonsContainerCenter;return this.survey.css.progressButtonsRoot&&(n+=" "+this.survey.css.progressButtonsRoot+" "+this.survey.css.progressButtonsRoot+"--"+(["footer","contentBottom"].indexOf(e)!==-1?"bottom":"top"),n+=" "+this.survey.css.progressButtonsRoot+"--"+(this.showItemTitles?"with-titles":"no-titles")),this.showItemNumbers&&this.survey.css.progressButtonsNumbered&&(n+=" "+this.survey.css.progressButtonsNumbered),this.isFitToSurveyWidth&&(n+=" "+this.survey.css.progressButtonsFitSurveyWidth),n},t.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return new _().append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[e].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===e).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(e)).toString()},t.prototype.getScrollButtonCss=function(e,n){return new _().append(this.survey.css.progressButtonsImageButtonLeft,n).append(this.survey.css.progressButtonsImageButtonRight,!n).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},t.prototype.clickListElement=function(e){e instanceof Es||(e=this.survey.visiblePages[e]),this.survey.tryNavigateToPage(e)},t.prototype.isListContainerHasScroller=function(e){var n=e.querySelector("."+this.survey.css.progressButtonsListContainer);return n?n.scrollWidth>n.offsetWidth:!1},t.prototype.isCanShowItemTitles=function(e){var n=e.querySelector("ul");if(!n||n.children.length<2)return!0;if(n.clientWidth>n.parentElement.clientWidth)return!1;for(var r=n.children[0].clientWidth,o=0;o<n.children.length;o++)if(Math.abs(n.children[o].clientWidth-r)>5)return!1;return!0},t.prototype.clearConnectorsWidth=function(e){for(var n=e.querySelectorAll(".sd-progress-buttons__connector"),r=0;r<n.length;r++)n[r].style.width=""},t.prototype.adjustConnectors=function(e){var n=e.querySelector("ul");if(n)for(var r=e.querySelectorAll(".sd-progress-buttons__connector"),o=this.showItemNumbers?36:20,s=(n.clientWidth-o)/(n.children.length-1)-o,u=0;u<r.length;u++)r[u].style.width=s+"px"},Object.defineProperty(t.prototype,"isFitToSurveyWidth",{get:function(){return qe.currentType!=="defaultV2"?!1:this.survey.progressBarInheritWidthFrom==="survey"&&this.survey.widthMode=="static"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressWidth",{get:function(){return this.isFitToSurveyWidth?this.survey.renderedWidth:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemNumbers",{get:function(){return qe.currentType!=="defaultV2"?!1:this.survey.progressBarShowPageNumbers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemTitles",{get:function(){return qe.currentType!=="defaultV2"?!0:this.survey.progressBarShowPageTitles},enumerable:!1,configurable:!0}),t.prototype.getItemNumber=function(e){var n="";return this.showItemNumbers&&(n+=this.survey.visiblePages.indexOf(e)+1),n},Object.defineProperty(t.prototype,"headerText",{get:function(){return this.survey.currentPage?this.survey.currentPage.renderedNavigationTitle:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.processResponsiveness=function(e){this.onResize.fire(this,{width:e})},t}(fe),Ec=function(){function i(t,e,n){var r=this;this.model=t,this.element=e,this.viewModel=n,this.criticalProperties=["progressBarType","progressBarShowPageTitles"],this.canShowItemTitles=!0,this.processResponsiveness=function(o,s){if(r.viewModel.onUpdateScroller(o.isListContainerHasScroller(r.element)),r.model.clearConnectorsWidth(r.element),!o.showItemTitles){r.model.adjustConnectors(r.element);return}if(o.survey.isMobile){r.prevWidth=s.width,r.canShowItemTitles=!1,r.model.adjustConnectors(r.element),r.viewModel.onResize(r.canShowItemTitles);return}r.timer!==void 0&&clearTimeout(r.timer),r.timer=setTimeout(function(){(r.prevWidth===void 0||r.prevWidth<s.width&&!r.canShowItemTitles||r.prevWidth>s.width&&r.canShowItemTitles)&&(r.prevWidth=s.width,r.canShowItemTitles=o.isCanShowItemTitles(r.element),r.viewModel.onResize(r.canShowItemTitles),r.timer=void 0)},10)},this.model.survey.registerFunctionOnPropertiesValueChanged(this.criticalProperties,function(){return r.forceUpdate()},"ProgressButtonsResponsivityManager"+this.viewModel.container),this.model.onResize.add(this.processResponsiveness),this.forceUpdate()}return i.prototype.forceUpdate=function(){this.viewModel.onUpdateSettings(),this.processResponsiveness(this.model,{})},i.prototype.dispose=function(){clearTimeout(this.timer),this.model.onResize.remove(this.processResponsiveness),this.model.survey.unRegisterFunctionOnPropertiesValueChanged(this.criticalProperties,"ProgressButtonsResponsivityManager"+this.viewModel.container),this.element=void 0,this.model=void 0},i}();function Tc(i,t){return i.isDesignMode||t.focusFirstQuestion(),!0}function Wa(i){if(i.parentQuestion)return Wa(i.parentQuestion);for(var t=i.parent;t&&t.getType()!=="page"&&t.parent;)t=t.parent;return t&&t.getType()==="page"?t:null}function $a(i,t){var e=Ja(i,t),n={items:e,searchEnabled:!1,locOwner:i},r=new on(n);r.allowSelection=!1;var o=function(s,u){r.selectedItem=!!s&&r.actions.filter(function(d){return d.id===s.name})[0]||u};return o(i.currentPage,e[0]),i.onCurrentPageChanged.add(function(s,u){o(i.currentPage)}),i.onFocusInQuestion.add(function(s,u){o(Wa(u.question))}),i.registerFunctionOnPropertyValueChanged("pages",function(){r.setItems(Ja(i,t))},"toc"),r}function Ja(i,t){var e=i.pages,n=(e||[]).map(function(r){return new xe({id:r.name,locTitle:r.locNavigationTitle,action:function(){if(R.activeElementBlur(),t&&t(),r.isPage)return i.tryNavigateToPage(r)},visible:new De(function(){return r.isVisible&&!r.isStartPage})})});return n}function Ga(i,t){t===void 0&&(t=!1);var e=kn.RootStyle;return t?e+" "+kn.RootStyle+"--mobile":(e+=" "+kn.RootStyle+"--"+(i.tocLocation||"").toLowerCase(),kn.StickyPosition&&(e+=" "+kn.RootStyle+"--sticky"),e)}var kn=function(){function i(t){var e=this;this.survey=t,this.icon="icon-navmenu_24x24",this.togglePopup=function(){e.popupModel.toggleVisibility()},this.listModel=$a(t,function(){e.popupModel.isVisible=!1}),this.popupModel=new On("sv-list",{model:this.listModel}),this.popupModel.overlayDisplayMode="plain",this.popupModel.displayMode=new De(function(){return e.isMobile?"overlay":"popup"}),i.StickyPosition&&(t.onAfterRenderSurvey.add(function(n,r){return e.initStickyTOCSubscriptions(r.htmlElement)}),this.initStickyTOCSubscriptions(t.rootElement))}return i.prototype.initStickyTOCSubscriptions=function(t){var e=this;i.StickyPosition&&t&&(t.addEventListener("scroll",function(n){e.updateStickyTOCSize(t)}),this.updateStickyTOCSize(t))},i.prototype.updateStickyTOCSize=function(t){if(t){var e=t.querySelector("."+i.RootStyle);if(e&&(e.style.height="",!this.isMobile&&i.StickyPosition&&t)){var n=t.getBoundingClientRect().height,r=this.survey.headerView==="advanced"?".sv-header":".sv_custom_header+div div."+(this.survey.css.title||"sd-title"),o=t.querySelector(r),s=o?o.getBoundingClientRect().height:0,u=t.scrollTop>s?0:s-t.scrollTop;e.style.height=n-u-1+"px"}}},Object.defineProperty(i.prototype,"isMobile",{get:function(){return this.survey.isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"containerCss",{get:function(){return Ga(this.survey,this.isMobile)},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.survey.unRegisterFunctionOnPropertyValueChanged("pages","toc"),this.popupModel.dispose(),this.listModel.dispose()},i.RootStyle="sv_progress-toc",i.StickyPosition=!0,i}(),Rc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ee=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},dn=function(i){Rc(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;r.valuesHash={},r.variablesHash={},r.onTriggerExecuted=r.addEvent(),r.onCompleting=r.addEvent(),r.onComplete=r.addEvent(),r.onShowingPreview=r.addEvent(),r.onNavigateToUrl=r.addEvent(),r.onStarted=r.addEvent(),r.onPartialSend=r.addEvent(),r.onCurrentPageChanging=r.addEvent(),r.onCurrentPageChanged=r.addEvent(),r.onValueChanging=r.addEvent(),r.onValueChanged=r.addEvent(),r.onVariableChanged=r.addEvent(),r.onQuestionVisibleChanged=r.addEvent(),r.onVisibleChanged=r.onQuestionVisibleChanged,r.onPageVisibleChanged=r.addEvent(),r.onPanelVisibleChanged=r.addEvent(),r.onQuestionCreated=r.addEvent(),r.onQuestionAdded=r.addEvent(),r.onQuestionRemoved=r.addEvent(),r.onPanelAdded=r.addEvent(),r.onPanelRemoved=r.addEvent(),r.onPageAdded=r.addEvent(),r.onValidateQuestion=r.addEvent(),r.onSettingQuestionErrors=r.addEvent(),r.onServerValidateQuestions=r.addEvent(),r.onValidatePanel=r.addEvent(),r.onErrorCustomText=r.addEvent(),r.onValidatedErrorsOnCurrentPage=r.addEvent(),r.onProcessHtml=r.addEvent(),r.onGetQuestionDisplayValue=r.addEvent(),r.onGetQuestionTitle=r.addEvent(),r.onGetTitleTagName=r.addEvent(),r.onGetQuestionNumber=r.addEvent(),r.onGetQuestionNo=r.onGetQuestionNumber,r.onGetPanelNumber=r.addEvent(),r.onGetPageNumber=r.addEvent(),r.onGetProgressText=r.addEvent(),r.onProgressText=r.onGetProgressText,r.onTextMarkdown=r.addEvent(),r.onTextRenderAs=r.addEvent(),r.onSendResult=r.addEvent(),r.onGetResult=r.addEvent(),r.onOpenFileChooser=r.addEvent(),r.onUploadFiles=r.addEvent(),r.onDownloadFile=r.addEvent(),r.onClearFiles=r.addEvent(),r.onLoadChoicesFromServer=r.addEvent(),r.onLoadedSurveyFromService=r.addEvent(),r.onProcessTextValue=r.addEvent(),r.onUpdateQuestionCssClasses=r.addEvent(),r.onUpdatePanelCssClasses=r.addEvent(),r.onUpdatePageCssClasses=r.addEvent(),r.onUpdateChoiceItemCss=r.addEvent(),r.onAfterRenderSurvey=r.addEvent(),r.onAfterRenderHeader=r.addEvent(),r.onAfterRenderPage=r.addEvent(),r.onAfterRenderQuestion=r.addEvent(),r.onAfterRenderQuestionInput=r.addEvent(),r.onAfterRenderPanel=r.addEvent(),r.onFocusInQuestion=r.addEvent(),r.onFocusInPanel=r.addEvent(),r.onShowingChoiceItem=r.addEvent(),r.onChoicesLazyLoad=r.addEvent(),r.onChoicesSearch=r.addEvent(),r.onGetChoiceDisplayValue=r.addEvent(),r.onMatrixRowAdded=r.addEvent(),r.onMatrixRowAdding=r.addEvent(),r.onMatrixBeforeRowAdded=r.onMatrixRowAdding,r.onMatrixRowRemoving=r.addEvent(),r.onMatrixRowRemoved=r.addEvent(),r.onMatrixRenderRemoveButton=r.addEvent(),r.onMatrixAllowRemoveRow=r.onMatrixRenderRemoveButton,r.onMatrixDetailPanelVisibleChanged=r.addEvent(),r.onMatrixCellCreating=r.addEvent(),r.onMatrixCellCreated=r.addEvent(),r.onAfterRenderMatrixCell=r.addEvent(),r.onMatrixAfterCellRender=r.onAfterRenderMatrixCell,r.onMatrixCellValueChanged=r.addEvent(),r.onMatrixCellValueChanging=r.addEvent(),r.onMatrixCellValidate=r.addEvent(),r.onMatrixColumnAdded=r.addEvent(),r.onMultipleTextItemAdded=r.addEvent(),r.onDynamicPanelAdded=r.addEvent(),r.onDynamicPanelRemoved=r.addEvent(),r.onDynamicPanelRemoving=r.addEvent(),r.onTimerTick=r.addEvent(),r.onTimer=r.onTimerTick,r.onTimerPanelInfoText=r.addEvent(),r.onDynamicPanelItemValueChanged=r.addEvent(),r.onGetDynamicPanelTabTitle=r.addEvent(),r.onDynamicPanelCurrentIndexChanged=r.addEvent(),r.onCheckAnswerCorrect=r.addEvent(),r.onIsAnswerCorrect=r.onCheckAnswerCorrect,r.onDragDropAllow=r.addEvent(),r.onScrollToTop=r.addEvent(),r.onScrollingElementToTop=r.onScrollToTop,r.onLocaleChangedEvent=r.addEvent(),r.onGetQuestionTitleActions=r.addEvent(),r.onGetPanelTitleActions=r.addEvent(),r.onGetPageTitleActions=r.addEvent(),r.onGetPanelFooterActions=r.addEvent(),r.onGetMatrixRowActions=r.addEvent(),r.onElementContentVisibilityChanged=r.addEvent(),r.onGetExpressionDisplayValue=r.addEvent(),r.onPopupVisibleChanged=r.addEvent(),r.onOpenDropdownMenu=r.addEvent(),r.onElementWrapperComponentName=r.addEvent(),r.onElementWrapperComponentData=r.addEvent(),r.jsonErrors=null,r.cssValue=null,r.showHeaderOnCompletePage="auto",r._isLazyRenderingSuspended=!1,r.hideRequiredErrors=!1,r.cssVariables={},r._isMobile=!1,r._isCompact=!1,r.setValueOnExpressionCounter=0,r._isDesignMode=!1,r.validationAllowSwitchPages=!1,r.validationAllowComplete=!1,r.isNavigationButtonPressed=!1,r.mouseDownPage=null,r.isCalculatingProgressText=!1,r.isSmoothScrollEnabled=!1,r.onResize=new pt,r.isCurrentPageRendering=!0,r.isCurrentPageRendered=void 0,r.skeletonHeight=void 0,r.isTriggerIsRunning=!1,r.triggerValues=null,r.triggerKeys=null,r.conditionValues=null,r.isValueChangedOnRunningCondition=!1,r.conditionRunnerCounter=0,r.conditionUpdateVisibleIndexes=!1,r.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,r.isEndLoadingFromJson=null,r.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},r.setValueFromTriggerCounter=0,r.needRenderIcons=!0,r.skippedPages=[],r.skeletonComponentName="sv-skeleton",r.taskManager=new Cc,r.questionErrorComponent="sv-question-error",r.onBeforeRunConstructor();var o=function(u){return"<h3>"+u+"</h3>"};r.createHtmlLocString("completedHtml","completingSurvey",o),r.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",o,"completed-before"),r.createHtmlLocString("loadingHtml","loadingSurvey",o,"loading"),r.createLocalizableString("emptySurveyText",r,!0,"emptySurvey"),r.createLocalizableString("logo",r,!1),r.createLocalizableString("startSurveyText",r,!1,!0),r.createLocalizableString("pagePrevText",r,!1,!0),r.createLocalizableString("pageNextText",r,!1,!0),r.createLocalizableString("completeText",r,!1,!0),r.createLocalizableString("previewText",r,!1,!0),r.createLocalizableString("editText",r,!1,!0),r.createLocalizableString("questionTitleTemplate",r,!0),r.timerModelValue=new _a(r),r.timerModelValue.onTimerTick=function(u){r.doTimer(u)},r.createNewArray("pages",function(u){u.isReadyForCleanChangedCallback&&u.isReadyForCleanChangedCallback(),r.doOnPageAdded(u)},function(u){u.isReadyForClean?r.doOnPageRemoved(u):u.isReadyForCleanChangedCallback=function(){r.doOnPageRemoved(u),u.isReadyForCleanChangedCallback=void 0}}),r.createNewArray("triggers",function(u){u.setOwner(r)}),r.createNewArray("calculatedValues",function(u){u.setOwner(r)}),r.createNewArray("completedHtmlOnCondition",function(u){u.locOwner=r}),r.createNewArray("navigateToUrlOnCondition",function(u){u.locOwner=r}),r.registerPropertyChangedHandlers(["locale"],function(){r.onSurveyLocaleChanged()}),r.registerPropertyChangedHandlers(["firstPageIsStarted"],function(){r.onFirstPageIsStartedChanged()}),r.registerPropertyChangedHandlers(["mode"],function(){r.onModeChanged()}),r.registerPropertyChangedHandlers(["progressBarType"],function(){r.updateProgressText()}),r.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],function(){r.resetVisibleIndexes()}),r.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage","isShowingPreview"],function(){r.updateState()}),r.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],function(){r.onStateAndCurrentPageChanged()}),r.registerPropertyChangedHandlers(["logo","logoPosition"],function(){r.updateHasLogo()}),r.registerPropertyChangedHandlers(["backgroundImage"],function(){r.updateRenderBackgroundImage()}),r.registerPropertyChangedHandlers(["renderBackgroundImage","backgroundOpacity","backgroundImageFit","fitToContainer","backgroundImageAttachment"],function(){r.updateBackgroundImageStyle()}),r.registerPropertyChangedHandlers(["showPrevButton","showCompleteButton"],function(){r.updateButtonsVisibility()}),r.onGetQuestionNumber.onCallbacksChanged=function(){r.resetVisibleIndexes()},r.onGetPanelNumber.onCallbacksChanged=function(){r.resetVisibleIndexes()},r.onGetProgressText.onCallbacksChanged=function(){r.updateProgressText()},r.onTextMarkdown.onCallbacksChanged=function(){r.locStrsChanged()},r.onProcessHtml.onCallbacksChanged=function(){r.locStrsChanged()},r.onGetQuestionTitle.onCallbacksChanged=function(){r.locStrsChanged()},r.onUpdatePageCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onUpdatePanelCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onUpdateQuestionCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onShowingChoiceItem.onCallbacksChanged=function(){r.rebuildQuestionChoices()},r.navigationBarValue=r.createNavigationBar(),r.navigationBar.locOwner=r,r.onBeforeCreating(),e&&((typeof e=="string"||e instanceof String)&&(e=JSON.parse(e)),e&&e.clientId&&(r.clientId=e.clientId),r.fromJSON(e),r.surveyId&&r.loadSurveyFromService(r.surveyId,r.clientId)),r.onCreating(),n&&r.render(n),r.updateCss(),r.setCalculatedWidthModeUpdater(),r.notifier=new Ba(r.css.saveData),r.notifier.addAction(r.createTryAgainAction(),"error"),r.onPopupVisibleChanged.add(function(u,d){d.visible?r.onScrollCallback=function(){d.popup.hide()}:r.onScrollCallback=void 0}),r.progressBarValue=new Ua(r),r.layoutElements.push({id:"timerpanel",template:"survey-timerpanel",component:"sv-timerpanel",data:r.timerModel}),r.layoutElements.push({id:"progress-buttons",component:"sv-progress-buttons",data:r.progressBar,processResponsiveness:function(u){return r.progressBar.processResponsiveness&&r.progressBar.processResponsiveness(u)}}),r.layoutElements.push({id:"progress-questions",component:"sv-progress-questions",data:r}),r.layoutElements.push({id:"progress-pages",component:"sv-progress-pages",data:r}),r.layoutElements.push({id:"progress-correctquestions",component:"sv-progress-correctquestions",data:r}),r.layoutElements.push({id:"progress-requiredquestions",component:"sv-progress-requiredquestions",data:r});var s=new kn(r);return r.addLayoutElement({id:"toc-navigation",component:"sv-navigation-toc",data:s,processResponsiveness:function(u){return s.updateStickyTOCSize(r.rootElement)}}),r.layoutElements.push({id:"buttons-navigation",component:"sv-action-bar",data:r.navigationBar}),r.locTitle.onStringChanged.add(function(){return r.titleIsEmpty=r.locTitle.isEmpty}),r}return Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentSuffix",{get:function(){return I.commentSuffix},set:function(e){I.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return this.commentSuffix},set:function(e){this.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sjsVersion",{get:function(){return this.getPropertyValue("sjsVersion")},set:function(e){this.setPropertyValue("sjsVersion",e)},enumerable:!1,configurable:!0}),t.prototype.processClosedPopup=function(e,n){throw new Error("Method not implemented.")},t.prototype.createTryAgainAction=function(){var e=this;return{id:"save-again",title:this.getLocalizationString("saveAgainButton"),action:function(){e.isCompleted?e.saveDataOnComplete():e.doComplete()}}},t.prototype.createHtmlLocString=function(e,n,r,o){var s=this,u=this.createLocalizableString(e,this,!1,n);u.onGetLocalizationTextCallback=r,o&&(u.onGetTextCallback=function(d){return s.processHtml(d,o)})},t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,n,r){e==="questionsOnPageMode"&&this.onQuestionsOnPageModeChanged(n)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.render=function(e){this.renderCallback&&this.renderCallback()},t.prototype.updateSurvey=function(e,n){var r=function(){if(s=="model"||s=="children")return"continue";if(s.indexOf("on")==0&&o[s]&&o[s].add){var u=e[s],d=function(y,V){u(y,V)};o[s].add(d)}else o[s]=e[s]},o=this;for(var s in e)r();e&&e.data&&this.onValueChanged.add(function(u,d){e.data[d.name]=d.value})},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=new _().append(this.css.body).append(this.css.completedPage).toString(),this.completedBeforeCss=new _().append(this.css.body).append(this.css.completedBeforePage).toString(),this.loadingBodyCss=new _().append(this.css.body).append(this.css.bodyLoading).toString()},t.prototype.updateCss=function(){this.rootCss=this.getRootCss(),this.updateNavigationCss(),this.updateCompletedPageCss(),this.updateWrapperFormCss()},Object.defineProperty(t.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,qe.getCss())),this.cssValue},set:function(e){this.setCss(e)},enumerable:!1,configurable:!0}),t.prototype.setCss=function(e,n){n===void 0&&(n=!0),n?this.mergeValues(e,this.css):this.cssValue=e,this.updateElementCss(!1)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.css.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.complete)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.preview)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.prev)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.next)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssSurveyNavigationButton",{get:function(){return new _().append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return new _().append(this.css.body).append(this.css.bodyWithTimer,this.showTimer&&this.state==="running").append(this.css.body+"--"+this.calculatedWidthMode).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyContainerCss",{get:function(){return this.css.bodyContainer},enumerable:!1,configurable:!0}),t.prototype.insertAdvancedHeader=function(e){e.survey=this,this.layoutElements.push({id:"advanced-header",container:"header",component:"sv-header",index:-100,data:e,processResponsiveness:function(n){return e.processResponsiveness(n)}})},t.prototype.getNavigationCss=function(e,n){return new _().append(e).append(n).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return this.lazyRenderingValue===!0},set:function(e){if(this.lazyRendering!==e){this.lazyRenderingValue=e;var n=this.currentPage;n&&n.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||I.lazyRender.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lazyRenderingFirstBatchSize",{get:function(){return this.lazyRenderingFirstBatchSizeValue||I.lazyRender.firstBatchSize},set:function(e){this.lazyRenderingFirstBatchSizeValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRenderingSuspended",{get:function(){return this._isLazyRenderingSuspended},enumerable:!1,configurable:!0}),t.prototype.suspendLazyRendering=function(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!0)},t.prototype.releaseLazyRendering=function(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!1)},t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&lr(e.id)}},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext")},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving")},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic")},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError")},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){(e===!0||e===void 0)&&(e="bottom"),e===!1&&(e="none"),this.setPropertyValue("showNavigationButtons",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton")},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompleteButton",{get:function(){return this.getPropertyValue("showCompleteButton",!0)},set:function(e){this.setPropertyValue("showCompleteButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTOC",{get:function(){return this.getPropertyValue("showTOC")},set:function(e){this.setPropertyValue("showTOC",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tocLocation",{get:function(){return this.getPropertyValue("tocLocation")},set:function(e){this.setPropertyValue("tocLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles")},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage")},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),n=e?e.url:this.navigateToUrl;return n&&(n=this.processText(n,!1)),n},t.prototype.navigateTo=function(){var e=this.getNavigateToUrl(),n={url:e,allow:!0};this.onNavigateToUrl.fire(this,n),!(!n.url||!n.allow)&&Qi(n.url)},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!1,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,n){this.makeRequiredErrorsInvisible(n),this.onSettingQuestionErrors.fire(this,{question:e,errors:n})},t.prototype.beforeSettingPanelErrors=function(e,n){this.makeRequiredErrorsInvisible(n)},t.prototype.makeRequiredErrorsInvisible=function(e){if(this.hideRequiredErrors)for(var n=0;n<e.length;n++){var r=e[n].getErrorType();(r=="required"||r=="requireoneanswer")&&(e[n].visible=!1)}},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength")},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength")},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic")},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic")},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validateVisitedEmptyFields",{get:function(){return this.getPropertyValue("validateVisitedEmptyFields")},set:function(e){this.setPropertyValue("validateVisitedEmptyFields",e)},enumerable:!1,configurable:!0}),t.prototype.getValidateVisitedEmptyFields=function(){return this.validateVisitedEmptyFields&&this.isValidateOnValueChange},Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.getPropertyValue("autoGrowComment")},set:function(e){this.setPropertyValue("autoGrowComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.getPropertyValue("allowResizeComment")},set:function(e){this.setPropertyValue("allowResizeComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentAreaRows",{get:function(){return this.getPropertyValue("commentAreaRows")},set:function(e){this.setPropertyValue("commentAreaRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){e===!0&&(e="onComplete"),e===!1&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){e===void 0&&(e=!1);for(var n=0;n<this.pages.length;n++)this.pages[n].clearIncorrectValues();if(e){var r=this.data,o=!1;for(var s in r)if(!this.getQuestionByValueName(s)&&!(this.iscorrectValueWithPostPrefix(s,I.commentSuffix)||this.iscorrectValueWithPostPrefix(s,I.matrix.totalsSuffix))){var u=this.getCalculatedValueByName(s);u&&u.includeIntoResult||(o=!0,delete r[s])}o&&(this.data=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,n){return e.indexOf(n)!==e.length-n.length?!1:!!this.getQuestionByValueName(e.substring(0,e.indexOf(n)))},Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues")},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this.getPropertyValueWithoutDefault("locale")||A.currentLocale},set:function(e){e===A.defaultLocale&&!A.currentLocale&&(e=""),this.setPropertyValue("locale",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLocaleChanged=function(){this.notifyElementsOnAnyValueOrVariableChanged("locale"),this.localeChanged(),this.onLocaleChangedEvent.fire(this,this.locale)},Object.defineProperty(t.prototype,"localeDir",{get:function(){return A.localeDirections[this.locale]},enumerable:!1,configurable:!0}),t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var n=e.indexOf("default");if(n>-1){var r=A.defaultLocale,o=e.indexOf(r);o>-1&&e.splice(o,1),n=e.indexOf("default"),e[n]=r}return e},t.prototype.localeChanged=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].localeChanged()},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){if(!this.isClearingUnsedValues&&(i.prototype.locStrsChanged.call(this),!!this.currentPage)){if(this.isDesignMode)this.pages.forEach(function(o){return o.locStrsChanged()});else{var e=this.activePage;e&&e.locStrsChanged();for(var n=this.visiblePages,r=0;r<n.length;r++)n[r].navigationLocStrChanged()}this.isShowStartingPage||this.updateProgressText(),this.navigationBar.locStrsChanged()}},t.prototype.getMarkdownHtml=function(e,n){return this.getSurveyMarkdownHtml(this,e,n)},t.prototype.getRenderer=function(e){return this.getRendererForString(this,e)},t.prototype.getRendererContext=function(e){return this.getRendererContextForString(this,e)},t.prototype.getRendererForString=function(e,n){var r=this.getBuiltInRendererForString(e,n);r=this.elementWrapperComponentNameCore(r,e,"string",n);var o={element:e,name:n,renderAs:r};return this.onTextRenderAs.fire(this,o),o.renderAs},t.prototype.getRendererContextForString=function(e,n){return this.elementWrapperDataCore(n,e,"string")},t.prototype.getExpressionDisplayValue=function(e,n,r){var o={question:e,value:n,displayValue:r};return this.onGetExpressionDisplayValue.fire(this,o),o.displayValue},t.prototype.getBuiltInRendererForString=function(e,n){if(this.isDesignMode)return gt.editableRenderer},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return this.getLocalizationString(e)},t.prototype.getErrorCustomText=function(e,n){return this.getSurveyErrorCustomText(this,e,n)},t.prototype.getSurveyErrorCustomText=function(e,n,r){var o={text:n,name:r.getErrorType(),obj:e,error:r};return this.onErrorCustomText.fire(this,o),o.text},t.prototype.getQuestionDisplayValue=function(e,n){var r={question:e,displayValue:n};return this.onGetQuestionDisplayValue.fire(this,r),r.displayValue},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocalizableStringText("emptySurveyText")},set:function(e){this.setLocalizableStringText("emptySurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){return this.getPropertyValue("logoWidth")},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoWidth",{get:function(){return this.logoWidth?Et(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoWidth",{get:function(){return this.logoWidth?pr(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){return this.getPropertyValue("logoHeight")},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoHeight",{get:function(){return this.logoHeight?Et(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoHeight",{get:function(){return this.logoHeight?pr(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return this.getPropertyValue("hasLogo",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasLogo=function(){this.setPropertyValue("hasLogo",!!this.logo&&this.logoPosition!=="none")},Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return this.isDesignMode?!1:this.renderedHasLogo&&(this.logoPosition==="left"||this.logoPosition==="top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&(this.logoPosition==="right"||this.logoPosition==="bottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){var e={left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"};return new _().append(this.css.logo).append(e[this.logoPosition]).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasTitle",{get:function(){return this.isDesignMode?this.isPropertyVisible("title"):!this.titleIsEmpty&&this.showTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasDescription",{get:function(){return this.isDesignMode?this.isPropertyVisible("description"):!!this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.renderedHasTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasLogo",{get:function(){return this.isDesignMode?this.isPropertyVisible("logo"):this.hasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasHeader",{get:function(){return this.renderedHasTitle||this.renderedHasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"themeVariables",{get:function(){return Object.assign({},this.cssVariables)},enumerable:!1,configurable:!0}),t.prototype.setIsMobile=function(e){e===void 0&&(e=!0),this._isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().forEach(function(n){return n.setIsMobile(e)}))},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this._isMobile&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompact",{get:function(){return this._isCompact},set:function(e){e!==this._isCompact&&(this._isCompact=e,this.updateElementCss(),this.triggerResponsiveness(!0))},enumerable:!1,configurable:!0}),t.prototype.isLogoImageChoosen=function(){return this.locLogo.renderedHtml},Object.defineProperty(t.prototype,"titleMaxWidth",{get:function(){if(!(an()||this.isMobile)&&!this.isValueEmpty(this.isLogoImageChoosen())&&!I.supportCreatorV2){var e=this.logoWidth;if(this.logoPosition==="left"||this.logoPosition==="right")return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),t.prototype.updateRenderBackgroundImage=function(){var e=this.backgroundImage;this.renderBackgroundImage=zr(e)},Object.defineProperty(t.prototype,"backgroundOpacity",{get:function(){return this.getPropertyValue("backgroundOpacity")},set:function(e){this.setPropertyValue("backgroundOpacity",e)},enumerable:!1,configurable:!0}),t.prototype.updateBackgroundImageStyle=function(){this.backgroundImageStyle={opacity:this.backgroundOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.backgroundImageFit,backgroundAttachment:this.fitToContainer?void 0:this.backgroundImageAttachment}},t.prototype.updateWrapperFormCss=function(){this.wrapperFormCss=new _().append(this.css.rootWrapper).append(this.css.rootWrapperHasImage,!!this.backgroundImage).append(this.css.rootWrapperFixed,!!this.backgroundImage&&this.backgroundImageAttachment==="fixed").toString()},Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.runExpression=function(e,n){if(!e)return null;var r=this.getFilteredValues(),o=this.getFilteredProperties(),s=new jt(e),u=void 0;return s.onRunComplete=function(d){u=d,n&&n(d)},s.run(r,o)||u},Object.defineProperty(t.prototype,"isSettingValueOnExpression",{get:function(){return this.setValueOnExpressionCounter>0},enumerable:!1,configurable:!0}),t.prototype.startSetValueOnExpression=function(){this.setValueOnExpressionCounter++},t.prototype.finishSetValueOnExpression=function(){this.setValueOnExpressionCounter--},t.prototype.runCondition=function(e){if(!e)return!1;var n=this.getFilteredValues(),r=this.getFilteredProperties();return new Ue(e).run(n,r)},t.prototype.runTriggers=function(){this.checkTriggers(this.getFilteredValues(),!1)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml},enumerable:!1,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(e.length==0)return null;for(var n=this.getFilteredValues(),r=this.getFilteredProperties(),o=0;o<e.length;o++)if(e[o].runCondition(n,r))return e[o];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultLoadingHtml",{get:function(){return"<h3>"+this.getLocalizationString("loadingSurvey")+"</h3>"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationBar",{get:function(){return this.navigationBarValue},enumerable:!1,configurable:!0}),t.prototype.addNavigationItem=function(e){return e.component||(e.component="sv-nav-btn"),e.innerCss||(e.innerCss=this.cssSurveyNavigationButton),this.navigationBar.addAction(e)},Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText")},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText")},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText")},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText")},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText")},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText")},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!1,configurable:!0}),t.prototype.getElementTitleTagName=function(e,n){if(this.onGetTitleTagName.isEmpty)return n;var r={element:e,tagName:n};return this.onGetTitleTagName.fire(this,r),r.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){e!=="numRequireTitle"&&e!=="requireNumTitle"&&e!="numTitle"&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,n=this.getLocalizationString("questionTitlePatternText"),r=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:r+" "+n+" "+this.requiredText}),e.push({value:"numRequireTitle",text:r+" "+this.requiredText+" "+n}),e.push({value:"numTitle",text:r+" "+n}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!1,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var n=[];e.indexOf("{")>-1;){e=e.substring(e.indexOf("{")+1);var r=e.indexOf("}");if(r<0)break;n.push(e.substring(0,r)),e=e.substring(r+1)}if(n.length>1){if(n[0]=="require")return"requireNumTitle";if(n[1]=="require"&&n.length==3)return"numRequireTitle";if(n.indexOf("require")<0)return"numTitle"}if(n.length==1&&n[0]=="title")return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,n,r,o){if(n="{"+n+"}",!e||e.indexOf(n)<0)return r;for(var s=e.indexOf(n),u="",d="",y=s-1;y>=0&&e[y]!="}";y--);for(y<s-1&&(u=e.substring(y+1,s)),s+=n.length,y=s;y<e.length&&e[y]!="{";y++);for(y>s&&(d=e.substring(s,y)),y=0;y<u.length&&u.charCodeAt(y)<33;)y++;for(u=u.substring(y),y=d.length-1;y>=0&&d.charCodeAt(y)<33;)y--;if(d=d.substring(0,y+1),!u&&!d)return r;var V=r||o;return u+V+d},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,n){if(this.onGetQuestionTitle.isEmpty)return n;var r={question:e,title:n};return this.onGetQuestionTitle.fire(this,r),r.title},t.prototype.getUpdatedQuestionNo=function(e,n){if(this.onGetQuestionNumber.isEmpty)return n;var r={question:e,number:n,no:n};return this.onGetQuestionNumber.fire(this,r),r.no===n?r.number:r.no},t.prototype.getUpdatedPanelNo=function(e,n){if(this.onGetPanelNumber.isEmpty)return n;var r={panel:e,number:n};return this.onGetPanelNumber.fire(this,r),r.number},t.prototype.getUpdatedPageNo=function(e,n){if(this.onGetPageNumber.isEmpty)return n;var r={page:e,number:n};return this.onGetPageNumber.fire(this,r),r.number},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers")},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){e===!0&&(e="on"),e===!1&&(e="off"),e=e.toLowerCase(),e=e==="onpage"?"onPage":e,e!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBar",{get:function(){return this.progressBarValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){e==="correctquestion"&&(e="correctQuestion"),e==="requiredquestion"&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarComponentName",{get:function(){var e=this.progressBarType;return!I.legacyProgressBarView&&qe.currentType==="defaultV2"&&hn(e,"pages")&&(e="buttons"),"progress-"+e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return this.canShowProresBar()?["auto","aboveheader","belowheader","topbottom","top","both"].indexOf(this.showProgressBar)!==-1:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return this.canShowProresBar()?this.showProgressBar==="bottom"||this.showProgressBar==="both"||this.showProgressBar==="topbottom":!1},enumerable:!1,configurable:!0}),t.prototype.getProgressTypeComponent=function(){return"sv-progress-"+this.progressBarType.toLowerCase()},t.prototype.getProgressCssClasses=function(e){return e===void 0&&(e=""),new _().append(this.css.progress).append(this.css.progressTop,this.isShowProgressBarOnTop&&(!e||e=="header")).append(this.css.progressBottom,this.isShowProgressBarOnBottom&&(!e||e=="footer")).toString()},t.prototype.canShowProresBar=function(){return!this.isShowingPreview||this.showPreviewBeforeComplete!="showAllQuestions"},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(!0)},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.startedPage&&this.startedPage.updateElementCss(e);for(var n=this.visiblePages,r=0;r<n.length;r++)n[r].updateElementCss(e);this.updateCss()},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){e=e.toLowerCase(),e!=this.mode&&(e!="edit"&&e!="display"||this.setPropertyValue("mode",e))},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var n=this.pages[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},n=this.getValuesKeys(),r=0;r<n.length;r++){var o=n[r],s=this.getDataValueCore(this.valuesHash,o);s!==void 0&&(e[o]=s)}return this.setCalculatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e,!e)},enumerable:!1,configurable:!0}),t.prototype.mergeData=function(e){if(e){var n=this.data;this.mergeValues(e,n),this.setDataCore(n)}},t.prototype.setDataCore=function(e,n){if(n===void 0&&(n=!1),n&&(this.valuesHash={}),e)for(var r in e){var o=typeof r=="string"?r.trim():r;this.setDataValueCore(this.valuesHash,o,e[r])}this.updateAllQuestionsValue(n),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions(),this.updateAllQuestionsValue(n)},Object.defineProperty(t.prototype,"isSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getData=function(e){var n=e||{includePages:!1,includePanels:!1};return!n.includePages&&!n.includePanels?this.data:this.getStructuredData(!!n.includePages,n.includePanels?-1:n.includePages?1:0)},t.prototype.getStructuredData=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=-1),n===0)return this.data;var r={};return this.pages.forEach(function(o){if(e){var s={};o.collectValues(s,n-1)&&(r[o.name]=s)}else o.collectValues(r,n)}),r},t.prototype.setStructuredData=function(e,n){if(n===void 0&&(n=!1),!!e){var r={};for(var o in e){var s=this.getQuestionByValueName(o);if(s)r[o]=e[o];else{var u=this.getPageByName(o);u||(u=this.getPanelByName(o)),u&&this.collectDataFromPanel(u,r,e[o])}}n?this.mergeData(r):this.data=r}},t.prototype.collectDataFromPanel=function(e,n,r){for(var o in r){var s=e.getElementByName(o);s&&(s.isPanel?this.collectDataFromPanel(s,n,r[o]):n[o]=r[o])}},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var n=this;if(this.editingObj!=e&&(this.unConnectEditingObj(),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var r=this.getAllQuestions(),o=0;o<r.length;o++)r[o].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(s,u){j.hasOriginalProperty(n.editingObj,u.name)&&(u.name==="locale"&&n.setDataCore({}),n.updateOnSetValue(u.name,n.editingObj[u.name],u.oldValue))},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!1,configurable:!0}),t.prototype.unConnectEditingObj=function(){this.editingObj&&!this.editingObj.isDisposed&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged)},Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalculatedValuesIntoResult=function(e){for(var n=0;n<this.calculatedValues.length;n++){var r=this.calculatedValues[n];r.includeIntoResult&&r.name&&this.getVariable(r.name)!==void 0&&(e[r.name]=this.getVariable(r.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){e||(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});var n=[],r=[];if(this.getAllQuestions().forEach(function(y){var V=y.getPlainData(e);V&&(n.push(V),r.push(y.valueName||y.name))}),e.includeValues)for(var o=this.getValuesKeys(),s=0;s<o.length;s++){var u=o[s];if(r.indexOf(u)==-1){var d=this.getDataValueCore(this.valuesHash,u);d&&n.push({name:u,title:u,value:d,displayValue:d,isNode:!1,getString:function(y){return typeof y=="object"?JSON.stringify(y):y}})}}return n},t.prototype.getFilteredValues=function(){var e={};for(var n in this.variablesHash)e[n]=this.variablesHash[n];if(this.addCalculatedValuesIntoFilteredValues(e),!this.isDesignMode){for(var r=this.getValuesKeys(),o=0;o<r.length;o++){var n=r[o];e[n]=this.getDataValueCore(this.valuesHash,n)}this.getAllQuestions().forEach(function(s){s.hasFilteredValue&&(e[s.getFilteredName()]=s.getFilteredValue())})}return e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var n=this.calculatedValues,r=0;r<n.length;r++)e[n[r].name]=n[r].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=j.getPropertiesByObj(this.editingObj),n=[],r=0;r<e.length;r++)n.push(e[r].name);return n},t.prototype.getDataValueCore=function(e,n){return this.editingObj?j.getObjPropertyValue(this.editingObj,n):this.getDataFromValueHash(e,n)},t.prototype.setDataValueCore=function(e,n,r){this.editingObj?j.setObjPropertyValue(this.editingObj,n,r):this.setDataToValueHash(e,n,r)},t.prototype.deleteDataValueCore=function(e,n){this.editingObj?this.editingObj[n]=null:this.deleteDataFromValueHash(e,n)},t.prototype.getDataFromValueHash=function(e,n){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,n):e[n]},t.prototype.setDataToValueHash=function(e,n,r){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,n,r):e[n]=r},t.prototype.deleteDataFromValueHash=function(e,n){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,n):delete e[n]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},n=this.getValuesKeys(),r=0;r<n.length;r++){var o=n[r];o.indexOf(this.commentSuffix)>0&&(e[o]=this.getDataValueCore(this.valuesHash,o))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;if(this.pageContainerValue&&(this.isShowingPreview||this.isSinglePage))return[this.pageContainerValue];for(var e=new Array,n=0;n<this.pages.length;n++)this.isPageInVisibleList(this.pages[n])&&e.push(this.pages[n]);return e},enumerable:!1,configurable:!0}),t.prototype.isPageInVisibleList=function(e){return this.isDesignMode||e.isVisible&&!e.isStartPage},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.pages.length==0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>1?this.pages[0]:null;return e&&(e.onFirstRendering(),e.setWasShown(!0)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.getPropertyValue("currentPage",null)},set:function(e){if(!this.isLoadingFromJson){var n=this.getPageByObject(e);if(!(e&&!n)&&!(!n&&this.isCurrentPageAvailable)){var r=this.visiblePages;if(!(n!=null&&r.indexOf(n)<0)&&n!=this.currentPage){var o=this.currentPage;!this.isShowingPreview&&!this.currentPageChanging(n,o)||(this.setPropertyValue("currentPage",n),n&&(n.onFirstRendering(),n.updateCustomWidgets(),n.setWasShown(!0)),this.locStrsChanged(),this.isShowingPreview||this.currentPageChanged(n,o))}}}},enumerable:!1,configurable:!0}),t.prototype.tryNavigateToPage=function(e){if(!this.performValidationOnPageChanging(e))return!1;var n=this.visiblePages.indexOf(e),r=n<this.currentPageNo||!this.doServerValidation(!1,!1,e);return r&&(this.currentPage=e),r},t.prototype.performValidationOnPageChanging=function(e){if(this.isDesignMode)return!1;var n=this.visiblePages.indexOf(e);if(n<0||n>=this.visiblePageCount||n===this.currentPageNo)return!1;if(n<this.currentPageNo||this.checkErrorsMode==="onComplete"||this.validationAllowSwitchPages)return!0;if(!this.validateCurrentPage())return!1;for(var r=this.currentPageNo+1;r<n;r++){var o=this.visiblePages[r];if(!o.validate(!0,!0))return!1;o.passed=!0}return!0},t.prototype.updateCurrentPage=function(){this.isCurrentPageAvailable||(this.currentPage=this.firstVisiblePage)},Object.defineProperty(t.prototype,"isCurrentPageAvailable",{get:function(){var e=this.currentPage;return!!e&&this.isPageInVisibleList(e)&&this.isPageExistsInSurvey(e)},enumerable:!1,configurable:!0}),t.prototype.isPageExistsInSurvey=function(e){return this.pages.indexOf(e)>-1?!0:!!this.onContainsPageCallback&&this.onContainsPageCallback(e)},Object.defineProperty(t.prototype,"activePage",{get:function(){return this.getPropertyValue("activePage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowStartingPage",{get:function(){return this.state==="starting"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"matrixDragHandleArea",{get:function(){return this.getPropertyValue("matrixDragHandleArea","entireItem")},set:function(e){this.setPropertyValue("matrixDragHandleArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPage",{get:function(){return this.state=="running"||this.state=="preview"||this.isShowStartingPage},enumerable:!1,configurable:!0}),t.prototype.updateActivePage=function(){var e=this.isShowStartingPage?this.startedPage:this.currentPage;e!==this.activePage&&this.setPropertyValue("activePage",e)},t.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&e.getType()=="page")return e;if(typeof e=="string"||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var n=Number(e),r=this.visiblePages;return e<0||e>=r.length?null:r[n]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var n=this.visiblePages;e<0||e>=n.length||(this.currentPage=n[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.focusFirstQuestion=function(){if(!this.focusingQuestionInfo){var e=this.activePage;e&&(e.scrollToTop(),e.focusFirstQuestion())}},t.prototype.scrollToTopOnPageChange=function(e){e===void 0&&(e=!0);var n=this.activePage;n&&(e&&n.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.focusingQuestionInfo&&(n.focusFirstQuestion(),this.isCurrentPageRendering=!1))},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state","empty")},enumerable:!1,configurable:!0}),t.prototype.updateState=function(){this.setPropertyValue("state",this.calcState())},t.prototype.calcState=function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.getPropertyValue("completedState","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.getPropertyValue("completedStateText","")},enumerable:!1,configurable:!0}),t.prototype.setCompletedState=function(e,n){this.setPropertyValue("completedState",e),n||(e=="saving"&&(n=this.getLocalizationString("savingData")),e=="error"&&(n=this.getLocalizationString("savingDataError")),e=="success"&&(n=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",n),this.state==="completed"&&this.showCompletedPage&&this.completedState&&this.notify(this.completedStateText,this.completedState,e==="error")},t.prototype.notify=function(e,n,r){r===void 0&&(r=!1),this.notifier.showActions=r,this.notifier.notify(e,n,r)},t.prototype.clear=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=!0),this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.completedByTriggers=void 0,e&&this.setDataCore(null,!0),this.timerModel.spent=0;for(var r=0;r<this.pages.length;r++)this.pages[r].timeSpent=0,this.pages[r].setWasShown(!1),this.pages[r].passed=!1;if(this.onFirstPageIsStartedChanged(),n&&(this.currentPage=this.firstVisiblePage,this.currentSingleQuestion)){var o=this.getAllQuestions(!0);this.currentSingleQuestion=o.length>0?o[0]:void 0}e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,n){ln(e,n)},t.prototype.updateValuesWithDefaults=function(){if(!(this.isDesignMode||this.isLoading))for(var e=0;e<this.pages.length;e++)for(var n=this.pages[e].questions,r=0;r<n.length;r++)n[r].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,n){var r=this.createPageChangeEventOptions(e,n);r.allow=!0,r.allowChanging=!0,this.onCurrentPageChanging.fire(this,r);var o=r.allowChanging&&r.allow;return o&&(this.isCurrentPageRendering=!0),o},t.prototype.currentPageChanged=function(e,n){this.notifyQuestionsOnHidingContent(n);var r=this.createPageChangeEventOptions(e,n);n&&!n.isDisposed&&!n.passed&&n.validate(!1)&&(n.passed=!0),this.isCurrentPageRendered===!0&&(this.isCurrentPageRendered=!1),this.onCurrentPageChanged.fire(this,r)},t.prototype.notifyQuestionsOnHidingContent=function(e){e&&!e.isDisposed&&e.questions.forEach(function(n){return n.onHidingContent()})},t.prototype.createPageChangeEventOptions=function(e,n){var r=e&&n?e.visibleIndex-n.visibleIndex:0;return{oldCurrentPage:n,newCurrentPage:e,isNextPage:r===1,isPrevPage:r===-1,isGoingForward:r>0,isGoingBackward:r<0,isAfterPreview:this.changeCurrentPageFromPreview===!0}},t.prototype.getProgress=function(){if(this.currentPage==null)return 0;if(this.progressBarType!=="pages"){var e=this.getProgressInfo();return this.progressBarType==="requiredQuestions"?e.requiredQuestionCount>=1?Math.ceil(e.requiredAnsweredQuestionCount*100/e.requiredQuestionCount):100:e.questionCount>=1?Math.ceil(e.answeredQuestionCount*100/e.questionCount):100}var n=this.visiblePages,r=n.indexOf(this.currentPage);return Math.ceil(r*100/n.length)},Object.defineProperty(t.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.activePage;return e?e.navigationButtonsVisibility==="show"?this.showNavigationButtons==="none"?"bottom":this.showNavigationButtons:e.navigationButtonsVisibility==="hide"?"none":this.showNavigationButtons:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnTop",{get:function(){return this.getIsNavigationButtonsShowingOn("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnBottom",{get:function(){return this.getIsNavigationButtonsShowingOn("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsNavigationButtonsShowingOn=function(e){var n=this.isNavigationButtonsShowing;return n=="both"||n==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return this.mode=="edit"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.mode=="display"&&!this.isDesignMode||this.state=="preview"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return this.textUpdateMode=="onTyping"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!1,configurable:!0}),t.prototype.setDesignMode=function(e){!!this._isDesignMode!=!!e&&(this._isDesignMode=!!e,this.onQuestionsOnPageModeChanged("standard"))},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var n=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),!this.isLoadingFromJson&&(this.runConditions(),this.updateAllElementsVisibility(n))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var n=0;n<this.pages.length;n++){var r=this.pages[n];r.updateElementVisibility(),e.indexOf(r)>-1!=r.isVisible&&this.onPageVisibleChanged.fire(this,{page:r,visible:r.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&this.showPreviewBeforeComplete=="showAnsweredQuestions"&&this.isAnyQuestionAnswered},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAnyQuestionAnswered",{get:function(){for(var e=this.getAllQuestions(!0),n=0;n<e.length;n++)if(!e[n].isEmpty())return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName)return!1;var e=R.getCookie();return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&R.setCookie(this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&R.setCookie(this.cookieName+"=;")},Object.defineProperty(t.prototype,"ignoreValidation",{get:function(){return!this.validationEnabled},set:function(e){this.validationEnabled=!e},enumerable:!1,configurable:!0}),t.prototype.nextPage=function(){return this.isLastPage?!1:this.doCurrentPageComplete(!1)},t.prototype.performNext=function(){var e=this.currentSingleQuestion;if(!e)return this.nextPage();if(!e.validate(!0))return!1;var n=this.getAllQuestions(!0),r=n.indexOf(e);return r<0||r===n.length-1?!1:(this.currentSingleQuestion=n[r+1],!0)},t.prototype.performPrevious=function(){var e=this.currentSingleQuestion;if(!e)return this.prevPage();var n=this.getAllQuestions(!0),r=n.indexOf(e);return r===0?!1:(this.currentSingleQuestion=n[r-1],!0)},t.prototype.hasErrorsOnNavigate=function(e){var n=this;if(!this.isEditMode||this.ignoreValidation)return!1;var r=e&&this.validationAllowComplete||!e&&this.validationAllowSwitchPages,o=function(s){(!s||r)&&n.doCurrentPageCompleteCore(e)};return this.isValidateOnComplete?this.isLastPage?this.validate(!0,this.focusOnFirstError,o,!0)!==!0&&!r:!1:this.validateCurrentPage(o)!==!0&&!r},t.prototype.checkForAsyncQuestionValidation=function(e,n){var r=this;this.clearAsyncValidationQuesitons();for(var o=function(){if(e[u].isRunningValidators){var d=e[u];d.onCompletedAsyncValidators=function(y){r.onCompletedAsyncQuestionValidators(d,n,y)},s.asyncValidationQuesitons.push(e[u])}},s=this,u=0;u<e.length;u++)o();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,n=0;n<e.length;n++)e[n].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,n,r){if(r){if(this.clearAsyncValidationQuesitons(),n(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var o=this.currentPage.questions,s=0;s<o.length;s++)if(o[s]!==e&&o[s].errors.length>0)return;e.focus(!0)}return}for(var u=this.asyncValidationQuesitons,d=0;d<u.length;d++)if(u[d].isRunningValidators)return;n(!1)},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCurrentPageValid",{get:function(){return!this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),t.prototype.hasCurrentPageErrors=function(e){return this.hasPageErrors(void 0,e)},t.prototype.validateCurrentPage=function(e){return this.validatePage(void 0,e)},t.prototype.hasPageErrors=function(e,n){var r=this.validatePage(e,n);return r===void 0?r:!r},t.prototype.validatePage=function(e,n){return e||(e=this.activePage),e?this.checkIsPageHasErrors(e)?!1:n&&this.checkForAsyncQuestionValidation(e.questions,function(r){return n(r)})?void 0:!0:!0},t.prototype.hasErrors=function(e,n,r){e===void 0&&(e=!0),n===void 0&&(n=!1);var o=this.validate(e,n,r);return o===void 0?o:!o},t.prototype.validate=function(e,n,r,o){e===void 0&&(e=!0),n===void 0&&(n=!1),r&&(e=!0);for(var s=this.visiblePages,u=!0,d={fireCallback:e,focusOnFirstError:n,firstErrorQuestion:null,result:!1},y=0;y<s.length;y++)s[y].validate(e,n,d)||(u=!1);return d.firstErrorQuestion&&(n||o)&&(n?d.firstErrorQuestion.focus(!0):this.currentPage=d.firstErrorQuestion.page),!u||!r?u:this.checkForAsyncQuestionValidation(this.getAllQuestions(),function(V){return r(V)})?void 0:!0},t.prototype.ensureUniqueNames=function(e){if(e===void 0&&(e=null),e==null)for(var n=0;n<this.pages.length;n++)this.ensureUniqueName(this.pages[n]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var n=e.elements,r=0;r<n.length;r++)this.ensureUniqueNames(n[r]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getPageByName(r)})},t.prototype.ensureUniquePanelName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getPanelByName(r)})},t.prototype.ensureUniqueQuestionName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getQuestionByName(r)})},t.prototype.ensureUniqueElementName=function(e,n){var r=n(e.name);if(!(!r||r==e)){for(var o=this.getNewName(e.name);n(o);)var o=this.getNewName(e.name);e.name=o}},t.prototype.getNewName=function(e){for(var n=e.length;n>0&&e[n-1]>="0"&&e[n-1]<="9";)n--;var r=e.substring(0,n),o=0;return n<e.length&&(o=parseInt(e.substring(n))),o++,r+o},t.prototype.checkIsCurrentPageHasErrors=function(e){return e===void 0&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,n){if(n===void 0&&(n=void 0),n===void 0&&(n=this.focusOnFirstError),!e)return!0;var r=!1;return this.currentSingleQuestion?r=!this.currentSingleQuestion.validate(!0):r=!e.validate(!0,n),this.fireValidatedErrorsOnPage(e),r},t.prototype.fireValidatedErrorsOnPage=function(e){if(!(this.onValidatedErrorsOnCurrentPage.isEmpty||!e)){for(var n=e.questions,r=new Array,o=new Array,s=0;s<n.length;s++){var u=n[s];if(u.errors.length>0){r.push(u);for(var d=0;d<u.errors.length;d++)o.push(u.errors[d])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:r,errors:o,page:e})}},t.prototype.prevPage=function(){var e=this;if(this.isFirstPage||this.state==="starting")return!1;this.resetNavigationButton();var n=this.skippedPages.find(function(s){return s.to==e.currentPage});if(n)this.currentPage=n.from,this.skippedPages.splice(this.skippedPages.indexOf(n),1);else{var r=this.visiblePages,o=r.indexOf(this.currentPage);this.currentPage=r[o-1]}return!0},t.prototype.tryComplete=function(){this.isValidateOnComplete&&this.cancelPreview();var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.completeLastPage=function(){return this.tryComplete()},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.nextPageUIClick=function(){return this.mouseDownPage&&this.mouseDownPage!==this.activePage?!1:(this.mouseDownPage=null,this.performNext())},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()},t.prototype.showPreview=function(){return this.resetNavigationButton(),!this.isValidateOnComplete&&(this.hasErrorsOnNavigate(!0)||this.doServerValidation(!0,!0))?!1:(this.showPreviewCore(),!0)},t.prototype.showPreviewCore=function(){var e={allowShowPreview:!0,allow:!0};this.onShowingPreview.fire(this,e),this.isShowingPreview=e.allowShowPreview&&e.allow},t.prototype.cancelPreview=function(e){e===void 0&&(e=null),this.isShowingPreview&&(this.gotoPageFromPreview=e,this.isShowingPreview=!1)},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e)},t.prototype.doCurrentPageComplete=function(e){return this.isValidatingOnServer||(this.resetNavigationButton(),this.hasErrorsOnNavigate(e))?!1:this.doCurrentPageCompleteCore(e)},t.prototype.doCurrentPageCompleteCore=function(e){return this.doServerValidation(e)?!1:e?(this.currentPage.passed=!0,this.doComplete(this.canBeCompletedByTrigger,this.completedTrigger)):(this.doNextPage(),!0)},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return this.questionsOnPageMode=="singlePage"},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSingleVisibleQuestion",{get:function(){return this.isSingleVisibleQuestionVal(this.questionsOnPageMode)},enumerable:!1,configurable:!0}),t.prototype.isSingleVisibleQuestionVal=function(e){return e==="questionPerPage"||e==="questionOnPage"},Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted")},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!1,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>1&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return e=="showAllQuestions"||e=="showAnsweredQuestions"},enumerable:!1,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){this.isStartedState=this.firstPageIsStarted&&this.pages.length>1,this.pageVisibilityChanged(this.pages[0],!this.isStartedState)},t.prototype.onShowingPreviewChanged=function(){this.updatePagesContainer()},t.prototype.createRootPage=function(e,n){var r=j.createClass("page");return r.name=e,r.isPageContainer=!0,n.forEach(function(o){o.isStartPage||r.addElement(o)}),r},t.prototype.disposeContainerPage=function(){var e=this.pageContainerValue,n=[].concat(e.elements);n.forEach(function(r){return e.removeElement(r)}),e.dispose(),this.pageContainerValue=void 0},t.prototype.updatePagesContainer=function(){if(!this.isDesignMode){this.getAllQuestions().forEach(function(u){return u.updateElementVisibility()}),this.setPropertyValue("currentPage",void 0);var e="single-page",n="preview-page",r=void 0;if(this.isSinglePage){var o=this.pageContainerValue;o&&o.name===n?(r=o.elements[0],this.disposeContainerPage()):r=this.createRootPage(e,this.pages)}if(this.isShowingPreview&&(r=this.createRootPage(n,r?[r]:this.pages)),r&&(r.setSurveyImpl(this),this.pageContainerValue=r,this.currentPage=r),!this.isSinglePage&&!this.isShowingPreview){this.disposeContainerPage();var s=this.gotoPageFromPreview;this.gotoPageFromPreview=null,h.isValueEmpty(s)&&this.visiblePageCount>0&&(s=this.visiblePages[this.visiblePageCount-1]),s&&(this.changeCurrentPageFromPreview=!0,this.currentPage=s,this.changeCurrentPageFromPreview=!1)}!this.currentPage&&this.visiblePageCount>0&&(this.currentPage=this.visiblePages[0]),this.pages.forEach(function(u){u.hasShown&&u.updateElementCss(!0)}),this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"currentSingleQuestion",{get:function(){return this.currentSingleQuestionValue},set:function(e){if(e!==this.currentSingleQuestion)if(this.currentSingleQuestionValue=e,e){var n=e.page;n.updateRows(),n!==this.currentPage?this.currentPage=n:this.focusFirstQuestionAutomatic&&e.focus(),this.updateButtonsVisibility()}else this.visiblePages.forEach(function(r){return r.updateRows()})},enumerable:!1,configurable:!0}),t.prototype.onQuestionsOnPageModeChanged=function(e){if(!(this.isShowingPreview||this.isDesignMode)&&(this.currentSingleQuestion=void 0,e==="singlePage"&&this.updatePagesContainer(),this.isSinglePage&&this.updatePagesContainer(),this.isSingleVisibleQuestion)){var n=this.getAllQuestions(!0);n.length>0&&(this.currentSingleQuestion=n[0])}},t.prototype.getPageStartIndex=function(){return this.firstPageIsStarted&&this.pages.length>0?1:0},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return this.getPropertyValue("isFirstPage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){return this.getPropertyValue("isLastPage")},enumerable:!1,configurable:!0}),t.prototype.updateButtonsVisibility=function(){this.updateIsFirstLastPageState(),this.setPropertyValue("isShowPrevButton",this.calcIsShowPrevButton()),this.setPropertyValue("isShowNextButton",this.calcIsShowNextButton()),this.setPropertyValue("isCompleteButtonVisible",this.calcIsCompleteButtonVisible()),this.setPropertyValue("isPreviewButtonVisible",this.calcIsPreviewButtonVisible()),this.setPropertyValue("isCancelPreviewButtonVisible",this.calcIsCancelPreviewButtonVisible())},Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){return this.getPropertyValue("isShowPrevButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowNextButton",{get:function(){return this.getPropertyValue("isShowNextButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.getPropertyValue("isCompleteButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.getPropertyValue("isPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.getPropertyValue("isCancelPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirstElement",{get:function(){return this.getPropertyValue("isFirstElement")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastElement",{get:function(){return this.getPropertyValue("isLastElement")},enumerable:!1,configurable:!0}),t.prototype.updateIsFirstLastPageState=function(){var e=this.currentPage;this.setPropertyValue("isFirstPage",!!e&&e===this.firstVisiblePage),this.setPropertyValue("isLastPage",!!e&&e===this.lastVisiblePage);var n=void 0,r=void 0,o=this.currentSingleQuestion;if(o){var s=this.getAllQuestions(!0),u=s.indexOf(o);u>=0&&(n=u===0,r=u===s.length-1)}this.setPropertyValue("isFirstElement",n),this.setPropertyValue("isLastElement",r)},Object.defineProperty(t.prototype,"isLastPageOrElement",{get:function(){return this.isLastElement!==void 0?this.isLastElement:this.isLastPage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirstPageOrElement",{get:function(){return this.isFirstElement!==void 0?this.isFirstElement:this.isFirstPage},enumerable:!1,configurable:!0}),t.prototype.calcIsShowPrevButton=function(){if(this.isFirstPageOrElement||!this.showPrevButton||this.state!=="running")return!1;if(this.isFirstElement!==void 0)return!0;var e=this.visiblePages[this.currentPageNo-1];return e&&e.getMaxTimeToFinish()<=0},t.prototype.calcIsShowNextButton=function(){return this.state==="running"&&!this.isLastPageOrElement&&!this.canBeCompletedByTrigger},t.prototype.calcIsCompleteButtonVisible=function(){var e=this.state;return this.isEditMode&&(this.state==="running"&&(this.isLastPageOrElement&&!this.isShowPreviewBeforeComplete||this.canBeCompletedByTrigger)||e==="preview")&&this.showCompleteButton},t.prototype.calcIsPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&this.state=="running"&&this.isLastPageOrElement},t.prototype.calcIsCancelPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&this.state=="preview"},Object.defineProperty(t.prototype,"firstVisiblePage",{get:function(){if(this.visiblePageCount===1)return this.visiblePages[0];for(var e=this.pages,n=0;n<e.length;n++)if(this.isPageInVisibleList(e[n]))return e[n];return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastVisiblePage",{get:function(){if(this.visiblePageCount===1)return this.visiblePages[0];for(var e=this.pages,n=e.length-1;n>=0;n--)if(this.isPageInVisibleList(e[n]))return e[n];return null},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e,n){if(e===void 0&&(e=!1),!this.isCompleted)return this.checkOnCompletingEvent(e,n)?(this.checkOnPageTriggers(!0),this.stopTimer(),this.notifyQuestionsOnHidingContent(this.currentPage),this.isCompleted=!0,this.clearUnusedValues(),this.saveDataOnComplete(e,n),this.setCookie(),!0):(this.isCompleted=!1,!1)},t.prototype.saveDataOnComplete=function(e,n){var r=this;e===void 0&&(e=!1);var o=this.hasCookie,s=function(N){V=!0,r.setCompletedState("saving",N)},u=function(N){r.setCompletedState("error",N)},d=function(N){r.setCompletedState("success",N),r.navigateTo()},y=function(N){r.setCompletedState("","")},V=!1,T={isCompleteOnTrigger:e,completeTrigger:n,showSaveInProgress:s,showSaveError:u,showSaveSuccess:d,clearSaveMessages:y,showDataSaving:s,showDataSavingError:u,showDataSavingSuccess:d,showDataSavingClear:y};this.onComplete.fire(this,T),!o&&this.surveyPostId&&this.sendResult(),V||this.navigateTo()},t.prototype.checkOnCompletingEvent=function(e,n){var r={allowComplete:!0,allow:!0,isCompleteOnTrigger:e,completeTrigger:n};return this.onCompleting.fire(this,r),r.allowComplete&&r.allow},t.prototype.start=function(){return!this.firstPageIsStarted||(this.isCurrentPageRendering=!0,this.checkIsPageHasErrors(this.startedPage,!0))?!1:(this.isStartedState=!1,this.notifyQuestionsOnHidingContent(this.pages[0]),this.startTimerFromUI(),this.onStarted.fire(this,{}),this.updateVisibleIndexes(),this.currentPage&&this.currentPage.locStrsChanged(),!0)},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.createServerValidationOptions=function(e,n,r){var o=this,s={data:{},errors:{},survey:this,complete:function(){o.completeServerValidation(s,n,r)}};if(e&&this.isValidateOnComplete)s.data=this.data;else for(var u=this.activePage.questions,d=0;d<u.length;d++){var y=u[d];if(y.visible){var V=this.getValue(y.getValueName());this.isValueEmpty(V)||(s.data[y.getValueName()]=V)}}return s},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,n,r){var o=this;if(n===void 0&&(n=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty||!e&&this.isValidateOnComplete)return!1;this.setIsValidatingOnServer(!0);var s=typeof this.onServerValidateQuestions=="function";return this.serverValidationEventCount=s?1:this.onServerValidateQuestions.length,s?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,n,r)):this.onServerValidateQuestions.fireByCreatingOptions(this,function(){return o.createServerValidationOptions(e,n,r)}),!0},t.prototype.completeServerValidation=function(e,n,r){if(!(this.serverValidationEventCount>1&&(this.serverValidationEventCount--,e&&e.errors&&Object.keys(e.errors).length===0))&&(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),!(!e&&!e.survey))){var o=e.survey,s=!1;if(e.errors){var u=this.focusOnFirstError;for(var d in e.errors){var y=o.getQuestionByName(d);y&&y.errors&&(s=!0,y.addError(new ot(e.errors[d],this)),u&&(u=!1,y.page&&(this.currentPage=y.page),y.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}s||(n?this.showPreviewCore():r?this.currentPage=r:o.isLastPage?o.doComplete():o.doNextPage())}},t.prototype.doNextPage=function(){var e=this.currentPage;if(this.checkOnPageTriggers(!1),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),e===this.currentPage){var n=this.visiblePages,r=n.indexOf(this.currentPage);this.currentPage=n[r+1]}},t.prototype.setCompleted=function(e){this.doComplete(!0,e)},t.prototype.canBeCompleted=function(e,n){var r;if(I.triggers.changeNavigationButtonsOnComplete){var o=this.canBeCompletedByTrigger;this.completedByTriggers||(this.completedByTriggers={}),n?this.completedByTriggers[e.id]={trigger:e,pageId:(r=this.currentPage)===null||r===void 0?void 0:r.id}:delete this.completedByTriggers[e.id],o!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"canBeCompletedByTrigger",{get:function(){var e;if(!this.completedByTriggers)return!1;var n=Object.keys(this.completedByTriggers);if(n.length===0)return!1;var r=(e=this.currentPage)===null||e===void 0?void 0:e.id;if(!r)return!0;for(var o=0;o<n.length;o++)if(r===this.completedByTriggers[n[o]].pageId)return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedTrigger",{get:function(){if(this.canBeCompletedByTrigger){var e=Object.keys(this.completedByTriggers)[0];return this.completedByTriggers[e].trigger}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e,"completed"):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.locCompletedBeforeHtml.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.locLoadingHtml.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getProgressInfo=function(){var e=this.isDesignMode?this.pages:this.visiblePages;return _e.getProgressInfoByElements(e,!1)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.getPropertyValue("progressText","");return e||(this.updateProgressText(),e=this.getPropertyValue("progressText","")),e},enumerable:!1,configurable:!0}),t.prototype.updateProgressText=function(e){e===void 0&&(e=!1),!(this.isCalculatingProgressText||this.isShowingPreview)&&(e&&this.progressBarType=="pages"&&this.onGetProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1))},t.prototype.getProgressText=function(){if(!this.isDesignMode&&this.currentPage==null)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},n=this.progressBarType.toLowerCase();if(n==="questions"||n==="requiredquestions"||n==="correctquestions"||!this.onGetProgressText.isEmpty){var r=this.getProgressInfo();e.questionCount=r.questionCount,e.answeredQuestionCount=r.answeredQuestionCount,e.requiredQuestionCount=r.requiredQuestionCount,e.requiredAnsweredQuestionCount=r.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onGetProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var n=this.progressBarType.toLowerCase();if(n==="questions")return this.getLocalizationFormatString("questionsProgressText",e.answeredQuestionCount,e.questionCount);if(n==="requiredquestions")return this.getLocalizationFormatString("questionsProgressText",e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if(n==="correctquestions"){var r=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",r,e.questionCount)}var o=this.isDesignMode?this.pages:this.visiblePages,s=o.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",s,o.length)},t.prototype.getRootCss=function(){return new _().append(this.css.root).append(this.css.rootProgress+"--"+this.progressBarType).append(this.css.rootMobile,this.isMobile).append(this.css.rootAnimationDisabled,!I.animationEnabled).append(this.css.rootReadOnly,this.mode==="display"&&!this.isDesignMode).append(this.css.rootCompact,this.isCompact).append(this.css.rootFitToContainer,this.fitToContainer).toString()},t.prototype.afterRenderSurvey=function(e){var n=this;this.destroyResizeObserver(),Array.isArray(e)&&(e=_e.GetFirstNonTextElement(e));var r=e,o=this.css.variables;if(o){var s=Number.parseFloat(R.getComputedStyle(r).getPropertyValue(o.mobileWidth));if(s){var u=!1;this.resizeObserver=new ResizeObserver(function(d){B.requestAnimationFrame(function(){u||!hr(r)?u=!1:u=n.processResponsiveness(r.offsetWidth,s,r.offsetHeight)})}),this.resizeObserver.observe(r)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e}),this.rootElement=e,this.addScrollEventListener()},t.prototype.beforeDestroySurveyElement=function(){this.destroyResizeObserver(),this.removeScrollEventListener(),this.rootElement=void 0},t.prototype.processResponsiveness=function(e,n,r){var o=e<n,s=this.isMobile!==o;this.setIsMobile(o),this.layoutElements.forEach(function(d){return d.processResponsiveness&&d.processResponsiveness(e)});var u={height:r,width:e};return this.onResize.fire(this,u),s},t.prototype.triggerResponsiveness=function(e){this.getAllQuestions().forEach(function(n){n.triggerResponsiveness(e)})},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)},t.prototype.updateQuestionCssClasses=function(e,n){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:n})},t.prototype.updatePanelCssClasses=function(e,n){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:n})},t.prototype.updatePageCssClasses=function(e,n){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:n})},t.prototype.updateChoiceItemCss=function(e,n){n.question=e,this.onUpdateChoiceItemCss.fire(this,n)},t.prototype.afterRenderPage=function(e){var n=this;if(!this.isDesignMode&&!this.focusingQuestionInfo){var r=this.isCurrentPageRendered===!1;setTimeout(function(){return n.scrollToTopOnPageChange(r)},1)}this.focusQuestionInfo(),this.isCurrentPageRendered=!0,!this.onAfterRenderPage.isEmpty&&this.onAfterRenderPage.fire(this,{page:this.activePage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,n){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:n})},t.prototype.afterRenderQuestionInput=function(e,n){if(!this.onAfterRenderQuestionInput.isEmpty){var r=e.inputId,o=I.environment.root;if(r&&n.id!==r&&typeof o<"u"){var s=o.getElementById(r);s&&(n=s)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:n})}},t.prototype.afterRenderPanel=function(e,n){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:n})},t.prototype.whenQuestionFocusIn=function(e){this.onFocusInQuestion.fire(this,{question:e})},t.prototype.whenPanelFocusIn=function(e){this.onFocusInPanel.fire(this,{panel:e})},t.prototype.rebuildQuestionChoices=function(){this.getAllQuestions().forEach(function(e){return e.surveyChoiceItemVisibilityChange()})},t.prototype.canChangeChoiceItemsVisibility=function(){return!this.onShowingChoiceItem.isEmpty},t.prototype.getChoiceItemVisibility=function(e,n,r){var o={question:e,item:n,visible:r};return this.onShowingChoiceItem.fire(this,o),o.visible},t.prototype.loadQuestionChoices=function(e){this.onChoicesLazyLoad.fire(this,e)},t.prototype.getChoiceDisplayValue=function(e){this.onGetChoiceDisplayValue.isEmpty?e.setItems(null):this.onGetChoiceDisplayValue.fire(this,e)},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixRowAdding.fire(this,e)},t.prototype.matrixRowAdded=function(e,n){this.onMatrixRowAdded.fire(this,{question:e,row:n})},t.prototype.matrixColumnAdded=function(e,n){this.onMatrixColumnAdded.fire(this,{question:e,column:n})},t.prototype.multipleTextItemAdded=function(e,n){this.onMultipleTextItemAdded.fire(this,{question:e,item:n})},t.prototype.getQuestionByValueNameFromArray=function(e,n,r){var o=this.getQuestionsByValueName(e);if(o){for(var s=0;s<o.length;s++){var u=o[s].getQuestionFromArray(n,r);if(u)return u}return null}},t.prototype.matrixRowRemoved=function(e,n,r){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:n,row:r})},t.prototype.matrixRowRemoving=function(e,n,r){var o={question:e,rowIndex:n,row:r,allow:!0};return this.onMatrixRowRemoving.fire(this,o),o.allow},t.prototype.matrixAllowRemoveRow=function(e,n,r){var o={question:e,rowIndex:n,row:r,allow:!0};return this.onMatrixRenderRemoveButton.fire(this,o),o.allow},t.prototype.matrixDetailPanelVisibleChanged=function(e,n,r,o){var s={question:e,rowIndex:n,row:r,visible:o,detailPanel:r.detailPanel};this.onMatrixDetailPanelVisibleChanged.fire(this,s)},t.prototype.matrixCellCreating=function(e,n){n.question=e,this.onMatrixCellCreating.fire(this,n)},t.prototype.matrixCellCreated=function(e,n){n.question=e,this.onMatrixCellCreated.fire(this,n)},t.prototype.matrixAfterCellRender=function(e,n){n.question=e,this.onAfterRenderMatrixCell.fire(this,n)},t.prototype.matrixCellValueChanged=function(e,n){n.question=e,this.onMatrixCellValueChanged.fire(this,n)},t.prototype.matrixCellValueChanging=function(e,n){n.question=e,this.onMatrixCellValueChanging.fire(this,n)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return this.checkErrorsMode==="onValueChanging"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChanged",{get:function(){return this.checkErrorsMode==="onValueChanged"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChange",{get:function(){return this.isValidateOnValueChanged||this.isValidateOnValueChanging},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnComplete",{get:function(){return this.checkErrorsMode==="onComplete"||this.validationAllowSwitchPages&&!this.validationAllowComplete},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,n){return n.question=e,this.onMatrixCellValidate.fire(this,n),n.error?new ot(n.error,this):null},t.prototype.dynamicPanelAdded=function(e,n,r){if(!this.isLoadingFromJson&&this.hasQuestionVisibleIndeces(e,!0)&&this.updateVisibleIndexes(e.page),!this.onDynamicPanelAdded.isEmpty){var o=e.panels;n===void 0&&(n=o.length-1,r=o[n]),this.onDynamicPanelAdded.fire(this,{question:e,panel:r,panelIndex:n})}},t.prototype.dynamicPanelRemoved=function(e,n,r){for(var o=r?r.questions:[],s=0;s<o.length;s++)o[s].clearOnDeletingContainer();this.hasQuestionVisibleIndeces(e,!1)&&this.updateVisibleIndexes(e.page),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:n,panel:r})},t.prototype.hasQuestionVisibleIndeces=function(e,n){n&&e.setVisibleIndex(this.getStartVisibleIndex());for(var r=e.getNestedQuestions(!0),o=0;o<r.length;o++)if(r[o].visibleIndex>-1)return!0;return!1},t.prototype.dynamicPanelRemoving=function(e,n,r){var o={question:e,panelIndex:n,panel:r,allow:!0};return this.onDynamicPanelRemoving.fire(this,o),o.allow},t.prototype.dynamicPanelItemValueChanged=function(e,n){n.question=e,n.panelIndex=n.itemIndex,n.panelData=n.itemValue,this.onDynamicPanelItemValueChanged.fire(this,n)},t.prototype.dynamicPanelGetTabTitle=function(e,n){n.question=e,this.onGetDynamicPanelTabTitle.fire(this,n)},t.prototype.dynamicPanelCurrentIndexChanged=function(e,n){n.question=e,this.onDynamicPanelCurrentIndexChanged.fire(this,n)},t.prototype.dragAndDropAllow=function(e){return this.onDragDropAllow.fire(this,e),e.allow},t.prototype.elementContentVisibilityChanged=function(e){this.currentPage&&this.currentPage.ensureRowsVisibility(),this.onElementContentVisibilityChanged.fire(this,{element:e})},t.prototype.getUpdatedPanelFooterActions=function(e,n,r){var o={question:r,panel:e,actions:n};return this.onGetPanelFooterActions.fire(this,o),o.actions},t.prototype.getUpdatedElementTitleActions=function(e,n){return e.isPage?this.getUpdatedPageTitleActions(e,n):e.isPanel?this.getUpdatedPanelTitleActions(e,n):this.getUpdatedQuestionTitleActions(e,n)},t.prototype.getTitleActionsResult=function(e,n){return e!=n.actions?n.actions:e!=n.titleActions?n.titleActions:e},t.prototype.getUpdatedQuestionTitleActions=function(e,n){var r={question:e,actions:n,titleActions:n};return this.onGetQuestionTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedPanelTitleActions=function(e,n){var r={panel:e,actions:n,titleActions:n};return this.onGetPanelTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedPageTitleActions=function(e,n){var r={page:e,actions:n,titleActions:n};return this.onGetPageTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedMatrixRowActions=function(e,n,r){var o={question:e,actions:r,row:n};return this.onGetMatrixRowActions.fire(this,o),o.actions},t.prototype.scrollElementToTop=function(e,n,r,o,s,u,d,y){var V=this,T={element:e,question:n,page:r,elementId:o,cancel:!1,allow:!0};if(this.onScrollToTop.fire(this,T),!T.cancel&&T.allow){var N=this.getPageByElement(e);if(this.isLazyRendering&&N){var U=1,W=I.environment.rootElement,X=this.rootElement||d||W;this.skeletonHeight&&X&&typeof X.getBoundingClientRect=="function"&&(U=X.getBoundingClientRect().height/this.skeletonHeight-1),N.forceRenderElement(e,function(){V.suspendLazyRendering(),_e.ScrollElementToTop(T.elementId,s,u,function(){V.releaseLazyRendering(),lr(N.id),y&&y()})},U)}else if(e.isPage&&!this.isSinglePage&&!this.isDesignMode&&this.rootElement){var Y=this.rootElement.querySelector(ke(this.css.rootWrapper));_e.ScrollElementToViewCore(Y,!1,s,u,y)}else _e.ScrollElementToTop(T.elementId,s,u,y)}},t.prototype.chooseFiles=function(e,n,r){this.onOpenFileChooser.isEmpty?Ki(e,n):this.onOpenFileChooser.fire(this,{input:e,element:r&&r.element||this.survey,elementType:r&&r.elementType,item:r&&r.item,propertyName:r&&r.propertyName,callback:n,context:r})},t.prototype.uploadFiles=function(e,n,r,o){var s=this;this.onUploadFiles.isEmpty?o("error",this.getLocString("noUploadFilesHandler")):this.taskManager.runTask("file",function(u){s.onUploadFiles.fire(s,{question:e,name:n,files:r||[],callback:function(d,y){o(d,y),u()}})}),this.surveyPostId&&this.uploadFilesCore(n,r,o)},t.prototype.downloadFile=function(e,n,r,o){this.onDownloadFile.isEmpty&&o&&o("skipped",r.content||r),this.onDownloadFile.fire(this,{question:e,name:n,content:r.content||r,fileValue:r,callback:o})},t.prototype.clearFiles=function(e,n,r,o,s){this.onClearFiles.isEmpty&&s&&s("success",r),this.onClearFiles.fire(this,{question:e,name:n,value:r,fileName:o,callback:s})},t.prototype.updateChoicesFromServer=function(e,n,r){var o={question:e,choices:n,serverResult:r};return this.onLoadChoicesFromServer.fire(this,o),o.choices},t.prototype.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new qa},t.prototype.uploadFilesCore=function(e,n,r){var o=this,s=[];n.forEach(function(u){r&&r("uploading",u),o.createSurveyService().sendFile(o.surveyPostId,u,function(d,y){d?(s.push({content:y,file:u}),s.length===n.length&&r&&r("success",s)):r&&r("error",{response:y,file:u})})})},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,n){n===void 0&&(n=-1),e!=null&&(n<0||n>=this.pages.length?this.pages.push(e):this.pages.splice(n,0,e))},t.prototype.addNewPage=function(e,n){e===void 0&&(e=null),n===void 0&&(n=-1);var r=this.createNewPage(e);return this.addPage(r,n),r},t.prototype.removePage=function(e){var n=this.pages.indexOf(e);n<0||(this.pages.splice(n,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,n){if(n===void 0&&(n=!1),!e)return null;n&&(e=e.toLowerCase());var r=n?this.questionHashes.namesInsensitive:this.questionHashes.names,o=r[e];return o?o[0]:null},t.prototype.findQuestionByName=function(e){return this.getQuestionByName(e)},t.prototype.getEditingSurveyElement=function(){return this.editingObjValue},t.prototype.getQuestionByValueName=function(e,n){n===void 0&&(n=!1);var r=this.getQuestionsByValueName(e,n);return r?r[0]:null},t.prototype.getQuestionsByValueName=function(e,n){n===void 0&&(n=!1);var r=n?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames,o=r[e];return o||null},t.prototype.getCalculatedValueByName=function(e){for(var n=0;n<this.calculatedValues.length;n++)if(e==this.calculatedValues[n].name)return this.calculatedValues[n];return null},t.prototype.getQuestionsByNames=function(e,n){n===void 0&&(n=!1);var r=[];if(!e)return r;for(var o=0;o<e.length;o++)if(e[o]){var s=this.getQuestionByName(e[o],n);s&&r.push(s)}return r},t.prototype.getPageByElement=function(e){for(var n=0;n<this.pages.length;n++){var r=this.pages[n];if(r.containsElement(e))return r}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var n=0;n<this.pages.length;n++)if(this.pages[n].name==e)return this.pages[n];return null},t.prototype.getPagesByNames=function(e){var n=[];if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]){var o=this.getPageByName(e[r]);o&&n.push(o)}return n},t.prototype.getAllQuestions=function(e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1),r===void 0&&(r=!1),r&&(n=!1);for(var o=[],s=0;s<this.pages.length;s++)this.pages[s].addQuestionsToList(o,e,n);if(!r)return o;var u=[];return o.forEach(function(d){u.push(d),d.getNestedQuestions(e).forEach(function(y){return u.push(y)})}),u},t.prototype.getQuizQuestions=function(){for(var e=new Array,n=this.getPageStartIndex(),r=n;r<this.pages.length;r++)if(this.pages[r].isVisible)for(var o=this.pages[r].questions,s=0;s<o.length;s++){var u=o[s];u.quizQuestionCount>0&&e.push(u)}return e},t.prototype.getPanelByName=function(e,n){n===void 0&&(n=!1);var r=this.getAllPanels();n&&(e=e.toLowerCase());for(var o=0;o<r.length;o++){var s=r[o].name;if(n&&(s=s.toLowerCase()),s==e)return r[o]}return null},t.prototype.getAllPanels=function(e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);for(var r=new Array,o=0;o<this.pages.length;o++)this.pages[o].addPanelsIntoList(r,e,n);return r},t.prototype.createNewPage=function(e){var n=j.createClass("page");return n.name=e,n},t.prototype.getValueChangeReason=function(){return this.isSettingValueOnExpression?"expression":this.isSettingValueFromTrigger?"trigger":void 0},t.prototype.questionOnValueChanging=function(e,n,r){if(this.editingObj){var o=j.findProperty(this.editingObj.getType(),e);o&&(n=o.settingValue(this.editingObj,n))}if(this.onValueChanging.isEmpty)return n;var s={name:e,question:this.getQuestionByValueName(r||e),value:this.getUnbindValue(n),oldValue:this.getValue(e),reason:this.getValueChangeReason()};return this.onValueChanging.fire(this,s),s.value},t.prototype.updateQuestionValue=function(e,n){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);if(r)for(var o=0;o<r.length;o++){var s=r[o].value;(s===n&&Array.isArray(s)&&this.editingObj||!this.isTwoValueEquals(s,n))&&r[o].updateValueFromSurvey(n,!1)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&(this.isValidateOnValueChanged||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var n=e.getAllErrors().length,r=!e.validate(!0,{isOnValueChanged:!this.isValidateOnValueChanging});return e.page&&this.isValidateOnValueChange&&(n>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),r},t.prototype.checkErrorsOnValueChanging=function(e,n){if(this.isLoadingFromJson)return!1;var r=this.getQuestionsByValueName(e);if(!r)return!1;for(var o=!1,s=0;s<r.length;s++){var u=r[s];this.isTwoValueEquals(u.valueForSurvey,n)||(u.value=n),this.checkQuestionErrorOnValueChangedCore(u)&&(o=!0),o=o||u.errors.length>0}return o},t.prototype.fireOnValueChanged=function(e,n,r){this.onValueChanged.fire(this,{name:e,question:r,value:n,reason:this.getValueChangeReason()})},t.prototype.notifyQuestionOnValueChanged=function(e,n,r){if(!this.isLoadingFromJson){var o=this.getQuestionsByValueName(e);if(o)for(var s=0;s<o.length;s++){var u=o[s];this.checkQuestionErrorOnValueChanged(u),u.onSurveyValueChanged(n)}this.fireOnValueChanged(e,n,r?this.getQuestionByName(r):void 0),!this.isDisposed&&(this.checkElementsBindings(e,n),this.notifyElementsOnAnyValueOrVariableChanged(e,r))}},t.prototype.checkElementsBindings=function(e,n){this.isRunningElementsBindings=!0;for(var r=0;r<this.pages.length;r++)this.pages[r].checkBindings(e,n);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e,n){if(this.isEndLoadingFromJson!=="processing"){if(this.isRunningConditions){this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;return}for(var r=0;r<this.pages.length;r++)this.pages[r].onAnyValueChanged(e,n);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(e){for(var n=this.getAllQuestions(),r=0;r<n.length;r++){var o=n[r],s=o.getValueName();o.updateValueFromSurvey(this.getValue(s),e),o.requireUpdateCommentValue&&o.updateCommentFromSurvey(this.getComment(s))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),n=0;n<e.length;n++)e[n].onSurveyValueChanged(this.getValue(e[n].getValueName()))},t.prototype.checkOnPageTriggers=function(e){for(var n=this.getCurrentPageQuestions(!0),r={},o=0;o<n.length;o++){var s=n[o],u=s.getValueName();r[u]=this.getValue(u)}this.addCalculatedValuesIntoFilteredValues(r),this.checkTriggers(r,!0,e)},t.prototype.getCurrentPageQuestions=function(e){e===void 0&&(e=!1);var n=[],r=this.currentPage;if(!r)return n;for(var o=0;o<r.questions.length;o++){var s=r.questions[o];!e&&!s.visible||!s.name||n.push(s)}return n},t.prototype.checkTriggers=function(e,n,r,o){if(r===void 0&&(r=!1),!(this.isCompleted||this.triggers.length==0||this.isDisplayMode)){if(this.isTriggerIsRunning){this.triggerValues=this.getFilteredValues();for(var s in e)this.triggerKeys[s]=e[s];return}var u=!1;if(!r&&o&&this.hasRequiredValidQuestionTrigger){var d=this.getQuestionByValueName(o);u=d&&!d.validate(!1)}this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var y=this.getFilteredProperties(),V=this.canBeCompletedByTrigger,T=0;T<this.triggers.length;T++){var N=this.triggers[T];u&&N.requireValidQuestion||N.checkExpression(n,r,this.triggerKeys,this.triggerValues,y)}V!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}},t.prototype.checkTriggersAndRunConditions=function(e,n,r){var o={};o[e]={newValue:n,oldValue:r},this.runConditionOnValueChanged(e,n),this.checkTriggers(o,!1,!1,e)},Object.defineProperty(t.prototype,"hasRequiredValidQuestionTrigger",{get:function(){for(var e=0;e<this.triggers.length;e++)if(this.triggers[e].requireValidQuestion)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},Object.defineProperty(t.prototype,"isRunningConditions",{get:function(){return!!this.conditionValues},enumerable:!1,configurable:!0}),t.prototype.runExpressions=function(){this.runConditions()},t.prototype.runConditions=function(){if(!(this.isCompleted||this.isEndLoadingFromJson==="processing"||this.isRunningConditions)){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),n=this.pages.indexOf(this.currentPage);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(n),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<I.maxConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,n){this.isRunningConditions?(this.conditionValues[e]=n,this.questionTriggersKeys&&(this.questionTriggersKeys[e]=n),this.isValueChangedOnRunningCondition=!0):(this.questionTriggersKeys={},this.questionTriggersKeys[e]=n,this.runConditions(),this.runQuestionsTriggers(e,n),this.questionTriggersKeys=void 0)},t.prototype.runConditionsCore=function(e){for(var n=this.pages,r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].resetCalculation();for(var r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].doCalculation(this.calculatedValues,this.conditionValues,e);i.prototype.runConditionCore.call(this,this.conditionValues,e);for(var o=0;o<n.length;o++)n[o].runCondition(this.conditionValues,e)},t.prototype.runQuestionsTriggers=function(e,n){var r=this;if(!(this.isDisplayMode||this.isDesignMode)){var o=this.getAllQuestions();o.forEach(function(s){s.runTriggers(e,n,r.questionTriggersKeys)})}},t.prototype.checkIfNewPagesBecomeVisible=function(e){var n=this.pages.indexOf(this.currentPage);if(!(n<=e+1)){for(var r=e+1;r<n;r++)if(this.pages[r].isVisible){this.currentPage=this.pages[r];break}}},t.prototype.sendResult=function(e,n,r){var o=this;if(e===void 0&&(e=null),n===void 0&&(n=null),r===void 0&&(r=!1),!!this.isEditMode&&(r&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),!!e&&(n&&(this.clientId=n),!(r&&!this.clientId)))){var s=this.createSurveyService();s.locale=this.getLocale();var u=this.surveyShowDataSaving||!r&&s.isSurveJSIOService;u&&this.setCompletedState("saving",""),s.sendResult(e,this.data,function(d,y,V){(u||s.isSurveJSIOService)&&(d?o.setCompletedState("success",""):o.setCompletedState("error",y));var T={success:d,response:y,request:V};o.onSendResult.fire(o,T)},this.clientId,r)}},t.prototype.getResult=function(e,n){var r=this;this.createSurveyService().getResult(e,n,function(o,s,u,d){r.onGetResult.fire(r,{success:o,data:s,dataList:u,response:d})})},t.prototype.loadSurveyFromService=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null),e&&(this.surveyId=e),n&&(this.clientId=n);var r=this;this.isLoading=!0,this.onLoadingSurveyFromService(),n?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,function(o,s,u,d){o&&(r.isCompletedBefore=u=="completed",r.loadSurveyFromServiceJson(s)),r.isLoading=!1}):this.createSurveyService().loadSurvey(this.surveyId,function(o,s,u){o&&r.loadSurveyFromServiceJson(s),r.isLoading=!1})},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.resetVisibleIndexes=function(){for(var e=this.getAllQuestions(!0),n=0;n<e.length;n++)e[n].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(e){if(!(this.isLoadingFromJson||this.isEndLoadingFromJson)){if(this.isRunningConditions&&this.onQuestionVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty){this.conditionUpdateVisibleIndexes=!0;return}if(this.isRunningElementsBindings){this.updateVisibleIndexAfterBindings=!0;return}this.updatePageVisibleIndexes(),this.updatePageElementsVisibleIndexes(e),this.updateProgressText(!0)}},t.prototype.updatePageElementsVisibleIndexes=function(e){if(this.showQuestionNumbers=="onPage")for(var n=e?[e]:this.visiblePages,r=0;r<n.length;r++)n[r].setVisibleIndex(0);else for(var o=this.getStartVisibleIndex(),s=0;s<this.pages.length;s++)o+=this.pages[s].setVisibleIndex(o)},t.prototype.getStartVisibleIndex=function(){return this.showQuestionNumbers=="on"?0:-1},t.prototype.updatePageVisibleIndexes=function(){this.updateButtonsVisibility();for(var e=0,n=0;n<this.pages.length;n++){var r=this.pages[n],o=r.isVisible&&(n>0||!r.isStartPage);r.visibleIndex=o?e++:-1,r.num=o?r.visibleIndex+1:-1}},t.prototype.fromJSON=function(e,n){if(e){this.questionHashesClear(),this.jsonErrors=null,this.sjsVersion=void 0;var r=new je;r.toObject(e,this,n),r.errors.length>0&&(this.jsonErrors=r.errors),this.onStateAndCurrentPageChanged(),this.updateState(),this.sjsVersion&&I.version&&h.compareVerions(this.sjsVersion,I.version)>0&&He.warn("The version of the survey JSON schema (v"+this.sjsVersion+") is newer than your current Form Library version ("+I.version+"). Please update the Form Library to make sure that all survey features work as expected.")}},t.prototype.startLoadingFromJson=function(e){i.prototype.startLoadingFromJson.call(this,e),e&&e.locale&&(this.locale=e.locale)},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),i.prototype.endLoadingFromJson.call(this),this.hasCookie&&(this.isCompletedBefore=!0),this.doElementsOnLoad(),this.onQuestionsOnPageModeChanged("standard"),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes(),this.updateHasLogo(),this.updateRenderBackgroundImage(),this.updateCurrentPage(),this.hasDescription=!!this.description,this.titleIsEmpty=this.locTitle.isEmpty,this.setCalculatedWidthModeUpdater()},t.prototype.updateNavigationCss=function(){this.navigationBar&&(this.updateNavigationBarCss(),this.updateNavigationItemCssCallback&&this.updateNavigationItemCssCallback())},t.prototype.updateNavigationBarCss=function(){var e=this.navigationBar;e.cssClasses=this.css.actionBar,e.containerCss=this.css.footer},t.prototype.createNavigationBar=function(){var e=new xt;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,n="sv-nav-btn",r=new xe({id:"sv-nav-start",visible:new De(function(){return e.isShowStartingPage}),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:n}),o=new xe({id:"sv-nav-prev",visible:new De(function(){return e.isShowPrevButton}),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.performPrevious()},component:n}),s=new xe({id:"sv-nav-next",visible:new De(function(){return e.isShowNextButton}),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:n}),u=new xe({id:"sv-nav-preview",visible:new De(function(){return e.isPreviewButtonVisible}),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:n}),d=new xe({id:"sv-nav-complete",visible:new De(function(){return e.isCompleteButtonVisible}),visibleIndex:50,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return e.taskManager.waitAndExecute(function(){return e.tryComplete()})},component:n});return this.updateNavigationItemCssCallback=function(){r.innerCss=e.cssNavigationStart,o.innerCss=e.cssNavigationPrev,s.innerCss=e.cssNavigationNext,u.innerCss=e.cssNavigationPreview,d.innerCss=e.cssNavigationComplete},[r,o,s,u,d]},t.prototype.onBeforeRunConstructor=function(){},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var n=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||n&&!this.isValueEmpty(e.value)}},t.prototype.getBuiltInVariableValue=function(e){if(e==="pageno"){var n=this.currentPage;return n!=null?this.visiblePages.indexOf(n)+1:0}if(e==="pagecount")return this.visiblePageCount;if(e==="correctedanswers"||e==="correctanswers"||e==="correctedanswercount")return this.getCorrectedAnswerCount();if(e==="incorrectedanswers"||e==="incorrectanswers"||e==="incorrectedanswercount")return this.getInCorrectedAnswerCount();if(e==="questioncount")return this.getQuizQuestionCount()},t.prototype.getProcessedTextValueCore=function(e){var n=e.name.toLocaleLowerCase();if(["no","require","title"].indexOf(n)===-1){var r=this.getBuiltInVariableValue(n);if(r!==void 0){e.isExists=!0,e.value=r;return}if(n==="locale"){e.isExists=!0,e.value=this.locale?this.locale:A.defaultLocale;return}var o=this.getVariable(n);if(o!==void 0){e.isExists=!0,e.value=o;return}var s=this.getFirstName(n);if(s){var u=s.useDisplayValuesInDynamicTexts;e.isExists=!0;var d=s.getValueName().toLowerCase();n=d+n.substring(d.length),n=n.toLocaleLowerCase();var y={};y[d]=e.returnDisplayValue&&u?s.getDisplayValue(!1,void 0):s.value,e.value=new Re().getValue(n,y);return}this.getProcessedValuesWithoutQuestion(e)}},t.prototype.getProcessedValuesWithoutQuestion=function(e){var n=this.getValue(e.name);if(n!==void 0){e.isExists=!0,e.value=n;return}var r=new Re,o=r.getFirstName(e.name);if(o!==e.name){var s={},u=this.getValue(o);h.isValueEmpty(u)&&(u=this.getVariable(o)),!h.isValueEmpty(u)&&(s[o]=u,e.value=r.getValue(e.name,s),e.isExists=r.hasValue(e.name,s))}},t.prototype.getFirstName=function(e){e=e.toLowerCase();var n;do n=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e);while(!n&&e);return n},t.prototype.reduceFirstName=function(e){var n=e.lastIndexOf("."),r=e.lastIndexOf("[");if(n<0&&r<0)return"";var o=Math.max(n,r);return e.substring(0,o)},t.prototype.clearUnusedValues=function(){this.isClearingUnsedValues=!0;for(var e=this.getAllQuestions(),n=0;n<e.length;n++)e[n].clearUnusedValues();this.clearInvisibleQuestionValues(),this.isClearingUnsedValues=!1},t.prototype.hasVisibleQuestionByValueName=function(e){var n=this.getQuestionsByValueName(e);if(!n)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(o.isVisible&&o.isParentVisible&&!o.parentQuestion)return!0}return!1},t.prototype.questionsByValueName=function(e){var n=this.getQuestionsByValueName(e);return n||[]},t.prototype.clearInvisibleQuestionValues=function(){for(var e=this.clearInvisibleValues==="none"?"none":"onComplete",n=this.getAllQuestions(),r=0;r<n.length;r++)n[r].clearValueIfInvisible(e)},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var n=this.variablesHash[e];return this.isValueEmpty(n)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&new Re().hasValue(e,this.variablesHash)?new Re().getValue(e,this.variablesHash):n},t.prototype.setVariable=function(e,n){if(e){var r=this.getVariable(e);this.valuesHash&&delete this.valuesHash[e],e=e.toLowerCase(),this.variablesHash[e]=n,this.notifyElementsOnAnyValueOrVariableChanged(e),h.isTwoValueEquals(r,n)||(this.checkTriggersAndRunConditions(e,n,r),this.onVariableChanged.fire(this,{name:e,value:n}))}},t.prototype.getVariableNames=function(){var e=[];for(var n in this.variablesHash)e.push(n);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:h.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||e.length==0)return null;var n=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(n)},t.prototype.setValue=function(e,n,r,o,s){r===void 0&&(r=!1),o===void 0&&(o=!0);var u=n;if(o&&(u=this.questionOnValueChanging(e,n)),!(this.isValidateOnValueChanging&&this.checkErrorsOnValueChanging(e,u))&&!(!this.editingObj&&this.isValueEqual(e,u)&&this.isTwoValueEquals(u,n))){var d=this.getValue(e);this.isValueEmpyOnSetValue(e,u)?this.deleteDataValueCore(this.valuesHash,e):(u=this.getUnbindValue(u),this.setDataValueCore(this.valuesHash,e,u)),this.updateOnSetValue(e,u,d,r,o,s)}},t.prototype.isValueEmpyOnSetValue=function(e,n){return this.isValueEmpty(n,!1)?!this.editingObj||n===null||n===void 0?!0:this.editingObj.getDefaultPropertyValue(e)===n:!1},t.prototype.updateOnSetValue=function(e,n,r,o,s,u){o===void 0&&(o=!1),s===void 0&&(s=!0),this.updateQuestionValue(e,n),!(o===!0||this.isDisposed||this.isRunningElementsBindings)&&(u=u||e,this.checkTriggersAndRunConditions(e,n,r),s&&this.notifyQuestionOnValueChanged(e,n,u),o!=="text"&&this.tryGoNextPageAutomatic(e))},t.prototype.isValueEqual=function(e,n){(n===""||n===void 0)&&(n=null);var r=this.getValue(e);return(r===""||r===void 0)&&(r=null),n===null||r===null?n===r:this.isTwoValueEquals(n,r)},t.prototype.doOnPageAdded=function(e){if(e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),!this.runningPages){this.isLoadingFromJson||(this.updateProgressText(),this.updateCurrentPage());var n={page:e};this.onPageAdded.fire(this,n)}},t.prototype.doOnPageRemoved=function(e){e.setSurveyImpl(null),!this.runningPages&&(e===this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.updateProgressText(),this.updateLazyRenderingRowsOnRemovingElements())},t.prototype.generateNewName=function(e,n){for(var r={},o=0;o<e.length;o++)r[e[o].name]=!0;for(var s=1;r[n+s];)s++;return n+s},t.prototype.tryGoNextPageAutomatic=function(e){var n=this;if(!(this.isEndLoadingFromJson||!this.goNextPageAutomatic||!this.currentPage)){var r=this.getQuestionByValueName(e);if(!(!r||r&&(!r.visible||!r.supportGoNextPageAutomatic()))&&!(!r.validate(!1)&&!r.supportGoNextPageError())){if(this.currentSingleQuestion){var o=this.currentSingleQuestion,s=function(){o===n.currentSingleQuestion&&(n.isLastElement?n.allowCompleteSurveyAutomatic&&n.tryCompleteOrShowPreview():n.performNext())};fn.safeTimeOut(s,I.autoAdvanceDelay)}var u=this.getCurrentPageQuestions();if(!(u.indexOf(r)<0)){for(var d=0;d<u.length;d++)if(u[d].hasInput&&u[d].isEmpty())return;if(!(this.isLastPage&&(this.goNextPageAutomatic!==!0||!this.allowCompleteSurveyAutomatic))&&!this.checkIsCurrentPageHasErrors(!1)){var y=this.currentPage,V=function(){y===n.currentPage&&(n.isLastPage?n.tryCompleteOrShowPreview():n.nextPage())};fn.safeTimeOut(V,I.autoAdvanceDelay)}}}}},t.prototype.tryCompleteOrShowPreview=function(){this.isShowPreviewBeforeComplete?this.showPreview():this.tryComplete()},t.prototype.getComment=function(e){var n=this.getValue(e+this.commentSuffix);return n||""},t.prototype.setComment=function(e,n,r){if(r===void 0&&(r=!1),n||(n=""),!this.isTwoValueEquals(n,this.getComment(e))){var o=e+this.commentSuffix;n=this.questionOnValueChanging(o,n,e),this.isValueEmpty(n)?this.deleteDataValueCore(this.valuesHash,o):this.setDataValueCore(this.valuesHash,o,n);var s=this.getQuestionsByValueName(e);if(s)for(var u=0;u<s.length;u++)s[u].updateCommentFromSurvey(n),this.checkQuestionErrorOnValueChanged(s[u]);r||this.checkTriggersAndRunConditions(e,this.getValue(e),void 0),r!=="text"&&this.tryGoNextPageAutomatic(e);var d=this.getQuestionByValueName(e);d&&(this.fireOnValueChanged(o,n,d),d.comment=n,d.comment!=n&&(d.comment=n))}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionClearIfInvisible=function(e){return this.isShowingPreview||this.runningPages?"none":e!=="default"?e:this.clearInvisibleValues},t.prototype.questionVisibilityChanged=function(e,n,r){r&&this.updateVisibleIndexes(e.page),this.onQuestionVisibleChanged.fire(this,{question:e,name:e.name,visible:n})},t.prototype.pageVisibilityChanged=function(e,n){this.isLoadingFromJson||((n&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:n}))},t.prototype.panelVisibilityChanged=function(e,n){this.updateVisibleIndexes(e.page),this.onPanelVisibleChanged.fire(this,{panel:e,visible:n})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,n,r,o){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.isLoadingFromJson||(this.currentPage||this.updateCurrentPage(),this.updateVisibleIndexes(e.page),this.setCalculatedWidthModeUpdater()),this.canFireAddElement()&&this.onQuestionAdded.fire(this,{question:e,name:e.name,index:n,parent:r,page:o,parentPanel:r,rootPanel:o})},t.prototype.canFireAddElement=function(){return!this.isMovingQuestion||this.isDesignMode&&!I.supportCreatorV2},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(e.page),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,n,r){this.questionHashesRemoved(e,n,r),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var n=e.questions,r=0;r<n.length;r++)this.questionHashesAdded(n[r])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,n,r){n&&(this.questionHashRemovedCore(this.questionHashes.names,e,n),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,n.toLowerCase())),r&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,r),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,r.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,n,r){var o=e[r];if(o){var o=e[r];o.indexOf(n)<0&&o.push(n)}else e[r]=[n]},t.prototype.questionHashRemovedCore=function(e,n,r){var o=e[r];if(o){var s=o.indexOf(n);s>-1&&o.splice(s,1),o.length==0&&delete e[r]}},t.prototype.panelAdded=function(e,n,r,o){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(e.page),this.canFireAddElement()&&this.onPanelAdded.fire(this,{panel:e,name:e.name,index:n,parent:r,page:o,parentPanel:r,rootPanel:o})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(e.page),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var n={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,n),n.error?new ot(n.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var n={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,n),n.error?new ot(n.error,this):null},t.prototype.processHtml=function(e,n){n||(n="");var r={html:e,reason:n};return this.onProcessHtml.fire(this,r),this.processText(r.html,!0)},t.prototype.processText=function(e,n){return this.processTextEx({text:e,returnDisplayValue:n,doEncoding:!1}).text},t.prototype.processTextEx=function(e){var n=e.doEncoding===void 0?I.web.encodeUrlParams:e.doEncoding,r=e.text;(e.runAtDesign||!this.isDesignMode)&&(r=this.textPreProcessor.process(r,e.returnDisplayValue===!0,n));var o={text:r,hasAllValuesOnLastRun:!0};return o.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,o},Object.defineProperty(t.prototype,"textPreProcessor",{get:function(){var e=this;return this.textPreProcessorValue||(this.textPreProcessorValue=new qt,this.textPreProcessorValue.onProcess=function(n){e.getProcessedTextValue(n)}),this.textPreProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getSurveyMarkdownHtml=function(e,n,r){var o={element:e,text:n,name:r,html:null};return this.onTextMarkdown.fire(this,o),o.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectAnswerCount()},t.prototype.getCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),n=0,r=0;r<e.length;r++)n+=e[r].quizQuestionCount;return n},t.prototype.getInCorrectedAnswerCount=function(){return this.getIncorrectAnswerCount()},t.prototype.getInCorrectAnswerCount=function(){return this.getIncorrectAnswerCount()},t.prototype.getIncorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.onCorrectQuestionAnswer=function(e,n){this.onIsAnswerCorrect.isEmpty||(n.question=e,this.onIsAnswerCorrect.fire(this,n))},t.prototype.getCorrectedAnswerCountCore=function(e){for(var n=this.getQuizQuestions(),r=0,o=0;o<n.length;o++){var s=n[o],u=s.correctAnswerCount;e?r+=u:r+=s.quizQuestionCount-u}return r},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.showTimer?this.timerLocation:"none"},set:function(e){this.showTimer=e!=="none",this.showTimer&&(this.timerLocation=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimer",{get:function(){return this.getPropertyValue("showTimer")},set:function(e){this.setPropertyValue("showTimer",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerLocation",{get:function(){return this.getPropertyValue("timerLocation")},set:function(e){this.setPropertyValue("timerLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return this.showTimer&&this.timerLocation==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return this.showTimer&&this.timerLocation==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoMode",{get:function(){return this.getTimerInfoVal(this.getPropertyValue("timerInfoMode"))},set:function(e){this.setPropertyValue("timerInfoMode",e)},enumerable:!1,configurable:!0}),t.prototype.getTimerInfoVal=function(e){return e==="all"?"combined":e},Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){var e=this.timerInfoMode;return e==="combined"?"all":e},set:function(e){this.timerInfoMode=this.getTimerInfoVal(e)},enumerable:!1,configurable:!0}),t.prototype.updateGridColumns=function(){this.pages.forEach(function(e){return e.updateGridColumns()})},Object.defineProperty(t.prototype,"widthMode",{get:function(){return this.getPropertyValue("widthMode")},set:function(e){this.setPropertyValue("widthMode",e)},enumerable:!1,configurable:!0}),t.prototype.setCalculatedWidthModeUpdater=function(){var e=this;this.isLoadingFromJson||(this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new De(function(){return e.calculateWidthMode()}),this.calculatedWidthMode=this.calculatedWidthModeUpdater)},t.prototype.calculateWidthMode=function(){if(this.widthMode=="auto"){var e=!1;return this.pages.forEach(function(n){n.needResponsiveWidth()&&(e=!0)}),e?"responsive":"static"}return this.widthMode},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("calculatedWidthMode")=="static",n=this.getPropertyValue("width");if(this.isScaled&&this.responsiveStartWidth>1){var r=this.responsiveStartWidth;try{n=n||this.staticStartWidth,r=isNaN(n)?parseFloat(n.toString().replace("px","")):n}catch{}return(e?r:this.responsiveStartWidth)*this.widthScale/100+"px"}return n&&!isNaN(n)&&(n=n+"px"),e&&n||void 0},enumerable:!1,configurable:!0}),t.prototype.setStaticStartWidth=function(e){this.staticStartWidth=e},t.prototype.setResponsiveStartWidth=function(e){this.responsiveStartWidth=e},Object.defineProperty(t.prototype,"isScaled",{get:function(){return Math.abs(this.widthScale-100)>.001},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfo",{get:function(){return this.getTimerInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerClock",{get:function(){var e,n;if(this.currentPage){var r=this.getTimerInfo(),o=r.spent,s=r.limit,u=r.minorSpent,d=r.minorLimit;s>0?e=this.getDisplayClockTime(s-o):e=this.getDisplayClockTime(o),u!==void 0&&(d>0?n=this.getDisplayClockTime(d-u):n=this.getDisplayClockTime(u))}return{majorText:e,minorText:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var n=new gt(this,!0);return n.text=e.text,n.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfo=function(){var e=this.currentPage;if(!e)return{spent:0,limit:0};var n=e.timeSpent,r=this.timeSpent,o=e.getMaxTimeToFinish(),s=this.timeLimit;return this.timerInfoMode=="page"?{spent:n,limit:o}:this.timerInfoMode=="survey"?{spent:r,limit:s}:o>0&&s>0?{spent:n,limit:o,minorSpent:r,minorLimit:s}:o>0?{spent:n,limit:o,minorSpent:r}:s>0?{spent:r,limit:s,minorSpent:n}:{spent:n,minorSpent:r}},t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var n=this.getDisplayTime(e.timeSpent),r=this.getDisplayTime(this.timeSpent),o=e.getMaxTimeToFinish(),s=this.getDisplayTime(o),u=this.getDisplayTime(this.timeLimit);if(this.timerInfoMode=="page")return this.getTimerInfoPageText(e,n,s);if(this.timerInfoMode=="survey")return this.getTimerInfoSurveyText(r,u);if(this.timerInfoMode=="combined"){if(o<=0&&this.timeLimit<=0)return this.getLocalizationFormatString("timerSpentAll",n,r);if(o>0&&this.timeLimit>0)return this.getLocalizationFormatString("timerLimitAll",n,s,r,u);var d=this.getTimerInfoPageText(e,n,s),y=this.getTimerInfoSurveyText(r,u);return d+" "+y}return""},t.prototype.getTimerInfoPageText=function(e,n,r){return e&&e.getMaxTimeToFinish()>0?this.getLocalizationFormatString("timerLimitPage",n,r):this.getLocalizationFormatString("timerSpentPage",n,r)},t.prototype.getTimerInfoSurveyText=function(e,n){var r=this.timeLimit>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(r,e,n)},t.prototype.getDisplayClockTime=function(e){e<0&&(e=0);var n=Math.floor(e/60),r=e%60,o=r.toString();return r<10&&(o="0"+o),n+":"+o},t.prototype.getDisplayTime=function(e){var n=Math.floor(e/60),r=e%60,o="";return n>0&&(o+=n+" "+this.getLocalizationString("timerMin")),o&&r==0?o:(o&&(o+=" "),o+r+" "+this.getLocalizationString("timerSec"))},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.timerModelValue},enumerable:!1,configurable:!0}),t.prototype.startTimer=function(){this.isEditMode&&this.timerModel.start()},t.prototype.startTimerFromUI=function(){this.showTimer&&this.state==="running"&&this.startTimer()},t.prototype.stopTimer=function(){this.timerModel.stop()},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.timerModel.spent},set:function(e){this.timerModel.spent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeLimit",{get:function(){return this.getPropertyValue("timeLimit",0)},set:function(e){this.setPropertyValue("timeLimit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.timeLimit},set:function(e){this.timeLimit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeLimitPerPage",{get:function(){return this.getPropertyValue("timeLimitPerPage",0)},set:function(e){this.setPropertyValue("timeLimitPerPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.timeLimitPerPage},set:function(e){this.timeLimitPerPage=e},enumerable:!1,configurable:!0}),t.prototype.doTimer=function(e){if(this.onTimerTick.fire(this,{}),this.timeLimit>0&&this.timeLimit<=this.timeSpent&&(this.timeSpent=this.timeLimit,this.tryComplete()),e){var n=e.getMaxTimeToFinish();n>0&&n==e.timeSpent&&(this.isLastPage?this.tryComplete():this.nextPage())}},Object.defineProperty(t.prototype,"inSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,n){var r=[];return Array.prototype.push.apply(r,this.getPagesByNames(e)),Array.prototype.push.apply(r,this.getQuestionsByNames(n)),r},t.prototype.setTriggerValue=function(e,n,r){if(e)if(r)this.setVariable(e,n);else{var o=this.getQuestionByName(e);if(this.startSetValueFromTrigger(),o)o.value=n;else{var s=new Re,u=s.getFirstName(e);if(u==e)this.setValue(e,n);else{if(!this.getQuestionByName(u))return;var d=this.getUnbindValue(this.getFilteredValues());s.setValue(d,e,n),this.setValue(u,d[u])}}this.finishSetValueFromTrigger()}},t.prototype.copyTriggerValue=function(e,n,r){if(!(!e||!n)){var o;if(r)o=this.processText("{"+n+"}",!0);else{var s=new Re;o=s.getValue(n,this.getFilteredValues())}this.setTriggerValue(e,o,!1)}},t.prototype.triggerExecuted=function(e){this.onTriggerExecuted.fire(this,{trigger:e})},Object.defineProperty(t.prototype,"isSettingValueFromTrigger",{get:function(){return this.setValueFromTriggerCounter>0},enumerable:!1,configurable:!0}),t.prototype.startSetValueFromTrigger=function(){this.setValueFromTriggerCounter++},t.prototype.finishSetValueFromTrigger=function(){this.setValueFromTriggerCounter--},t.prototype.startMovingQuestion=function(){this.isMovingQuestion=!0},t.prototype.stopMovingQuestion=function(){this.isMovingQuestion=!1},Object.defineProperty(t.prototype,"isQuestionDragging",{get:function(){return this.isMovingQuestion},enumerable:!1,configurable:!0}),t.prototype.focusQuestion=function(e){return this.focusQuestionByInstance(this.getQuestionByName(e,!0))},t.prototype.focusQuestionByInstance=function(e,n){var r;if(n===void 0&&(n=!1),!e||!e.isVisible||!e.page)return!1;var o=(r=this.focusingQuestionInfo)===null||r===void 0?void 0:r.question;if(o===e)return!1;this.focusingQuestionInfo={question:e,onError:n},this.skippedPages.push({from:this.currentPage,to:e.page});var s=this.activePage!==e.page&&!e.page.isStartPage;return s&&(this.currentPage=e.page,this.isSingleVisibleQuestion&&!this.isDesignMode&&(this.currentSingleQuestion=e)),s||this.focusQuestionInfo(),!0},t.prototype.focusQuestionInfo=function(){var e,n=(e=this.focusingQuestionInfo)===null||e===void 0?void 0:e.question;n&&!n.isDisposed&&n.focus(this.focusingQuestionInfo.onError),this.focusingQuestionInfo=void 0},t.prototype.questionEditFinishCallback=function(e,n){var r=this.enterKeyAction||I.enterKeyAction;if(r=="loseFocus"&&n.target.blur(),r=="moveToNextEditor"){var o=this.currentPage.questions,s=o.indexOf(e);s>-1&&s<o.length-1?o[s+1].focus():n.target.blur()}},t.prototype.elementWrapperComponentNameCore=function(e,n,r,o,s){if(this.onElementWrapperComponentName.isEmpty)return e;var u={componentName:e,element:n,wrapperName:r,reason:o,item:s};return this.onElementWrapperComponentName.fire(this,u),u.componentName},t.prototype.elementWrapperDataCore=function(e,n,r,o,s){if(this.onElementWrapperComponentData.isEmpty)return e;var u={data:e,element:n,wrapperName:r,reason:o,item:s};return this.onElementWrapperComponentData.fire(this,u),u.data},t.prototype.getElementWrapperComponentName=function(e,n){var r=n==="logo-image"?"sv-logo-image":t.TemplateRendererComponentName;return this.elementWrapperComponentNameCore(r,e,"component",n)},t.prototype.getQuestionContentWrapperComponentName=function(e){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,e,"content-component")},t.prototype.getRowWrapperComponentName=function(e){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,e,"row")},t.prototype.getItemValueWrapperComponentName=function(e,n){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,n,"itemvalue",void 0,e)},t.prototype.getElementWrapperComponentData=function(e,n){return this.elementWrapperDataCore(e,e,"component",n)},t.prototype.getRowWrapperComponentData=function(e){return this.elementWrapperDataCore(e,e,"row")},t.prototype.getItemValueWrapperComponentData=function(e,n){return this.elementWrapperDataCore(e,n,"itemvalue",void 0,e)},t.prototype.getMatrixCellTemplateData=function(e){var n=e.question;return this.elementWrapperDataCore(n,n,"cell")},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var n=[],r=0;r<this.pages.length;r++)this.pages[r].searchText(e,n);return n},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.addLayoutElement=function(e){var n=this.removeLayoutElement(e.id);return this.layoutElements.push(e),n},t.prototype.findLayoutElement=function(e){var n=this.layoutElements.filter(function(r){return r.id===e})[0];return n},t.prototype.removeLayoutElement=function(e){var n=this.findLayoutElement(e);if(n){var r=this.layoutElements.indexOf(n);this.layoutElements.splice(r,1)}return n},t.prototype.getContainerContent=function(e){for(var n=[],r=0,o=this.layoutElements;r<o.length;r++){var s=o[r];if(this.mode!=="display"&&hn(s.id,"timerpanel"))e==="header"&&this.isTimerPanelShowingOnTop&&!this.isShowStartingPage&&n.push(s),e==="footer"&&this.isTimerPanelShowingOnBottom&&!this.isShowStartingPage&&n.push(s);else if(this.state==="running"&&hn(s.id,this.progressBarComponentName)){if(this.questionsOnPageMode!="singlePage"||this.progressBarType=="questions"){var u=this.findLayoutElement("advanced-header"),d=u&&u.data,y=!d||d.hasBackground;hn(this.showProgressBar,"aboveHeader")&&(y=!1),hn(this.showProgressBar,"belowHeader")&&(y=!0),e==="header"&&!y&&(s.index=-150,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&n.push(s)),e==="center"&&y&&(s.index&&delete s.index,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&n.push(s)),e==="footer"&&this.isShowProgressBarOnBottom&&!this.isShowStartingPage&&n.push(s)}}else hn(s.id,"buttons-navigation")?(e==="contentTop"&&["top","both"].indexOf(this.isNavigationButtonsShowing)!==-1&&n.push(s),e==="contentBottom"&&["bottom","both"].indexOf(this.isNavigationButtonsShowing)!==-1&&n.push(s)):this.state==="running"&&hn(s.id,"toc-navigation")&&this.showTOC?(e==="left"&&["left","both"].indexOf(this.tocLocation)!==-1&&n.push(s),e==="right"&&["right","both"].indexOf(this.tocLocation)!==-1&&n.push(s)):hn(s.id,"advanced-header")?(this.state==="running"||this.state==="starting"||this.showHeaderOnCompletePage===!0&&this.state==="completed")&&s.container===e&&n.push(s):(Array.isArray(s.container)&&s.container.indexOf(e)!==-1||s.container===e)&&n.push(s)}return n.sort(function(V,T){return(V.index||0)-(T.index||0)}),n},t.prototype.processPopupVisiblityChanged=function(e,n,r){this.onPopupVisibleChanged.fire(this,{question:e,popup:n,visible:r})},t.prototype.processOpenDropdownMenu=function(e,n){var r=Object.assign({question:e},n);this.onOpenDropdownMenu.fire(this,r),n.menuType=r.menuType},t.prototype.getCssTitleExpandableSvg=function(){return null},t.prototype.applyTheme=function(e){var n=this;if(e){if(Object.keys(e).forEach(function(o){o!=="header"&&(o==="isPanelless"?n.isCompact=e[o]:n[o]=e[o])}),this.headerView==="advanced"||"header"in e){this.removeLayoutElement("advanced-header");var r=new Co;r.fromTheme(e),this.insertAdvancedHeader(r)}this.themeChanged(e)}},t.prototype.themeChanged=function(e){this.getAllQuestions().forEach(function(n){return n.themeChanged(e)})},t.prototype.dispose=function(){if(this.unConnectEditingObj(),this.removeScrollEventListener(),this.destroyResizeObserver(),this.rootElement=void 0,this.layoutElements){for(var e=0;e<this.layoutElements.length;e++)this.layoutElements[e].data&&this.layoutElements[e].data!==this&&this.layoutElements[e].data.dispose&&this.layoutElements[e].data.dispose();this.layoutElements.splice(0,this.layoutElements.length)}if(i.prototype.dispose.call(this),this.editingObj=null,!!this.pages){this.currentPage=null;for(var e=0;e<this.pages.length;e++)this.pages[e].setSurveyImpl(void 0),this.pages[e].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}},t.prototype._isElementShouldBeSticky=function(e){if(!e)return!1;var n=this.rootElement.querySelector(e);return n?this.rootElement.scrollTop>0&&n.getBoundingClientRect().y<=this.rootElement.getBoundingClientRect().y:!1},t.prototype.onScroll=function(){this.rootElement&&(this._isElementShouldBeSticky(".sv-components-container-center")?this.rootElement.classList&&this.rootElement.classList.add("sv-root--sticky-top"):this.rootElement.classList&&this.rootElement.classList.remove("sv-root--sticky-top")),this.onScrollCallback&&this.onScrollCallback()},t.prototype.addScrollEventListener=function(){var e=this,n;this.scrollHandler=function(){e.onScroll()},this.rootElement.addEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].addEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&((n=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])===null||n===void 0||n.addEventListener("scroll",this.scrollHandler))},t.prototype.removeScrollEventListener=function(){var e;this.rootElement&&this.scrollHandler&&(this.rootElement.removeEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].removeEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&((e=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])===null||e===void 0||e.removeEventListener("scroll",this.scrollHandler)))},t.TemplateRendererComponentName="sv-template-renderer",t.platform="unknown",Ee([x()],t.prototype,"completedCss",void 0),Ee([x()],t.prototype,"completedBeforeCss",void 0),Ee([x()],t.prototype,"loadingBodyCss",void 0),Ee([x()],t.prototype,"containerCss",void 0),Ee([x({onSet:function(e,n){n.updateCss()}})],t.prototype,"fitToContainer",void 0),Ee([x({onSet:function(e,n){if(e==="advanced"){var r=n.findLayoutElement("advanced-header");if(!r){var o=new Co;o.logoPositionX=n.logoPosition==="right"?"right":"left",o.logoPositionY="middle",o.titlePositionX=n.logoPosition==="right"?"left":"right",o.titlePositionY="middle",o.descriptionPositionX=n.logoPosition==="right"?"left":"right",o.descriptionPositionY="middle",n.insertAdvancedHeader(o)}}else n.removeLayoutElement("advanced-header")}})],t.prototype,"headerView",void 0),Ee([x()],t.prototype,"showBrandInfo",void 0),Ee([x()],t.prototype,"enterKeyAction",void 0),Ee([x()],t.prototype,"lazyRenderingFirstBatchSizeValue",void 0),Ee([x({defaultValue:!0})],t.prototype,"titleIsEmpty",void 0),Ee([x({defaultValue:{}})],t.prototype,"cssVariables",void 0),Ee([x()],t.prototype,"_isMobile",void 0),Ee([x()],t.prototype,"_isCompact",void 0),Ee([x({onSet:function(e,n){n.updateCss()}})],t.prototype,"backgroundImage",void 0),Ee([x()],t.prototype,"renderBackgroundImage",void 0),Ee([x()],t.prototype,"backgroundImageFit",void 0),Ee([x({onSet:function(e,n){n.updateCss()}})],t.prototype,"backgroundImageAttachment",void 0),Ee([x()],t.prototype,"backgroundImageStyle",void 0),Ee([x()],t.prototype,"wrapperFormCss",void 0),Ee([x({getDefaultValue:function(e){return e.progressBarType==="buttons"}})],t.prototype,"progressBarShowPageTitles",void 0),Ee([x()],t.prototype,"progressBarShowPageNumbers",void 0),Ee([x()],t.prototype,"progressBarInheritWidthFrom",void 0),Ee([x({defaultValue:!0})],t.prototype,"validationEnabled",void 0),Ee([x()],t.prototype,"rootCss",void 0),Ee([x({onSet:function(e,n){n.updateGridColumns()}})],t.prototype,"gridLayoutEnabled",void 0),Ee([x()],t.prototype,"calculatedWidthMode",void 0),Ee([x({defaultValue:100,onSet:function(e,n,r){n.pages.forEach(function(o){return o.updateRootStyle()})}})],t.prototype,"widthScale",void 0),Ee([x()],t.prototype,"staticStartWidth",void 0),Ee([x()],t.prototype,"responsiveStartWidth",void 0),Ee([me()],t.prototype,"layoutElements",void 0),t}(ir);function hn(i,t){return!i||!t?!1:i.toUpperCase()===t.toUpperCase()}j.addClass("survey",[{name:"locale",choices:function(){return A.getLocales(!0)},onGetValue:function(i){return i.locale==A.defaultLocale?null:i.locale}},{name:"title",serializationProperty:"locTitle",dependsOn:"locale"},{name:"description:text",serializationProperty:"locDescription",dependsOn:"locale"},{name:"logo:file",serializationProperty:"locLogo"},{name:"logoWidth",default:"300px",minValue:0},{name:"logoHeight",default:"200px",minValue:0},{name:"logoFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"logoPosition",default:"left",choices:["none","left","right","top","bottom"]},{name:"focusFirstQuestionAutomatic:boolean"},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem",isArray:!0},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page",isArray:!0,onSerializeValue:function(i){return i.originalPages||i.pages}},{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(i){return null},onSetValue:function(i,t,e){i.pages.splice(0,i.pages.length);var n=i.addNewPage("");e.toObject({questions:t},n,e==null?void 0:e.options)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue",isArray:!0},{name:"sjsVersion",visible:!1},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving:boolean",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons",default:"bottom",choices:["none","top","bottom","both"]},{name:"showPrevButton:boolean",default:!0,visibleIf:function(i){return i.showNavigationButtons!=="none"}},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem",isArray:!0},{name:"questionsOrder",default:"initial",choices:["initial","random"]},{name:"matrixDragHandleArea",visible:!1,default:"entireItem",choices:["entireItem","icon"]},"showPageNumbers:boolean",{name:"showQuestionNumbers",default:"on",choices:["on","onPage","off"]},{name:"questionTitleLocation",default:"top",choices:["top","bottom","left"]},{name:"questionDescriptionLocation",default:"underTitle",choices:["underInput","underTitle"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","auto","aboveheader","belowheader","bottom","topbottom"]},{name:"progressBarType",default:"pages",choices:["pages","questions","requiredQuestions","correctQuestions"],visibleIf:function(i){return i.showProgressBar!=="off"}},{name:"progressBarShowPageTitles:switch",category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"progressBarShowPageNumbers:switch",default:!1,category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"progressBarInheritWidthFrom",default:"container",choices:["container","survey"],category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"showTOC:switch",default:!1},{name:"tocLocation",default:"left",choices:["left","right"],dependsOn:["showTOC"],visibleIf:function(i){return!!i&&i.showTOC}},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},{name:"goNextPageAutomatic:boolean",onSetValue:function(i,t){t!=="autogonext"&&(t=h.isTwoValueEquals(t,!0)),i.setPropertyValue("goNextPageAutomatic",t)}},{name:"allowCompleteSurveyAutomatic:boolean",default:!0,visibleIf:function(i){return i.goNextPageAutomatic===!0}},{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onComplete"]},{name:"validateVisitedEmptyFields:boolean",dependsOn:"checkErrorsMode",visibleIf:function(i){return i.checkErrorsMode==="onValueChanged"}},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"autoGrowComment:boolean",default:!1},{name:"allowResizeComment:boolean",default:!0},{name:"commentAreaRows:number",minValue:1},{name:"startSurveyText",serializationProperty:"locStartSurveyText",visibleIf:function(i){return i.firstPageIsStarted}},{name:"pagePrevText",serializationProperty:"locPagePrevText",visibleIf:function(i){return i.showNavigationButtons!=="none"&&i.showPrevButton}},{name:"pageNextText",serializationProperty:"locPageNextText",visibleIf:function(i){return i.showNavigationButtons!=="none"}},{name:"completeText",serializationProperty:"locCompleteText",visibleIf:function(i){return i.showNavigationButtons!=="none"}},{name:"previewText",serializationProperty:"locPreviewText",visibleIf:function(i){return i.showPreviewBeforeComplete!=="noPreview"}},{name:"editText",serializationProperty:"locEditText",visibleIf:function(i){return i.showPreviewBeforeComplete!=="noPreview"}},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(i){return!i||i.showQuestionNumbers!=="off"}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(i){return i?i.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["standard","singlePage","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"showTimer:boolean"},{name:"timeLimit:number",alternativeName:"maxTimeToFinish",default:0,minValue:0,enableIf:function(i){return i.showTimer}},{name:"timeLimitPerPage:number",alternativeName:"maxTimeToFinishPage",default:0,minValue:0,enableIf:function(i){return i.showTimer}},{name:"timerLocation",default:"top",choices:["top","bottom"],enableIf:function(i){return i.showTimer}},{name:"timerInfoMode",alternativeName:"showTimerPanelMode",default:"combined",choices:["page","survey","combined"],enableIf:function(i){return i.showTimer}},{name:"showTimerPanel",visible:!1,isSerializable:!1},{name:"widthMode",default:"auto",choices:["auto","static","responsive"]},{name:"gridLayoutEnabled:boolean",default:!1},{name:"width",visibleIf:function(i){return i.widthMode==="static"}},{name:"fitToContainer:boolean",default:!0,visible:!1},{name:"headerView",default:"basic",choices:["basic","advanced"],visible:!1},{name:"backgroundImage:file",visible:!1},{name:"backgroundImageFit",default:"cover",choices:["auto","contain","cover"],visible:!1},{name:"backgroundImageAttachment",default:"scroll",choices:["scroll","fixed"],visible:!1},{name:"backgroundOpacity:number",minValue:0,maxValue:1,default:1,visible:!1},{name:"showBrandInfo:boolean",default:!1,visible:!1}]);var Za=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),wo=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ts=function(i){Za(t,i);function t(e){var n=i.call(this,e)||this;n.otherItemValue=new re("other"),n.isSettingDefaultValue=!1,n.isSettingComment=!1,n.isRunningChoices=!1,n.isFirstLoadChoicesFromUrl=!0,n.isUpdatingChoicesDependedQuestions=!1,n._renderedChoices=[],n.renderedChoicesAnimation=new Nt(n.getRenderedChoicesAnimationOptions(),function(o){n._renderedChoices=o,n.renderedChoicesChangedCallback&&n.renderedChoicesChangedCallback()},function(){return n._renderedChoices}),n.headItemsCount=0,n.footItemsCount=0,n.prevIsOtherSelected=!1,n.noneItemValue=n.createDefaultItem(I.noneItemValue,"noneText","noneItemText"),n.refuseItemValue=n.createDefaultItem(I.refuseItemValue,"refuseText","refuseItemText"),n.dontKnowItemValue=n.createDefaultItem(I.dontKnowItemValue,"dontKnowText","dontKnowItemText"),n.createItemValues("choices"),n.registerPropertyChangedHandlers(["choices"],function(){n.filterItems()||n.onVisibleChoicesChanged()}),n.registerPropertyChangedHandlers(["choicesFromQuestion","choicesFromQuestionMode","choiceValuesFromQuestion","choiceTextsFromQuestion","showNoneItem","showRefuseItem","showDontKnowItem","isUsingRestful","isMessagePanelVisible"],function(){n.onVisibleChoicesChanged()}),n.registerPropertyChangedHandlers(["hideIfChoicesEmpty"],function(){n.onVisibleChanged()}),n.createNewArray("visibleChoices",function(){return n.updateRenderedChoices()},function(){return n.updateRenderedChoices()}),n.setNewRestfulProperty();var r=n.createLocalizableString("otherText",n.otherItemValue,!0,"otherItemText");return n.createLocalizableString("otherErrorText",n,!0,"otherRequiredError"),n.otherItemValue.locOwner=n,n.otherItemValue.setLocText(r),n.choicesByUrl.createItemValue=function(o){return n.createItemValue(o)},n.choicesByUrl.beforeSendRequestCallback=function(){n.onBeforeSendRequest()},n.choicesByUrl.getResultCallback=function(o){n.onLoadChoicesFromUrl(o)},n.choicesByUrl.updateResultCallback=function(o,s){return n.survey?n.survey.updateChoicesFromServer(n,o,s):o},n}return Object.defineProperty(t.prototype,"waitingChoicesByURL",{get:function(){return!this.isChoicesLoaded&&this.hasChoicesUrl},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"selectbase"},t.prototype.dispose=function(){i.prototype.dispose.call(this);var e=this.getQuestionWithChoices();e&&e.removeDependedQuestion(this)},Object.defineProperty(t.prototype,"otherTextAreaModel",{get:function(){return this.otherTextAreaModelValue||(this.otherTextAreaModelValue=new Fn(this.getOtherTextAreaOptions())),this.otherTextAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getOtherTextAreaOptions=function(){var e=this,n={question:this,id:function(){return e.otherId},propertyName:"otherValue",className:function(){return e.cssClasses.other},placeholder:function(){return e.otherPlaceholder},isDisabledAttr:function(){return e.isInputReadOnly||!1},rows:function(){return e.commentAreaRows},maxLength:function(){return e.getOthersMaxLength()},autoGrow:function(){return e.survey&&e.survey.autoGrowComment},ariaRequired:function(){return e.ariaRequired||e.a11y_input_ariaRequired},ariaLabel:function(){return e.ariaLabel||e.a11y_input_ariaLabel},getTextValue:function(){return e.otherValue},onTextAreaChange:function(r){e.onOtherValueChange(r)},onTextAreaInput:function(r){e.onOtherValueInput(r)}};return n},t.prototype.resetDependedQuestion=function(){this.choicesFromQuestion=""},Object.defineProperty(t.prototype,"otherId",{get:function(){return this.id+"_other"},enumerable:!1,configurable:!0}),t.prototype.getCommentElementsId=function(){return[this.commentId,this.otherId]},t.prototype.getItemValueType=function(){return"itemvalue"},t.prototype.createItemValue=function(e,n){var r=j.createClass(this.getItemValueType(),{value:e});return r.locOwner=this,n&&(r.text=n),r},Object.defineProperty(t.prototype,"isUsingCarryForward",{get:function(){return!!this.carryForwardQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"carryForwardQuestionType",{get:function(){return this.getPropertyValue("carryForwardQuestionType")},enumerable:!1,configurable:!0}),t.prototype.setCarryForwardQuestionType=function(e,n){var r=e?"select":n?"array":void 0;this.setPropertyValue("carryForwardQuestionType",r)},Object.defineProperty(t.prototype,"isUsingRestful",{get:function(){return this.getPropertyValueWithoutDefault("isUsingRestful")||!1},enumerable:!1,configurable:!0}),t.prototype.updateIsUsingRestful=function(){this.setPropertyValueDirectly("isUsingRestful",this.hasChoicesUrl)},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.otherValue},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.choicesOrder!=="none"&&(this.updateVisibleChoices(),this.onVisibleChoicesChanged())},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(re.locStrsChanged(this.choicesFromUrl),re.locStrsChanged(this.visibleChoices)),this.isUsingCarryForward&&re.locStrsChanged(this.visibleChoices)},t.prototype.updatePrevOtherErrorValue=function(e){var n=this.otherValue;e!==n&&(this.prevOtherErrorValue=n)},Object.defineProperty(t.prototype,"otherValue",{get:function(){return this.showCommentArea?this.otherValueCore:this.comment},set:function(e){this.updatePrevOtherErrorValue(e),this.showCommentArea?this.setOtherValueInternally(e):this.comment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherValueCore",{get:function(){return this.getPropertyValue("otherValue")},set:function(e){this.setPropertyValue("otherValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNoneSelected",{get:function(){return this.showNoneItem&&this.getIsItemValue(this.renderedValue,this.noneItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNoneItem",{get:function(){return this.getPropertyValue("showNoneItem")},set:function(e){this.setPropertyValue("showNoneItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.showNoneItem},set:function(e){this.showNoneItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText")},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRefuseItem",{get:function(){return this.getPropertyValue("showRefuseItem")},set:function(e){this.setPropertyValue("showRefuseItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refuseItem",{get:function(){return this.refuseItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refuseText",{get:function(){return this.getLocalizableStringText("refuseText")},set:function(e){this.setLocalizableStringText("refuseText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRefuseText",{get:function(){return this.getLocalizableString("refuseText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showDontKnowItem",{get:function(){return this.getPropertyValue("showDontKnowItem")},set:function(e){this.setPropertyValue("showDontKnowItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dontKnowItem",{get:function(){return this.dontKnowItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dontKnowText",{get:function(){return this.getLocalizableStringText("dontKnowText")},set:function(e){this.setLocalizableStringText("dontKnowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDontKnowText",{get:function(){return this.getLocalizableString("dontKnowText")},enumerable:!1,configurable:!0}),t.prototype.createDefaultItem=function(e,n,r){var o=new re(e),s=this.createLocalizableString(n,o,!0,r);return o.locOwner=this,o.setLocText(s),o},Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){this.filterItems()},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.runItemsEnableCondition(e,n),this.runItemsCondition(e,n),this.choices.forEach(function(r){r.runConditionCore(e,n)})},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),this.prevOtherValue=void 0;var e=this.comment;i.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1,this.comment&&this.getStoreOthersAsComment()&&e!==this.comment&&(this.setValueCore(this.setOtherValueIntoValue(this.value)),this.setCommentIntoData(this.comment))},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(e==null||e==null)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),n=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,n),this.runItemsCondition(e,n)},t.prototype.runItemsCondition=function(e,n){this.setConditionalChoicesRunner();var r=this.runConditionsForItems(e,n);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),r&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),r},t.prototype.runItemsEnableCondition=function(e,n){var r=this;this.setConditionalEnableChoicesRunner();var o=re.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,n,function(s,u){return u&&r.onEnableItemCallBack(s)});o&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.onSelectedItemValuesChangedHandler=function(e){var n;(n=this.survey)===null||n===void 0||n.loadedChoicesFromServer(this)},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.waitingChoicesByURL?this.createItemValue(e,n):null},t.prototype.getSingleSelectedItem=function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var n=re.getItemByValue(this.visibleChoices,this.value);return this.onGetSingleSelectedItem(n),!n&&(!e||this.value!=e.id)&&this.updateSelectedItemValues(),n||e||(this.isOtherSelected?this.otherItem:this.getItemIfChoicesNotContainThisValue(this.value))},t.prototype.onGetSingleSelectedItem=function(e){},t.prototype.getMultipleSelectedItems=function(){return[]},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new Ue(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new Ue(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.canSurveyChangeItemVisibility=function(){return!!this.survey&&this.survey.canChangeChoiceItemsVisibility()},t.prototype.changeItemVisibility=function(){var e=this;return this.canSurveyChangeItemVisibility()?function(n,r){return e.survey.getChoiceItemVisibility(e,n,r)}:null},t.prototype.runConditionsForItems=function(e,n){this.filteredChoicesValue=[];var r=this.changeItemVisibility();return re.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,n,!this.survey||!this.survey.areInvisibleElementsShowing,function(o,s){return r?r(o,s):s})},t.prototype.getHasOther=function(e){return this.getIsItemValue(e,this.otherItem)},t.prototype.getIsItemValue=function(e,n){return e===n.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new H},t.prototype.setNewRestfulProperty=function(){this.setPropertyValue("choicesByUrl",this.createRestful()),this.choicesByUrl.owner=this,this.choicesByUrl.loadingOwner=this},Object.defineProperty(t.prototype,"autoOtherMode",{get:function(){return this.getPropertyValue("autoOtherMode")},set:function(e){this.setPropertyValue("autoOtherMode",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionComment=function(){return this.showCommentArea?i.prototype.getQuestionComment.call(this):this.otherValueCore?this.otherValueCore:this.hasComment||this.getStoreOthersAsComment()?i.prototype.getQuestionComment.call(this):this.otherValueCore},t.prototype.selectOtherValueFromComment=function(e){e&&(this.prevIsOtherSelected=!0),this.value=e?this.otherItem.value:void 0},t.prototype.setQuestionComment=function(e){if(this.updatePrevOtherErrorValue(e),this.showCommentArea){i.prototype.setQuestionComment.call(this,e);return}this.onUpdateCommentOnAutoOtherMode(e),this.getStoreOthersAsComment()?i.prototype.setQuestionComment.call(this,e):this.setOtherValueInternally(e),this.updateChoicesDependedQuestions()},t.prototype.onUpdateCommentOnAutoOtherMode=function(e){if(this.autoOtherMode){this.prevOtherValue=void 0;var n=this.isOtherSelected;(!n&&e||n&&!e)&&this.selectOtherValueFromComment(!!e)}},t.prototype.setOtherValueInternally=function(e){!this.isSettingComment&&e!=this.otherValueCore&&(this.isSettingComment=!0,this.otherValueCore=e,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},t.prototype.clearValue=function(e){i.prototype.clearValue.call(this,e),this.prevOtherValue=void 0,this.selectedItemValues=void 0},t.prototype.updateCommentFromSurvey=function(e){i.prototype.updateCommentFromSurvey.call(this,e),this.prevOtherValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(n){if(!this.isReadOnlyAttr){this.setPropertyValue("renderedValue",n);var n=this.rendredValueToData(n);this.isTwoValueEquals(n,this.value)||(this.value=n)}},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(e,n,r){if(n===void 0&&(n=!0),r===void 0&&(r=!0),!(this.isLoadingFromJson||this.isTwoValueEquals(this.value,e))&&(i.prototype.setQuestionValue.call(this,e,n),this.setPropertyValue("renderedValue",this.rendredValueFromData(e)),this.updateChoicesDependedQuestions(),!(this.hasComment||!r))){var o=this.isOtherSelected;if(o&&this.prevOtherValue){var s=this.prevOtherValue;this.prevOtherValue=void 0,this.otherValue=s}!o&&this.otherValue&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevOtherValue=this.otherValue),this.makeCommentEmpty=!0,this.otherValueCore="",this.setPropertyValue("comment",""))}},t.prototype.setValueCore=function(e){i.prototype.setValueCore.call(this,e),this.makeCommentEmpty&&(this.setCommentIntoData(""),this.makeCommentEmpty=!1)},t.prototype.setNewValue=function(e){e=this.valueFromData(e),(!this.choicesByUrl.isRunning&&!this.choicesByUrl.isWaitingForParameters||!this.isValueEmpty(e))&&(this.cachedValueForUrlRequests=e),i.prototype.setNewValue.call(this,e)},t.prototype.valueFromData=function(e){var n=re.getItemByValue(this.activeChoices,e);return n?n.value:i.prototype.valueFromData.call(this,e)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0,!1)?(this.otherValue=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()&&(e=this.otherValue),e},t.prototype.needConvertRenderedOtherToDataValue=function(){var e=this.otherValue;return!e||(e=e.trim(),!e)?!1:this.hasUnknownValue(e,!0,!1)},t.prototype.getIsQuestionReady=function(){return i.prototype.getIsQuestionReady.call(this)&&!this.waitingChoicesByURL&&!this.waitingGetChoiceDisplayValueResponse},t.prototype.updateSelectedItemValues=function(){var e=this;if(!(this.waitingGetChoiceDisplayValueResponse||!this.survey||this.isEmpty())){var n=this.value,r=Array.isArray(n)?n:[n],o=r.some(function(s){return!re.getItemByValue(e.choices,s)});o&&(this.choicesLazyLoadEnabled||this.hasChoicesUrl)&&(this.waitingGetChoiceDisplayValueResponse=!0,this.updateIsReady(),this.survey.getChoiceDisplayValue({question:this,values:r,setItems:function(s){for(var u=[],d=1;d<arguments.length;d++)u[d-1]=arguments[d];if(e.waitingGetChoiceDisplayValueResponse=!1,!s||!s.length){e.updateIsReady();return}var y=s.map(function(V,T){return e.createItemValue(r[T],V)});e.setCustomValuesIntoItems(y,u),Array.isArray(n)?e.selectedItemValues=y:e.selectedItemValues=y[0],e.updateIsReady()}}))}},t.prototype.setCustomValuesIntoItems=function(e,n){!Array.isArray(n)||n.length===0||n.forEach(function(r){var o=r.values,s=r.propertyName;if(Array.isArray(o))for(var u=0;u<e.length&&u<o.length;u++)e[u][s]=o[u]})},t.prototype.hasUnknownValue=function(e,n,r,o){if(n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),!Array.isArray(e))return this.hasUnknownValueItem(e,n,r,o);for(var s=0;s<e.length;s++)if(this.hasUnknownValueItem(e,n,r,o))return!0;return!1},t.prototype.hasUnknownValueItem=function(e,n,r,o){if(n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),!o&&this.isValueEmpty(e)||n&&e==this.otherItem.value||this.showNoneItem&&e==this.noneItem.value||this.showRefuseItem&&e==this.refuseItem.value||this.showDontKnowItem&&e==this.dontKnowItem.value)return!1;var s=r?this.getFilteredChoices():this.activeChoices;return re.getItemByValue(s,e)==null},t.prototype.isValueDisabled=function(e){var n=re.getItemByValue(this.getFilteredChoices(),e);return!!n&&!n.isEnabled},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.updateVisibleChoices()},Object.defineProperty(t.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},set:function(e){e&&(this.setNewRestfulProperty(),this.choicesByUrl.fromJSON(e.toJSON()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestion",{get:function(){return this.getPropertyValue("choicesFromQuestion")},set:function(e){var n=this.getQuestionWithChoices();this.isLockVisibleChoices=!!n&&n.name===e,n&&n.name!==e&&(n.removeDependedQuestion(this),this.isInDesignMode&&!this.isLoadingFromJson&&e&&this.setPropertyValue("choicesFromQuestion",void 0)),this.setPropertyValue("choicesFromQuestion",e),this.isLockVisibleChoices=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestionMode",{get:function(){return this.getPropertyValue("choicesFromQuestionMode")},set:function(e){this.setPropertyValue("choicesFromQuestionMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceValuesFromQuestion",{get:function(){return this.getPropertyValue("choiceValuesFromQuestion")},set:function(e){this.setPropertyValue("choiceValuesFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceTextsFromQuestion",{get:function(){return this.getPropertyValue("choiceTextsFromQuestion")},set:function(e){this.setPropertyValue("choiceTextsFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty")},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){e=e.toLowerCase(),e!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText")},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.otherPlaceholder},set:function(e){this.otherPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText")},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],n=this.visibleChoices,r=0;r<n.length;r++)n[r].isEnabled&&e.push(n[r]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!(this.isLoadingFromJson||this.isDisposed)){var e=new Array,n=this.calcVisibleChoices();n||(n=[]);for(var r=0;r<n.length;r++)e.push(n[r]);var o=this.visibleChoices;(!this.isTwoValueEquals(o,e)||this.choicesLazyLoadEnabled)&&(this.setArrayPropertyDirectly("visibleChoices",e),this.updateRenderedChoices())}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.getFilteredChoices();var e=this.sortVisibleChoices(this.getFilteredChoices().slice());return this.addToVisibleChoices(e,this.isAddDefaultItems),e},t.prototype.canUseFilteredChoices=function(){return!this.isAddDefaultItems&&!this.showNoneItem&&!this.showRefuseItem&&!this.showDontKnowItem&&!this.hasOther&&this.choicesOrder=="none"},t.prototype.setCanShowOptionItemCallback=function(e){this.canShowOptionItemCallback=e,e&&this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"newItem",{get:function(){return this.newItemValue},enumerable:!1,configurable:!0}),t.prototype.addToVisibleChoices=function(e,n){this.headItemsCount=0,this.footItemsCount=0,this.isEmptyActiveChoicesInDesign||this.addNewItemToVisibleChoices(e,n);var r=new Array;this.addNonChoicesItems(r,n),r.sort(function(u,d){return u.index===d.index?0:u.index<d.index?-1:1});for(var o=0;o<r.length;o++){var s=r[o];s.index<0?(e.splice(o,0,s.item),this.headItemsCount++):(e.push(s.item),this.footItemsCount++)}},t.prototype.addNewItemToVisibleChoices=function(e,n){var r=this;n&&(this.newItemValue||(this.newItemValue=this.createItemValue("newitem"),this.newItemValue.isGhost=!0,this.newItemValue.registerFunctionOnPropertyValueChanged("isVisible",function(){r.updateVisibleChoices()})),this.newItemValue.isVisible&&!this.isUsingCarryForward&&this.canShowOptionItem(this.newItemValue,n,!1)&&(this.footItemsCount=1,e.push(this.newItemValue)))},t.prototype.addNonChoicesItems=function(e,n){this.supportNone()&&this.addNonChoiceItem(e,this.noneItem,n,this.showNoneItem,I.specialChoicesOrder.noneItem),this.supportRefuse()&&this.addNonChoiceItem(e,this.refuseItem,n,this.showRefuseItem,I.specialChoicesOrder.refuseItem),this.supportDontKnow()&&this.addNonChoiceItem(e,this.dontKnowItem,n,this.showDontKnowItem,I.specialChoicesOrder.dontKnowItem),this.supportOther()&&this.addNonChoiceItem(e,this.otherItem,n,this.hasOther,I.specialChoicesOrder.otherItem)},t.prototype.addNonChoiceItem=function(e,n,r,o,s){this.canShowOptionItem(n,r,o)&&s.forEach(function(u){return e.push({index:u,item:n})})},t.prototype.canShowOptionItem=function(e,n,r){var o=n&&(this.canShowOptionItemCallback?this.canShowOptionItemCallback(e):!0)||r;if(this.canSurveyChangeItemVisibility()){var s=this.changeItemVisibility();return s(e,o)}return o},t.prototype.isItemInList=function(e){return e===this.otherItem?this.hasOther:e===this.noneItem?this.showNoneItem:e===this.refuseItem?this.showRefuseItem:e===this.dontKnowItem?this.showDontKnowItem:e!==this.newItemValue},Object.defineProperty(t.prototype,"isAddDefaultItems",{get:function(){return I.showDefaultItemsInCreatorV2&&this.isInDesignModeV2&&!this.customWidget},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0,includeQuestionTypes:!1});var r=i.prototype.getPlainData.call(this,e);if(r){var o=Array.isArray(this.value)?this.value:[this.value];r.isNode=!0,r.data=(r.data||[]).concat(o.map(function(s,u){var d=re.getItemByValue(n.visibleChoices,s),y={name:u,title:"Choice",value:s,displayValue:n.getChoicesDisplayValue(n.visibleChoices,s),getString:function(V){return typeof V=="object"?JSON.stringify(V):V},isNode:!1};return d&&(e.calculations||[]).forEach(function(V){y[V.propertyName]=d[V.propertyName]}),n.isOtherSelected&&n.otherItemValue===d&&(y.isOther=!0,y.displayValue=n.otherValue),y}))}return r},t.prototype.getDisplayValueCore=function(e,n){return this.useDisplayValuesInDynamicTexts?this.getChoicesDisplayValue(this.visibleChoices,n):n},t.prototype.getDisplayValueEmpty=function(){return re.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,n){if(n==this.otherItemValue.value)return this.otherValue?this.otherValue:this.locOtherText.textOrHtml;var r=this.getSingleSelectedItem();if(r&&this.isTwoValueEquals(r.value,n))return r.locText.textOrHtml;var o=re.getTextOrHtmlByValue(e,n);return o==""&&n?n:o},t.prototype.getDisplayArrayValue=function(e,n,r){for(var o=this,s=this.visibleChoices,u=[],d=[],y=0;y<n.length;y++)d.push(r?r(y):n[y]);if(h.isTwoValueEquals(this.value,d)&&this.getMultipleSelectedItems().forEach(function(T,N){return u.push(o.getItemDisplayValue(T,d[N]))}),u.length===0)for(var y=0;y<d.length;y++){var V=this.getChoicesDisplayValue(s,d[y]);V&&u.push(V)}return u.join(I.choicesSeparator)},t.prototype.getItemDisplayValue=function(e,n){if(e===this.otherItem){if(this.hasOther&&this.showCommentArea&&n)return n;if(this.comment)return this.comment}return e.locText.textOrHtml},t.prototype.getFilteredChoices=function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},Object.defineProperty(t.prototype,"activeChoices",{get:function(){var e=this.getCarryForwardQuestion();return this.carryForwardQuestionType==="select"?(e.addDependedQuestion(this),this.getChoicesFromSelectQuestion(e)):this.carryForwardQuestionType==="array"?(e.addDependedQuestion(this),this.getChoicesFromArrayQuestion(e)):this.isEmptyActiveChoicesInDesign?[]:this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMessagePanelVisible",{get:function(){return this.getPropertyValue("isMessagePanelVisible",!1)},set:function(e){this.setPropertyValue("isMessagePanelVisible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmptyActiveChoicesInDesign",{get:function(){return this.isInDesignModeV2&&(this.hasChoicesUrl||this.isMessagePanelVisible)},enumerable:!1,configurable:!0}),t.prototype.getCarryForwardQuestion=function(e){var n=this.findCarryForwardQuestion(e),r=this.getQuestionWithChoicesCore(n),o=r?null:this.getQuestionWithArrayValue(n);return this.setCarryForwardQuestionType(!!r,!!o),r||o?n:null},t.prototype.getIsReadyDependsOn=function(){var e=i.prototype.getIsReadyDependsOn.call(this);return this.carryForwardQuestion&&e.push(this.carryForwardQuestion),e},t.prototype.getQuestionWithChoices=function(){return this.getQuestionWithChoicesCore(this.findCarryForwardQuestion())},t.prototype.findCarryForwardQuestion=function(e){return e||(e=this.data),this.carryForwardQuestion=null,this.choicesFromQuestion&&e&&(this.carryForwardQuestion=e.findQuestionByName(this.choicesFromQuestion)),this.carryForwardQuestion},t.prototype.getQuestionWithChoicesCore=function(e){return e&&e.visibleChoices&&j.isDescendantOf(e.getType(),"selectbase")&&e!==this?e:null},t.prototype.getQuestionWithArrayValue=function(e){return e&&e.isValueArray?e:null},t.prototype.getChoicesFromArrayQuestion=function(e){if(this.isInDesignMode)return[];var n=e.value;if(!Array.isArray(n))return[];for(var r=[],o=0;o<n.length;o++){var s=n[o];if(h.isValueObject(s)){var u=this.getValueKeyName(s);if(u&&!this.isValueEmpty(s[u])){var d=this.choiceTextsFromQuestion?s[this.choiceTextsFromQuestion]:void 0;r.push(this.createItemValue(s[u],d))}}}return r},t.prototype.getValueKeyName=function(e){if(this.choiceValuesFromQuestion)return this.choiceValuesFromQuestion;var n=Object.keys(e);return n.length>0?n[0]:void 0},t.prototype.getChoicesFromSelectQuestion=function(e){if(this.isInDesignMode)return[];for(var n=[],r=this.choicesFromQuestionMode=="selected"?!0:this.choicesFromQuestionMode=="unselected"?!1:void 0,o=e.visibleChoices,s=0;s<o.length;s++)if(!e.isBuiltInChoice(o[s])){if(r===void 0){n.push(this.copyChoiceItem(o[s]));continue}var u=e.isItemSelected(o[s]);(u&&r||!u&&!r)&&n.push(this.copyChoiceItem(o[s]))}return this.choicesFromQuestionMode==="selected"&&!this.showOtherItem&&e.isOtherSelected&&e.comment&&n.push(this.createItemValue(e.otherItem.value,e.comment)),n},t.prototype.copyChoiceItem=function(e){var n=this.createItemValue(e.value);return n.setData(e),n},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;(!e||e.length==0)&&(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var n=0;n<e.length;n++)if(!this.isBuiltInChoice(e[n]))return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e){return this.isNoneItem(e)||e===this.otherItem||e===this.newItemValue},t.prototype.isNoneItem=function(e){return this.getNoneItems().indexOf(e)>-1},t.prototype.getNoneItems=function(){return[this.noneItem,this.refuseItem,this.dontKnowItem]},t.prototype.getChoices=function(){return this.choices},t.prototype.supportOther=function(){return this.isSupportProperty("showOtherItem")},t.prototype.supportNone=function(){return this.isSupportProperty("showNoneItem")},t.prototype.supportRefuse=function(){return this.isSupportProperty("showRefuseItem")},t.prototype.supportDontKnow=function(){return this.isSupportProperty("showDontKnowItem")},t.prototype.isSupportProperty=function(e){return!this.isDesignMode||this.getPropertyByName(e).visible},t.prototype.onCheckForErrors=function(e,n,r){var o=this;if(i.prototype.onCheckForErrors.call(this,e,n,r),!(!this.hasOther||!this.isOtherSelected||this.otherValue||n&&!this.prevOtherErrorValue)){var s=new no(this.otherErrorText,this);s.onUpdateErrorTextCallback=function(u){u.text=o.otherErrorText},e.push(s)}},t.prototype.setSurveyImpl=function(e,n){this.isRunningChoices=!0,i.prototype.setSurveyImpl.call(this,e,n),this.isRunningChoices=!1,this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(e){i.prototype.setSurveyCore.call(this,e),e&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return this.isSettingDefaultValue||this.showCommentArea?!1:this.storeOthersAsComment===!0||this.storeOthersAsComment=="default"&&(this.survey!=null?this.survey.storeOthersAsComment:!0)||this.hasChoicesUrl&&!this.choicesFromUrl},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),i.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n),e!=this.getValueName()&&this.runChoicesByUrl();var r=this.choicesFromQuestion;e&&r&&(e===r||n===r)&&this.onVisibleChoicesChanged()},t.prototype.updateValueFromSurvey=function(e,n){var r="";this.hasOther&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(e)&&!this.getHasOther(e)?(r=this.getCommentFromValue(e),e=this.setOtherValueIntoValue(e)):this.data&&(r=this.data.getComment(this.getValueName()))),i.prototype.updateValueFromSurvey.call(this,e,n),(this.isRunningChoices||this.choicesByUrl.isRunning)&&!this.isEmpty()&&(this.cachedValueForUrlRequests=this.value),r&&this.setNewComment(r)},t.prototype.getCommentFromValue=function(e){return e},t.prototype.setOtherValueIntoValue=function(e){return this.otherItem.value},t.prototype.onOtherValueInput=function(e){this.isInputTextUpdate?e.target&&(this.otherValue=e.target.value):this.updateCommentElements()},t.prototype.onOtherValueChange=function(e){this.otherValue=e.target.value,this.otherValue!==e.target.value&&(e.target.value=this.otherValue)},t.prototype.runChoicesByUrl=function(){if(this.updateIsUsingRestful(),!(!this.choicesByUrl||this.isLoadingFromJson||this.isRunningChoices||this.isInDesignModeV2)){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.updateIsReady(),this.isRunningChoices=!0,this.choicesByUrl.run(e),this.isRunningChoices=!1)}},t.prototype.onBeforeSendRequest=function(){I.web.disableQuestionWhileLoadingChoices===!0&&!this.isReadOnly&&(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){this.enableOnLoadingChoices&&(this.readOnly=!1);var n=[];this.isReadOnly||this.choicesByUrl&&this.choicesByUrl.error&&n.push(this.choicesByUrl.error);var r=null,o=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,o=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value);var s=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,o);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(r=new Array,re.setData(r,e)),r)for(var u=0;u<r.length;u++)r[u].locOwner=this;this.setChoicesFromUrl(r,n,s)},t.prototype.canAvoidSettChoicesFromUrl=function(e){if(this.isFirstLoadChoicesFromUrl)return!1;var n=!e||Array.isArray(e)&&e.length===0;return n&&!this.isEmpty()?!1:h.isTwoValueEquals(this.choicesFromUrl,e)},t.prototype.setChoicesFromUrl=function(e,n,r){if(!this.canAvoidSettChoicesFromUrl(e)){if(this.isFirstLoadChoicesFromUrl=!1,this.choicesFromUrl=e,this.filterItems(),this.onVisibleChoicesChanged(),e){var o=this.updateCachedValueForUrlRequests(r,e);if(o&&!this.isReadOnly){var s=!this.isTwoValueEquals(this.value,o.value);try{this.isValueEmpty(o.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=s,s?this.value=o.value:this.setQuestionValue(o.value)}finally{this.allowNotifyValueChanged=!0}}}!this.isReadOnly&&!e&&!this.isFirstLoadChoicesFromUrl&&(this.value=null),this.errors=n,this.choicesLoaded()}},t.prototype.createCachedValueForUrlRequests=function(e,n){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],o=0;o<e.length;o++)r.push(this.createCachedValueForUrlRequests(e[o],!0));return r}var s=n?!this.hasUnknownValue(e):!0;return{value:e,isExists:s}},t.prototype.updateCachedValueForUrlRequests=function(e,n){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],o=0;o<e.length;o++){var s=this.updateCachedValueForUrlRequests(e[o],n);if(s&&!this.isValueEmpty(s.value)){var u=s.value,y=re.getItemByValue(n,s.value);y&&(u=y.value),r.push(u)}}return{value:r}}var d=e.isExists&&this.hasUnknownValue(e.value)?null:e.value,y=re.getItemByValue(n,d);return y&&(d=y.value),{value:d}},t.prototype.updateChoicesDependedQuestions=function(){this.isLoadingFromJson||this.isUpdatingChoicesDependedQuestions||!this.allowNotifyValueChanged||this.choicesByUrl.isRunning||(this.isUpdatingChoicesDependedQuestions=!0,this.updateDependedQuestions(),this.isUpdatingChoicesDependedQuestions=!1)},t.prototype.updateDependedQuestion=function(){this.onVisibleChoicesChanged(),this.clearIncorrectValues()},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),this.updateChoicesDependedQuestions()},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||this.isLockVisibleChoices||(this.updateVisibleChoices(),this.onVisibleChanged(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback(),this.updateChoicesDependedQuestions())},t.prototype.isVisibleCore=function(){var e=i.prototype.isVisibleCore.call(this);if(!this.hideIfChoicesEmpty||!e)return e;var n=this.isUsingCarryForward?this.visibleChoices:this.getFilteredChoices();return!n||n.length>0},t.prototype.sortVisibleChoices=function(e){if(this.isInDesignMode)return e;var n=this.choicesOrder.toLowerCase();return n=="asc"?this.sortArray(e,1):n=="desc"?this.sortArray(e,-1):n=="random"?this.randomizeArray(e):e},t.prototype.sortArray=function(e,n){return e.sort(function(r,o){return h.compareStrings(r.calculatedText,o.calculatedText)*n})},t.prototype.randomizeArray=function(e){return h.randomizeArray(e)},Object.defineProperty(t.prototype,"hasChoicesUrl",{get:function(){return this.choicesByUrl&&!!this.choicesByUrl.url},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(){!this.hasValueToClearIncorrectValues()||!this.canClearIncorrectValues()||(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore())},t.prototype.canClearIncorrectValues=function(){return!(this.carryForwardQuestion&&!this.carryForwardQuestion.isReady||this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1||this.hasChoicesUrl&&(!this.choicesFromUrl||this.choicesFromUrl.length==0))},t.prototype.hasValueToClearIncorrectValues=function(){return this.survey&&this.survey.keepIncorrectValues?!1:!this.keepIncorrectValues&&!this.isEmpty()},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e===this.otherItem?this.isOtherSelected:this.isItemSelectedCore(e)},t.prototype.isItemSelectedCore=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){!this.survey||!this.survey.clearValueOnDisableItems||this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknown(e)&&this.clearValue(!0)},t.prototype.canClearValueAnUnknown=function(e){return!this.getStoreOthersAsComment()&&this.isOtherSelected?!1:this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue(!0)},t.prototype.clearUnusedValues=function(){i.prototype.clearUnusedValues.call(this),this.isOtherSelected||(this.otherValue=""),!this.showCommentArea&&!this.getStoreOthersAsComment()&&!this.isOtherSelected&&(this.comment="")},t.prototype.getColumnClass=function(){return new _().append(this.cssClasses.column).append("sv-q-column-"+this.colCount,this.hasColumns).toString()},t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.getItemClass=function(e){var n={item:e},r=this.getItemClassCore(e,n);return n.css=r,this.survey&&this.survey.updateChoiceItemCss(this,n),n.css},t.prototype.getCurrentColCount=function(){return this.colCount},t.prototype.getItemClassCore=function(e,n){var r=new _().append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&this.colCount===0).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&this.colCount!==0).append(this.cssClasses.itemOnError,this.hasCssError()),o=this.getIsDisableAndReadOnlyStyles(!e.isEnabled),s=o[0],u=o[1],d=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,y=!u&&!d&&!(this.survey&&this.survey.isDesignMode),V=e===this.noneItem;return n.isDisabled=u||s,n.isChecked=d,n.isNone=V,r.append(this.cssClasses.itemDisabled,u).append(this.cssClasses.itemReadOnly,s).append(this.cssClasses.itemPreview,this.isPreviewStyle).append(this.cssClasses.itemChecked,d).append(this.cssClasses.itemHover,y).append(this.cssClasses.itemNone,V).toString()},t.prototype.getLabelClass=function(e){return new _().append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return new _().append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0},t.prototype.updateRenderedChoices=function(){this.renderedChoices=this.onGetRenderedChoicesCallback?this.onGetRenderedChoicesCallback(this.visibleChoices):this.visibleChoices},t.prototype.getRenderedChoicesAnimationOptions=function(){var e=this;return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getKey:function(n){return n!=e.newItemValue?n.value:e.newItemValue},getLeaveOptions:function(n){var r=e.cssClasses.itemLeave;if(e.hasColumns){var o=e.bodyItems.indexOf(n);o!==-1&&o!==e.bodyItems.length-1&&(r="")}return{cssClass:r,onBeforeRunAnimation:Vt,onAfterRunAnimation:Xe}},getAnimatedElement:function(n){return n.getRootElement()},getEnterOptions:function(n){var r=e.cssClasses.itemEnter;if(e.hasColumns){var o=e.bodyItems.indexOf(n);o!==-1&&o!==e.bodyItems.length-1&&(r="")}return{cssClass:r,onBeforeRunAnimation:function(s){if(e.getCurrentColCount()==0&&e.bodyItems.indexOf(n)>=0){var u=s.parentElement.firstElementChild.offsetLeft;s.offsetLeft>u&&un(s,{moveAnimationDuration:"0s",fadeAnimationDelay:"0s"},"--")}Vt(s)},onAfterRunAnimation:Xe}}}},Object.defineProperty(t.prototype,"renderedChoices",{get:function(){return this._renderedChoices},set:function(e){this.renderedChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headItems",{get:function(){for(var e=this.separateSpecialChoices||this.isInDesignMode?this.headItemsCount:0,n=[],r=0;r<e;r++)this.renderedChoices[r]&&n.push(this.renderedChoices[r]);return n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footItems",{get:function(){for(var e=this.separateSpecialChoices||this.isInDesignMode?this.footItemsCount:0,n=[],r=this.renderedChoices,o=0;o<e;o++)this.renderedChoices[r.length-e+o]&&n.push(this.renderedChoices[r.length-e+o]);return n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChoices",{get:function(){var e=this;return this.renderedChoices.filter(function(n){return!e.isBuiltInChoice(n)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.renderedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasHeadItems",{get:function(){return this.headItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFootItems",{get:function(){return this.footItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],n=this.getCurrentColCount();if(this.hasColumns&&this.renderedChoices.length>0){var r=!this.separateSpecialChoices&&!this.isInDesignMode?this.renderedChoices:this.dataChoices;if(I.showItemsInOrder=="column")for(var o=0,s=r.length%n,u=0;u<n;u++){for(var d=[],y=o;y<o+Math.floor(r.length/n);y++)d.push(r[y]);s>0&&(s--,d.push(r[y]),y++),o=y,e.push(d)}else for(var u=0;u<n;u++){for(var d=[],y=u;y<r.length;y+=n)d.push(r[y]);e.push(d)}}return e},enumerable:!1,configurable:!0}),t.prototype.getItemsColumnKey=function(e){return(e||[]).map(function(n){return n.value||""}).join("")},Object.defineProperty(t.prototype,"hasColumns",{get:function(){return!this.isMobile&&this.getCurrentColCount()>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowLayout",{get:function(){return this.getCurrentColCount()==0&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blockedRow",{get:function(){return this.getCurrentColCount()==0&&(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0,this.updateIsReady(),this.survey&&this.survey.loadedChoicesFromServer(this),this.loadedChoicesFromServerCallback&&this.loadedChoicesFromServerCallback()},t.prototype.getItemValueWrapperComponentName=function(e){var n=this.survey;return n?n.getItemValueWrapperComponentName(e,this):dn.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var n=this.survey;return n?n.getItemValueWrapperComponentData(e,this):e},t.prototype.ariaItemChecked=function(e){return this.renderedValue===e.value?"true":"false"},t.prototype.isOtherItem=function(e){return this.hasOther&&e.value==this.otherItem.value},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.getSelectBaseRootCss=function(){return new _().append(this.getQuestionRootCss()).append(this.cssClasses.rootRow,this.rowLayout).toString()},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getAriaItemLabel=function(e){return e.locText.renderedHtml},t.prototype.getItemId=function(e){return this.inputId+"_"+this.getItemIndex(e)},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.getItemEnabled=function(e){return!this.isDisabledAttr&&e.isEnabled},t.prototype.focusOtherComment=function(){var e;_e.FocusElement(this.otherId,!1,(e=this.survey)===null||e===void 0?void 0:e.rootElement)},t.prototype.onValueChanged=function(){i.prototype.onValueChanged.call(this),!this.isDesignMode&&!this.prevIsOtherSelected&&this.isOtherSelected&&this.focusOtherComment(),this.prevIsOtherSelected=this.isOtherSelected},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),wo([x({onSet:function(e,n){n.onSelectedItemValuesChangedHandler(e)}})],t.prototype,"selectedItemValues",void 0),wo([x()],t.prototype,"separateSpecialChoices",void 0),wo([x({localizable:!0})],t.prototype,"otherPlaceholder",void 0),wo([me()],t.prototype,"_renderedChoices",void 0),t}(Be),li=function(i){Za(t,i);function t(e){return i.call(this,e)||this}return Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:void 0)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){i.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t.prototype.onParentQuestionChanged=function(){this.onVisibleChoicesChanged()},t.prototype.getSearchableItemValueKeys=function(e){e.push("choices")},t}(Ts);function Rs(i,t){var e;if(!i)return!1;if(i.templateQuestion){var n=(e=i.colOwner)===null||e===void 0?void 0:e.data;if(i=i.templateQuestion,!i.getCarryForwardQuestion(n))return!1}return i.carryForwardQuestionType===t}j.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"choicesFromQuestion:question_carryforward",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return k("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(i){return Rs(i,"select")}},{name:"choiceValuesFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(i){return Rs(i,"array")}},{name:"choiceTextsFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(i){return Rs(i,"array")}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"choicesByUrl",onGetValue:function(i){return i.choicesByUrl.getData()},onSetValue:function(i,t){i.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean","choicesVisibleIf:condition",{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"defaultValue:value",visibleIf:function(i){return!i.choicesFromQuestion},dependsOn:"choicesFromQuestion"},{name:"correctAnswer:value",visibleIf:function(i){return!i.choicesFromQuestion},dependsOn:"choicesFromQuestion"},{name:"separateSpecialChoices:boolean",visible:!1},{name:"showOtherItem:boolean",alternativeName:"hasOther"},{name:"showNoneItem:boolean",alternativeName:"hasNone"},{name:"showRefuseItem:boolean",visible:!1,version:"1.9.128"},{name:"showDontKnowItem:boolean",visible:!1,version:"1.9.128"},{name:"otherPlaceholder",alternativeName:"otherPlaceHolder",serializationProperty:"locOtherPlaceholder",dependsOn:"showOtherItem",visibleIf:function(i){return i.hasOther}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(i){return i.showNoneItem}},{name:"refuseText",serializationProperty:"locRefuseText",dependsOn:"showRefuseItem",visibleIf:function(i){return i.showRefuseItem}},{name:"dontKnowText",serializationProperty:"locDontKnowText",dependsOn:"showDontKnowItem",visibleIf:function(i){return i.showDontKnowItem}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(i){return i.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(i){return i.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),j.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase");var Is=function(){function i(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}return Object.defineProperty(i.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),i}(),Qn=function(){function i(){}return i.calculatePosition=function(t,e,n,r,o,s){s===void 0&&(s="flex");var u=t.left,d=t.top;return s==="flex"&&(o=="center"?u=(t.left+t.right-n)/2:o=="left"?u=t.left-n:u=t.right),r=="middle"?d=(t.top+t.bottom-e)/2:r=="top"?d=t.top-e:d=t.bottom,o!="center"&&r!="middle"&&(r=="top"?d=d+t.height:d=d-t.height),{left:Math.round(u),top:Math.round(d)}},i.getCorrectedVerticalDimensions=function(t,e,n,r,o,s){o===void 0&&(o=!0),s===void 0&&(s={top:0,bottom:0});var u,d=n-i.bottomIndent;if(r==="top"&&(u={height:e,top:t}),t<-s.top)u={height:o?e+t:e,top:-s.top};else if(e+t>n){var y=Math.min(e,d-t);u={height:o?y:e,top:o?t:t-(e-y)}}return u&&(u.height=Math.min(u.height,d),u.top=Math.max(u.top,-s.top)),u},i.updateHorizontalDimensions=function(t,e,n,r,o,s){o===void 0&&(o="flex"),s===void 0&&(s={left:0,right:0}),e+=s.left+s.right;var u=void 0,d=t;return r==="center"&&(o==="fixed"?(t+e>n&&(u=n-t),d-=s.left):t<0?(d=s.left,u=Math.min(e,n)):e+t>n&&(d=n-e,d=Math.max(d,s.left),u=Math.min(e,n))),r==="left"&&t<0&&(d=s.left,u=Math.min(e,n)),r==="right"&&e+t>n&&(u=n-t),{width:u-s.left-s.right,left:d}},i.updateVerticalPosition=function(t,e,n,r,o){if(r==="middle")return r;var s=e-(t.top+(n!=="center"?t.height:0)),u=e+t.bottom-(n!=="center"?t.height:0)-o;return s>0&&u<=0&&r=="top"?r="bottom":u>0&&s<=0&&r=="bottom"?r="top":u>0&&s>0&&(r=s<u?"top":"bottom"),r},i.updateHorizontalPosition=function(t,e,n,r){if(n==="center")return n;var o=e-t.left,s=e+t.right-r;return o>0&&s<=0&&n=="left"?n="right":s>0&&o<=0&&n=="right"?n="left":s>0&&o>0&&(n=o<s?"left":"right"),n},i.calculatePopupDirection=function(t,e){var n;return e=="center"&&t!="middle"?n=t:e!="center"&&(n=e),n},i.calculatePointerTarget=function(t,e,n,r,o,s,u){s===void 0&&(s=0),u===void 0&&(u=0);var d={};return o!="center"?(d.top=t.top+t.height/2,d.left=t[o]):r!="middle"&&(d.top=t[r],d.left=t.left+t.width/2),d.left=Math.round(d.left-n),d.top=Math.round(d.top-e),o=="left"&&(d.left-=s+u),o==="center"&&(d.left-=s),d},i.bottomIndent=16,i}(),Ic=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Hn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ka='input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^="-"])',Ds=function(i){Ic(t,i);function t(e){var n=i.call(this)||this;return n.popupSelector=".sv-popup",n.fixedPopupContainer=".sv-popup",n.containerSelector=".sv-popup__container",n.scrollingContentSelector=".sv-popup__scrolling-content",n.visibilityAnimation=new In(n,function(r){n._isVisible!==r&&(r?(n.updateBeforeShowing(),n.updateIsVisible(r)):(n.updateOnHiding(),n.updateIsVisible(r),n.updateAfterHiding(),n._isPositionSetValue=!1))},function(){return n._isVisible}),n.onVisibilityChanged=new pt,n.onModelIsVisibleChangedCallback=function(){n.isVisible=n.model.isVisible},n._isPositionSetValue=!1,n.model=e,n.locale=n.model.locale,n}return t.prototype.updateIsVisible=function(e){this._isVisible=e,this.onVisibilityChanged.fire(this,{isVisible:e})},t.prototype.updateBeforeShowing=function(){this.model.onShow()},t.prototype.updateAfterHiding=function(){this.model.onHiding()},t.prototype.getLeaveOptions=function(){return{cssClass:"sv-popup--leave",onBeforeRunAnimation:function(e){e.setAttribute("inert","")},onAfterRunAnimation:function(e){return e.removeAttribute("inert")}}},t.prototype.getEnterOptions=function(){return{cssClass:"sv-popup--enter"}},t.prototype.getAnimatedElement=function(){return this.getAnimationContainer()},t.prototype.isAnimationEnabled=function(){return this.model.displayMode!=="overlay"&&I.animationEnabled},t.prototype.getRerenderEvent=function(){return this.onElementRerendered},t.prototype.getAnimationContainer=function(){var e;return(e=this.container)===null||e===void 0?void 0:e.querySelector(this.fixedPopupContainer)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this.visibilityAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.containerElement||this.createdContainer},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locale?this.locale:i.prototype.getLocale.call(this)},t.prototype.hidePopup=function(){this.model.isVisible=!1},t.prototype.getStyleClass=function(){return new _().append(this.model.cssClass).append("sv-popup--"+this.model.displayMode,this.isOverlay)},t.prototype.getShowFooter=function(){return this.isOverlay},t.prototype.getShowHeader=function(){return!1},t.prototype.getPopupHeaderTemplate=function(){},t.prototype.createFooterActionBar=function(){var e=this;this.footerToolbarValue=new xt,this.footerToolbar.updateCallback=function(r){e.footerToolbarValue.actions.forEach(function(o){return o.cssClasses={item:"sv-popup__body-footer-item sv-popup__button sd-btn"}})};var n=[{id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__button--cancel sd-btn",action:function(){e.cancel()}}];n=this.model.updateFooterActions(n),this.footerToolbarValue.setItems(n)},t.prototype.resetDimensionsAndPositionStyleProperties=function(){var e="inherit";this.top=e,this.left=e,this.height=e,this.width=e,this.minWidth=e},t.prototype.onModelChanging=function(e){},t.prototype.setupModel=function(e){this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.onModelChanging(e),this._model=e,e.onVisibilityChanged.add(this.onModelIsVisibleChangedCallback),this.onModelIsVisibleChangedCallback()},Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(e){this.setupModel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.model.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentName",{get:function(){return this.model.contentComponentName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentData",{get:function(){return this.model.contentComponentData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.model.isModal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContent",{get:function(){return this.model.isFocusedContent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContainer",{get:function(){return this.model.isFocusedContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.getShowFooter()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getShowHeader()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupHeaderTemplate",{get:function(){return this.getPopupHeaderTemplate()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOverlay",{get:function(){return this.model.displayMode==="overlay"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleClass",{get:function(){return this.getStyleClass().toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cancelButtonText",{get:function(){return this.getLocalizationString("modalCancelButtonText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.createFooterActionBar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.onKeyDown=function(e){e.key==="Tab"||e.keyCode===9?this.trapFocus(e):(e.key==="Escape"||e.keyCode===27)&&this.hidePopup()},t.prototype.trapFocus=function(e){var n=this.container.querySelectorAll(Ka),r=n[0],o=n[n.length-1];e.shiftKey?I.environment.root.activeElement===r&&(o.focus(),e.preventDefault()):I.environment.root.activeElement===o&&(r.focus(),e.preventDefault())},t.prototype.switchFocus=function(){this.isFocusedContent?this.focusFirstInput():this.isFocusedContainer&&this.focusContainer()},Object.defineProperty(t.prototype,"isPositionSet",{get:function(){return this._isPositionSetValue},enumerable:!1,configurable:!0}),t.prototype.updateOnShowing=function(){this.prevActiveElement=I.environment.root.activeElement,this.isOverlay&&this.resetDimensionsAndPositionStyleProperties(),this.switchFocus(),this._isPositionSetValue=!0},t.prototype.updateOnHiding=function(){this.isFocusedContent&&this.prevActiveElement&&this.prevActiveElement.focus({preventScroll:!0})},t.prototype.focusContainer=function(){if(this.container){var e=this.container.querySelector(this.popupSelector);e==null||e.focus()}},t.prototype.focusFirstInput=function(){var e=this;setTimeout(function(){if(e.container){var n=e.container.querySelector(e.model.focusFirstInputSelector||Ka);n?n.focus():e.focusContainer()}},100)},t.prototype.clickOutside=function(e){this.hidePopup(),e==null||e.stopPropagation()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.createdContainer&&(this.createdContainer.remove(),this.createdContainer=void 0),this.footerToolbarValue&&this.footerToolbarValue.dispose(),this.resetComponentElement()},t.prototype.initializePopupContainer=function(){if(!this.container){var e=R.createElement("div");this.createdContainer=e,Ln(I.environment.popupMountContainer).appendChild(e)}},t.prototype.setComponentElement=function(e){e&&(this.containerElement=e)},t.prototype.resetComponentElement=function(){this.containerElement=void 0,this.prevActiveElement=void 0},t.prototype.preventScrollOuside=function(e,n){for(var r=e.target;r!==this.container;){if(R.getComputedStyle(r).overflowY==="auto"&&r.scrollHeight!==r.offsetHeight){var o=r.scrollHeight,s=r.scrollTop,u=r.clientHeight;if(!(n>0&&Math.abs(o-u-s)<1)&&!(n<0&&s<=0))return}r=r.parentElement}e.cancelable&&e.preventDefault()},Hn([x({defaultValue:"0px"})],t.prototype,"top",void 0),Hn([x({defaultValue:"0px"})],t.prototype,"left",void 0),Hn([x({defaultValue:"auto"})],t.prototype,"height",void 0),Hn([x({defaultValue:"auto"})],t.prototype,"width",void 0),Hn([x({defaultValue:"auto"})],t.prototype,"minWidth",void 0),Hn([x({defaultValue:!1})],t.prototype,"_isVisible",void 0),Hn([x()],t.prototype,"locale",void 0),t}(fe),Dc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),As=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function Ya(i,t){var e=i||B.getInnerWidth(),n=t||B.getInnerHeight(),r=Math.min(e,n),o=r>=Ls.tabletSizeBreakpoint;return o}var Ls=function(i){Dc(t,i);function t(e){var n=i.call(this,e)||this;return n.scrollEventCallBack=function(r){if(n.isOverlay&&Le){r.stopPropagation(),r.preventDefault();return}n.hidePopup()},n.resizeEventCallback=function(){if(B.isAvailable()){var r=B.getVisualViewport(),o=R.getDocumentElement();o&&r&&o.style.setProperty("--sv-popup-overlay-height",r.height*r.scale+"px")}},n.resizeWindowCallback=function(){n.isOverlay||n.updatePosition(!0,dn.platform==="vue"||dn.platform==="vue3"||dn.platform=="react")},n.clientY=0,n.isTablet=!1,n.touchStartEventCallback=function(r){n.clientY=r.touches[0].clientY},n.touchMoveEventCallback=function(r){n.preventScrollOuside(r,n.clientY-r.changedTouches[0].clientY)},n.model.onRecalculatePosition.add(n.recalculatePositionHandler),n}return t.prototype.calculateIsTablet=function(e,n){this.isTablet=Ya(e,n)},t.prototype.getAvailableAreaRect=function(){var e=this.model.getAreaCallback?this.model.getAreaCallback(this.container):void 0;if(e){var n=e.getBoundingClientRect();return new Is(n.x,n.y,n.width,n.height)}return new Is(0,0,B.getInnerWidth(),B.getInnerHeight())},t.prototype.getTargetElementRect=function(){var e=this.container,n=this.model.getTargetCallback?this.model.getTargetCallback(e):void 0;if(e&&e.parentElement&&!this.isModal&&!n&&(n=e.parentElement),!n)return null;var r=n.getBoundingClientRect(),o=this.getAvailableAreaRect();return new Is(r.left-o.left,r.top-o.top,r.width,r.height)},t.prototype._updatePosition=function(){var e,n,r,o=this.getTargetElementRect();if(o){var s=this.getAvailableAreaRect(),u=(e=this.container)===null||e===void 0?void 0:e.querySelector(this.containerSelector);if(u){var d=(n=this.container)===null||n===void 0?void 0:n.querySelector(this.fixedPopupContainer),y=u.querySelector(this.scrollingContentSelector),V=R.getComputedStyle(u),T=parseFloat(V.marginLeft)||0,N=parseFloat(V.marginRight)||0,U=parseFloat(V.marginTop)||0,W=parseFloat(V.marginBottom)||0,X=u.offsetHeight-y.offsetHeight+y.scrollHeight,Y=u.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=o.width+"px");var J=this.model.verticalPosition,ue=this.getActualHorizontalPosition();if(B.isAvailable()){var Me=[X,B.getInnerHeight()*.9,(r=B.getVisualViewport())===null||r===void 0?void 0:r.height];X=Math.ceil(Math.min.apply(Math,Me.filter(function(Un){return typeof Un=="number"}))),J=Qn.updateVerticalPosition(o,X,this.model.horizontalPosition,this.model.verticalPosition,s.height),ue=Qn.updateHorizontalPosition(o,Y,ue,s.width)}this.popupDirection=Qn.calculatePopupDirection(J,ue);var Ne=Qn.calculatePosition(o,X,Y+T+N,J,ue,this.model.positionMode);if(B.isAvailable()){var St=Qn.getCorrectedVerticalDimensions(Ne.top,X,s.height,J,this.model.canShrink,{top:U,bottom:W});if(St&&(this.height=St.height+"px",Ne.top=St.top),this.model.setWidthByTarget)this.width=o.width+"px",Ne.left=o.left;else{var Tt=Qn.updateHorizontalDimensions(Ne.left,Y,B.getInnerWidth(),ue,this.model.positionMode,{left:T,right:N});Tt&&(this.width=Tt.width?Tt.width+"px":void 0,Ne.left=Tt.left)}}if(d){var wr=d.getBoundingClientRect();Ne.top-=wr.top,Ne.left-=wr.left}Ne.left+=s.left,Ne.top+=s.top,this.left=Ne.left+"px",this.top=Ne.top+"px",this.showHeader&&(this.pointerTarget=Qn.calculatePointerTarget(o,Ne.top,Ne.left,J,ue,T,N),this.pointerTarget.top+="px",this.pointerTarget.left+="px")}}},t.prototype.getActualHorizontalPosition=function(){var e=this.model.horizontalPosition;if(R.isAvailable()){var n=R.getComputedStyle(R.getBody()).direction=="rtl";n&&(this.model.horizontalPosition==="left"?e="right":this.model.horizontalPosition==="right"&&(e="left"))}return e},t.prototype.getStyleClass=function(){var e=this.model.overlayDisplayMode;return i.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--dropdown-overlay",this.isOverlay&&e!=="plain").append("sv-popup--tablet",this.isOverlay&&(e=="tablet-dropdown-overlay"||e=="auto"&&this.isTablet)).append("sv-popup--show-pointer",!this.isOverlay&&this.showHeader).append("sv-popup--"+this.popupDirection,!this.isOverlay&&(this.showHeader||this.popupDirection=="top"||this.popupDirection=="bottom"))},t.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},t.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},t.prototype.setComponentElement=function(e){i.prototype.setComponentElement.call(this,e)},t.prototype.resetComponentElement=function(){i.prototype.resetComponentElement.call(this)},t.prototype.updateOnShowing=function(){var e=I.environment.root;this.prevActiveElement=e.activeElement,this.isOverlay?this.resetDimensionsAndPositionStyleProperties():this.updatePosition(!0,!1),this.switchFocus(),B.addEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(B.getVisualViewport().addEventListener("resize",this.resizeEventCallback),this.container&&(this.container.addEventListener("touchstart",this.touchStartEventCallback),this.container.addEventListener("touchmove",this.touchMoveEventCallback)),this.calculateIsTablet(),this.resizeEventCallback()),B.addEventListener("scroll",this.scrollEventCallBack),this._isPositionSetValue=!0},Object.defineProperty(t.prototype,"shouldCreateResizeCallback",{get:function(){return!!B.getVisualViewport()&&this.isOverlay&&Le},enumerable:!1,configurable:!0}),t.prototype.updatePosition=function(e,n){var r=this;n===void 0&&(n=!0),e&&(this.height="auto"),n?setTimeout(function(){r._updatePosition()},1):this._updatePosition()},t.prototype.updateOnHiding=function(){i.prototype.updateOnHiding.call(this),B.removeEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(B.getVisualViewport().removeEventListener("resize",this.resizeEventCallback),this.container&&(this.container.removeEventListener("touchstart",this.touchStartEventCallback),this.container.removeEventListener("touchmove",this.touchMoveEventCallback))),B.removeEventListener("scroll",this.scrollEventCallBack),this.isDisposed||(this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.minWidth=void 0)},t.prototype.onModelChanging=function(e){var n=this;this.model&&this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler||(this.recalculatePositionHandler=function(r,o){n.isOverlay||n.updatePosition(o.isResetHeight)}),i.prototype.onModelChanging.call(this,e),e.onRecalculatePosition.add(this.recalculatePositionHandler)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.updateOnHiding(),this.model&&(this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler=void 0),this.resetComponentElement()},t.tabletSizeBreakpoint=600,As([x()],t.prototype,"isTablet",void 0),As([x({defaultValue:"left"})],t.prototype,"popupDirection",void 0),As([x({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(Ds),Ac=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Po=function(i){Ac(t,i);function t(e,n){var r=i.call(this)||this;r.question=e,r.onSelectionChanged=n,r.minPageSize=25,r.loadingItemHeight=40,r.timer=void 0,r._markdownMode=!1,r.filteredItems=void 0,r.selectedItemSelector=".sv-list__item--selected",r.itemSelector=".sv-list__item",r.itemsSettings={skip:0,take:0,totalCount:0,items:[]},r.listModelFilterStringChanged=function(s){r.filterString!==s&&(r.filterString=s)},r.questionPropertyChangedHandler=function(s,u){r.onPropertyChangedHandler(s,u)},r.htmlCleanerElement=R.createElement("div"),e.onPropertyChanged.add(r.questionPropertyChangedHandler),r.showInputFieldComponent=r.question.showInputFieldComponent,r.listModel=r.createListModel(),r.updateAfterListModelCreated(r.listModel),r.setChoicesLazyLoadEnabled(r.question.choicesLazyLoadEnabled),r.setSearchEnabled(r.question.searchEnabled),r.setTextWrapEnabled(r.question.textWrapEnabled),r.createPopup(),r.resetItemsSettings();var o=e.cssClasses;return r.updateCssClasses(o.popup,o.list),r}return Object.defineProperty(t.prototype,"focusFirstInputSelector",{get:function(){return this.getFocusFirstInputSelector()},enumerable:!1,configurable:!0}),t.prototype.getFocusFirstInputSelector=function(){return Le?this.isValueEmpty(this.question.value)?this.itemSelector:this.selectedItemSelector:!this.listModel.showFilter&&this.question.value?this.selectedItemSelector:""},t.prototype.resetItemsSettings=function(){this.itemsSettings.skip=0,this.itemsSettings.take=Math.max(this.minPageSize,this.question.choicesLazyLoadPageSize),this.itemsSettings.totalCount=0,this.itemsSettings.items=[]},t.prototype.setItems=function(e,n){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.itemsSettings.totalCount=n,this.listModel.isAllDataLoaded=this.question.choicesLazyLoadEnabled&&this.itemsSettings.items.length==this.itemsSettings.totalCount,this.question.choices=this.itemsSettings.items},t.prototype.loadQuestionChoices=function(e){var n=this;this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:function(r,o){n.setItems(r||[],o||0),n.popupRecalculatePosition(n.itemsSettings.skip===n.itemsSettings.take),e&&e()}}),this.itemsSettings.skip+=this.itemsSettings.take},t.prototype.updateQuestionChoices=function(e){var n=this,r=this.itemsSettings.skip+1<this.itemsSettings.totalCount;(!this.itemsSettings.skip||r)&&(this.resetTimer(),this.filterString&&I.dropdownSearchDelay>0?this.timer=setTimeout(function(){n.loadQuestionChoices(e)},I.dropdownSearchDelay):this.loadQuestionChoices(e))},t.prototype.resetTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=void 0)},t.prototype.updatePopupFocusFirstInputSelector=function(){this._popupModel.focusFirstInputSelector=this.focusFirstInputSelector},t.prototype.getDropdownMenuOptions=function(){var e=B.getInnerWidth(),n=B.getInnerHeight(),r=Ya(e,n),o="dropdown",s="desktop";return Le&&(o=r?"popup":"overlay",s=r?"tablet":"mobile"),{menuType:o,deviceType:s,hasTouchScreen:Le,screenHeight:n,screenWidth:e}},t.prototype.createPopup=function(){var e=this,n={verticalPosition:"bottom",horizontalPosition:"center",showPointer:!1};this._popupModel=new On("sv-list",{model:this.listModel},n),this._popupModel.displayMode=Le?"overlay":"popup",this._popupModel.positionMode="fixed",this._popupModel.isFocusedContainer=!1,this._popupModel.isFocusedContent=Le,this._popupModel.setWidthByTarget=!Le,this._popupModel.locale=this.question.getLocale(),this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers(["showFilter"],function(){e.updatePopupFocusFirstInputSelector()}),this._popupModel.onVisibilityChanged.add(function(r,o){if(o.isVisible&&(e.listModel.renderElements=!0),o.isVisible&&e.question.choicesLazyLoadEnabled&&(e.listModel.actions=[],e.resetItemsSettings(),e.updateQuestionChoices()),o.isVisible){e.updatePopupFocusFirstInputSelector();var s=e.getDropdownMenuOptions(),u=s.menuType;e.question.processOpenDropdownMenu(s),u!==s.menuType&&(e._popupModel.updateDisplayMode(s.menuType),e.listModel.setSearchEnabled(e.searchEnabled&&s.menuType!=="dropdown")),e.question.onOpenedCallBack&&e.question.onOpenedCallBack()}o.isVisible||(e.onHidePopup(),e.question.choicesLazyLoadEnabled&&e.resetItemsSettings()),e.question.ariaExpanded=o.isVisible?"true":"false",e.question.processPopupVisiblilityChanged(e.popupModel,o.isVisible)})},t.prototype.setFilterStringToListModel=function(e){var n=this;if(this.listModel.filterString=e,this.listModel.resetFocusedItem(),this.question.selectedItem&&this.question.selectedItem.text.indexOf(e)>=0){this.listModel.focusedItem=this.getAvailableItems().filter(function(r){return r.id==n.question.selectedItem.value})[0],this.listModel.filterString&&this.listModel.actions.map(function(r){return r.selectedValue=!1});return}(!this.listModel.focusedItem||!this.listModel.isItemVisible(this.listModel.focusedItem))&&this.listModel.focusFirstVisibleItem()},t.prototype.setTextWrapEnabled=function(e){this.listModel.textWrapEnabled=e},t.prototype.popupRecalculatePosition=function(e){var n=this;setTimeout(function(){n.popupModel.recalculatePosition(e)},1)},t.prototype.onHidePopup=function(){this.resetFilterString(),this.question.suggestedItem=null},t.prototype.getAvailableItems=function(){return this.question.visibleChoices},t.prototype.setOnTextSearchCallbackForListModel=function(e){var n=this;e.setOnTextSearchCallback(function(r,o){if(n.filteredItems)return n.filteredItems.indexOf(r)>=0;var s=r.text.toLocaleLowerCase();s=I.comparator.normalizeTextCallback(s,"filter");var u=s.indexOf(o.toLocaleLowerCase());return n.question.searchMode=="startsWith"?u==0:u>-1})},t.prototype.createListModel=function(){var e=this,n=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(u){e.question.value=u.id,e.question.searchEnabled&&e.applyInputString(u),e.popupModel.hide()});var o={items:n,onSelectionChanged:r,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},s=new on(o);return this.setOnTextSearchCallbackForListModel(s),s.renderElements=!1,s.forceShowFilter=!0,s.areSameItemsCallback=function(u,d){return u===d},s},t.prototype.updateAfterListModelCreated=function(e){var n=this;e.isItemSelected=function(r){return!!r.selected},e.onPropertyChanged.add(function(r,o){o.name=="hasVerticalScroller"&&(n.hasScroll=o.newValue)}),e.isAllDataLoaded=!this.question.choicesLazyLoadEnabled,e.actions.forEach(function(r){return r.disableTabStop=!0})},t.prototype.getPopupCssClasses=function(){return"sv-single-select-list"},t.prototype.updateCssClasses=function(e,n){this.popupModel.cssClass=new _().append(e).append(this.getPopupCssClasses()).toString(),this.listModel.cssClasses=n},t.prototype.resetFilterString=function(){this.filterString&&(this.filterString=void 0)},t.prototype.clear=function(){this.inputString=null,this.hintString="",this.resetFilterString()},t.prototype.onSetFilterString=function(){var e=this;if(this.filteredItems=void 0,!(!this.filterString&&!this.popupModel.isVisible)){var n={question:this.question,choices:this.getAvailableItems(),filter:this.filterString,filteredChoices:void 0};this.question.survey.onChoicesSearch.fire(this.question.survey,n),this.filteredItems=n.filteredChoices,this.filterString&&!this.popupModel.isVisible&&this.popupModel.show();var r=function(){e.setFilterStringToListModel(e.filterString),e.popupRecalculatePosition(!0)};this.question.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(r)):r()}},Object.defineProperty(t.prototype,"isAllDataLoaded",{get:function(){return!!this.itemsSettings.totalCount&&this.itemsSettings.items.length==this.itemsSettings.totalCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowSelectedItem",{get:function(){return!this.focused||this._markdownMode||!this.searchEnabled},enumerable:!1,configurable:!0}),t.prototype.applyInputString=function(e){var n=e==null?void 0:e.locText.hasHtml;n||this.question.inputFieldComponentName?(this._markdownMode=!0,this.inputString=this.cleanHtml(e==null?void 0:e.locText.getHtmlValue()),this.hintString=""):(this.inputString=e==null?void 0:e.title,this.hintString=e==null?void 0:e.title)},t.prototype.cleanHtml=function(e){return this.htmlCleanerElement?(this.htmlCleanerElement.innerHTML=e,this.htmlCleanerElement.textContent):""},t.prototype.fixInputCase=function(){var e=this.hintStringMiddle;e&&this.inputString!=e&&(this.inputString=e)},t.prototype.applyHintString=function(e){var n=e==null?void 0:e.locText.hasHtml;n||this.question.inputFieldComponentName?(this._markdownMode=!0,this.hintString=""):this.hintString=e==null?void 0:e.title},Object.defineProperty(t.prototype,"inputStringRendered",{get:function(){return this.inputString||""},set:function(e){this.inputString=e,this.filterString=e,e?this.applyHintString(this.listModel.focusedItem||this.question.selectedItem):this.hintString=""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderRendered",{get:function(){return this.hintString?"":this.question.readOnlyText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"listElementId",{get:function(){return this.question.inputId+"_list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringLC",{get:function(){var e;return((e=this.hintString)===null||e===void 0?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputStringLC",{get:function(){var e;return((e=this.inputString)===null||e===void 0?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintPrefix",{get:function(){return!!this.inputString&&this.hintStringLC.indexOf(this.inputStringLC)>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringPrefix",{get:function(){return this.inputString?this.hintString.substring(0,this.hintStringLC.indexOf(this.inputStringLC)):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintString",{get:function(){return!!this.question.searchEnabled&&this.hintStringLC&&this.hintStringLC.indexOf(this.inputStringLC)>=0||!this.question.searchEnabled&&this.hintStringLC&&this.question.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringSuffix",{get:function(){return this.hintString.substring(this.hintStringLC.indexOf(this.inputStringLC)+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringMiddle",{get:function(){var e=this.hintStringLC.indexOf(this.inputStringLC);return e==-1?null:this.hintString.substring(e,e+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this._popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noTabIndex",{get:function(){return this.question.isInputReadOnly||this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterReadOnly",{get:function(){return this.question.isInputReadOnly||!this.searchEnabled||!this.focused},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterStringEnabled",{get:function(){return!this.question.isInputReadOnly&&this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputMode",{get:function(){return Le?"none":"text"},enumerable:!1,configurable:!0}),t.prototype.setSearchEnabled=function(e){this.listModel.setSearchEnabled(Le&&e),this.searchEnabled=e},t.prototype.setChoicesLazyLoadEnabled=function(e){this.listModel.setOnFilterStringChangedCallback(e?this.listModelFilterStringChanged:void 0)},t.prototype.updateItems=function(){this.listModel.setItems(this.getAvailableItems())},t.prototype.onClick=function(e){this.question.readOnly||this.question.isDesignMode||this.question.isPreviewStyle||this.question.isReadOnlyAttr||(this._popupModel.toggleVisibility(),this.focusItemOnClickAndPopup(),this.question.focusInputElement(!1))},t.prototype.chevronPointerDown=function(e){this._popupModel.isVisible&&e.preventDefault()},t.prototype.onPropertyChangedHandler=function(e,n){n.name=="value"&&(this.showInputFieldComponent=this.question.showInputFieldComponent),n.name=="textWrapEnabled"&&this.setTextWrapEnabled(n.newValue)},t.prototype.focusItemOnClickAndPopup=function(){this._popupModel.isVisible&&this.question.value&&this.changeSelectionWithKeyboard(!1)},t.prototype.onClear=function(e){this.question.clearValue(!0),this._popupModel.hide(),e&&(e.preventDefault(),e.stopPropagation())},t.prototype.getSelectedAction=function(){return this.question.selectedItem||null},t.prototype.changeSelectionWithKeyboard=function(e){var n,r=this.listModel.focusedItem;!r&&this.question.selectedItem?re.getItemByValue(this.question.visibleChoices,this.question.value)&&(this.listModel.focusedItem=this.question.selectedItem):e?this.listModel.focusPrevVisibleItem():this.listModel.focusNextVisibleItem(),this.beforeScrollToFocusedItem(r),this.scrollToFocusedItem(),this.afterScrollToFocusedItem(),this.ariaActivedescendant=(n=this.listModel.focusedItem)===null||n===void 0?void 0:n.elementId},t.prototype.beforeScrollToFocusedItem=function(e){this.question.value&&e&&(e.selectedValue=!1,this.listModel.focusedItem.selectedValue=!this.listModel.filterString,this.question.suggestedItem=this.listModel.focusedItem)},t.prototype.afterScrollToFocusedItem=function(){var e;this.question.value&&!this.listModel.filterString&&this.question.searchEnabled?this.applyInputString(this.listModel.focusedItem||this.question.selectedItem):this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.fixInputCase(),this.ariaActivedescendant=(e=this.listModel.focusedItem)===null||e===void 0?void 0:e.elementId},t.prototype.keyHandler=function(e){var n=e.which||e.keyCode;if(this.popupModel.isVisible&&e.keyCode===38?(this.changeSelectionWithKeyboard(!0),e.preventDefault(),e.stopPropagation()):e.keyCode===40&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()),e.keyCode===9)this.popupModel.hide();else if(!this.popupModel.isVisible&&(e.keyCode===13||e.keyCode===32))e.keyCode===32&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1)),e.keyCode===13&&this.question.survey.questionEditFinishCallback(this.question,e),e.preventDefault(),e.stopPropagation();else if(this.popupModel.isVisible&&(e.keyCode===13||e.keyCode===32&&(!this.question.searchEnabled||!this.inputString)))e.keyCode===13&&this.question.searchEnabled&&!this.inputString&&this.question instanceof ui&&!this._markdownMode&&this.question.value?(this._popupModel.hide(),this.onClear(e)):(this.listModel.selectFocusedItem(),this.onFocus(e)),e.preventDefault(),e.stopPropagation();else if(n===46||n===8)this.searchEnabled||this.onClear(e);else if(e.keyCode===27)this._popupModel.hide(),this.hintString="",this.onEscape();else{if((e.keyCode===38||e.keyCode===40||e.keyCode===32&&!this.question.searchEnabled)&&(e.preventDefault(),e.stopPropagation()),e.keyCode===32&&this.question.searchEnabled)return;fr(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly})}},t.prototype.onEscape=function(){this.question.searchEnabled&&this.applyInputString(this.question.selectedItem)},t.prototype.onScroll=function(e){var n=e.target;n.scrollHeight-(n.scrollTop+n.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()},t.prototype.onBlur=function(e){if(this.focused=!1,this.popupModel.isVisible&&Le){this._popupModel.show();return}Wi(e),this._popupModel.hide(),this.resetFilterString(),this.inputString=null,this.hintString="",e.stopPropagation()},t.prototype.onFocus=function(e){this.focused=!0,this.setInputStringFromSelectedItem(this.question.selectedItem)},t.prototype.setInputStringFromSelectedItem=function(e){this.focused&&(this.question.searchEnabled&&e?this.applyInputString(e):this.inputString=null)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.question&&this.question.onPropertyChanged.remove(this.questionPropertyChangedHandler),this.questionPropertyChangedHandler=void 0,this.listModel&&this.listModel.dispose(),this.popupModel&&this.popupModel.dispose(),this.htmlCleanerElement=void 0},t.prototype.scrollToFocusedItem=function(){this.listModel.scrollToFocusedItem()},gn([x({defaultValue:!1})],t.prototype,"focused",void 0),gn([x({defaultValue:!0})],t.prototype,"searchEnabled",void 0),gn([x({defaultValue:"",onSet:function(e,n){n.onSetFilterString()}})],t.prototype,"filterString",void 0),gn([x({defaultValue:"",onSet:function(e,n){n.question.inputHasValue=!!e}})],t.prototype,"inputString",void 0),gn([x({})],t.prototype,"showInputFieldComponent",void 0),gn([x()],t.prototype,"ariaActivedescendant",void 0),gn([x({defaultValue:!1,onSet:function(e,n){e?n.listModel.addScrollEventListener(function(r){n.onScroll(r)}):n.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),gn([x({defaultValue:""})],t.prototype,"hintString",void 0),t}(fe),Lc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Yt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ui=function(i){Lc(t,i);function t(e){var n=i.call(this,e)||this;return n.lastSelectedItemValue=null,n.minMaxChoices=[],n.onOpened=n.addEvent(),n.ariaExpanded="false",n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.registerPropertyChangedHandlers(["choicesMin","choicesMax","choicesStep"],function(){n.onVisibleChoicesChanged()}),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],function(){n.updateReadOnlyText()}),n.updateReadOnlyText(),n}return t.prototype.updateReadOnlyText=function(){var e=this.selectedItem?"":this.placeholder;this.renderAs=="select"&&(this.isOtherSelected?e=this.otherText:this.isNoneSelected?e=this.noneText:this.selectedItem&&(e=this.selectedItemText)),this.readOnlyText=e},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.updateReadOnlyText()},Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.allowClear},set:function(e){this.allowClear=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||I.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"dropdown"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),t.prototype.onGetSingleSelectedItem=function(e){e&&(this.lastSelectedItemValue=e)},t.prototype.supportGoNextPageAutomatic=function(){return!this.isOtherSelected},t.prototype.getChoices=function(){var e=i.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return e;for(var n=[],r=0;r<e.length;r++)n.push(e[r]);if(this.minMaxChoices.length===0||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1){this.minMaxChoices=[];for(var r=this.choicesMin;r<=this.choicesMax;r+=this.choicesStep)this.minMaxChoices.push(this.createItemValue(r))}return n=n.concat(this.minMaxChoices),n},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin")},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax")},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep")},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete","")},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return new _().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).append(this.cssClasses.controlInputFieldComponent,!!this.inputFieldComponentName).toString()},t.prototype.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),this.useDropdownList&&Nn(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this.suggestedItem||this.selectedItem;return e==null?void 0:e.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputFieldComponentName",{get:function(){return this.inputFieldComponent||this.itemComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.inputHasValue&&!this.inputFieldComponentName&&!!this.selectedItemLocText&&this.dropdownListModel.canShowSelectedItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInputFieldComponent",{get:function(){return!this.inputHasValue&&!!this.inputFieldComponentName&&!this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemText",{get:function(){var e=this.selectedItem;return e?e.text:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useDropdownList",{get:function(){return this.renderAs!=="select"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.useDropdownList&&!this.dropdownListModelValue&&(this.dropdownListModelValue=new Po(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this.dropdownListModel.popupModel},enumerable:!1,configurable:!0}),t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onSelectedItemValuesChangedHandler=function(e){var n;(n=this.dropdownListModelValue)===null||n===void 0||n.setInputStringFromSelectedItem(e),i.prototype.onSelectedItemValuesChangedHandler.call(this,e)},t.prototype.hasUnknownValue=function(e,n,r,o){return this.choicesLazyLoadEnabled?!1:i.prototype.hasUnknownValue.call(this,e,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var e,n=(e=this.otherValue)===null||e===void 0?void 0:e.trim();return n?i.prototype.hasUnknownValue.call(this,n,!0,!1):!1},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.choicesLazyLoadEnabled?this.createItemValue(e,n):i.prototype.getItemIfChoicesNotContainThisValue.call(this,e,n)},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.dropdownListModelValue&&this.dropdownListModel.updateItems()},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.clearValue=function(e){var n;i.prototype.clearValue.call(this,e),this.lastSelectedItemValue=null,(n=this.dropdownListModelValue)===null||n===void 0||n.clear()},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.dropdownListModelValue&&this.dropdownListModelValue.clear()},t.prototype.onClick=function(e){this.onOpenedCallBack&&this.onOpenedCallBack()},t.prototype.onKeyUp=function(e){var n=e.which||e.keyCode;n===46&&(this.clearValue(!0),e.preventDefault(),e.stopPropagation())},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.onBlurCore=function(e){this.dropdownListModel.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.dropdownListModel.onFocus(e),i.prototype.onFocusCore.call(this,e)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},Yt([x()],t.prototype,"allowClear",void 0),Yt([x({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),Yt([x()],t.prototype,"searchMode",void 0),Yt([x()],t.prototype,"textWrapEnabled",void 0),Yt([x({defaultValue:!1})],t.prototype,"inputHasValue",void 0),Yt([x({defaultValue:""})],t.prototype,"readOnlyText",void 0),Yt([x({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),Yt([x()],t.prototype,"choicesLazyLoadPageSize",void 0),Yt([x()],t.prototype,"suggestedItem",void 0),t}(Ts);j.addClass("dropdown",[{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",alternativeName:"showOptionsCaption",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1},{name:"autocomplete",alternativeName:"autoComplete",choices:I.questions.dataList},{name:"textWrapEnabled:boolean",default:!0},{name:"renderAs",default:"default",visible:!1},{name:"searchEnabled:boolean",default:!0,visible:!1},{name:"searchMode",default:"contains",choices:["contains","startsWith"]},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"inputFieldComponent",visible:!1},{name:"itemComponent",visible:!1,default:""}],function(){return new ui("")},"selectbase"),Se.Instance.registerQuestion("dropdown",function(i){var t=new ui(i);return t.choices=Se.DefaultChoices,t});var Ms=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Xa=function(i){Ms(t,i);function t(e,n,r,o){var s=i.call(this)||this;return s.item=e,s.fullName=n,s.data=r,s.setValueDirectly(o),s.cellClick=function(u){s.value=u.value},s.registerPropertyChangedHandlers(["value"],function(){s.data&&s.data.onMatrixRowChanged(s)}),s.data&&s.data.hasErrorInRow(s)&&(s.hasError=!0),s}return Object.defineProperty(t.prototype,"name",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){this.isReadOnly||this.setValueDirectly(this.data.getCorrectedRowValue(e))},enumerable:!1,configurable:!0}),t.prototype.setValueDirectly=function(e){this.setPropertyValue("value",e)},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!this.item.enabled||this.data.isInputReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyAttr",{get:function(){return this.data.isReadOnlyAttr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabledAttr",{get:function(){return!this.item.enabled||this.data.isDisabledAttr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTextClasses",{get:function(){return new _().append(this.data.cssClasses.rowTextCell).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasError",{get:function(){return this.getPropertyValue("hasError",!1)},set:function(e){this.setPropertyValue("hasError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowClasses",{get:function(){var e=this.data.cssClasses;return new _().append(e.row).append(e.rowError,this.hasError).append(e.rowReadOnly,this.isReadOnly).append(e.rowDisabled,this.data.isDisabledStyle).toString()},enumerable:!1,configurable:!0}),t}(fe),el=function(i){Ms(t,i);function t(e){var n=i.call(this)||this;return n.cellsOwner=e,n.values={},n.locs={},n}return t.prototype.getType=function(){return"cells"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return Object.keys(this.values).length==0},enumerable:!1,configurable:!0}),t.prototype.valuesChanged=function(){!this.locNotification&&this.onValuesChanged&&this.onValuesChanged()},t.prototype.getDefaultCellLocText=function(e){return this.getCellLocCore(this.defaultRowValue,e)},t.prototype.getCellDisplayLocText=function(e,n){return this.getCellLocCore(e,n)},t.prototype.getCellLocCore=function(e,n){var r=this;if(e=this.getCellRowColumnValue(e,this.rows),n=this.getCellRowColumnValue(n,this.columns),h.isValueEmpty(e)||h.isValueEmpty(n))return null;this.locs[e]||(this.locs[e]={});var o=this.locs[e][n];return o||(o=this.createString(),o.setJson(this.getCellLocData(e,n)),o.onGetTextCallback=function(s){if(!s){var u=re.getItemByValue(r.columns,n);if(u)return u.locText.getJson()||u.value}return s},o.onStrChanged=function(s,u){r.updateValues(e,n,u)},this.locs[e][n]=o),o},Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return I.matrix.defaultRowName},enumerable:!1,configurable:!0}),t.prototype.getCellLocData=function(e,n){var r=this.getCellLocDataFromValue(e,n);return r||this.getCellLocDataFromValue(this.defaultRowValue,n)},t.prototype.getCellLocDataFromValue=function(e,n){return!this.values[e]||!this.values[e][n]?null:this.values[e][n]},t.prototype.getCellText=function(e,n){var r=this.getCellLocCore(e,n);return r?r.calculatedText:null},t.prototype.setCellText=function(e,n,r){var o=this.getCellLocCore(e,n);o&&(o.text=r)},t.prototype.updateValues=function(e,n,r){r?(this.values[e]||(this.values[e]={}),this.values[e][n]=r,this.valuesChanged()):this.values[e]&&this.values[e][n]&&(delete this.values[e][n],Object.keys(this.values[e]).length==0&&delete this.values[e],this.valuesChanged())},t.prototype.getDefaultCellText=function(e){var n=this.getCellLocCore(this.defaultRowValue,e);return n?n.calculatedText:null},t.prototype.setDefaultCellText=function(e,n){this.setCellText(this.defaultRowValue,e,n)},t.prototype.getCellDisplayText=function(e,n){var r=this.getCellDisplayLocText(e,n);return r?r.calculatedText:null},Object.defineProperty(t.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!1,configurable:!0}),t.prototype.getCellRowColumnValue=function(e,n){if(e==null)return null;if(typeof e=="number"){if(e<0||e>=n.length)return null;e=n[e].value}return e.value?e.value:e},t.prototype.getJson=function(){if(this.isEmpty)return null;var e=this.values[this.defaultRowValue],n={};for(var r in this.values){var o={},s=this.values[r];for(var u in s)(r===this.defaultRowValue||!e||e[u]!==s[u])&&(o[u]=s[u]);n[r]=o}return n},t.prototype.setJson=function(e,n){var r=this;if(this.values={},e){for(var o in e)if(o!="pos"){var s=e[o];this.values[o]={};for(var u in s)u!="pos"&&(this.values[o][u]=s[u])}}this.locNotification=!0,this.runFuncOnLocs(function(d,y,V){return V.setJson(r.getCellLocData(d,y))}),this.locNotification=!1,this.valuesChanged()},t.prototype.locStrsChanged=function(){this.runFuncOnLocs(function(e,n,r){return r.strChanged()})},t.prototype.runFuncOnLocs=function(e){for(var n in this.locs){var r=this.locs[n];for(var o in r)e(n,o,r[o])}},t.prototype.createString=function(){return new gt(this.cellsOwner,!0)},t}(fe),js=function(i){Ms(t,i);function t(e){var n=i.call(this,e)||this;return n.isRowChanging=!1,n.emptyLocalizableString=new gt(n),n.cellsValue=new el(n),n.cellsValue.onValuesChanged=function(){n.updateHasCellText(),n.propertyValueChanged("cells",n.cells,n.cells)},n.registerPropertyChangedHandlers(["columns"],function(){n.onColumnsChanged()}),n.registerPropertyChangedHandlers(["rows"],function(){n.runCondition(n.getDataFilteredValues(),n.getDataFilteredProperties()),n.onRowsChanged()}),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){n.updateVisibilityBasedOnRows()}),n}return t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"cellComponent",{get:function(){return this.getPropertyValue("cellComponent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemComponent",{set:function(e){this.setPropertyValue("cellComponent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired")},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eachRowUnique",{get:function(){return this.getPropertyValue("eachRowUnique")},set:function(e){this.setPropertyValue("eachRowUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){e=e.toLowerCase(),e!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.addColumn=function(e,n){var r=new re(e,n);return this.columns.push(r),r},t.prototype.getItemClass=function(e,n){var r=e.value==n.value,o=this.isReadOnly,s=!r&&!o,u=this.hasCellText,d=this.cssClasses;return new _().append(d.cell,u).append(u?d.cellText:d.label).append(d.itemOnError,!u&&(this.isAllRowRequired||this.eachRowUnique?e.hasError:this.hasCssError())).append(u?d.cellTextSelected:d.itemChecked,r).append(u?d.cellTextDisabled:d.itemDisabled,this.isDisabledStyle).append(u?d.cellTextReadOnly:d.itemReadOnly,this.isReadOnlyStyle).append(u?d.cellTextPreview:d.itemPreview,this.isPreviewStyle).append(d.itemHover,s&&!u).toString()},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.cells.locStrsChanged()},t.prototype.getQuizQuestionCount=function(){for(var e=0,n=0;n<this.rows.length;n++)this.isValueEmpty(this.correctAnswer[this.rows[n].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,n=this.value,r=0;r<this.rows.length;r++){var o=this.rows[r].value;!this.isValueEmpty(n[o])&&this.isTwoValueEquals(this.correctAnswer[o],n[o])&&e++}return e},t.prototype.runCondition=function(e,n){re.runEnabledConditionsForItems(this.rows,void 0,e,n),i.prototype.runCondition.call(this,e,n)},t.prototype.createRowsVisibleIfRunner=function(){return this.rowsVisibleIf?new Ue(this.rowsVisibleIf):null},t.prototype.onRowsChanged=function(){this.clearGeneratedRows(),i.prototype.onRowsChanged.call(this)},t.prototype.getVisibleRows=function(){if(this.generatedVisibleRows)return this.generatedVisibleRows;var e=new Array,n=this.value;n||(n={});for(var r=this.filteredRows||this.rows,o=0;o<r.length;o++){var s=r[o];if(!this.isValueEmpty(s.value)){var u=this.id+"_"+s.value.toString().replace(/\s/g,"_");e.push(this.createMatrixRow(s,u,n[s.value]))}}return this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){if(this.survey&&this.survey.isDesignMode)return e;var n=this.rowsOrder.toLowerCase();return n==="random"?h.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows),this.onRowsChanged(),this.onColumnsChanged()},t.prototype.isNewValueCorrect=function(e){return h.isValueObject(e,!0)},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return this.getPropertyValue("hasCellText",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasCellText=function(){this.setPropertyValue("hasCellText",!this.cells.isEmpty)},t.prototype.setCellText=function(e,n,r){this.cells.setCellText(e,n,r)},t.prototype.getCellText=function(e,n){return this.cells.getCellText(e,n)},t.prototype.setDefaultCellText=function(e,n){this.cells.setDefaultCellText(e,n)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,n){return this.cells.getCellDisplayText(e,n)},t.prototype.getCellDisplayLocText=function(e,n){var r=this.cells.getCellDisplayLocText(e,n);return r||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return this.isMouseDown===!0&&this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),!n||this.hasCssError()){var o={noValue:!1,isNotUnique:!1};this.checkErrorsAllRows(r,o),o.noValue&&e.push(new ro(null,this)),o.isNotUnique&&e.push(new us(null,this))}},t.prototype.hasValuesInAllRows=function(){var e={noValue:!1,isNotUnique:!1};return this.checkErrorsAllRows(!1,e,!0),!e.noValue},t.prototype.checkErrorsAllRows=function(e,n,r){var o=this,s=this.generatedVisibleRows;if(s||(s=this.visibleRows),!!s){var u=this.isAllRowRequired||r,d=this.eachRowUnique;if(n.noValue=!1,n.isNotUnique=!1,e&&(this.errorsInRow=void 0),!(!u&&!d)){for(var y={},V=0;V<s.length;V++){var T=s[V].value,N=this.isValueEmpty(T),U=d&&!N&&y[T]===!0;N=N&&u,e&&(N||U)&&this.addErrorIntoRow(s[V]),N||(y[T]=!0),n.noValue=n.noValue||N,n.isNotUnique=n.isNotUnique||U}e&&s.forEach(function(W){W.hasError=o.hasErrorInRow(W)})}}},t.prototype.addErrorIntoRow=function(e){this.errorsInRow||(this.errorsInRow={}),this.errorsInRow[e.name]=!0,e.hasError=!0},t.prototype.refreshRowsErrors=function(){this.errorsInRow&&this.checkErrorsAllRows(!0,{noValue:!1,isNotUnique:!1})},t.prototype.getIsAnswered=function(){return i.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,n,r){var o=new Xa(e,n,this,r);return this.onMatrixRowCreated(o),o},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(e,n){if(n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,this.isRowChanging||n),!(!this.generatedVisibleRows||this.generatedVisibleRows.length==0)){this.isRowChanging=!0;var r=this.value;if(r||(r={}),this.rows.length==0)this.generatedVisibleRows[0].setValueDirectly(r);else for(var o=0;o<this.generatedVisibleRows.length;o++){var s=this.generatedVisibleRows[o],u=r[s.name];this.isValueEmpty(u)&&(u=null),this.generatedVisibleRows[o].setValueDirectly(u)}this.refreshRowsErrors(),this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,n){var r={};for(var o in n){var s=e?re.getTextOrHtmlByValue(this.rows,o):o;s||(s=o);var u=re.getTextOrHtmlByValue(this.columns,n[o]);u||(u=n[o]),r[s]=u}return r},t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0});var r=i.prototype.getPlainData.call(this,e);if(r){var o=this.createValueCopy();r.isNode=!0,r.data=Object.keys(o||{}).map(function(s){var u=n.rows.filter(function(V){return V.value===s})[0],d={name:s,title:u?u.text:"row",value:o[s],displayValue:re.getTextOrHtmlByValue(n.visibleColumns,o[s]),getString:function(V){return typeof V=="object"?JSON.stringify(V):V},isNode:!1},y=re.getItemByValue(n.visibleColumns,o[s]);return y&&(e.calculations||[]).forEach(function(V){d[V.propertyName]=y[V.propertyName]}),d})}return r},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=0;r<this.rows.length;r++){var o=this.rows[r];o.value&&e.push({name:this.getValueName()+"."+o.value,text:this.processedTitle+"."+o.calculatedText,question:this})}},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=new ui(n);r.choices=this.columns;var o=new je().toJsonObject(r);return o.type=r.getType(),o},t.prototype.clearIncorrectValues=function(){this.clearInvisibleValuesInRowsAndColumns(!0,!0,!0),i.prototype.clearIncorrectValues.call(this)},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),this.clearInvisibleValuesInRowsAndColumns(!0,!0,!1)},t.prototype.clearInvisibleColumnValues=function(){this.clearInvisibleValuesInRowsAndColumns(!1,!0,!1)},t.prototype.clearInvisibleValuesInRows=function(){this.clearInvisibleValuesInRowsAndColumns(!0,!1,!1)},t.prototype.clearInvisibleValuesInRowsAndColumns=function(e,n,r){if(!this.isEmpty()){for(var o=this.getUnbindValue(this.value),s={},u=this.rows,d=0;d<u.length;d++){var y=u[d].value;o[y]&&(e&&!u[d].isVisible||n&&!this.getVisibleColumnByValue(o[y])?delete o[y]:s[y]=o[y])}r&&(o=s),!this.isTwoValueEquals(o,this.value)&&(this.value=o)}},t.prototype.getVisibleColumnByValue=function(e){var n=re.getItemByValue(this.columns,e);return n&&n.isVisible?n:null},t.prototype.getFirstInputElementId=function(){var e=this.generatedVisibleRows;return e||(e=this.visibleRows),e.length>0&&this.visibleColumns.length>0?this.inputId+"_"+e[0].name+"_0":i.prototype.getFirstInputElementId.call(this)},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,!this.hasRows)this.setNewValue(e.value);else{var n=this.value;n||(n={}),n[e.name]=e.value,this.setNewValue(n)}this.isRowChanging=!1}},t.prototype.getCorrectedRowValue=function(e){for(var n=0;n<this.columns.length;n++)if(e===this.columns[n].value)return e;for(var n=0;n<this.columns.length;n++)if(this.isTwoValueEquals(e,this.columns[n].value))return this.columns[n].value;return e},t.prototype.hasErrorInRow=function(e){return!!this.errorsInRow&&!!this.errorsInRow[e.name]},t.prototype.getSearchableItemValueKeys=function(e){e.push("columns"),e.push("rows")},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({column:e},"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({column:e},"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({row:e},"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({row:e},"row-header")},t}(yt);j.addClass("matrix",["rowTitleWidth",{name:"columns:itemvalue[]",uniqueProperty:"value",baseValue:function(){return k("matrix_column")}},{name:"rows:itemvalue[]",uniqueProperty:"value",baseValue:function(){return k("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean",{name:"eachRowUnique:boolean",category:"validation"},"hideIfRowsEmpty:boolean",{name:"cellComponent",visible:!1,default:"survey-matrix-cell"}],function(){return new js("")},"matrixbase"),Se.Instance.registerQuestion("matrix",function(i){var t=new js(i);return t.rows=Se.DefaultRows,t.columns=Se.DefaultColums,t});var tl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),nl=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},rl=function(i){tl(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.updateRemainingCharacterCounter=function(e,n){this.remainingCharacterCounter=h.getRemainingCharacterCounterText(e,n)},nl([x()],t.prototype,"remainingCharacterCounter",void 0),t}(fe),xo=function(i){tl(t,i);function t(e){var n=i.call(this,e)||this;return n.characterCounter=new rl,n}return t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e),this.updateRemainingCharacterCounter(this.value)},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return h.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},t.prototype.updateRemainingCharacterCounter=function(e){this.characterCounter.updateRemainingCharacterCounter(e,this.getMaxLength())},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"textbase"},t.prototype.isEmpty=function(){return i.prototype.isEmpty.call(this)||this.value===""},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return this.textUpdateMode=="default"?i.prototype.getIsInputTextUpdate.call(this):this.textUpdateMode=="onTyping"},Object.defineProperty(t.prototype,"renderedPlaceholder",{get:function(){var e=this,n=function(){return e.hasPlaceholder()?e.placeHolder:void 0};return this.getPropertyValue("renderedPlaceholder",void 0,n)},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){i.prototype.onReadOnlyChanged.call(this),this.resetRenderedPlaceholder()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.resetRenderedPlaceholder()},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.resetRenderedPlaceholder=function(){this.resetPropertyValue("renderedPlaceholder")},t.prototype.hasPlaceholder=function(){return!this.isReadOnly},t.prototype.setNewValue=function(e){i.prototype.setNewValue.call(this,e),this.updateRemainingCharacterCounter(e)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.updateRemainingCharacterCounter(e)},t.prototype.convertToCorrectValue=function(e){return Array.isArray(e)?e.join(this.getValueSeparator()):e},t.prototype.getValueSeparator=function(){return", "},t.prototype.getControlCssClassBuilder=function(){return new _().append(this.cssClasses.root).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle)},t.prototype.getControlClass=function(){return this.getControlCssClassBuilder().toString()},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),nl([x({localizable:!0,onSet:function(e,n){return n.resetRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(Be);j.addClass("textbase",[],function(){return new xo("")},"question");var Mc=function(){function i(t,e,n){var r=this;this.inputMaskInstance=t,this.inputElement=e,this.prevUnmaskedValue=void 0,this.inputMaskInstancePropertyChangedHandler=function(s,u){if(u.name!=="saveMaskedValue"){var d=r.inputMaskInstance.getMaskedValue(r.prevUnmaskedValue);r.inputElement.value=d}},this.clickHandler=function(s){r.inputElement.value==r.inputMaskInstance.getMaskedValue("")&&r.inputElement.setSelectionRange(0,0)},this.beforeInputHandler=function(s){var u=r.createArgs(s),d=r.inputMaskInstance.processInput(u);r.inputElement.value=d.value,r.inputElement.setSelectionRange(d.caretPosition,d.caretPosition),d.cancelPreventDefault||s.preventDefault()},this.changeHandler=function(s){var u=r.inputMaskInstance.processInput({prevValue:"",insertedChars:s.target.value,selectionStart:0,selectionEnd:0});r.inputElement.value=u.value};var o=n;o==null&&(o=""),this.inputElement.value=t.getMaskedValue(o),this.prevUnmaskedValue=o,t.onPropertyChanged.add(this.inputMaskInstancePropertyChangedHandler),this.addInputEventListener()}return i.prototype.createArgs=function(t){var e={insertedChars:t.data,selectionStart:t.target.selectionStart,selectionEnd:t.target.selectionEnd,prevValue:t.target.value,inputDirection:"forward"};return t.inputType==="deleteContentBackward"&&(e.inputDirection="backward",e.selectionStart===e.selectionEnd&&(e.selectionStart=Math.max(e.selectionStart-1,0))),t.inputType==="deleteContentForward"&&e.selectionStart===e.selectionEnd&&(e.selectionEnd+=1),e},i.prototype.addInputEventListener=function(){this.inputElement&&(this.inputElement.addEventListener("beforeinput",this.beforeInputHandler),this.inputElement.addEventListener("click",this.clickHandler),this.inputElement.addEventListener("focus",this.clickHandler),this.inputElement.addEventListener("change",this.changeHandler))},i.prototype.removeInputEventListener=function(){this.inputElement&&(this.inputElement.removeEventListener("beforeinput",this.beforeInputHandler),this.inputElement.removeEventListener("click",this.clickHandler),this.inputElement.removeEventListener("focus",this.clickHandler),this.inputElement.removeEventListener("change",this.changeHandler))},i.prototype.dispose=function(){this.removeInputEventListener(),this.inputElement=void 0,this.inputMaskInstance.onPropertyChanged.remove(this.inputMaskInstancePropertyChangedHandler)},i}(),Ns=/[0-9]/;function il(){var i=j.getChildrenClasses("masksettings")||[],t=i.map(function(e){var n=e.name;return e.name.indexOf("mask")!==-1&&(n=n.slice(0,n.indexOf("mask"))),n});return t.unshift("none"),t}var jc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),qs=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Vo=function(i){jc(t,i);function t(e){var n=i.call(this,e)||this;return n._isWaitingForEnter=!1,n.onCompositionUpdate=function(r){n.isInputTextUpdate&&setTimeout(function(){n.updateValueOnEvent(r)},1),n.updateRemainingCharacterCounter(r.target.value)},n.onKeyUp=function(r){n.updateDateValidationMessage(r),n.isInputTextUpdate?(!n._isWaitingForEnter||r.keyCode===13)&&(n.updateValueOnEvent(r),n._isWaitingForEnter=!1):r.keyCode===13&&n.updateValueOnEvent(r),n.updateRemainingCharacterCounter(r.target.value)},n.onKeyDown=function(r){n.onKeyDownPreprocess&&n.onKeyDownPreprocess(r),n.isInputTextUpdate&&(n._isWaitingForEnter=r.keyCode===229),n.onTextKeyDownHandler(r)},n.onChange=function(r){n.updateDateValidationMessage(r);var o=r.target===I.environment.root.activeElement;o?n.isInputTextUpdate&&n.updateValueOnEvent(r):n.updateValueOnEvent(r),n.updateRemainingCharacterCounter(r.target.value)},n.createLocalizableString("minErrorText",n,!0,"minError"),n.createLocalizableString("maxErrorText",n,!0,"maxError"),n.setNewMaskSettingsProperty(),n.locDataListValue=new Hr(n),n.locDataListValue.onValueChanged=function(r,o){n.propertyValueChanged("dataList",r,o)},n.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],function(){n.setRenderedMinMax()}),n.registerPropertyChangedHandlers(["inputType","size"],function(){n.updateInputSize(),n.resetRenderedPlaceholder()}),n}return t.prototype.createMaskAdapter=function(){this.input&&!this.maskTypeIsEmpty&&(this.maskInputAdapter=new Mc(this.maskInstance,this.input,this.value))},t.prototype.deleteMaskAdapter=function(){this.maskInputAdapter&&(this.maskInputAdapter.dispose(),this.maskInputAdapter=void 0)},t.prototype.updateMaskAdapter=function(){this.deleteMaskAdapter(),this.createMaskAdapter()},t.prototype.onSetMaskType=function(e){this.setNewMaskSettingsProperty(),this.updateMaskAdapter()},Object.defineProperty(t.prototype,"maskTypeIsEmpty",{get:function(){switch(this.inputType){case"tel":case"text":return this.maskType==="none";default:return!0}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskSettings",{get:function(){return this.getPropertyValue("maskSettings")},set:function(e){e&&(this.setNewMaskSettingsProperty(),this.maskSettings.fromJSON(e.toJSON()),this.updateMaskAdapter())},enumerable:!1,configurable:!0}),t.prototype.setNewMaskSettingsProperty=function(){this.setPropertyValue("maskSettings",this.createMaskSettings())},t.prototype.createMaskSettings=function(){var e=!this.maskType||this.maskType==="none"?"masksettings":this.maskType+"mask";j.findClass(e)||(e="masksettings");var n=j.createClass(e);return n.owner=this.survey,n},t.prototype.isTextValue=function(){return this.isDateInputType||["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){e=e.toLowerCase(),(e==="datetime_local"||e==="datetime")&&(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0),this.updateMaskAdapter()},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return this.isTextInput?i.prototype.getMaxLength.call(this):null},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(e,n)},t.prototype.getDisplayValueCore=function(e,n){return!this.maskTypeIsEmpty&&!h.isValueEmpty(n)?this.maskInstance.getMaskedValue(n):i.prototype.getDisplayValueCore.call(this,e,n)},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTextInput",{get:function(){return["text","search","tel","url","email","password"].indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputSize",{get:function(){return this.getPropertyValue("inputSize",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputSize",{get:function(){return this.getPropertyValue("inputSize")||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputWidth",{get:function(){return this.getPropertyValue("inputWidth")},enumerable:!1,configurable:!0}),t.prototype.updateInputSize=function(){var e=this.isTextInput&&this.size>0?this.size:0;this.isTextInput&&e<1&&this.parent&&this.parent.itemSize&&(e=this.parent.itemSize),this.setPropertyValue("inputSize",e),this.setPropertyValue("inputWidth",e>0?"auto":"")},Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete",null)},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){if(this.isValueExpression(e)){this.minValueExpression=e.substring(1);return}this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){if(this.isValueExpression(e)){this.maxValueExpression=e.substring(1);return}this.setPropertyValue("max",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(e){this.setPropertyValue("minValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(e){this.setPropertyValue("maxValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minErrorText",{get:function(){return this.getLocalizableStringText("minErrorText")},set:function(e){this.setLocalizableStringText("minErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinErrorText",{get:function(){return this.getLocalizableString("minErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxErrorText",{get:function(){return this.getLocalizableStringText("maxErrorText")},set:function(e){this.setLocalizableStringText("maxErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxErrorText",{get:function(){return this.getLocalizableString("maxErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMinMaxType",{get:function(){return Bt(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskInstance",{get:function(){return this.maskSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputValue",{get:function(){return!this._inputValue&&!this.maskTypeIsEmpty?this.maskInstance.getMaskedValue(""):this._inputValue},set:function(e){var n=e;this._inputValue=e,this.maskTypeIsEmpty||(n=this.maskInstance.getUnmaskedValue(e),this._inputValue=this.maskInstance.getMaskedValue(n),n&&this.maskSettings.saveMaskedValue&&(n=this.maskInstance.getMaskedValue(n))),this.value=n},enumerable:!1,configurable:!0}),t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.updateInputValue()},t.prototype.updateInputValue=function(){this.maskTypeIsEmpty?this._inputValue=this.value:this.maskSettings.saveMaskedValue?this._inputValue=this.value?this.value:this.maskInstance.getMaskedValue(""):this._inputValue=this.maskInstance.getMaskedValue(this.value)},t.prototype.hasToConvertToUTC=function(e){return I.storeUtcDates&&this.isDateTimeLocaleType()&&!!e},t.prototype.createDate=function(e){return D("question-text",e)},t.prototype.valueForSurveyCore=function(e){return this.hasToConvertToUTC(e)&&(e=this.createDate(e).toISOString()),i.prototype.valueForSurveyCore.call(this,e)},t.prototype.valueFromDataCore=function(e){if(this.hasToConvertToUTC(e)){var n=this.createDate(e),r=this.createDate(n.getTime()-n.getTimezoneOffset()*60*1e3),o=r.toISOString();e=o.substring(0,o.length-2)}return i.prototype.valueFromDataCore.call(this,e)},t.prototype.onCheckForErrors=function(e,n,r){var o=this;if(i.prototype.onCheckForErrors.call(this,e,n,r),!n){if(this.isValueLessMin){var s=new ot(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);s.onUpdateErrorTextCallback=function(T){T.text=o.getMinMaxErrorText(o.minErrorText,o.getCalculatedMinMax(o.renderedMin))},e.push(s)}if(this.isValueGreaterMax){var u=new ot(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);u.onUpdateErrorTextCallback=function(T){T.text=o.getMinMaxErrorText(o.maxErrorText,o.getCalculatedMinMax(o.renderedMax))},e.push(u)}this.dateValidationMessage&&e.push(new ot(this.dateValidationMessage,this));var d=this.getValidatorTitle(),y=new Xr;if(y.errorOwner=this,this.inputType==="email"&&!this.validators.some(function(T){return T.getType()==="emailvalidator"})){var V=y.validate(this.value,d);V&&V.error&&e.push(V.error)}}},t.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var e=!this.isValueLessMin&&!this.isValueGreaterMax;return(!e||this.errors.length>0)&&this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),e},t.prototype.convertFuncValuetoQuestionValue=function(e){var n=this.maskTypeIsEmpty?this.inputType:this.maskSettings.getTypeForExpressions();return h.convertValToQuestionVal(e,n)},t.prototype.getMinMaxErrorText=function(e,n){if(h.isValueEmpty(n))return e;var r=n.toString();return this.inputType==="date"&&n.toDateString&&(r=n.toDateString()),e.replace("{0}",r)},Object.defineProperty(t.prototype,"isValueLessMin",{get:function(){return!this.isValueEmpty(this.renderedMin)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)<this.getCalculatedMinMax(this.renderedMin)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueGreaterMax",{get:function(){return!this.isValueEmpty(this.renderedMax)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)>this.getCalculatedMinMax(this.renderedMax)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDateInputType",{get:function(){return this.inputType==="date"||this.isDateTimeLocaleType()},enumerable:!1,configurable:!0}),t.prototype.isDateTimeLocaleType=function(){return this.inputType==="datetime-local"},t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?this.createDate(e):e},t.prototype.setRenderedMinMax=function(e,n){var r=this;e===void 0&&(e=null),n===void 0&&(n=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,function(o){!o&&r.isDateInputType&&I.minDate&&(o=I.minDate),r.setPropertyValue("renderedMin",o)},e,n),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,function(o){!o&&r.isDateInputType&&(o=I.maxDate?I.maxDate:"2999-12-31"),r.setPropertyValue("renderedMax",o)},e,n)},Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStep",{get:function(){return this.isValueEmpty(this.step)?this.inputType!=="number"?void 0:"any":this.step},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return this.maskTypeIsEmpty?i.prototype.getIsInputTextUpdate.call(this):!1},t.prototype.supportGoNextPageAutomatic=function(){return!this.getIsInputTextUpdate()&&!this.isDateInputType},t.prototype.supportGoNextPageError=function(){return!this.isDateInputType},Object.defineProperty(t.prototype,"dataList",{get:function(){return this.locDataList.value},set:function(e){this.locDataList.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDataList",{get:function(){return this.locDataListValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataListId",{get:function(){return this.locDataList.hasValue()?this.id+"_datalist":void 0},enumerable:!1,configurable:!0}),t.prototype.setNewValue=function(e){e=this.correctValueType(e),e&&(this.dateValidationMessage=void 0),i.prototype.setNewValue.call(this,e)},t.prototype.correctValueType=function(e){if(!e)return e;if(this.inputType==="number"||this.inputType==="range")return h.isNumber(e)?h.getNumber(e):"";if(this.inputType==="month"){var n=this.createDate(e),r=n.toISOString().indexOf(e)==0&&e.indexOf("T")==-1,o=r?n.getUTCMonth():n.getMonth(),s=r?n.getUTCFullYear():n.getFullYear(),u=o+1;return s+"-"+(u<10?"0":"")+u}return e},t.prototype.hasPlaceholder=function(){return!this.isReadOnly&&this.inputType!=="range"},t.prototype.getControlCssClassBuilder=function(){var e=this.getMaxLength();return i.prototype.getControlCssClassBuilder.call(this).append(this.cssClasses.constrolWithCharacterCounter,!!e).append(this.cssClasses.characterCounterBig,e>99)},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&I.readOnly.textRenderMode==="div"},Object.defineProperty(t.prototype,"inputStyle",{get:function(){var e={};return e.width=this.inputWidth,this.updateTextAlign(e),e},enumerable:!1,configurable:!0}),t.prototype.updateTextAlign=function(e){this.inputTextAlignment!=="auto"?e.textAlign=this.inputTextAlignment:!this.maskTypeIsEmpty&&this.maskSettings.getTextAlignment()!=="auto"&&(e.textAlign=this.maskSettings.getTextAlignment())},t.prototype.updateValueOnEvent=function(e){var n=e.target.value;this.isTwoValueEquals(this.value,n)||(this.inputValue=n)},t.prototype.updateDateValidationMessage=function(e){this.dateValidationMessage=this.isDateInputType&&e.target?e.target.validationMessage:void 0},t.prototype.onBlurCore=function(e){this.updateDateValidationMessage(e),this.updateValueOnEvent(e),this.updateRemainingCharacterCounter(e.target.value),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.updateRemainingCharacterCounter(e.target.value),i.prototype.onFocusCore.call(this,e)},t.prototype.afterRenderQuestionElement=function(e){e&&(this.input=e instanceof HTMLInputElement?e:e.querySelector("input"),this.createMaskAdapter()),i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){this.deleteMaskAdapter(),this.input=void 0},qs([x({onSet:function(e,n){n.onSetMaskType(e)}})],t.prototype,"maskType",void 0),qs([x()],t.prototype,"inputTextAlignment",void 0),qs([x()],t.prototype,"_inputValue",void 0),t}(xo),Nc=["number","range","date","datetime-local","month","time","week"];function Bt(i){var t=i?i.inputType:"";return t?Nc.indexOf(t)>-1:!1}function ol(i,t){var e=i.split(t);return e.length!==2||!h.isNumber(e[0])||!h.isNumber(e[1])?-1:parseFloat(e[0])*60+parseFloat(e[1])}function qc(i,t,e){var n=ol(i,e),r=ol(t,e);return n<0||r<0?!1:n>r}function sl(i,t,e,n){var r=n?e:t;if(!Bt(i)||h.isValueEmpty(t)||h.isValueEmpty(e))return r;if(i.inputType.indexOf("date")===0||i.inputType==="month"){var o=i.inputType==="month",s="question-text-minmax",u=D(s,o?t+"-01":t),d=D(s,o?e+"-01":e);if(!u||!d)return r;if(u>d)return n?t:e}if(i.inputType==="week"||i.inputType==="time"){var y=i.inputType==="week"?"-W":":";return qc(t,e,y)?n?t:e:r}if(i.inputType==="number"){if(!h.isNumber(t)||!h.isNumber(e))return r;if(h.getNumber(t)>h.getNumber(e))return n?t:e}return typeof t=="string"||typeof e=="string"?r:t>e?n?t:e:r}function al(i,t){i&&i.inputType&&(t.inputType=i.inputType!=="range"?i.inputType:"number",t.textUpdateMode="onBlur")}j.addClass("text",[{name:"inputType",default:"text",choices:I.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"autocomplete",alternativeName:"autoComplete",choices:I.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(i){return Bt(i)},onPropertyEditorUpdate:function(i,t){al(i,t)},onSettingValue:function(i,t){return sl(i,t,i.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(i){return Bt(i)},onSettingValue:function(i,t){return sl(i,i.min,t,!0)},onPropertyEditorUpdate:function(i,t){al(i,t)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Bt(i)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Bt(i)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(i){return Bt(i)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(i){return Bt(i)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"]},{name:"maskType",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"||i.inputType==="tel"},choices:function(i){var t=il();return t}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:["inputType","maskType"],visibleIf:function(i){return i.inputType==="text"||i.inputType==="tel"},onGetValue:function(i){return i.maskSettings.getData()},onSetValue:function(i,t){i.maskSettings.setData(t)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(i){return i?i.inputType==="number"||i.inputType==="range":!1}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(i){return i?i.inputType==="text":!1}}],function(){return new Vo("")},"textbase"),Se.Instance.registerQuestion("text",function(i){return new Vo(i)});var vr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_s=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ll=function(i){vr(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return null},enumerable:!1,configurable:!0}),t}(Vo),Bs=function(i){vr(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.focusIn=function(){r.editor.focusIn()},r.editorValue=r.createEditor(e),r.maskSettings=r.editorValue.maskSettings,r.editor.questionTitleTemplateCallback=function(){return""},r.editor.titleLocation="left",n&&(r.title=n),r.editor.onPropertyChanged.add(function(o,s){r.onPropertyChanged.fire(r,s)}),r}return t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!1,configurable:!0}),t.prototype.getOriginalObj=function(){return this.editor},Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!1,configurable:!0}),t.prototype.createEditor=function(e){return new ll(e)},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.editor.addUsedLocales(e)},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.editor.localeChanged()},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e,this.editor.setParentQuestion(e))},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return h.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.editor.placeholder},set:function(e){this.editor.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.editor.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.editor.size},set:function(e){this.editor.size=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.editor.defaultValueExpression},set:function(e){this.editor.defaultValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.editor.minValueExpression},set:function(e){this.editor.minValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.editor.maxValueExpression},set:function(e){this.editor.maxValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},Object.defineProperty(t.prototype,"maskType",{get:function(){return this.editor.maskType},set:function(e){this.editor.maskType=e,this.maskSettings=this.editor.maskSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskSettings",{get:function(){return this.getPropertyValue("maskSettings")},set:function(e){this.setPropertyValue("maskSettings",e),this.editor.maskSettings!==e&&(this.editor.maskSettings=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputTextAlignment",{get:function(){return this.editor.inputTextAlignment},set:function(e){this.editor.inputTextAlignment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){this.data!=null&&this.data.setMultipleTextValue(this.name,e)},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this.editor.isEmpty()},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,n){this.data&&this.data.setMultipleTextValue(e,n)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,n){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,n){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.findQuestionByName=function(e){var n=this.getSurvey();return n?n.getQuestionByName(e):null},t.prototype.getEditingSurveyElement=function(){},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(fe),So=function(i){vr(t,i);function t(e){var n=i.call(this,e)||this;return n.isMultipleItemValueChanging=!1,n.createNewArray("items",function(r){r.setData(n),n.survey&&n.survey.multipleTextItemAdded(n,r)}),n.registerPropertyChangedHandlers(["items","colCount","itemErrorLocation"],function(){n.calcVisibleRows()}),n.registerPropertyChangedHandlers(["itemSize"],function(){n.updateItemsSize()}),n}return t.addDefaultItems=function(e){for(var n=Se.DefaultMutlipleTextItems,r=0;r<n.length;r++)e.addItem(n[r])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n);for(var r=0;r<this.items.length;r++)this.items[r].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){var n;(n=this.items)===null||n===void 0||n.map(function(r,o){return r.editor.id=e+"_"+o}),this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),i.prototype.onSurveyLoad.call(this)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.performForEveryEditor(function(r){r.editor.updateValueFromSurvey(r.value)}),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),this.performForEveryEditor(function(n){n.editor.onSurveyValueChanged(n.value)})},t.prototype.updateItemsSize=function(){this.performForEveryEditor(function(e){e.editor.updateInputSize()})},t.prototype.editorsOnSurveyLoad=function(){this.performForEveryEditor(function(e){e.editor.onSurveyLoad()})},t.prototype.performForEveryEditor=function(e){for(var n=0;n<this.items.length;n++){var r=this.items[n];r.editor&&e(r)}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!1,configurable:!0}),t.prototype.addItem=function(e,n){n===void 0&&(n=null);var r=this.createTextItem(e,n);return this.items.push(r),r},t.prototype.getItemByName=function(e){for(var n=0;n<this.items.length;n++)if(this.items[n].name==e)return this.items[n];return null},t.prototype.getElementsInDesign=function(e){e===void 0&&(e=!1);var n;return n=i.prototype.getElementsInDesign.call(this,e),n.concat(this.items)},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=0;r<this.items.length;r++){var o=this.items[r];e.push({name:this.getValueName()+"."+o.name,text:this.processedTitle+"."+o.fullTitle,question:this})}},t.prototype.collectNestedQuestionsCore=function(e,n){this.items.forEach(function(r){return r.editor.collectNestedQuestions(e,n)})},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=this.getItemByName(n);if(!r)return null;var o=new je().toJsonObject(r);return o.type="text",o},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=0;e<this.items.length;e++)this.items[e].locStrsChanged()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.items.length;e++)this.items[e].localeChanged()},Object.defineProperty(t.prototype,"itemErrorLocation",{get:function(){return this.getPropertyValue("itemErrorLocation")},set:function(e){this.setPropertyValue("itemErrorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionErrorLocation=function(){return this.itemErrorLocation!=="default"?this.itemErrorLocation:this.getErrorLocation()},Object.defineProperty(t.prototype,"showItemErrorOnTop",{get:function(){return this.getQuestionErrorLocation()=="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemErrorOnBottom",{get:function(){return this.getQuestionErrorLocation()=="bottom"},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(e){return this.getQuestionErrorLocation()},t.prototype.isNewValueCorrect=function(e){return h.isValueObject(e,!0)},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())return!1;return!0},Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<1||e>5||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTitleWidth",{get:function(){return this.getPropertyValue("itemTitleWidth")||""},set:function(e){this.setPropertyValue("itemTitleWidth",e)},enumerable:!1,configurable:!0}),t.prototype.onRowCreated=function(e){return e},t.prototype.calcVisibleRows=function(){for(var e=this.colCount,n=this.items,r=0,o,s,u=[],d=0;d<n.length;d++)r==0&&(o=this.onRowCreated(new Fs),s=this.onRowCreated(new ul),this.showItemErrorOnTop?(u.push(s),u.push(o)):(u.push(o),u.push(s))),o.cells.push(new ks(n[d],this)),s.cells.push(new cl(n[d],this)),r++,(r>=e||d==n.length-1)&&(r=0,s.onAfterCreated());this.rows=u},t.prototype.getRows=function(){return h.isValueEmpty(this.rows)&&this.calcVisibleRows(),this.rows},t.prototype.onValueChanged=function(){i.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,n){return new Bs(e,n)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var n=null;this.value&&this.items[e].name in this.value&&(n=this.value[this.items[e].name]),this.items[e].onValueChanged(n)}},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.items.forEach(function(r){return r.editor.runCondition(e,n)})},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;for(var e=0;e<this.items.length;e++)if(this.items[e].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(e,n){var r=this;e===void 0&&(e=!0),n===void 0&&(n=null);for(var o=!1,s=0;s<this.items.length;s++)this.items[s].editor.onCompletedAsyncValidators=function(u){r.raiseOnCompletedAsyncValidators()},!(n&&n.isOnValueChanged===!0&&this.items[s].editor.isEmpty())&&(o=this.items[s].editor.hasErrors(e,n)||o);return i.prototype.hasErrors.call(this,e)||o},t.prototype.getAllErrors=function(){for(var e=i.prototype.getAllErrors.call(this),n=0;n<this.items.length;n++){var r=this.items[n].editor.getAllErrors();r&&r.length>0&&(e=e.concat(r))}return e},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this);for(var e=0;e<this.items.length;e++)this.items[e].editor.clearErrors()},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;for(var n=this.items,r=0;r<n.length;r++)if(n[r].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!i.prototype.getIsAnswered.call(this))return!1;for(var e=0;e<this.items.length;e++){var n=this.items[e].editor;if(n.isVisible&&!n.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],n=0;n<this.items.length;n++)e.push(this.items[n].editor);return _e.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,n){if(!n)return n;for(var r={},o=0;o<this.items.length;o++){var s=this.items[o],u=n[s.name];if(!h.isValueEmpty(u)){var d=s.name;e&&s.title&&(d=s.title),r[d]=s.editor.getDisplayValue(e,u)}}return r},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,n){this.isMultipleItemValueChanging=!0,this.isValueEmpty(n)&&(n=void 0);var r=this.value;r||(r={}),r[e]=n,this.setNewValue(r),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.addElement=function(e,n){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getColumsForElement=function(e){return[]},t.prototype.updateColumns=function(){},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.onQuestionValueChanged=function(e){},t.prototype.getItemLabelCss=function(e){return new _().append(this.cssClasses.itemLabel).append(this.cssClasses.itemLabelDisabled,this.isDisabledStyle).append(this.cssClasses.itemLabelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.itemLabelPreview,this.isPreviewStyle).append(this.cssClasses.itemLabelAnswered,e.editor.isAnswered).append(this.cssClasses.itemLabelAllowFocus,!this.isDesignMode).append(this.cssClasses.itemLabelOnError,e.editor.errors.length>0).append(this.cssClasses.itemWithCharacterCounter,!!e.getMaxLength()).toString()},t.prototype.getItemCss=function(){return new _().append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return new _().append(this.cssClasses.itemTitle).toString()},_s([me()],t.prototype,"rows",void 0),t}(Be),Fs=function(i){vr(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isVisible=!0,e.cells=[],e}return _s([x()],t.prototype,"isVisible",void 0),_s([me()],t.prototype,"cells",void 0),t}(fe),ul=function(i){vr(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.onAfterCreated=function(){var e=this,n=function(){e.isVisible=e.cells.some(function(r){var o,s;return((o=r.item)===null||o===void 0?void 0:o.editor)&&((s=r.item)===null||s===void 0?void 0:s.editor.hasVisibleErrors)})};this.cells.forEach(function(r){var o,s;!((o=r.item)===null||o===void 0)&&o.editor&&((s=r.item)===null||s===void 0||s.editor.registerFunctionOnPropertyValueChanged("hasVisibleErrors",n))}),n()},t}(Fs),ks=function(){function i(t,e){this.item=t,this.question=e,this.isErrorsCell=!1}return i.prototype.getClassName=function(){return new _().append(this.question.cssClasses.cell).toString()},Object.defineProperty(i.prototype,"className",{get:function(){return this.getClassName()},enumerable:!1,configurable:!0}),i}(),cl=function(i){vr(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isErrorsCell=!0,e}return t.prototype.getClassName=function(){return new _().append(i.prototype.getClassName.call(this)).append(this.question.cssClasses.cellError).append(this.question.cssClasses.cellErrorTop,this.question.showItemErrorOnTop).append(this.question.cssClasses.cellErrorBottom,this.question.showItemErrorOnBottom).toString()},t}(ks);j.addClass("multipletextitem",[{name:"!name",isUnique:!0},"isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:I.questions.inputTypes},{name:"maskType",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"},choices:function(i){var t=il();return t}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"},onGetValue:function(i){return i.maskSettings.getData()},onSetValue:function(i,t){i.maskSettings.setData(t)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"]},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"size:number",minValue:0},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"defaultValueExpression:expression",visible:!1},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Bt(i)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return Bt(i)}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new Bs("")}),j.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem",isArray:!0},{name:"itemSize:number",minValue:0,visible:!1},{name:"colCount:number",default:1,choices:[1,2,3,4,5]},{name:"itemErrorLocation",default:"default",choices:["default","top","bottom"],visible:!1},{name:"itemTitleWidth",category:"layout"}],function(){return new So("")},"question"),Se.Instance.registerQuestion("multipletext",function(i){var t=new So(i);return So.addDefaultItems(t),t});var _c=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pl=function(i){_c(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.createLocalizableString("content",n,!0),n.registerPropertyChangedHandlers(["content"],function(){n.onContentChanged()}),n}return t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!1,configurable:!0}),t.prototype.onContentChanged=function(){var e="";this.onCustomHtmlProducing?e=this.onCustomHtmlProducing():e=this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],n=/{(.*?(element:)[^$].*?)}/g,r=this.content,o=0,s=null;(s=n.exec(r))!==null;){s.index>o&&(e.push(r.substring(o,s.index)),o=s.index);var u=this.getQuestionFromText(s[0]);u?e.push(this.getHtmlForQuestion(u)):e.push(r.substring(o,s.index+s[0].length)),o=s.index+s[0].length}return o<r.length&&e.push(r.substring(o,r.length)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=e.substring(1,e.length-1),e=e.replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(e,n){i.prototype.onAddElement.call(this,e,n),this.addElementToContent(e),e.renderWidth=""},t.prototype.onRemoveElement=function(e){var n=this.getElementContentText(e);this.content=this.content.replace(n,""),i.prototype.onRemoveElement.call(this,e)},t.prototype.dragDropMoveElement=function(e,n,r){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var n=this.getElementContentText(e);this.insertTextAtCursor(n)||(this.content=this.content+n)}},t.prototype.insertTextAtCursor=function(e,n){if(n===void 0&&(n=null),!this.isDesignMode||!B.isAvailable())return!1;var r=B.getSelection();if(r.getRangeAt&&r.rangeCount){var o=r.getRangeAt(0);o.deleteContents();var s=new Text(e);o.insertNode(s);var u=this;if(u.getContent){var d=u.getContent(n);this.content=d}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(ai);j.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],function(){return new pl},"panel");var Bc=function(){function i(){}return i.getIconCss=function(t,e){return new _().append(t.icon).append(t.iconExpanded,!e).toString()},i}(),Fc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Oo=function(i){Fc(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,n){return!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,n){},t.prototype.getConditionJson=function(e,n){return null},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),t}(Be);j.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"clearIfInvisible",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"showCommentArea",visible:!1},{name:"useDisplayValuesInDynamicTexts",alternativeName:"useDisplayValuesInTitle",visible:!1}],function(){return new Oo("")},"question");var kc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),fl=function(i){kc(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"empty"},t}(Be);j.addClass("empty",[],function(){return new fl("")},"question");var Qc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ci=function(i){Qc(t,i);function t(e){var n=i.call(this,e)||this;return n.invisibleOldValues={},n.isChangingValueOnClearIncorrect=!1,n.selectAllItemValue=new re(""),n.selectAllItemValue.id="selectall",n.selectAllItemText=n.createLocalizableString("selectAllText",n.selectAllItem,!0,"selectAllItemText"),n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(n.selectAllItemText),n.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],function(){n.onVisibleChoicesChanged()}),n}return t.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){i.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"valuePropertyName",{get:function(){return this.getPropertyValue("valuePropertyName")},set:function(e){this.setPropertyValue("valuePropertyName",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,n){if(e&&e===this.valuePropertyName){var r=this.value;if(Array.isArray(r)&&n<r.length)return this}return null},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText")},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectAllItem",{get:function(){return this.getPropertyValue("showSelectAllItem")},set:function(e){this.setPropertyValue("showSelectAllItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.showSelectAllItem},set:function(e){this.showSelectAllItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){return this.allElementsSelected()},set:function(e){e?this.selectAll():this.clearValue(!0)},enumerable:!1,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.allElementsSelected=function(){for(var e=this.getNoneItems(),n=0;n<e.length;n++)if(this.isItemSelected(e[n]))return!1;var r=this.getVisibleEnableItems();if(r.length===0)return!1;var o=this.value;if(!o||!Array.isArray(o)||o.length===0||o.length<r.length)return!1;for(var s=[],n=0;n<o.length;n++)s.push(this.getRealValue(o[n]));for(var n=0;n<r.length;n++)if(s.indexOf(r[n].value)<0)return!1;return!0},t.prototype.selectAll=function(){for(var e=[],n=this.getVisibleEnableItems(),r=0;r<n.length;r++)e.push(n[r].value);this.renderedValue=e},t.prototype.clickItemHandler=function(e,n){if(!this.isReadOnlyAttr)if(e===this.selectAllItem)n===!0||n===!1?this.isAllSelected=n:this.toggleSelectAll();else if(this.isNoneItem(e))this.renderedValue=n?[e.value]:[];else{var r=[].concat(this.renderedValue||[]),o=r.indexOf(e.value);n?o<0&&r.push(e.value):o>-1&&r.splice(o,1),this.renderedValue=r}},t.prototype.isItemSelectedCore=function(e){if(e===this.selectAllItem)return this.isAllSelected;var n=this.renderedValue;if(!n||!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(this.isTwoValueEquals(n[r],e.value))return!0;return!1},t.prototype.hasUnknownValueItem=function(e,n,r,o){n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1);var s=this.valuePropertyName;return s&&typeof e=="object"&&e[s]!==void 0&&(e=e[s]),i.prototype.hasUnknownValueItem.call(this,e,n,r,o)},t.prototype.convertFuncValuetoQuestionValue=function(e){var n=this;if(this.valuePropertyName&&Array.isArray(e)&&e.length>0){var r=[];e.forEach(function(o){var s=typeof o=="object",u=s?o:{};s||(u[n.valuePropertyName]=o),r.push(u)}),e=r}return i.prototype.convertDefaultValue.call(this,e)},t.prototype.getRealValue=function(e){return e&&(this.valuePropertyName?e[this.valuePropertyName]:e)},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSelectedChoices",{get:function(){return this.getPropertyValue("maxSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("maxSelectedChoices",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minSelectedChoices",{get:function(){return this.getPropertyValue("minSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("minSelectedChoices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChoices",{get:function(){var e=this.renderedValue,n=this.visibleChoices,r=this.selectedItemValues;if(this.isEmpty())return[];var o=this.defaultSelectedItemValues?[].concat(this.defaultSelectedItemValues,n):n,s=e.map(function(d){return re.getItemByValue(o,d)}).filter(function(d){return!!d});!s.length&&!r&&this.updateSelectedItemValues();var u=this.validateItemValues(s);return u},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this.selectedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilteredValue",{get:function(){return!!this.valuePropertyName},enumerable:!1,configurable:!0}),t.prototype.getFilteredName=function(){var e=i.prototype.getFilteredName.call(this);return this.hasFilteredValue&&(e+="-unwrapped"),e},t.prototype.getFilteredValue=function(){return this.hasFilteredValue?this.renderedValue:i.prototype.getFilteredValue.call(this)},t.prototype.getMultipleSelectedItems=function(){return this.selectedChoices},t.prototype.validateItemValues=function(e){var n=this;if(e.length)return e;var r=this.selectedItemValues;if(r&&r.length)return this.defaultSelectedItemValues=[].concat(r),r;var o=this.renderedValue;return o.map(function(s){return n.createItemValue(s)})},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!0},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),!n&&this.minSelectedChoices>0&&this.checkMinSelectedChoicesUnreached()){var o=new ot(this.getLocalizationFormatString("minSelectError",this.minSelectedChoices),this);e.push(o)}},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.updateSelectAllItemProps()},t.prototype.onEnableItemCallBack=function(e){return this.shouldCheckMaxSelectedChoices()?this.isItemSelected(e):!0},t.prototype.onAfterRunItemsEnableCondition=function(){if(this.updateSelectAllItemProps(),this.maxSelectedChoices<1){this.otherItem.setIsEnabled(!0);return}this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected)},t.prototype.updateSelectAllItemProps=function(){this.hasSelectAll&&this.selectAllItem.setIsEnabled(this.getSelectAllEnabled())},t.prototype.getSelectAllEnabled=function(){if(!this.hasSelectAll)return!0;this.activeChoices;var e=this.getVisibleEnableItems().length,n=this.maxSelectedChoices;return n>0&&n<e?!1:e>0},t.prototype.getVisibleEnableItems=function(){for(var e=new Array,n=this.activeChoices,r=0;r<n.length;r++){var o=n[r];o.isEnabled&&o.isVisible&&e.push(o)}return e},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value,n=Array.isArray(e)?e.length:0;return n>=this.maxSelectedChoices},t.prototype.checkMinSelectedChoicesUnreached=function(){if(this.minSelectedChoices<1)return!1;var e=this.value,n=Array.isArray(e)?e.length:0;return n<this.minSelectedChoices},t.prototype.getItemClassCore=function(e,n){return this.value,n.isSelectAllItem=e===this.selectAllItem,new _().append(i.prototype.getItemClassCore.call(this,e,n)).append(this.cssClasses.itemSelectAll,n.isSelectAllItem).toString()},t.prototype.updateValueFromSurvey=function(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),this.invisibleOldValues={}},t.prototype.setDefaultValue=function(){i.prototype.setDefaultValue.call(this);var e=this.defaultValue;if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=this.getRealValue(e[n]);this.canClearValueAnUnknown(r)&&this.addIntoInvisibleOldValues(r)}},t.prototype.addIntoInvisibleOldValues=function(e){this.invisibleOldValues[e]=e},t.prototype.hasValueToClearIncorrectValues=function(){return i.prototype.hasValueToClearIncorrectValues.call(this)||!h.isValueEmpty(this.invisibleOldValues)},t.prototype.setNewValue=function(e){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues={}),e=this.valueFromData(e);var n=this.value;e||(e=[]),n||(n=[]),!this.isTwoValueEquals(n,e)&&(this.removeNoneItemsValues(n,e),i.prototype.setNewValue.call(this,e))},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var n=this.getFirstUnknownIndex(e);return n<0?"":e[n]},t.prototype.getStoreOthersAsComment=function(){return this.valuePropertyName?!1:i.prototype.getStoreOthersAsComment.call(this)},t.prototype.setOtherValueIntoValue=function(e){var n=this.getFirstUnknownIndex(e);if(n<0)return e;var r=this.otherItem.value,o=this.valuePropertyName;if(o){var s={};s[o]=r,r=s}return e.splice(n,1,r),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(this.hasUnknownValueItem(e[n],!1,!1))return n;return-1},t.prototype.removeNoneItemsValues=function(e,n){var r=[];if(this.showNoneItem&&r.push(this.noneItem.value),this.showRefuseItem&&r.push(this.refuseItem.value),this.showDontKnowItem&&r.push(this.dontKnowItem.value),r.length>0){var o=this.noneIndexInArray(e,r),s=this.noneIndexInArray(n,r);if(o.index>-1)if(o.val===s.val)n.length>0&&n.splice(s.index,1);else{var u=this.noneIndexInArray(n,[o.val]);u.index>-1&&u.index<n.length-1&&n.splice(u.index,1)}else if(s.index>-1&&n.length>1){var d=this.convertValueToObject([s.val])[0];n.splice(0,n.length,d)}}},t.prototype.noneIndexInArray=function(e,n){if(!Array.isArray(e))return{index:-1,val:void 0};for(var r=e.length-1;r>=0;r--){var o=n.indexOf(this.getRealValue(e[r]));if(o>-1)return{index:r,val:n[o]}}return{index:-1,val:void 0}},t.prototype.canUseFilteredChoices=function(){return!this.hasSelectAll&&i.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("showSelectAllItem")},t.prototype.addNonChoicesItems=function(e,n){i.prototype.addNonChoicesItems.call(this,e,n),this.supportSelectAll()&&this.addNonChoiceItem(e,this.selectAllItem,n,this.hasSelectAll,I.specialChoicesOrder.selectAllItem)},t.prototype.isBuiltInChoice=function(e){return e===this.selectAllItem||i.prototype.isBuiltInChoice.call(this,e)},t.prototype.isItemInList=function(e){return e==this.selectAllItem?this.hasSelectAll:i.prototype.isItemInList.call(this,e)},t.prototype.getDisplayValueEmpty=function(){var e=this;return re.getTextOrHtmlByValue(this.visibleChoices.filter(function(n){return n!=e.selectAllItemValue}),void 0)},t.prototype.getDisplayValueCore=function(e,n){if(!Array.isArray(n))return i.prototype.getDisplayValueCore.call(this,e,n);var r=this.valuePropertyName,o=function(s){var u=n[s];return r&&u[r]&&(u=u[r]),u};return this.getDisplayArrayValue(e,n,o)},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var n=this.value,r=!1,o=this.restoreValuesFromInvisible();if(!(!n&&o.length==0)){if(!Array.isArray(n)||n.length==0){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue(!0)),this.isChangingValueOnClearIncorrect=!1,o.length==0)return;n=[]}for(var s=[],u=0;u<n.length;u++){var d=this.getRealValue(n[u]),y=this.canClearValueAnUnknown(d);!e&&!y||e&&!this.isValueDisabled(d)?s.push(n[u]):(r=!0,y&&this.addIntoInvisibleOldValues(n[u]))}for(var u=0;u<o.length;u++)s.push(o[u]),r=!0;r&&(this.isChangingValueOnClearIncorrect=!0,s.length==0?this.clearValue(!0):this.value=s,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],n=this.visibleChoices,r=0;r<n.length;r++){var o=n[r];if(o!==this.selectAllItem){var s=n[r].value;h.isTwoValueEquals(s,this.invisibleOldValues[s])&&(this.isItemSelected(o)||e.push(s),delete this.invisibleOldValues[s])}}return e},t.prototype.getConditionJson=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.prototype.getConditionJson.call(this,e,n);return(e=="contains"||e=="notcontains")&&(r.type="radiogroup"),r.maxSelectedChoices=0,r.minSelectedChoices=0,r},t.prototype.isAnswerCorrect=function(){return h.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getIsItemValue=function(e,n){return!e||!Array.isArray(e)?!1:e.indexOf(n.value)>=0},t.prototype.valueFromData=function(e){if(!e)return e;if(!Array.isArray(e))return[i.prototype.valueFromData.call(this,e)];for(var n=[],r=0;r<e.length;r++){var o=re.getItemByValue(this.activeChoices,e[r]);o?n.push(o.value):n.push(e[r])}return n},t.prototype.rendredValueFromData=function(e){return e=this.convertValueFromObject(e),i.prototype.rendredValueFromData.call(this,e)},t.prototype.rendredValueToData=function(e){return e=i.prototype.rendredValueToData.call(this,e),this.convertValueToObject(e)},t.prototype.convertValueFromObject=function(e){return this.valuePropertyName?h.convertArrayObjectToValue(e,this.valuePropertyName):e},t.prototype.convertValueToObject=function(e){if(!this.valuePropertyName)return e;var n=void 0;return this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1&&(n=this.data.getValue(this.getValueName())),h.convertArrayValueToObject(e,this.valuePropertyName,n)},t.prototype.renderedValueFromDataCore=function(e){if((!e||!Array.isArray(e))&&(e=[]),!this.hasActiveChoices)return e;for(var n=0;n<e.length;n++){if(e[n]==this.otherItem.value)return e;if(this.hasUnknownValueItem(e[n],!0,!1)){this.otherValue=e[n];var r=e.slice();return r[n]=this.otherItem.value,r}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var n=0;n<e.length;n++)if(e[n]==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()){var r=e.slice();return r[n]=this.otherValue,r}return e},t.prototype.selectOtherValueFromComment=function(e){var n=[],r=this.renderedValue;if(Array.isArray(r))for(var o=0;o<r.length;o++)r[o]!==this.otherItem.value&&n.push(r[o]);e&&n.push(this.otherItem.value),this.value=n},Object.defineProperty(t.prototype,"checkBoxSvgPath",{get:function(){return"M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),t}(li);j.addClass("checkbox",[{name:"showSelectAllItem:boolean",alternativeName:"hasSelectAll"},{name:"separateSpecialChoices",visible:!0},{name:"maxSelectedChoices:number",default:0,onSettingValue:function(i,t){if(t<=0)return 0;var e=i.minSelectedChoices;return e>0&&t<e?e:t}},{name:"minSelectedChoices:number",default:0,onSettingValue:function(i,t){if(t<=0)return 0;var e=i.maxSelectedChoices;return e>0&&t>e?e:t}},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"showSelectAllItem",visibleIf:function(i){return i.hasSelectAll}},{name:"valuePropertyName",category:"data"},{name:"itemComponent",visible:!1,default:"survey-checkbox-item"}],function(){return new ci("")},"checkboxbase"),Se.Instance.registerQuestion("checkbox",function(i){var t=new ci(i);return t.choices=Se.DefaultChoices,t});var Hc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),zc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},dl=function(i){Hc(t,i);function t(e){var n=i.call(this,e)||this;return n.onItemClick=function(r){n.isItemDisabled(r)||(n.isExpanded=!1,n.isItemSelected(r)?(n.selectedItems.splice(n.selectedItems.indexOf(r),1)[0],n.onSelectionChanged&&n.onSelectionChanged(r,"removed")):(n.selectedItems.push(r),n.onSelectionChanged&&n.onSelectionChanged(r,"added")))},n.isItemDisabled=function(r){return r.enabled!==void 0&&!r.enabled},n.isItemSelected=function(r){return!!n.allowSelection&&n.selectedItems.filter(function(o){return n.areSameItems(o,r)}).length>0},n.setSelectedItems(e.selectedItems||[]),n}return t.prototype.updateItemState=function(){var e=this;this.actions.forEach(function(n){var r=e.isItemSelected(n);n.visible=e.hideSelectedItems?!r:!0})},t.prototype.updateState=function(){var e=this;this.updateItemState(),this.isEmpty=this.renderedActions.filter(function(n){return e.isItemVisible(n)}).length===0},t.prototype.setSelectedItems=function(e){this.selectedItems=e,this.updateState()},t.prototype.selectFocusedItem=function(){i.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},zc([x()],t.prototype,"hideSelectedItems",void 0),t}(on),Uc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Eo=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},hl=function(i){Uc(t,i);function t(e,n){var r=i.call(this,e,n)||this;return r.setHideSelectedItems(e.hideSelectedItems),r.syncFilterStringPlaceholder(),r.closeOnSelect=e.closeOnSelect,r}return t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.syncFilterStringPlaceholder()},t.prototype.updateListState=function(){this.listModel.updateState(),this.syncFilterStringPlaceholder()},t.prototype.syncFilterStringPlaceholder=function(){var e=this.getSelectedActions();e.length||this.question.selectedItems.length||this.listModel.focusedItem?this.filterStringPlaceholder=void 0:this.filterStringPlaceholder=this.question.placeholder},t.prototype.getSelectedActions=function(){return this.listModel.actions.filter(function(e){return e.selected})},t.prototype.getFocusFirstInputSelector=function(){return this.listModel.hideSelectedItems&&Le&&!this.isValueEmpty(this.question.value)?this.itemSelector:i.prototype.getFocusFirstInputSelector.call(this)},t.prototype.getPopupCssClasses=function(){return"sv-multi-select-list"},t.prototype.createListModel=function(){var e=this,n=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(u,d){e.resetFilterString(),u.id==="selectall"?e.selectAllItems():d==="added"&&u.value===I.noneItemValue?e.selectNoneItem():d==="added"?e.selectItem(u.value):d==="removed"&&e.deselectItem(u.value),e.popupRecalculatePosition(!1),e.closeOnSelect&&(e.popupModel.isVisible=!1)});var o={items:n,onSelectionChanged:r,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},s=new dl(o);return this.setOnTextSearchCallbackForListModel(s),s.forceShowFilter=!0,s},t.prototype.resetFilterString=function(){i.prototype.resetFilterString.call(this),this.inputString=null,this.hintString=""},Object.defineProperty(t.prototype,"shouldResetAfterCancel",{get:function(){return Le&&!this.closeOnSelect},enumerable:!1,configurable:!0}),t.prototype.createPopup=function(){var e=this;i.prototype.createPopup.call(this),this.popupModel.onFooterActionsCreated.add(function(n,r){e.shouldResetAfterCancel&&r.actions.push({id:"sv-dropdown-done-button",title:e.doneButtonCaption,innerCss:"sv-popup__button--done",needSpace:!0,action:function(){e.popupModel.isVisible=!1},enabled:new De(function(){return!e.isTwoValueEquals(e.question.renderedValue,e.previousValue)})})}),this.popupModel.onVisibilityChanged.add(function(n,r){e.shouldResetAfterCancel&&r.isVisible&&(e.previousValue=[].concat(e.question.renderedValue||[]))}),this.popupModel.onCancel=function(){e.shouldResetAfterCancel&&(e.question.renderedValue=e.previousValue,e.updateListState())}},t.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.question.isAllSelected&&this.question.hideSelectedItems&&this.popupModel.hide(),this.updateListState()},t.prototype.selectNoneItem=function(){this.question.renderedValue=[I.noneItemValue],this.updateListState()},t.prototype.selectItem=function(e){var n=[].concat(this.question.renderedValue||[]);n.push(e),this.question.renderedValue=n,this.updateListState()},t.prototype.deselectItem=function(e){var n=[].concat(this.question.renderedValue||[]);n.splice(n.indexOf(e),1),this.question.renderedValue=n,this.applyHintString(this.listModel.focusedItem),this.updateListState()},t.prototype.clear=function(){i.prototype.clear.call(this),this.syncFilterStringPlaceholder()},t.prototype.onClear=function(e){i.prototype.onClear.call(this,e),this.updateListState()},t.prototype.setHideSelectedItems=function(e){this.listModel.hideSelectedItems=e,this.updateListState()},t.prototype.removeLastSelectedItem=function(){this.deselectItem(this.question.renderedValue[this.question.renderedValue.length-1]),this.popupRecalculatePosition(!1)},t.prototype.inputKeyHandler=function(e){e.keyCode===8&&!this.filterString&&(this.removeLastSelectedItem(),e.preventDefault(),e.stopPropagation())},t.prototype.setInputStringFromSelectedItem=function(e){this.question.searchEnabled&&(this.inputString=null)},t.prototype.focusItemOnClickAndPopup=function(){},t.prototype.onEscape=function(){},t.prototype.beforeScrollToFocusedItem=function(e){},t.prototype.afterScrollToFocusedItem=function(){var e;!((e=this.listModel.focusedItem)===null||e===void 0)&&e.selected?this.hintString="":this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.syncFilterStringPlaceholder()},t.prototype.onPropertyChangedHandler=function(e,n){i.prototype.onPropertyChangedHandler.call(this,e,n),(n.name==="value"||n.name==="renderedValue"||n.name==="placeholder")&&this.syncFilterStringPlaceholder()},Eo([x({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),Eo([x({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),Eo([x()],t.prototype,"previousValue",void 0),Eo([x({localizable:{defaultStr:"tagboxDoneButtonCaption"}})],t.prototype,"doneButtonCaption",void 0),t}(Po),Wc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),yn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Qs=function(i){Wc(t,i);function t(e){var n=i.call(this,e)||this;return n.itemDisplayNameMap={},n.onOpened=n.addEvent(),n.ariaExpanded="false",n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.createLocalizableString("readOnlyText",n,!0),n.deselectAllItemText=n.createLocalizableString("deselectAllText",n.selectAllItem,!0,"deselectAllItemText"),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],function(){n.updateReadOnlyText()}),n.updateReadOnlyText(),n}return t.prototype.locStrsChanged=function(){var e;i.prototype.locStrsChanged.call(this),this.updateReadOnlyText(),(e=this.dropdownListModelValue)===null||e===void 0||e.locStrsChanged()},t.prototype.updateReadOnlyText=function(){this.readOnlyText=this.displayValue||this.placeholder},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.dropdownListModelValue||(this.dropdownListModelValue=new hl(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.getLocalizableStringText("readOnlyText")},set:function(e){this.setLocalizableStringText("readOnlyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locReadOnlyText",{get:function(){return this.getLocalizableString("readOnlyText")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"tagbox"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this.dropdownListModel.popupModel},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return new _().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlEditable,!this.isDisabledStyle&&!this.isReadOnlyStyle&&!this.isPreviewStyle).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()},t.prototype.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),Nn(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.hasUnknownValue=function(e,n,r,o){return n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),this.choicesLazyLoadEnabled?!1:i.prototype.hasUnknownValue.call(this,e,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var e,n=(e=this.otherValue)===null||e===void 0?void 0:e.trim();return n?i.prototype.hasUnknownValue.call(this,n,!0,!1):!1},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.dropdownListModelValue&&this.dropdownListModel.updateItems()},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.choicesLazyLoadEnabled?this.createItemValue(e,n):i.prototype.getItemIfChoicesNotContainThisValue.call(this,e,n)},t.prototype.validateItemValues=function(e){var n=this;this.updateItemDisplayNameMap();var r=this.renderedValue;if(e.length&&e.length===r.length)return e;var o=this.selectedItemValues;if(!e.length&&o&&o.length)return this.defaultSelectedItemValues=[].concat(o),o;var s=e.map(function(u){return u.value});return r.filter(function(u){return s.indexOf(u)===-1}).forEach(function(u){var d=n.getItemIfChoicesNotContainThisValue(u,n.itemDisplayNameMap[u]);d&&e.push(d)}),e.sort(function(u,d){return r.indexOf(u.value)-r.indexOf(d.value)}),e},t.prototype.updateItemDisplayNameMap=function(){var e=this,n=function(r){e.itemDisplayNameMap[r.value]=r.text};(this.defaultSelectedItemValues||[]).forEach(n),(this.selectedItemValues||[]).forEach(n),this.visibleChoices.forEach(n)},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.onBlurCore=function(e){this.dropdownListModel.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.dropdownListModel.onFocus(e),i.prototype.onFocusCore.call(this,e)},t.prototype.allElementsSelected=function(){var e=i.prototype.allElementsSelected.call(this);return this.updateSelectAllItemText(e),e},t.prototype.updateSelectAllItemText=function(e){this.selectAllItem.setLocText(e?this.deselectAllItemText:this.selectAllItemText)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},t.prototype.clearValue=function(e){var n;i.prototype.clearValue.call(this,e),(n=this.dropdownListModelValue)===null||n===void 0||n.clear()},Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||I.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),yn([x()],t.prototype,"searchMode",void 0),yn([x()],t.prototype,"allowClear",void 0),yn([x({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),yn([x({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),yn([x({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),yn([x()],t.prototype,"choicesLazyLoadPageSize",void 0),yn([x({getDefaultValue:function(){return I.tagboxCloseOnSelect}})],t.prototype,"closeOnSelect",void 0),yn([x()],t.prototype,"textWrapEnabled",void 0),t}(ci);j.addClass("tagbox",[{name:"placeholder",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",default:!0},{name:"searchEnabled:boolean",default:!0},{name:"textWrapEnabled:boolean",default:!0},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"hideSelectedItems:boolean",default:!1},{name:"closeOnSelect:boolean"},{name:"itemComponent",visible:!1,default:""},{name:"searchMode",default:"contains",choices:["contains","startsWith"]}],function(){return new Qs("")},"checkbox"),Se.Instance.registerQuestion("tagbox",function(i){var t=new Qs(i);return t.choices=Se.DefaultChoices,t});var $c=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),gl=function(i){$c(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.doDragOver=function(){if(e.parentElement.getType()!=="imagepicker"){var n=e.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button");n.style.cursor="grabbing"}},e.doBanDropHere=function(){if(e.parentElement.getType()!=="imagepicker"){var n=e.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button");n.style.cursor="not-allowed"}},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){if(this.parentElement.getType()==="imagepicker")return this.createImagePickerShortcut(this.draggedElement,e,n,r);var o=R.createElement("div");if(o){o.className="sv-drag-drop-choices-shortcut";var s=!0,u=n.closest("[data-sv-drop-target-item-value]").cloneNode(s);u.classList.add("sv-drag-drop-choices-shortcut__content");var d=u.querySelector(".svc-item-value-controls__drag-icon");d.style.visibility="visible";var y=u.querySelector(".svc-item-value-controls__remove");y.style.backgroundColor="transparent",u.classList.remove("svc-item-value--moveup"),u.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,o.appendChild(u);var V=n.getBoundingClientRect();return o.shortcutXOffset=r.clientX-V.x,o.shortcutYOffset=r.clientY-V.y,this.isBottom=null,typeof this.onShortcutCreated=="function"&&this.onShortcutCreated(o),o}},t.prototype.createImagePickerShortcut=function(e,n,r,o){var s=R.createElement("div");if(s){s.style.cssText=` 
+      cursor: grabbing;
+      position: absolute;
+      z-index: 10000;
+      box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));
+      background-color: var(--sjs-general-backcolor, var(--background, #fff));
+      padding: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
+      border-radius: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
+    `;var u=r.closest("[data-sv-drop-target-item-value]");this.imagepickerControlsNode=u.querySelector(".svc-image-item-value-controls");var d=u.querySelector(".sd-imagepicker__image-container"),y=u.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="none"),d.style.width=y.width+"px",d.style.height=y.height+"px",y.style.objectFit="cover",y.style.borderRadius="4px",s.appendChild(y),s}},t.prototype.getDropTargetByDataAttributeValue=function(e){var n;return n=this.parentElement.choices.filter(function(r){return""+r.value==e})[0],n},t.prototype.getVisibleChoices=function(){var e=this.parentElement;return e.getType()==="ranking"?e.selectToRankEnabled?e.visibleChoices:e.rankingChoices:e.visibleChoices},t.prototype.isDropTargetValid=function(e,n){var r=this.getVisibleChoices();if(this.parentElement.getType()!=="imagepicker"){var o=r.indexOf(this.dropTarget),s=r.indexOf(this.draggedElement);if(s>o&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(s<o&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return r.indexOf(e)!==-1},t.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},t.prototype.calculateIsBottom=function(e,n){var r=n.getBoundingClientRect();return e>=r.y+r.height/2},t.prototype.afterDragOver=function(e){var n=this.getVisibleChoices(),r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);if(o<r&&this.isBottom===!0)n.splice(o,1),n.splice(r,0,this.draggedElement);else if(o>r&&this.isBottom===!1)n.splice(r,1),n.splice(o,0,this.dropTarget);else return;this.parentElement.getType()!=="imagepicker"&&(o!==r&&(e.classList.remove("svc-item-value--moveup"),e.classList.remove("svc-item-value--movedown"),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),o>r&&(this.dropTarget.isDragDropMoveDown=!0),o<r&&(this.dropTarget.isDragDropMoveUp=!0),i.prototype.ghostPositionChanged.call(this))},t.prototype.doDrop=function(){var e=this.parentElement.choices,n=this.getVisibleChoices().filter(function(s){return e.indexOf(s)!==-1}),r=e.indexOf(this.draggedElement),o=n.indexOf(this.draggedElement);return e.splice(r,1),e.splice(o,0,this.draggedElement),this.parentElement},t.prototype.clear=function(){this.parentElement&&this.updateVisibleChoices(this.parentElement),this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="flex",this.imagepickerControlsNode=null),i.prototype.clear.call(this)},t.prototype.updateVisibleChoices=function(e){e.getType()==="ranking"?e.updateRankingChoices():e.updateVisibleChoices()},t}(bs),Jc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),yl=function(i){Jc(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isDragOverRootNode=!1,e.doDragOver=function(){var n=e.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item");n.style.cursor="grabbing"},e.reorderRankedItem=function(n,r,o){if(r!=o){var s=n.rankingChoices,u=s[r];n.isValueSetByUser=!0,s.splice(r,1),s.splice(o,0,u),e.updateDraggedElementShortcut(o+1)}},e.doBanDropHere=function(){if(e.isDragOverRootNode){e.allowDropHere=!0;return}var n=e.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item");n.style.cursor="not-allowed"},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){var o=R.createElement("div");if(o){o.className=this.shortcutClass+" sv-ranking-shortcut";var s=!0,u=n.cloneNode(s);o.appendChild(u);var d=n.getBoundingClientRect();o.style.left=d.x,o.style.top=d.y,this.domAdapter.rootElement.append(o);var y=o.offsetHeight,V=r.clientY;return V>d.y+y&&(V=d.y+y-10),o.shortcutXOffset=r.clientX-d.x,o.shortcutYOffset=V-d.y,this.parentElement&&this.parentElement.useFullItemSizeForShortcut&&(o.style.width=n.offsetWidth+"px",o.style.height=n.offsetHeight+"px"),o}},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return new _().append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,mo).toString()},enumerable:!1,configurable:!0}),t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.findDropTargetNodeByDragOverNode=function(e){return this.isDragOverRootNode=this.getIsDragOverRootNode(e),i.prototype.findDropTargetNodeByDragOverNode.call(this,e)},t.prototype.getIsDragOverRootNode=function(e){return typeof e.className=="string"&&e.className.indexOf("sv-ranking")!==-1},t.prototype.isDropTargetValid=function(e,n){var r=this.parentElement.rankingChoices;return r.indexOf(e)!==-1},t.prototype.calculateIsBottom=function(e,n){return this.dropTarget instanceof re&&this.draggedElement!==this.dropTarget?i.prototype.calculateIsBottom.call(this,e,n):!1},t.prototype.getIndices=function(e,n,r){var o=n.indexOf(this.draggedElement),s=r.indexOf(this.dropTarget);if(o<0&&this.draggedElement&&(this.draggedElement=re.getItemByValue(n,this.draggedElement.value)||this.draggedElement,o=n.indexOf(this.draggedElement)),s===-1){var u=e.value.length;s=u}else n==r?(!this.isBottom&&o<s&&s--,this.isBottom&&o>s&&s++):n!=r&&this.isBottom&&s++;return{fromIndex:o,toIndex:s}},t.prototype.afterDragOver=function(e){var n=this.getIndices(this.parentElement,this.parentElement.rankingChoices,this.parentElement.rankingChoices),r=n.fromIndex,o=n.toIndex;this.reorderRankedItem(this.parentElement,r,o)},t.prototype.updateDraggedElementShortcut=function(e){var n;if(!((n=this.domAdapter)===null||n===void 0)&&n.draggedElementShortcut){var r=e!==null?e+"":"",o=this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item__index");o.innerText=r}},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,i.prototype.ghostPositionChanged.call(this)},t.prototype.doDrop=function(){return this.parentElement.setValue(),this.parentElement},t.prototype.clear=function(){this.parentElement&&(this.parentElement.dropTargetNodeMove=null,this.parentElement.updateRankingChoices(!0)),i.prototype.clear.call(this)},t}(gl),Gc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ml=function(i){Gc(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.selectToRank=function(n,r,o){var s=[].concat(n.rankingChoices),u=n.unRankingChoices,d=u[r];s.splice(o,0,d),e.updateChoices(n,s)},e.unselectFromRank=function(n,r,o){var s=[].concat(n.rankingChoices);s.splice(r,1),e.updateChoices(n,s)},e}return t.prototype.findDropTargetNodeByDragOverNode=function(e){if(e.dataset.ranking==="from-container"||e.dataset.ranking==="to-container")return e;var n=e.closest("[data-ranking='to-container']"),r=e.closest("[data-ranking='from-container']");return this.parentElement.unRankingChoices.length===0&&r?r:this.parentElement.rankingChoices.length===0&&n?n:i.prototype.findDropTargetNodeByDragOverNode.call(this,e)},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]||this.parentElement.unRankingChoices[e]},t.prototype.getDropTargetByNode=function(e,n){return e.dataset.ranking==="to-container"?"to-container":e.dataset.ranking==="from-container"||e.closest("[data-ranking='from-container']")?"from-container":i.prototype.getDropTargetByNode.call(this,e,n)},t.prototype.isDropTargetValid=function(e,n){return e==="to-container"||e==="from-container"?!0:i.prototype.isDropTargetValid.call(this,e,n)},t.prototype.afterDragOver=function(e){var n=this.parentElement,r=n.rankingChoices,o=n.unRankingChoices;if(this.isDraggedElementUnranked&&this.isDropTargetRanked){this.doRankBetween(e,o,r,this.selectToRank);return}if(this.isDraggedElementRanked&&this.isDropTargetRanked){this.doRankBetween(e,r,r,this.reorderRankedItem);return}if(this.isDraggedElementRanked&&!this.isDropTargetRanked){this.doRankBetween(e,r,o,this.unselectFromRank);return}},t.prototype.doRankBetween=function(e,n,r,o){var s=this.parentElement,u=this.getIndices(s,n,r),d=u.fromIndex,y=u.toIndex;o(s,d,y,e)},Object.defineProperty(t.prototype,"isDraggedElementRanked",{get:function(){return this.parentElement.rankingChoices.indexOf(this.draggedElement)!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDropTargetRanked",{get:function(){return this.dropTarget==="to-container"?!0:this.parentElement.rankingChoices.indexOf(this.dropTarget)!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDraggedElementUnranked",{get:function(){return!this.isDraggedElementRanked},enumerable:!1,configurable:!0}),t.prototype.updateChoices=function(e,n){e.isValueSetByUser=!0,e.rankingChoices=n,e.updateUnRankingChoices(n)},t}(yl),Zc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Hs=function(i){Zc(t,i);function t(e){var n=i.call(this,e)||this;return n.domNode=null,n.onVisibleChoicesChanged=function(){if(i.prototype.onVisibleChoicesChanged.call(n),n.carryForwardStartUnranked&&!n.isValueSetByUser&&!n.selectToRankEnabled&&!n.defaultValue&&(n.value=[]),n.visibleChoices.length===1&&!n.selectToRankEnabled){n.value=[],n.value.push(n.visibleChoices[0].value),n.updateRankingChoices();return}if(n.isEmpty()){n.updateRankingChoices();return}if(n.selectToRankEnabled){n.updateRankingChoices();return}n.visibleChoices.length>n.value.length&&n.addToValueByVisibleChoices(),n.visibleChoices.length<n.value.length&&n.removeFromValueByVisibleChoices(),n.updateRankingChoices()},n.localeChanged=function(){i.prototype.localeChanged.call(n),n.updateRankingChoicesSync()},n._rankingChoicesAnimation=new Nt(n.getChoicesAnimationOptions(!0),function(r){n._renderedRankingChoices=r},function(){return n.renderedRankingChoices}),n._unRankingChoicesAnimation=new Nt(n.getChoicesAnimationOptions(!1),function(r){n._renderedUnRankingChoices=r},function(){return n.renderedUnRankingChoices}),n.rankingChoices=[],n.unRankingChoices=[],n._renderedRankingChoices=[],n._renderedUnRankingChoices=[],n.handlePointerDown=function(r,o,s){var u=r.target;n.isDragStartNodeValid(u)&&n.isAllowStartDrag(u,o)&&(n.draggedChoiceValue=o.value,n.draggedTargetNode=s,n.dragOrClickHelper.onPointerDown(r))},n.startDrag=function(r){var o=re.getItemByValue(n.activeChoices,n.draggedChoiceValue);n.dragDropRankingChoices.startDrag(r,o,n,n.draggedTargetNode)},n.handlePointerUp=function(r,o,s){if(n.selectToRankEnabled){var u=r.target;n.isAllowStartDrag(u,o)&&n.handleKeydownSelectToRank(r,o," ",!1)}},n.handleKeydown=function(r,o){if(!n.isReadOnlyAttr&&!n.isDesignMode){var s=r.key,u=n.rankingChoices.indexOf(o);if(n.selectToRankEnabled){n.handleKeydownSelectToRank(r,o);return}if(s==="ArrowUp"&&u||s==="ArrowDown"&&u!==n.rankingChoices.length-1){var d=s=="ArrowUp"?u-1:u+1;n.dragDropRankingChoices.reorderRankedItem(n,u,d),n.setValueAfterKeydown(d,"",!0,r)}}},n.focusItem=function(r,o){if(n.domNode)if(n.selectToRankEnabled&&o){var s="[data-ranking='"+o+"']",u=n.domNode.querySelectorAll(s+" ."+n.cssClasses.item);u[r].focus()}else{var u=n.domNode.querySelectorAll("."+n.cssClasses.item);u[r].focus()}},n.isValueSetByUser=!1,n.setValue=function(){var r=[];n.rankingChoices.forEach(function(o){r.push(o.value)}),n.value=r,n.isValueSetByUser=!0},n.registerFunctionOnPropertyValueChanged("selectToRankEnabled",function(){n.clearValue(!0),n.setDragDropRankingChoices(),n.updateRankingChoicesSync()}),n.dragOrClickHelper=new Cs(n.startDrag),n}return t.prototype.getType=function(){return"ranking"},t.prototype.getItemTabIndex=function(e){if(!(this.isDesignMode||e.disabled))return 0},t.prototype.supportContainerQueries=function(){return this.selectToRankEnabled},Object.defineProperty(t.prototype,"rootClass",{get:function(){return new _().append(this.cssClasses.root).append(this.cssClasses.rootMobileMod,this.isMobileMode()).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDesignMode,!!this.isDesignMode).append(this.cssClasses.itemOnError,this.hasCssError()).append(this.cssClasses.rootDragHandleAreaIcon,I.rankingDragHandleArea==="icon").append(this.cssClasses.rootSelectToRankMod,this.selectToRankEnabled).append(this.cssClasses.rootSelectToRankEmptyValueMod,this.isEmpty()).append(this.cssClasses.rootSelectToRankAlignHorizontal,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="horizontal").append(this.cssClasses.rootSelectToRankAlignVertical,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="vertical").append(this.cssClasses.rootSelectToRankSwapAreas,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="horizontal"&&this.selectToRankSwapAreas).toString()},enumerable:!1,configurable:!0}),t.prototype.isItemSelectedCore=function(e){return this.selectToRankEnabled?i.prototype.isItemSelectedCore.call(this,e):!0},t.prototype.getItemClassCore=function(e,n){return new _().append(i.prototype.getItemClassCore.call(this,e,n)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===e).toString()},t.prototype.getContainerClasses=function(e){var n=!1,r=e==="to",o=e==="from";return r?n=this.renderedRankingChoices.length===0:o&&(n=this.renderedUnRankingChoices.length===0),new _().append(this.cssClasses.container).append(this.cssClasses.containerToMode,r).append(this.cssClasses.containerFromMode,o).append(this.cssClasses.containerEmptyMode,n).toString()},t.prototype.isItemCurrentDropTarget=function(e){return this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return this.ghostPosition==="top"?this.cssClasses.dragDropGhostPositionTop:this.ghostPosition==="bottom"?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getItemIndexClasses=function(e){var n;return this.selectToRankEnabled?n=this.unRankingChoices.indexOf(e)!==-1:n=this.isEmpty(),new _().append(this.cssClasses.itemIndex).append(this.cssClasses.itemIndexEmptyMode,n).toString()},t.prototype.getNumberByIndex=function(e){return this.isEmpty()?"":e+1+""},t.prototype.updateRankingChoicesSync=function(){this.blockAnimations(),this.updateRankingChoices(),this.releaseAnimations()},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.setDragDropRankingChoices(),this.updateRankingChoicesSync()},t.prototype.isAnswerCorrect=function(){return h.isArraysEqual(this.value,this.correctAnswer,!1)},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),!this.isLoadingFromJson&&this.updateRankingChoices()},t.prototype.onSurveyLoad=function(){this.blockAnimations(),i.prototype.onSurveyLoad.call(this),this.updateRankingChoices(),this.releaseAnimations()},t.prototype.updateValueFromSurvey=function(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),e&&(this.isValueSetByUser=!0)},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach(function(n){e.indexOf(n.value)===-1&&e.push(n.value)}),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){for(var e=this.value.slice(),n=this.visibleChoices,r=this.value.length-1;r>=0;r--)re.getItemByValue(n,this.value[r])||e.splice(r,1);this.value=e},t.prototype.getChoicesAnimationOptions=function(e){var n=this;return{getKey:function(r){return r.value},getRerenderEvent:function(){return n.onElementRerendered},isAnimationEnabled:function(){return n.animationAllowed&&!n.isDesignMode&&n.isVisible&&!!n.domNode},getReorderOptions:function(r,o){var s="";return r!==n.currentDropTarget&&(s=o?"sv-dragdrop-movedown":"sv-dragdrop-moveup"),{cssClass:s}},getLeaveOptions:function(r){var o=e?n.renderedRankingChoices:n.renderedUnRankingChoices;return n.renderedSelectToRankAreasLayout=="vertical"&&o.length==1&&o.indexOf(r)>=0?{cssClass:"sv-ranking-item--animate-item-removing-empty"}:{cssClass:"sv-ranking-item--animate-item-removing",onBeforeRunAnimation:function(s){s.style.setProperty("--animation-height",s.offsetHeight+"px")}}},getEnterOptions:function(r){var o=e?n.renderedRankingChoices:n.renderedUnRankingChoices;return n.renderedSelectToRankAreasLayout=="vertical"&&o.length==1&&o.indexOf(r)>=0?{cssClass:"sv-ranking-item--animate-item-adding-empty"}:{cssClass:"sv-ranking-item--animate-item-adding",onBeforeRunAnimation:function(s){s.style.setProperty("--animation-height",s.offsetHeight+"px")}}},getAnimatedElement:function(r){var o,s=n.cssClasses,u="";n.selectToRankEnabled&&(!e&&s.containerFromMode?u=ke(s.containerFromMode):e&&s.containerToMode&&(u=ke(s.containerToMode)));var d=e?n.renderedRankingChoices.indexOf(r):n.renderedUnRankingChoices.indexOf(r);return(o=n.domNode)===null||o===void 0?void 0:o.querySelector(u+" [data-sv-drop-target-ranking-item='"+d+"']")},allowSyncRemovalAddition:!0}},Object.defineProperty(t.prototype,"rankingChoicesAnimation",{get:function(){return this._rankingChoicesAnimation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unRankingChoicesAnimation",{get:function(){return this._unRankingChoicesAnimation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedRankingChoices",{get:function(){return this._renderedRankingChoices},set:function(e){this.rankingChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedUnRankingChoices",{get:function(){return this._renderedUnRankingChoices},set:function(e){this.unRankingChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.updateRenderedRankingChoices=function(){this.renderedRankingChoices=this.rankingChoices},t.prototype.updateRenderedUnRankingChoices=function(){this.renderedUnRankingChoices=this.unRankingChoices},t.prototype.updateRankingChoices=function(e){var n=this;if(e===void 0&&(e=!1),this.selectToRankEnabled){this.updateRankingChoicesSelectToRankMode(e);return}var r=[];if(e&&(this.rankingChoices=[]),this.isEmpty()){this.rankingChoices=this.visibleChoices;return}this.value.forEach(function(o){n.visibleChoices.forEach(function(s){s.value===o&&r.push(s)})}),this.rankingChoices=r},t.prototype.updateUnRankingChoices=function(e){var n=[];this.visibleChoices.forEach(function(r){n.push(r)}),e.forEach(function(r){n.forEach(function(o,s){o.value===r.value&&n.splice(s,1)})}),this.unRankingChoices=n},t.prototype.updateRankingChoicesSelectToRankMode=function(e){var n=this,r=[];this.isEmpty()||this.value.forEach(function(o){n.visibleChoices.forEach(function(s){s.value===o&&r.push(s)})}),this.updateUnRankingChoices(r),this.rankingChoices=r},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.setDragDropRankingChoices()},t.prototype.setDragDropRankingChoices=function(){this.dragDropRankingChoices=this.createDragDropRankingChoices()},t.prototype.createDragDropRankingChoices=function(){return this.selectToRankEnabled?new ml(this.survey,null,this.longTap):new yl(this.survey,null,this.longTap)},t.prototype.isDragStartNodeValid=function(e){return I.rankingDragHandleArea==="icon"?e.classList.contains(this.cssClasses.itemIconHoverMod):!0},t.prototype.isAllowStartDrag=function(e,n){return!this.isReadOnly&&!this.isDesignMode&&this.canStartDragDueMaxSelectedChoices(e)&&this.canStartDragDueItemEnabled(n)},t.prototype.canStartDragDueMaxSelectedChoices=function(e){if(!this.selectToRankEnabled)return!0;var n=e.closest("[data-ranking='from-container']");return n?this.checkMaxSelectedChoicesUnreached():!0},t.prototype.canStartDragDueItemEnabled=function(e){return e.enabled},t.prototype.checkMaxSelectedChoicesUnreached=function(){if(this.maxSelectedChoices<1)return!0;var e=this.value,n=Array.isArray(e)?e.length:0;return n<this.maxSelectedChoices},t.prototype.afterRenderQuestionElement=function(e){this.domNode=e,i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){this.domNode=void 0,i.prototype.beforeDestroyQuestionElement.call(this,e)},t.prototype.supportSelectAll=function(){return!1},t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.supportRefuse=function(){return!1},t.prototype.supportDontKnow=function(){return!1},t.prototype.handleKeydownSelectToRank=function(e,n,r,o){if(o===void 0&&(o=!0),!this.isDesignMode){var s=e.key;if(r&&(s=r),!(s!==" "&&s!=="ArrowUp"&&s!=="ArrowDown")){var u=this.dragDropRankingChoices,d=this.rankingChoices,y=d.indexOf(n)!==-1,V=y?d:this.unRankingChoices,T=V.indexOf(n);if(!(T<0)){var N;if(s===" "&&!y){if(!this.checkMaxSelectedChoicesUnreached()||!this.canStartDragDueItemEnabled(n))return;N=this.value.length,u.selectToRank(this,T,N),this.setValueAfterKeydown(N,"to-container",o,e);return}if(y){if(s===" "){u.unselectFromRank(this,T),N=this.unRankingChoices.indexOf(n),this.setValueAfterKeydown(N,"from-container",o,e);return}var U=s==="ArrowUp"?-1:s==="ArrowDown"?1:0;U!==0&&(N=T+U,!(N<0||N>=d.length)&&(u.reorderRankedItem(this,T,N),this.setValueAfterKeydown(N,"to-container",o,e)))}}}}},t.prototype.setValueAfterKeydown=function(e,n,r,o){var s=this;r===void 0&&(r=!0),this.setValue(),r&&setTimeout(function(){s.focusItem(e,n)},1),o&&o.preventDefault()},t.prototype.getIconHoverCss=function(){return new _().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return new _().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()},Object.defineProperty(t.prototype,"longTap",{get:function(){return this.getPropertyValue("longTap")},set:function(e){this.setPropertyValue("longTap",e)},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return"sv-ranking-item"},Object.defineProperty(t.prototype,"selectToRankEnabled",{get:function(){return this.getPropertyValue("selectToRankEnabled",!1)},set:function(e){this.setPropertyValue("selectToRankEnabled",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankSwapAreas",{get:function(){return this.getPropertyValue("selectToRankSwapAreas",!1)},set:function(e){this.setPropertyValue("selectToRankSwapAreas",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankAreasLayout",{get:function(){return this.getPropertyValue("selectToRankAreasLayout")},set:function(e){this.setPropertyValue("selectToRankAreasLayout",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedSelectToRankAreasLayout",{get:function(){return this.isMobileMode()?"vertical":this.selectToRankAreasLayout},enumerable:!1,configurable:!0}),t.prototype.isMobileMode=function(){return mo},Object.defineProperty(t.prototype,"useFullItemSizeForShortcut",{get:function(){return this.getPropertyValue("useFullItemSizeForShortcut")},set:function(e){this.setPropertyValue("useFullItemSizeForShortcut",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dragDropSvgIcon",{get:function(){return this.cssClasses.dragDropSvgIconId||"#icon-drag-24x24"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arrowsSvgIcon",{get:function(){return this.cssClasses.arrowsSvgIconId||"#icon-reorder-24x24"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dashSvgIcon",{get:function(){return this.cssClasses.dashSvgIconId||"#icon-rankingundefined-16x16"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),mn([me({onSet:function(e,n){return n.updateRenderedRankingChoices()},onRemove:function(e,n,r){return r.updateRenderedRankingChoices()},onPush:function(e,n,r){return r.updateRenderedRankingChoices()}})],t.prototype,"rankingChoices",void 0),mn([me({onSet:function(e,n){return n.updateRenderedUnRankingChoices()},onRemove:function(e,n,r){return r.updateRenderedUnRankingChoices()},onPush:function(e,n,r){return r.updateRenderedUnRankingChoices()}})],t.prototype,"unRankingChoices",void 0),mn([me()],t.prototype,"_renderedRankingChoices",void 0),mn([me()],t.prototype,"_renderedUnRankingChoices",void 0),mn([x({defaultValue:null})],t.prototype,"currentDropTarget",void 0),mn([x({defaultValue:!0})],t.prototype,"carryForwardStartUnranked",void 0),mn([x({localizable:{defaultStr:"selectToRankEmptyRankedAreaText"}})],t.prototype,"selectToRankEmptyRankedAreaText",void 0),mn([x({localizable:{defaultStr:"selectToRankEmptyUnrankedAreaText"}})],t.prototype,"selectToRankEmptyUnrankedAreaText",void 0),t}(ci);j.addClass("ranking",[{name:"showOtherItem",visible:!1,isSerializable:!1},{name:"otherText",visible:!1,isSerializable:!1},{name:"otherErrorText",visible:!1,isSerializable:!1},{name:"storeOthersAsComment",visible:!1,isSerializable:!1},{name:"showNoneItem",visible:!1,isSerializable:!1},{name:"showRefuseItem",visible:!1,isSerializable:!1},{name:"showDontKnowItem",visible:!1,isSerializable:!1},{name:"noneText",visible:!1,isSerializable:!1},{name:"showSelectAllItem",visible:!1,isSerializable:!1},{name:"selectAllText",visible:!1,isSerializable:!1},{name:"colCount:number",visible:!1,isSerializable:!1},{name:"separateSpecialChoices",visible:!1,isSerializable:!1},{name:"longTap",default:!0,visible:!1,isSerializable:!1},{name:"selectToRankEnabled:switch",default:!1,visible:!0,isSerializable:!0},{name:"selectToRankSwapAreas:switch",default:!1,visible:!1,isSerializable:!0,dependsOn:"selectToRankEnabled"},{name:"selectToRankAreasLayout",default:"horizontal",choices:["horizontal","vertical"],dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},visible:!0,isSerializable:!0},{name:"selectToRankEmptyRankedAreaText:text",serializationProperty:"locSelectToRankEmptyRankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled}},{name:"selectToRankEmptyUnrankedAreaText:text",serializationProperty:"locSelectToRankEmptyUnrankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled}},{name:"maxSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},isSerializable:!0},{name:"minSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},isSerializable:!0},{name:"itemComponent",visible:!1,default:"sv-ranking-item"}],function(){return new Hs("")},"checkbox"),Se.Instance.registerQuestion("ranking",function(i){var t=new Hs(i);return t.choices=Se.DefaultChoices,t});var Kc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),zs=function(i){Kc(t,i);function t(e){return i.call(this,e)||this}return Object.defineProperty(t.prototype,"textAreaModel",{get:function(){return this.textAreaModelValue||(this.textAreaModelValue=new Fn(this.getTextAreaOptions())),this.textAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getTextAreaOptions=function(){var e=this,n=this,r=function(s){h.isTwoValueEquals(n.value,s,!1,!0,!1)||(n.value=s)},o={question:this,id:function(){return e.inputId},propertyName:"value",className:function(){return e.className},placeholder:function(){return e.renderedPlaceholder},isDisabledAttr:function(){return e.isDisabledAttr},isReadOnlyAttr:function(){return e.isReadOnlyAttr},autoGrow:function(){return e.renderedAutoGrow},maxLength:function(){return e.getMaxLength()},rows:function(){return e.rows},cols:function(){return e.cols},ariaRequired:function(){return e.a11y_input_ariaRequired},ariaLabel:function(){return e.a11y_input_ariaLabel},ariaLabelledBy:function(){return e.a11y_input_ariaLabelledBy},ariaDescribedBy:function(){return e.a11y_input_ariaDescribedBy},ariaInvalid:function(){return e.a11y_input_ariaInvalid},ariaErrormessage:function(){return e.a11y_input_ariaErrormessage},getTextValue:function(){return e.value},onTextAreaChange:function(s){r(s.target.value)},onTextAreaInput:function(s){e.onInput(s)},onTextAreaKeyDown:function(s){e.onKeyDown(s)},onTextAreaFocus:function(s){e.onFocus(s)},onTextAreaBlur:function(s){e.onBlur(s)}};return o},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptCarriageReturn",{get:function(){return this.getPropertyValue("acceptCarriageReturn")},set:function(e){this.setPropertyValue("acceptCarriageReturn",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrow",{get:function(){return this.getPropertyValue("autoGrow")},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedAutoGrow",{get:function(){var e=this.autoGrow;return e===void 0&&this.survey?this.survey.autoGrowComment:!!e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResize",{get:function(){return this.getPropertyValue("allowResize")},set:function(e){this.setPropertyValue("allowResize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedAllowResize",{get:function(){var e=this.allowResize;return e===void 0&&this.survey?this.survey.allowResizeComment:!!e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.renderedAllowResize?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.afterRenderQuestionElement=function(e){var n=I.environment.root;this.element=n.getElementById(this.inputId)||e,i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.element=void 0},t.prototype.onInput=function(e){this.isInputTextUpdate&&(this.value=e.target.value),this.updateRemainingCharacterCounter(e.target.value)},t.prototype.onBlurCore=function(e){i.prototype.onBlurCore.call(this,e)},t.prototype.onKeyDown=function(e){this.onKeyDownPreprocess&&this.onKeyDownPreprocess(e),!this.acceptCarriageReturn&&(e.key==="Enter"||e.keyCode===13)&&(e.preventDefault(),e.stopPropagation())},t.prototype.setNewValue=function(e){!this.acceptCarriageReturn&&e&&(e=e.replace(new RegExp(`(\r
+|
+|\r)`,"gm"),"")),i.prototype.setNewValue.call(this,e)},t.prototype.getValueSeparator=function(){return`
+`},t.prototype.notifyStateChanged=function(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed||this.textAreaModel.updateElement()},Object.defineProperty(t.prototype,"className",{get:function(){return(this.cssClasses?this.getControlClass():"panel-comment-root")||void 0},enumerable:!1,configurable:!0}),t}(xo);j.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50,visible:!1,isSerializable:!1},{name:"rows:number",default:4},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]},{name:"autoGrow:boolean",defaultFunc:function(){}},{name:"allowResize:boolean",defaultFunc:function(){}},{name:"acceptCarriageReturn:boolean",default:!0,visible:!1}],function(){return new zs("")},"textbase"),Se.Instance.registerQuestion("comment",function(i){return new zs(i)});var pi="environment",vn="user",Yc=function(){function i(){this.canFlipValue=void 0}return i.clear=function(){i.cameraList=void 0,i.cameraIndex=-1},i.setCameraList=function(t){var e=function(n){var r=n.label.toLocaleLowerCase();return r.indexOf(vn)>-1?vn:r.indexOf(pi)>-1?pi:r.indexOf("front")>-1?vn:r.indexOf("back")>-1?pi:""};i.clear(),Array.isArray(t)&&t.length>0&&(i.cameraIndex=-1,t.sort(function(n,r){if(n===r)return 0;if(n.label!==r.label){var o=e(n),s=e(r);if(o!==s){if(o===vn)return-1;if(s===vn)return 1;if(o===pi)return-1;if(s===pi)return 1}}var u=t.indexOf(n),d=t.indexOf(r);return u<d?-1:1})),i.cameraList=t},i.prototype.hasCamera=function(t){var e=this;if(i.cameraList!==void 0){this.hasCameraCallback(t);return}if(i.mediaDevicesCallback){var n=function(r){e.setVideoInputs(r),e.hasCameraCallback(t)};i.mediaDevicesCallback(n);return}typeof navigator<"u"&&navigator.mediaDevices?navigator.mediaDevices.enumerateDevices().then(function(r){e.setVideoInputs(r),e.hasCameraCallback(t),e.updateCanFlipValue()}).catch(function(r){i.cameraList=null,e.hasCameraCallback(t)}):(i.cameraList=null,this.hasCameraCallback(t))},i.prototype.getMediaConstraints=function(t){var e=i.cameraList;if(!(!Array.isArray(e)||e.length<1)){i.cameraIndex<0&&(i.cameraIndex=0);var n=e[i.cameraIndex],r={};return n&&n.deviceId?r.deviceId={exact:n.deviceId}:r.facingMode=i.cameraFacingMode,t&&(t!=null&&t.height&&(r.height={ideal:t.height}),t!=null&&t.width&&(r.width={ideal:t.width})),{video:r,audio:!1}}},i.prototype.startVideo=function(t,e,n,r){var o=this;if(!t){e(void 0);return}t.style.width="100%",t.style.height="auto",t.style.height="100%",t.style.objectFit="contain";var s=this.getMediaConstraints({width:n,height:r});navigator.mediaDevices.getUserMedia(s).then(function(u){var d;t.srcObject=u,!(!((d=i.cameraList[i.cameraIndex])===null||d===void 0)&&d.deviceId)&&u.getTracks()[0].getCapabilities().facingMode&&(i.canSwitchFacingMode=!0,o.updateCanFlipValue()),t.play(),e(u)}).catch(function(u){e(void 0)})},i.prototype.getImageSize=function(t){return{width:t.videoWidth,height:t.videoHeight}},i.prototype.snap=function(t,e){if(!t||!R.isAvailable())return!1;var n=R.getDocument(),r=n.createElement("canvas"),o=this.getImageSize(t);r.height=o.height,r.width=o.width;var s=r.getContext("2d");return s.clearRect(0,0,r.width,r.height),s.drawImage(t,0,0,r.width,r.height),r.toBlob(e,"image/png"),!0},i.prototype.updateCanFlipValue=function(){var t=i.cameraList;this.canFlipValue=Array.isArray(t)&&t.length>1||i.canSwitchFacingMode,this.onCanFlipChangedCallback&&this.onCanFlipChangedCallback(this.canFlipValue)},i.prototype.canFlip=function(t){return this.canFlipValue===void 0&&this.updateCanFlipValue(),t&&(this.onCanFlipChangedCallback=t),this.canFlipValue},i.prototype.flip=function(){this.canFlip()&&(i.canSwitchFacingMode?i.cameraFacingMode=i.cameraFacingMode===vn?"environment":vn:i.cameraIndex>=i.cameraList.length-1?i.cameraIndex=0:i.cameraIndex++)},i.prototype.hasCameraCallback=function(t){t(Array.isArray(i.cameraList))},i.prototype.setVideoInputs=function(t){var e=[];t.forEach(function(n){n.kind==="videoinput"&&e.push(n)}),i.setCameraList(e.length>0?e:null)},i.cameraIndex=-1,i.cameraFacingMode=vn,i.canSwitchFacingMode=!1,i}(),Us=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ae=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function Xc(i,t,e){var n=atob(i.split(",")[1]),r=new Uint8Array(n.split("").map(function(o){return o.charCodeAt(0)})).buffer;return new File([r],t,{type:e})}var vl=function(i){Us(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isUploading=!1,e.onUploadStateChanged=e.addEvent(),e.onStateChanged=e.addEvent(),e}return t.prototype.stateChanged=function(e){this.currentState!=e&&(e==="loading"&&(this.isUploading=!0),e==="loaded"&&(this.isUploading=!1),e==="error"&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e}),this.onUploadStateChanged.fire(this,{state:e}))},Object.defineProperty(t.prototype,"showLoadingIndicator",{get:function(){return this.isUploading&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload")},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(e){this.clearOnDeletingContainer(),i.prototype.clearValue.call(this,e)},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,function(){})},t.prototype.onCheckForErrors=function(e,n,r){i.prototype.onCheckForErrors.call(this,e,n,r),this.isUploading&&this.waitForUpload&&e.push(new _n(this.getLocalizationString("uploadingFile"),this))},t.prototype.uploadFiles=function(e){var n=this;this.survey&&(this.stateChanged("loading"),this.survey.uploadFiles(this,this.name,e,function(r,o){Array.isArray(r)&&(n.setValueFromResult(r),Array.isArray(o)&&(o.forEach(function(s){return n.errors.push(new _n(s,n))}),n.stateChanged("error"))),r==="success"&&Array.isArray(o)&&n.setValueFromResult(o),r==="error"&&(typeof o=="string"&&n.errors.push(new _n(o,n)),Array.isArray(o)&&o.length>0&&o.forEach(function(s){return n.errors.push(new _n(s,n))}),n.stateChanged("error")),n.stateChanged("loaded")}))},t.prototype.loadPreview=function(e){},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.stateChanged(this.isEmpty()?"empty":"loaded")},t.prototype.getIsQuestionReady=function(){return i.prototype.getIsQuestionReady.call(this)&&!this.isFileLoading},Object.defineProperty(t.prototype,"isFileLoading",{get:function(){return this.isFileLoadingValue},set:function(e){this.isFileLoadingValue=e,this.updateIsReady()},enumerable:!1,configurable:!0}),Ae([x()],t.prototype,"isUploading",void 0),Ae([x({defaultValue:"empty"})],t.prototype,"currentState",void 0),t}(Be),bl=function(i){Us(t,i);function t(e,n){var r=i.call(this)||this;return r.question=e,r.index=n,r.id=t.getId(),r}return t.getId=function(){return"sv_sfp_"+t.pageCounter++},Object.defineProperty(t.prototype,"css",{get:function(){return this.question.cssClasses.page},enumerable:!1,configurable:!0}),t.pageCounter=0,Ae([me({})],t.prototype,"items",void 0),t}(fe),Ws=function(i){Us(t,i);function t(e){var n=i.call(this,e)||this;return n.isDragging=!1,n.fileNavigator=new xt,n.canFlipCameraValue=void 0,n.prevPreviewLength=0,n._renderedPages=[],n.pagesAnimation=new rr(n.getPagesAnimationOptions(),function(r){n._renderedPages=r},function(){return n.renderedPages}),n.calcAvailableItemsCount=function(r,o,s){var u=Math.floor(r/(o+s));return(u+1)*(o+s)-s<=r&&u++,u},n.dragCounter=0,n.onDragEnter=function(r){n.canDragDrop()&&(r.preventDefault(),n.isDragging=!0,n.dragCounter++)},n.onDragOver=function(r){if(!n.canDragDrop())return r.returnValue=!1,!1;r.dataTransfer.dropEffect="copy",r.preventDefault()},n.onDrop=function(r){if(n.canDragDrop()){n.isDragging=!1,n.dragCounter=0,r.preventDefault();var o=r.dataTransfer;n.onChange(o)}},n.onDragLeave=function(r){n.canDragDrop()&&(n.dragCounter--,n.dragCounter===0&&(n.isDragging=!1))},n.doChange=function(r){var o=r.target||r.srcElement;n.onChange(o)},n.doClean=function(){if(n.needConfirmRemoveFile){Wt({message:n.confirmRemoveAllMessage,funcOnYes:function(){n.clearFilesCore()},locale:n.getLocale(),rootElement:n.survey.rootElement,cssClass:n.cssClasses.confirmDialog});return}n.clearFilesCore()},n.doDownloadFileFromContainer=function(r){r.stopPropagation();var o=r.currentTarget;if(o&&o.getElementsByTagName){var s=o.getElementsByTagName("a")[0];s==null||s.click()}},n.doDownloadFile=function(r,o){r.stopPropagation(),Dn()&&(r.preventDefault(),sr(o.content,o.name))},n.createLocalizableString("takePhotoCaption",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.actionsContainer=new xt,n.actionsContainer.locOwner=n,n.fileIndexAction=new xe({id:"fileIndex",title:n.getFileIndexCaption(),enabled:!1}),n.prevFileAction=new xe({id:"prevPage",iconSize:16,action:function(){n.navigationDirection="left",n.indexToShow=n.previewValue.length&&(n.indexToShow-1+n.pagesCount)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.nextFileAction=new xe({id:"nextPage",iconSize:16,action:function(){n.navigationDirection="right",n.indexToShow=n.previewValue.length&&(n.indexToShow+1)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.takePictureAction=new xe({iconName:"icon-takepicture",id:"sv-file-take-picture",iconSize:"auto",innerCss:new De(function(){return new _().append(n.cssClasses.contextButton).append(n.cssClasses.takePictureButton).toString()}),locTitle:n.locTakePhotoCaption,showTitle:!1,action:function(){n.snapPicture()}}),n.closeCameraAction=new xe({iconName:"icon-closecamera",id:"sv-file-close-camera",iconSize:"auto",innerCss:new De(function(){return new _().append(n.cssClasses.contextButton).append(n.cssClasses.closeCameraButton).toString()}),action:function(){n.stopVideo()}}),n.changeCameraAction=new xe({iconName:"icon-changecamera",id:"sv-file-change-camera",iconSize:"auto",innerCss:new De(function(){return new _().append(n.cssClasses.contextButton).append(n.cssClasses.changeCameraButton).toString()}),visible:new De(function(){return n.canFlipCamera()}),action:function(){n.flipCamera()}}),n.chooseFileAction=new xe({iconName:"icon-choosefile",id:"sv-file-choose-file",iconSize:"auto",data:{question:n},enabledIf:function(){return!n.isInputReadOnly},component:"sv-file-choose-btn"}),n.startCameraAction=new xe({iconName:"icon-takepicture_24x24",id:"sv-file-start-camera",iconSize:"auto",locTitle:n.locTakePhotoCaption,showTitle:new De(function(){return!n.isAnswered}),enabledIf:function(){return!n.isInputReadOnly},action:function(){n.startVideo()}}),n.cleanAction=new xe({iconName:"icon-clear",id:"sv-file-clean",iconSize:"auto",locTitle:n.locClearButtonCaption,showTitle:!1,enabledIf:function(){return!n.isInputReadOnly},innerCss:new De(function(){return n.cssClasses.removeButton}),action:function(){n.doClean()}}),[n.closeCameraAction,n.changeCameraAction,n.takePictureAction].forEach(function(r){r.cssClasses={}}),n.registerFunctionOnPropertiesValueChanged(["sourceType","currentMode","isAnswered"],function(){n.updateActionsVisibility()}),n.actionsContainer.actions=[n.chooseFileAction,n.startCameraAction,n.cleanAction],n.fileNavigator.actions=[n.prevFileAction,n.fileIndexAction,n.nextFileAction],n}return Object.defineProperty(t.prototype,"supportFileNavigator",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fileNavigatorVisible",{get:function(){var e=this.isUploading,n=this.isPlayingVideo,r=this.containsMultiplyFiles,o=this.pageSize<this.previewValue.length;return!e&&!n&&r&&o&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagesCount",{get:function(){return Math.ceil(this.previewValue.length/this.pageSize)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionsContainerVisible",{get:function(){var e=this.isUploading,n=this.isPlayingVideo,r=this.isDefaultV2Theme;return!e&&!n&&r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoId",{get:function(){return this.id+"_video"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVideoUI",{get:function(){return this.currentMode!=="file"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFileUI",{get:function(){return this.currentMode!=="camera"},enumerable:!1,configurable:!0}),t.prototype.startVideo=function(){var e=this;this.currentMode==="file"||this.isDesignMode||this.isPlayingVideo||(this.setIsPlayingVideo(!0),setTimeout(function(){e.startVideoInCamera()},0))},Object.defineProperty(t.prototype,"videoHtmlElement",{get:function(){var e;return(e=this.rootElement)===null||e===void 0?void 0:e.querySelector("#"+this.videoId)},enumerable:!1,configurable:!0}),t.prototype.startVideoInCamera=function(){var e=this;this.camera.startVideo(this.videoHtmlElement,function(n){e.videoStream=n,n||e.stopVideo()},Et(this.imageWidth),Et(this.imageHeight))},t.prototype.stopVideo=function(){this.setIsPlayingVideo(!1),this.closeVideoStream()},t.prototype.snapPicture=function(){var e=this;if(this.isPlayingVideo){var n=function(r){if(r){var o=new File([r],"snap_picture.png",{type:"image/png"});e.loadFiles([o])}};this.camera.snap(this.videoHtmlElement,n),this.stopVideo()}},t.prototype.canFlipCamera=function(){var e=this;return this.canFlipCameraValue===void 0&&(this.canFlipCameraValue=this.camera.canFlip(function(n){e.canFlipCameraValue=n})),this.canFlipCameraValue},t.prototype.flipCamera=function(){this.canFlipCamera()&&(this.closeVideoStream(),this.camera.flip(),this.startVideoInCamera())},t.prototype.closeVideoStream=function(){this.videoStream&&(this.videoStream.getTracks().forEach(function(e){e.stop()}),this.videoStream=void 0)},t.prototype.onHidingContent=function(){i.prototype.onHidingContent.call(this),this.stopVideo()},t.prototype.updateElementCssCore=function(e){i.prototype.updateElementCssCore.call(this,e),this.prevFileAction.iconName=this.cssClasses.leftIconId,this.nextFileAction.iconName=this.cssClasses.rightIconId,this.updateCurrentMode()},t.prototype.getFileIndexCaption=function(){return this.getLocalizationFormatString("indexText",this.indexToShow+1,this.pagesCount)},t.prototype.updateFileNavigator=function(){this.updatePages(),this.navigationDirection=void 0,this.indexToShow=this.previewValue.length&&(this.indexToShow+this.pagesCount)%this.pagesCount||0,this.fileIndexAction.title=this.getFileIndexCaption()},t.prototype.updateRenderedPages=function(){this.pages&&this.pages[this.indexToShow]&&(this.renderedPages=[this.pages[this.indexToShow]])},t.prototype.updatePages=function(){var e=this;this.blockAnimations();var n;this.pages=[],this.renderedPages=[],this.previewValue.forEach(function(r,o){o%e.pageSize==0&&(n=new bl(e,e.pages.length),e.pages.push(n)),n.items.push(r)}),this.releaseAnimations(),this.updateRenderedPages()},t.prototype.previewValueChanged=function(){var e=this;this.navigationDirection=void 0,this.previewValue.length!==this.prevPreviewLength&&(this.previewValue.length>0?this.prevPreviewLength>this.previewValue.length?this.indexToShow>=this.pagesCount&&this.indexToShow>0&&(this.indexToShow=this.pagesCount-1,this.navigationDirection="left-delete"):this.indexToShow=Math.floor(this.prevPreviewLength/this.pageSize):this.indexToShow=0),this.updatePages(),this.fileIndexAction.title=this.getFileIndexCaption(),this.containsMultiplyFiles=this.previewValue.length>1,this.previewValue.length>0&&!this.calculatedGapBetweenItems&&!this.calculatedItemWidth&&setTimeout(function(){e.processResponsiveness(0,e._width)},1),this.prevPreviewLength=this.previewValue.length},t.prototype.getType=function(){return"file"},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.isLoadingFromJson||this.loadPreview(e)},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple")},set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize")},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!1,configurable:!0}),t.prototype.chooseFile=function(e){var n=this;if(this.rootElement){var r=this.rootElement.querySelector("#"+this.inputId);r&&(e.preventDefault(),e.stopImmediatePropagation(),r&&(this.survey?this.survey.chooseFiles(r,function(o){return n.loadFiles(o)},{element:this,elementType:this.getType(),propertyName:this.name}):r.click()))}},Object.defineProperty(t.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(e){this.setPropertyValue("needConfirmRemoveFile",e)},enumerable:!1,configurable:!0}),t.prototype.getConfirmRemoveMessage=function(e){return this.confirmRemoveMessage.format(e)},Object.defineProperty(t.prototype,"takePhotoCaption",{get:function(){return this.getLocalizableStringText("takePhotoCaption")},set:function(e){this.setLocalizableStringText("takePhotoCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTakePhotoCaption",{get:function(){return this.getLocalizableString("takePhotoCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearButtonCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRenderedPlaceholder",{get:function(){var e=this;return this.locRenderedPlaceholderValue===void 0&&(this.locRenderedPlaceholderValue=new De(function(){var n=e.isReadOnly,r=!e.isDesignMode&&e.hasFileUI||e.isDesignMode&&e.sourceType!="camera",o=!e.isDesignMode&&e.hasVideoUI||e.isDesignMode&&e.sourceType!="file",s;return n?s=e.locNoFileChosenCaption:r&&o?s=e.locFileOrPhotoPlaceholder:r?s=e.locFilePlaceholder:s=e.locPhotoPlaceholder,s})),this.locRenderedPlaceholderValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentMode",{get:function(){return this.getPropertyValue("currentMode",this.sourceType)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlayingVideo",{get:function(){return this.getPropertyValue("isPlayingVideo",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsPlayingVideo=function(e){this.setPropertyValue("isPlayingVideo",e)},t.prototype.updateCurrentMode=function(){var e=this;!this.isDesignMode&&this.survey&&(this.sourceType!=="file"?this.camera.hasCamera(function(n){e.setPropertyValue("currentMode",n&&e.isDefaultV2Theme?e.sourceType:"file")}):this.setPropertyValue("currentMode",this.sourceType))},t.prototype.updateActionsVisibility=function(){var e=this.isDesignMode;this.chooseFileAction.visible=!e&&this.hasFileUI||e&&this.sourceType!=="camera",this.startCameraAction.visible=!e&&this.hasVideoUI||e&&this.sourceType!=="file",this.cleanAction.visible=!!this.isAnswered},Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:" "},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chooseButtonText",{get:function(){return this.isEmpty()||this.allowMultiple?this.chooseButtonCaption:this.replaceButtonCaption},enumerable:!1,configurable:!0}),t.prototype.clear=function(e){var n=this;this.survey&&(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,null,function(r,o){r==="success"&&(n.value=void 0,n.errors=[],e&&e(),n.indexToShow=0,n.fileIndexAction.title=n.getFileIndexCaption())}))},Object.defineProperty(t.prototype,"renderCapture",{get:function(){return this.allowCameraAccess?"user":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multipleRendered",{get:function(){return this.allowMultiple?"multiple":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showChooseButton",{get:function(){return!this.isReadOnly&&!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFileDecorator",{get:function(){var e=this.isPlayingVideo,n=this.showLoadingIndicator;return!e&&!n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowShowPreview",{get:function(){var e=this.showLoadingIndicator,n=this.isPlayingVideo;return!e&&!n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPreviewContainer",{get:function(){return this.previewValue&&this.previewValue.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonCore",{get:function(){var e=this.showLoadingIndicator,n=this.isReadOnly,r=this.isEmpty();return!n&&!r&&!e&&!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButton",{get:function(){return this.showRemoveButtonCore&&this.cssClasses.removeButton},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonBottom",{get:function(){var e=new _().append(this.cssClasses.removeButtonBottom).append(this.cssClasses.contextButton).toString();return this.showRemoveButtonCore&&e},enumerable:!1,configurable:!0}),t.prototype.defaultImage=function(e){return!this.canPreviewImage(e)&&!!this.cssClasses.defaultImage},t.prototype.removeFile=function(e){this.removeFileByContent(this.value.filter(function(n){return n.name===e})[0])},t.prototype.removeFileByContent=function(e){var n=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,function(r,o){if(r==="success"){var s=n.value;Array.isArray(s)?n.value=s.filter(function(u){return!h.isTwoValueEquals(u,e,!0,!1,!1)}):n.value=void 0}})},t.prototype.setValueFromResult=function(e){this.value=(this.value||[]).concat(e.map(function(n){return{name:n.file.name,type:n.file.type,content:n.content}}))},t.prototype.loadFiles=function(e){var n=this;if(this.survey&&(this.errors=[],!!this.allFilesOk(e))){var r=function(){n.stateChanged("loading");var o=[];n.storeDataAsText?e.forEach(function(s){var u=new FileReader;u.onload=function(d){o=o.concat([{name:s.name,type:s.type,content:u.result}]),o.length===e.length&&(n.value=(n.value||[]).concat(o))},u.readAsDataURL(s)}):n.uploadFiles(e)};this.allowMultiple?r():this.clear(r)}},Object.defineProperty(t.prototype,"camera",{get:function(){return this.cameraValue||(this.cameraValue=new Yc),this.cameraValue},enumerable:!1,configurable:!0}),t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.loadPreview=function(e){var n=this;if(!(this.showPreview&&this.prevLoadedPreviewValue===e)&&(this.previewValue.splice(0,this.previewValue.length),!(!this.showPreview||!e))){this.prevLoadedPreviewValue=e;var r=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?(r.forEach(function(o){var s=o.content||o;n.previewValue.push({name:o.name,type:o.type,content:s})}),this.previewValueChanged()):(this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new Cl(this,function(o,s){o!=="error"&&(s.forEach(function(u){n.previewValue.push(u)}),n.previewValueChanged()),n.isFileLoading=!1,n._previewLoader.dispose(),n._previewLoader=void 0}),this._previewLoader.load(r))}},t.prototype.allFilesOk=function(e){var n=this,r=this.errors?this.errors.length:0;return(e||[]).forEach(function(o){n.maxSize>0&&o.size>n.maxSize&&n.errors.push(new Gr(n.maxSize,n))}),r===this.errors.length},t.prototype.isFileImage=function(e){if(!e||!e.content||!e.content.substring)return!1;var n="data:image",r=e.content&&e.content.substring(0,n.length);r=r&&r.toLowerCase();var o=r===n||!!e.type&&e.type.toLowerCase().indexOf("image/")===0;return o},t.prototype.getPlainData=function(e){e===void 0&&(e={includeEmpty:!0});var n=i.prototype.getPlainData.call(this,e);if(n&&!this.isEmpty()){n.isNode=!1;var r=Array.isArray(this.value)?this.value:[this.value];n.data=r.map(function(o,s){return{name:s,title:"File",value:o.content&&o.content||o,displayValue:o.name&&o.name||o,getString:function(u){return typeof u=="object"?JSON.stringify(u):u},isNode:!1}})}return n},t.prototype.getImageWrapperCss=function(e){return new _().append(this.cssClasses.imageWrapper).append(this.cssClasses.imageWrapperDefaultImage,this.defaultImage(e)).toString()},t.prototype.getActionsContainerCss=function(e){return new _().append(e.actionsContainer).append(e.actionsContainerAnswered,this.isAnswered).toString()},t.prototype.getRemoveButtonCss=function(){return new _().append(this.cssClasses.removeFileButton).append(this.cssClasses.contextButton).toString()},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;return new _().append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.chooseFileAsText,!e).append(this.cssClasses.chooseFileAsTextDisabled,!e&&this.isInputReadOnly).append(this.cssClasses.contextButton,e).append(this.cssClasses.chooseFileAsIcon,e).toString()},t.prototype.getReadOnlyFileCss=function(){return new _().append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return new _().append(this.cssClasses.root).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDragging,this.isDragging).append(this.cssClasses.rootAnswered,this.isAnswered).append(this.cssClasses.single,!this.allowMultiple).append(this.cssClasses.singleImage,!this.allowMultiple&&this.isAnswered&&this.canPreviewImage(this.value[0])).append(this.cssClasses.mobile,this.isMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getFileDecoratorCss=function(){return new _().append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(B.isFileReaderAvailable()&&!(!e||!e.files||e.files.length<1)){for(var n=[],r=this.allowMultiple?e.files.length:1,o=0;o<r;o++)n.push(e.files[o]);e.value="",this.loadFiles(n)}},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.actionsContainer.cssClasses=e.actionBar,this.actionsContainer.cssClasses.itemWithTitle=this.actionsContainer.cssClasses.item,this.actionsContainer.cssClasses.item="",this.actionsContainer.cssClasses.itemAsIcon=n.contextButton,this.actionsContainer.containerCss=n.actionsContainer,n},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.updateCurrentMode(),this.updateActionsVisibility(),this.loadPreview(this.value)},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getObservedElementSelector=function(){return ke(this.cssClasses.dragArea)},t.prototype.getFileListSelector=function(){return ke(this.cssClasses.fileList)},Object.defineProperty(t.prototype,"renderedPages",{get:function(){return this._renderedPages},set:function(e){this.pagesAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.getPagesAnimationOptions=function(){var e=this;return{getEnterOptions:function(n){var r=e.cssClasses.page;return{cssClass:r?new _().append(r+"--enter-from-left",e.navigationDirection=="left"||e.navigationDirection=="left-delete").append(r+"--enter-from-right",e.navigationDirection=="right").toString():""}},getLeaveOptions:function(n){var r=e.cssClasses.page;return{cssClass:r?new _().append(r+"--leave-to-left",e.navigationDirection=="right").append(r+"--leave-to-right",e.navigationDirection=="left").toString():""}},getAnimatedElement:function(n){var r;return(r=e.rootElement)===null||r===void 0?void 0:r.querySelector("#"+n.id)},isAnimationEnabled:function(){return e.animationAllowed&&!!e.rootElement},getRerenderEvent:function(){return e.onElementRerendered}}},t.prototype.triggerResponsiveness=function(e){e&&(this.calculatedGapBetweenItems=void 0,this.calculatedItemWidth=void 0),i.prototype.triggerResponsiveness.call(this)},t.prototype.processResponsiveness=function(e,n){if(this._width=n,this.rootElement&&(!this.calculatedGapBetweenItems||!this.calculatedItemWidth)&&this.allowMultiple){var r=this.getFileListSelector(),o=r?this.rootElement.querySelector(this.getFileListSelector()):void 0;if(o){var s=o.querySelector(ke(this.cssClasses.page));if(s){var u=s.querySelector(ke(this.cssClasses.previewItem));this.calculatedGapBetweenItems=Math.ceil(Number.parseFloat(R.getComputedStyle(s).gap)),u&&(this.calculatedItemWidth=Math.ceil(Number.parseFloat(R.getComputedStyle(u).width)))}}}return this.calculatedGapBetweenItems&&this.calculatedItemWidth?(this.pageSize=this.calcAvailableItemsCount(n,this.calculatedItemWidth,this.calculatedGapBetweenItems),!0):!1},t.prototype.canDragDrop=function(){return!this.isInputReadOnly&&this.currentMode!=="camera"&&!this.isPlayingVideo},t.prototype.afterRenderQuestionElement=function(e){this.rootElement=e},t.prototype.beforeDestroyQuestionElement=function(e){this.rootElement=void 0},t.prototype.clearFilesCore=function(){if(this.rootElement){var e=this.rootElement.querySelectorAll("input")[0];e&&(e.value="")}this.clear()},t.prototype.doRemoveFile=function(e,n){var r=this;if(n.stopPropagation(),this.needConfirmRemoveFile){Wt({message:this.getConfirmRemoveMessage(e.name),funcOnYes:function(){r.clearFilesCore()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.removeFileCore(e)},t.prototype.removeFileCore=function(e){var n=this.previewValue.indexOf(e);this.removeFileByContent(n===-1?e:this.value[n])},t.prototype.dispose=function(){this.cameraValue=void 0,this.closeVideoStream(),i.prototype.dispose.call(this)},Ae([x()],t.prototype,"isDragging",void 0),Ae([me({})],t.prototype,"previewValue",void 0),Ae([me({})],t.prototype,"pages",void 0),Ae([x({defaultValue:0,onSet:function(e,n){n.updateRenderedPages()}})],t.prototype,"indexToShow",void 0),Ae([x({defaultValue:1,onSet:function(e,n){n.updateFileNavigator()}})],t.prototype,"pageSize",void 0),Ae([x({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),Ae([x()],t.prototype,"allowCameraAccess",void 0),Ae([x({onSet:function(e,n){n.isLoadingFromJson||n.updateCurrentMode()}})],t.prototype,"sourceType",void 0),Ae([x()],t.prototype,"canFlipCameraValue",void 0),Ae([x({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),Ae([x({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),Ae([x({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),Ae([x({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),Ae([x({localizable:{defaultStr:"replaceFileCaption"}})],t.prototype,"replaceButtonCaption",void 0),Ae([x({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),Ae([x({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),Ae([x({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),Ae([x({localizable:{defaultStr:"fileOrPhotoPlaceholder"}})],t.prototype,"fileOrPhotoPlaceholder",void 0),Ae([x({localizable:{defaultStr:"photoPlaceholder"}})],t.prototype,"photoPlaceholder",void 0),Ae([x({localizable:{defaultStr:"filePlaceholder"}})],t.prototype,"filePlaceholder",void 0),Ae([x()],t.prototype,"locRenderedPlaceholderValue",void 0),Ae([me()],t.prototype,"_renderedPages",void 0),t}(vl);j.addClass("file",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"showPreview:boolean",default:!0,visible:!1},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0,dependsOn:"showPreview",visibleIf:function(i){return!!i.showPreview}},"imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},{name:"maxSize:number",default:0},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"validators",visible:!1},{name:"needConfirmRemoveFile:boolean"},{name:"sourceType",choices:["file","camera","file-camera"],default:"file",category:"general",visible:!0,visibleIf:function(){return I.supportCreatorV2}},{name:"fileOrPhotoPlaceholder:text",serializationProperty:"locFileOrPhotoPlaceholder",category:"general",visibleIf:function(){return I.supportCreatorV2}},{name:"photoPlaceholder:text",serializationProperty:"locPhotoPlaceholder",category:"general",visibleIf:function(){return I.supportCreatorV2}},{name:"filePlaceholder:text",serializationProperty:"locFilePlaceholder",category:"general",visibleIf:function(){return I.supportCreatorV2}},{name:"allowCameraAccess:switch",category:"general",visible:!1}],function(){return new Ws("")},"question"),Se.Instance.registerQuestion("file",function(i){return new Ws(i)});var Cl=function(){function i(t,e){this.fileQuestion=t,this.callback=e,this.loaded=[]}return i.prototype.load=function(t){var e=this,n=0;this.loaded=new Array(t.length),t.forEach(function(r,o){e.fileQuestion.survey&&e.fileQuestion.survey.downloadFile(e.fileQuestion,e.fileQuestion.name,r,function(s,u){!e.fileQuestion||!e.callback||(s!=="error"?(e.loaded[o]={content:u,name:r.name,type:r.type},n++,n===t.length&&e.callback(s,e.loaded)):e.callback("error",e.loaded))})})},i.prototype.dispose=function(){this.fileQuestion=void 0,this.callback=void 0},i}(),ep=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$s=function(i){ep(t,i);function t(e){var n=i.call(this,e)||this,r=n.createLocalizableString("html",n);return r.onGetTextCallback=function(o){return n.survey&&!n.ignoreHtmlProgressing?n.processHtml(o):o},n}return t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(e){return this.ignoreHtmlProgressing?e:i.prototype.getProcessedText.call(this,e)},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.processHtml(this.html)},enumerable:!1,configurable:!0}),t.prototype.processHtml=function(e){return this.survey?this.survey.processHtml(e,"html-question"):this.html},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return new _().append(this.cssClasses.root).append(this.cssClasses.nested,this.getIsNested()).toString()||void 0},enumerable:!1,configurable:!0}),t}(Oo);j.addClass("html",[{name:"html:html",serializationProperty:"locHtml"},{name:"hideNumber",visible:!1},{name:"state",visible:!1},{name:"titleLocation",visible:!1},{name:"descriptionLocation",visible:!1},{name:"errorLocation",visible:!1},{name:"indent",visible:!1},{name:"width",visible:!1}],function(){return new $s("")},"nonvalue"),Se.Instance.registerQuestion("html",function(i){return new $s(i)});var tp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Js=function(i){tp(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getDefaultItemComponent=function(){return"survey-radiogroup-item"},t.prototype.getType=function(){return"radiogroup"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton")},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return this.isMouseDown===!0&&!this.isOtherSelected},t.prototype.getConditionJson=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.prototype.getConditionJson.call(this,e,n);return delete r.showClearButton,r},t.prototype.setNewComment=function(e){this.isMouseDown=!0,i.prototype.setNewComment.call(this,e),this.isMouseDown=!1},Object.defineProperty(t.prototype,"showClearButtonInContent",{get:function(){return!this.isDefaultV2Theme&&this.canShowClearButton},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e){this.isReadOnlyAttr||(this.renderedValue=e.value)},t.prototype.getDefaultTitleActions=function(){var e=this,n=[];if(this.isDefaultV2Theme&&!this.isDesignMode){var r=new xe({locTitleName:"clearCaption",id:"sv-clr-btn-"+this.id,action:function(){e.clearValue(!0)},innerCss:this.cssClasses.clearButton,visible:new De(function(){return e.canShowClearButton})});n.push(r)}return n},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"radiogroup"},enumerable:!1,configurable:!0}),t}(li);j.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],function(){return new Js("")},"checkboxbase"),Se.Instance.registerQuestion("radiogroup",function(i){var t=new Js(i);return t.choices=Se.DefaultChoices,t});var Gs=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),dt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},To=function(i){Gs(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this)||this;return r.itemValue=e,r.locString=n,r.locText.onStringChanged.add(r.onStringChangedCallback.bind(r)),r.onStringChangedCallback(),r}return t.prototype.onStringChangedCallback=function(){this.text=this.itemValue.text},Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue.getPropertyValue("value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locString||this.itemValue.locText},enumerable:!1,configurable:!0}),dt([x({defaultValue:""})],t.prototype,"highlight",void 0),dt([x({defaultValue:""})],t.prototype,"text",void 0),dt([x()],t.prototype,"style",void 0),t}(fe),np=function(i){Gs(t,i);function t(e,n,r){var o=i.call(this,e,n)||this;return o.description=r,o}return t}(re),Zs=function(i){Gs(t,i);function t(e){var n=i.call(this,e)||this;return n._syncPropertiesChanging=!1,n.iCounter=0,n.createItemValues("rateValues"),n.createLocalizableString("ratingOptionsCaption",n,!1,!0),n.registerFunctionOnPropertiesValueChanged(["rateMin","rateMax","minRateDescription","maxRateDescription","rateStep","displayRateDescriptionsAsExtremeItems"],function(){return n.resetRenderedItems()}),n.registerFunctionOnPropertiesValueChanged(["rateType"],function(){n.setIconsToRateValues(),n.resetRenderedItems(),n.updateRateCount()}),n.registerFunctionOnPropertiesValueChanged(["rateValues"],function(){n.setIconsToRateValues(),n.resetRenderedItems()}),n.registerSychProperties(["rateValues"],function(){n.autoGenerate=n.rateValues.length==0,n.setIconsToRateValues(),n.resetRenderedItems()}),n.registerFunctionOnPropertiesValueChanged(["rateColorMode","scaleColorMode"],function(){n.updateColors(n.survey.themeVariables)}),n.registerFunctionOnPropertiesValueChanged(["displayMode"],function(){n.updateRenderAsBasedOnDisplayMode(!0)}),n.registerSychProperties(["autoGenerate"],function(){!n.autoGenerate&&n.rateValues.length===0&&n.setPropertyValue("rateValues",n.visibleRateValues),n.autoGenerate&&(n.rateValues.splice(0,n.rateValues.length),n.updateRateMax()),n.resetRenderedItems()}),n.createLocalizableString("minRateDescription",n,!0).onStringChanged.add(function(r,o){n.hasMinRateDescription=!r.isEmpty}),n.createLocalizableString("maxRateDescription",n,!0).onStringChanged.add(function(r,o){n.hasMaxRateDescription=!r.isEmpty}),n.initPropertyDependencies(),n}return t.prototype.setIconsToRateValues=function(){var e=this;this.rateType=="smileys"&&this.rateValues.map(function(n){return n.icon=e.getItemSmiley(n)})},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.jsonObj.rateMin!==void 0&&this.jsonObj.rateCount!==void 0&&this.jsonObj.rateMax===void 0&&this.updateRateMax(),this.jsonObj.rateMax!==void 0&&this.jsonObj.rateCount!==void 0&&this.jsonObj.rateMin===void 0&&this.updateRateMin(),this.jsonObj.autoGenerate===void 0&&this.jsonObj.rateValues!==void 0&&(this.autoGenerate=!this.jsonObj.rateValues.length),this.updateRateCount(),this.setIconsToRateValues()},t.prototype.registerSychProperties=function(e,n){var r=this;this.registerFunctionOnPropertiesValueChanged(e,function(){r._syncPropertiesChanging||(r._syncPropertiesChanging=!0,n(),r._syncPropertiesChanging=!1)})},t.prototype.useRateValues=function(){return!!this.rateValues.length&&!this.autoGenerate},t.prototype.updateRateMax=function(){this.rateMax=this.rateMin+this.rateStep*(this.rateCount-1)},t.prototype.updateRateMin=function(){this.rateMin=this.rateMax-this.rateStep*(this.rateCount-1)},t.prototype.updateRateCount=function(){var e=0;this.useRateValues()?e=this.rateValues.length:e=Math.trunc((this.rateMax-this.rateMin)/(this.rateStep||1))+1,e>10&&this.rateDisplayMode=="smileys"&&(e=10),this.rateCount=e,this.rateValues.length>e&&this.rateValues.splice(e,this.rateValues.length-e)},t.prototype.initPropertyDependencies=function(){var e=this;this.registerSychProperties(["rateCount"],function(){if(!e.useRateValues())e.rateMax=e.rateMin+e.rateStep*(e.rateCount-1);else if(e.rateCount<e.rateValues.length){if(e.rateCount>=10&&e.rateDisplayMode=="smileys")return;e.rateValues.splice(e.rateCount,e.rateValues.length-e.rateCount)}else for(var n=e.rateValues.length;n<e.rateCount;n++)e.rateValues.push(new re(k("choices_Item")+(n+1)))}),this.registerSychProperties(["rateMin","rateMax","rateStep","rateValues"],function(){e.updateRateCount()})},Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.readOnly&&!this.inputHasValue&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this,n;return!this.readOnly&&((n=this.visibleRateValues.filter(function(r){return r.value==e.value})[0])===null||n===void 0?void 0:n.locText)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){this.setPropertyValue("rateMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){this.setPropertyValue("rateMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){this.setPropertyValue("rateStep",e)},enumerable:!1,configurable:!0}),t.prototype.updateColors=function(e){if(this.colorMode==="monochrome"||!R.isAvailable()||t.colorsCalculated)return;function n(o){var s=getComputedStyle(R.getDocumentElement());return s.getPropertyValue&&s.getPropertyValue(o)}function r(o,s){var u=!!e&&e[o];if(u||(u=n(s)),!u)return null;var d=R.createElement("canvas");if(!d)return null;var y=d.getContext("2d");y.fillStyle=u,y.fillStyle=="#000000"&&(y.fillStyle=n(s));var V=y.fillStyle;if(V.startsWith("rgba"))return V.substring(5,V.length-1).split(",").map(function(N){return+N.trim()});var T=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(V);return T?[parseInt(T[1],16),parseInt(T[2],16),parseInt(T[3],16),1]:null}t.badColor=r("--sjs-special-red","--sd-rating-bad-color"),t.normalColor=r("--sjs-special-yellow","--sd-rating-normal-color"),t.goodColor=r("--sjs-special-green","--sd-rating-good-color"),t.badColorLight=r("--sjs-special-red-light","--sd-rating-bad-color-light"),t.normalColorLight=r("--sjs-special-yellow-light","--sd-rating-normal-color-light"),t.goodColorLight=r("--sjs-special-green-light","--sd-rating-good-color-light"),this.colorsCalculated=!0,this.resetRenderedItems()},t.prototype.getDisplayValueCore=function(e,n){if(!this.useRateValues)return i.prototype.getDisplayValueCore.call(this,e,n);var r=re.getTextOrHtmlByValue(this.visibleRateValues,n);return r||n},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map(function(e){return e.itemValue})},enumerable:!1,configurable:!0}),t.prototype.supportEmptyValidation=function(){return this.renderAs==="dropdown"},t.prototype.itemValuePropertyChanged=function(e,n,r,o){!this.useRateValues()&&o!==void 0&&(this.autoGenerate=!1),i.prototype.itemValuePropertyChanged.call(this,e,n,r,o)},t.prototype.runConditionCore=function(e,n){i.prototype.runConditionCore.call(this,e,n),this.runRateItesmCondition(e,n)},t.prototype.runRateItesmCondition=function(e,n){var r;if(this.useRateValues()){var o=!1;if(!((r=this.survey)===null||r===void 0)&&r.areInvisibleElementsShowing?this.rateValues.forEach(function(u){o=o||!u.isVisible,u.setIsVisible(u,!0)}):o=re.runConditionsForItems(this.rateValues,void 0,void 0,e,n,!0),o&&(this.resetRenderedItems(),!this.isEmpty()&&!this.isReadOnly)){var s=re.getItemByValue(this.rateValues,this.value);s&&!s.isVisible&&this.clearValue()}}},t.prototype.getRateValuesCore=function(){if(!this.useRateValues())return this.createRateValues();var e=new Array;return this.rateValues.forEach(function(n){n.isVisible&&e.push(n)}),e},t.prototype.calculateRateValues=function(){var e=this.getRateValuesCore();return this.rateType=="smileys"&&e.length>10&&(e=e.slice(0,10)),e},t.prototype.calculateRenderedRateItems=function(){var e=this,n=this.calculateRateValues();return n.map(function(r,o){var s=null;return e.displayRateDescriptionsAsExtremeItems&&(o==0&&(s=new To(r,e.minRateDescription&&e.locMinRateDescription||r.locText)),o==n.length-1&&(s=new To(r,e.maxRateDescription&&e.locMaxRateDescription||r.locText))),s||(s=new To(r)),s})},t.prototype.calculateVisibleChoices=function(){var e=this,n=this.calculateRateValues();return n.map(function(r,o){return e.getRatingItemValue(r,o)})},t.prototype.resetRenderedItems=function(){if(this.autoGenerate){var e=this.getRateValuesCore();this.rateMax=e[e.length-1].value}Array.isArray(this.getPropertyValueWithoutDefault("renderedRateItems"))&&this.setArrayPropertyDirectly("renderedRateItems",this.calculateRenderedRateItems()),Array.isArray(this.getPropertyValueWithoutDefault("visibleChoices"))&&this.setArrayPropertyDirectly("visibleChoices",this.calculateVisibleChoices)},Object.defineProperty(t.prototype,"renderedRateItems",{get:function(){var e=this;return this.getPropertyValue("renderedRateItems",void 0,function(){return e.calculateRenderedRateItems()})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){var e=this;return this.getPropertyValue("visibleChoices",void 0,function(){return e.calculateVisibleChoices()})},enumerable:!1,configurable:!0}),t.prototype.createRateValues=function(){for(var e=[],n=this.rateMin,r=this.rateStep;n<=this.rateMax&&e.length<I.ratingMaximumRateValueCount;){var o=new re(n);o.locOwner=this,o.ownerPropertyName="rateValues",e.push(o),n=this.correctValue(n+r,r)}return e},t.prototype.getRatingItemValue=function(e,n){if(!e)return null;var r=e.value,o;r===this.rateMin&&(o=this.minRateDescription&&this.locMinRateDescription),(r===this.rateMax||n===I.ratingMaximumRateValueCount)&&(o=this.maxRateDescription&&this.locMaxRateDescription);var s=new np(r,e.text,o);return s.locOwner=e.locOwner,s.ownerPropertyName=e.ownerPropertyName,s},t.prototype.correctValue=function(e,n){if(!e||Math.round(e)==e)return e;for(var r=0;Math.round(n)!=n;)n*=10,r++;return parseFloat(e.toFixed(r))},t.prototype.getType=function(){return"rating"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},t.prototype.getInputId=function(e){return this.inputId+"_"+e},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return this.isMouseDown===!0||this.renderAs==="dropdown"},t.prototype.supportOther=function(){return!1},t.prototype.getPlainDataCalculatedValue=function(e){var n=i.prototype.getPlainDataCalculatedValue.call(this,e);if(n!==void 0||!this.useRateValues||this.isEmpty())return n;var r=re.getItemByValue(this.visibleRateValues,this.value);return r?r[e]:void 0},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMinLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMinRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMaxLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMaxRateDescription},enumerable:!1,configurable:!0}),t.prototype.updateRenderAsBasedOnDisplayMode=function(e){this.isDesignMode?(e||this.renderAs==="dropdown")&&(this.renderAs="default"):(e||this.displayMode!=="auto")&&(this.renderAs=this.displayMode==="dropdown"?"dropdown":"default")},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.renderAs==="dropdown"&&this.displayMode==="auto"?this.displayMode=this.renderAs:this.updateRenderAsBasedOnDisplayMode()},Object.defineProperty(t.prototype,"rateDisplayMode",{get:function(){return this.rateType},set:function(e){this.rateType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStar",{get:function(){return this.rateType=="stars"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSmiley",{get:function(){return this.rateType=="smileys"},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return this.renderAs=="dropdown"?"sv-rating-dropdown-item":this.isStar?"sv-rating-item-star":this.isSmiley?"sv-rating-item-smiley":"sv-rating-item"},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),t.prototype.valueToData=function(e){if(this.useRateValues()){var n=re.getItemByValue(this.rateValues,e);return n?n.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){if(!this.isReadOnlyAttr){this.value===(typeof this.value=="string"?e:parseFloat(e))?this.clearValue(!0):this.value=e;for(var n=0;n<this.renderedRateItems.length;n++)this.renderedRateItems[n].highlight="none"}},t.prototype.onItemMouseIn=function(e){if(!Le&&!(this.isReadOnly||!e.itemValue.isEnabled||this.isDesignMode)){var n=!0,r=this.value!=null;if(this.rateType!=="stars"){e.highlight="highlighted";return}for(var o=0;o<this.renderedRateItems.length;o++)this.renderedRateItems[o].highlight=n&&!r&&"highlighted"||!n&&r&&"unhighlighted"||"none",this.renderedRateItems[o]==e&&(n=!1),this.renderedRateItems[o].itemValue.value==this.value&&(r=!1)}},t.prototype.onItemMouseOut=function(e){Le||this.renderedRateItems.forEach(function(n){return n.highlight="none"})},Object.defineProperty(t.prototype,"itemSmallMode",{get:function(){return this.inMatrixMode&&I.matrix.rateSize=="small"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ratingRootCss",{get:function(){var e=(this.displayMode=="buttons"||this.survey&&this.survey.isDesignMode)&&this.cssClasses.rootWrappable?this.cssClasses.rootWrappable:"",n="";return(this.hasMaxLabel||this.hasMinLabel)&&(this.rateDescriptionLocation=="top"&&(n=this.cssClasses.rootLabelsTop),this.rateDescriptionLocation=="bottom"&&(n=this.cssClasses.rootLabelsBottom),this.rateDescriptionLocation=="topBottom"&&(n=this.cssClasses.rootLabelsDiagonal)),new _().append(this.cssClasses.root).append(e).append(n).append(this.cssClasses.itemSmall,this.itemSmallMode&&this.rateType!="labels").toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIcon",{get:function(){return this.itemSmallMode?"icon-rating-star-small":"icon-rating-star"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIconAlt",{get:function(){return this.itemStarIcon+"-2"},enumerable:!1,configurable:!0}),t.prototype.getItemSmiley=function(e){var n=["terrible","very-poor","poor","not-good","average","normal","good","very-good","excellent","perfect"],r=["very-good","not-good","normal","good","average","excellent","poor","perfect","very-poor","terrible"],o=this.useRateValues()?this.rateValues.length:this.rateMax-this.rateMin+1,s=r.slice(0,o),u=n.filter(function(d){return s.indexOf(d)!=-1});return this.useRateValues()?u[this.rateValues.indexOf(e)]:u[e.value-this.rateMin]},t.prototype.getItemSmileyIconName=function(e){return"icon-"+this.getItemSmiley(e)},t.prototype.getItemClassByText=function(e,n){return this.getItemClass(e)},t.prototype.getRenderedItemColor=function(e,n){var r=n?t.badColorLight:t.badColor,o=n?t.goodColorLight:t.goodColor,s=(this.rateCount-1)/2,u=n?t.normalColorLight:t.normalColor;if(e<s?o=u:(r=u,e-=s),!r||!o)return null;for(var d=[0,0,0,0],y=0;y<4;y++)d[y]=r[y]+(o[y]-r[y])*e/s,y<3&&(d[y]=Math.trunc(d[y]));return"rgba("+d[0]+", "+d[1]+", "+d[2]+", "+d[3]+")"},t.prototype.getItemStyle=function(e,n){if(n===void 0&&(n="none"),this.scaleColorMode==="monochrome"&&this.rateColorMode=="default"||this.isPreviewStyle||this.isReadOnlyStyle)return{};var r=this.visibleRateValues.indexOf(e),o=this.getRenderedItemColor(r,!1),s=n=="highlighted"&&this.scaleColorMode==="colored"&&this.getRenderedItemColor(r,!0);return s?{"--sd-rating-item-color":o,"--sd-rating-item-color-light":s}:{"--sd-rating-item-color":o}},t.prototype.getItemClass=function(e,n){var r=this,o=this.value==e.value;this.isStar&&(this.useRateValues()?o=this.rateValues.indexOf(this.rateValues.filter(function(Un){return Un.value==r.value})[0])>=this.rateValues.indexOf(e):o=this.value>=e.value);var s=this.isReadOnly||!e.isEnabled,u=!s&&this.value!=e.value&&!(this.survey&&this.survey.isDesignMode),d=this.renderedRateItems.filter(function(Un){return Un.itemValue==e})[0],y=this.isStar&&(d==null?void 0:d.highlight)=="highlighted",V=this.isStar&&(d==null?void 0:d.highlight)=="unhighlighted",T=this.cssClasses.item,N=this.cssClasses.selected,U=this.cssClasses.itemDisabled,W=this.cssClasses.itemReadOnly,X=this.cssClasses.itemPreview,Y=this.cssClasses.itemHover,J=this.cssClasses.itemOnError,ue=null,Me=null,Ne=null,St=null,Tt=null;this.isStar&&(T=this.cssClasses.itemStar,N=this.cssClasses.itemStarSelected,U=this.cssClasses.itemStarDisabled,W=this.cssClasses.itemStarReadOnly,X=this.cssClasses.itemStarPreview,Y=this.cssClasses.itemStarHover,J=this.cssClasses.itemStarOnError,ue=this.cssClasses.itemStarHighlighted,Me=this.cssClasses.itemStarUnhighlighted,Tt=this.cssClasses.itemStarSmall),this.isSmiley&&(T=this.cssClasses.itemSmiley,N=this.cssClasses.itemSmileySelected,U=this.cssClasses.itemSmileyDisabled,W=this.cssClasses.itemSmileyReadOnly,X=this.cssClasses.itemSmileyPreview,Y=this.cssClasses.itemSmileyHover,J=this.cssClasses.itemSmileyOnError,ue=this.cssClasses.itemSmileyHighlighted,Ne=this.cssClasses.itemSmileyScaleColored,St=this.cssClasses.itemSmileyRateColored,Tt=this.cssClasses.itemSmileySmall);var wr=!this.isStar&&!this.isSmiley&&(!this.displayRateDescriptionsAsExtremeItems||this.useRateValues()&&e!=this.rateValues[0]&&e!=this.rateValues[this.rateValues.length-1]||!this.useRateValues()&&e.value!=this.rateMin&&e.value!=this.rateMax)&&e.locText.calculatedText.length<=2&&Number.isInteger(Number(e.locText.calculatedText));return new _().append(T).append(N,o).append(U,this.isDisabledStyle).append(W,this.isReadOnlyStyle).append(X,this.isPreviewStyle).append(Y,u).append(ue,y).append(Ne,this.scaleColorMode=="colored").append(St,this.rateColorMode=="scale"&&o).append(Me,V).append(J,this.hasCssError()).append(Tt,this.itemSmallMode).append(this.cssClasses.itemFixedSize,wr).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),new _().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("ratingOptionsCaption")},set:function(e){this.setLocalizableStringText("ratingOptionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("ratingOptionsCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchEnabled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){return e.value==this.value},Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.readOnly?this.displayValue||this.placeholder:this.isEmpty()?this.placeholder:""},enumerable:!1,configurable:!0}),t.prototype.needResponsiveWidth=function(){this.getPropertyValue("rateValues");var e=this.getPropertyValue("rateStep"),n=this.getPropertyValue("rateMax"),r=this.getPropertyValue("rateMin");return this.displayMode!="dropdown"&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(n-r)/e>9)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.onBeforeSetCompactRenderer=function(){this.dropdownListModelValue||(this.dropdownListModelValue=new Po(this),this.ariaExpanded="false")},t.prototype.getCompactRenderAs=function(){return this.displayMode=="buttons"?"default":"dropdown"},t.prototype.getDesktopRenderAs=function(){return this.displayMode=="dropdown"?"dropdown":"default"},Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.renderAs==="dropdown"&&this.onBeforeSetCompactRenderer(),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e,this.ariaExpanded=e?"false":void 0,this.updateElementCss()},enumerable:!1,configurable:!0}),t.prototype.onBlurCore=function(e){var n;(n=this.dropdownListModel)===null||n===void 0||n.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),Nn(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModelValue.updateCssClasses(n.popup,n.list),n},t.prototype.themeChanged=function(e){this.colorsCalculated=!1,this.updateColors(e.cssVariables)},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.survey&&(this.updateColors(this.survey.themeVariables),this.updateRenderAsBasedOnDisplayMode())},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},t.colorsCalculated=!1,dt([x({defaultValue:!1})],t.prototype,"inputHasValue",void 0),dt([x()],t.prototype,"autoGenerate",void 0),dt([x()],t.prototype,"rateCount",void 0),dt([x({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),dt([x({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),dt([x()],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),dt([x()],t.prototype,"displayMode",void 0),dt([x()],t.prototype,"rateDescriptionLocation",void 0),dt([x()],t.prototype,"rateType",void 0),dt([x()],t.prototype,"scaleColorMode",void 0),dt([x()],t.prototype,"rateColorMode",void 0),t}(Be);j.addClass("rating",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"rateType",alternativeName:"rateDisplayMode",default:"labels",category:"rateValues",choices:["labels","stars","smileys"],visibleIndex:1},{name:"scaleColorMode",category:"rateValues",default:"monochrome",choices:["monochrome","colored"],visibleIf:function(i){return i.rateDisplayMode=="smileys"},visibleIndex:2},{name:"rateColorMode",category:"rateValues",default:"scale",choices:["default","scale"],visibleIf:function(i){return i.rateDisplayMode=="smileys"&&i.scaleColorMode=="monochrome"},visibleIndex:3},{name:"autoGenerate",category:"rateValues",default:!0,choices:[!0,!1],visibleIndex:5},{name:"rateCount:number",default:5,category:"rateValues",visibleIndex:4,onSettingValue:function(i,t){return t<2?2:t>I.ratingMaximumRateValueCount&&t>i.rateValues.length?I.ratingMaximumRateValueCount:t>10&&i.rateDisplayMode=="smileys"?10:t}},{name:"rateValues:itemvalue[]",baseValue:function(){return k("choices_Item")},category:"rateValues",visibleIf:function(i){return!i.autoGenerate},visibleIndex:6},{name:"rateMin:number",default:1,onSettingValue:function(i,t){return t>i.rateMax-i.rateStep?i.rateMax-i.rateStep:t},visibleIf:function(i){return!!i.autoGenerate},visibleIndex:7},{name:"rateMax:number",default:5,onSettingValue:function(i,t){return t<i.rateMin+i.rateStep?i.rateMin+i.rateStep:t},visibleIf:function(i){return!!i.autoGenerate},visibleIndex:8},{name:"rateStep:number",default:1,minValue:.1,onSettingValue:function(i,t){return t<=0&&(t=1),t>i.rateMax-i.rateMin&&(t=i.rateMax-i.rateMin),t},visibleIf:function(i){return!!i.autoGenerate},visibleIndex:9},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription",visibleIndex:18},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription",visibleIndex:19},{name:"displayRateDescriptionsAsExtremeItems:boolean",default:!1,visibleIndex:21,visibleIf:function(i){return i.rateType=="labels"}},{name:"rateDescriptionLocation",default:"leftRight",choices:["leftRight","top","bottom","topBottom"],visibleIndex:20},{name:"displayMode",default:"auto",choices:["auto","buttons","dropdown"],visibleIndex:0},{name:"itemComponent",visible:!1,defaultFunc:function(i){return i?(i.getOriginalObj&&(i=i.getOriginalObj()),i.getDefaultItemComponent()):"sv-rating-item"}}],function(){return new Zs("")},"question"),Se.Instance.registerQuestion("rating",function(i){return new Zs(i)});var rp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),br=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ks=function(i){rp(t,i);function t(e){var n=i.call(this,e)||this;return n.createLocalizableString("labelFalse",n,!0,"booleanUncheckedLabel"),n.createLocalizableString("labelTrue",n,!0,"booleanCheckedLabel"),n}return t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return this.renderAs!=="checkbox"},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"booleanValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isReadOnly||this.isDesignMode||this.setBooleanValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.booleanValue},set:function(e){this.booleanValue=e},enumerable:!1,configurable:!0}),t.prototype.setBooleanValue=function(e){this.isValueEmpty(e)?(this.value=void 0,this.booleanValueRendered=void 0):(this.value=e==!0?this.getValueTrue():this.getValueFalse(),this.booleanValueRendered=e)},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){e===!0&&(e="true"),e===!1&&(e="false"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){var e=this.defaultValue;if(!(e==="indeterminate"||e===void 0||e===null))return e=="true"?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"locTitle",{get:function(){var e=this.getLocalizableString("title");return!this.isValueEmpty(this.locLabel.text)&&(this.isValueEmpty(e.text)||this.isLabelRendered&&!this.showTitle)?this.locLabel:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelRenderedAriaID",{get:function(){return this.isLabelRendered?this.ariaTitleId:null},enumerable:!1,configurable:!0}),t.prototype.beforeDestroyQuestionElement=function(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.leftAnswerElement=void 0},Object.defineProperty(t.prototype,"isLabelRendered",{get:function(){return this.titleLocation==="hidden"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRenderLabelDescription",{get:function(){return this.isLabelRendered&&this.hasDescription&&(this.hasDescriptionUnderTitle||this.hasDescriptionUnderInput)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDeterminated",{get:function(){return this.booleanValue!==null&&this.booleanValue!==void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelLeft",{get:function(){return this.swapOrder?this.getLocalizableString("labelTrue"):this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelRight",{get:function(){return this.swapOrder?this.getLocalizableString("labelFalse"):this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),t.prototype.getValueTrue=function(){return this.valueTrue!==void 0?this.valueTrue:!0},t.prototype.getValueFalse=function(){return this.valueFalse!==void 0?this.valueFalse:!1},t.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1);var e=this.defaultValue;(e==="indeterminate"||e===null||e===void 0)&&this.setBooleanValue(void 0)},t.prototype.isDefaultValueSet=function(e,n){return this.defaultValue==e||n!==void 0&&this.defaultValue===n},t.prototype.getDisplayValueCore=function(e,n){return n==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCssValue=function(e){return new _().append(e.item).append(e.itemOnError,this.hasCssError()).append(e.itemDisabled,this.isDisabledStyle).append(e.itemReadOnly,this.isReadOnlyStyle).append(e.itemPreview,this.isPreviewStyle).append(e.itemHover,!this.isDesignMode).append(e.itemChecked,!!this.booleanValue).append(e.itemExchanged,!!this.swapOrder).append(e.itemIndeterminate,!this.isDeterminated).toString()},t.prototype.getItemCss=function(){return this.getItemCssValue(this.cssClasses)},t.prototype.getCheckboxItemCss=function(){return this.getItemCssValue({item:this.cssClasses.checkboxItem,itemOnError:this.cssClasses.checkboxItemOnError,itemDisabled:this.cssClasses.checkboxItemDisabled,itemDisable:this.cssClasses.checkboxItemDisabled,itemReadOnly:this.cssClasses.checkboxItemReadOnly,itemPreview:this.cssClasses.checkboxItemPreview,itemChecked:this.cssClasses.checkboxItemChecked,itemIndeterminate:this.cssClasses.checkboxItemIndeterminate})},t.prototype.getLabelCss=function(e){return new _().append(this.cssClasses.label).append(this.cssClasses.disabledLabel,this.booleanValue===!e||this.isDisabledStyle).append(this.cssClasses.labelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.labelPreview,this.isPreviewStyle).append(this.cssClasses.labelTrue,!this.isIndeterminate&&e===!this.swapOrder).append(this.cssClasses.labelFalse,!this.isIndeterminate&&e===this.swapOrder).toString()},t.prototype.updateValueFromSurvey=function(e,n){n===void 0&&(n=!1),i.prototype.updateValueFromSurvey.call(this,e,n)},t.prototype.onValueChanged=function(){i.prototype.onValueChanged.call(this)},Object.defineProperty(t.prototype,"svgIcon",{get:function(){return this.booleanValue&&this.cssClasses.svgIconCheckedId?this.cssClasses.svgIconCheckedId:!this.isDeterminated&&this.cssClasses.svgIconIndId?this.cssClasses.svgIconIndId:!this.booleanValue&&this.cssClasses.svgIconUncheckedId?this.cssClasses.svgIconUncheckedId:this.cssClasses.svgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClick",{get:function(){return this.isIndeterminate&&!this.isInputReadOnly},enumerable:!1,configurable:!0}),t.prototype.getCheckedLabel=function(){if(this.booleanValue===!0)return this.locLabelTrue;if(this.booleanValue===!1)return this.locLabelFalse},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),e==="true"&&this.valueTrue!=="true"&&(e=!0),e==="false"&&this.valueFalse!=="false"&&(e=!1),(e==="indeterminate"||e===null)&&(e=void 0),i.prototype.setQuestionValue.call(this,e,n)},t.prototype.onLabelClick=function(e,n){return this.allowClick&&(Ji(e),this.booleanValue=n),!0},t.prototype.calculateBooleanValueByEvent=function(e,n){var r=!1;R.isAvailable()&&(r=R.getComputedStyle(e.target).direction=="rtl"),this.booleanValue=r?!n:n},t.prototype.onSwitchClickModel=function(e){if(this.allowClick){Ji(e);var n=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,n);return}return!0},t.prototype.onKeyDownCore=function(e){return(e.key==="ArrowLeft"||e.key==="ArrowRight")&&(e.stopPropagation(),this.calculateBooleanValueByEvent(e,e.key==="ArrowRight")),!0},t.prototype.getRadioItemClass=function(e,n){var r=void 0;return e.radioItem&&(r=e.radioItem),e.radioItemChecked&&n===this.booleanValue&&(r=(r?r+" ":"")+e.radioItemChecked),this.isDisabledStyle&&(r+=" "+e.radioItemDisabled),this.isReadOnlyStyle&&(r+=" "+e.radioItemReadOnly),this.isPreviewStyle&&(r+=" "+e.radioItemPreview),r},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"radio"},t.prototype.createActionContainer=function(e){return i.prototype.createActionContainer.call(this,this.renderAs!=="checkbox")},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"switch"},enumerable:!1,configurable:!0}),br([x()],t.prototype,"booleanValueRendered",void 0),br([x()],t.prototype,"showTitle",void 0),br([x({localizable:!0})],t.prototype,"label",void 0),br([x({defaultValue:!1})],t.prototype,"swapOrder",void 0),br([x()],t.prototype,"valueTrue",void 0),br([x()],t.prototype,"valueFalse",void 0),t}(Be);j.addClass("boolean",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"label:text",serializationProperty:"locLabel",isSerializable:!1,visible:!1},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"valueTrue","valueFalse",{name:"swapOrder:boolean",category:"general"},{name:"renderAs",default:"default",visible:!1}],function(){return new Ks("")},"question"),Se.Instance.registerQuestion("boolean",function(i){return new Ks(i)});var wl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ft=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Pl=function(i){wl(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="imageitemvalue");var o=i.call(this,e,n,r)||this;return o.typeName=r,o.createLocalizableString("imageLink",o,!1),o}return t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e),this.imageNotLoaded=!1,this.videoNotLoaded=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},Object.defineProperty(t.prototype,"contentNotLoaded",{get:function(){return this.locOwner instanceof fi&&this.locOwner.contentMode=="video"?this.videoNotLoaded:this.imageNotLoaded},set:function(e){this.locOwner instanceof fi&&this.locOwner.contentMode=="video"?this.videoNotLoaded=e:this.imageNotLoaded=e},enumerable:!1,configurable:!0}),Ft([x({defaultValue:!1})],t.prototype,"videoNotLoaded",void 0),Ft([x({defaultValue:!1})],t.prototype,"imageNotLoaded",void 0),t}(re),fi=function(i){wl(t,i);function t(e){var n=i.call(this,e)||this;return n.isResponsiveValue=!1,n.onContentLoaded=function(r,o){r.contentNotLoaded=!1;var s=o.target;n.contentMode=="video"?r.aspectRatio=s.videoWidth/s.videoHeight:r.aspectRatio=s.naturalWidth/s.naturalHeight,n._width&&n.processResponsiveness(0,n._width)},n.colCount=0,n.registerPropertyChangedHandlers(["minImageWidth","maxImageWidth","minImageHeight","maxImageHeight","visibleChoices","colCount","isResponsiveValue"],function(){n._width&&n.processResponsiveness(0,n._width)}),n.registerPropertyChangedHandlers(["imageWidth","imageHeight"],function(){n.calcIsResponsive()}),n.calcIsResponsive(),n}return t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!this.multiSelect},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.supportRefuse=function(){return!1},t.prototype.supportDontKnow=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.multiSelect?h.isArrayContainsEqual(this.value,this.correctAnswer):i.prototype.isAnswerCorrect.call(this)},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect")},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){var n=this.value,r=e;if(this.isValueEmpty(n)||!r.imageLink||r.contentNotLoaded)return!1;if(!this.multiSelect)return this.isTwoValueEquals(n,e.value);if(!Array.isArray(n))return!1;for(var o=0;o<n.length;o++)if(this.isTwoValueEquals(n[o],e.value))return!0;return!1},t.prototype.getItemEnabled=function(e){var n=e;return!n.imageLink||n.contentNotLoaded?!1:i.prototype.getItemEnabled.call(this,e)},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var e=this.value;if(!e)return;if(!Array.isArray(e)||e.length==0){this.clearValue(!0);return}for(var n=[],r=0;r<e.length;r++)this.hasUnknownValue(e[r],!0)||n.push(e[r]);if(n.length==e.length)return;n.length==0?this.clearValue(!0):this.value=n}else i.prototype.clearIncorrectValues.call(this)},t.prototype.getDisplayValueCore=function(e,n){return!this.multiSelect&&!Array.isArray(n)?i.prototype.getDisplayValueCore.call(this,e,n):this.getDisplayArrayValue(e,n)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel")},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value")),this.calcIsResponsive()},t.prototype.getValueCore=function(){var e=i.prototype.getValueCore.call(this);return e!==void 0?e:this.multiSelect?[]:e},t.prototype.convertValToArrayForMultSelect=function(e){return!this.multiSelect||this.isValueEmpty(e)||Array.isArray(e)?e:[e]},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageScale",{get:function(){return this.survey?this.survey.widthScale/100:1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageHeight",{get:function(){var e=this.isResponsive?Math.floor(this.responsiveImageHeight):this.imageHeight*this.imageScale;return e||150*this.imageScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageWidth",{get:function(){var e=this.isResponsive?Math.floor(this.responsiveImageWidth):this.imageWidth*this.imageScale;return e||200*this.imageScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),e==="video"&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.multiSelect?"checkbox":"radio"},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e){return!1},t.prototype.addToVisibleChoices=function(e,n){this.addNewItemToVisibleChoices(e,n)},t.prototype.getSelectBaseRootCss=function(){return new _().append(i.prototype.getSelectBaseRootCss.call(this)).append(this.cssClasses.rootColumn,this.getCurrentColCount()==1).toString()},Object.defineProperty(t.prototype,"isResponsive",{get:function(){return this.isResponsiveValue&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exactSizesAreEmpty",{get:function(){var e=this;return!["imageHeight","imageWidth"].some(function(n){return e[n]!==void 0&&e[n]!==null})},enumerable:!1,configurable:!0}),t.prototype.calcIsResponsive=function(){this.isResponsiveValue=this.exactSizesAreEmpty},t.prototype.getObservedElementSelector=function(){return ke(this.cssClasses.root)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.needResponsiveWidth=function(){return this.colCount>2},t.prototype.getCurrentColCount=function(){return this.responsiveColCount===void 0||this.colCount===0?this.colCount:this.responsiveColCount},t.prototype.processResponsiveness=function(e,n){this._width=n=Math.floor(n);var r=function(ue,Me,Ne){var St=Math.floor(ue/(Me+Ne));return(St+1)*(Me+Ne)-Ne<=ue&&St++,St};if(this.isResponsive){var o=this.choices.length+(this.isDesignMode?1:0),s=(this.gapBetweenItems||0)*this.imageScale,u=this.minImageWidth*this.imageScale,d=this.maxImageWidth*this.imageScale,y=this.maxImageHeight*this.imageScale,V=this.minImageHeight*this.imageScale,T=this.colCount,N;if(T===0)if((s+u)*o-s>n){var U=r(n,u,s);N=Math.floor((n-s*(U-1))/U)}else N=Math.floor((n-s*(o-1))/o);else{var W=r(n,u,s);W<T?(this.responsiveColCount=W>=1?W:1,T=this.responsiveColCount):this.responsiveColCount=T,N=Math.floor((n-s*(T-1))/T)}N=Math.max(u,Math.min(N,d));var X=Number.MIN_VALUE;this.choices.forEach(function(ue){var Me=N/ue.aspectRatio;X=Me>X?Me:X}),X>y?X=y:X<V&&(X=V);var Y=this.responsiveImageWidth,J=this.responsiveImageHeight;return this.responsiveImageWidth=N,this.responsiveImageHeight=X,Y!==this.responsiveImageWidth||J!==this.responsiveImageHeight}return!1},t.prototype.triggerResponsiveness=function(e){e===void 0&&(e=!0),e&&this.reCalcGapBetweenItemsCallback&&this.reCalcGapBetweenItemsCallback(),i.prototype.triggerResponsiveness.call(this,e)},t.prototype.afterRender=function(e){var n=this;i.prototype.afterRender.call(this,e);var r=this.getObservedElementSelector(),o=e&&r?e.querySelector(r):void 0;o&&(this.reCalcGapBetweenItemsCallback=function(){n.gapBetweenItems=Math.ceil(Number.parseFloat(R.getComputedStyle(o).gap))||16},this.reCalcGapBetweenItemsCallback())},Ft([x({})],t.prototype,"responsiveImageHeight",void 0),Ft([x({})],t.prototype,"responsiveImageWidth",void 0),Ft([x({})],t.prototype,"isResponsiveValue",void 0),Ft([x({})],t.prototype,"maxImageWidth",void 0),Ft([x({})],t.prototype,"minImageWidth",void 0),Ft([x({})],t.prototype,"maxImageHeight",void 0),Ft([x({})],t.prototype,"minImageHeight",void 0),Ft([x({})],t.prototype,"responsiveColCount",void 0),t}(li);j.addClass("imageitemvalue",[{name:"imageLink:file",serializationProperty:"locImageLink"}],function(i){return new Pl(i)},"itemvalue"),j.addClass("responsiveImageSize",[],void 0,"number"),j.addClass("imagepicker",[{name:"showOtherItem",visible:!1},{name:"otherText",visible:!1},{name:"showNoneItem",visible:!1},{name:"showRefuseItem",visible:!1},{name:"showDontKnowItem",visible:!1},{name:"noneText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",minValue:0},{name:"imageWidth:number",minValue:0},{name:"minImageWidth:responsiveImageSize",default:200,minValue:0,visibleIf:function(){return I.supportCreatorV2}},{name:"minImageHeight:responsiveImageSize",default:133,minValue:0,visibleIf:function(){return I.supportCreatorV2}},{name:"maxImageWidth:responsiveImageSize",default:400,minValue:0,visibleIf:function(){return I.supportCreatorV2}},{name:"maxImageHeight:responsiveImageSize",default:266,minValue:0,visibleIf:function(){return I.supportCreatorV2}}],function(){return new fi("")},"checkboxbase"),j.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),j.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),j.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),j.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),Se.Instance.registerQuestion("imagepicker",function(i){var t=new fi(i);return t});var ip=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),op=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},xl=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],sp="https://www.youtube.com/",Vl="embed",Ys=function(i){ip(t,i);function t(e){var n=i.call(this,e)||this,r=n.createLocalizableString("imageLink",n,!1);return r.onGetTextCallback=function(o){return ap(o,n.contentMode=="youtube")},n.createLocalizableString("altText",n,!1),n.registerPropertyChangedHandlers(["contentMode","imageLink"],function(){return n.calculateRenderedMode()}),n}return t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.calculateRenderedMode()},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"altText",{get:function(){return this.getLocalizableStringText("altText")},set:function(e){this.setLocalizableStringText("altText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAltText",{get:function(){return this.getLocalizableString("altText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleHeight",{get:function(){return this.imageHeight?pr(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?Et(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleWidth",{get:function(){return this.imageWidth?pr(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?Et(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),e==="video"&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMode",{get:function(){return this.getPropertyValue("renderedMode","image")},enumerable:!1,configurable:!0}),t.prototype.getImageCss=function(){var e=this.getPropertyByName("imageHeight"),n=this.getPropertyByName("imageWidth"),r=e.isDefaultValue(this.imageHeight)&&n.isDefaultValue(this.imageWidth);return new _().append(this.cssClasses.image).append(this.cssClasses.adaptive,r).toString()},t.prototype.onLoadHandler=function(){this.contentNotLoaded=!1},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},t.prototype.setRenderedMode=function(e){this.setPropertyValue("renderedMode",e)},t.prototype.calculateRenderedMode=function(){this.contentMode!=="auto"?this.setRenderedMode(this.contentMode):this.isYoutubeVideo()?this.setRenderedMode("youtube"):this.isVideo()?this.setRenderedMode("video"):this.setRenderedMode("image")},t.prototype.isYoutubeVideo=function(){return h.isUrlYoutubeVideo(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var n=0;n<xl.length;n++)if(e.endsWith(xl[n]))return!0;return!1},op([x({defaultValue:!1})],t.prototype,"contentNotLoaded",void 0),t}(Oo);function ap(i,t){if(!i||!h.isUrlYoutubeVideo(i))return t?"":i;var e=i.toLocaleLowerCase();if(e.indexOf(Vl)>-1)return i;for(var n="",r=i.length-1;r>=0&&!(i[r]==="="||i[r]==="/");r--)n=i[r]+n;return sp+Vl+"/"+n}j.addClass("image",[{name:"imageLink:file",serializationProperty:"locImageLink"},{name:"altText",serializationProperty:"locAltText",alternativeName:"text",category:"general"},{name:"contentMode",default:"auto",choices:["auto","image","video","youtube"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight",default:"150"},{name:"imageWidth",default:"200"}],function(){return new Ys("")},"nonvalue"),Se.Instance.registerQuestion("image",function(i){return new Ys(i)});/*!
+ * Signature Pad v4.2.0 | https://github.com/szimek/signature_pad
+ * (c) 2024 Szymon Nowak | Released under the MIT license
+ */class Ro{constructor(t,e,n,r){if(isNaN(t)||isNaN(e))throw new Error(`Point is invalid: (${t}, ${e})`);this.x=+t,this.y=+e,this.pressure=n||0,this.time=r||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}class Xs{static fromPoints(t,e){const n=this.calculateControlPoints(t[0],t[1],t[2]).c2,r=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new Xs(t[1],n,r,t[2],e.start,e.end)}static calculateControlPoints(t,e,n){const r=t.x-e.x,o=t.y-e.y,s=e.x-n.x,u=e.y-n.y,d={x:(t.x+e.x)/2,y:(t.y+e.y)/2},y={x:(e.x+n.x)/2,y:(e.y+n.y)/2},V=Math.sqrt(r*r+o*o),T=Math.sqrt(s*s+u*u),N=d.x-y.x,U=d.y-y.y,W=T/(V+T),X={x:y.x+N*W,y:y.y+U*W},Y=e.x-X.x,J=e.y-X.y;return{c1:new Ro(d.x+Y,d.y+J),c2:new Ro(y.x+Y,y.y+J)}}constructor(t,e,n,r,o,s){this.startPoint=t,this.control2=e,this.control1=n,this.endPoint=r,this.startWidth=o,this.endWidth=s}length(){let e=0,n,r;for(let o=0;o<=10;o+=1){const s=o/10,u=this.point(s,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),d=this.point(s,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const y=u-n,V=d-r;e+=Math.sqrt(y*y+V*V)}n=u,r=d}return e}point(t,e,n,r,o){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*r*(1-t)*t*t+o*t*t*t}}class lp{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(t,e,n){this._et.addEventListener(t,e,n)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,e,n){this._et.removeEventListener(t,e,n)}}function up(i,t=250){let e=0,n=null,r,o,s;const u=()=>{e=Date.now(),n=null,r=i.apply(o,s),n||(o=null,s=[])};return function(...y){const V=Date.now(),T=t-(V-e);return o=this,s=y,T<=0||T>t?(n&&(clearTimeout(n),n=null),e=V,r=i.apply(o,s),n||(o=null,s=[])):n||(n=window.setTimeout(u,T)),r}}class Io extends lp{constructor(t,e={}){super(),this.canvas=t,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=n=>{n.buttons===1&&this._strokeBegin(n)},this._handleMouseMove=n=>{this._strokeMoveUpdate(n)},this._handleMouseUp=n=>{n.buttons===1&&this._strokeEnd(n)},this._handleTouchStart=n=>{if(n.cancelable&&n.preventDefault(),n.targetTouches.length===1){const r=n.changedTouches[0];this._strokeBegin(r)}},this._handleTouchMove=n=>{n.cancelable&&n.preventDefault();const r=n.targetTouches[0];this._strokeMoveUpdate(r)},this._handleTouchEnd=n=>{if(n.target===this.canvas){n.cancelable&&n.preventDefault();const o=n.changedTouches[0];this._strokeEnd(o)}},this._handlePointerStart=n=>{n.preventDefault(),this._strokeBegin(n)},this._handlePointerMove=n=>{this._strokeMoveUpdate(n)},this._handlePointerEnd=n=>{this._drawingStroke&&(n.preventDefault(),this._strokeEnd(n))},this.velocityFilterWeight=e.velocityFilterWeight||.7,this.minWidth=e.minWidth||.5,this.maxWidth=e.maxWidth||2.5,this.throttle="throttle"in e?e.throttle:16,this.minDistance="minDistance"in e?e.minDistance:5,this.dotSize=e.dotSize||0,this.penColor=e.penColor||"black",this.backgroundColor=e.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=e.compositeOperation||"source-over",this.canvasContextOptions="canvasContextOptions"in e?e.canvasContextOptions:{},this._strokeMoveUpdate=this.throttle?up(Io.prototype._strokeUpdate,this.throttle):Io.prototype._strokeUpdate,this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:t,canvas:e}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(t,e={}){return new Promise((n,r)=>{const o=new Image,s=e.ratio||window.devicePixelRatio||1,u=e.width||this.canvas.width/s,d=e.height||this.canvas.height/s,y=e.xOffset||0,V=e.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,y,V,u,d),n()},o.onerror=T=>{r(T)},o.crossOrigin="anonymous",o.src=t,this._isEmpty=!1})}toDataURL(t="image/png",e){switch(t){case"image/svg+xml":return typeof e!="object"&&(e=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(e))}`;default:return typeof e!="number"&&(e=void 0),this.canvas.toDataURL(t,e)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(t,{clear:e=!0}={}){e&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;this._drawingStroke=!0;const n=this._getPointGroupOptions(),r=Object.assign(Object.assign({},n),{points:[]});this._data.push(r),this._reset(n),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const e=t.clientX,n=t.clientY,r=t.pressure!==void 0?t.pressure:t.force!==void 0?t.force:0,o=this._createPoint(e,n,r),s=this._data[this._data.length-1],u=s.points,d=u.length>0&&u[u.length-1],y=d?o.distanceTo(d)<=this.minDistance:!1,V=this._getPointGroupOptions(s);if(!d||!(d&&y)){const T=this._addPoint(o,V);d?T&&this._drawCurve(T,V):this._drawDot(o,V),u.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t){this._drawingStroke&&(this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,e,n){const r=this.canvas.getBoundingClientRect();return new Ro(t-r.left,e-r.top,n,new Date().getTime())}_addPoint(t,e){const{_lastPoints:n}=this;if(n.push(t),n.length>2){n.length===3&&n.unshift(n[0]);const r=this._calculateCurveWidths(n[1],n[2],e),o=Xs.fromPoints(n,r);return n.shift(),o}return null}_calculateCurveWidths(t,e,n){const r=n.velocityFilterWeight*e.velocityFrom(t)+(1-n.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(r,n),s={end:o,start:this._lastWidth};return this._lastVelocity=r,this._lastWidth=o,s}_strokeWidth(t,e){return Math.max(e.maxWidth/(t+1),e.minWidth)}_drawCurveSegment(t,e,n){const r=this._ctx;r.moveTo(t,e),r.arc(t,e,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,e){const n=this._ctx,r=t.endWidth-t.startWidth,o=Math.ceil(t.length())*2;n.beginPath(),n.fillStyle=e.penColor;for(let s=0;s<o;s+=1){const u=s/o,d=u*u,y=d*u,V=1-u,T=V*V,N=T*V;let U=N*t.startPoint.x;U+=3*T*u*t.control1.x,U+=3*V*d*t.control2.x,U+=y*t.endPoint.x;let W=N*t.startPoint.y;W+=3*T*u*t.control1.y,W+=3*V*d*t.control2.y,W+=y*t.endPoint.y;const X=Math.min(t.startWidth+y*r,e.maxWidth);this._drawCurveSegment(U,W,X)}n.closePath(),n.fill()}_drawDot(t,e){const n=this._ctx,r=e.dotSize>0?e.dotSize:(e.minWidth+e.maxWidth)/2;n.beginPath(),this._drawCurveSegment(t.x,t.y,r),n.closePath(),n.fillStyle=e.penColor,n.fill()}_fromData(t,e,n){for(const r of t){const{points:o}=r,s=this._getPointGroupOptions(r);if(o.length>1)for(let u=0;u<o.length;u+=1){const d=o[u],y=new Ro(d.x,d.y,d.pressure,d.time);u===0&&this._reset(s);const V=this._addPoint(y,s);V&&e(V,s)}else this._reset(s),n(o[0],s)}}toSVG({includeBackgroundColor:t=!1}={}){const e=this._data,n=Math.max(window.devicePixelRatio||1,1),r=0,o=0,s=this.canvas.width/n,u=this.canvas.height/n,d=document.createElementNS("http://www.w3.org/2000/svg","svg");if(d.setAttribute("xmlns","http://www.w3.org/2000/svg"),d.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),d.setAttribute("viewBox",`${r} ${o} ${s} ${u}`),d.setAttribute("width",s.toString()),d.setAttribute("height",u.toString()),t&&this.backgroundColor){const y=document.createElement("rect");y.setAttribute("width","100%"),y.setAttribute("height","100%"),y.setAttribute("fill",this.backgroundColor),d.appendChild(y)}return this._fromData(e,(y,{penColor:V})=>{const T=document.createElement("path");if(!isNaN(y.control1.x)&&!isNaN(y.control1.y)&&!isNaN(y.control2.x)&&!isNaN(y.control2.y)){const N=`M ${y.startPoint.x.toFixed(3)},${y.startPoint.y.toFixed(3)} C ${y.control1.x.toFixed(3)},${y.control1.y.toFixed(3)} ${y.control2.x.toFixed(3)},${y.control2.y.toFixed(3)} ${y.endPoint.x.toFixed(3)},${y.endPoint.y.toFixed(3)}`;T.setAttribute("d",N),T.setAttribute("stroke-width",(y.endWidth*2.25).toFixed(3)),T.setAttribute("stroke",V),T.setAttribute("fill","none"),T.setAttribute("stroke-linecap","round"),d.appendChild(T)}},(y,{penColor:V,dotSize:T,minWidth:N,maxWidth:U})=>{const W=document.createElement("circle"),X=T>0?T:(N+U)/2;W.setAttribute("r",X.toString()),W.setAttribute("cx",y.x.toString()),W.setAttribute("cy",y.y.toString()),W.setAttribute("fill",V),d.appendChild(W)}),d.outerHTML}}var cp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Xt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},pp=300,fp=200,ea=function(i){cp(t,i);function t(e){var n=i.call(this,e)||this;return n.valueIsUpdatingInternally=!1,n._loadedData=void 0,n.updateValueHandler=function(){n._loadedData=void 0,n.scaleCanvas(!1,!0),n.loadPreview(n.value)},n}return t.prototype.getPenColorFromTheme=function(){var e=this.survey;return!!e&&!!e.themeVariables&&e.themeVariables["--sjs-primary-backcolor"]},t.prototype.updateColors=function(e){var n=this.getPenColorFromTheme(),r=this.getPropertyByName("penColor");e.penColor=this.penColor||n||r.defaultValue||"#1ab394";var o=this.getPropertyByName("backgroundColor"),s=n?"transparent":void 0,u=this.backgroundImage?"transparent":this.backgroundColor;e.backgroundColor=u||s||o.defaultValue||"#ffffff"},t.prototype.getCssRoot=function(e){return new _().append(i.prototype.getCssRoot.call(this,e)).append(e.small,this.signatureWidth.toString()==="300").toString()},t.prototype.getFormat=function(){return this.dataFormat==="jpeg"?"image/jpeg":this.dataFormat==="svg"?"image/svg+xml":""},t.prototype.updateValue=function(){if(this.signaturePad){var e=this.signaturePad.toDataURL(this.getFormat());this.valueIsUpdatingInternally=!0,this.value=e,this.valueIsUpdatingInternally=!1}},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(e){e&&(this.isDesignMode||this.initSignaturePad(e),this.element=e),i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.themeChanged=function(e){this.signaturePad&&this.updateColors(this.signaturePad)},t.prototype.resizeCanvas=function(){this.canvas.width=this.containerWidth,this.canvas.height=this.containerHeight},t.prototype.scaleCanvas=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=!1);var r=this.canvas,o=r.offsetWidth/this.containerWidth;(this.scale!=o||n)&&(this.scale=o,r.style.width=this.renderedCanvasWidth,this.resizeCanvas(),this.signaturePad.minWidth=this.penMinWidth*o,this.signaturePad.maxWidth=this.penMaxWidth*o,r.getContext("2d").scale(1/o,1/o),e&&this.loadPreview(this.value))},t.prototype.fromUrl=function(e){var n=this;if(this.isFileLoading=!0,Hi(e))this.fromDataUrl(e),this.isFileLoading=!1;else{var r=new Image;r.crossOrigin="anonymous",r.src=e,r.onload=function(){if(n.canvas){var o=R.createElement("canvas");o.width=n.containerWidth,o.height=n.containerHeight;var s=o.getContext("2d");s.drawImage(r,0,0);var u=o.toDataURL(n.getFormat());n.fromDataUrl(u)}n.isFileLoading=!1},r.onerror=function(){n.isFileLoading=!1}}},t.prototype.fromDataUrl=function(e){this._loadedData=e,this.signaturePad&&this.signaturePad.fromDataURL(e,{width:this.canvas.width*this.scale,height:this.canvas.height*this.scale})},Object.defineProperty(t.prototype,"loadedData",{get:function(){return this._loadedData},enumerable:!1,configurable:!0}),t.prototype.loadPreview=function(e){var n=this;if(!e){this.signaturePad&&this.canvas&&(this.canvas.getContext("2d").clearRect(0,0,this.canvas.width*this.scale,this.canvas.height*this.scale),this.signaturePad.clear()),this.valueWasChangedFromLastUpload=!1;return}if(this.storeDataAsText)this.fromDataUrl(e);else if(this.loadedData)this.fromDataUrl(this.loadedData);else{var r=e?[e]:[];this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new Cl(this,function(o,s){o==="success"&&s&&s.length>0&&s[0].content?(n.fromDataUrl(s[0].content),n.isFileLoading=!1):o==="skipped"&&n.fromUrl(e),n._previewLoader.dispose(),n._previewLoader=void 0}),this._previewLoader.load(r)}},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.isLoadingFromJson||(this._loadedData=void 0,this.loadPreview(e))},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.loadPreview(this.value)},t.prototype.initSignaturePad=function(e){var n=this,r=e.getElementsByTagName("canvas")[0];this.canvas=r,this.resizeCanvas();var o=new Io(r,{backgroundColor:"#ffffff"});this.signaturePad=o,this.isInputReadOnly&&o.off(),this.readOnlyChangedCallback=function(){n.isInputReadOnly?o.off():o.on()},this.updateColors(o),o.addEventListener("beginStroke",function(){n.scaleCanvas(),n.isDrawingValue=!0,r.focus()},{once:!1}),o.addEventListener("endStroke",function(){n.isDrawingValue=!1,n.storeDataAsText?n.updateValue():n.valueWasChangedFromLastUpload=!0},{once:!1}),this.updateValueHandler(),this.readOnlyChangedCallback();var s=function(u,d){(d.name==="signatureWidth"||d.name==="signatureHeight")&&(n.valueIsUpdatingInternally||n.updateValueHandler())};this.onPropertyChanged.add(s),this.signaturePad.propertyChangedHandler=s},t.prototype.destroySignaturePad=function(e){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null},Object.defineProperty(t.prototype,"dataFormat",{get:function(){return this.getPropertyValue("dataFormat")},set:function(e){this.setPropertyValue("dataFormat",ta(e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureWidth",{get:function(){return this.getPropertyValue("signatureWidth")},set:function(e){this.setPropertyValue("signatureWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureHeight",{get:function(){return this.getPropertyValue("signatureHeight")},set:function(e){this.setPropertyValue("signatureHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerHeight",{get:function(){return this.signatureHeight||fp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerWidth",{get:function(){return this.signatureWidth||pp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedCanvasWidth",{get:function(){return this.signatureAutoScaleEnabled?"100%":this.containerWidth+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){this.setPropertyValue("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return this.getPropertyValue("allowClear")},set:function(e){this.setPropertyValue("allowClear",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){var e=!this.nothingIsDrawn(),n=this.isUploading;return!this.isInputReadOnly&&this.allowClear&&e&&!n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(e){this.setPropertyValue("penColor",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.getPropertyValue("backgroundColor")},set:function(e){this.setPropertyValue("backgroundColor",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getPropertyValue("backgroundImage")},set:function(e){this.setPropertyValue("backgroundImage",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRenderedPlaceholder",{get:function(){return this.isReadOnly?this.locPlaceholderReadOnly:this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.nothingIsDrawn=function(){var e=this.isDrawingValue,n=this.isEmpty(),r=this.isUploading,o=this.valueWasChangedFromLastUpload;return!e&&n&&!r&&!o},t.prototype.needShowPlaceholder=function(){return this.showPlaceholder&&this.nothingIsDrawn()},t.prototype.onBlurCore=function(e){if(i.prototype.onBlurCore.call(this,e),!this.storeDataAsText&&!this.element.contains(e.relatedTarget)){if(!this.valueWasChangedFromLastUpload)return;this.uploadFiles([Xc(this.signaturePad.toDataURL(this.getFormat()),this.name+"."+ta(this.dataFormat),this.getFormat())]),this.valueWasChangedFromLastUpload=!1}},t.prototype.uploadResultItemToValue=function(e){return e.content},t.prototype.setValueFromResult=function(e){this.valueIsUpdatingInternally=!0,this.value=e!=null&&e.length?e.map(function(n){return n.content})[0]:void 0,this.valueIsUpdatingInternally=!1},t.prototype.clearValue=function(e){this.valueWasChangedFromLastUpload=!1,i.prototype.clearValue.call(this,e),this._loadedData=void 0,this.loadPreview(this.value)},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.signatureWidth===300&&this.width&&typeof this.width=="number"&&this.width&&(He.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),this.signatureHeight===200&&this.height&&(He.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},Xt([x({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),Xt([x({defaultValue:!1})],t.prototype,"isReadyForUpload",void 0),Xt([x({defaultValue:!1})],t.prototype,"valueWasChangedFromLastUpload",void 0),Xt([x()],t.prototype,"signatureAutoScaleEnabled",void 0),Xt([x()],t.prototype,"penMinWidth",void 0),Xt([x()],t.prototype,"penMaxWidth",void 0),Xt([x({})],t.prototype,"showPlaceholder",void 0),Xt([x({localizable:{defaultStr:"signaturePlaceHolder"}})],t.prototype,"placeholder",void 0),Xt([x({localizable:{defaultStr:"signaturePlaceHolderReadOnly"}})],t.prototype,"placeholderReadOnly",void 0),t}(vl);function ta(i){return i||(i="png"),i=i.replace("image/","").replace("+xml",""),i!=="jpeg"&&i!=="svg"&&(i="png"),i}j.addClass("signaturepad",[{name:"signatureWidth:number",category:"general",default:300},{name:"signatureHeight:number",category:"general",default:200},{name:"signatureAutoScaleEnabled:boolean",category:"general",default:!1},{name:"penMinWidth:number",category:"general",default:.5},{name:"penMaxWidth:number",category:"general",default:2.5},{name:"height:number",category:"general",visible:!1},{name:"allowClear:boolean",category:"general",default:!0},{name:"showPlaceholder:boolean",category:"general",default:!0},{name:"placeholder:text",serializationProperty:"locPlaceholder",category:"general",dependsOn:"showPlaceholder",visibleIf:function(i){return i.showPlaceholder}},{name:"placeholderReadOnly:text",serializationProperty:"locPlaceholderReadOnly",category:"general",dependsOn:"showPlaceholder",visibleIf:function(i){return i.showPlaceholder}},{name:"backgroundImage:file",category:"general"},{name:"penColor:color",category:"general"},{name:"backgroundColor:color",category:"general"},{name:"dataFormat",category:"general",default:"png",choices:[{value:"png",text:"PNG"},{value:"jpeg",text:"JPEG"},{value:"svg",text:"SVG"}],onSettingValue:function(i,t){return ta(t)}},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1}],function(){return new ea("")},"question"),Se.Instance.registerQuestion("signaturepad",function(i){return new ea(i)});var Sl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),di=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},dp=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},hp=function(i){Sl(t,i);function t(e,n,r){var o=i.call(this,r)||this;return o.data=e,o.panelItem=n,o.variableName=r,o.sharedQuestions={},o}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.panelItem.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelItem.panel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelIndex",{get:function(){return this.data?this.data.getItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelIndex",{get:function(){return this.data?this.data.getVisibleItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.panelItem.getAllValues()},t.prototype.getQuestionByName=function(e){var n=i.prototype.getQuestionByName.call(this,e);if(n)return n;var r=this.panelIndex;n=r>-1?this.data.getSharedQuestionFromArray(e,r):void 0;var o=n?n.name:e;return this.sharedQuestions[o]=e,n},t.prototype.getQuestionDisplayText=function(e){var n=this.sharedQuestions[e.name];if(!n)return i.prototype.getQuestionDisplayText.call(this,e);var r=this.panelItem.getValue(n);return e.getDisplayValue(!0,r)},t.prototype.onCustomProcessText=function(e){if(e.name==st.IndexVariableName){var n=this.panelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(e.name==st.VisibleIndexVariableName){var n=this.visiblePanelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(e.name.toLowerCase().indexOf(st.ParentItemVariableName+".")==0){var r=this.data;if(r&&r.parentQuestion&&r.parent&&r.parent.data){var o=new t(r.parentQuestion,r.parent.data,st.ItemVariableName),s=st.ItemVariableName+e.name.substring(st.ParentItemVariableName.length),u=o.processValue(s,e.returnDisplayValue);e.isExists=u.isExists,e.value=u.value}return!0}return!1},t}(yr),st=function(){function i(t,e){this.data=t,this.panelValue=e,this.textPreProcessor=new hp(t,this,i.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(i.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),i.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},i.prototype.getValue=function(t){var e=this.getAllValues();return e[t]},i.prototype.setValue=function(t,e){var n=this.data.getPanelItemData(this),r=n?n[t]:void 0;if(!h.isTwoValueEquals(e,r,!1,!0,!1)){this.data.setPanelItemData(this,t,h.getUnbindValue(e));for(var o=this.panel.questions,s=i.ItemVariableName+"."+t,u=0;u<o.length;u++){var d=o[u];d.getValueName()!==t&&d.checkBindings(t,e),d.runTriggers(s,e)}}},i.prototype.getVariable=function(t){},i.prototype.setVariable=function(t,e){},i.prototype.getComment=function(t){var e=this.getValue(t+I.commentSuffix);return e||""},i.prototype.setComment=function(t,e,n){this.setValue(t+I.commentSuffix,e)},i.prototype.findQuestionByName=function(t){if(t){var e=i.ItemVariableName+".";if(t.indexOf(e)===0)return this.panel.getQuestionByName(t.substring(e.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},i.prototype.getEditingSurveyElement=function(){},i.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},i.prototype.getFilteredValues=function(){var t={},e=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var n in e)t[n]=e[n];if(t[i.ItemVariableName]=this.getAllValues(),this.data){var r=i.IndexVariableName,o=i.VisibleIndexVariableName;delete t[r],delete t[o],t[r.toLowerCase()]=this.data.getItemIndex(this),t[o.toLowerCase()]=this.data.getVisibleItemIndex(this);var s=this.data;s&&s.parentQuestion&&s.parent&&(t[i.ParentItemVariableName]=s.parent.getValue())}return t},i.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},i.prototype.getSurveyData=function(){return this},i.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},i.prototype.getTextProcessor=function(){return this.textPreProcessor},i.ItemVariableName="panel",i.ParentItemVariableName="parentpanel",i.IndexVariableName="panelIndex",i.VisibleIndexVariableName="visiblePanelIndex",i}(),gp=function(){function i(t){this.data=t}return i.prototype.getSurveyData=function(){return null},i.prototype.getSurvey=function(){return this.data.getSurvey()},i.prototype.getTextProcessor=function(){return null},i}(),na=function(i){Sl(t,i);function t(e){var n=i.call(this,e)||this;return n._renderedPanels=[],n.isPanelsAnimationRunning=!1,n.isAddingNewPanels=!1,n.isSetPanelItemData={},n.createNewArray("panels",function(r){n.onPanelAdded(r)},function(r){n.onPanelRemoved(r)}),n.createNewArray("visiblePanels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n,n.template.addElementCallback=function(r){n.addOnPropertyChangedCallback(r),n.rebuildPanels()},n.template.removeElementCallback=function(){n.rebuildPanels()},n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.createLocalizableString("panelAddText",n,!1,"addPanel"),n.createLocalizableString("panelRemoveText",n,!1,"removePanel"),n.createLocalizableString("panelPrevText",n,!1,"pagePrevText"),n.createLocalizableString("panelNextText",n,!1,"pageNextText"),n.createLocalizableString("noEntriesText",n,!1,"noEntriesText"),n.createLocalizableString("templateTabTitle",n,!0,"panelDynamicTabTextFormat"),n.createLocalizableString("tabTitlePlaceholder",n,!0,"tabTitlePlaceholder"),n.registerPropertyChangedHandlers(["panelsState"],function(){n.setPanelsState()}),n.registerPropertyChangedHandlers(["newPanelPosition","displayMode","showProgressBar"],function(){n.updateFooterActions()}),n.registerPropertyChangedHandlers(["allowAddPanel"],function(){n.updateNoEntriesTextDefaultLoc()}),n.registerPropertyChangedHandlers(["minPanelCount"],function(){n.onMinPanelCountChanged()}),n.registerPropertyChangedHandlers(["maxPanelCount"],function(){n.onMaxPanelCountChanged()}),n}return Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFirstQuestionToFocus=function(e){for(var n=0;n<this.visiblePanelsCore.length;n++){var r=this.visiblePanelsCore[n].getFirstQuestionToFocus(e);if(r)return r}return this.showAddPanelButton&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.showAddPanelButton?this.addButtonId:i.prototype.getFirstInputElementId.call(this)},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,n=0;n<e.length;n++)this.addOnPropertyChangedCallback(e[n])},t.prototype.addOnPropertyChangedCallback=function(e){var n=this;e.isQuestion&&e.setParentQuestion(this),e.onPropertyChanged.add(function(r,o){n.onTemplateElementPropertyChanged(r,o)}),e.isPanel&&(e.addElementCallback=function(r){n.addOnPropertyChangedCallback(r)})},t.prototype.onTemplateElementPropertyChanged=function(e,n){if(!(this.isLoadingFromJson||this.useTemplatePanel||this.panelsCore.length==0)){var r=j.findProperty(e.getType(),n.name);if(r)for(var o=this.panelsCore,s=0;s<o.length;s++){var u=o[s].getQuestionByName(e.name);u&&u[n.name]!==n.newValue&&(u[n.name]=n.newValue)}}},Object.defineProperty(t.prototype,"useTemplatePanel",{get:function(){return this.isDesignMode&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"paneldynamic"},t.prototype.clearOnDeletingContainer=function(){this.panelsCore.forEach(function(e){e.clearOnDeletingContainer()})},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.template},Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTabTitle",{get:function(){return this.locTemplateTabTitle.text},set:function(e){this.locTemplateTabTitle.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTabTitle",{get:function(){return this.getLocalizableString("templateTabTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabTitlePlaceholder",{get:function(){return this.locTabTitlePlaceholder.text},set:function(e){this.locTabTitlePlaceholder.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTabTitlePlaceholder",{get:function(){return this.getLocalizableString("tabTitlePlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateVisibleIf",{get:function(){return this.getPropertyValue("templateVisibleIf")},set:function(e){this.setPropertyValue("templateVisibleIf",e),this.template.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],n=0;n<this.panelsCore.length;n++)e.push(this.panelsCore[n].data);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.buildPanelsFirstTime(this.canBuildPanels),this.panelsCore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanels",{get:function(){return this.buildPanelsFirstTime(this.canBuildPanels),this.visiblePanelsCore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsCore",{get:function(){return this.getPropertyValue("panels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelsCore",{get:function(){return this.getPropertyValue("visiblePanels")},enumerable:!1,configurable:!0}),t.prototype.onPanelAdded=function(e){if(this.onPanelRemovedCore(e),!!e.visible){for(var n=0,r=this.panelsCore,o=0;o<r.length&&r[o]!==e;o++)r[o].visible&&n++;this.visiblePanelsCore.splice(n,0,e),this.addTabFromToolbar(e,n),this.currentPanel||(this.currentPanel=e),this.updateRenderedPanels()}},t.prototype.onPanelRemoved=function(e){var n=this.onPanelRemovedCore(e);if(this.currentPanel===e){var r=this.visiblePanelsCore;n>=r.length&&(n=r.length-1),this.currentPanel=n>=0?r[n]:null}this.updateRenderedPanels()},t.prototype.onPanelRemovedCore=function(e){var n=this.visiblePanelsCore,r=n.indexOf(e);return r>-1&&(n.splice(r,1),this.removeTabFromToolbar(e)),r},Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.useTemplatePanel?0:this.visiblePanelsCore.indexOf(this.currentPanel)},set:function(e){e<0||this.visiblePanelCount<1||(e>=this.visiblePanelCount&&(e=this.visiblePanelCount-1),this.currentPanel=this.visiblePanelsCore[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){if(this.isDesignMode)return this.template;if(this.isRenderModeList||this.useTemplatePanel)return null;var e=this.getPropertyValue("currentPanel",null);return!e&&this.visiblePanelCount>0&&(e=this.visiblePanelsCore[0],this.currentPanel=e),e},set:function(e){if(!(this.isRenderModeList||this.useTemplatePanel)){var n=this.getPropertyValue("currentPanel"),r=e?this.visiblePanelsCore.indexOf(e):-1;if(!(e&&r<0||e===n)&&(n&&n.onHidingContent(),this.setPropertyValue("currentPanel",e),this.updateRenderedPanels(),this.updateFooterActions(),this.updateTabToolbarItemsPressedState(),this.fireCallback(this.currentIndexChangedCallback),r>-1&&this.survey)){var o={panel:e,visiblePanelIndex:r};this.survey.dynamicPanelCurrentIndexChanged(this,o)}}},enumerable:!1,configurable:!0}),t.prototype.updateRenderedPanels=function(){this.isRenderModeList?this.renderedPanels=[].concat(this.visiblePanels):this.currentPanel?this.renderedPanels=[this.currentPanel]:this.renderedPanels=[]},Object.defineProperty(t.prototype,"renderedPanels",{get:function(){return this._renderedPanels},set:function(e){this.renderedPanels.length==0||e.length==0?(this.blockAnimations(),this.panelsAnimation.sync(e),this.releaseAnimations()):(this.isPanelsAnimationRunning=!0,this.panelsAnimation.sync(e))},enumerable:!1,configurable:!0}),t.prototype.getPanelsAnimationOptions=function(){var e=this,n=function(){if(e.isRenderModeList)return"";var r=new _,o=!1,s=e.renderedPanels.filter(function(d){return d!==e.currentPanel})[0],u=e.visiblePanels.indexOf(s);return u<0&&(o=!0,u=e.removedPanelIndex),r.append("sv-pd-animation-adding",!!e.focusNewPanelCallback).append("sv-pd-animation-removing",o).append("sv-pd-animation-left",u<=e.currentIndex).append("sv-pd-animation-right",u>e.currentIndex).toString()};return{getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(r){var o,s;if(r&&e.cssContent){var u=ke(e.cssContent);return(s=(o=e.getWrapperElement())===null||o===void 0?void 0:o.querySelector(":scope "+u+" #"+r.id))===null||s===void 0?void 0:s.parentElement}},getEnterOptions:function(){var r=new _().append(e.cssClasses.panelWrapperEnter).append(n()).toString();return{onBeforeRunAnimation:function(o){if(e.focusNewPanelCallback){var s=e.isRenderModeList?o:o.parentElement;_e.ScrollElementToViewCore(s,!1,!1,{behavior:"smooth"})}!e.isRenderModeList&&o.parentElement?un(o.parentElement,{heightTo:o.offsetHeight+"px"}):Vt(o)},onAfterRunAnimation:function(o){Xe(o),o.parentElement&&Xe(o.parentElement)},cssClass:r}},getLeaveOptions:function(){var r=new _().append(e.cssClasses.panelWrapperLeave).append(n()).toString();return{onBeforeRunAnimation:function(o){!e.isRenderModeList&&o.parentElement?un(o.parentElement,{heightFrom:o.offsetHeight+"px"}):Vt(o)},onAfterRunAnimation:function(o){Xe(o),o.parentElement&&Xe(o.parentElement)},cssClass:r}},isAnimationEnabled:function(){return e.animationAllowed&&!!e.getWrapperElement()}}},t.prototype.disablePanelsAnimations=function(){this.panelsCore.forEach(function(e){e.blockAnimations()})},t.prototype.enablePanelsAnimations=function(){this.panelsCore.forEach(function(e){e.releaseAnimations()})},t.prototype.updatePanelsAnimation=function(){var e=this;this._panelsAnimations=new(this.isRenderModeList?Nt:rr)(this.getPanelsAnimationOptions(),function(n,r){e._renderedPanels=n,r||(e.isPanelsAnimationRunning=!1,e.focusNewPanel())},function(){return e._renderedPanels})},Object.defineProperty(t.prototype,"panelsAnimation",{get:function(){return this._panelsAnimations||this.updatePanelsAnimation(),this._panelsAnimations},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){i.prototype.onHidingContent.call(this),this.currentPanel?this.currentPanel.onHidingContent():this.visiblePanelsCore.forEach(function(e){return e.onHidingContent()})},Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText")},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText")},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText")},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText")},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return this.displayMode=="carousel"&&(this.progressBarLocation==="top"||this.progressBarLocation==="topBottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return this.displayMode=="carousel"&&(this.progressBarLocation==="bottom"||this.progressBarLocation==="topBottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonVisible",{get:function(){return this.currentIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.isPrevButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonVisible",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.visiblePanelCount-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.isNextButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.visiblePanelCount>1},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return e===void 0&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:i.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(e){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=e):i.prototype.setValueCore.call(this,e)},t.prototype.setIsMobile=function(e){i.prototype.setIsMobile.call(this,e),(this.panelsCore||[]).forEach(function(n){return n.getQuestions(!0).forEach(function(r){r.setIsMobile(e)})})},t.prototype.themeChanged=function(e){i.prototype.themeChanged.call(this,e),(this.panelsCore||[]).forEach(function(n){return n.getQuestions(!0).forEach(function(r){r.themeChanged(e)})})},Object.defineProperty(t.prototype,"panelCount",{get:function(){return!this.canBuildPanels||this.wasNotRenderedInSurvey?this.getPropertyValue("panelCount"):this.panelsCore.length},set:function(e){if(!(e<0)){if(!this.canBuildPanels||this.wasNotRenderedInSurvey){this.setPropertyValue("panelCount",e);return}if(!(e==this.panelsCore.length||this.useTemplatePanel)){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var n=this.panelCount;n<e;n++){var r=this.createNewPanel();this.panelsCore.push(r),this.displayMode=="list"&&this.panelsState!="default"&&(this.panelsState==="expanded"?r.expand():r.title&&r.collapse())}e<this.panelCount&&this.panelsCore.splice(e,this.panelCount-e),this.disablePanelsAnimations(),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.enablePanelsAnimations()}}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelCount",{get:function(){return this.visiblePanels.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!1,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.useTemplatePanel?this.surveyImpl:new gp(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panelsCore.length;e++){var n=this.panelsCore[e];n!=this.template&&n.setSurveyImpl(n.data)}},t.prototype.setPanelsState=function(){if(!(this.useTemplatePanel||this.displayMode!="list"||!this.templateTitle))for(var e=0;e<this.panelsCore.length;e++){var n=this.panelsState;n==="firstExpanded"&&(n=e===0?"expanded":"collapsed"),this.panelsCore[e].state=n}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if((!e||!Array.isArray(e))&&(e=[]),e.length!=this.panelCount){for(var n=e.length;n<this.panelCount;n++){var r=this.panels[n].getValue(),o=h.isValueEmpty(r)?{}:r;e.push(o)}e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minPanelCount",e)},enumerable:!1,configurable:!0}),t.prototype.onMinPanelCountChanged=function(){var e=this.minPanelCount;e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e)},Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){e<=0||(e>I.panel.maxPanelCount&&(e=I.panel.maxPanelCount),this.setPropertyValue("maxPanelCount",e),this.updateFooterActions())},enumerable:!1,configurable:!0}),t.prototype.onMaxPanelCountChanged=function(){var e=this.maxPanelCount;e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e),this.updateFooterActions()},Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addButtonId",{get:function(){return this.id+"addPanel"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newPanelPosition",{get:function(){return this.getPropertyValue("newPanelPosition")},set:function(e){this.setPropertyValue("newPanelPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateErrorLocation",{get:function(){return this.getPropertyValue("templateErrorLocation")},set:function(e){this.setPropertyValue("templateErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible,!0)},enumerable:!1,configurable:!0}),t.prototype.notifySurveyOnChildrenVisibilityChanged=function(){return this.showQuestionNumbers==="onSurvey"},Object.defineProperty(t.prototype,"panelRemoveButtonLocation",{get:function(){return this.getPropertyValue("panelRemoveButtonLocation")},set:function(e){this.setPropertyValue("panelRemoveButtonLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.showProgressBar},set:function(e){this.showProgressBar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){var e=this.displayMode;if(e=="carousel"){var n=this.progressBarLocation;if(n=="top")return"progressTop";if(n=="bottom")return"progressBottom";if(n=="topBottom")return"progressTopBottom"}return e},set:function(e){(e||"").startsWith("progress")?(e=="progressTop"?this.progressBarLocation="top":e=="progressBottom"?this.progressBarLocation="bottom":e=="progressTopBottom"&&(this.progressBarLocation="topBottom"),this.displayMode="carousel"):this.displayMode=e},enumerable:!1,configurable:!0}),t.prototype.updatePanelView=function(){this.blockAnimations(),this.updateRenderedPanels(),this.releaseAnimations(),this.updatePanelsAnimation()},Object.defineProperty(t.prototype,"tabAlign",{get:function(){return this.getPropertyValue("tabAlign")},set:function(e){this.setPropertyValue("tabAlign",e),this.isRenderModeTab&&(this.additionalTitleToolbar.containerCss=this.getAdditionalTitleToolbarCss())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return this.displayMode==="list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeTab",{get:function(){return this.displayMode==="tab"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(this.isRenderModeTab&&this.visiblePanelCount>0)return!0;if(!this.hasTitle)return!1;var e=this.getTitleLocation();return e==="left"||e==="top"},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(e){if(!this.isVisible)return 0;for(var n=this.showQuestionNumbers==="onSurvey",r=n?e:0,o=this.isDesignMode?[this.template]:this.visiblePanelsCore,s=0;s<o.length;s++){var u=this.setPanelVisibleIndex(o[s],r,this.showQuestionNumbers!="off");n&&(r+=u)}return i.prototype.setVisibleIndex.call(this,n?-1:e),n?r-e:1},t.prototype.setPanelVisibleIndex=function(e,n,r){return r?e.setVisibleIndex(n):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return this.isDesignMode||this.isDefaultV2Theme&&!this.legacyNavigation&&!this.isRenderModeList&&this.currentIndex<this.visiblePanelCount-1&&this.newPanelPosition!=="next"?!1:this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return this.isDesignMode?!1:this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var n=[];if(this.useTemplatePanel)new st(this,this.template),n.push(this.template);else for(var r=0;r<this.panelCount;r++)this.createNewPanel(),n.push(this.createNewPanel());(e=this.panelsCore).splice.apply(e,dp([0,this.panelsCore.length],n)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.updateTabToolbar()}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel")},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return i.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultPanelValue)||!this.isValueEmpty(this.defaultValue)){i.prototype.setDefaultValue.call(this);return}if(!(!this.isEmpty()||this.panelCount==0)){for(var e=[],n=0;n<this.panelCount;n++)e.push(this.defaultPanelValue);this.value=e}},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var n=0;n<e.length;n++)if(!this.isRowEmpty(e[n]))return!1;return!0},t.prototype.getProgressInfo=function(){return _e.getProgressInfoByElements(this.visiblePanelsCore,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var n in e)if(e.hasOwnProperty(n))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel||!this.canLeaveCurrentPanel())return null;var e=this.addPanel();return this.displayMode==="list"&&this.panelsState!=="default"&&e.expand(),this.focusNewPanelCallback=function(){e.focusFirstQuestion()},this.isPanelsAnimationRunning||this.focusNewPanel(),e},t.prototype.focusNewPanel=function(){this.focusNewPanelCallback&&(this.focusNewPanelCallback(),this.focusNewPanelCallback=void 0)},t.prototype.addPanel=function(e){var n=this.currentIndex;return e===void 0&&(e=n<0?this.panelCount:n+1),(e<0||e>this.panelCount)&&(e=this.panelCount),this.updateValueOnAddingPanel(n<0?this.panelCount-1:n,e),this.isRenderModeList||(this.currentIndex=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panelsCore[e]},t.prototype.updateValueOnAddingPanel=function(e,n){this.panelCount++;var r=this.value;if(!(!Array.isArray(r)||r.length!==this.panelCount)){var o=!1,s=this.panelCount-1;if(n<s){o=!0;var u=r[s];r.splice(s,1),r.splice(n,0,u)}if(this.isValueEmpty(this.defaultPanelValue)||(o=!0,this.copyValue(r[n],this.defaultPanelValue)),this.defaultValueFromLastPanel&&r.length>1){var d=e>-1&&e<=s?e:s;o=!0,this.copyValue(r[n],r[d])}o&&(this.value=r)}},t.prototype.canLeaveCurrentPanel=function(){return!(this.displayMode!=="list"&&this.currentPanel&&this.currentPanel.hasErrors(!0,!0))},t.prototype.copyValue=function(e,n){for(var r in n)e[r]=n[r]},t.prototype.removePanelUI=function(e){var n=this,r=this.getVisualPanelIndex(e);if(!(r<0||r>=this.visiblePanelCount)&&this.canRemovePanel){var o=function(){var s;n.removePanel(r);var u=n.visiblePanelCount,d=r>=u?u-1:r,y=u===0?n.addButtonId:d>-1?n.getPanelRemoveButtonId(n.visiblePanels[d]):"";y&&_e.FocusElement(y,!0,(s=n.survey)===null||s===void 0?void 0:s.rootElement)};this.isRequireConfirmOnDelete(e)?Wt({message:this.confirmDeleteText,funcOnYes:function(){o()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog}):o()}},t.prototype.getPanelRemoveButtonId=function(e){return e.id+"_remove_button"},t.prototype.isRequireConfirmOnDelete=function(e){if(!this.confirmDelete)return!1;var n=this.getVisualPanelIndex(e);if(n<0||n>=this.visiblePanelCount)return!1;var r=this.visiblePanelsCore[n].getValue();return!this.isValueEmpty(r)&&(this.isValueEmpty(this.defaultPanelValue)||!this.isTwoValueEquals(r,this.defaultPanelValue))},t.prototype.goToNextPanel=function(){return this.currentIndex<0||!this.canLeaveCurrentPanel()?!1:(this.currentIndex++,!0)},t.prototype.goToPrevPanel=function(){this.currentIndex<0||this.currentIndex--},t.prototype.removePanel=function(s){var n=this.getVisualPanelIndex(s);if(!(n<0||n>=this.visiblePanelCount)){this.removedPanelIndex=n;var r=this.visiblePanelsCore[n],o=this.panelsCore.indexOf(r);if(!(o<0)&&!(this.survey&&!this.survey.dynamicPanelRemoving(this,o,r))){this.panelsCore.splice(o,1),this.updateBindings("panelCount",this.panelCount);var s=this.value;!s||!Array.isArray(s)||o>=s.length||(this.isValueChangingInternally=!0,s.splice(o,1),this.value=s,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,o,r),this.isValueChangingInternally=!1)}}},t.prototype.getVisualPanelIndex=function(e){if(h.isNumber(e))return e;for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r]===e||n[r].data===e)return r;return-1},t.prototype.getPanelVisibleIndexById=function(e){for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r].id===e)return r;return-1},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=this.panelsCore,n=0;n<e.length;n++)e[n].locStrsChanged();this.additionalTitleToolbar&&this.additionalTitleToolbar.locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panelsCore.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this);for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].clearErrors()},t.prototype.getQuestionFromArray=function(e,n){return n<0||n>=this.panelsCore.length?null:this.panelsCore[n].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var n=this.panelsCore[e];n.clearIncorrectValues();var r=this.value,o=r&&e<r.length?r[e]:null;if(o){var s=!1;for(var u in o)if(!this.getSharedQuestionFromArray(u,e)){var d=n.getQuestionByName(u);d||this.iscorrectValueWithPostPrefix(n,u,I.commentSuffix)||this.iscorrectValueWithPostPrefix(n,u,I.matrix.totalsSuffix)||(delete o[u],s=!0)}s&&(r[e]=o,this.value=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,n,r){return n.indexOf(r)!==n.length-r.length?!1:!!e.getQuestionByName(n.substring(0,n.indexOf(r)))},t.prototype.getSharedQuestionFromArray=function(e,n){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,n):null},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=n!=null&&n.isValidator?n.errorOwner:n,o=!!n&&(n===!0||this.template.questions.indexOf(r)>-1),s=new Array,u=this.template.questions,d=0;d<u.length;d++)u[d].addConditionObjectsByContext(s,n);for(var y=0;y<I.panel.maxPanelCountInCondition;y++)for(var V="["+y+"].",T=this.getValueName()+V,N=this.processedTitle+V,d=0;d<s.length;d++)s[d].context?e.push(s[d]):e.push({name:T+s[d].name,text:N+s[d].text,question:s[d].question});if(o){for(var T=n===!0?this.getValueName()+".":"",N=n===!0?this.processedTitle+".":"",d=0;d<s.length;d++)if(s[d].question!=n){var U={name:T+st.ItemVariableName+"."+s[d].name,text:N+st.ItemVariableName+"."+s[d].text,question:s[d].question};U.context=this,e.push(U)}}},t.prototype.collectNestedQuestionsCore=function(e,n){var r=n?this.visiblePanelsCore:this.panelsCore;Array.isArray(r)&&r.forEach(function(o){o.questions.forEach(function(s){return s.collectNestedQuestions(e,n)})})},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=n,o=n.indexOf(".");o>-1&&(r=n.substring(0,o),n=n.substring(o+1));var s=this.template.getQuestionByName(r);return s?s.getConditionJson(e,n):null},t.prototype.onReadOnlyChanged=function(){var e=this.isReadOnly;this.template.readOnly=e;for(var n=0;n<this.panelsCore.length;n++)this.panelsCore[n].readOnly=e;this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateNoEntriesTextDefaultLoc=function(){var e=this.getLocalizableString("noEntriesText");e&&(e.localizationName=this.isReadOnly||!this.allowAddPanel?"noEntriesReadonlyText":"noEntriesText")},t.prototype.onSurveyLoad=function(){this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.panelCount<this.minPanelCount&&(this.panelCount=this.minPanelCount),this.panelCount>this.maxPanelCount&&(this.panelCount=this.maxPanelCount),this.buildPanelsFirstTime(),i.prototype.onSurveyLoad.call(this)},t.prototype.buildPanelsFirstTime=function(e){if(e===void 0&&(e=!1),!this.hasPanelBuildFirstTime&&!(!e&&this.wasNotRenderedInSurvey)){if(this.blockAnimations(),this.hasPanelBuildFirstTime=!0,this.isBuildingPanelsFirstTime=!0,this.getPropertyValue("panelCount")>0&&(this.panelCount=this.getPropertyValue("panelCount")),this.useTemplatePanel&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),this.survey)for(var n=0;n<this.panelCount;n++)this.survey.dynamicPanelAdded(this);this.updateIsReady(),this.showAddPanelButton||this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),this.isBuildingPanelsFirstTime=!1,this.releaseAnimations()}},Object.defineProperty(t.prototype,"showAddPanelButton",{get:function(){return this.allowAddPanel&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasNotRenderedInSurvey",{get:function(){return!this.hasPanelBuildFirstTime&&!this.wasRendered&&!!this.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canBuildPanels",{get:function(){return!this.isLoadingFromJson&&!this.useTemplatePanel},enumerable:!1,configurable:!0}),t.prototype.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this),this.buildPanelsFirstTime(),this.template.onFirstRendering();for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].onFirstRendering()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].localeChanged()},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.runPanelsCondition(this.panelsCore,e,n)},t.prototype.runTriggers=function(e,n,r){i.prototype.runTriggers.call(this,e,n,r),this.visiblePanelsCore.forEach(function(o){o.questions.forEach(function(s){return s.runTriggers(e,n,r)})})},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,n,r){var o={};n&&n instanceof Object&&(o=JSON.parse(JSON.stringify(n))),this.parentQuestion&&this.parent&&(o[st.ParentItemVariableName]=this.parent.getValue()),this.isValueChangingInternally=!0;for(var s=0;s<e.length;s++){var u=e[s],d=this.getPanelItemData(u.data),y=h.createCopy(o),V=st.ItemVariableName;y[V]=d,y[st.IndexVariableName.toLowerCase()]=s;var T=h.createCopy(r);T[V]=u,u.runCondition(y,T)}this.isValueChangingInternally=!1},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n);for(var r=0;r<this.panelsCore.length;r++)this.panelsCore[r].onAnyValueChanged(e,n),this.panelsCore[r].onAnyValueChanged(st.ItemVariableName,"")},t.prototype.hasKeysDuplicated=function(e,n){n===void 0&&(n=null);for(var r=[],o,s=0;s<this.panelsCore.length;s++)o=this.isValueDuplicated(this.panelsCore[s],r,n,e)||o;return o},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion,n=e.parent;n;)n.updateContainsErrors(),n=n.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=null),this.isValueChangingInternally||this.isBuildingPanelsFirstTime)return!1;var r=!1;if(this.changingValueQuestion){var r=this.changingValueQuestion.hasErrors(e,n);r=this.hasKeysDuplicated(e,n)||r,this.updatePanelsContainsErrors()}else r=this.hasErrorInPanels(e,n);return i.prototype.hasErrors.call(this,e,n)||r},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;for(var n=this.panelsCore,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!i.prototype.getIsAnswered.call(this))return!1;for(var e=this.visiblePanelsCore,n=0;n<e.length;n++){var r=[];e[n].addQuestionsToList(r,!0);for(var o=0;o<r.length;o++)if(!r[o].isAnswered)return!1}return!0},t.prototype.clearValueOnHidding=function(e){if(!e){if(this.survey&&this.survey.getQuestionClearIfInvisible("onHidden")==="none")return;this.clearValueInPanelsIfInvisible("onHiddenContainer")}i.prototype.clearValueOnHidding.call(this,e)},t.prototype.clearValueIfInvisible=function(e){e===void 0&&(e="onHidden");var n=e==="onHidden"?"onHiddenContainer":e;this.clearValueInPanelsIfInvisible(n),i.prototype.clearValueIfInvisible.call(this,e)},t.prototype.clearValueInPanelsIfInvisible=function(e){for(var n=0;n<this.panelsCore.length;n++){var r=this.panelsCore[n],o=r.questions;this.isSetPanelItemData={};for(var s=0;s<o.length;s++){var u=o[s];u.visible&&!r.isVisible||(u.clearValueIfInvisible(e),this.isSetPanelItemData[u.getValueName()]=this.maxCheckCount+1)}}this.isSetPanelItemData={}},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;for(var e=0;e<this.panelsCore.length;e++)for(var n=this.panelsCore[e].questions,r=0;r<n.length;r++)if(n[r].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var e=i.prototype.getAllErrors.call(this),n=this.visiblePanelsCore,r=0;r<n.length;r++)for(var o=n[r].questions,s=0;s<o.length;s++){var u=o[s].getAllErrors();u&&u.length>0&&(e=e.concat(u))}return e},t.prototype.getDisplayValueCore=function(e,n){var r=this.getUnbindValue(n);if(!r||!Array.isArray(r))return r;for(var o=0;o<this.panelsCore.length&&o<r.length;o++){var s=r[o];s&&(r[o]=this.getPanelDisplayValue(o,s,e))}return r},t.prototype.getPanelDisplayValue=function(e,n,r){if(!n)return n;for(var o=this.panelsCore[e],s=Object.keys(n),u=0;u<s.length;u++){var d=s[u],y=o.getQuestionByValueName(d);if(y||(y=this.getSharedQuestionFromArray(d,e)),y){var V=y.getDisplayValue(r,n[d]);n[d]=V,r&&y.title&&y.title!==d&&(n[y.title]=V,delete n[d])}}return n},t.prototype.hasErrorInPanels=function(e,n){for(var r=!1,o=this.visiblePanels,s=[],u=0;u<o.length;u++)this.setOnCompleteAsyncInPanel(o[u]);for(var d=!!n&&n.focusOnFirstError,y=0;y<o.length;y++){var V=o[y].hasErrors(e,d,n);V=this.isValueDuplicated(o[y],s,n,e)||V,!this.isRenderModeList&&V&&!r&&d&&(this.currentIndex=y),r=V||r}return r},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var n=this,r=e.questions,o=0;o<r.length;o++)r[o].onCompletedAsyncValidators=function(s){n.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,n,r,o){if(!this.keyName)return!1;var s=e.getQuestionByValueName(this.keyName);if(!s||s.isEmpty())return!1;var u=s.value;this.changingValueQuestion&&s!=this.changingValueQuestion&&s.hasErrors(o,r);for(var d=0;d<n.length;d++)if(u==n[d])return o&&s.addError(new oo(this.keyDuplicationError,this)),r&&!r.firstErrorQuestion&&(r.firstErrorQuestion=s),!0;return n.push(u),!1},t.prototype.getPanelActions=function(e){var n=this,r=e.footerActions;return this.panelRemoveButtonLocation!=="right"&&r.push(new xe({id:"remove-panel-"+e.id,component:"sv-paneldynamic-remove-btn",visible:new De(function(){return[n.canRemovePanel,e.state!=="collapsed",n.panelRemoveButtonLocation!=="right"].every(function(o){return o===!0})}),data:{question:this,panel:e}})),this.survey&&(r=this.survey.getUpdatedPanelFooterActions(e,r,this)),r},t.prototype.createNewPanel=function(){var e=this,n=this.createAndSetupNewPanelObject(),r=this.template.toJSON();new je().toObject(r,n),n.renderWidth="100%",n.updateCustomWidgets(),new st(this,n),!this.isDesignMode&&!this.isReadOnly&&!this.isValueEmpty(n.getValue())&&this.runPanelsCondition([n],this.getDataFilteredValues(),this.getDataFilteredProperties());for(var o=n.questions,s=0;s<o.length;s++)o[s].setParentQuestion(this);return this.wasRendered&&(n.onFirstRendering(),n.locStrsChanged()),n.onGetFooterActionsCallback=function(){return e.getPanelActions(n)},n.onGetFooterToolbarCssCallback=function(){return e.cssClasses.panelFooter},n.registerPropertyChangedHandlers(["visible"],function(){n.visible?e.onPanelAdded(n):e.onPanelRemoved(n),e.updateFooterActions()}),n},t.prototype.createAndSetupNewPanelObject=function(){var e=this,n=this.createNewPanelObject();return n.isInteractiveDesignElement=!1,n.setParentQuestion(this),n.onGetQuestionTitleLocation=function(){return e.getTemplateQuestionTitleLocation()},n},t.prototype.getTemplateQuestionTitleLocation=function(){return this.templateTitleLocation!="default"?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.getChildErrorLocation=function(e){return this.templateErrorLocation!=="default"?this.templateErrorLocation:i.prototype.getChildErrorLocation.call(this,e)},t.prototype.createNewPanelObject=function(){return j.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!(this.isValueChangingInternally||this.useTemplatePanel)){var e=this.value,n=e&&Array.isArray(e)?e.length:0;n==0&&this.getPropertyValue("panelCount")>0&&(n=this.getPropertyValue("panelCount")),this.settingPanelCountBasedOnValue=!0,this.panelCount=n,this.settingPanelCountBasedOnValue=!1}},t.prototype.setQuestionValue=function(e){if(!this.settingPanelCountBasedOnValue){i.prototype.setQuestionValue.call(this,e,!1),this.setPanelCountBasedOnValue();for(var n=0;n<this.panelsCore.length;n++)this.panelUpdateValueFromSurvey(this.panelsCore[n]);this.updateIsAnswered()}},t.prototype.onSurveyValueChanged=function(e){if(!(e===void 0&&this.isAllPanelsEmpty())){i.prototype.onSurveyValueChanged.call(this,e);for(var n=0;n<this.panelsCore.length;n++)this.panelSurveyValueChanged(this.panelsCore[n]);e===void 0&&this.setValueBasedOnPanelCount(),this.updateIsReady()}},t.prototype.isAllPanelsEmpty=function(){for(var e=0;e<this.panelsCore.length;e++)if(!h.isValueEmpty(this.panelsCore[e].getValue()))return!1;return!0},t.prototype.panelUpdateValueFromSurvey=function(e){for(var n=e.questions,r=this.getPanelItemData(e.data),o=0;o<n.length;o++){var s=n[o];s.updateValueFromSurvey(r[s.getValueName()]),s.updateCommentFromSurvey(r[s.getValueName()+I.commentSuffix]),s.initDataUI()}},t.prototype.panelSurveyValueChanged=function(e){for(var n=e.questions,r=this.getPanelItemData(e.data),o=0;o<n.length;o++){var s=n[o];s.onSurveyValueChanged(r[s.getValueName()])}},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),!this.isLoadingFromJson&&this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.getItemIndex=function(e){var n=this.items.indexOf(e);return n>-1?n:this.items.length},t.prototype.getVisibleItemIndex=function(e){for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r].data===e)return r;return n.length},t.prototype.getPanelItemData=function(e){var n=this.items,r=n.indexOf(e),o=this.value;return r<0&&Array.isArray(o)&&o.length>n.length&&(r=n.length),r<0?{}:!o||!Array.isArray(o)||o.length<=r?{}:o[r]},t.prototype.setPanelItemData=function(e,n,r){if(!(this.isSetPanelItemData[n]>this.maxCheckCount)){this.isSetPanelItemData[n]||(this.isSetPanelItemData[n]=0),this.isSetPanelItemData[n]++;var o=this.items,s=o.indexOf(e);s<0&&(s=o.length);var u=this.getUnbindValue(this.value);if((!u||!Array.isArray(u))&&(u=[]),u.length<=s)for(var d=u.length;d<=s;d++)u.push({});if(u[s]||(u[s]={}),this.isValueEmpty(r)?delete u[s][n]:u[s][n]=r,s>=0&&s<this.panelsCore.length&&(this.changingValueQuestion=this.panelsCore[s].getQuestionByValueName(n)),this.value=u,this.changingValueQuestion=null,this.survey){var y={question:this,panel:e.panel,name:n,itemIndex:s,itemValue:u[s],value:r};this.survey.dynamicPanelItemValueChanged(this,y)}this.isSetPanelItemData[n]--,this.isSetPanelItemData[n]-1&&delete this.isSetPanelItemData[n]}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(e){e===void 0&&(e={includeEmpty:!0});var n=i.prototype.getPlainData.call(this,e);if(n){n.isNode=!0;var r=Array.isArray(n.data)?[].concat(n.data):[];n.data=this.panels.map(function(o,s){var u={name:o.name||s,title:o.title||"Panel",value:o.getValue(),displayValue:o.getValue(),getString:function(d){return typeof d=="object"?JSON.stringify(d):d},isNode:!0,data:o.questions.map(function(d){return d.getPlainData(e)}).filter(function(d){return!!d})};return(e.calculations||[]).forEach(function(d){u[d.propertyName]=o[d.propertyName]}),u}),n.data=n.data.concat(r)}return n},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e);for(var n=0;n<this.panelsCore.length;n++){var r=this.panelsCore[n];r.updateElementCss(e)}},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.visiblePanelCount;return this.getLocalizationFormatString("panelDynamicProgressText",this.currentIndex+1,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return(this.currentIndex+1)/this.visiblePanelCount*100+"%"},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return new _().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.empty,this.getShowNoEntriesPlaceholder()).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){var e=this.isRenderModeTab&&!!this.visiblePanelCount;return new _().append(this.cssClasses.header).append(this.cssClasses.headerTop,this.hasTitleOnTop||e).append(this.cssClasses.headerTab,e).toString()},enumerable:!1,configurable:!0}),t.prototype.getPanelWrapperCss=function(e){return new _().append(this.cssClasses.panelWrapper,!e||e.visible).append(this.cssClasses.panelWrapperList,this.isRenderModeList).append(this.cssClasses.panelWrapperInRow,this.panelRemoveButtonLocation==="right").toString()},t.prototype.getPanelRemoveButtonCss=function(){return new _().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,this.panelRemoveButtonLocation==="right").toString()},t.prototype.getAddButtonCss=function(){return new _().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode",this.displayMode==="list").toString()},t.prototype.getPrevButtonCss=function(){return new _().append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()},t.prototype.getNextButtonCss=function(){return new _().append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNextDisabled,!this.isNextButtonVisible).toString()},Object.defineProperty(t.prototype,"noEntriesText",{get:function(){return this.getLocalizableStringText("noEntriesText")},set:function(e){this.setLocalizableStringText("noEntriesText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoEntriesText",{get:function(){return this.getLocalizableString("noEntriesText")},enumerable:!1,configurable:!0}),t.prototype.getShowNoEntriesPlaceholder=function(){return!!this.cssClasses.noEntriesPlaceholder&&!this.isDesignMode&&this.visiblePanelCount===0},t.prototype.needResponsiveWidth=function(){var e=this.getPanel();return!!(e&&e.needResponsiveWidth())},Object.defineProperty(t.prototype,"hasAdditionalTitleToolbar",{get:function(){return this.isRenderModeTab&&this.visiblePanels.length>0},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return this.isRenderModeTab?(this.additionalTitleToolbarValue||(this.additionalTitleToolbarValue=new Tn,this.additionalTitleToolbarValue.dotsItem.popupModel.showPointer=!1,this.additionalTitleToolbarValue.dotsItem.popupModel.verticalPosition="bottom",this.additionalTitleToolbarValue.dotsItem.popupModel.horizontalPosition="center",this.updateElementCss(!1)),this.additionalTitleToolbarValue):null},Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.initFooterToolbar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.updateFooterActions=function(){this.updateFooterActionsCallback&&this.updateFooterActionsCallback()},t.prototype.initFooterToolbar=function(){var e=this;this.footerToolbarValue=this.createActionContainer();var n=[],r=new xe({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),o=new xe({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),s=new xe({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),u=new xe({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),d=new xe({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),y=new xe({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});n.push(r,o,s,u,d,y),this.updateFooterActionsCallback=function(){var V=e.legacyNavigation,T=e.isRenderModeList,N=e.isMobile,U=!V&&!T;r.visible=U&&e.currentIndex>0,o.visible=U&&e.currentIndex<e.visiblePanelCount-1,o.needSpace=N&&o.visible&&r.visible,s.visible=e.canAddPanel,s.needSpace=e.isMobile&&!o.visible&&r.visible,d.visible=!e.isRenderModeList&&!N,d.needSpace=!V&&!e.isMobile;var W=V&&!T;u.visible=W,y.visible=W,u.needSpace=W},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(n)},t.prototype.createTabByPanel=function(e,n){var r=this;if(this.isRenderModeTab){var o=new gt(e,!0);o.onGetTextCallback=function(d){if(d||(d=r.locTabTitlePlaceholder.renderedHtml),!r.survey)return d;var y={title:d,panel:e,visiblePanelIndex:n};return r.survey.dynamicPanelGetTabTitle(r,y),y.title},o.sharedData=this.locTemplateTabTitle;var s=this.getPanelVisibleIndexById(e.id)===this.currentIndex,u=new xe({id:e.id,pressed:s,locTitle:o,disableHide:s,action:function(){r.currentIndex=r.getPanelVisibleIndexById(u.id)}});return u}},t.prototype.getAdditionalTitleToolbarCss=function(e){var n=e??this.cssClasses;return new _().append(n.tabsRoot).append(n.tabsLeft,this.tabAlign==="left").append(n.tabsRight,this.tabAlign==="right").append(n.tabsCenter,this.tabAlign==="center").toString()},t.prototype.updateTabToolbarItemsPressedState=function(){if(this.isRenderModeTab&&!(this.currentIndex<0||this.currentIndex>=this.visiblePanelCount)){var e=this.visiblePanelsCore[this.currentIndex];this.additionalTitleToolbar.renderedActions.forEach(function(n){var r=n.id===e.id;n.pressed=r,n.disableHide=r,n.mode==="popup"&&n.disableHide&&n.raiseUpdate()})}},t.prototype.updateTabToolbar=function(){var e=this;if(this.isRenderModeTab){for(var n=[],r=this.visiblePanelsCore,o=function(d){s.visiblePanelsCore.forEach(function(y){return n.push(e.createTabByPanel(r[d],d))})},s=this,u=0;u<r.length;u++)o(u);this.additionalTitleToolbar.setItems(n)}},t.prototype.addTabFromToolbar=function(e,n){if(this.isRenderModeTab){var r=this.createTabByPanel(e,n);this.additionalTitleToolbar.actions.splice(n,0,r),this.updateTabToolbarItemsPressedState()}},t.prototype.removeTabFromToolbar=function(e){if(this.isRenderModeTab){var n=this.additionalTitleToolbar.getActionById(e.id);n&&(this.additionalTitleToolbar.actions.splice(this.additionalTitleToolbar.actions.indexOf(n),1),this.updateTabToolbarItemsPressedState())}},Object.defineProperty(t.prototype,"showLegacyNavigation",{get:function(){return!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigation",{get:function(){return this.isReadOnly&&this.visiblePanelCount==1?!1:this.visiblePanelCount>0&&!this.showLegacyNavigation&&!!this.cssClasses.footer},enumerable:!1,configurable:!0}),t.prototype.showSeparator=function(e){return this.isRenderModeList&&e<this.renderedPanels.length-1},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e),r=this.additionalTitleToolbar;return r&&(r.containerCss=this.getAdditionalTitleToolbarCss(n),r.cssClasses=n.tabs,r.dotsItem.cssClasses=n.tabs,r.dotsItem.popupModel.contentComponentData.model.cssClasses=e.list),n},t.prototype.onMobileChanged=function(){i.prototype.onMobileChanged.call(this),this.updateFooterActions()},t.maxCheckCount=3,di([me({})],t.prototype,"_renderedPanels",void 0),di([x({onSet:function(e,n){n.fireCallback(n.renderModeChangedCallback),n.updatePanelView()}})],t.prototype,"displayMode",void 0),di([x({onSet:function(e,n){n.fireCallback(n.currentIndexChangedCallback)}})],t.prototype,"showProgressBar",void 0),di([x({onSet:function(e,n){}})],t.prototype,"progressBarLocation",void 0),di([x({defaultValue:!1,onSet:function(e,n){n.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(Be);j.addClass("paneldynamic",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"templateElements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateTabTitle",serializationProperty:"locTemplateTabTitle",visibleIf:function(i){return i.displayMode==="tab"}},{name:"tabTitlePlaceholder",serializationProperty:"locTabTitlePlaceholder",visibleIf:function(i){return i.displayMode==="tab"}},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"noEntriesText:text",serializationProperty:"locNoEntriesText"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"newPanelPosition",choices:["next","last"],default:"last",category:"layout"},{name:"panelCount:number",isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",defaultFunc:function(){return I.panel.maxPanelCount}},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"],visibleIf:function(i){return i.displayMode==="list"}},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText",visibleIf:function(i){return i.confirmDelete}},{name:"panelAddText",serializationProperty:"locPanelAddText",visibleIf:function(i){return i.allowAddPanel}},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText",visibleIf:function(i){return i.allowRemovePanel}},{name:"panelPrevText",serializationProperty:"locPanelPrevText",visibleIf:function(i){return i.displayMode!=="list"}},{name:"panelNextText",serializationProperty:"locPanelNextText",visibleIf:function(i){return i.displayMode!=="list"}},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"showRangeInProgress:boolean",default:!0,visible:!1},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom","tab"],visible:!1},{name:"displayMode",default:"list",choices:["list","carousel","tab"]},{name:"showProgressBar:boolean",default:!0,visibleIf:function(i){return i.displayMode==="carousel"}},{name:"progressBarLocation",default:"top",choices:["top","bottom","topBottom"],visibleIf:function(i){return i.showProgressBar}},{name:"tabAlign",default:"center",choices:["left","center","right"],visibleIf:function(i){return i.displayMode==="tab"}},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]},{name:"templateErrorLocation",default:"default",choices:["default","top","bottom"]},{name:"templateVisibleIf:expression",category:"logic"},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"],visibleIf:function(i){return i.allowRemovePanel}}],function(){return new na("")},"question"),Se.Instance.registerQuestion("paneldynamic",function(i){return new na(i)});var yp=function(){function i(){}return i.getProgressTextInBarCss=function(t){return new _().append(t.progressText).append(t.progressTextInBar).toString()},i.getProgressTextUnderBarCss=function(t){return new _().append(t.progressText).append(t.progressTextUnderBar).toString()},i}(),bn=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ol=function(i){bn(t,i);function t(){var e=i.call(this)||this;return e.idValue=t.idCounter++,e.registerPropertyChangedHandlers(["operator","value","name"],function(){e.oldPropertiesChanged()}),e.registerPropertyChangedHandlers(["expression"],function(){e.onExpressionChanged()}),e}return Object.defineProperty(t,"operators",{get:function(){return t.operatorsValue!=null||(t.operatorsValue={empty:function(e,n){return!e},notempty:function(e,n){return!!e},equal:function(e,n){return e==n},notequal:function(e,n){return e!=n},contains:function(e,n){return e&&e.indexOf&&e.indexOf(n)>-1},notcontains:function(e,n){return!e||!e.indexOf||e.indexOf(n)==-1},greater:function(e,n){return e>n},less:function(e,n){return e<n},greaterorequal:function(e,n){return e>=n},lessorequal:function(e,n){return e<=n}}),t.operatorsValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),n=this.expression?this.expression:this.buildExpression();return n&&(e+=", "+n),e},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isGhost===!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!0},t.prototype.canBeExecutedOnComplete=function(){return!1},t.prototype.checkExpression=function(e,n,r,o,s){s===void 0&&(s=null),this.isExecutingOnNextPage=e,this.canBeExecuted(e)&&(n&&!this.canBeExecutedOnComplete()||this.isCheckRequired(r)&&(this.conditionRunner?this.perform(o,s):this.canSuccessOnEmptyExpression()&&this.triggerResult(!0,o,s)))},t.prototype.canSuccessOnEmptyExpression=function(){return!1},t.prototype.check=function(e){var n=t.operators[this.operator](e,this.value);n?this.onSuccess({},null):this.onFailure()},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.perform=function(e,n){var r=this;this.conditionRunner.onRunComplete=function(o){r.triggerResult(o,e,n)},this.conditionRunner.run(e,n)},t.prototype.triggerResult=function(e,n,r){e?(this.onSuccess(n,r),this.onSuccessExecuted()):this.onFailure()},t.prototype.onSuccess=function(e,n){},t.prototype.onFailure=function(){},t.prototype.onSuccessExecuted=function(){},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.conditionRunner=null},t.prototype.buildExpression=function(){return!this.name||this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+ze.toOperandString(this.value)},t.prototype.isCheckRequired=function(e){return e?(this.createConditionRunner(),this.conditionRunner&&this.conditionRunner.hasFunction()===!0?!0:new Re().isAnyKeyChanged(e,this.getUsedVariables())):!1},t.prototype.getUsedVariables=function(){if(!this.conditionRunner)return[];var e=this.conditionRunner.getVariables();if(Array.isArray(e))for(var n="-unwrapped",r=e.length-1;r>=0;r--){var o=e[r];o.endsWith(n)&&e.push(o.substring(0,o.length-n.length))}return e},t.prototype.createConditionRunner=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new Ue(e))}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return this.operator!=="empty"&&this.operator!="notempty"},enumerable:!1,configurable:!0}),t.idCounter=1,t.operatorsValue=null,t}(fe),zn=function(i){bn(t,i);function t(){var e=i.call(this)||this;return e.ownerValue=null,e}return Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!1,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},t.prototype.getSurvey=function(e){return this.owner&&this.owner.getSurvey?this.owner.getSurvey():null},t.prototype.isRealExecution=function(){return!0},t.prototype.onSuccessExecuted=function(){this.owner&&this.isRealExecution()&&this.owner.triggerExecuted(this)},t}(Ol),El=function(i){bn(t,i);function t(){var e=i.call(this)||this;return e.pages=[],e.questions=[],e}return t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,n){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var n=this.owner.getObjects(this.pages,this.questions),r=0;r<n.length;r++)e(n[r])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(zn),Tl=function(i){bn(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isRealExecution=function(){return!I.triggers.executeCompleteOnValueChanged===this.isExecutingOnNextPage},t.prototype.onSuccess=function(e,n){this.owner&&(this.isRealExecution()?this.owner.setCompleted(this):this.owner.canBeCompleted(this,!0))},t.prototype.onFailure=function(){this.owner.canBeCompleted(this,!1)},t}(zn),Rl=function(i){bn(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName},t.prototype.onPropertyValueChanged=function(e,n,r){if(i.prototype.onPropertyValueChanged.call(this,e,n,r),e==="setToName"){var o=this.getSurvey();o&&!o.isLoadingFromJson&&o.isDesignMode&&(this.setValue=void 0)}},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable")},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,n){!this.setToName||!this.owner||this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(zn),Il=function(i){bn(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return this.canBeExecuted(!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return e===!I.triggers.executeSkipOnValueChanged},t.prototype.onSuccess=function(e,n){!this.gotoName||!this.owner||this.owner.focusQuestion(this.gotoName)},t}(zn),Dl=function(i){bn(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!e},t.prototype.onSuccess=function(e,n){var r=this;if(!(!this.owner||!this.runExpression)){var o=new jt(this.runExpression);o.canRun&&(o.onRunComplete=function(s){r.onCompleteRunExpression(s)},o.run(e,n))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&e!==void 0&&this.owner.setTriggerValue(this.setToName,h.convertValToQuestionVal(e),!1)},t}(zn),Al=function(i){bn(t,i);function t(){return i.call(this)||this}return t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName&&!!this.fromName},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyDisplayValue",{get:function(){return this.getPropertyValue("copyDisplayValue")},set:function(e){this.setPropertyValue("copyDisplayValue",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,n){!this.setToName||!this.owner||this.owner.copyTriggerValue(this.setToName,this.fromName,this.copyDisplayValue)},t.prototype.canSuccessOnEmptyExpression=function(){return!0},t.prototype.getUsedVariables=function(){var e=i.prototype.getUsedVariables.call(this);return e.length===0&&this.fromName&&e.push(this.fromName),e},t}(zn);j.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),j.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),j.addClass("visibletrigger",["pages:pages","questions:questions"],function(){return new El},"surveytrigger"),j.addClass("completetrigger",[],function(){return new Tl},"surveytrigger"),j.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(i){return!!i&&!!i.setToName}},{name:"isVariable:boolean",visible:!1}],function(){return new Rl},"surveytrigger"),j.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"},{name:"copyDisplayValue:boolean",visible:!1}],function(){return new Al},"surveytrigger"),j.addClass("skiptrigger",[{name:"!gotoName:question"}],function(){return new Il},"surveytrigger"),j.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],function(){return new Dl},"surveytrigger");var Ll=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mp=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ml=function(i){Ll(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this)||this;return r.closeOnCompleteTimeout=0,n?r.surveyValue=n:r.surveyValue=r.createSurvey(e),r.surveyValue.fitToContainer=!0,r.windowElement=R.createElement("div"),r.survey.onComplete.add(function(o,s){r.onSurveyComplete()}),r.registerPropertyChangedHandlers(["isShowing"],function(){r.showingChangedCallback&&r.showingChangedCallback()}),r.registerPropertyChangedHandlers(["isExpanded"],function(){r.onExpandedChanged()}),r.width=new De(function(){return r.survey.width}),r.width=r.survey.width,r.updateCss(),r.onCreating(),r}return t.prototype.onCreating=function(){},t.prototype.getType=function(){return"popupsurvey"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.setPropertyValue("isShowing",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFullScreen",{get:function(){return this.getPropertyValue("isFullScreen",!1)},set:function(e){!this.isExpanded&&e&&(this.isExpanded=!0),this.setPropertyValue("isFullScreen",e),this.setCssRoot()},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},t.prototype.toggleFullScreen=function(){this.isFullScreen=!this.isFullScreen},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(e){this.isFullScreen&&!e&&(this.isFullScreen=!1),this.setPropertyValue("isExpanded",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return!this.isExpanded},enumerable:!1,configurable:!0}),t.prototype.onExpandedChanged=function(){this.expandedChangedCallback&&this.expandedChangedCallback(),this.updateCssButton()},Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle.isEmpty?null:this.survey.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.survey.locTitle.isEmpty?null:this.survey.locDescription},enumerable:!1,configurable:!0}),t.prototype.expand=function(){this.isExpanded=!0},t.prototype.collapse=function(){this.isExpanded=!1},t.prototype.changeExpandCollapse=function(){this.isExpanded=!this.isExpanded},Object.defineProperty(t.prototype,"allowClose",{get:function(){return this.getPropertyValue("allowClose",!1)},set:function(e){this.setPropertyValue("allowClose",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowFullScreen",{get:function(){return this.getPropertyValue("allowFullScreen",!1)},set:function(e){this.setPropertyValue("allowFullScreen",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssButton",{get:function(){return this.getPropertyValue("cssButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){var e=this.getPropertyValue("cssRoot","");return this.isCollapsed&&(e+=" "+this.getPropertyValue("cssRootCollapsedMod","")),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRootCollapsedMod",{get:function(){return this.getPropertyValue("cssRootCollapsedMod")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRootContent",{get:function(){return this.getPropertyValue("cssRootContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssBody",{get:function(){return this.getPropertyValue("cssBody","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderRoot",{get:function(){return this.getPropertyValue("cssHeaderRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderTitleCollapsed",{get:function(){return this.getPropertyValue("cssHeaderTitleCollapsed","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderButtonsContainer",{get:function(){return this.getPropertyValue("cssHeaderButtonsContainer","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderCollapseButton",{get:function(){return this.getPropertyValue("cssHeaderCollapseButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderCloseButton",{get:function(){return this.getPropertyValue("cssHeaderCloseButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderFullScreenButton",{get:function(){return this.getPropertyValue("cssHeaderFullScreenButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width","60%");return e&&!isNaN(e)&&(e=e+"px"),e},enumerable:!1,configurable:!0}),t.prototype.updateCss=function(){if(!(!this.css||!this.css.window)){var e=this.css.window;this.setCssRoot(),this.setPropertyValue("cssRootCollapsedMod",e.rootCollapsedMod),this.setPropertyValue("cssRootContent",e.rootContent),this.setPropertyValue("cssBody",e.body);var n=e.header;n&&(this.setPropertyValue("cssHeaderRoot",n.root),this.setPropertyValue("cssHeaderTitleCollapsed",n.titleCollapsed),this.setPropertyValue("cssHeaderButtonsContainer",n.buttonsContainer),this.setPropertyValue("cssHeaderCollapseButton",n.collapseButton),this.setPropertyValue("cssHeaderCloseButton",n.closeButton),this.setPropertyValue("cssHeaderFullScreenButton",n.fullScreenButton),this.updateCssButton())}},t.prototype.setCssRoot=function(){var e=this.css.window;this.isFullScreen?this.setPropertyValue("cssRoot",e.root+" "+e.rootFullScreenMode):this.setPropertyValue("cssRoot",e.root)},t.prototype.updateCssButton=function(){var e=this.css.window?this.css.window.header:null;e&&this.setCssButton(this.isExpanded?e.buttonExpanded:e.buttonCollapsed)},t.prototype.setCssButton=function(e){e&&this.setPropertyValue("cssButton",e)},t.prototype.createSurvey=function(e){return new dn(e)},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(this.closeOnCompleteTimeout==0)this.hide();else{var e=this,n=null,r=function(){e.hide(),clearInterval(n)};n=setInterval(r,this.closeOnCompleteTimeout*1e3)}},t.prototype.onScroll=function(){this.survey.onScroll()},mp([x()],t.prototype,"width",void 0),t}(fe),vp=function(i){Ll(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t}(Ml),bp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ra=function(i){bp(t,i);function t(e){var n=i.call(this,e)||this;return n.onScrollOutsideCallback=function(r){n.preventScrollOuside(r,r.deltaY)},n}return t.prototype.getStyleClass=function(){return i.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},t.prototype.getShowFooter=function(){return!0},t.prototype.createFooterActionBar=function(){var e=this;i.prototype.createFooterActionBar.call(this),this.footerToolbar.containerCss="sv-footer-action-bar",this.footerToolbarValue.addAction({id:"apply",visibleIndex:20,title:this.applyButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--apply sd-btn sd-btn--action",action:function(){e.apply()}})},Object.defineProperty(t.prototype,"applyButtonText",{get:function(){return this.getLocalizationString("modalApplyButtonText")},enumerable:!1,configurable:!0}),t.prototype.apply=function(){this.model.onApply&&!this.model.onApply()||this.hidePopup()},t.prototype.clickOutside=function(){},t.prototype.onKeyDown=function(e){(e.key==="Escape"||e.keyCode===27)&&this.model.onCancel(),i.prototype.onKeyDown.call(this,e)},t.prototype.updateOnShowing=function(){this.container&&this.container.addEventListener("wheel",this.onScrollOutsideCallback,{passive:!1}),i.prototype.updateOnShowing.call(this)},t.prototype.updateOnHiding=function(){this.container&&this.container.removeEventListener("wheel",this.onScrollOutsideCallback),i.prototype.updateOnHiding.call(this)},t}(Ds),ia=function(){return ia=Object.assign||function(i){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},ia.apply(this,arguments)};function Cp(i,t){var e,n=ia({},i);n.verticalPosition="top",n.horizontalPosition="left",n.showPointer=!1,n.isModal=!0,n.displayMode=i.displayMode||"popup";var r=new On(i.componentName,i.data,n);r.isFocusedContent=(e=i.isFocusedContent)!==null&&e!==void 0?e:!0;var o=new ra(r);if(t&&t.appendChild){var s=R.createElement("div");t.appendChild(s),o.setComponentElement(s)}o.container||o.initializePopupContainer();var u=function(d,y){y.isVisible||s&&o.resetComponentElement(),o.onVisibilityChanged.remove(u)};return o.onVisibilityChanged.add(u),o}function wp(i){return i.isModal?new ra(i):new Ls(i)}var jl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),oa=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Nl=function(i){jl(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="buttongroupitemvalue");var o=i.call(this,e,n,r)||this;return o.typeName=r,o}return t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},oa([x()],t.prototype,"iconName",void 0),oa([x()],t.prototype,"iconSize",void 0),oa([x()],t.prototype,"showCaption",void 0),t}(re),ql=function(i){jl(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(li);j.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],function(){return new ql("")},"checkboxbase"),j.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],function(i){return new Nl(i)},"itemvalue");var Pp=function(){function i(t,e,n){this.question=t,this.item=e,this.index=n}return Object.defineProperty(i.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showCaption",{get:function(){return this.item.showCaption||this.item.showCaption===void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"labelClass",{get:function(){return new _().append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"css",{get:function(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}},enumerable:!1,configurable:!0}),i.prototype.onChange=function(){this.question.renderedValue=this.item.value},i}(),xp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Vp=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Do=function(i){xp(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getSurvey=function(e){return this.owner},t.prototype.getType=function(){return"masksettings"},t.prototype.setData=function(e){var n=this,r=j.getProperties(this.getType());r.forEach(function(o){var s=e[o.name];n[o.name]=s!==void 0?s:o.getDefaultValue(n)})},t.prototype.getData=function(){var e=this,n={},r=j.getProperties(this.getType());return r.forEach(function(o){var s=e[o.name];o.isDefaultValue(s)||(n[o.name]=s)}),n},t.prototype.processInput=function(e){return{value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1}},t.prototype.getUnmaskedValue=function(e){return e},t.prototype.getMaskedValue=function(e){return e},t.prototype.getTextAlignment=function(){return"auto"},t.prototype.getTypeForExpressions=function(){return"text"},Vp([x()],t.prototype,"saveMaskedValue",void 0),t}(fe);j.addClass("masksettings",[{name:"saveMaskedValue:boolean",visibleIf:function(i){return i?i.getType()!=="masksettings":!1}}],function(){return new Do});var Sp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Op=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function sa(i){for(var t=[],e=!1,n=Object.keys(I.maskSettings.patternDefinitions),r=0;r<i.length;r++){var o=i[r];o===I.maskSettings.patternEscapeChar?e=!0:e?(e=!1,t.push({type:"fixed",value:o})):t.push({type:n.indexOf(o)!==-1?"regex":"const",value:o})}return t}function Ep(i,t,e){for(var n=I.maskSettings.patternDefinitions[e.value];t<i.length;){if(i[t].match(n))return t;t++}return t}function Tp(i,t,e){for(var n=i??"",r="",o=0,s=typeof t=="string"?sa(t):t,u=0;u<s.length;u++)switch(s[u].type){case"regex":if(o<n.length&&(o=Ep(n,o,s[u])),o<n.length)r+=n[o];else if(e)r+=I.maskSettings.patternPlaceholderChar;else return r;o++;break;case"const":case"fixed":r+=s[u].value,s[u].value===n[o]&&o++;break}return r}function aa(i,t,e,n){n===void 0&&(n=!1);var r="";if(!i)return r;for(var o=typeof t=="string"?sa(t):t,s=0;s<o.length;s++)if(o[s].type==="fixed"&&!n&&(r+=o[s].value),o[s].type==="regex"){var u=I.maskSettings.patternDefinitions[o[s].value];if(i[s]&&i[s].match(u))r+=i[s];else if(e){r="";break}else break}return r}var la=function(i){Sp(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.literals=[],e}return t.prototype.updateLiterals=function(){this.literals=sa(this.pattern||"")},t.prototype.onPropertyValueChanged=function(e,n,r){e==="pattern"&&this.updateLiterals()},t.prototype.getType=function(){return"patternmask"},t.prototype.fromJSON=function(e,n){i.prototype.fromJSON.call(this,e,n),this.updateLiterals()},t.prototype._getMaskedValue=function(e,n){n===void 0&&(n=!1);var r=e??"";return Tp(r,this.literals,n)},t.prototype._getUnmaskedValue=function(e,n){n===void 0&&(n=!1);var r=e??"";return aa(r,this.literals,n)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1};if(!e.insertedChars&&e.selectionStart===e.selectionEnd)return n;var r=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),o=aa(e.prevValue.slice(0,e.selectionStart),this.literals.slice(0,e.selectionStart),!1),s=aa(e.prevValue.slice(e.selectionEnd),this.literals.slice(e.selectionEnd),!1,!0);return n.value=this._getMaskedValue(o+(e.insertedChars||"")+s,!0),!e.insertedChars&&e.inputDirection==="backward"?n.caretPosition=e.selectionStart:n.caretPosition=this._getMaskedValue(r).length,n},t.prototype.getMaskedValue=function(e){return this._getMaskedValue(e,!0)},t.prototype.getUnmaskedValue=function(e){return this._getUnmaskedValue(e,!0)},Op([x()],t.prototype,"pattern",void 0),t}(Do);j.addClass("patternmask",[{name:"pattern"}],function(){return new la},"masksettings");var Rp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Cr=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function Ip(i,t,e){t===void 0&&(t=!0),e===void 0&&(e=3);var n=[];if(t){for(var r=i.length-e;r>-e;r-=e)n.push(i.substring(r,r+e));n=n.reverse()}else for(var r=0;r<i.length;r+=e)n.push(i.substring(r,r+e));return n}var ua=function(i){Rp(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.calccaretPosition=function(e,n,r){for(var o=e?this.displayNumber(this.parseNumber(e),!1).length:0,s=0,u=n.selectionStart,d=!n.insertedChars&&n.inputDirection==="forward",y=0;y<r.length;y++){var V=r[y];if(V!==this.thousandsSeparator&&s++,s===o+(d?1:0)){d?u=y:u=y+1;break}}return u},t.prototype.numericalCompositionIsEmpty=function(e){return!e.integralPart&&!e.fractionalPart},t.prototype.displayNumber=function(e,n,r){n===void 0&&(n=!0),r===void 0&&(r=!1);var o=e.integralPart;n&&o&&(o=Ip(o).join(this.thousandsSeparator));var s=e.fractionalPart,u=e.isNegative?"-":"";if(s===""){if(r)return!o||o==="0"?o:u+o;var d=e.hasDecimalSeparator&&!r?this.decimalSeparator:"",y=o+d;return y==="0"?y:u+y}else return o=o||"0",s=s.substring(0,this.precision),[u+o,s].join(this.decimalSeparator)},t.prototype.convertNumber=function(e){var n,r=e.isNegative?"-":"";return e.fractionalPart?n=parseFloat(r+(e.integralPart||"0")+"."+e.fractionalPart.substring(0,this.precision)):n=parseInt(r+e.integralPart||"0"),n},t.prototype.validateNumber=function(e,n){var r=this.min||Number.MIN_SAFE_INTEGER,o=this.max||Number.MAX_SAFE_INTEGER;if(this.numericalCompositionIsEmpty(e))return!0;if(this.min!==void 0||this.max!==void 0){var s=this.convertNumber(e);if(Number.isNaN(s)||s>=r&&s<=o)return!0;if(!n){if(!e.hasDecimalSeparator&&s!=0){var u=s,d=s;if(s>0){if(s+1>r&&s<=o)return!0;for(;u=u*10+9,d=d*10,!(d>o);)if(u>r)return!0;return!1}if(s<0){if(s>=r&&s-1<o)return!0;for(;u=u*10,d=d*10-9,!(u<r);)if(d<o)return!0;return!1}}else{var y=Math.pow(.1,(e.fractionalPart||"").length);if(s>=0)return s+y>r&&s<=o;if(s<0)return s>=r&&s-y<o}return s>=0&&s<=o||s<0&&s>=r}return!1}return!0},t.prototype.parseNumber=function(e){for(var n={integralPart:"",fractionalPart:"",hasDecimalSeparator:!1,isNegative:!1},r=e==null?"":e.toString(),o=0,s=0;s<r.length;s++){var u=r[s];switch(u){case"-":{this.allowNegativeValues&&(this.min===void 0||this.min<0)&&o++;break}case this.decimalSeparator:{this.precision>0&&(n.hasDecimalSeparator=!0);break}case this.thousandsSeparator:break;default:u.match(Ns)&&(n.hasDecimalSeparator?n.fractionalPart+=u:n.integralPart+=u)}}return n.isNegative=o%2!==0,n.integralPart.length>1&&n.integralPart[0]==="0"&&(n.integralPart=n.integralPart.slice(1)),n},t.prototype.getNumberMaskedValue=function(e,n){n===void 0&&(n=!1);var r=this.parseNumber(e);if(!this.validateNumber(r,n))return null;var o=this.displayNumber(r,!0,n);return o},t.prototype.getNumberUnmaskedValue=function(e){var n=this.parseNumber(e);if(!this.numericalCompositionIsEmpty(n))return this.convertNumber(n)},t.prototype.getTextAlignment=function(){return"right"},t.prototype.getMaskedValue=function(e){var n=e==null?"":e.toString();return n=n.replace(".",this.decimalSeparator),this.getNumberMaskedValue(n,!0)},t.prototype.getUnmaskedValue=function(e){return this.getNumberUnmaskedValue(e)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},r=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),o=e.prevValue.slice(e.selectionEnd),s=r+o,u=this.parseNumber(s);if(!this.validateNumber(u,!1))return n;var d=this.getNumberMaskedValue(s),y=this.calccaretPosition(r,e,d);return n.value=d,n.caretPosition=y,n},t.prototype.getType=function(){return"numericmask"},t.prototype.isPropertyEmpty=function(e){return e===""||e===void 0||e===null},Cr([x()],t.prototype,"allowNegativeValues",void 0),Cr([x()],t.prototype,"decimalSeparator",void 0),Cr([x()],t.prototype,"precision",void 0),Cr([x()],t.prototype,"thousandsSeparator",void 0),Cr([x()],t.prototype,"min",void 0),Cr([x()],t.prototype,"max",void 0),t}(Do);j.addClass("numericmask",[{name:"allowNegativeValues:boolean",default:!0},{name:"decimalSeparator",default:".",maxLength:1},{name:"thousandsSeparator",default:",",maxLength:1},{name:"precision:number",default:2,minValue:0},{name:"min:number"},{name:"max:number"}],function(){return new ua},"masksettings");var Dp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ao=function(){return Ao=Object.assign||function(i){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},Ao.apply(this,arguments)},_l=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function Bl(i,t){switch(i){case"hour":case"minute":case"second":case"day":case"month":return 2;case"timeMarker":case"year":return t;default:return 1}}function Ap(i,t){var e=t;return i.count<i.maxCount&&(i.type==="day"&&parseInt(t[0])===0||i.type==="month"&&parseInt(t[0])===0)&&(e=t.slice(1,t.length)),e}function Lp(i){for(var t=[],e,n=function(s,u,d){if(d===void 0&&(d=!1),e&&e===s){t[t.length-1].count++;var y=Bl(s,t[t.length-1].count);t[t.length-1].maxCount=y}else{var y=Bl(s,1);t.push({type:s,value:u,count:1,maxCount:y,upperCase:d})}},r=0;r<i.length;r++){var o=i[r];switch(o){case"m":n("month",o);break;case"d":n("day",o);break;case"y":n("year",o);break;case"h":n("hour",o,!1);break;case"H":n("hour",o,!0);break;case"M":n("minute",o);break;case"s":n("second",o);break;case"t":n("timeMarker",o);break;case"T":n("timeMarker",o,!0);break;default:t.push({type:"separator",value:o,count:1,maxCount:1,upperCase:!1});break}e=t[t.length-1].type}return t}var Fl=function(i){Dp(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.defaultDate="1970-01-01T",e.turnOfTheCentury=68,e.twelve=12,e.lexems=[],e.inputDateTimeData=[],e.validBeginningOfNumbers={hour:1,hourU:2,minute:5,second:5,day:3,month:1},e}return Object.defineProperty(t.prototype,"hasDatePart",{get:function(){return this.lexems.some(function(e){return e.type==="day"||e.type==="month"||e.type==="year"})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTimePart",{get:function(){return this.lexems.some(function(e){return e.type==="hour"||e.type==="minute"||e.type==="second"})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"is12Hours",{get:function(){return this.lexems.filter(function(e){return e.type==="hour"&&!e.upperCase}).length>0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"datetimemask"},t.prototype.getTypeForExpressions=function(){return this.hasTimePart?"datetime-local":"datetime"},t.prototype.updateLiterals=function(){this.lexems=Lp(this.pattern||"")},t.prototype.leaveOnlyNumbers=function(e){for(var n="",r=0;r<e.length;r++)e[r].match(Ns)&&(n+=e[r]);return n},t.prototype.getMaskedStrFromISO=function(e){var n=this,r=new Date(e);return this.initInputDateTimeData(),this.hasTimePart||(r=new Date(e+"T00:00:00")),this.hasDatePart||(r=new Date(this.defaultDate+e)),isNaN(r)||this.lexems.forEach(function(o,s){var u=n.inputDateTimeData[s];switch(u.isCompleted=!0,o.type){case"hour":{n.is12Hours?u.value=((r.getHours()-1)%n.twelve+1).toString():u.value=r.getHours().toString();break}case"minute":{u.value=r.getMinutes().toString();break}case"second":{u.value=r.getSeconds().toString();break}case"timeMarker":{var d=r.getHours()>=n.twelve?"pm":"am";u.value=o.upperCase?d.toUpperCase():d;break}case"day":{u.value=r.getDate().toString();break}case"month":{u.value=(r.getMonth()+1).toString();break}case"year":{var y=r.getFullYear();o.count==2&&(y=y%100),u.value=y.toString();break}}}),this.getFormatedString(!0)},t.prototype.initInputDateTimeData=function(){var e=this;this.inputDateTimeData=[],this.lexems.forEach(function(n){e.inputDateTimeData.push({lexem:n,isCompleted:!1,value:void 0})})},t.prototype.getISO_8601Format=function(e){var n=[],r=[];if(e.year!==void 0){var o=this.getPlaceholder(4,e.year.toString(),"0")+e.year;n.push(o)}if(e.month!==void 0&&e.year!==void 0){var s=this.getPlaceholder(2,e.month.toString(),"0")+e.month;n.push(s)}if(e.day!==void 0&&e.month!==void 0&&e.year!==void 0){var u=this.getPlaceholder(2,e.day.toString(),"0")+e.day;n.push(u)}if(e.hour!==void 0){var d=this.getPlaceholder(2,e.hour.toString(),"0")+e.hour;r.push(d)}if(e.minute!==void 0&&e.hour!==void 0){var y=this.getPlaceholder(2,e.minute.toString(),"0")+e.minute;r.push(y)}if(e.second!==void 0&&e.minute!==void 0&&e.hour!==void 0){var V=this.getPlaceholder(2,e.second.toString(),"0")+e.second;r.push(V)}var T=[];return n.length>0&&T.push(n.join("-")),r.length>1&&T.push(r.join(":")),T.join("T")},t.prototype.isYearValid=function(e){if(e.min===void 0&&e.max===void 0)return!1;var n=e.year.toString(),r=e.min.toISOString().slice(0,n.length),o=e.max.toISOString().slice(0,n.length);return e.year>=parseInt(r)&&e.year<=parseInt(o)},t.prototype.createIDateTimeCompositionWithDefaults=function(e,n){var r=e.day==29&&e.month==2,o=e.min.getFullYear(),s=e.max.getFullYear();r&&(o=Math.ceil(o/4)*4,s=Math.floor(o/4)*4,o>s&&(o=void 0,s=void 0));var u=e.year!==void 0?e.year:n?s:o,d=e.month!==void 0?e.month:n&&this.hasDatePart?12:1,y=e.day!==void 0?e.day:n&&this.hasDatePart?this.getMaxDateForMonth(u,d):1,V=e.hour!==void 0?e.hour:n?23:0,T=e.minute!==void 0?e.minute:n?59:0,N=e.second!==void 0?e.second:n?59:0;return{year:u,month:d,day:y,hour:V,minute:T,second:N}},t.prototype.getMaxDateForMonth=function(e,n){return n==2?e%4==0&&e%100!=0||e%400?29:28:[31,28,31,30,31,30,31,31,30,31,30,31][n-1]},t.prototype.isDateValid=function(e){var n=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!1))),r=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!0)));return!isNaN(n)&&(n.getDate()===e.day||e.day===void 0)&&(n.getMonth()===e.month-1||e.month===void 0)&&(n.getFullYear()===e.year||e.year===void 0)&&r>=e.min&&n<=e.max},t.prototype.getPlaceholder=function(e,n,r){var o=e-(n||"").length,s=o>0?r.repeat(o):"";return s},t.prototype.isDateValid12=function(e){return this.is12Hours?this.is12Hours&&e.hour>this.twelve?!1:e.timeMarker?e.timeMarker[0].toLowerCase()==="p"?(e.hour!==this.twelve&&(e.hour+=this.twelve),this.isDateValid(e)):(e.hour===this.twelve&&(e.hour=0),this.isDateValid(e)):this.isDateValid(e)?!0:(e.hour+=this.twelve,this.isDateValid(e)):this.isDateValid(e)},t.prototype.updateTimeMarkerInputDateTimeData=function(e,n){var r=e.value;if(r){var o="timeMarker",s=Ao({},n);s[o]=r,this.isDateValid12(s)?e.isCompleted=!0:r=r.slice(0,r.length-1),e.value=r||void 0,n[o]=r||void 0}},t.prototype.updateInputDateTimeData=function(e,n){var r=e.value;if(r){var o=e.lexem.type,s=Ao({},n);if(s[o]=parseInt(this.parseTwoDigitYear(e)),r.length===e.lexem.maxCount)if(this.isDateValid12(s)){e.isCompleted=!0,e.value=r||void 0,n[o]=parseInt(r)>0?parseInt(r):void 0;return}else r=r.slice(0,r.length-1);s[o]=parseInt(r);var u=parseInt(r[0]),d=this.validBeginningOfNumbers[o+(e.lexem.upperCase?"U":"")];o==="year"&&!this.isYearValid(s)?(r=r.slice(0,r.length-1),e.isCompleted=!1):d!==void 0&&u>d?this.isDateValid12(s)?e.isCompleted=!0:r=r.slice(0,r.length-1):d!==void 0&&u!==0&&u<=d&&(this.checkValidationDateTimePart(s,o,e),e.isCompleted&&!this.isDateValid12(s)&&(r=r.slice(0,r.length-1))),e.value=r||void 0,n[o]=parseInt(r)>0?parseInt(r):void 0}},t.prototype.checkValidationDateTimePart=function(e,n,r){var o=e[n],s=o*10,u=10;n==="month"&&(u=3),n==="hour"&&(u=this.is12Hours?3:5),r.isCompleted=!0;for(var d=0;d<u;d++)if(e[n]=s+d,this.isDateValid12(e)){r.isCompleted=!1;break}e[n]=o},t.prototype.getCorrectDatePartFormat=function(e,n){var r=e.lexem,o=e.value||"";if(o&&r.type==="timeMarker")return n&&(o=o+this.getPlaceholder(r.count,o,r.value)),o;if(o&&e.isCompleted&&(o=parseInt(o).toString()),o&&e.isCompleted){var s=this.getPlaceholder(r.count,o,"0");o=s+o}else o=Ap(r,o),n&&(o+=this.getPlaceholder(r.count,o,r.value));return o},t.prototype.createIDateTimeComposition=function(){var e,n;this.hasDatePart?(e=this.min||"0001-01-01",n=this.max||"9999-12-31"):(e=this.defaultDate+(this.min||"00:00:00"),n=this.defaultDate+(this.max||"23:59:59"));var r={hour:void 0,minute:void 0,second:void 0,day:void 0,month:void 0,year:void 0,min:new Date(e),max:new Date(n)};return r},t.prototype.parseTwoDigitYear=function(e){var n=e.value;if(e.lexem.type!=="year"||e.lexem.count>2)return n;this.max&&this.max.length>=4&&(this.turnOfTheCentury=parseInt(this.max.slice(2,4)));var r=parseInt(n),o=(r>this.turnOfTheCentury?"19":"20")+n;return o},t.prototype.getFormatedString=function(e){var n="",r="",o=!1,s=this.inputDateTimeData.length-1;if(!e){var u=this.inputDateTimeData.filter(function(N){return!!N.value});s=this.inputDateTimeData.indexOf(u[u.length-1])}for(var d=0;d<this.inputDateTimeData.length;d++){var y=this.inputDateTimeData[d];switch(y.lexem.type){case"timeMarker":case"hour":case"minute":case"second":case"day":case"month":case"year":if(y.value===void 0&&!e)return n+=o?r:"",n;var V=e||s>d,T=this.getCorrectDatePartFormat(y,V);n+=r+T,o=y.isCompleted;break;case"separator":r=y.lexem.value;break}}return n},t.prototype.cleanTimeMarker=function(e,n){var r="";e=e.toUpperCase();for(var o=0;o<e.length;o++)(!r&&(e[o]=="P"||e[o]=="A")||r&&e[o]=="M")&&(r+=e[o]);return n?r=r.toUpperCase():r=r.toLowerCase(),r},t.prototype.setInputDateTimeData=function(e){var n=this,r=0;this.initInputDateTimeData(),this.lexems.forEach(function(o,s){if(e.length>0&&r<e.length){if(o.type==="separator")return;var u=n.inputDateTimeData[s],d=e[r],y=void 0;o.type==="timeMarker"?y=n.cleanTimeMarker(d,o.upperCase):y=n.leaveOnlyNumbers(d),u.value=y.slice(0,o.maxCount),r++}})},t.prototype._getMaskedValue=function(e,n){var r=this;n===void 0&&(n=!0);var o=e==null?"":e.toString(),s=this.getParts(o);this.setInputDateTimeData(s);var u=this.createIDateTimeComposition();this.inputDateTimeData.forEach(function(y){y.lexem.type==="timeMarker"?r.updateTimeMarkerInputDateTimeData(y,u):r.updateInputDateTimeData(y,u)});var d=this.getFormatedString(n);return d},t.prototype.getParts=function(e){for(var n=[],r=this.lexems.filter(function(T){return T.type!=="separator"}),o=this.lexems.filter(function(T){return T.type==="separator"}).map(function(T){return T.value}),s="",u=!1,d=!1,y=0;y<e.length;y++){var V=e[y];if(V.match(Ns)||V===r[n.length].value||r[n.length].type==="timeMarker"?(u=!1,d=!1,s+=V):o.indexOf(V)!==-1?d||(u=!0,n.push(s),s=""):u||(d=!0,n.push(s),s=""),n.length>=r.length){u=!1;break}}return(s!=""||u)&&n.push(s),n},t.prototype.getUnmaskedValue=function(e){var n=this,r,o=e==null?"":e.toString(),s=this.getParts(o);this.setInputDateTimeData(s);var u=(r=this.inputDateTimeData.filter(function(V){return V.lexem.type==="timeMarker"})[0])===null||r===void 0?void 0:r.value.toLowerCase()[0],d=this.createIDateTimeComposition(),y=!1;return this.inputDateTimeData.forEach(function(V){var T=V.value;if(!(V.lexem.type=="timeMarker"||V.lexem.type=="separator")){if(!T||T.length<V.lexem.count){y=!0;return}var N=parseInt(n.parseTwoDigitYear(V));V.lexem.type=="hour"&&u==="p"&&N!=n.twelve&&(N+=n.twelve),d[V.lexem.type]=N}}),y?"":this.getISO_8601Format(d)},t.prototype.getMaskedValue=function(e){return this.getMaskedStrFromISO(e)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},r=e.prevValue.slice(0,e.selectionStart),o=e.prevValue.slice(e.selectionEnd);return n.value=this._getMaskedValue(r+(e.insertedChars||"")+o),!e.insertedChars&&e.inputDirection==="backward"?n.caretPosition=e.selectionStart:n.caretPosition=this._getMaskedValue(r+(e.insertedChars||""),!1).length,n},_l([x()],t.prototype,"min",void 0),_l([x()],t.prototype,"max",void 0),t}(la);j.addClass("datetimemask",[{name:"min",type:"datetime",enableIf:function(i){return!!i.pattern}},{name:"max",type:"datetime",enableIf:function(i){return!!i.pattern}}],function(){return new Fl},"patternmask");var Mp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),kl=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var u=i.length-1;u>=0;u--)(s=i[u])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Ql=function(i){Mp(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getType=function(){return"currencymask"},t.prototype.wrapText=function(e){var n=this.prefix||"",r=this.suffix||"",o=e;return o&&(o.indexOf(n)===-1&&(o=n+o),o.indexOf(r)===-1&&(o+=r),o)},t.prototype.unwrapInputArgs=function(e){var n=e.prevValue;if(n){if(this.prefix&&n.indexOf(this.prefix)!==-1){n=n.slice(n.indexOf(this.prefix)+this.prefix.length);var r=(this.prefix||"").length;e.selectionStart=Math.max(e.selectionStart-r,0),e.selectionEnd-=r}this.suffix&&n.indexOf(this.suffix)!==-1&&(n=n.slice(0,n.indexOf(this.suffix))),e.prevValue=n}},t.prototype.processInput=function(e){this.unwrapInputArgs(e);var n=i.prototype.processInput.call(this,e),r=(this.prefix||"").length;return n.value&&(n.caretPosition+=r),n.value=this.wrapText(n.value),n},t.prototype.getMaskedValue=function(e){var n=i.prototype.getMaskedValue.call(this,e);return this.wrapText(n)},kl([x()],t.prototype,"prefix",void 0),kl([x()],t.prototype,"suffix",void 0),t}(ua);j.addClass("currencymask",[{name:"prefix"},{name:"suffix"}],function(){return new Ql},"numericmask");var hi,ca;hi="1.12.20",I.version=hi,ca="2025-01-21";function jp(i,t){if(hi!=i){var e="survey-core has version '"+hi+"' and "+t+" has version '"+i+"'. SurveyJS libraries should have the same versions to work correctly.";console.error(e)}}function Np(i){Hl(i)}function Hl(i){_p(i,zl,ca)}function qp(i){return zl[i.toString()]===!0}var zl={};function _p(i,t,e){if(i){var n=function(s){var u={},d,y=0,V,T=0,N,U="",W=String.fromCharCode,X=s.length,Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(d=0;d<64;d++)u[Y.charAt(d)]=d;for(V=0;V<X;V++){var J=u[s.charAt(V)];for(y=(y<<6)+J,T+=6;T>=8;)((N=y>>>(T-=8)&255)||V<X-2)&&(U+=W(N))}return U},r=n(i);if(r){var o=r.indexOf(";");o<0||Bp(r.substring(0,o))&&(r=r.substring(o+1),r.split(",").forEach(function(s){var u=s.indexOf("=");u>0&&(t[s.substring(0,u)]=new Date(e)<=new Date(s.substring(u+1)))}))}}}function Bp(i){if(!i)return!0;var t="domains:",e=i.indexOf(t);if(e<0)return!0;var n=i.substring(e+t.length).toLowerCase().split(",");if(!Array.isArray(n)||n.length===0)return!0;var r=B.getLocation();if(r&&r.hostname){var o=r.hostname.toLowerCase();n.push("localhost");for(var s=0;s<n.length;s++)if(o.indexOf(n[s])>-1)return!0;return!1}return!0}var Fp={"$main-color":"#1ab394","$add-button-color":"#1948b3","$remove-button-color":"#ff1800","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-slider-color":"#cfcfcf","$error-color":"#d52901","$text-color":"#404040","$light-text-color":"#fff","$checkmark-color":"#fff","$progress-buttons-color":"#8dd9ca","$inputs-background-color":"transparent","$main-hover-color":"#9f9f9f","$body-container-background-color":"#f4f4f4","$text-border-color":"#d4d4d4","$disabled-text-color":"rgba(64, 64, 64, 0.5)","$border-color":"rgb(64, 64, 64, 0.5)","$header-background-color":"#e7e7e7","$answer-background-color":"rgba(26, 179, 148, 0.2)","$error-background-color":"rgba(213, 41, 1, 0.2)","$radio-checked-color":"#404040","$clean-button-color":"#1948b3","$body-background-color":"#ffffff","$foreground-light":"#909090","$font-family":"Raleway"},kp={"$header-background-color":"#e7e7e7","$body-container-background-color":"#f4f4f4","$main-color":"#1ab394","$main-hover-color":"#0aa384","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#6d7072","$text-input-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4"},Qp={"$header-background-color":"#4a4a4a","$body-container-background-color":"#f8f8f8","$main-color":"#f78119","$main-hover-color":"#e77109","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#f7b781","$progress-buttons-line-color":"#d4d4d4"},Hp={"$header-background-color":"#d9d8dd","$body-container-background-color":"#f6f7f2","$main-color":"#3c4f6d","$main-hover-color":"#2c3f5d","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#839ec9","$progress-buttons-line-color":"#d4d4d4"},zp={"$header-background-color":"#ddd2ce","$body-container-background-color":"#f7efed","$main-color":"#68656e","$main-hover-color":"#58555e","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#c6bed4","$progress-buttons-line-color":"#d4d4d4"},Up={"$header-background-color":"#cdccd2","$body-container-background-color":"#efedf4","$main-color":"#0f0f33","$main-hover-color":"#191955","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#0f0f33","$text-input-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#747491","$progress-buttons-line-color":"#d4d4d4"},Wp={"$header-background-color":"#82b8da","$body-container-background-color":"#dae1e7","$main-color":"#3c3b40","$main-hover-color":"#1e1d20","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#d1c9f5","$progress-buttons-line-color":"#d4d4d4"},$p={"$header-background-color":"#323232","$body-container-background-color":"#f8f8f8","$main-color":"#5ac8fa","$main-hover-color":"#06a1e7","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#acdcf2","$progress-buttons-line-color":"#d4d4d4"};function Jp(i,t){Object.keys(i||{}).forEach(function(e){var n=e.substring(1);t.style.setProperty("--"+n,i[e])})}var Ul=function(){function i(){i.autoApplyTheme()}return i.autoApplyTheme=function(){if(!(qe.currentType==="bootstrap"||qe.currentType==="bootstrapmaterial")){var t=i.getIncludedThemeCss();t.length===1&&i.applyTheme(t[0].name)}},i.getAvailableThemes=function(){var t=qe.getAvailableThemes().filter(function(e){return["defaultV2","default","modern"].indexOf(e)!==-1}).map(function(e){return{name:e,theme:qe[e]}});return t},i.getIncludedThemeCss=function(){if(typeof I.environment>"u")return[];var t=I.environment.rootElement,e=i.getAvailableThemes(),n=An(t)?t.host:t;if(n){var r=getComputedStyle(n);if(r.length)return e.filter(function(o){return o.theme.variables&&r.getPropertyValue(o.theme.variables.themeMark)})}return[]},i.findSheet=function(t){if(typeof I.environment>"u")return null;for(var e=I.environment.root.styleSheets,n=0;n<e.length;n++)if(e[n].ownerNode&&e[n].ownerNode.id===t)return e[n];return null},i.createSheet=function(t){var e=I.environment.stylesSheetsMountContainer,n=R.createElement("style");return n.id=t,n.appendChild(new Text("")),Ln(e).appendChild(n),i.Logger&&i.Logger.log("style sheet "+t+" created"),n.sheet},i.applyTheme=function(t,e){if(t===void 0&&(t="default"),!(typeof I.environment>"u")){var n=I.environment.rootElement,r=An(n)?n.host:n;if(qe.currentType=t,i.Enabled){if(t!=="bootstrap"&&t!=="bootstrapmaterial"){Jp(i.ThemeColors[t],r),i.Logger&&i.Logger.log("apply theme "+t+" completed");return}var o=i.ThemeCss[t];if(!o){qe.currentType="defaultV2";return}i.insertStylesRulesIntoDocument();var s=e||i.ThemeSelector[t]||i.ThemeSelector.default,u=(t+s).trim(),d=i.findSheet(u);if(!d){d=i.createSheet(u);var y=i.ThemeColors[t]||i.ThemeColors.default;Object.keys(o).forEach(function(V){var T=o[V];Object.keys(y||{}).forEach(function(N){return T=T.replace(new RegExp("\\"+N,"g"),y[N])});try{V.indexOf("body")===0?d.insertRule(V+" { "+T+" }",0):d.insertRule(s+V+" { "+T+" }",0)}catch{}})}}i.Logger&&i.Logger.log("apply theme "+t+" completed")}},i.insertStylesRulesIntoDocument=function(){if(i.Enabled){var t=i.findSheet(i.SurveyJSStylesSheetId);t||(t=i.createSheet(i.SurveyJSStylesSheetId)),Object.keys(i.Styles).length&&Object.keys(i.Styles).forEach(function(e){try{t.insertRule(e+" { "+i.Styles[e]+" }",0)}catch{}}),Object.keys(i.Media).length&&Object.keys(i.Media).forEach(function(e){try{t.insertRule(i.Media[e].media+" { "+e+" { "+i.Media[e].style+" } }",0)}catch{}})}},i.SurveyJSStylesSheetId="surveyjs-styles",i.Styles={},i.Media={},i.ThemeColors={modern:Fp,default:kp,orange:Qp,darkblue:Hp,darkrose:zp,stone:Up,winter:Wp,winterstone:$p},i.ThemeCss={},i.ThemeSelector={default:".sv_main ",modern:".sv-root-modern "},i.Enabled=!0,i}();dn.prototype.onBeforeRunConstructor=function(){B.isAvailable()&&Ul.autoApplyTheme()};var Cn={root:"sv_main sv_default_css",rootProgress:"sv_progress",container:"sv_container",header:"sv_header",bodyContainer:"sv-components-row",body:"sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"sv_nav_btn",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",titleExpandable:"sv_q_title_expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell",icon:"sv_question_icon",iconExpanded:"sv_expanded",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",rootRadio:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qcbc sv_qbln",checkboxItem:"sv-boolean",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyvisible",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator",checkboxItemDecorator:"sv-item__svg sv-boolean__svg"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},comment:{remainingCharacterCounter:"sv-remaining-character-counter"},dropdown:{root:"",popup:"sv-dropdown-popup",control:"sv_q_dropdown_control",controlInputFieldComponent:"sv_q_dropdown_control__input-field-component",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other",cleanButton:"sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv_q_dropdown__value",filterStringInput:"sv_q_dropdown__filter-string-input",hintPrefix:"sv_q_dropdown__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image",noImage:"sv-image__no-image",noImageSvgIconId:"icon-no-image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cell:"sv_q_m_cell",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv_q_m_cell_responsive_title"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",cellResponsiveTitle:"sv_matrix_cell_responsive_title",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",rowTextCell:"sv-table__cell--row-text",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"sv_matrix_dynamic_button--add",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",cell:"sv_matrix_cell",cellResponsiveTitle:"sv_matrix_cell_responsive_title",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",header:"sv-paneldynamic__header sv_header",headerTab:"sv-paneldynamic__header-tab",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_btn",buttonRemoveRight:"sv_p_remove_btn_right",buttonPrev:"sv-paneldynamic__prev-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",row:"sv_q_mt_row",itemLabel:"sv_q_mt_label",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column",itemNoImage:"sv_q_imgsel__no-image",itemNoImageSvgIcon:"sv_q_imgsel__no-image-svg",itemNoImageSvgIconId:"icon-no-image"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",itemFixedSize:"sv_q_rating_item_fixed",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",itemStar:"sv_q_rating__item-star",itemStarSelected:"sv_q_rating__item-star--selected",itemSmiley:"sv_q_rating__item-smiley",itemSmileySelected:"sv_q_rating__item-smiley--selected"},text:{root:"sv_q_text_root",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv_q_file",placeholderInput:"sv-visuallyhidden",previewItem:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv-visuallyhidden",removeFile:"sv_q_file_remove",fileDecorator:"sv-file__decorator",fileSign:"sv_q_file_sign",chooseFile:"sv_q_file_choose_button",noFileChosen:"sv_q_file_placeholder",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas",backgroundImage:"sjs_sp__background-image",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-default-mark"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv_q_row__question--small",selectWrapper:"sv_select_wrapper sv_q_tagbox_wrapper",other:"sv_q_input sv_q_comment sv_q_selectbase__other",cleanButton:"sv_q_tagbox_clean-button sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_tagbox_clean-button-svg sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv_q_tagbox-item_clean-button",cleanItemButtonSvg:"sv_q_tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv_q_input sv_q_tagbox sv_q_dropdown_control",controlValue:"sv_q_tagbox__value sv_q_dropdown__value",controlEmpty:"sv_q_dropdown--empty sv_q_tagbox--empty",placeholderInput:"sv_q_tagbox__placeholder",filterStringInput:"sv_q_tagbox__filter-string-input sv_q_dropdown__filter-string-input",hint:"sv_q_tagbox__hint",hintPrefix:"sv_q_dropdown__hint-prefix sv_q_tagbox__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix sv_q_tagbox__hint-suffix",hintSuffixWrapper:"sv_q_tagbox__hint-suffix-wrapper"}};qe.default=Cn,qe.orange=Cn,qe.darkblue=Cn,qe.darkrose=Cn,qe.stone=Cn,qe.winter=Cn,qe.winterstone=Cn;var Wl={root:"sv-root-modern",rootProgress:"sv-progress",timerRoot:"sv-body__timer",container:"sv-container-modern",header:"sv-title sv-container-modern__title",headerClose:"sv-container-modern__close",bodyContainer:"sv-components-row",body:"sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"sv-btn sv-btn--navigation",completedPage:"sv-completedpage",navigation:{complete:"sv-footer__complete-btn",prev:"sv-footer__prev-btn",next:"sv-footer__next-btn",start:"sv-footer__start-btn",preview:"sv-footer__preview-btn",edit:"sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv-panel__title--expanded",titleCollapsed:"sv-panel__title--collapsed",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator",panelWrapper:"sv-paneldynamic__panel-wrapper",panelWrapperInRow:"sv-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbutton",footer:""},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",number:"sv-page__num",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",answered:"sv-question--answered",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv-question__title--expanded",titleCollapsed:"sv-question__title--collapsed",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"},checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",itemSvgIconId:"#icon-moderncheck",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",itemSvgIconId:"#icon-modernradio",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},boolean:{root:"sv_qbln",rootRadio:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qbln",checkboxItem:"sv-boolean sv-item",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyhidden",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator ",checkboxItemDecorator:"sv-item__svg  sv-boolean__svg",indeterminatePath:"sv-boolean__indeterminate-path",svgIconCheckedId:"#icon-modernbooleancheckchecked",svgIconUncheckedId:"#icon-modernbooleancheckunchecked",svgIconIndId:"#icon-modernbooleancheckind"},text:{root:"sv-text",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemLabel:"sv-multipletext__item-label",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv-dropdown__filter-string-input",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",hintPrefix:"sv-dropdown__hint-prefix",hintSuffix:"sv-dropdown__hint-suffix"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",selectWrapper:"sv_select_wrapper sv-tagbox_wrapper",other:"sv-input sv-comment sv-selectbase__other",cleanButton:"sv-tagbox_clean-button sv-dropdown_clean-button",cleanButtonSvg:"sv-tagbox_clean-button-svg sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv-tagbox__item_clean-button",cleanItemButtonSvg:"sv-tagbox__item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv-input sv-tagbox sv-dropdown",controlValue:"sv-tagbox__value sv-dropdown__value",controlEmpty:"sv-dropdown--empty sv-tagbox--empty",placeholderInput:"sv-tagbox__placeholder",filterStringInput:"sv-tagbox__filter-string-input sv-dropdown__filter-string-input"},imagepicker:{root:"sv-selectbase sv-imagepicker",column:"sv-selectbase__column",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control sv-visuallyhidden",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table sv-matrix-root",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled",cellResponsiveTitle:"sv-matrix__cell-responsive-title",itemSvgIconId:"#icon-modernradio"},matrixdropdown:{root:"sv-table sv-matrixdropdown",cell:"sv-table__cell",cellResponsiveTitle:"sv-table__responsive-title",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",rowTextCell:"sv-table__cell--row-text",rowAdditional:"sv-table__row--additional",detailRow:"sv-table__row--detail",detailRowText:"sv-table__cell--detail-rowtext",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions"},matrixdynamic:{root:"sv-table sv-matrixdynamic",cell:"sv-table__cell",cellResponsiveTitle:"sv-table__responsive-title",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",row:"sv-table__row",detailRow:"sv-table__row--detail",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions",emptyRowsSection:"sv-table__empty--rows--section",emptyRowsText:"sv-table__empty--rows--text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",itemDisabled:"sv-rating--disabled",filterStringInput:"sv-dropdown__filter-string-input",control:"sv-dropdown",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",itemSmiley:"sv-rating__item-smiley",itemStar:"sv-rating__item-star",itemSmileySelected:"sv-rating__item-smiley--selected",itemStarSelected:"sv-rating__item-star--selected"},comment:{root:"sv-comment",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",previewItem:"sd-file__preview-item",fileSignBottom:"sv-file__sign",fileDecorator:"sv-file__decorator",fileInput:"sv-visuallyhidden",noFileChosen:"sv-description sv-file__no-file-chosen",chooseFile:"sv-btn sv-file__choose-btn",controlDisabled:"sv-file__choose-btn--disabled",removeButton:"sv-hidden",removeButtonBottom:"sv-btn sv-file__clean-btn",removeFile:"sv-hidden",removeFileSvg:"sv-file__remove-svg",removeFileSvgIconId:"icon-removefile",wrapper:"sv-file__wrapper",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv-signaturepad sjs_sp_container",small:"sv-row__question--small",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas",backgroundImage:"sjs_sp__background-image",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-modern-mark"}};qe.modern=Wl;var $l=function(){function i(){this.icons={},this.iconPrefix="icon-",this.onIconsChanged=new pt}return i.prototype.processId=function(t,e){return t.indexOf(e)==0&&(t=t.substring(e.length)),t=ur[t]||t,t},i.prototype.registerIconFromSymbol=function(t,e){this.icons[t]=e},i.prototype.registerIconFromSvgViaElement=function(t,e,n){if(n===void 0&&(n=this.iconPrefix),!!R.isAvailable()){t=this.processId(t,n);var r=R.createElement("div");r.innerHTML=e;var o=R.createElement("symbol"),s=r.querySelector("svg");o.innerHTML=s.innerHTML;for(var u=0;u<s.attributes.length;u++)o.setAttributeNS("http://www.w3.org/2000/svg",s.attributes[u].name,s.attributes[u].value);o.id=n+t,this.registerIconFromSymbol(t,o.outerHTML)}},i.prototype.registerIconFromSvg=function(t,e,n){n===void 0&&(n=this.iconPrefix),t=this.processId(t,n);var r="<svg ",o="</svg>";e=e.trim();var s=e.toLowerCase();return s.substring(0,r.length)===r&&s.substring(s.length-o.length,s.length)===o?(this.registerIconFromSymbol(t,'<symbol id="'+n+t+'" '+e.substring(r.length,s.length-o.length)+"</symbol>"),!0):!1},i.prototype.registerIconsFromFolder=function(t){var e=this;t.keys().forEach(function(n){e.registerIconFromSvg(n.substring(2,n.length-4).toLowerCase(),t(n))})},i.prototype.registerIcons=function(t){for(var e in t)this.registerIconFromSvg(e,t[e]);this.updateMarkup()},i.prototype.iconsRenderedHtml=function(){var t=this;return Object.keys(this.icons).map(function(e){return t.icons[e]}).join("")},i.prototype.updateMarkup=function(){this.onIconsChanged.fire(this,{})},i}(),Gp=new $l,Lo={};function Zp(i,t){Lo[i]||(Lo[i]={});var e=Lo[i];for(var n in t)e[n]=t[n]}}})})}(qo)),qo.exports}var Jn=Zu(),_o={exports:{}};/*!
+ * surveyjs - Survey JavaScript library v1.12.20
+ * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
+ * License: MIT (http://www.opensource.org/licenses/mit-license.php)
+ */var Eh=_o.exports,Uu;function Th(){return Uu||(Uu=1,function(ne,S){(function(O,P){ne.exports=P(vh(),bh(),Zu())})(Eh,function(z,O,P){return function(B){var R={};function D(C){if(R[C])return R[C].exports;var h=R[C]={i:C,l:!1,exports:{}};return B[C].call(h.exports,h,h.exports,D),h.l=!0,h.exports}return D.m=B,D.c=R,D.d=function(C,h,w){D.o(C,h)||Object.defineProperty(C,h,{enumerable:!0,get:w})},D.r=function(C){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(C,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(C,"__esModule",{value:!0})},D.t=function(C,h){if(h&1&&(C=D(C)),h&8||h&4&&typeof C=="object"&&C&&C.__esModule)return C;var w=Object.create(null);if(D.r(w),Object.defineProperty(w,"default",{enumerable:!0,value:C}),h&2&&typeof C!="string")for(var A in C)D.d(w,A,(function(k){return C[k]}).bind(null,A));return w},D.n=function(C){var h=C&&C.__esModule?function(){return C.default}:function(){return C};return D.d(h,"a",h),h},D.o=function(C,h){return Object.prototype.hasOwnProperty.call(C,h)},D.p="",D(D.s="./src/entries/react-ui.ts")}({"./build/survey-core/icons/iconsV1.js":function(B,R,D){/*!
+ * surveyjs - Survey JavaScript library v1.12.20
+ * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
+ * License: MIT (http://www.opensource.org/licenses/mit-license.php)
+ */(function(h,w){B.exports=w()})(this,function(){return function(C){var h={};function w(A){if(h[A])return h[A].exports;var k=h[A]={i:A,l:!1,exports:{}};return C[A].call(k.exports,k,k.exports,w),k.l=!0,k.exports}return w.m=C,w.c=h,w.d=function(A,k,le){w.o(A,k)||Object.defineProperty(A,k,{enumerable:!0,get:le})},w.r=function(A){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},w.t=function(A,k){if(k&1&&(A=w(A)),k&8||k&4&&typeof A=="object"&&A&&A.__esModule)return A;var le=Object.create(null);if(w.r(le),Object.defineProperty(le,"default",{enumerable:!0,value:A}),k&2&&typeof A!="string")for(var $ in A)w.d(le,$,(function(ie){return A[ie]}).bind(null,$));return le},w.n=function(A){var k=A&&A.__esModule?function(){return A.default}:function(){return A};return w.d(k,"a",k),k},w.o=function(A,k){return Object.prototype.hasOwnProperty.call(A,k)},w.p="",w(w.s="./packages/survey-core/src/iconsV1.ts")}({"./packages/survey-core/src/iconsV1.ts":function(C,h,w){w.r(h),w.d(h,"icons",function(){return k});var A=w("./packages/survey-core/src/images-v1 sync recursive \\.svg$"),k={};A.keys().forEach(function(le){k[le.substring(2,le.length-4).toLowerCase()]=A(le)})},"./packages/survey-core/src/images-v1 sync recursive \\.svg$":function(C,h,w){var A={"./ModernBooleanCheckChecked.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./packages/survey-core/src/images-v1/ModernCheck.svg","./ModernRadio.svg":"./packages/survey-core/src/images-v1/ModernRadio.svg","./ProgressButton.svg":"./packages/survey-core/src/images-v1/ProgressButton.svg","./RemoveFile.svg":"./packages/survey-core/src/images-v1/RemoveFile.svg","./TimerCircle.svg":"./packages/survey-core/src/images-v1/TimerCircle.svg","./add-24x24.svg":"./packages/survey-core/src/images-v1/add-24x24.svg","./arrowleft-16x16.svg":"./packages/survey-core/src/images-v1/arrowleft-16x16.svg","./arrowright-16x16.svg":"./packages/survey-core/src/images-v1/arrowright-16x16.svg","./camera-24x24.svg":"./packages/survey-core/src/images-v1/camera-24x24.svg","./camera-32x32.svg":"./packages/survey-core/src/images-v1/camera-32x32.svg","./cancel-24x24.svg":"./packages/survey-core/src/images-v1/cancel-24x24.svg","./check-16x16.svg":"./packages/survey-core/src/images-v1/check-16x16.svg","./check-24x24.svg":"./packages/survey-core/src/images-v1/check-24x24.svg","./chevrondown-24x24.svg":"./packages/survey-core/src/images-v1/chevrondown-24x24.svg","./chevronright-16x16.svg":"./packages/survey-core/src/images-v1/chevronright-16x16.svg","./clear-16x16.svg":"./packages/survey-core/src/images-v1/clear-16x16.svg","./clear-24x24.svg":"./packages/survey-core/src/images-v1/clear-24x24.svg","./close-16x16.svg":"./packages/survey-core/src/images-v1/close-16x16.svg","./close-24x24.svg":"./packages/survey-core/src/images-v1/close-24x24.svg","./collapse-16x16.svg":"./packages/survey-core/src/images-v1/collapse-16x16.svg","./collapsedetails-16x16.svg":"./packages/survey-core/src/images-v1/collapsedetails-16x16.svg","./delete-24x24.svg":"./packages/survey-core/src/images-v1/delete-24x24.svg","./drag-24x24.svg":"./packages/survey-core/src/images-v1/drag-24x24.svg","./draghorizontal-24x16.svg":"./packages/survey-core/src/images-v1/draghorizontal-24x16.svg","./expand-16x16.svg":"./packages/survey-core/src/images-v1/expand-16x16.svg","./expanddetails-16x16.svg":"./packages/survey-core/src/images-v1/expanddetails-16x16.svg","./file-72x72.svg":"./packages/survey-core/src/images-v1/file-72x72.svg","./flip-24x24.svg":"./packages/survey-core/src/images-v1/flip-24x24.svg","./folder-24x24.svg":"./packages/survey-core/src/images-v1/folder-24x24.svg","./fullsize-16x16.svg":"./packages/survey-core/src/images-v1/fullsize-16x16.svg","./image-48x48.svg":"./packages/survey-core/src/images-v1/image-48x48.svg","./loading-48x48.svg":"./packages/survey-core/src/images-v1/loading-48x48.svg","./maximize-16x16.svg":"./packages/survey-core/src/images-v1/maximize-16x16.svg","./minimize-16x16.svg":"./packages/survey-core/src/images-v1/minimize-16x16.svg","./more-24x24.svg":"./packages/survey-core/src/images-v1/more-24x24.svg","./navmenu-24x24.svg":"./packages/survey-core/src/images-v1/navmenu-24x24.svg","./noimage-48x48.svg":"./packages/survey-core/src/images-v1/noimage-48x48.svg","./ranking-arrows.svg":"./packages/survey-core/src/images-v1/ranking-arrows.svg","./rankingundefined-16x16.svg":"./packages/survey-core/src/images-v1/rankingundefined-16x16.svg","./rating-star-2.svg":"./packages/survey-core/src/images-v1/rating-star-2.svg","./rating-star-small-2.svg":"./packages/survey-core/src/images-v1/rating-star-small-2.svg","./rating-star-small.svg":"./packages/survey-core/src/images-v1/rating-star-small.svg","./rating-star.svg":"./packages/survey-core/src/images-v1/rating-star.svg","./reorder-24x24.svg":"./packages/survey-core/src/images-v1/reorder-24x24.svg","./restoredown-16x16.svg":"./packages/survey-core/src/images-v1/restoredown-16x16.svg","./search-24x24.svg":"./packages/survey-core/src/images-v1/search-24x24.svg","./smiley-rate1-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate1-24x24.svg","./smiley-rate10-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate10-24x24.svg","./smiley-rate2-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate2-24x24.svg","./smiley-rate3-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate3-24x24.svg","./smiley-rate4-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate4-24x24.svg","./smiley-rate5-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate5-24x24.svg","./smiley-rate6-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate6-24x24.svg","./smiley-rate7-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate7-24x24.svg","./smiley-rate8-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate8-24x24.svg","./smiley-rate9-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate9-24x24.svg"};function k($){var ie=le($);return w(ie)}function le($){if(!w.o(A,$)){var ie=new Error("Cannot find module '"+$+"'");throw ie.code="MODULE_NOT_FOUND",ie}return A[$]}k.keys=function(){return Object.keys(A)},k.resolve=le,C.exports=k,k.id="./packages/survey-core/src/images-v1 sync recursive \\.svg$"},"./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg":function(C,h){C.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./packages/survey-core/src/images-v1/ModernBooleanCheckInd.svg":function(C,h){C.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./packages/survey-core/src/images-v1/ModernBooleanCheckUnchecked.svg":function(C,h){C.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./packages/survey-core/src/images-v1/ModernCheck.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./packages/survey-core/src/images-v1/ModernRadio.svg":function(C,h){C.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./packages/survey-core/src/images-v1/ProgressButton.svg":function(C,h){C.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./packages/survey-core/src/images-v1/RemoveFile.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./packages/survey-core/src/images-v1/TimerCircle.svg":function(C,h){C.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./packages/survey-core/src/images-v1/add-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 11H17V13H13V17H11V13H7V11H11V7H13V11ZM23 12C23 18.1 18.1 23 12 23C5.9 23 1 18.1 1 12C1 5.9 5.9 1 12 1C18.1 1 23 5.9 23 12ZM21 12C21 7 17 3 12 3C7 3 3 7 3 12C3 17 7 21 12 21C17 21 21 17 21 12Z"></path></svg>'},"./packages/survey-core/src/images-v1/arrowleft-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 8.99999H4.4L8.7 13.3L7.3 14.7L0.599998 7.99999L7.3 1.29999L8.7 2.69999L4.4 6.99999H15V8.99999Z"></path></svg>'},"./packages/survey-core/src/images-v1/arrowright-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.99999H11.6L7.3 2.69999L8.7 1.29999L15.4 7.99999L8.7 14.7L7.3 13.3L11.6 8.99999H1V6.99999Z"></path></svg>'},"./packages/survey-core/src/images-v1/camera-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.01 4H18.4C18.2 4 18.01 3.9 17.9 3.73L16.97 2.34C16.41 1.5 15.48 1 14.47 1H9.54C8.53 1 7.6 1.5 7.04 2.34L6.11 3.73C6 3.9 5.81 4 5.61 4H4C2.35 4 1 5.35 1 7V19C1 20.65 2.35 22 4 22H20C21.65 22 23 20.65 23 19V7C23 5.35 21.65 4 20 4H20.01ZM21.01 19C21.01 19.55 20.56 20 20.01 20H4.01C3.46 20 3.01 19.55 3.01 19V7C3.01 6.45 3.46 6 4.01 6H5.62C6.49 6 7.3 5.56 7.79 4.84L8.72 3.45C8.91 3.17 9.22 3 9.55 3H14.48C14.81 3 15.13 3.17 15.31 3.45L16.24 4.84C16.72 5.56 17.54 6 18.41 6H20.02C20.57 6 21.02 6.45 21.02 7V19H21.01ZM12.01 6C8.7 6 6.01 8.69 6.01 12C6.01 15.31 8.7 18 12.01 18C15.32 18 18.01 15.31 18.01 12C18.01 8.69 15.32 6 12.01 6ZM12.01 16C9.8 16 8.01 14.21 8.01 12C8.01 9.79 9.8 8 12.01 8C14.22 8 16.01 9.79 16.01 12C16.01 14.21 14.22 16 12.01 16ZM13.01 10C13.01 10.55 12.56 11 12.01 11C11.46 11 11.01 11.45 11.01 12C11.01 12.55 10.56 13 10.01 13C9.46 13 9.01 12.55 9.01 12C9.01 10.35 10.36 9 12.01 9C12.56 9 13.01 9.45 13.01 10Z"></path></svg>'},"./packages/survey-core/src/images-v1/camera-32x32.svg":function(C,h){C.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M27 6H23.8C23.34 6 22.92 5.77 22.66 5.39L22.25 4.78C21.51 3.66 20.26 3 18.92 3H13.06C11.72 3 10.48 3.67 9.73 4.78L9.32 5.39C9.07 5.77 8.64 6 8.18 6H4.98C2.79 6 1 7.79 1 10V24C1 26.21 2.79 28 5 28H27C29.21 28 31 26.21 31 24V10C31 7.79 29.21 6 27 6ZM29 24C29 25.1 28.1 26 27 26H5C3.9 26 3 25.1 3 24V10C3 8.9 3.9 8 5 8H8.2C9.33 8 10.38 7.44 11 6.5L11.41 5.89C11.78 5.33 12.41 5 13.07 5H18.93C19.6 5 20.22 5.33 20.59 5.89L21 6.5C21.62 7.44 22.68 8 23.8 8H27C28.1 8 29 8.9 29 10V24ZM16 9C12.13 9 9 12.13 9 16C9 19.87 12.13 23 16 23C19.87 23 23 19.87 23 16C23 12.13 19.87 9 16 9ZM16 21C13.24 21 11 18.76 11 16C11 13.24 13.24 11 16 11C18.76 11 21 13.24 21 16C21 18.76 18.76 21 16 21ZM17 13C17 13.55 16.55 14 16 14C14.9 14 14 14.9 14 16C14 16.55 13.55 17 13 17C12.45 17 12 16.55 12 16C12 13.79 13.79 12 16 12C16.55 12 17 12.45 17 13Z"></path></svg>'},"./packages/survey-core/src/images-v1/cancel-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.40005 14.6C0.600049 15.4 0.600049 16.6 1.40005 17.4L6.00005 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.80005L2.80005 16L6.20005 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.60005 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./packages/survey-core/src/images-v1/check-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.003 14.413L0.292999 9.70303L1.703 8.29303L5.003 11.583L14.293 2.29303L15.703 3.70303L5.003 14.413Z"></path></svg>'},"./packages/survey-core/src/images-v1/check-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 20.1L1 12L3.1 9.9L9 15.9L20.9 4L23 6.1L9 20.1Z"></path></svg>'},"./packages/survey-core/src/images-v1/chevrondown-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 15L17 10H7L12 15Z"></path></svg>'},"./packages/survey-core/src/images-v1/chevronright-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.64648 12.6465L6.34648 13.3465L11.7465 8.04648L6.34648 2.64648L5.64648 3.34648L10.2465 8.04648L5.64648 12.6465Z"></path></svg>'},"./packages/survey-core/src/images-v1/clear-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./packages/survey-core/src/images-v1/clear-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.40005 14.6C0.600049 15.4 0.600049 16.6 1.40005 17.4L6.00005 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.80005L2.80005 16L6.20005 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.60005 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./packages/survey-core/src/images-v1/close-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M9.43 8.0025L13.7 3.7225C14.09 3.3325 14.09 2.6925 13.7 2.2925C13.31 1.9025 12.67 1.9025 12.27 2.2925L7.99 6.5725L3.72 2.3025C3.33 1.9025 2.69 1.9025 2.3 2.3025C1.9 2.6925 1.9 3.3325 2.3 3.7225L6.58 8.0025L2.3 12.2825C1.91 12.6725 1.91 13.3125 2.3 13.7125C2.69 14.1025 3.33 14.1025 3.73 13.7125L8.01 9.4325L12.29 13.7125C12.68 14.1025 13.32 14.1025 13.72 13.7125C14.11 13.3225 14.11 12.6825 13.72 12.2825L9.44 8.0025H9.43Z"></path></svg>'},"./packages/survey-core/src/images-v1/close-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.4101 12L20.7001 4.71C21.0901 4.32 21.0901 3.69 20.7001 3.3C20.3101 2.91 19.6801 2.91 19.2901 3.3L12.0001 10.59L4.71006 3.29C4.32006 2.9 3.68006 2.9 3.29006 3.29C2.90006 3.68 2.90006 4.32 3.29006 4.71L10.5801 12L3.29006 19.29C2.90006 19.68 2.90006 20.31 3.29006 20.7C3.49006 20.9 3.74006 20.99 4.00006 20.99C4.26006 20.99 4.51006 20.89 4.71006 20.7L12.0001 13.41L19.2901 20.7C19.4901 20.9 19.7401 20.99 20.0001 20.99C20.2601 20.99 20.5101 20.89 20.7101 20.7C21.1001 20.31 21.1001 19.68 20.7101 19.29L13.4201 12H13.4101Z"></path></svg>'},"./packages/survey-core/src/images-v1/collapse-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2 6L3 5L8 10L13 5L14 6L8 12L2 6Z"></path></svg>'},"./packages/survey-core/src/images-v1/collapsedetails-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/delete-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 4H20H16V2C16 0.9 15.1 0 14 0H10C8.9 0 8 0.9 8 2V4H4H2V6H4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V6H22V4ZM10 2H14V4H10V2ZM18 20H6V6H8H16H18V20ZM14 8H16V18H14V8ZM11 8H13V18H11V8ZM8 8H10V18H8V8Z"></path></svg>'},"./packages/survey-core/src/images-v1/drag-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 6C13 4.9 13.9 4 15 4C16.1 4 17 4.9 17 6C17 7.1 16.1 8 15 8C13.9 8 13 7.1 13 6ZM9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM9 10C7.9 10 7 10.9 7 12C7 13.1 7.9 14 9 14C10.1 14 11 13.1 11 12C11 10.9 10.1 10 9 10ZM15 16C13.9 16 13 16.9 13 18C13 19.1 13.9 20 15 20C16.1 20 17 19.1 17 18C17 16.9 16.1 16 15 16ZM9 16C7.9 16 7 16.9 7 18C7 19.1 7.9 20 9 20C10.1 20 11 19.1 11 18C11 16.9 10.1 16 9 16Z"></path></svg>'},"./packages/survey-core/src/images-v1/draghorizontal-24x16.svg":function(C,h){C.exports='<svg viewBox="0 0 24 16" xmlns="http://www.w3.org/2000/svg"><path d="M18 9C19.1 9 20 9.9 20 11C20 12.1 19.1 13 18 13C16.9 13 16 12.1 16 11C16 9.9 16.9 9 18 9ZM20 5C20 3.9 19.1 3 18 3C16.9 3 16 3.9 16 5C16 6.1 16.9 7 18 7C19.1 7 20 6.1 20 5ZM14 11C14 9.9 13.1 9 12 9C10.9 9 10 9.9 10 11C10 12.1 10.9 13 12 13C13.1 13 14 12.1 14 11ZM14 5C14 3.9 13.1 3 12 3C10.9 3 10 3.9 10 5C10 6.1 10.9 7 12 7C13.1 7 14 6.1 14 5ZM8 11C8 9.9 7.1 9 6 9C4.9 9 4 9.9 4 11C4 12.1 4.9 13 6 13C7.1 13 8 12.1 8 11ZM8 5C8 3.9 7.1 3 6 3C4.9 3 4 3.9 4 5C4 6.1 4.9 7 6 7C7.1 7 8 6.1 8 5Z"></path></svg>'},"./packages/survey-core/src/images-v1/expand-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6 14L5 13L10 8L5 3L6 2L12 8L6 14Z"></path></svg>'},"./packages/survey-core/src/images-v1/expanddetails-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H9V3H7V7H3V9H7V13H9V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/file-72x72.svg":function(C,h){C.exports='<svg viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><path d="M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z"></path></svg>'},"./packages/survey-core/src/images-v1/flip-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M23 12.0037C23 14.2445 21.7794 16.3052 19.5684 17.8257C19.3984 17.9458 19.1983 18.0058 19.0082 18.0058C18.688 18.0058 18.3779 17.8557 18.1778 17.5756C17.8677 17.1155 17.9777 16.4953 18.4379 16.1852C20.0887 15.0448 21.0091 13.5643 21.0091 12.0138C21.0091 8.70262 16.9673 6.01171 12.005 6.01171C11.4948 6.01171 10.9945 6.04172 10.5043 6.09173L11.7149 7.30215C12.105 7.69228 12.105 8.32249 11.7149 8.71263C11.5148 8.9127 11.2647 9.00273 11.0045 9.00273C10.7444 9.00273 10.4943 8.90269 10.2942 8.71263L6.58254 5.00136L10.2842 1.2901C10.6744 0.899964 11.3047 0.899964 11.6949 1.2901C12.085 1.68023 12.085 2.31045 11.6949 2.70058L10.3042 4.09105C10.8545 4.03103 11.4147 4.00102 11.985 4.00102C18.0578 4.00102 22.99 7.59225 22.99 12.0037H23ZM12.2851 15.2949C11.895 15.685 11.895 16.3152 12.2851 16.7054L13.4957 17.9158C13.0055 17.9758 12.4952 17.9958 11.995 17.9958C7.03274 17.9958 2.99091 15.3049 2.99091 11.9937C2.99091 10.4332 3.90132 8.95271 5.56207 7.82232C6.02228 7.51222 6.13233 6.89201 5.82219 6.43185C5.51205 5.97169 4.89177 5.86166 4.43156 6.17176C2.22055 7.69228 1 9.76299 1 11.9937C1 16.4052 5.93224 19.9965 12.005 19.9965C12.5753 19.9965 13.1355 19.9665 13.6858 19.9064L12.2951 21.2969C11.905 21.6871 11.905 22.3173 12.2951 22.7074C12.4952 22.9075 12.7453 22.9975 13.0055 22.9975C13.2656 22.9975 13.5157 22.8975 13.7158 22.7074L17.4275 18.9961L13.7158 15.2849C13.3256 14.8947 12.6953 14.8947 12.3051 15.2849L12.2851 15.2949Z"></path></svg>'},"./packages/survey-core/src/images-v1/folder-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21.93 9H21V7C21 6.46957 20.7893 5.96086 20.4142 5.58579C20.0391 5.21071 19.5304 5 19 5H10L8 3H4C3.46957 3 2.96086 3.21071 2.58579 3.58579C2.21071 3.96086 2 4.46957 2 5L2 21H21L23.89 11.63C23.9916 11.3244 24.0179 10.9988 23.9667 10.6809C23.9155 10.363 23.7882 10.0621 23.5958 9.80392C23.4034 9.54571 23.1514 9.33779 22.8614 9.19782C22.5714 9.05786 22.2519 8.99 21.93 9ZM4 5H7.17L8.59 6.41L9.17 7H19V9H6L4 15V5ZM22 11L19.54 19H4.77L7.44 11H22Z"></path></svg>'},"./packages/survey-core/src/images-v1/fullsize-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12 13H4C2.9 13 2 12.1 2 11V5C2 3.9 2.9 3 4 3H12C13.1 3 14 3.9 14 5V11C14 12.1 13.1 13 12 13ZM4 5V11H12V5H4Z"></path></svg>'},"./packages/survey-core/src/images-v1/image-48x48.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M36 8H12C9.79 8 8 9.79 8 12V36C8 38.21 9.79 40 12 40H36C38.21 40 40 38.21 40 36V12C40 9.79 38.21 8 36 8ZM38 36C38 37.1 37.1 38 36 38H12C10.9 38 10 37.1 10 36V12C10 10.9 10.9 10 12 10H36C37.1 10 38 10.9 38 12V36ZM14 17C14 15.34 15.34 14 17 14C18.66 14 20 15.34 20 17C20 18.66 18.66 20 17 20C15.34 20 14 18.66 14 17ZM27 24L36 36H12L19 27L23 29L27 24Z"></path></svg>'},"./packages/survey-core/src/images-v1/loading-48x48.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_19679_369428)"><path opacity="0.1" d="M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z" fill="black" fill-opacity="0.91"></path><path d="M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z" fill="#19B394"></path></g><defs><clipPath id="clip0_19679_369428"><rect width="32" height="32" fill="white" transform="translate(8 8)"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v1/maximize-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6.71 10.71L4.42 13H6.01C6.56 13 7.01 13.45 7.01 14C7.01 14.55 6.56 15 6.01 15H2C1.45 15 1 14.55 1 14V10C1 9.45 1.45 9 2 9C2.55 9 3 9.45 3 10V11.59L5.29 9.3C5.68 8.91 6.31 8.91 6.7 9.3C7.09 9.69 7.09 10.32 6.7 10.71H6.71ZM14 1H10C9.45 1 9 1.45 9 2C9 2.55 9.45 3 10 3H11.59L9.3 5.29C8.91 5.68 8.91 6.31 9.3 6.7C9.5 6.9 9.75 6.99 10.01 6.99C10.27 6.99 10.52 6.89 10.72 6.7L13.01 4.41V6C13.01 6.55 13.46 7 14.01 7C14.56 7 15.01 6.55 15.01 6V2C15.01 1.45 14.56 1 14.01 1H14Z"></path></svg>'},"./packages/survey-core/src/images-v1/minimize-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 9H3C2.45 9 2 8.55 2 8C2 7.45 2.45 7 3 7H13C13.55 7 14 7.45 14 8C14 8.55 13.55 9 13 9Z"></path></svg>'},"./packages/survey-core/src/images-v1/more-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 12C6 13.1 5.1 14 4 14C2.9 14 2 13.1 2 12C2 10.9 2.9 10 4 10C5.1 10 6 10.9 6 12ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM20 10C18.9 10 18 10.9 18 12C18 13.1 18.9 14 20 14C21.1 14 22 13.1 22 12C22 10.9 21.1 10 20 10Z"></path></svg>'},"./packages/survey-core/src/images-v1/navmenu-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16 7H2V5H16V7ZM2 11V13H22V11H2ZM2 19H10V17H2V19Z"></path></svg>'},"./packages/survey-core/src/images-v1/noimage-48x48.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M14 17.01C14 16.4167 14.1759 15.8366 14.5056 15.3433C14.8352 14.8499 15.3038 14.4654 15.8519 14.2384C16.4001 14.0113 17.0033 13.9519 17.5853 14.0676C18.1672 14.1834 18.7018 14.4691 19.1213 14.8887C19.5409 15.3082 19.8266 15.8428 19.9424 16.4247C20.0581 17.0067 19.9987 17.6099 19.7716 18.1581C19.5446 18.7062 19.1601 19.1748 18.6667 19.5044C18.1734 19.8341 17.5933 20.01 17 20.01C16.2044 20.01 15.4413 19.6939 14.8787 19.1313C14.3161 18.5687 14 17.8056 14 17.01ZM27.09 24.14L20 36.01H36L27.09 24.14ZM36.72 8.14L35.57 10.01H36C36.5304 10.01 37.0391 10.2207 37.4142 10.5958C37.7893 10.9709 38 11.4796 38 12.01V36.01C38 36.5404 37.7893 37.0491 37.4142 37.4242C37.0391 37.7993 36.5304 38.01 36 38.01H18.77L17.57 40.01H36C37.0609 40.01 38.0783 39.5886 38.8284 38.8384C39.5786 38.0883 40 37.0709 40 36.01V12.01C39.9966 11.0765 39.6668 10.1737 39.0678 9.45778C38.4688 8.74188 37.6382 8.25802 36.72 8.09V8.14ZM36.86 4.5L12.86 44.5L11.14 43.5L13.23 40.01H12C10.9391 40.01 9.92172 39.5886 9.17157 38.8384C8.42143 38.0883 8 37.0709 8 36.01V12.01C8 10.9491 8.42143 9.93172 9.17157 9.18157C9.92172 8.43143 10.9391 8.01 12 8.01H32.43L35.14 3.5L36.86 4.5ZM14.43 38.01L15.63 36.01H12L19 27.01L20.56 27.8L31.23 10.01H12C11.4696 10.01 10.9609 10.2207 10.5858 10.5958C10.2107 10.9709 10 11.4796 10 12.01V36.01C10 36.5404 10.2107 37.0491 10.5858 37.4242C10.9609 37.7993 11.4696 38.01 12 38.01H14.43Z"></path></svg>'},"./packages/survey-core/src/images-v1/ranking-arrows.svg":function(C,h){C.exports='<svg viewBox="0 0 10 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 5L5 0L0 5H4V9H6V5H10Z"></path><path d="M6 19V15H4V19H0L5 24L10 19H6Z"></path></svg>'},"./packages/survey-core/src/images-v1/rankingundefined-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/rating-star-2.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.3981 33.1305L24 32.9206L23.6019 33.1305L15.8715 37.2059L17.3542 28.5663L17.43 28.1246L17.1095 27.8113L10.83 21.6746L19.4965 20.4049L19.9405 20.3399L20.1387 19.9373L24 12.0936L27.8613 19.9373L28.0595 20.3399L28.5035 20.4049L37.17 21.6746L30.8905 27.8113L30.57 28.1246L30.6458 28.5663L32.1285 37.2059L24.3981 33.1305Z" stroke-width="1.70746"></path></svg>'},"./packages/survey-core/src/images-v1/rating-star-small-2.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./packages/survey-core/src/images-v1/rating-star-small.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z"></path></g></svg>'},"./packages/survey-core/src/images-v1/rating-star.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z"></path></g></svg>'},"./packages/survey-core/src/images-v1/reorder-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M17 5L12 0L7 5H11V9H13V5H17Z"></path><path d="M13 19V15H11V19H7L12 24L17 19H13Z"></path></svg>'},"./packages/survey-core/src/images-v1/restoredown-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 6C15 6.55 14.55 7 14 7H10C9.45 7 9 6.55 9 6V2C9 1.45 9.45 1 10 1C10.55 1 11 1.45 11 2V3.59L13.29 1.29C13.49 1.09 13.74 1 14 1C14.26 1 14.51 1.1 14.71 1.29C15.1 1.68 15.1 2.31 14.71 2.7L12.42 4.99H14.01C14.56 4.99 15.01 5.44 15.01 5.99L15 6ZM6 9H2C1.45 9 0.999998 9.45 0.999998 10C0.999998 10.55 1.45 11 2 11H3.59L1.29 13.29C0.899998 13.68 0.899998 14.31 1.29 14.7C1.68 15.09 2.31 15.09 2.7 14.7L4.99 12.41V14C4.99 14.55 5.44 15 5.99 15C6.54 15 6.99 14.55 6.99 14V10C6.99 9.45 6.54 9 5.99 9H6Z"></path></svg>'},"./packages/survey-core/src/images-v1/search-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14 2C9.6 2 6 5.6 6 10C6 11.8 6.6 13.5 7.7 14.9L2.3 20.3C1.9 20.7 1.9 21.3 2.3 21.7C2.5 21.9 2.7 22 3 22C3.3 22 3.5 21.9 3.7 21.7L9.1 16.3C10.5 17.4 12.2 18 14 18C18.4 18 22 14.4 22 10C22 5.6 18.4 2 14 2ZM14 16C10.7 16 8 13.3 8 10C8 6.7 10.7 4 14 4C17.3 4 20 6.7 20 10C20 13.3 17.3 16 14 16Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate1-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate10-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate2-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.51001C4.47291 4.51001 4.08291 4.25001 3.94291 3.84001C3.76291 3.32001 4.03291 2.75001 4.55291 2.57001L8.32291 1.25001C8.84291 1.06001 9.41291 1.34001 9.59291 1.86001C9.77291 2.38001 9.50291 2.95001 8.98291 3.13001L5.20291 4.45001C5.09291 4.49001 4.98291 4.51001 4.87291 4.51001H4.88291ZM19.8129 3.89001C20.0229 3.38001 19.7729 2.79001 19.2629 2.59001L15.5529 1.07001C15.0429 0.860007 14.4529 1.11001 14.2529 1.62001C14.0429 2.13001 14.2929 2.72001 14.8029 2.92001L18.5029 4.43001C18.6229 4.48001 18.7529 4.50001 18.8829 4.50001C19.2729 4.50001 19.6529 4.27001 19.8129 3.88001V3.89001ZM3.50291 6.00001C2.64291 6.37001 1.79291 6.88001 1.00291 7.48001C0.79291 7.64001 0.64291 7.87001 0.59291 8.14001C0.48291 8.73001 0.87291 9.29001 1.45291 9.40001C2.04291 9.51001 2.60291 9.12001 2.71291 8.54001C2.87291 7.69001 3.12291 6.83001 3.50291 5.99001V6.00001ZM21.0429 8.55001C21.6029 10.48 24.2429 8.84001 22.7529 7.48001C21.9629 6.88001 21.1129 6.37001 20.2529 6.00001C20.6329 6.84001 20.8829 7.70001 21.0429 8.55001ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 10 11.8829 10C7.47291 10 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v1/smiley-rate3-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate4-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate5-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate6-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate7-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate8-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate9-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'}})})},"./build/survey-core/icons/iconsV2.js":function(B,R,D){/*!
+ * surveyjs - Survey JavaScript library v1.12.20
+ * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
+ * License: MIT (http://www.opensource.org/licenses/mit-license.php)
+ */(function(h,w){B.exports=w()})(this,function(){return function(C){var h={};function w(A){if(h[A])return h[A].exports;var k=h[A]={i:A,l:!1,exports:{}};return C[A].call(k.exports,k,k.exports,w),k.l=!0,k.exports}return w.m=C,w.c=h,w.d=function(A,k,le){w.o(A,k)||Object.defineProperty(A,k,{enumerable:!0,get:le})},w.r=function(A){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},w.t=function(A,k){if(k&1&&(A=w(A)),k&8||k&4&&typeof A=="object"&&A&&A.__esModule)return A;var le=Object.create(null);if(w.r(le),Object.defineProperty(le,"default",{enumerable:!0,value:A}),k&2&&typeof A!="string")for(var $ in A)w.d(le,$,(function(ie){return A[ie]}).bind(null,$));return le},w.n=function(A){var k=A&&A.__esModule?function(){return A.default}:function(){return A};return w.d(k,"a",k),k},w.o=function(A,k){return Object.prototype.hasOwnProperty.call(A,k)},w.p="",w(w.s="./packages/survey-core/src/iconsV2.ts")}({"./packages/survey-core/src/iconsV2.ts":function(C,h,w){w.r(h),w.d(h,"icons",function(){return k});var A=w("./packages/survey-core/src/images-v2 sync recursive \\.svg$"),k={};A.keys().forEach(function(le){k[le.substring(2,le.length-4).toLowerCase()]=A(le)})},"./packages/survey-core/src/images-v2 sync recursive \\.svg$":function(C,h,w){var A={"./ModernBooleanCheckChecked.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./packages/survey-core/src/images-v2/ModernCheck.svg","./ModernRadio.svg":"./packages/survey-core/src/images-v2/ModernRadio.svg","./ProgressButton.svg":"./packages/survey-core/src/images-v2/ProgressButton.svg","./RemoveFile.svg":"./packages/survey-core/src/images-v2/RemoveFile.svg","./TimerCircle.svg":"./packages/survey-core/src/images-v2/TimerCircle.svg","./add-24x24.svg":"./packages/survey-core/src/images-v2/add-24x24.svg","./arrowleft-16x16.svg":"./packages/survey-core/src/images-v2/arrowleft-16x16.svg","./arrowright-16x16.svg":"./packages/survey-core/src/images-v2/arrowright-16x16.svg","./camera-24x24.svg":"./packages/survey-core/src/images-v2/camera-24x24.svg","./camera-32x32.svg":"./packages/survey-core/src/images-v2/camera-32x32.svg","./cancel-24x24.svg":"./packages/survey-core/src/images-v2/cancel-24x24.svg","./check-16x16.svg":"./packages/survey-core/src/images-v2/check-16x16.svg","./check-24x24.svg":"./packages/survey-core/src/images-v2/check-24x24.svg","./chevrondown-24x24.svg":"./packages/survey-core/src/images-v2/chevrondown-24x24.svg","./chevronright-16x16.svg":"./packages/survey-core/src/images-v2/chevronright-16x16.svg","./clear-16x16.svg":"./packages/survey-core/src/images-v2/clear-16x16.svg","./clear-24x24.svg":"./packages/survey-core/src/images-v2/clear-24x24.svg","./close-16x16.svg":"./packages/survey-core/src/images-v2/close-16x16.svg","./close-24x24.svg":"./packages/survey-core/src/images-v2/close-24x24.svg","./collapse-16x16.svg":"./packages/survey-core/src/images-v2/collapse-16x16.svg","./collapsedetails-16x16.svg":"./packages/survey-core/src/images-v2/collapsedetails-16x16.svg","./delete-24x24.svg":"./packages/survey-core/src/images-v2/delete-24x24.svg","./drag-24x24.svg":"./packages/survey-core/src/images-v2/drag-24x24.svg","./draghorizontal-24x16.svg":"./packages/survey-core/src/images-v2/draghorizontal-24x16.svg","./expand-16x16.svg":"./packages/survey-core/src/images-v2/expand-16x16.svg","./expanddetails-16x16.svg":"./packages/survey-core/src/images-v2/expanddetails-16x16.svg","./file-72x72.svg":"./packages/survey-core/src/images-v2/file-72x72.svg","./flip-24x24.svg":"./packages/survey-core/src/images-v2/flip-24x24.svg","./folder-24x24.svg":"./packages/survey-core/src/images-v2/folder-24x24.svg","./fullsize-16x16.svg":"./packages/survey-core/src/images-v2/fullsize-16x16.svg","./image-48x48.svg":"./packages/survey-core/src/images-v2/image-48x48.svg","./loading-48x48.svg":"./packages/survey-core/src/images-v2/loading-48x48.svg","./maximize-16x16.svg":"./packages/survey-core/src/images-v2/maximize-16x16.svg","./minimize-16x16.svg":"./packages/survey-core/src/images-v2/minimize-16x16.svg","./more-24x24.svg":"./packages/survey-core/src/images-v2/more-24x24.svg","./navmenu-24x24.svg":"./packages/survey-core/src/images-v2/navmenu-24x24.svg","./noimage-48x48.svg":"./packages/survey-core/src/images-v2/noimage-48x48.svg","./ranking-arrows.svg":"./packages/survey-core/src/images-v2/ranking-arrows.svg","./rankingundefined-16x16.svg":"./packages/survey-core/src/images-v2/rankingundefined-16x16.svg","./rating-star-2.svg":"./packages/survey-core/src/images-v2/rating-star-2.svg","./rating-star-small-2.svg":"./packages/survey-core/src/images-v2/rating-star-small-2.svg","./rating-star-small.svg":"./packages/survey-core/src/images-v2/rating-star-small.svg","./rating-star.svg":"./packages/survey-core/src/images-v2/rating-star.svg","./reorder-24x24.svg":"./packages/survey-core/src/images-v2/reorder-24x24.svg","./restoredown-16x16.svg":"./packages/survey-core/src/images-v2/restoredown-16x16.svg","./search-24x24.svg":"./packages/survey-core/src/images-v2/search-24x24.svg","./smiley-rate1-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate1-24x24.svg","./smiley-rate10-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate10-24x24.svg","./smiley-rate2-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate2-24x24.svg","./smiley-rate3-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate3-24x24.svg","./smiley-rate4-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate4-24x24.svg","./smiley-rate5-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate5-24x24.svg","./smiley-rate6-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate6-24x24.svg","./smiley-rate7-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate7-24x24.svg","./smiley-rate8-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate8-24x24.svg","./smiley-rate9-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate9-24x24.svg"};function k($){var ie=le($);return w(ie)}function le($){if(!w.o(A,$)){var ie=new Error("Cannot find module '"+$+"'");throw ie.code="MODULE_NOT_FOUND",ie}return A[$]}k.keys=function(){return Object.keys(A)},k.resolve=le,C.exports=k,k.id="./packages/survey-core/src/images-v2 sync recursive \\.svg$"},"./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg":function(C,h){C.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./packages/survey-core/src/images-v2/ModernBooleanCheckInd.svg":function(C,h){C.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./packages/survey-core/src/images-v2/ModernBooleanCheckUnchecked.svg":function(C,h){C.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./packages/survey-core/src/images-v2/ModernCheck.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./packages/survey-core/src/images-v2/ModernRadio.svg":function(C,h){C.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./packages/survey-core/src/images-v2/ProgressButton.svg":function(C,h){C.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./packages/survey-core/src/images-v2/RemoveFile.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./packages/survey-core/src/images-v2/TimerCircle.svg":function(C,h){C.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./packages/survey-core/src/images-v2/add-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M15.75 12C15.75 12.41 15.41 12.75 15 12.75H12.75V15C12.75 15.41 12.41 15.75 12 15.75C11.59 15.75 11.25 15.41 11.25 15V12.75H9C8.59 12.75 8.25 12.41 8.25 12C8.25 11.59 8.59 11.25 9 11.25H11.25V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9V11.25H15C15.41 11.25 15.75 11.59 15.75 12ZM21.75 12C21.75 17.38 17.38 21.75 12 21.75C6.62 21.75 2.25 17.38 2.25 12C2.25 6.62 6.62 2.25 12 2.25C17.38 2.25 21.75 6.62 21.75 12ZM20.25 12C20.25 7.45 16.55 3.75 12 3.75C7.45 3.75 3.75 7.45 3.75 12C3.75 16.55 7.45 20.25 12 20.25C16.55 20.25 20.25 16.55 20.25 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/arrowleft-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.7475 7.9975C14.7475 8.4075 14.4075 8.7475 13.9975 8.7475H3.8075L7.5275 12.4675C7.8175 12.7575 7.8175 13.2375 7.5275 13.5275C7.3775 13.6775 7.1875 13.7475 6.9975 13.7475C6.8075 13.7475 6.6175 13.6775 6.4675 13.5275L1.4675 8.5275C1.1775 8.2375 1.1775 7.7575 1.4675 7.4675L6.4675 2.4675C6.7575 2.1775 7.2375 2.1775 7.5275 2.4675C7.8175 2.7575 7.8175 3.2375 7.5275 3.5275L3.8075 7.2475H13.9975C14.4075 7.2475 14.7475 7.5875 14.7475 7.9975Z"></path></svg>'},"./packages/survey-core/src/images-v2/arrowright-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.53 8.5275L9.53 13.5275C9.38 13.6775 9.19 13.7475 9 13.7475C8.81 13.7475 8.62 13.6775 8.47 13.5275C8.18 13.2375 8.18 12.7575 8.47 12.4675L12.19 8.7475H2C1.59 8.7475 1.25 8.4075 1.25 7.9975C1.25 7.5875 1.59 7.2475 2 7.2475H12.19L8.47 3.5275C8.18 3.2375 8.18 2.7575 8.47 2.4675C8.76 2.1775 9.24 2.1775 9.53 2.4675L14.53 7.4675C14.82 7.7575 14.82 8.2375 14.53 8.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/camera-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.19 4.25H17.12C16.72 4.25 16.35 4.03 16.17 3.67C15.73 2.8 14.86 2.25 13.88 2.25H10.12C9.14 2.25 8.27 2.79 7.83 3.67C7.65 4.03 7.29 4.25 6.88 4.25H4.81C3.4 4.25 2.25 5.4 2.25 6.81V18.19C2.25 19.6 3.4 20.75 4.81 20.75H19.19C20.6 20.75 21.75 19.6 21.75 18.19V6.81C21.75 5.4 20.6 4.25 19.19 4.25ZM20.25 18.19C20.25 18.77 19.78 19.25 19.19 19.25H4.81C4.23 19.25 3.75 18.78 3.75 18.19V6.81C3.75 6.23 4.22 5.75 4.81 5.75H6.88C7.86 5.75 8.73 5.21 9.17 4.33C9.35 3.97 9.71 3.75 10.12 3.75H13.88C14.28 3.75 14.65 3.97 14.83 4.33C15.27 5.2 16.14 5.75 17.12 5.75H19.19C19.77 5.75 20.25 6.22 20.25 6.81V18.19ZM12 6.25C8.83 6.25 6.25 8.83 6.25 12C6.25 15.17 8.83 17.75 12 17.75C15.17 17.75 17.75 15.17 17.75 12C17.75 8.83 15.17 6.25 12 6.25ZM12 16.25C9.66 16.25 7.75 14.34 7.75 12C7.75 9.66 9.66 7.75 12 7.75C14.34 7.75 16.25 9.66 16.25 12C16.25 14.34 14.34 16.25 12 16.25ZM14.75 12C14.75 13.52 13.52 14.75 12 14.75C11.59 14.75 11.25 14.41 11.25 14C11.25 13.59 11.59 13.25 12 13.25C12.69 13.25 13.25 12.69 13.25 12C13.25 11.59 13.59 11.25 14 11.25C14.41 11.25 14.75 11.59 14.75 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/camera-32x32.svg":function(C,h){C.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M25 7.25H22.19C21.73 7.25 21.31 7 21.09 6.59L20.89 6.22C20.23 5.01 18.97 4.25 17.59 4.25H14.41C13.03 4.25 11.77 5 11.11 6.22L10.91 6.6C10.69 7 10.27 7.26 9.81 7.26H7C4.93 7.26 3.25 8.94 3.25 11.01V24.01C3.25 26.08 4.93 27.76 7 27.76H25C27.07 27.76 28.75 26.08 28.75 24.01V11C28.75 8.93 27.07 7.25 25 7.25ZM27.25 24C27.25 25.24 26.24 26.25 25 26.25H7C5.76 26.25 4.75 25.24 4.75 24V11C4.75 9.76 5.76 8.75 7 8.75H9.81C10.82 8.75 11.75 8.2 12.23 7.31L12.43 6.94C12.82 6.21 13.58 5.76 14.41 5.76H17.59C18.42 5.76 19.18 6.21 19.57 6.94L19.77 7.31C20.25 8.2 21.18 8.76 22.19 8.76H25C26.24 8.76 27.25 9.77 27.25 11.01V24.01V24ZM16 10.25C12.28 10.25 9.25 13.28 9.25 17C9.25 20.72 12.28 23.75 16 23.75C19.72 23.75 22.75 20.72 22.75 17C22.75 13.28 19.72 10.25 16 10.25ZM16 22.25C13.11 22.25 10.75 19.89 10.75 17C10.75 14.11 13.11 11.75 16 11.75C18.89 11.75 21.25 14.11 21.25 17C21.25 19.89 18.89 22.25 16 22.25ZM19.75 17C19.75 19.07 18.07 20.75 16 20.75C15.59 20.75 15.25 20.41 15.25 20C15.25 19.59 15.59 19.25 16 19.25C17.24 19.25 18.25 18.24 18.25 17C18.25 16.59 18.59 16.25 19 16.25C19.41 16.25 19.75 16.59 19.75 17Z"></path></svg>'},"./packages/survey-core/src/images-v2/cancel-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.8099 11.75L15.2799 9.28C15.5699 8.99 15.5699 8.51 15.2799 8.22C14.9899 7.93 14.5099 7.93 14.2199 8.22L11.7499 10.69L9.27994 8.22C8.98994 7.93 8.50994 7.93 8.21994 8.22C7.92994 8.51 7.92994 8.99 8.21994 9.28L10.6899 11.75L8.21994 14.22C7.92994 14.51 7.92994 14.99 8.21994 15.28C8.36994 15.43 8.55994 15.5 8.74994 15.5C8.93994 15.5 9.12994 15.43 9.27994 15.28L11.7499 12.81L14.2199 15.28C14.3699 15.43 14.5599 15.5 14.7499 15.5C14.9399 15.5 15.1299 15.43 15.2799 15.28C15.5699 14.99 15.5699 14.51 15.2799 14.22L12.8099 11.75Z"></path></svg>'},"./packages/survey-core/src/images-v2/check-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.0275 5.0275L6.5275 12.5275C6.3775 12.6775 6.1875 12.7475 5.9975 12.7475C5.8075 12.7475 5.6175 12.6775 5.4675 12.5275L2.4675 9.5275C2.1775 9.2375 2.1775 8.7575 2.4675 8.4675C2.7575 8.1775 3.2375 8.1775 3.5275 8.4675L5.9975 10.9375L12.9675 3.9675C13.2575 3.6775 13.7375 3.6775 14.0275 3.9675C14.3175 4.2575 14.3175 4.7375 14.0275 5.0275Z"></path></svg>'},"./packages/survey-core/src/images-v2/check-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5275 7.5275L9.5275 17.5275C9.3775 17.6775 9.1875 17.7475 8.9975 17.7475C8.8075 17.7475 8.6175 17.6775 8.4675 17.5275L4.4675 13.5275C4.1775 13.2375 4.1775 12.7575 4.4675 12.4675C4.7575 12.1775 5.2375 12.1775 5.5275 12.4675L8.9975 15.9375L18.4675 6.4675C18.7575 6.1775 19.2375 6.1775 19.5275 6.4675C19.8175 6.7575 19.8175 7.2375 19.5275 7.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/chevrondown-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16.5275 10.5275L12.5275 14.5275C12.3775 14.6775 12.1875 14.7475 11.9975 14.7475C11.8075 14.7475 11.6175 14.6775 11.4675 14.5275L7.4675 10.5275C7.1775 10.2375 7.1775 9.7575 7.4675 9.4675C7.7575 9.1775 8.2375 9.1775 8.5275 9.4675L11.9975 12.9375L15.4675 9.4675C15.7575 9.1775 16.2375 9.1775 16.5275 9.4675C16.8175 9.7575 16.8175 10.2375 16.5275 10.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/chevronright-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.35 8.34627L7.35 12.3463C7.25 12.4463 7.12 12.4963 7 12.4963C6.88 12.4963 6.74 12.4463 6.65 12.3463C6.45 12.1463 6.45 11.8363 6.65 11.6363L10.3 7.98627L6.65 4.34627C6.45 4.15627 6.45 3.83627 6.65 3.64627C6.85 3.45627 7.16 3.44627 7.35 3.64627L11.35 7.64627C11.55 7.84627 11.55 8.15627 11.35 8.35627V8.34627Z"></path></svg>'},"./packages/survey-core/src/images-v2/clear-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12.35 11.65C12.55 11.85 12.55 12.16 12.35 12.36C12.25 12.46 12.12 12.51 12 12.51C11.88 12.51 11.74 12.46 11.65 12.36L8 8.71L4.35 12.36C4.25 12.46 4.12 12.51 4 12.51C3.88 12.51 3.74 12.46 3.65 12.36C3.45 12.16 3.45 11.85 3.65 11.65L7.3 8L3.65 4.35C3.45 4.16 3.45 3.84 3.65 3.65C3.85 3.46 4.16 3.45 4.35 3.65L8 7.3L11.65 3.65C11.85 3.45 12.16 3.45 12.36 3.65C12.56 3.85 12.56 4.16 12.36 4.36L8.71 8.01L12.36 11.66L12.35 11.65Z"></path></svg>'},"./packages/survey-core/src/images-v2/clear-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.12 10.9325C20.64 10.4125 20.93 9.7225 20.93 8.9925C20.93 8.2625 20.64 7.5725 20.12 7.0525L16.95 3.8825C15.88 2.8125 14.13 2.8125 13.06 3.8825L3.88 13.0525C3.36 13.5725 3.07 14.2625 3.07 14.9925C3.07 15.7225 3.36 16.4125 3.88 16.9325L5.64 18.6925C6.57 19.6225 7.78 20.0825 9 20.0825C10.22 20.0825 11.43 19.6225 12.36 18.6925L20.12 10.9325ZM14.12 4.9325C14.36 4.6925 14.67 4.5625 15 4.5625C15.33 4.5625 15.65 4.6925 15.88 4.9325L19.05 8.1025C19.54 8.5925 19.54 9.3825 19.05 9.8725L12.99 15.9325L8.05 10.9925L14.12 4.9325ZM6.7 17.6325L4.94 15.8725C4.45 15.3825 4.45 14.5925 4.94 14.1025L7 12.0425L11.94 16.9825L11.3 17.6225C10.07 18.8525 7.93 18.8525 6.7 17.6225V17.6325ZM22.75 20.9925C22.75 21.4025 22.41 21.7425 22 21.7425H14C13.59 21.7425 13.25 21.4025 13.25 20.9925C13.25 20.5825 13.59 20.2425 14 20.2425H22C22.41 20.2425 22.75 20.5825 22.75 20.9925ZM4.75 20.9925C4.75 21.4025 4.41 21.7425 4 21.7425H2C1.59 21.7425 1.25 21.4025 1.25 20.9925C1.25 20.5825 1.59 20.2425 2 20.2425H4C4.41 20.2425 4.75 20.5825 4.75 20.9925Z"></path></svg>'},"./packages/survey-core/src/images-v2/close-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.5275 12.4675C13.8175 12.7575 13.8175 13.2375 13.5275 13.5275C13.3775 13.6775 13.1875 13.7475 12.9975 13.7475C12.8075 13.7475 12.6175 13.6775 12.4675 13.5275L7.9975 9.0575L3.5275 13.5275C3.3775 13.6775 3.1875 13.7475 2.9975 13.7475C2.8075 13.7475 2.6175 13.6775 2.4675 13.5275C2.1775 13.2375 2.1775 12.7575 2.4675 12.4675L6.9375 7.9975L2.4675 3.5275C2.1775 3.2375 2.1775 2.7575 2.4675 2.4675C2.7575 2.1775 3.2375 2.1775 3.5275 2.4675L7.9975 6.9375L12.4675 2.4675C12.7575 2.1775 13.2375 2.1775 13.5275 2.4675C13.8175 2.7575 13.8175 3.2375 13.5275 3.5275L9.0575 7.9975L13.5275 12.4675Z"></path></svg>'},"./packages/survey-core/src/images-v2/close-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5275 18.4675C19.8175 18.7575 19.8175 19.2375 19.5275 19.5275C19.3775 19.6775 19.1875 19.7475 18.9975 19.7475C18.8075 19.7475 18.6175 19.6775 18.4675 19.5275L11.9975 13.0575L5.5275 19.5275C5.3775 19.6775 5.1875 19.7475 4.9975 19.7475C4.8075 19.7475 4.6175 19.6775 4.4675 19.5275C4.1775 19.2375 4.1775 18.7575 4.4675 18.4675L10.9375 11.9975L4.4675 5.5275C4.1775 5.2375 4.1775 4.7575 4.4675 4.4675C4.7575 4.1775 5.2375 4.1775 5.5275 4.4675L11.9975 10.9375L18.4675 4.4675C18.7575 4.1775 19.2375 4.1775 19.5275 4.4675C19.8175 4.7575 19.8175 5.2375 19.5275 5.5275L13.0575 11.9975L19.5275 18.4675Z"></path></svg>'},"./packages/survey-core/src/images-v2/collapse-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/collapsedetails-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/delete-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.75 9V17C12.75 17.41 12.41 17.75 12 17.75C11.59 17.75 11.25 17.41 11.25 17V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9ZM14.25 9V17C14.25 17.41 14.59 17.75 15 17.75C15.41 17.75 15.75 17.41 15.75 17V9C15.75 8.59 15.41 8.25 15 8.25C14.59 8.25 14.25 8.59 14.25 9ZM9 8.25C8.59 8.25 8.25 8.59 8.25 9V17C8.25 17.41 8.59 17.75 9 17.75C9.41 17.75 9.75 17.41 9.75 17V9C9.75 8.59 9.41 8.25 9 8.25ZM20.75 6C20.75 6.41 20.41 6.75 20 6.75H18.75V18C18.75 19.52 17.52 20.75 16 20.75H8C6.48 20.75 5.25 19.52 5.25 18V6.75H4C3.59 6.75 3.25 6.41 3.25 6C3.25 5.59 3.59 5.25 4 5.25H8.25V4C8.25 3.04 9.04 2.25 10 2.25H14C14.96 2.25 15.75 3.04 15.75 4V5.25H20C20.41 5.25 20.75 5.59 20.75 6ZM9.75 5.25H14.25V4C14.25 3.86 14.14 3.75 14 3.75H10C9.86 3.75 9.75 3.86 9.75 4V5.25ZM17.25 6.75H6.75V18C6.75 18.69 7.31 19.25 8 19.25H16C16.69 19.25 17.25 18.69 17.25 18V6.75Z"></path></svg>'},"./packages/survey-core/src/images-v2/drag-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 8.75C15.19 8.75 15.75 8.19 15.75 7.5C15.75 6.81 15.19 6.25 14.5 6.25C13.81 6.25 13.25 6.81 13.25 7.5C13.25 8.19 13.81 8.75 14.5 8.75ZM14.5 7.25C14.64 7.25 14.75 7.36 14.75 7.5C14.75 7.78 14.25 7.78 14.25 7.5C14.25 7.36 14.36 7.25 14.5 7.25ZM9.5 6.25C8.81 6.25 8.25 6.81 8.25 7.5C8.25 8.19 8.81 8.75 9.5 8.75C10.19 8.75 10.75 8.19 10.75 7.5C10.75 6.81 10.19 6.25 9.5 6.25ZM9.25 7.5C9.25 7.36 9.36 7.25 9.5 7.25C9.64 7.25 9.75 7.36 9.75 7.5C9.75 7.78 9.25 7.78 9.25 7.5ZM14.5 11.25C13.81 11.25 13.25 11.81 13.25 12.5C13.25 13.19 13.81 13.75 14.5 13.75C15.19 13.75 15.75 13.19 15.75 12.5C15.75 11.81 15.19 11.25 14.5 11.25ZM14.25 12.5C14.25 12.36 14.36 12.25 14.5 12.25C14.64 12.25 14.75 12.36 14.75 12.5C14.75 12.78 14.25 12.78 14.25 12.5ZM9.5 11.25C8.81 11.25 8.25 11.81 8.25 12.5C8.25 13.19 8.81 13.75 9.5 13.75C10.19 13.75 10.75 13.19 10.75 12.5C10.75 11.81 10.19 11.25 9.5 11.25ZM9.25 12.5C9.25 12.36 9.36 12.25 9.5 12.25C9.64 12.25 9.75 12.36 9.75 12.5C9.75 12.78 9.25 12.78 9.25 12.5ZM14.5 16.25C13.81 16.25 13.25 16.81 13.25 17.5C13.25 18.19 13.81 18.75 14.5 18.75C15.19 18.75 15.75 18.19 15.75 17.5C15.75 16.81 15.19 16.25 14.5 16.25ZM14.25 17.5C14.25 17.36 14.36 17.25 14.5 17.25C14.64 17.25 14.75 17.36 14.75 17.5C14.75 17.78 14.25 17.78 14.25 17.5ZM9.5 16.25C8.81 16.25 8.25 16.81 8.25 17.5C8.25 18.19 8.81 18.75 9.5 18.75C10.19 18.75 10.75 18.19 10.75 17.5C10.75 16.81 10.19 16.25 9.5 16.25ZM9.25 17.5C9.25 17.36 9.36 17.25 9.5 17.25C9.64 17.25 9.75 17.36 9.75 17.5C9.75 17.78 9.25 17.78 9.25 17.5Z"></path></svg>'},"./packages/survey-core/src/images-v2/draghorizontal-24x16.svg":function(C,h){C.exports='<svg viewBox="0 0 24 16" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 9.25C16.81 9.25 16.25 9.81 16.25 10.5C16.25 11.19 16.81 11.75 17.5 11.75C18.19 11.75 18.75 11.19 18.75 10.5C18.75 9.81 18.19 9.25 17.5 9.25ZM17.25 10.5C17.25 10.36 17.36 10.25 17.5 10.25C17.64 10.25 17.75 10.36 17.75 10.5C17.75 10.78 17.25 10.78 17.25 10.5ZM17.5 6.75C18.19 6.75 18.75 6.19 18.75 5.5C18.75 4.81 18.19 4.25 17.5 4.25C16.81 4.25 16.25 4.81 16.25 5.5C16.25 6.19 16.81 6.75 17.5 6.75ZM17.5 5.25C17.64 5.25 17.75 5.36 17.75 5.5C17.75 5.78 17.25 5.78 17.25 5.5C17.25 5.36 17.36 5.25 17.5 5.25ZM12.5 9.25C11.81 9.25 11.25 9.81 11.25 10.5C11.25 11.19 11.81 11.75 12.5 11.75C13.19 11.75 13.75 11.19 13.75 10.5C13.75 9.81 13.19 9.25 12.5 9.25ZM12.25 10.5C12.25 10.36 12.36 10.25 12.5 10.25C12.64 10.25 12.75 10.36 12.75 10.5C12.75 10.78 12.25 10.78 12.25 10.5ZM12.5 4.25C11.81 4.25 11.25 4.81 11.25 5.5C11.25 6.19 11.81 6.75 12.5 6.75C13.19 6.75 13.75 6.19 13.75 5.5C13.75 4.81 13.19 4.25 12.5 4.25ZM12.25 5.5C12.25 5.36 12.36 5.25 12.5 5.25C12.64 5.25 12.75 5.36 12.75 5.5C12.75 5.78 12.25 5.78 12.25 5.5ZM7.5 9.25C6.81 9.25 6.25 9.81 6.25 10.5C6.25 11.19 6.81 11.75 7.5 11.75C8.19 11.75 8.75 11.19 8.75 10.5C8.75 9.81 8.19 9.25 7.5 9.25ZM7.25 10.5C7.25 10.36 7.36 10.25 7.5 10.25C7.64 10.25 7.75 10.36 7.75 10.5C7.75 10.78 7.25 10.78 7.25 10.5ZM7.5 4.25C6.81 4.25 6.25 4.81 6.25 5.5C6.25 6.19 6.81 6.75 7.5 6.75C8.19 6.75 8.75 6.19 8.75 5.5C8.75 4.81 8.19 4.25 7.5 4.25ZM7.25 5.5C7.25 5.36 7.36 5.25 7.5 5.25C7.64 5.25 7.75 5.36 7.75 5.5C7.75 5.78 7.25 5.78 7.25 5.5Z"></path></svg>'},"./packages/survey-core/src/images-v2/expand-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/expanddetails-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/file-72x72.svg":function(C,h){C.exports='<svg viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><path d="M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z"></path></svg>'},"./packages/survey-core/src/images-v2/flip-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.53 17.4775C14.82 17.7675 14.82 18.2475 14.53 18.5375L11.53 21.5375C11.38 21.6875 11.19 21.7575 11 21.7575C10.81 21.7575 10.62 21.6875 10.47 21.5375C10.18 21.2475 10.18 20.7675 10.47 20.4775L12.2 18.7475C12.13 18.7475 12.07 18.7475 12 18.7475C6.62 18.7475 2.25 15.7475 2.25 12.0575C2.25 10.2975 3.22 8.6375 4.99 7.3875C5.33 7.1475 5.8 7.2275 6.03 7.5675C6.27 7.9075 6.19 8.3775 5.85 8.6075C4.49 9.5675 3.74 10.7875 3.74 12.0575C3.74 14.9175 7.44 17.2475 11.99 17.2475C12.05 17.2475 12.11 17.2475 12.17 17.2475L10.46 15.5375C10.17 15.2475 10.17 14.7675 10.46 14.4775C10.75 14.1875 11.23 14.1875 11.52 14.4775L14.52 17.4775H14.53ZM12 5.2575C11.93 5.2575 11.87 5.2575 11.8 5.2575L13.53 3.5275C13.82 3.2375 13.82 2.7575 13.53 2.4675C13.24 2.1775 12.76 2.1775 12.47 2.4675L9.47 5.4675C9.18 5.7575 9.18 6.2375 9.47 6.5275L12.47 9.5275C12.62 9.6775 12.81 9.7475 13 9.7475C13.19 9.7475 13.38 9.6775 13.53 9.5275C13.82 9.2375 13.82 8.7575 13.53 8.4675L11.82 6.7575C11.88 6.7575 11.94 6.7575 12 6.7575C16.55 6.7575 20.25 9.0875 20.25 11.9475C20.25 13.2075 19.5 14.4375 18.14 15.3975C17.8 15.6375 17.72 16.1075 17.96 16.4475C18.11 16.6575 18.34 16.7675 18.57 16.7675C18.72 16.7675 18.87 16.7275 19 16.6275C20.77 15.3775 21.75 13.7175 21.75 11.9575C21.75 8.2675 17.38 5.2675 12 5.2675V5.2575Z"></path></svg>'},"./packages/survey-core/src/images-v2/folder-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21.72 9.24C21.45 8.92 21.12 8.67 20.75 8.5V8C20.75 6.48 19.52 5.25 18 5.25H10.65C10.32 4.1 9.26 3.25 8 3.25H6C4.48 3.25 3.25 4.48 3.25 6V18C3.25 19.52 4.48 20.75 6 20.75H18.33C19.66 20.75 20.8 19.8 21.04 18.49L22.31 11.49C22.46 10.69 22.24 9.86 21.72 9.24ZM4.75 18V6C4.75 5.31 5.31 4.75 6 4.75H8C8.69 4.75 9.25 5.31 9.25 6C9.25 6.41 9.59 6.75 10 6.75H18C18.69 6.75 19.25 7.31 19.25 8V8.25H9.27C7.94 8.25 6.8 9.2 6.56 10.51L5.29 17.51C5.19 18.07 5.27 18.64 5.51 19.15C5.06 18.96 4.75 18.52 4.75 18ZM20.83 11.22L19.56 18.22C19.45 18.81 18.94 19.25 18.33 19.25H8C7.63 19.25 7.28 19.09 7.04 18.8C6.8 18.51 6.7 18.14 6.77 17.78L8.04 10.78C8.15 10.19 8.66 9.75 9.27 9.75H19.6C19.97 9.75 20.32 9.91 20.56 10.2C20.8 10.49 20.9 10.86 20.83 11.22Z"></path></svg>'},"./packages/survey-core/src/images-v2/fullsize-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12 3.25H4C3.04 3.25 2.25 4.04 2.25 5V11C2.25 11.96 3.04 12.75 4 12.75H12C12.96 12.75 13.75 11.96 13.75 11V5C13.75 4.04 12.96 3.25 12 3.25ZM12.25 11C12.25 11.14 12.14 11.25 12 11.25H4C3.86 11.25 3.75 11.14 3.75 11V5C3.75 4.86 3.86 4.75 4 4.75H12C12.14 4.75 12.25 4.86 12.25 5V11Z"></path></svg>'},"./packages/survey-core/src/images-v2/image-48x48.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M33 10.25H15C12.38 10.25 10.25 12.38 10.25 15V33C10.25 35.62 12.38 37.75 15 37.75H33C35.62 37.75 37.75 35.62 37.75 33V15C37.75 12.38 35.62 10.25 33 10.25ZM36.25 33C36.25 34.79 34.79 36.25 33 36.25H15C13.21 36.25 11.75 34.79 11.75 33V15C11.75 13.21 13.21 11.75 15 11.75H33C34.79 11.75 36.25 13.21 36.25 15V33ZM30.5 14.25C28.71 14.25 27.25 15.71 27.25 17.5C27.25 19.29 28.71 20.75 30.5 20.75C32.29 20.75 33.75 19.29 33.75 17.5C33.75 15.71 32.29 14.25 30.5 14.25ZM30.5 19.25C29.54 19.25 28.75 18.46 28.75 17.5C28.75 16.54 29.54 15.75 30.5 15.75C31.46 15.75 32.25 16.54 32.25 17.5C32.25 18.46 31.46 19.25 30.5 19.25ZM29.26 26.28C28.94 25.92 28.49 25.71 28.01 25.7C27.54 25.68 27.07 25.87 26.73 26.2L24.95 27.94L22.28 25.23C21.94 24.89 21.5 24.71 21 24.71C20.52 24.71 20.06 24.93 19.74 25.28L14.74 30.78C14.25 31.3 14.12 32.06 14.41 32.72C14.69 33.36 15.28 33.75 15.95 33.75H32.07C32.74 33.75 33.33 33.35 33.61 32.72C33.89 32.06 33.77 31.31 33.29 30.79L29.27 26.29L29.26 26.28ZM32.22 32.12C32.18 32.2 32.13 32.25 32.06 32.25H15.94C15.87 32.25 15.81 32.21 15.78 32.12C15.77 32.09 15.71 31.93 15.83 31.8L20.84 26.29C20.9 26.22 20.99 26.21 21.02 26.21C21.06 26.21 21.14 26.22 21.2 26.29L24.4 29.54C24.69 29.83 25.16 29.84 25.46 29.54L27.77 27.27C27.83 27.21 27.9 27.2 27.94 27.2C28.01 27.2 28.06 27.21 28.13 27.28L32.16 31.79C32.16 31.79 32.16 31.79 32.17 31.8C32.29 31.93 32.23 32.09 32.22 32.12Z"></path></svg>'},"./packages/survey-core/src/images-v2/loading-48x48.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_19679_369428)"><path opacity="0.1" d="M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z" fill="black" fill-opacity="0.91"></path><path d="M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z" fill="#19B394"></path></g><defs><clipPath id="clip0_19679_369428"><rect width="32" height="32" fill="white" transform="translate(8 8)"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v2/maximize-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.75 3V7C13.75 7.41 13.41 7.75 13 7.75C12.59 7.75 12.25 7.41 12.25 7V4.81L9.53 7.53C9.38 7.68 9.19 7.75 9 7.75C8.81 7.75 8.62 7.68 8.47 7.53C8.18 7.24 8.18 6.76 8.47 6.47L11.19 3.75H9C8.59 3.75 8.25 3.41 8.25 3C8.25 2.59 8.59 2.25 9 2.25H13C13.1 2.25 13.19 2.27 13.29 2.31C13.47 2.39 13.62 2.53 13.7 2.72C13.74 2.81 13.76 2.91 13.76 3.01L13.75 3ZM7.53 8.47C7.24 8.18 6.76 8.18 6.47 8.47L3.75 11.19V9C3.75 8.59 3.41 8.25 3 8.25C2.59 8.25 2.25 8.59 2.25 9V13C2.25 13.1 2.27 13.19 2.31 13.29C2.39 13.47 2.53 13.62 2.72 13.7C2.81 13.74 2.91 13.76 3.01 13.76H7.01C7.42 13.76 7.76 13.42 7.76 13.01C7.76 12.6 7.42 12.26 7.01 12.26H4.82L7.54 9.54C7.83 9.25 7.83 8.77 7.54 8.48L7.53 8.47Z"></path></svg>'},"./packages/survey-core/src/images-v2/minimize-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.75 8C13.75 8.41 13.41 8.75 13 8.75H3C2.59 8.75 2.25 8.41 2.25 8C2.25 7.59 2.59 7.25 3 7.25H13C13.41 7.25 13.75 7.59 13.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/more-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 10.25C11.04 10.25 10.25 11.04 10.25 12C10.25 12.96 11.04 13.75 12 13.75C12.96 13.75 13.75 12.96 13.75 12C13.75 11.04 12.96 10.25 12 10.25ZM11.75 12C11.75 11.86 11.86 11.75 12 11.75C12.14 11.75 12.25 11.86 12.25 12C12.25 12.28 11.75 12.28 11.75 12ZM19 10.25C18.04 10.25 17.25 11.04 17.25 12C17.25 12.96 18.04 13.75 19 13.75C19.96 13.75 20.75 12.96 20.75 12C20.75 11.04 19.96 10.25 19 10.25ZM18.75 12C18.75 11.86 18.86 11.75 19 11.75C19.14 11.75 19.25 11.86 19.25 12C19.25 12.28 18.75 12.28 18.75 12ZM5 10.25C4.04 10.25 3.25 11.04 3.25 12C3.25 12.96 4.04 13.75 5 13.75C5.96 13.75 6.75 12.96 6.75 12C6.75 11.04 5.96 10.25 5 10.25ZM4.75 12C4.75 11.86 4.86 11.75 5 11.75C5.14 11.75 5.25 11.86 5.25 12C5.25 12.28 4.75 12.28 4.75 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/navmenu-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3.25 7C3.25 6.59 3.59 6.25 4 6.25H15C15.41 6.25 15.75 6.59 15.75 7C15.75 7.41 15.41 7.75 15 7.75H4C3.59 7.75 3.25 7.41 3.25 7ZM20 11.25H4C3.59 11.25 3.25 11.59 3.25 12C3.25 12.41 3.59 12.75 4 12.75H20C20.41 12.75 20.75 12.41 20.75 12C20.75 11.59 20.41 11.25 20 11.25ZM9 16.25H4C3.59 16.25 3.25 16.59 3.25 17C3.25 17.41 3.59 17.75 4 17.75H9C9.41 17.75 9.75 17.41 9.75 17C9.75 16.59 9.41 16.25 9 16.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/noimage-48x48.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M30.4975 14.2475C28.7075 14.2475 27.2475 15.7075 27.2475 17.4975C27.2475 19.2875 28.7075 20.7475 30.4975 20.7475C32.2875 20.7475 33.7475 19.2875 33.7475 17.4975C33.7475 15.7075 32.2875 14.2475 30.4975 14.2475ZM30.4975 19.2475C29.5375 19.2475 28.7475 18.4575 28.7475 17.4975C28.7475 16.5375 29.5375 15.7475 30.4975 15.7475C31.4575 15.7475 32.2475 16.5375 32.2475 17.4975C32.2475 18.4575 31.4575 19.2475 30.4975 19.2475ZM13.5175 11.2175C13.4375 10.8075 13.7075 10.4175 14.1175 10.3375C14.4275 10.2775 14.7175 10.2475 14.9975 10.2475H32.9975C35.6175 10.2475 37.7475 12.3775 37.7475 14.9975V32.9975C37.7475 33.2775 37.7175 33.5675 37.6575 33.8775C37.5875 34.2375 37.2775 34.4875 36.9175 34.4875C36.8675 34.4875 36.8275 34.4875 36.7775 34.4775C36.3675 34.3975 36.1075 34.0075 36.1775 33.5975C36.2175 33.3775 36.2375 33.1775 36.2375 32.9975V14.9975C36.2375 13.2075 34.7775 11.7475 32.9875 11.7475H14.9975C14.8075 11.7475 14.6175 11.7675 14.3975 11.8075C13.9875 11.8875 13.5975 11.6175 13.5175 11.2075V11.2175ZM34.4775 36.7775C34.5575 37.1875 34.2875 37.5775 33.8775 37.6575C33.5675 37.7175 33.2775 37.7475 32.9975 37.7475H14.9975C12.3775 37.7475 10.2475 35.6175 10.2475 32.9975V14.9975C10.2475 14.7175 10.2775 14.4275 10.3375 14.1175C10.4175 13.7075 10.8075 13.4375 11.2175 13.5175C11.6275 13.5975 11.8875 13.9875 11.8175 14.3975C11.7775 14.6175 11.7575 14.8175 11.7575 14.9975V32.9975C11.7575 34.7875 13.2175 36.2475 15.0075 36.2475H33.0075C33.1975 36.2475 33.3875 36.2275 33.6075 36.1875C34.0075 36.1075 34.4075 36.3775 34.4875 36.7875L34.4775 36.7775ZM15.8275 31.7975C15.6975 31.9375 15.7575 32.0875 15.7775 32.1175C15.8175 32.1975 15.8675 32.2475 15.9375 32.2475H29.8175C30.2275 32.2475 30.5675 32.5875 30.5675 32.9975C30.5675 33.4075 30.2275 33.7475 29.8175 33.7475H15.9375C15.2675 33.7475 14.6775 33.3475 14.3975 32.7175C14.1075 32.0575 14.2375 31.2975 14.7275 30.7775L19.7275 25.2775C20.0475 24.9275 20.5075 24.7175 20.9875 24.7075C21.4875 24.7275 21.9375 24.8875 22.2675 25.2275L25.4675 28.4775C25.7575 28.7675 25.7575 29.2475 25.4675 29.5375C25.1675 29.8275 24.6975 29.8275 24.4075 29.5375L21.2075 26.2875C21.1475 26.2175 21.0675 26.1875 21.0275 26.2075C20.9875 26.2075 20.9075 26.2175 20.8475 26.2875L15.8375 31.7975H15.8275ZM38.5275 38.5275C38.3775 38.6775 38.1875 38.7475 37.9975 38.7475C37.8075 38.7475 37.6175 38.6775 37.4675 38.5275L9.4675 10.5275C9.1775 10.2375 9.1775 9.7575 9.4675 9.4675C9.7575 9.1775 10.2375 9.1775 10.5275 9.4675L38.5275 37.4675C38.8175 37.7575 38.8175 38.2375 38.5275 38.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/ranking-arrows.svg":function(C,h){C.exports='<svg viewBox="0 0 10 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 5L5 0L0 5H4V9H6V5H10Z"></path><path d="M6 19V15H4V19H0L5 24L10 19H6Z"></path></svg>'},"./packages/survey-core/src/images-v2/rankingundefined-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-2.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.3981 33.1305L24 32.9206L23.6019 33.1305L15.8715 37.2059L17.3542 28.5663L17.43 28.1246L17.1095 27.8113L10.83 21.6746L19.4965 20.4049L19.9405 20.3399L20.1387 19.9373L24 12.0936L27.8613 19.9373L28.0595 20.3399L28.5035 20.4049L37.17 21.6746L30.8905 27.8113L30.57 28.1246L30.6458 28.5663L32.1285 37.2059L24.3981 33.1305Z" stroke-width="1.70746"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-small-2.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-small.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z"></path></g></svg>'},"./packages/survey-core/src/images-v2/rating-star.svg":function(C,h){C.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z"></path></g></svg>'},"./packages/survey-core/src/images-v2/reorder-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M8.9444 10.75H15.0544C15.7144 10.75 16.3144 10.39 16.6144 9.80002C16.9144 9.22002 16.8644 8.52002 16.4844 7.98002L13.4244 3.71002C12.7644 2.79002 11.2344 2.79002 10.5744 3.71002L7.5244 7.99002C7.1444 8.53002 7.0944 9.22002 7.3944 9.81002C7.6944 10.4 8.2944 10.76 8.9544 10.76L8.9444 10.75ZM8.7444 8.86002L11.7944 4.58002C11.8644 4.49002 11.9544 4.48002 11.9944 4.48002C12.0344 4.48002 12.1344 4.49002 12.1944 4.58002L15.2544 8.86002C15.3344 8.97002 15.3044 9.07002 15.2744 9.12002C15.2444 9.17002 15.1844 9.26002 15.0544 9.26002H8.9444C8.8144 9.26002 8.7444 9.18002 8.7244 9.12002C8.7044 9.06002 8.6644 8.97002 8.7444 8.86002ZM15.0544 13.25H8.9444C8.2844 13.25 7.6844 13.61 7.3844 14.2C7.0844 14.78 7.1344 15.48 7.5144 16.02L10.5744 20.3C10.9044 20.76 11.4344 21.03 11.9944 21.03C12.5544 21.03 13.0944 20.76 13.4144 20.3L16.4744 16.02C16.8544 15.48 16.9044 14.79 16.6044 14.2C16.3044 13.61 15.7044 13.25 15.0444 13.25H15.0544ZM15.2644 15.15L12.2044 19.43C12.0744 19.61 11.9244 19.61 11.7944 19.43L8.7344 15.15C8.6544 15.04 8.6844 14.94 8.7144 14.89C8.7444 14.84 8.8044 14.75 8.9344 14.75H15.0444C15.1744 14.75 15.2444 14.83 15.2644 14.89C15.2844 14.95 15.3244 15.04 15.2444 15.15H15.2644Z"></path></svg>'},"./packages/survey-core/src/images-v2/restoredown-16x16.svg":function(C,h){C.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M7.69 8.71C7.73 8.8 7.75 8.9 7.75 9V13C7.75 13.41 7.41 13.75 7 13.75C6.59 13.75 6.25 13.41 6.25 13V10.81L3.53 13.53C3.38 13.68 3.19 13.75 3 13.75C2.81 13.75 2.62 13.68 2.47 13.53C2.18 13.24 2.18 12.76 2.47 12.47L5.19 9.75H3C2.59 9.75 2.25 9.41 2.25 9C2.25 8.59 2.59 8.25 3 8.25H7C7.1 8.25 7.19 8.27 7.29 8.31C7.47 8.39 7.62 8.53 7.7 8.72L7.69 8.71ZM13 6.25H10.81L13.53 3.53C13.82 3.24 13.82 2.76 13.53 2.47C13.24 2.18 12.76 2.18 12.47 2.47L9.75 5.19V3C9.75 2.59 9.41 2.25 9 2.25C8.59 2.25 8.25 2.59 8.25 3V7C8.25 7.1 8.27 7.19 8.31 7.29C8.39 7.47 8.53 7.62 8.72 7.7C8.81 7.74 8.91 7.76 9.01 7.76H13.01C13.42 7.76 13.76 7.42 13.76 7.01C13.76 6.6 13.42 6.26 13.01 6.26L13 6.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/search-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.9975 2.25C9.7275 2.25 6.2475 5.73 6.2475 10C6.2475 11.87 6.9075 13.58 8.0175 14.92L2.4675 20.47C2.1775 20.76 2.1775 21.24 2.4675 21.53C2.6175 21.68 2.8075 21.75 2.9975 21.75C3.1875 21.75 3.3775 21.68 3.5275 21.53L9.0775 15.98C10.4175 17.08 12.1275 17.75 13.9975 17.75C18.2675 17.75 21.7475 14.27 21.7475 10C21.7475 5.73 18.2675 2.25 13.9975 2.25ZM13.9975 16.25C10.5475 16.25 7.7475 13.45 7.7475 10C7.7475 6.55 10.5475 3.75 13.9975 3.75C17.4475 3.75 20.2475 6.55 20.2475 10C20.2475 13.45 17.4475 16.25 13.9975 16.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate1-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate10-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate2-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.51001C4.47291 4.51001 4.08291 4.25001 3.94291 3.84001C3.76291 3.32001 4.03291 2.75001 4.55291 2.57001L8.32291 1.25001C8.84291 1.06001 9.41291 1.34001 9.59291 1.86001C9.77291 2.38001 9.50291 2.95001 8.98291 3.13001L5.20291 4.45001C5.09291 4.49001 4.98291 4.51001 4.87291 4.51001H4.88291ZM19.8129 3.89001C20.0229 3.38001 19.7729 2.79001 19.2629 2.59001L15.5529 1.07001C15.0429 0.860007 14.4529 1.11001 14.2529 1.62001C14.0429 2.13001 14.2929 2.72001 14.8029 2.92001L18.5029 4.43001C18.6229 4.48001 18.7529 4.50001 18.8829 4.50001C19.2729 4.50001 19.6529 4.27001 19.8129 3.88001V3.89001ZM3.50291 6.00001C2.64291 6.37001 1.79291 6.88001 1.00291 7.48001C0.79291 7.64001 0.64291 7.87001 0.59291 8.14001C0.48291 8.73001 0.87291 9.29001 1.45291 9.40001C2.04291 9.51001 2.60291 9.12001 2.71291 8.54001C2.87291 7.69001 3.12291 6.83001 3.50291 5.99001V6.00001ZM21.0429 8.55001C21.6029 10.48 24.2429 8.84001 22.7529 7.48001C21.9629 6.88001 21.1129 6.37001 20.2529 6.00001C20.6329 6.84001 20.8829 7.70001 21.0429 8.55001ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 10 11.8829 10C7.47291 10 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v2/smiley-rate3-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate4-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate5-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate6-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate7-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate8-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate9-24x24.svg":function(C,h){C.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'}})})},"./src/entries/react-ui.ts":function(B,R,D){D.r(R),D.d(R,"Survey",function(){return Mt}),D.d(R,"attachKey2click",function(){return xn}),D.d(R,"ReactSurveyElementsWrapper",function(){return k}),D.d(R,"SurveyNavigationBase",function(){return Ht}),D.d(R,"SurveyTimerPanel",function(){return Ir}),D.d(R,"SurveyPage",function(){return xi}),D.d(R,"SurveyRow",function(){return we}),D.d(R,"SurveyPanel",function(){return ze}),D.d(R,"SurveyFlowPanel",function(){return Kn}),D.d(R,"SurveyQuestion",function(){return nn}),D.d(R,"SurveyElementErrors",function(){return rn}),D.d(R,"SurveyQuestionAndErrorsCell",function(){return Ci}),D.d(R,"ReactSurveyElement",function(){return ie}),D.d(R,"SurveyElementBase",function(){return $}),D.d(R,"SurveyQuestionElementBase",function(){return ce}),D.d(R,"SurveyQuestionCommentItem",function(){return nt}),D.d(R,"SurveyQuestionComment",function(){return wt}),D.d(R,"SurveyQuestionCheckbox",function(){return Ii}),D.d(R,"SurveyQuestionCheckboxItem",function(){return Dr}),D.d(R,"SurveyQuestionRanking",function(){return Ar}),D.d(R,"SurveyQuestionRankingItem",function(){return Di}),D.d(R,"SurveyQuestionRankingItemContent",function(){return Lr}),D.d(R,"RatingItem",function(){return jt}),D.d(R,"RatingItemStar",function(){return jr}),D.d(R,"RatingItemSmiley",function(){return Ai}),D.d(R,"RatingDropdownItem",function(){return fe}),D.d(R,"TagboxFilterString",function(){return Vn}),D.d(R,"SurveyQuestionOptionItem",function(){return Li}),D.d(R,"SurveyQuestionDropdownBase",function(){return Xn}),D.d(R,"SurveyQuestionDropdown",function(){return qr}),D.d(R,"SurveyQuestionTagboxItem",function(){return er}),D.d(R,"SurveyQuestionTagbox",function(){return Ut}),D.d(R,"SurveyQuestionDropdownSelect",function(){return Ye}),D.d(R,"SurveyQuestionMatrix",function(){return on}),D.d(R,"SurveyQuestionMatrixRow",function(){return Mi}),D.d(R,"SurveyQuestionMatrixCell",function(){return Ge}),D.d(R,"SurveyQuestionHtml",function(){return ji}),D.d(R,"SurveyQuestionFile",function(){return tr}),D.d(R,"SurveyFileChooseButton",function(){return Br}),D.d(R,"SurveyFilePreview",function(){return Tn}),D.d(R,"SurveyQuestionMultipleText",function(){return sn}),D.d(R,"SurveyQuestionRadiogroup",function(){return Rn}),D.d(R,"SurveyQuestionRadioItem",function(){return In}),D.d(R,"SurveyQuestionText",function(){return rr}),D.d(R,"SurveyQuestionBoolean",function(){return rt}),D.d(R,"SurveyQuestionBooleanCheckbox",function(){return or}),D.d(R,"SurveyQuestionBooleanRadio",function(){return Fi}),D.d(R,"SurveyQuestionEmpty",function(){return Hr}),D.d(R,"SurveyQuestionMatrixDropdownCell",function(){return Qi}),D.d(R,"SurveyQuestionMatrixDropdownBase",function(){return Ln}),D.d(R,"SurveyQuestionMatrixDropdown",function(){return Hi}),D.d(R,"SurveyQuestionMatrixDynamic",function(){return Ur}),D.d(R,"SurveyQuestionMatrixDynamicAddButton",function(){return cr}),D.d(R,"SurveyQuestionPanelDynamic",function(){return dr}),D.d(R,"SurveyProgress",function(){return ke}),D.d(R,"SurveyProgressButtons",function(){return hr}),D.d(R,"SurveyProgressToc",function(){return Zi}),D.d(R,"SurveyQuestionRating",function(){return Yi}),D.d(R,"SurveyQuestionRatingDropdown",function(){return un}),D.d(R,"SurveyQuestionExpression",function(){return Xe}),D.d(R,"PopupSurvey",function(){return qn}),D.d(R,"SurveyWindow",function(){return ss}),D.d(R,"ReactQuestionFactory",function(){return Ce}),D.d(R,"ReactElementFactory",function(){return A}),D.d(R,"SurveyQuestionImagePicker",function(){return I}),D.d(R,"SurveyQuestionImage",function(){return $r}),D.d(R,"SurveyQuestionSignaturePad",function(){return Jr}),D.d(R,"SurveyQuestionButtonGroup",function(){return as}),D.d(R,"SurveyQuestionCustom",function(){return _n}),D.d(R,"SurveyQuestionComposite",function(){return ro}),D.d(R,"Popup",function(){return Qe}),D.d(R,"ListItemContent",function(){return io}),D.d(R,"ListItemGroup",function(){return ot}),D.d(R,"List",function(){return Nn}),D.d(R,"TitleActions",function(){return Je}),D.d(R,"TitleElement",function(){return tt}),D.d(R,"SurveyActionBar",function(){return Re}),D.d(R,"LogoImage",function(){return ft}),D.d(R,"SurveyHeader",function(){return Or}),D.d(R,"SvgIcon",function(){return ge}),D.d(R,"SurveyQuestionMatrixDynamicRemoveButton",function(){return Zr}),D.d(R,"SurveyQuestionMatrixDetailButton",function(){return Kr}),D.d(R,"SurveyQuestionMatrixDynamicDragDropIcon",function(){return sr}),D.d(R,"SurveyQuestionPanelDynamicAddButton",function(){return Ui}),D.d(R,"SurveyQuestionPanelDynamicRemoveButton",function(){return Yr}),D.d(R,"SurveyQuestionPanelDynamicPrevButton",function(){return jn}),D.d(R,"SurveyQuestionPanelDynamicNextButton",function(){return Et}),D.d(R,"SurveyQuestionPanelDynamicProgressText",function(){return fr}),D.d(R,"SurveyNavigationButton",function(){return ei}),D.d(R,"QuestionErrorComponent",function(){return Fn}),D.d(R,"MatrixRow",function(){return Wt}),D.d(R,"Skeleton",function(){return Gt}),D.d(R,"NotifierComponent",function(){return Gn}),D.d(R,"ComponentsContainer",function(){return Pt}),D.d(R,"CharacterCounterComponent",function(){return Ot}),D.d(R,"HeaderMobile",function(){return Be}),D.d(R,"HeaderCell",function(){return gr}),D.d(R,"Header",function(){return co}),D.d(R,"SurveyLocStringViewer",function(){return Bn}),D.d(R,"SurveyLocStringEditor",function(){return re}),D.d(R,"LoadingIndicatorComponent",function(){return Pe}),D.d(R,"SvgBundleComponent",function(){return Si}),D.d(R,"PopupModal",function(){return Er}),D.d(R,"SurveyModel",function(){return C.SurveyModel}),D.d(R,"SurveyWindowModel",function(){return C.SurveyWindowModel}),D.d(R,"Model",function(){return C.SurveyModel}),D.d(R,"settings",function(){return C.settings}),D.d(R,"surveyLocalization",function(){return C.surveyLocalization}),D.d(R,"surveyStrings",function(){return C.surveyStrings});var C=D("survey-core"),h=D("react"),w=D.n(h),A=function(){function p(){this.creatorHash={}}return p.prototype.registerElement=function(l,a){this.creatorHash[l]=a},p.prototype.getAllTypes=function(){var l=new Array;for(var a in this.creatorHash)l.push(a);return l.sort()},p.prototype.isElementRegistered=function(l){return!!this.creatorHash[l]},p.prototype.createElement=function(l,a){var c=this.creatorHash[l];return c==null?null:c(a)},p.Instance=new p,p}(),k=function(){function p(){}return p.wrapRow=function(l,a,c){var f=l.getRowWrapperComponentName(c),g=l.getRowWrapperComponentData(c);return A.Instance.createElement(f,{element:a,row:c,componentData:g})},p.wrapElement=function(l,a,c){var f=l.getElementWrapperComponentName(c),g=l.getElementWrapperComponentData(c);return A.Instance.createElement(f,{element:a,question:c,componentData:g})},p.wrapQuestionContent=function(l,a,c){var f=l.getQuestionContentWrapperComponentName(c),g=l.getElementWrapperComponentData(c);return A.Instance.createElement(f,{element:a,question:c,componentData:g})},p.wrapItemValue=function(l,a,c,f){var g=l.getItemValueWrapperComponentName(f,c),L=l.getItemValueWrapperComponentData(f,c);return A.Instance.createElement(g,{key:a==null?void 0:a.key,element:a,question:c,item:f,componentData:L})},p.wrapMatrixCell=function(l,a,c,f){f===void 0&&(f="cell");var g=l.getElementWrapperComponentName(c,f),L=l.getElementWrapperComponentData(c,f);return A.Instance.createElement(g,{element:a,cell:c,componentData:L})},p}();C.SurveyModel.platform="react";var le=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),$=function(p){le(l,p);function l(a){var c=p.call(this,a)||this;return c._allowComponentUpdate=!0,c.prevStateElements=[],c}return l.renderLocString=function(a,c,f){return c===void 0&&(c=null),A.Instance.createElement(a.renderAs,{locStr:a.renderAsData,style:c,key:f})},l.renderQuestionDescription=function(a){var c=l.renderLocString(a.locDescription);return h.createElement("div",{style:a.hasDescription?void 0:{display:"none"},id:a.ariaDescriptionId,className:a.cssDescription},c)},l.prototype.componentDidMount=function(){this.makeBaseElementsReact()},l.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact(),this.disableStateElementsRerenderEvent(this.getStateElements())},l.prototype.componentDidUpdate=function(a,c){var f;this.makeBaseElementsReact();var g=this.getStateElements();this.disableStateElementsRerenderEvent(((f=this.prevStateElements)!==null&&f!==void 0?f:[]).filter(function(L){return!g.includes(L)})),this.prevStateElements=[],this.getStateElements().forEach(function(L){L.afterRerender()})},l.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},l.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},l.prototype.shouldComponentUpdate=function(a,c){return this._allowComponentUpdate&&(this.unMakeBaseElementsReact(),this.prevStateElements=this.getStateElements()),this._allowComponentUpdate},l.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var a=this.renderElement();return this.startEndRendering(-1),a&&(a=this.wrapElement(a)),this.changedStatePropNameValue=void 0,a},l.prototype.wrapElement=function(a){return a},Object.defineProperty(l.prototype,"isRendering",{get:function(){for(var a=this.getRenderedElements(),c=0,f=a;c<f.length;c++){var g=f[c];if(g.reactRendering>0)return!0}return!1},enumerable:!1,configurable:!0}),l.prototype.getRenderedElements=function(){return this.getStateElements()},l.prototype.startEndRendering=function(a){for(var c=this.getRenderedElements(),f=0,g=c;f<g.length;f++){var L=g[f];L.reactRendering||(L.reactRendering=0),L.reactRendering+=a}},l.prototype.canRender=function(){return!0},l.prototype.renderElement=function(){return null},Object.defineProperty(l.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),l.prototype.makeBaseElementsReact=function(){for(var a=this.getStateElements(),c=0;c<a.length;c++)a[c].enableOnElementRerenderedEvent(),this.makeBaseElementReact(a[c])},l.prototype.unMakeBaseElementsReact=function(){for(var a=this.getStateElements(),c=0;c<a.length;c++)this.unMakeBaseElementReact(a[c])},l.prototype.disableStateElementsRerenderEvent=function(a){a.forEach(function(c){c.disableOnElementRerenderedEvent()})},l.prototype.getStateElements=function(){var a=this.getStateElement();return a?[a]:[]},l.prototype.getStateElement=function(){return null},Object.defineProperty(l.prototype,"isDisplayMode",{get:function(){var a=this.props;return a.isDisplayMode||!1},enumerable:!1,configurable:!0}),l.prototype.renderLocString=function(a,c,f){return c===void 0&&(c=null),l.renderLocString(a,c,f)},l.prototype.canMakeReact=function(a){return!!a&&!!a.iteratePropertiesHash},l.prototype.makeBaseElementReact=function(a){var c=this;this.canMakeReact(a)&&(a.iteratePropertiesHash(function(f,g){if(c.canUsePropInState(g)){var L=f[g];if(Array.isArray(L)){var L=L;L.onArrayChanged=function(H){c.isRendering||(c.changedStatePropNameValue=g,c.setState(function(ye){var ae={};return ae[g]=L,ae}))}}}}),a.setPropertyValueCoreHandler=function(f,g,L){if(f[g]!==L){if(f[g]=L,!c.canUsePropInState(g)||c.isRendering)return;c.changedStatePropNameValue=g,c.setState(function(F){var H={};return H[g]=L,H})}})},l.prototype.canUsePropInState=function(a){return!0},l.prototype.unMakeBaseElementReact=function(a){this.canMakeReact(a)&&(a.setPropertyValueCoreHandler=void 0,a.iteratePropertiesHash(function(c,f){var g=c[f];if(Array.isArray(g)){var g=g;g.onArrayChanged=function(){}}}))},l}(h.Component),ie=function(p){le(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),l}($),ce=function(p){le(l,p);function l(a){return p.call(this,a)||this}return l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.updateDomElement()},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.updateDomElement()},l.prototype.componentWillUnmount=function(){if(p.prototype.componentWillUnmount.call(this),this.questionBase){var a=this.content||this.control;this.questionBase.beforeDestroyQuestionElement(a),a&&a.removeAttribute("data-rendered")}},l.prototype.updateDomElement=function(){var a=this.content||this.control;a&&a.getAttribute("data-rendered")!=="r"&&(a.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(a))},Object.defineProperty(l.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},l.prototype.shouldComponentUpdate=function(a,c){return p.prototype.shouldComponentUpdate.call(this,a,c)?!this.questionBase.customWidget||!!this.questionBase.customWidgetData.isNeedRender||!!this.questionBase.customWidget.widgetJson.isDefaultRender||!!this.questionBase.customWidget.widgetJson.render:!1},Object.defineProperty(l.prototype,"isDisplayMode",{get:function(){var a=this.props;return a.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),l.prototype.wrapCell=function(a,c,f){if(!f)return c;var g=this.questionBase.survey,L=null;return g&&(L=k.wrapMatrixCell(g,c,a,f)),L??c},l.prototype.setControl=function(a){a&&(this.control=a)},l.prototype.setContent=function(a){a&&(this.content=a)},l}($),We=function(p){le(l,p);function l(a){var c=p.call(this,a)||this;return c.updateValueOnEvent=function(f){C.Helpers.isTwoValueEquals(c.questionBase.value,f.target.value,!1,!0,!1)||c.setValueCore(f.target.value)},c.updateValueOnEvent=c.updateValueOnEvent.bind(c),c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.setValueCore=function(a){this.questionBase.value=a},l.prototype.getValueCore=function(){return this.questionBase.value},l.prototype.updateDomElement=function(){if(this.control){var a=this.control,c=this.getValueCore();C.Helpers.isTwoValueEquals(c,a.value,!1,!0,!1)||(a.value=this.getValue(c))}p.prototype.updateDomElement.call(this)},l.prototype.getValue=function(a){return C.Helpers.isValueEmpty(a)?"":a},l}(ce),be=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),pe=function(p){be(l,p);function l(a){var c=p.call(this,a)||this;return c.element.cssClasses,c.rootRef=h.createRef(),c}return l.prototype.getStateElement=function(){return this.element},Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.rootRef.current&&this.element.setWrapperElement(this.rootRef.current)},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.element.setWrapperElement(void 0)},l.prototype.shouldComponentUpdate=function(a,c){return p.prototype.shouldComponentUpdate.call(this,a,c)?(a.element!==this.element&&(a.element&&a.element.setWrapperElement(this.rootRef.current),this.element&&this.element.setWrapperElement(void 0)),this.element.cssClasses,!0):!1},l.prototype.renderElement=function(){var a=this.element,c=this.createElement(a,this.index),f=a.cssClassesValue,g=function(){var L=a;L&&L.isQuestion&&L.focusIn()};return h.createElement("div",{className:f.questionWrapper,style:a.rootStyle,"data-key":c.key,key:c.key,onFocus:g,ref:this.rootRef},c)},l.prototype.createElement=function(a,c){var f=c?"-"+c:0;if(!this.row.isNeedRender)return A.Instance.createElement(a.skeletonComponentName,{key:a.name+f,element:a,css:this.css});var g=a.getTemplate();return A.Instance.isElementRegistered(g)||(g="question"),A.Instance.createElement(g,{key:a.name+f,element:a,creator:this.creator,survey:this.survey,css:this.css})},l}($),x=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),we=function(p){x(l,p);function l(a){var c=p.call(this,a)||this;return c.rootRef=h.createRef(),c.recalculateCss(),c}return l.prototype.recalculateCss=function(){this.row.visibleElements.map(function(a){return a.cssClasses})},l.prototype.getStateElement=function(){return this.row},Object.defineProperty(l.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator},l.prototype.renderElementContent=function(){var a=this,c=this.row.visibleElements.map(function(f,g){var L=g?"-"+g:0,F=f.name+L;return h.createElement(pe,{element:f,index:g,row:a.row,survey:a.survey,creator:a.creator,css:a.css,key:F})});return h.createElement("div",{ref:this.rootRef,className:this.row.getRowCss()},c)},l.prototype.renderElement=function(){var a=this.survey,c=this.renderElementContent(),f=k.wrapRow(a,c,this.row);return f||c},l.prototype.componentDidMount=function(){var a=this;p.prototype.componentDidMount.call(this);var c=this.rootRef.current;if(this.rootRef.current&&this.row.setRootElement(this.rootRef.current),c&&!this.row.isNeedRender){var f=c;setTimeout(function(){a.row.startLazyRendering(f)},10)}},l.prototype.shouldComponentUpdate=function(a,c){return p.prototype.shouldComponentUpdate.call(this,a,c)?(a.row!==this.row&&(a.row.isNeedRender=this.row.isNeedRender,a.row.setRootElement(this.rootRef.current),this.row.setRootElement(void 0),this.stopLazyRendering()),this.recalculateCss(),!0):!1},l.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.row.setRootElement(void 0),this.stopLazyRendering()},l.prototype.createElement=function(a,c){var f=c?"-"+c:0,g=a.getType();return A.Instance.isElementRegistered(g)||(g="question"),A.Instance.createElement(g,{key:a.name+f,element:a,creator:this.creator,survey:this.survey,css:this.css})},l}($),me=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),lt=function(p){me(l,p);function l(a){var c=p.call(this,a)||this;return c.rootRef=h.createRef(),c}return l.prototype.getStateElement=function(){return this.panelBase},l.prototype.canUsePropInState=function(a){return a!=="elements"&&p.prototype.canUsePropInState.call(this,a)},Object.defineProperty(l.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),l.prototype.getPanelBase=function(){return this.props.element||this.props.question},l.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},l.prototype.getCss=function(){return this.props.css},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.doAfterRender()},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this);var a=this.rootRef.current;a&&a.removeAttribute("data-rendered")},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),!(a.page&&this.survey&&this.survey.activePage&&a.page.id===this.survey.activePage.id)&&this.doAfterRender()},l.prototype.doAfterRender=function(){var a=this.rootRef.current;a&&this.survey&&(this.panelBase.isPanel?this.panelBase.afterRender(a):this.survey.afterRenderPage(a))},l.prototype.getIsVisible=function(){return this.panelBase.isVisible},l.prototype.canRender=function(){return p.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&!!this.panelBase.survey&&this.getIsVisible()},l.prototype.renderRows=function(a){var c=this;return this.panelBase.visibleRows.map(function(f){return c.createRow(f,a)})},l.prototype.createRow=function(a,c){return h.createElement(we,{key:a.id,row:a,survey:this.survey,creator:this.creator,css:c})},l}($),Fe=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ge=function(p){Fe(l,p);function l(a){var c=p.call(this,a)||this;return c.svgIconRef=w.a.createRef(),c}return l.prototype.updateSvg=function(){this.props.iconName&&Object(C.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},l.prototype.componentDidUpdate=function(){this.updateSvg()},l.prototype.render=function(){var a="sv-svg-icon";return this.props.className&&(a+=" "+this.props.className),this.props.iconName?w.a.createElement("svg",{className:a,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img"},w.a.createElement("use",null)):null},l.prototype.componentDidMount=function(){this.updateSvg()},l}(w.a.Component);A.Instance.registerElement("sv-svg-icon",function(p){return w.a.createElement(ge,p)});var en=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ke=function(p){en(l,p);function l(a){return p.call(this,a)||this}return l.prototype.render=function(){var a="sv-action-bar-separator "+this.props.cssClasses;return w.a.createElement("div",{className:a})},l}(w.a.Component);A.Instance.registerElement("sv-action-bar-separator",function(p){return w.a.createElement(Ke,p)});var vt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),$e=function(p){vt(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.renderElement=function(){var a=this.item.getActionRootCss(),c=this.item.needSeparator?w.a.createElement(Ke,null):null,f=A.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return w.a.createElement("div",{className:a,id:this.item.id},w.a.createElement("div",{className:"sv-action__content"},c,f))},l}($),ut=function(p){vt(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.renderElement=function(){return w.a.createElement(w.a.Fragment,null,this.renderInnerButton())},l.prototype.renderText=function(){if(!this.item.hasTitle)return null;var a=this.item.getActionBarItemTitleCss();return w.a.createElement("span",{className:a},this.item.title)},l.prototype.renderButtonContent=function(){var a=this.renderText(),c=this.item.iconName?w.a.createElement(ge,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return w.a.createElement(w.a.Fragment,null,c,a)},l.prototype.renderInnerButton=function(){var a=this,c=this.item.getActionBarItemCss(),f=this.item.tooltip||this.item.title,g=this.renderButtonContent(),L=this.item.disableTabStop?-1:void 0,F=xn(w.a.createElement("button",{className:c,type:"button",disabled:this.item.disabled,onMouseDown:function(H){return a.item.doMouseDown(H)},onFocus:function(H){return a.item.doFocus(H)},onClick:function(H){return a.item.doAction(H)},title:f,tabIndex:L,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},g),this.item,{processEsc:!1});return F},l}($);A.Instance.registerElement("sv-action-bar-item",function(p){return w.a.createElement(ut,p)});var ht=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Qe=function(p){ht(l,p);function l(a){var c=p.call(this,a)||this;return c.containerRef=w.a.createRef(),c.createModel(),c}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.model},l.prototype.createModel=function(){this.popup=Object(C.createPopupViewModel)(this.props.model)},l.prototype.setTargetElement=function(){var a=this.containerRef.current;this.popup.setComponentElement(a)},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.setTargetElement()},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.setTargetElement()},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.popup.resetComponentElement()},l.prototype.shouldComponentUpdate=function(a,c){var f;if(!p.prototype.shouldComponentUpdate.call(this,a,c))return!1;var g=a.model!==this.popup.model;return g&&((f=this.popup)===null||f===void 0||f.dispose(),this.createModel()),g},l.prototype.render=function(){this.popup.model=this.model;var a;return this.model.isModal?a=w.a.createElement(bt,{model:this.popup}):a=w.a.createElement(Rt,{model:this.popup}),w.a.createElement("div",{ref:this.containerRef},a)},l}($);A.Instance.registerElement("sv-popup",function(p){return w.a.createElement(Qe,p)});var bt=function(p){ht(l,p);function l(a){var c=p.call(this,a)||this;return c.handleKeydown=function(f){c.model.onKeyDown(f)},c.clickInside=function(f){f.stopPropagation()},c}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.model},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),!this.model.isPositionSet&&this.model.isVisible&&this.model.updateOnShowing()},l.prototype.renderContainer=function(a){var c=this,f=a.showHeader?this.renderHeaderPopup(a):null,g=a.title?this.renderHeaderContent():null,L=this.renderContent(),F=a.showFooter?this.renderFooter(this.model):null;return w.a.createElement("div",{className:"sv-popup__container",style:{left:a.left,top:a.top,height:a.height,width:a.width,minWidth:a.minWidth},onClick:function(H){c.clickInside(H)}},f,w.a.createElement("div",{className:"sv-popup__body-content"},g,w.a.createElement("div",{className:"sv-popup__scrolling-content"},L),F))},l.prototype.renderHeaderContent=function(){return w.a.createElement("div",{className:"sv-popup__body-header"},this.model.title)},l.prototype.renderContent=function(){var a=A.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return w.a.createElement("div",{className:"sv-popup__content"},a)},l.prototype.renderHeaderPopup=function(a){return null},l.prototype.renderFooter=function(a){return w.a.createElement("div",{className:"sv-popup__body-footer"},w.a.createElement(Re,{model:a.footerToolbar}))},l.prototype.render=function(){var a=this,c=this.renderContainer(this.model),f=new C.CssClassBuilder().append("sv-popup").append(this.model.styleClass).toString(),g={display:this.model.isVisible?"":"none"};return w.a.createElement("div",{tabIndex:-1,className:f,style:g,onClick:function(L){a.model.clickOutside(L)},onKeyDown:this.handleKeydown},c)},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.model.isVisible&&this.model.updateOnShowing()},l}($),Rt=function(p){ht(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.renderHeaderPopup=function(a){var c=a;return c?w.a.createElement("span",{style:{left:c.pointerTarget.left,top:c.pointerTarget.top},className:"sv-popup__pointer"}):null},l}(bt),je=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),j=function(p){je(l,p);function l(a){return p.call(this,a)||this}return l.prototype.renderInnerButton=function(){var a=p.prototype.renderInnerButton.call(this);return w.a.createElement(w.a.Fragment,null,a,w.a.createElement(Qe,{model:this.item.popupModel}))},l.prototype.componentDidMount=function(){this.viewModel=new C.ActionDropdownViewModel(this.item)},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},l}(ut);A.Instance.registerElement("sv-action-bar-item-dropdown",function(p){return w.a.createElement(j,p)});var wn=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Re=function(p){wn(l,p);function l(a){var c=p.call(this,a)||this;return c.rootRef=w.a.createRef(),c}return Object.defineProperty(l.prototype,"handleClick",{get:function(){return this.props.handleClick!==void 0?this.props.handleClick:!0},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){if(p.prototype.componentDidMount.call(this),!!this.model.hasActions){var a=this.rootRef.current;a&&this.model.initResponsivityManager(a,function(c){setTimeout(c,100)})}},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.model.resetResponsivityManager()},l.prototype.componentDidUpdate=function(a,c){if(p.prototype.componentDidUpdate.call(this,a,c),a.model!=this.props.model&&a.model.resetResponsivityManager(),this.model.hasActions){var f=this.rootRef.current;f&&this.model.initResponsivityManager(f,function(g){setTimeout(g,100)})}},l.prototype.getStateElement=function(){return this.model},l.prototype.renderElement=function(){if(!this.model.hasActions)return null;var a=this.renderItems();return w.a.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(c){c.stopPropagation()}:void 0},a)},l.prototype.renderItems=function(){return this.model.renderedActions.map(function(a,c){return w.a.createElement($e,{item:a,key:"item"+c})})},l}($);A.Instance.registerElement("sv-action-bar",function(p){return w.a.createElement(Re,p)});var He=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),he=function(p){He(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),l.prototype.render=function(){if(this.element.isTitleRenderedAsString)return $.renderLocString(this.element.locTitle);var a=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return w.a.createElement(w.a.Fragment,null,a)},l.prototype.renderTitleSpans=function(a,c){var f=function(F){return w.a.createElement("span",{"data-key":F,key:F}," ")},g=[];a.isRequireTextOnStart&&(g.push(this.renderRequireText(a)),g.push(f("req-sp")));var L=a.no;return L&&(g.push(w.a.createElement("span",{"data-key":"q_num",key:"q_num",className:a.cssTitleNumber,style:{position:"static"},"aria-hidden":!0},L)),g.push(f("num-sp"))),a.isRequireTextBeforeTitle&&(g.push(this.renderRequireText(a)),g.push(f("req-sp"))),g.push($.renderLocString(a.locTitle,null,"q_title")),a.isRequireTextAfterTitle&&(g.push(f("req-sp")),g.push(this.renderRequireText(a))),g},l.prototype.renderRequireText=function(a){return w.a.createElement("span",{"data-key":"req-text",key:"req-text",className:a.cssRequiredText,"aria-hidden":!0},a.requiredText)},l}(w.a.Component),It=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Je=function(p){It(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),l.prototype.render=function(){var a=w.a.createElement(he,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?w.a.createElement("div",{className:"sv-title-actions"},w.a.createElement("span",{className:"sv-title-actions__title"},a),w.a.createElement(Re,{model:this.element.getTitleToolbar()})):a},l}(w.a.Component);C.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),A.Instance.registerElement("sv-title-actions",function(p){return w.a.createElement(Je,p)});var Qt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),tt=function(p){Qt(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),l.prototype.renderTitleExpandableSvg=function(){if(!this.element.getCssTitleExpandableSvg())return null;var a=this.element.isExpanded?"icon-collapse-16x16":"icon-expand-16x16";return w.a.createElement(ge,{className:this.element.getCssTitleExpandableSvg(),iconName:a,size:"auto"})},l.prototype.render=function(){var a=this.element;if(!a||!a.hasTitle)return null;var c=a.titleAriaLabel||void 0,f=this.renderTitleExpandableSvg(),g=w.a.createElement(Je,{element:a,cssClasses:a.cssClasses}),L=void 0,F=void 0;a.hasTitleEvents&&(F=function(ye){Object(C.doKey2ClickUp)(ye.nativeEvent)});var H=a.titleTagName;return w.a.createElement(H,{className:a.cssTitle,id:a.ariaTitleId,"aria-label":c,tabIndex:a.titleTabIndex,"aria-expanded":a.titleAriaExpanded,role:a.titleAriaRole,onClick:L,onKeyUp:F},f,g)},l}(w.a.Component),Ce=function(){function p(){this.creatorHash={}}return p.prototype.registerQuestion=function(l,a){this.creatorHash[l]=a},p.prototype.getAllTypes=function(){var l=new Array;for(var a in this.creatorHash)l.push(a);return l.sort()},p.prototype.createQuestion=function(l,a){var c=this.creatorHash[l];return c==null?null:c(a)},p.Instance=new p,p}(),tn=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ot=function(p){tn(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.getStateElement=function(){return this.props.counter},l.prototype.renderElement=function(){return w.a.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},l}($);A.Instance.registerElement("sv-character-counter",function(p){return w.a.createElement(Ot,p)});var Dt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),At=function(p){Dt(l,p);function l(a){var c=p.call(this,a)||this;return c.initialValue=c.viewModel.getTextValue()||"",c.textareaRef=w.a.createRef(),c}return Object.defineProperty(l.prototype,"viewModel",{get:function(){return this.props.viewModel},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.viewModel.question},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this);var a=this.textareaRef.current;a&&this.viewModel.setElement(a)},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.viewModel.resetElement()},l.prototype.renderElement=function(){var a=this;return w.a.createElement("textarea",{id:this.viewModel.id,className:this.viewModel.className,ref:this.textareaRef,disabled:this.viewModel.isDisabledAttr,readOnly:this.viewModel.isReadOnlyAttr,rows:this.viewModel.rows,cols:this.viewModel.cols,placeholder:this.viewModel.placeholder,maxLength:this.viewModel.maxLength,defaultValue:this.initialValue,onChange:function(c){a.viewModel.onTextAreaInput(c)},onFocus:function(c){a.viewModel.onTextAreaFocus(c)},onBlur:function(c){a.viewModel.onTextAreaBlur(c)},onKeyDown:function(c){a.viewModel.onTextAreaKeyDown(c)},"aria-required":this.viewModel.ariaRequired,"aria-label":this.viewModel.ariaLabel,"aria-labelledby":this.viewModel.ariaLabelledBy,"aria-describedby":this.viewModel.ariaDescribedBy,"aria-invalid":this.viewModel.ariaInvalid,"aria-errormessage":this.viewModel.ariaErrormessage,style:{resize:this.viewModel.question.resizeStyle}})},l}($);A.Instance.registerElement("sv-text-area",function(p){return w.a.createElement(At,p)});var Ct=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),wt=function(p){Ct(l,p);function l(a){return p.call(this,a)||this}return l.prototype.renderCharacterCounter=function(){var a=null;return this.question.getMaxLength()&&(a=h.createElement(Ot,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter})),a},l.prototype.renderElement=function(){if(this.question.isReadOnlyRenderDiv())return h.createElement("div",null,this.question.value);var a=this.renderCharacterCounter(),c=this.props.question.textAreaModel;return h.createElement(h.Fragment,null,h.createElement(At,{viewModel:c}),a)},l}(We),nt=function(p){Ct(l,p);function l(a){var c=p.call(this,a)||this;return c.textAreaModel=c.getTextAreaModel(),c}return l.prototype.canRender=function(){return!!this.props.question},l.prototype.getTextAreaModel=function(){return this.props.question.commentTextAreaModel},l.prototype.renderElement=function(){var a=this.props.question;if(a.isReadOnlyRenderDiv()){var c=this.textAreaModel.getTextValue()||"";return h.createElement("div",null,c)}return h.createElement(At,{viewModel:this.textAreaModel})},l}(ie),ct=function(p){Ct(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.getTextAreaModel=function(){return this.props.question.otherTextAreaModel},l}(nt);Ce.Instance.registerQuestion("comment",function(p){return h.createElement(wt,p)});var Vr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Sr=function(p){Vr(l,p);function l(a){var c=p.call(this,a)||this;return c.widgetRef=h.createRef(),c}return l.prototype._afterRender=function(){if(this.questionBase.customWidget){var a=this.widgetRef.current;a&&(this.questionBase.customWidget.afterRender(this.questionBase,a),this.questionBase.customWidgetData.isNeedRender=!1)}},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c);var f=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!f&&this._afterRender()},l.prototype.componentWillUnmount=function(){if(p.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var a=this.widgetRef.current;a&&this.questionBase.customWidget.willUnmount(this.questionBase,a)}},l.prototype.canRender=function(){return p.prototype.canRender.call(this)&&this.questionBase.visible},l.prototype.renderElement=function(){var a=this.questionBase.customWidget;if(a.isDefaultRender)return h.createElement("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var c=null;if(a.widgetJson.render)c=a.widgetJson.render(this.questionBase);else if(a.htmlTemplate){var f={__html:a.htmlTemplate};return h.createElement("div",{ref:this.widgetRef,dangerouslySetInnerHTML:f})}return h.createElement("div",{ref:this.widgetRef},c)},l}(ce),mi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),vi=function(p){mi(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),l.prototype.render=function(){var a=this.element,c=a.hasTitle?w.a.createElement(tt,{element:a}):null,f=a.hasDescriptionUnderTitle?$.renderQuestionDescription(this.element):null,g=a.hasAdditionalTitleToolbar?w.a.createElement(Re,{model:a.additionalTitleToolbar}):null,L={width:void 0};return a instanceof C.Question&&(L.width=a.titleWidth),w.a.createElement("div",{className:a.cssHeader,onClick:function(F){return a.clickTitleFunction&&a.clickTitleFunction(F.nativeEvent)},style:L},c,f,g)},l}(w.a.Component),Pn=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),nn=function(p){Pn(l,p);function l(a){var c=p.call(this,a)||this;return c.isNeedFocus=!1,c.rootRef=h.createRef(),c}return l.renderQuestionBody=function(a,c){var f=c.customWidget;return f?h.createElement(Sr,{creator:a,question:c}):a.createQuestionElement(c)},l.prototype.getStateElement=function(){return this.question},Object.defineProperty(l.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var a=this.rootRef.current;a&&a.removeAttribute("data-rendered")},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.doAfterRender()},l.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var a=this.rootRef.current;a&&a.getAttribute("data-rendered")!=="r"&&(a.setAttribute("data-rendered","r"),a.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(a))}},l.prototype.canRender=function(){return p.prototype.canRender.call(this)&&!!this.question&&!!this.creator},l.prototype.renderQuestionContent=function(){var a=this.question,c={display:this.question.renderedIsExpanded?"":"none"},f=a.cssClasses,g=this.renderQuestion(),L=this.question.showErrorOnTop?this.renderErrors(f,"top"):null,F=this.question.showErrorOnBottom?this.renderErrors(f,"bottom"):null,H=a&&a.hasComment?this.renderComment(f):null,ye=a.hasDescriptionUnderInput?this.renderDescription():null;return h.createElement("div",{className:a.cssContent||void 0,style:c,role:"presentation"},L,g,H,F,ye)},l.prototype.renderElement=function(){var a=this.question,c=a.cssClasses,f=this.renderHeader(a),g=a.hasTitleOnLeftTop?f:null,L=a.hasTitleOnBottom?f:null,F=this.question.showErrorsAboveQuestion?this.renderErrors(c,""):null,H=this.question.showErrorsBelowQuestion?this.renderErrors(c,""):null,ye=a.getRootStyle(),ae=this.wrapQuestionContent(this.renderQuestionContent());return h.createElement(h.Fragment,null,h.createElement("div",{ref:this.rootRef,id:a.id,className:a.getRootCss(),style:ye,role:a.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":a.ariaLabelledBy,"aria-describedby":a.ariaDescribedBy,"aria-expanded":a.ariaExpanded},F,g,ae,L,H))},l.prototype.wrapElement=function(a){var c=this.question.survey,f=null;return c&&(f=k.wrapElement(c,a,this.question)),f??a},l.prototype.wrapQuestionContent=function(a){var c=this.question.survey,f=null;return c&&(f=k.wrapQuestionContent(c,a,this.question)),f??a},l.prototype.renderQuestion=function(){return l.renderQuestionBody(this.creator,this.question)},l.prototype.renderDescription=function(){return $.renderQuestionDescription(this.question)},l.prototype.renderComment=function(a){var c=$.renderLocString(this.question.locCommentText);return h.createElement("div",{className:this.question.getCommentAreaCss()},h.createElement("div",null,c),h.createElement(nt,{question:this.question,cssClasses:a,otherCss:a.other,isDisplayMode:this.question.isInputReadOnly}))},l.prototype.renderHeader=function(a){return h.createElement(vi,{element:a})},l.prototype.renderErrors=function(a,c){return h.createElement(rn,{element:this.question,cssClasses:a,creator:this.creator,location:c,id:this.question.id+"_errors"})},l}($);A.Instance.registerElement("question",function(p){return h.createElement(nn,p)});var rn=function(p){Pn(l,p);function l(a){var c=p.call(this,a)||this;return c.state=c.getState(),c}return Object.defineProperty(l.prototype,"id",{get:function(){return this.props.element.id+"_errors"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),l.prototype.getState=function(a){return a===void 0&&(a=null),a?{error:a.error+1}:{error:0}},l.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},l.prototype.componentWillUnmount=function(){},l.prototype.renderElement=function(){for(var a=[],c=0;c<this.element.errors.length;c++){var f="error"+c;a.push(this.creator.renderError(f,this.element.errors[c],this.cssClasses,this.element))}return h.createElement("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id},a)},l}(ie),bi=function(p){Pn(l,p);function l(a){return p.call(this,a)||this}return l.prototype.getStateElement=function(){return this.question},Object.defineProperty(l.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),l.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(l.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.doAfterRender()},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.doAfterRender()},l.prototype.doAfterRender=function(){},l.prototype.canRender=function(){return!!this.question},l.prototype.renderContent=function(){var a=this.renderQuestion();return h.createElement(h.Fragment,null,a)},l.prototype.getShowErrors=function(){return this.question.isVisible},l.prototype.renderQuestion=function(){return nn.renderQuestionBody(this.creator,this.question)},l}(ie),Ci=function(p){Pn(l,p);function l(a){var c=p.call(this,a)||this;return c.cellRef=h.createRef(),c}return l.prototype.componentWillUnmount=function(){if(p.prototype.componentWillUnmount.call(this),this.question){var a=this.cellRef.current;a&&a.removeAttribute("data-rendered")}},l.prototype.renderCellContent=function(){return h.createElement("div",{className:this.props.cell.cellQuestionWrapperClassName},this.renderQuestion())},l.prototype.renderElement=function(){var a=this.getCellStyle(),c=this.props.cell,f=function(){c.focusIn()};return h.createElement("td",{ref:this.cellRef,className:this.itemCss,colSpan:c.colSpans,title:c.getTitle(),style:a,onFocus:f},this.wrapCell(this.props.cell,this.renderCellContent()))},l.prototype.getCellStyle=function(){return null},l.prototype.getHeaderText=function(){return""},l.prototype.wrapCell=function(a,c){if(!a)return c;var f=this.question.survey,g=null;return f&&(g=k.wrapMatrixCell(f,c,a,this.props.reason)),g??c},l}(bi),wi=function(p){Pn(l,p);function l(a){var c=p.call(this,a)||this;return c.state={changed:0},c.question&&c.registerCallback(c.question),c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.update=function(){this.setState({changed:this.state.changed+1})},l.prototype.getQuestionPropertiesToTrack=function(){return["errors"]},l.prototype.registerCallback=function(a){var c=this;a.registerFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),function(){c.update()},"__reactSubscription")},l.prototype.unRegisterCallback=function(a){a.unRegisterFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),"__reactSubscription")},l.prototype.componentDidUpdate=function(a){a.question&&a.question!==this.question&&this.unRegisterCallback(a.cell),this.question&&this.registerCallback(this.question)},l.prototype.componentWillUnmount=function(){this.question&&this.unRegisterCallback(this.question)},l.prototype.render=function(){return h.createElement(rn,{element:this.question,creator:this.props.creator,cssClasses:this.question.cssClasses})},l}(h.Component),Pi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),xi=function(p){Pi(l,p);function l(a){return p.call(this,a)||this}return l.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(l.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this.renderTitle(),c=this.renderDescription(),f=this.renderRows(this.panelBase.cssClasses),g=h.createElement(rn,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator});return h.createElement("div",{ref:this.rootRef,className:this.page.cssRoot},a,c,g,f)},l.prototype.renderTitle=function(){return h.createElement(tt,{element:this.page})},l.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var a=$.renderLocString(this.page.locDescription);return h.createElement("div",{className:this.panelBase.cssClasses.page.description},a)},l}(lt),Fo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Or=function(p){Fo(l,p);function l(a){var c=p.call(this,a)||this;return c.state={changed:0},c.rootRef=w.a.createRef(),c}return Object.defineProperty(l.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){var a=this;this.survey.afterRenderHeader(this.rootRef.current),this.survey.locLogo.onChanged=function(){a.setState({changed:a.state.changed+1})}},l.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},l.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var a=$.renderLocString(this.survey.locDescription);return w.a.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},w.a.createElement(tt,{element:this.survey}),this.survey.renderedHasDescription?w.a.createElement("div",{className:this.css.description},a):null)},l.prototype.renderLogoImage=function(a){if(!a)return null;var c=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),f=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return A.Instance.createElement(c,{data:f})},l.prototype.render=function(){return this.survey.renderedHasHeader?w.a.createElement("div",{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),w.a.createElement("div",{className:this.css.headerClose})):null},l}(w.a.Component);A.Instance.registerElement("survey-header",function(p){return w.a.createElement(Or,p)});var Vi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ko=function(p){Vi(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){return w.a.createElement("div",{className:"sv-brand-info"},w.a.createElement("a",{className:"sv-brand-info__logo",href:"https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"},w.a.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),w.a.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",w.a.createElement("a",{href:"https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey"},"create a survey")),w.a.createElement("div",{className:"sv-brand-info__terms"},w.a.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},l}(w.a.Component),Qo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Gn=function(p){Qo(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.notifier},l.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var a={visibility:this.notifier.active?"visible":"hidden"};return w.a.createElement("div",{className:this.notifier.css,style:a,role:"alert","aria-live":"polite"},w.a.createElement("span",null,this.notifier.message),w.a.createElement(Re,{model:this.notifier.actionBar}))},l}($);A.Instance.registerElement("sv-notifier",function(p){return w.a.createElement(Gn,p)});var Zn=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Pt=function(p){Zn(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){var a=this,c=this.props.survey.getContainerContent(this.props.container),f=this.props.needRenderWrapper!==!1;return c.length==0?null:f?w.a.createElement("div",{className:"sv-components-column sv-components-container-"+this.props.container},c.map(function(g){return A.Instance.createElement(g.component,{survey:a.props.survey,model:g.data,container:a.props.container,key:g.id})})):w.a.createElement(w.a.Fragment,null,c.map(function(g){return A.Instance.createElement(g.component,{survey:a.props.survey,model:g.data,container:a.props.container,key:g.id})}))},l}(w.a.Component);A.Instance.registerElement("sv-components-container",function(p){return w.a.createElement(Pt,p)});var Ho=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Si=function(p){Ho(l,p);function l(a){var c=p.call(this,a)||this;return c.onIconsChanged=function(){c.containerRef.current&&(c.containerRef.current.innerHTML=C.SvgRegistry.iconsRenderedHtml())},c.containerRef=w.a.createRef(),c}return l.prototype.componentDidMount=function(){this.onIconsChanged(),C.SvgRegistry.onIconsChanged.add(this.onIconsChanged)},l.prototype.componentWillUnmount=function(){C.SvgRegistry.onIconsChanged.remove(this.onIconsChanged)},l.prototype.render=function(){var a={display:"none"};return w.a.createElement("svg",{style:a,id:"sv-icon-holder-global-container",ref:this.containerRef})},l}(w.a.Component),zo=D("react-dom"),Oi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Er=function(p){Oi(l,p);function l(a){var c=p.call(this,a)||this;return c.isInitialized=!1,c.init=function(){c.isInitialized||(C.settings.showModal=function(f,g,L,F,H,ye,ae){ae===void 0&&(ae="popup");var Ve=Object(C.createDialogOptions)(f,g,L,F,void 0,void 0,H,ye,ae);return c.showDialog(Ve)},C.settings.showDialog=function(f,g){return c.showDialog(f,g)},c.isInitialized=!0)},c.clean=function(){c.isInitialized&&(C.settings.showModal=void 0,C.settings.showDialog=void 0,c.isInitialized=!1)},c.state={changed:0},c.descriptor={init:c.init,clean:c.clean},c}return l.addModalDescriptor=function(a){C.settings.showModal||a.init(),this.modalDescriptors.push(a)},l.removeModalDescriptor=function(a){a.clean(),this.modalDescriptors.splice(this.modalDescriptors.indexOf(a),1),!C.settings.showModal&&this.modalDescriptors[0]&&this.modalDescriptors[0].init()},l.prototype.renderElement=function(){return this.model?Object(zo.createPortal)(w.a.createElement(bt,{model:this.model}),this.model.container):null},l.prototype.showDialog=function(a,c){var f=this;this.model=Object(C.createPopupModalViewModel)(a,c);var g=function(L,F){F.isVisible||(f.model.dispose(),f.model=void 0,f.setState({changed:f.state.changed+1}))};return this.model.onVisibilityChanged.add(g),this.model.model.isVisible=!0,this.setState({changed:this.state.changed+1}),this.model},l.prototype.componentDidMount=function(){l.addModalDescriptor(this.descriptor)},l.prototype.componentWillUnmount=function(){this.model&&(this.model.dispose(),this.model=void 0),l.removeModalDescriptor(this.descriptor)},l.modalDescriptors=[],l}($),Ei=D("./build/survey-core/icons/iconsV1.js"),Uo=D("./build/survey-core/icons/iconsV2.js"),Wo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Lt=function(){return Lt=Object.assign||function(p){for(var l,a=1,c=arguments.length;a<c;a++){l=arguments[a];for(var f in l)Object.prototype.hasOwnProperty.call(l,f)&&(p[f]=l[f])}return p},Lt.apply(this,arguments)};Object(C.addIconsToThemeSet)("v1",Ei.icons),Object(C.addIconsToThemeSet)("v2",Uo.icons),C.SvgRegistry.registerIcons(Ei.icons);var Mt=function(p){Wo(l,p);function l(a){var c=p.call(this,a)||this;return c.previousJSON={},c.isSurveyUpdated=!1,c.createSurvey(a),c.updateSurvey(a,{}),c.rootRef=h.createRef(),c.rootNodeId=a.id||null,c.rootNodeClassName=a.className||"",c}return Object.defineProperty(l,"cssType",{get:function(){return C.surveyCss.currentType},set:function(a){C.StylesManager.applyTheme(a)},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.survey},l.prototype.onSurveyUpdated=function(){if(this.survey){var a=this.rootRef.current;a&&this.survey.afterRenderSurvey(a),this.survey.startTimerFromUI(),this.setSurveyEvents()}},l.prototype.shouldComponentUpdate=function(a,c){return p.prototype.shouldComponentUpdate.call(this,a,c)?(this.isModelJSONChanged(a)&&(this.destroySurvey(),this.createSurvey(a),this.updateSurvey(a,{}),this.isSurveyUpdated=!0),!0):!1},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.updateSurvey(this.props,a),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.onSurveyUpdated()},l.prototype.destroySurvey=function(){this.survey&&(this.survey.renderCallback=void 0,this.survey.onPartialSend.clear(),this.survey.stopTimer(),this.survey.destroyResizeObserver())},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.destroySurvey()},l.prototype.doRender=function(){var a;this.survey.state=="completed"?a=this.renderCompleted():this.survey.state=="completedbefore"?a=this.renderCompletedBefore():this.survey.state=="loading"?a=this.renderLoading():this.survey.state=="empty"?a=this.renderEmptySurvey():a=this.renderSurvey();var c=this.survey.backgroundImage?h.createElement("div",{className:this.css.rootBackgroundImage,style:this.survey.backgroundImageStyle}):null,f=this.survey.headerView==="basic"?h.createElement(Or,{survey:this.survey}):null,g=function(ye){ye.preventDefault()},L=h.createElement("div",{className:"sv_custom_header"});this.survey.hasLogo&&(L=null);var F=this.survey.getRootCss(),H=this.rootNodeClassName?this.rootNodeClassName+" "+F:F;return h.createElement("div",{id:this.rootNodeId,ref:this.rootRef,className:H,style:this.survey.themeVariables,lang:this.survey.locale||"en",dir:this.survey.localeDir},this.survey.needRenderIcons?h.createElement(Si,null):null,h.createElement(Er,null),h.createElement("div",{className:this.survey.wrapperFormCss},c,h.createElement("form",{onSubmit:g},L,h.createElement("div",{className:this.css.container},f,h.createElement(Pt,{survey:this.survey,container:"header",needRenderWrapper:!1}),a,h.createElement(Pt,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),h.createElement(Gn,{notifier:this.survey.notifier})))},l.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(l.prototype,"css",{get:function(){return this.survey.css},set:function(a){this.survey.css=a},enumerable:!1,configurable:!0}),l.prototype.renderCompleted=function(){if(!this.survey.showCompletedPage)return null;var a={__html:this.survey.processedCompletedHtml};return h.createElement(h.Fragment,null,h.createElement("div",{dangerouslySetInnerHTML:a,className:this.survey.completedCss}),h.createElement(Pt,{survey:this.survey,container:"completePage",needRenderWrapper:!1}))},l.prototype.renderCompletedBefore=function(){var a={__html:this.survey.processedCompletedBeforeHtml};return h.createElement("div",{dangerouslySetInnerHTML:a,className:this.survey.completedBeforeCss})},l.prototype.renderLoading=function(){var a={__html:this.survey.processedLoadingHtml};return h.createElement("div",{dangerouslySetInnerHTML:a,className:this.survey.loadingBodyCss})},l.prototype.renderSurvey=function(){var a=this.survey.activePage?this.renderPage(this.survey.activePage):null;this.survey.isShowStartingPage;var c=this.survey.activePage?this.survey.activePage.id:"",f=this.survey.bodyCss,g={};return this.survey.renderedWidth&&(g.maxWidth=this.survey.renderedWidth),h.createElement("div",{className:this.survey.bodyContainerCss},h.createElement(Pt,{survey:this.survey,container:"left"}),h.createElement("div",{className:"sv-components-column sv-components-column--expandable"},h.createElement(Pt,{survey:this.survey,container:"center"}),h.createElement("div",{id:c,className:f,style:g},h.createElement(Pt,{survey:this.survey,container:"contentTop"}),a,h.createElement(Pt,{survey:this.survey,container:"contentBottom"}),this.survey.showBrandInfo?h.createElement(ko,null):null)),h.createElement(Pt,{survey:this.survey,container:"right"}))},l.prototype.renderPage=function(a){return h.createElement(xi,{survey:this.survey,page:a,css:this.css,creator:this})},l.prototype.renderEmptySurvey=function(){return h.createElement("div",{className:this.css.bodyEmpty},this.survey.emptySurveyText)},l.prototype.createSurvey=function(a){a||(a={}),this.previousJSON={},a?a.model?this.survey=a.model:a.json&&(this.previousJSON=a.json,this.survey=new C.SurveyModel(a.json)):this.survey=new C.SurveyModel,a.css&&(this.survey.css=this.css)},l.prototype.isModelJSONChanged=function(a){return a.model?this.survey!==a.model:a.json?!C.Helpers.isTwoValueEquals(a.json,this.previousJSON):!1},l.prototype.updateSurvey=function(a,c){if(a){c=c||{};for(var f in a)if(!(f=="model"||f=="children"||f=="json")){if(f=="css"){this.survey.mergeValues(a.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss();continue}a[f]!==c[f]&&(f.indexOf("on")==0&&this.survey[f]&&this.survey[f].add?(c[f]&&this.survey[f].remove(c[f]),this.survey[f].add(a[f])):this.survey[f]=a[f])}}},l.prototype.setSurveyEvents=function(){var a=this;this.survey.renderCallback=function(){var c=a.state&&a.state.modelChanged?a.state.modelChanged:0;a.setState({modelChanged:c+1})},this.survey.onPartialSend.add(function(c){a.state&&a.setState(a.state)})},l.prototype.createQuestionElement=function(a){return Ce.Instance.createQuestion(a.isDefaultRendering()?a.getTemplate():a.getComponentName(),{question:a,isDisplayMode:a.isInputReadOnly,creator:this})},l.prototype.renderError=function(a,c,f,g){return A.Instance.createElement(this.survey.questionErrorComponent,{key:a,error:c,cssClasses:f,element:g})},l.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},l.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},l}($);A.Instance.registerElement("survey",function(p){return h.createElement(Mt,p)});function xn(p,l,a){return a===void 0&&(a={processEsc:!0,disableTabStop:!1}),l&&l.disableTabStop||a&&a.disableTabStop?h.cloneElement(p,{tabIndex:-1}):(a=Lt({},a),h.cloneElement(p,{tabIndex:0,onKeyUp:function(c){return c.preventDefault(),c.stopPropagation(),Object(C.doKey2ClickUp)(c,a),!1},onKeyDown:function(c){return Object(C.doKey2ClickDown)(c,a)},onBlur:function(c){return Object(C.doKey2ClickBlur)(c)}}))}var Tr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ht=function(p){Tr(l,p);function l(a){var c=p.call(this,a)||this;return c.updateStateFunction=null,c.state={update:0},c}return Object.defineProperty(l.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){if(this.survey){var a=this;this.updateStateFunction=function(){a.setState({update:a.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},l.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},l}(h.Component),Rr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ir=function(p){Rr(l,p);function l(a){var c=p.call(this,a)||this;return c.circleLength=440,c}return l.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(l.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),l.prototype.render=function(){if(!this.timerModel.isRunning)return null;var a=h.createElement("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var c={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},f=this.timerModel.showProgress?h.createElement(ge,{className:this.timerModel.getProgressCss(),style:c,iconName:"icon-timercircle",size:"auto"}):null;a=h.createElement("div",{className:this.timerModel.rootCss},f,h.createElement("div",{className:this.timerModel.textContainerCss},h.createElement("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?h.createElement("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return a},l}(ie);A.Instance.registerElement("sv-timerpanel",function(p){return h.createElement(Ir,p)});var Ti=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ze=function(p){Ti(l,p);function l(a){var c=p.call(this,a)||this;return c.hasBeenExpanded=!1,c}return Object.defineProperty(l.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,c=this.renderHeader(),f=h.createElement(rn,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),g={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.renderedIsExpanded?void 0:"none"},L=null;if(this.panel.renderedIsExpanded){var F=this.renderRows(this.panelBase.cssClasses),H=this.panelBase.cssClasses.panel.content;L=this.renderContent(g,F,H)}var ye=function(){a.panelBase&&a.panelBase.focusIn()};return h.createElement("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:ye,id:this.panelBase.id},this.panel.showErrorsAbovePanel?f:null,c,this.panel.showErrorsAbovePanel?null:f,L)},l.prototype.renderHeader=function(){return!this.panel.hasTitle&&!this.panel.hasDescription?null:h.createElement(vi,{element:this.panel})},l.prototype.wrapElement=function(a){var c=this.panel.survey,f=null;return c&&(f=k.wrapElement(c,a,this.panel)),f??a},l.prototype.renderContent=function(a,c,f){var g=this.renderBottom();return h.createElement("div",{style:a,className:f,id:this.panel.contentId},c,g)},l.prototype.renderTitle=function(){return this.panelBase.title?h.createElement(tt,{element:this.panelBase}):null},l.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var a=$.renderLocString(this.panelBase.locDescription);return h.createElement("div",{className:this.panel.cssClasses.panel.description},a)},l.prototype.renderBottom=function(){var a=this.panel.getFooterToolbar();return a.hasActions?h.createElement(Re,{model:a}):null},l.prototype.getIsVisible=function(){return this.panelBase.getIsContentVisible()},l}(lt);A.Instance.registerElement("panel",function(p){return h.createElement(ze,p)});var $o=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Kn=function(p){$o(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},l.prototype.getQuestion=function(a){return this.flowPanel.getQuestionByName(a)},l.prototype.renderQuestion=function(a){return"<question>"+a.name+"</question>"},l.prototype.renderRows=function(){var a=this.renderHtml();return a?[a]:[]},l.prototype.getNodeIndex=function(){return this.renderedIndex++},l.prototype.renderHtml=function(){if(!this.flowPanel)return null;var a="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser){var c={__html:a};return h.createElement("div",{dangerouslySetInnerHTML:c})}var f=new DOMParser().parseFromString(a,"text/xml");return this.renderedIndex=0,this.renderParentNode(f)},l.prototype.renderNodes=function(a){for(var c=[],f=0;f<a.length;f++){var g=this.renderNode(a[f]);g&&c.push(g)}return c},l.prototype.getStyle=function(a){var c={};return a.toLowerCase()==="b"&&(c.fontWeight="bold"),a.toLowerCase()==="i"&&(c.fontStyle="italic"),a.toLowerCase()==="u"&&(c.textDecoration="underline"),c},l.prototype.renderParentNode=function(a){var c=a.nodeName.toLowerCase(),f=this.renderNodes(this.getChildDomNodes(a));return c==="div"?h.createElement("div",{key:this.getNodeIndex()},f):h.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(c)},f)},l.prototype.renderNode=function(a){if(!this.hasTextChildNodesOnly(a))return this.renderParentNode(a);var c=a.nodeName.toLowerCase();if(c==="question"){var f=this.flowPanel.getQuestionByName(a.textContent);if(!f)return null;var g=h.createElement(nn,{key:f.name,element:f,creator:this.creator,css:this.css});return h.createElement("span",{key:this.getNodeIndex()},g)}return c==="div"?h.createElement("div",{key:this.getNodeIndex()},a.textContent):h.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(c)},a.textContent)},l.prototype.getChildDomNodes=function(a){for(var c=[],f=0;f<a.childNodes.length;f++)c.push(a.childNodes[f]);return c},l.prototype.hasTextChildNodesOnly=function(a){for(var c=a.childNodes,f=0;f<c.length;f++)if(c[f].nodeName.toLowerCase()!=="#text")return!1;return!0},l.prototype.renderContent=function(a,c){return h.createElement("f-panel",{style:a},c)},l}(ze);A.Instance.registerElement("flowpanel",function(p){return h.createElement(Kn,p)});var Ri=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ii=function(p){Ri(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,c=this.question.cssClasses;return h.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(f){return a.setControl(f)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},h.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.getHeader(),this.question.hasColumns?this.getColumnedBody(c):this.getBody(c),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},l.prototype.getHeader=function(){var a=this;if(this.question.hasHeadItems)return this.question.headItems.map(function(c,f){return a.renderItem(c,!1,a.question.cssClasses)})},l.prototype.getFooter=function(){var a=this;if(this.question.hasFootItems)return this.question.footItems.map(function(c,f){return a.renderItem(c,!1,a.question.cssClasses)})},l.prototype.getColumnedBody=function(a){return h.createElement("div",{className:a.rootMultiColumn},this.getColumns(a))},l.prototype.getColumns=function(a){var c=this;return this.question.columns.map(function(f,g){var L=f.map(function(F,H){return c.renderItem(F,g===0&&H===0,a,""+g+H)});return h.createElement("div",{key:"column"+g+c.question.getItemsColumnKey(f),className:c.question.getColumnClass(),role:"presentation"},L)})},l.prototype.getBody=function(a){return this.question.blockedRow?h.createElement("div",{className:a.rootRow},this.getItems(a,this.question.dataChoices)):h.createElement(h.Fragment,null,this.getItems(a,this.question.bodyItems))},l.prototype.getItems=function(a,c){for(var f=[],g=0;g<c.length;g++){var L=c[g];""+L.value;var F=this.renderItem(L,g==0,a,""+g);F&&f.push(F)}return f},Object.defineProperty(l.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),l.prototype.renderOther=function(){var a=this.question.cssClasses;return h.createElement("div",{className:this.question.getCommentAreaCss(!0)},h.createElement(ct,{question:this.question,otherCss:a.other,cssClasses:a,isDisplayMode:this.isDisplayMode}))},l.prototype.renderItem=function(a,c,f,g){var L=A.Instance.createElement(this.question.itemComponent,{key:a.value,question:this.question,cssClasses:f,isDisplayMode:this.isDisplayMode,item:a,textStyle:this.textStyle,index:g,isFirst:c}),F=this.question.survey,H=null;return F&&L&&(H=k.wrapItemValue(F,L,this.question,a)),H??L},l}(ce),Dr=function(p){Ri(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnChange=function(f){c.question.clickItemHandler(c.item,f.target.checked)},c.rootRef=h.createRef(),c}return l.prototype.getStateElement=function(){return this.item},Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hideCaption",{get:function(){return this.props.hideCaption===!0},enumerable:!1,configurable:!0}),l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),a.item!==this.props.item&&!this.question.isDesignMode&&(this.props.item&&this.props.item.setRootElement(this.rootRef.current),a.item&&a.item.setRootElement(void 0))},l.prototype.shouldComponentUpdate=function(a,c){return p.prototype.shouldComponentUpdate.call(this,a,c)?!this.question.customWidget||!!this.question.customWidgetData.isNeedRender||!!this.question.customWidget.widgetJson.isDefaultRender||!!this.question.customWidget.widgetJson.render:!1},l.prototype.canRender=function(){return!!this.item&&!!this.question},l.prototype.renderElement=function(){var a=this.question.isItemSelected(this.item);return this.renderCheckbox(a,null)},Object.defineProperty(l.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),l.prototype.renderCheckbox=function(a,c){var f=this.question.getItemId(this.item),g=this.question.getItemClass(this.item),L=this.question.getLabelClass(this.item),F=this.hideCaption?null:h.createElement("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return h.createElement("div",{className:g,role:"presentation",ref:this.rootRef},h.createElement("label",{className:L},h.createElement("input",{className:this.cssClasses.itemControl,type:"checkbox",name:this.question.name+this.item.id,value:this.item.value,id:f,style:this.inputStyle,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,checked:a,onChange:this.handleOnChange,required:this.question.hasRequiredError()}),this.cssClasses.materialDecorator?h.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?h.createElement("svg",{className:this.cssClasses.itemDecorator},h.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,F),c)},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},l}(ie);A.Instance.registerElement("survey-checkbox-item",function(p){return h.createElement(Dr,p)}),Ce.Instance.registerQuestion("checkbox",function(p){return h.createElement(Ii,p)});var Yn=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ar=function(p){Yn(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this;if(this.question.selectToRankEnabled){var c=!0;return h.createElement("div",{className:this.question.rootClass,ref:function(f){return a.setControl(f)}},h.createElement("div",{className:this.question.getContainerClasses("from"),"data-ranking":"from-container"},this.getItems(this.question.renderedUnRankingChoices,c),this.question.renderedUnRankingChoices.length===0?h.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText)," "):null),h.createElement("div",{className:this.question.cssClasses.containersDivider}),h.createElement("div",{className:this.question.getContainerClasses("to"),"data-ranking":"to-container"},this.getItems(),this.question.renderedRankingChoices.length===0?h.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText)," "):null))}else return h.createElement("div",{className:this.question.rootClass,ref:function(f){return a.setControl(f)}},this.getItems())},l.prototype.getItems=function(a,c){var f=this;a===void 0&&(a=this.question.renderedRankingChoices);for(var g=[],L=function(ye){var ae=a[ye];g.push(F.renderItem(ae,ye,function(Ve){f.question.handleKeydown.call(f.question,Ve,ae)},function(Ve){Ve.persist(),f.question.handlePointerDown.call(f.question,Ve,ae,Ve.currentTarget)},function(Ve){Ve.persist(),f.question.handlePointerUp.call(f.question,Ve,ae,Ve.currentTarget)},F.question.cssClasses,F.question.getItemClass(ae),F.question,c))},F=this,H=0;H<a.length;H++)L(H);return g},l.prototype.renderItem=function(a,c,f,g,L,F,H,ye,ae){""+a.renderedId;var Ve=this.renderLocString(a.locText),yt=c,Ze=this.question.getNumberByIndex(yt),cn=this.question.getItemTabIndex(a),qt=h.createElement(Di,{key:a.value,text:Ve,index:yt,indexText:Ze,itemTabIndex:cn,handleKeydown:f,handlePointerDown:g,handlePointerUp:L,cssClasses:F,itemClass:H,question:ye,unrankedItem:ae,item:a}),yr=this.question.survey,Zt=null;return yr&&(Zt=k.wrapItemValue(yr,qt,this.question,a)),Zt??qt},l}(ce),Di=function(p){Yn(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"handlePointerUp",{get:function(){return this.props.handlePointerUp},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"itemClass",{get:function(){return this.props.itemClass},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"itemTabIndex",{get:function(){return this.props.itemTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"unrankedItem",{get:function(){return this.props.unrankedItem},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.renderEmptyIcon=function(){return h.createElement("svg",null,h.createElement("use",{xlinkHref:this.question.dashSvgIcon}))},l.prototype.renderElement=function(){var a=A.Instance.createElement(this.question.itemComponent,{item:this.item,cssClasses:this.cssClasses});return h.createElement("div",{tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,"data-sv-drop-target-ranking-item":this.index},h.createElement("div",{tabIndex:-1,style:{outline:"none"}},h.createElement("div",{className:this.cssClasses.itemGhostNode}),h.createElement("div",{className:this.cssClasses.itemContent},h.createElement("div",{className:this.cssClasses.itemIconContainer},h.createElement("svg",{className:this.question.getIconHoverCss()},h.createElement("use",{xlinkHref:this.question.dragDropSvgIcon})),h.createElement("svg",{className:this.question.getIconFocusCss()},h.createElement("use",{xlinkHref:this.question.arrowsSvgIcon}))),h.createElement("div",{className:this.question.getItemIndexClasses(this.item)},!this.unrankedItem&&this.indexText?this.indexText:this.renderEmptyIcon()),a)))},l}(ie),Lr=function(p){Yn(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){return h.createElement("div",{className:this.cssClasses.controlLabel},$.renderLocString(this.item.locText))},l}(ie);A.Instance.registerElement("sv-ranking-item",function(p){return h.createElement(Lr,p)}),Ce.Instance.registerQuestion("ranking",function(p){return h.createElement(Ar,p)});var Mr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ue=function(p){Mr(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnMouseDown=c.handleOnMouseDown.bind(c),c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.handleOnMouseDown=function(a){this.question.onMouseDown()},l}($),jt=function(p){Mr(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){var a=this.renderLocString(this.item.locText);return w.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},w.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),w.a.createElement("span",{className:this.question.cssClasses.itemText,"data-text":this.item.text},a))},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this)},l}(Ue);A.Instance.registerElement("sv-rating-item",function(p){return w.a.createElement(jt,p)});var Jo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),jr=function(p){Jo(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){var a=this;return w.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(c){return a.question.onItemMouseIn(a.item)},onMouseOut:function(c){return a.question.onItemMouseOut(a.item)}},w.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),w.a.createElement(ge,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),w.a.createElement(ge,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},l}(Ue);A.Instance.registerElement("sv-rating-item-star",function(p){return w.a.createElement(jr,p)});var Go=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ai=function(p){Go(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){var a=this;return w.a.createElement("label",{onMouseDown:this.handleOnMouseDown,style:this.question.getItemStyle(this.item.itemValue,this.item.highlight),className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(c){return a.question.onItemMouseIn(a.item)},onMouseOut:function(c){return a.question.onItemMouseOut(a.item)}},w.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),w.a.createElement(ge,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},l}(Ue);A.Instance.registerElement("sv-rating-item-smiley",function(p){return w.a.createElement(Ai,p)});var De=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),fe=function(p){De(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.render=function(){if(!this.item)return null;var a=this.props.item,c=this.renderDescription(a);return w.a.createElement("div",{className:"sd-rating-dropdown-item"},w.a.createElement("span",{className:"sd-rating-dropdown-item_text"},a.title),c)},l.prototype.renderDescription=function(a){return a.description?w.a.createElement("div",{className:"sd-rating-dropdown-item_description"},this.renderLocString(a.description,void 0,"locString")):null},l}($);A.Instance.registerElement("sv-rating-dropdown-item",function(p){return w.a.createElement(fe,p)});var zt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Vn=function(p){zt(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.updateDomElement()},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.updateDomElement()},l.prototype.updateDomElement=function(){if(this.inputElement){var a=this.inputElement,c=this.model.inputStringRendered;C.Helpers.isTwoValueEquals(c,a.value,!1,!0,!1)||(a.value=this.model.inputStringRendered)}},l.prototype.onChange=function(a){var c=C.settings.environment.root;a.target===c.activeElement&&(this.model.inputStringRendered=a.target.value)},l.prototype.keyhandler=function(a){this.model.inputKeyHandler(a)},l.prototype.onBlur=function(a){this.question.onBlur(a)},l.prototype.onFocus=function(a){this.question.onFocus(a)},l.prototype.getStateElement=function(){return this.model},l.prototype.render=function(){var a=this;return h.createElement("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?h.createElement("div",{className:this.question.cssClasses.hintPrefix},h.createElement("span",null,this.model.hintStringPrefix)):null,h.createElement("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?h.createElement("div",{className:this.question.cssClasses.hintSuffix},h.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),h.createElement("span",null,this.model.hintStringSuffix)):null,h.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(c){return a.inputElement=c},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:this.model.filterReadOnly?!0:void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":this.model.listElementId,"aria-activedescendant":this.model.ariaActivedescendant,placeholder:this.model.filterStringPlaceholder,onKeyDown:function(c){a.keyhandler(c)},onChange:function(c){a.onChange(c)},onBlur:function(c){a.onBlur(c)},onFocus:function(c){a.onFocus(c)}})))},l}($);Ce.Instance.registerQuestion("sv-tagbox-filter",function(p){return h.createElement(Vn,p)});var pt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Li=function(p){pt(l,p);function l(a){var c=p.call(this,a)||this;return c.state={changed:0},c.setupModel(),c}return l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.setupModel()},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.setupModel()},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},l.prototype.setupModel=function(){if(this.item.locText){var a=this;this.item.locText.onChanged=function(){a.setState({changed:a.state.changed+1})}}},l.prototype.getStateElement=function(){return this.item},Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.item},l.prototype.renderElement=function(){return h.createElement("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},l}(ie),Nr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Xn=function(p){Nr(l,p);function l(){var a=p!==null&&p.apply(this,arguments)||this;return a.click=function(c){var f;(f=a.question.dropdownListModel)===null||f===void 0||f.onClick(c)},a.chevronPointerDown=function(c){var f;(f=a.question.dropdownListModel)===null||f===void 0||f.chevronPointerDown(c)},a.clear=function(c){var f;(f=a.question.dropdownListModel)===null||f===void 0||f.onClear(c)},a.keyhandler=function(c){var f;(f=a.question.dropdownListModel)===null||f===void 0||f.keyHandler(c)},a.blur=function(c){a.updateInputDomElement(),a.question.onBlur(c)},a.focus=function(c){a.question.onFocus(c)},a}return l.prototype.getStateElement=function(){return this.question.dropdownListModel},l.prototype.setValueCore=function(a){this.questionBase.renderedValue=a},l.prototype.getValueCore=function(){return this.questionBase.renderedValue},l.prototype.renderReadOnlyElement=function(){return h.createElement("div",null,this.question.readOnlyText)},l.prototype.renderSelect=function(a){var c=this,f,g,L=null;if(this.question.isReadOnly){var F=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";L=h.createElement("div",{id:this.question.inputId,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,tabIndex:this.question.isDisabledAttr?void 0:0,className:this.question.getControlClass(),ref:function(H){return c.setControl(H)}},F,this.renderReadOnlyElement())}else L=h.createElement(h.Fragment,null,this.renderInput(this.question.dropdownListModel),h.createElement(Qe,{model:(g=(f=this.question)===null||f===void 0?void 0:f.dropdownListModel)===null||g===void 0?void 0:g.popupModel}));return h.createElement("div",{className:a.selectWrapper,onClick:this.click},L,this.createChevronButton())},l.prototype.renderValueElement=function(a){return this.question.showInputFieldComponent?A.Instance.createElement(this.question.inputFieldComponentName,{item:a.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},l.prototype.renderInput=function(a){var c=this,f=this.renderValueElement(a),g=C.settings.environment.root,L=function(F){F.target===g.activeElement&&(a.inputStringRendered=F.target.value)};return h.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:a.noTabIndex?void 0:0,disabled:this.question.isDisabledAttr,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,onFocus:this.focus,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":this.question.ariaExpanded,"aria-controls":a.listElementId,"aria-activedescendant":a.ariaActivedescendant,ref:function(F){return c.setControl(F)}},a.showHintPrefix?h.createElement("div",{className:this.question.cssClasses.hintPrefix},h.createElement("span",null,a.hintStringPrefix)):null,h.createElement("div",{className:this.question.cssClasses.controlValue},a.showHintString?h.createElement("div",{className:this.question.cssClasses.hintSuffix},h.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},a.inputStringRendered),h.createElement("span",null,a.hintStringSuffix)):null,f,h.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(F){return c.inputElement=F},className:this.question.cssClasses.filterStringInput,role:a.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":a.listElementId,"aria-activedescendant":a.ariaActivedescendant,placeholder:a.placeholderRendered,readOnly:a.filterReadOnly?!0:void 0,tabIndex:a.noTabIndex?void 0:-1,disabled:this.question.isDisabledAttr,inputMode:a.inputMode,onChange:function(F){L(F)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},l.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var a={display:this.question.showClearButton?"":"none"};return h.createElement("div",{className:this.question.cssClasses.cleanButton,style:a,onClick:this.clear,"aria-hidden":"true"},h.createElement(ge,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},l.prototype.createChevronButton=function(){return this.question.cssClasses.chevronButtonIconId?h.createElement("div",{className:this.question.cssClasses.chevronButton,"aria-hidden":"true",onPointerDown:this.chevronPointerDown},h.createElement(ge,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:"auto"})):null},l.prototype.renderOther=function(a){return h.createElement("div",{className:this.question.getCommentAreaCss(!0)},h.createElement(ct,{question:this.question,otherCss:a.other,cssClasses:a,isDisplayMode:this.isDisplayMode,isOther:!0}))},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.updateInputDomElement()},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.updateInputDomElement()},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.dropdownListModel&&(this.question.dropdownListModel.focused=!1)},l.prototype.updateInputDomElement=function(){if(this.inputElement){var a=this.inputElement,c=this.question.dropdownListModel.inputStringRendered;C.Helpers.isTwoValueEquals(c,a.value,!1,!0,!1)||(a.value=this.question.dropdownListModel.inputStringRendered)}},l}(We),_=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),qr=function(p){_(l,p);function l(a){return p.call(this,a)||this}return l.prototype.renderElement=function(){var a=this.question.cssClasses,c=this.question.isOtherSelected?this.renderOther(a):null,f=this.renderSelect(a);return h.createElement("div",{className:this.question.renderCssRoot},f,c)},l}(Xn);Ce.Instance.registerQuestion("dropdown",function(p){return h.createElement(qr,p)});var Sn=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),er=function(p){Sn(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.item&&!!this.question},l.prototype.renderElement=function(){var a=this,c=this.renderLocString(this.item.locText),f=function(g){a.question.dropdownListModel.deselectItem(a.item.value),g.stopPropagation()};return h.createElement("div",{className:"sv-tagbox__item"},h.createElement("div",{className:"sv-tagbox__item-text"},c),h.createElement("div",{className:this.question.cssClasses.cleanItemButton,onClick:f},h.createElement(ge,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},l}(ie),xt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ut=function(p){xt(l,p);function l(a){return p.call(this,a)||this}return l.prototype.renderItem=function(a,c){var f=h.createElement(er,{key:a,question:this.question,item:c});return f},l.prototype.renderInput=function(a){var c=this,f=a,g=this.question.selectedChoices.map(function(L,F){return c.renderItem("item"+F,L)});return h.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:a.noTabIndex?void 0:0,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":this.question.ariaExpanded,"aria-controls":a.listElementId,"aria-activedescendant":a.ariaActivedescendant,ref:function(L){return c.setControl(L)}},h.createElement("div",{className:this.question.cssClasses.controlValue},g,h.createElement(Vn,{model:f,question:this.question})),this.createClearButton())},l.prototype.renderElement=function(){var a=this.question.cssClasses,c=this.question.isOtherSelected?this.renderOther(a):null,f=this.renderSelect(a);return h.createElement("div",{className:this.question.renderCssRoot},f,c)},l.prototype.renderReadOnlyElement=function(){return this.question.locReadOnlyText?this.renderLocString(this.question.locReadOnlyText):null},l}(Xn);Ce.Instance.registerQuestion("tagbox",function(p){return h.createElement(Ut,p)});var Zo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ye=function(p){Zo(l,p);function l(a){return p.call(this,a)||this}return l.prototype.renderSelect=function(a){var c=this,f=function(F){c.question.onClick(F)},g=function(F){c.question.onKeyUp(F)},L=this.isDisplayMode?h.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):h.createElement("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(F){return c.setControl(F)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:f,onKeyUp:g,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,required:this.question.isRequired},this.question.allowClear?h.createElement("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map(function(F,H){return h.createElement(Li,{key:"item"+H,item:F})}));return h.createElement("div",{className:a.selectWrapper},L,this.createChevronButton())},l}(qr);Ce.Instance.registerQuestion("sv-dropdown-select",function(p){return h.createElement(Ye,p)}),C.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select");var _r=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),on=function(p){_r(l,p);function l(a){var c=p.call(this,a)||this;return c.state={rowsChanged:0},c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){if(p.prototype.componentDidMount.call(this),this.question){var a=this;this.question.visibleRowsChangedCallback=function(){a.setState({rowsChanged:a.state.rowsChanged+1})}}},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},l.prototype.renderElement=function(){for(var a=this,c=this.question.cssClasses,f=this.question.hasRows?h.createElement("td",null):null,g=[],L=0;L<this.question.visibleColumns.length;L++){var F=this.question.visibleColumns[L],H="column"+L,ye=this.renderLocString(F.locText),ae={};this.question.columnMinWidth&&(ae.minWidth=this.question.columnMinWidth,ae.width=this.question.columnMinWidth),g.push(h.createElement("th",{className:this.question.cssClasses.headerCell,style:ae,key:H},this.wrapCell({column:F},ye,"column-header")))}for(var Ve=[],yt=this.question.visibleRows,L=0;L<yt.length;L++){var Ze=yt[L],H="row-"+Ze.name+"-"+L;Ve.push(h.createElement(Mi,{key:H,question:this.question,cssClasses:c,row:Ze,isFirst:L==0}))}var cn=this.question.showHeader?h.createElement("thead",null,h.createElement("tr",null,f,g)):null;return h.createElement("div",{className:c.tableWrapper,ref:function(qt){return a.setControl(qt)}},h.createElement("fieldset",null,h.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),h.createElement("table",{className:this.question.getTableCss()},cn,h.createElement("tbody",null,Ve))))},l}(ce),Mi=function(p){_r(l,p);function l(a){return p.call(this,a)||this}return l.prototype.getStateElement=function(){return this.row?this.row.item:p.prototype.getStateElement.call(this)},Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),l.prototype.wrapCell=function(a,c,f){if(!f)return c;var g=this.question.survey,L=null;return g&&(L=k.wrapMatrixCell(g,c,a,f)),L??c},l.prototype.canRender=function(){return!!this.row},l.prototype.renderElement=function(){var a=null;if(this.question.hasRows){var c=this.renderLocString(this.row.locText),f={};this.question.rowTitleWidth&&(f.minWidth=this.question.rowTitleWidth,f.width=this.question.rowTitleWidth),a=h.createElement("td",{style:f,className:this.row.rowTextClasses},this.wrapCell({row:this.row},c,"row-header"))}var g=this.generateTds();return h.createElement("tr",{className:this.row.rowClasses||void 0},a,g)},l.prototype.generateTds=function(){for(var a=this,c=[],f=this.row,g=this.question.cellComponent,L=function(){var ye=null,ae=F.question.visibleColumns[H],Ve="value"+H,yt=F.question.getItemClass(f,ae);if(F.question.hasCellText){var Ze=function(qt){return function(){return a.cellClick(f,qt)}};ye=h.createElement("td",{key:Ve,className:yt,onClick:Ze?Ze(ae):function(){}},F.renderLocString(F.question.getCellDisplayLocText(f.name,ae)))}else{var cn=A.Instance.createElement(g,{question:F.question,row:F.row,column:ae,columnIndex:H,cssClasses:F.cssClasses,cellChanged:function(){a.cellClick(a.row,ae)}});ye=h.createElement("td",{key:Ve,"data-responsive-title":ae.locText.renderedHtml,className:F.question.cssClasses.cell},cn)}c.push(ye)},F=this,H=0;H<this.question.visibleColumns.length;H++)L();return c},l.prototype.cellClick=function(a,c){a.value=c.value,this.setState({value:this.row.value})},l}(ie),Ge=function(p){_r(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnMouseDown=c.handleOnMouseDown.bind(c),c.handleOnChange=c.handleOnChange.bind(c),c}return l.prototype.handleOnChange=function(a){this.props.cellChanged&&this.props.cellChanged()},l.prototype.handleOnMouseDown=function(a){this.question.onMouseDown()},Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"columnIndex",{get:function(){return this.props.columnIndex},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.question&&!!this.row},l.prototype.renderElement=function(){var a=this.row.value==this.column.value,c=this.question.inputId+"_"+this.row.name+"_"+this.columnIndex,f=this.question.getItemClass(this.row,this.column),g=this.question.isMobile?h.createElement("span",{className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(this.column.locText)):void 0;return h.createElement("label",{onMouseDown:this.handleOnMouseDown,className:f},this.renderInput(c,a),h.createElement("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?h.createElement("svg",{className:this.cssClasses.itemDecorator},h.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null),g)},l.prototype.renderInput=function(a,c){return h.createElement("input",{id:a,type:"radio",className:this.cssClasses.itemValue,name:this.row.fullName,value:this.column.value,disabled:this.row.isDisabledAttr,readOnly:this.row.isReadOnlyAttr,checked:c,onChange:this.handleOnChange,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.getCellAriaLabel(this.row.locText.renderedHtml,this.column.locText.renderedHtml),"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage})},l}(ie);A.Instance.registerElement("survey-matrix-cell",function(p){return h.createElement(Ge,p)}),Ce.Instance.registerQuestion("matrix",function(p){return h.createElement(on,p)});var On=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ji=function(p){On(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){this.reactOnStrChanged()},l.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},l.prototype.componentDidUpdate=function(a,c){this.reactOnStrChanged()},l.prototype.reactOnStrChanged=function(){var a=this;this.question.locHtml.onChanged=function(){a.setState({changed:a.state&&a.state.changed?a.state.changed+1:1})}},l.prototype.canRender=function(){return p.prototype.canRender.call(this)&&!!this.question.html},l.prototype.renderElement=function(){var a={__html:this.question.locHtml.renderedHtml};return h.createElement("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:a})},l}(ce);Ce.Instance.registerQuestion("html",function(p){return h.createElement(ji,p)});var Ni=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Pe=function(p){Ni(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){return h.createElement("div",{className:"sd-loading-indicator"},h.createElement(ge,{iconName:"icon-loading",size:"auto"}))},l}(h.Component),Ko=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Br=function(p){Ko(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),l.prototype.render=function(){var a=this;return xn(w.a.createElement("label",{tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonText,onClick:function(c){return a.question.chooseFile(c.nativeEvent)}},this.question.cssClasses.chooseFileIconId?w.a.createElement(ge,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null,w.a.createElement("span",null,this.question.chooseButtonText)))},l}(ie);A.Instance.registerElement("sv-file-choose-btn",function(p){return w.a.createElement(Br,p)});var Fr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),tr=function(p){Fr(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,c=this.question.allowShowPreview?this.renderPreview():null,f=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,g=this.question.isPlayingVideo?this.renderVideo():null,L=this.question.showFileDecorator?this.renderFileDecorator():null,F=this.question.showRemoveButton?this.renderClearButton(this.question.cssClasses.removeButton):null,H=this.question.showRemoveButtonBottom?this.renderClearButton(this.question.cssClasses.removeButtonBottom):null,ye=this.question.fileNavigatorVisible?h.createElement(Re,{model:this.question.fileNavigator}):null,ae;return this.question.isReadOnlyAttr?ae=h.createElement("input",{readOnly:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(Ve){return a.setControl(Ve)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.isDisabledAttr?ae=h.createElement("input",{disabled:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(Ve){return a.setControl(Ve)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.hasFileUI?ae=h.createElement("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(Ve){return a.setControl(Ve)},style:this.isDisplayMode?{color:"transparent"}:{},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes,capture:this.question.renderCapture}):ae=null,h.createElement("div",{className:this.question.fileRootCss,ref:function(Ve){return a.setContent(Ve)}},ae,h.createElement("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},L,f,g,F,c,H,ye))},l.prototype.renderFileDecorator=function(){var a=this.question.showChooseButton?this.renderChooseButton():null,c=this.question.actionsContainerVisible?h.createElement(Re,{model:this.question.actionsContainer}):null,f=this.question.isEmpty()?h.createElement("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption):null;return h.createElement("div",{className:this.question.getFileDecoratorCss()},h.createElement("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.renderLocString(this.question.locRenderedPlaceholder)),h.createElement("div",{className:this.question.cssClasses.wrapper},a,c,f))},l.prototype.renderChooseButton=function(){return h.createElement(Br,{data:{question:this.question}})},l.prototype.renderClearButton=function(a){return this.question.isUploading?null:h.createElement("button",{type:"button",onClick:this.question.doClean,className:a},h.createElement("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?h.createElement(ge,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null)},l.prototype.renderPreview=function(){return A.Instance.createElement("sv-file-preview",{question:this.question})},l.prototype.renderLoadingIndicator=function(){return h.createElement("div",{className:this.question.cssClasses.loadingIndicator},h.createElement(Pe,null))},l.prototype.renderVideo=function(){return h.createElement("div",{className:this.question.cssClasses.videoContainer},h.createElement($e,{item:this.question.changeCameraAction}),h.createElement($e,{item:this.question.closeCameraAction}),h.createElement("video",{autoPlay:!0,playsInline:!0,id:this.question.videoId,className:this.question.cssClasses.video}),h.createElement($e,{item:this.question.takePictureAction}))},l}(ce);Ce.Instance.registerQuestion("file",function(p){return h.createElement(tr,p)});var qi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),En=function(p){qi(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.renderFileSign=function(a,c){var f=this;return!a||!c.name?null:w.a.createElement("div",{className:a},w.a.createElement("a",{href:c.content,onClick:function(g){f.question.doDownloadFile(g,c)},title:c.name,download:c.name,style:{width:this.question.imageWidth}},c.name))},l.prototype.renderElement=function(){var a=this,c=this.item;return w.a.createElement("span",{className:this.question.cssClasses.previewItem,onClick:function(f){return a.question.doDownloadFileFromContainer(f)}},this.renderFileSign(this.question.cssClasses.fileSign,c),w.a.createElement("div",{className:this.question.getImageWrapperCss(c)},this.question.canPreviewImage(c)?w.a.createElement("img",{src:c.content,style:{height:this.question.imageHeight,width:this.question.imageWidth},alt:"File preview"}):this.question.cssClasses.defaultImage?w.a.createElement(ge,{iconName:this.question.cssClasses.defaultImageIconId,size:"auto",className:this.question.cssClasses.defaultImage}):null,c.name&&!this.question.isReadOnly?w.a.createElement("div",{className:this.question.getRemoveButtonCss(),onClick:function(f){return a.question.doRemoveFile(c,f)}},w.a.createElement("span",{className:this.question.cssClasses.removeFile},this.question.removeFileCaption),this.question.cssClasses.removeFileSvgIconId?w.a.createElement(ge,{title:this.question.removeFileCaption,iconName:this.question.cssClasses.removeFileSvgIconId,size:"auto",className:this.question.cssClasses.removeFileSvg}):null):null),this.renderFileSign(this.question.cssClasses.fileSignBottom,c))},l.prototype.canRender=function(){return this.question.showPreviewContainer},l}($),xe=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Yo=function(p){xe(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"page",{get:function(){return this.props.page},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,c=this.page.items.map(function(f,g){return w.a.createElement(En,{item:f,question:a.question,key:g})});return w.a.createElement("div",{className:this.page.css,id:this.page.id},c)},l}($),Xo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Tn=function(p){Xo(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.renderFileSign=function(a,c){var f=this;return!a||!c.name?null:w.a.createElement("div",{className:a},w.a.createElement("a",{href:c.content,onClick:function(g){f.question.doDownloadFile(g,c)},title:c.name,download:c.name,style:{width:this.question.imageWidth}},c.name))},l.prototype.renderElement=function(){var a=this,c=this.question.supportFileNavigator?this.question.renderedPages.map(function(f,g){return w.a.createElement(Yo,{page:f,question:a.question,key:f.id})}):this.question.previewValue.map(function(f,g){return w.a.createElement(En,{item:f,question:a.question,key:g})});return w.a.createElement("div",{className:this.question.cssClasses.fileList||void 0},c)},l.prototype.canRender=function(){return this.question.showPreviewContainer},l}($);A.Instance.registerElement("sv-file-preview",function(p){return w.a.createElement(Tn,p)});var kr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),sn=function(p){kr(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){for(var a=this.question.cssClasses,c=this.question.getRows(),f=[],g=0;g<c.length;g++)c[g].isVisible&&f.push(this.renderRow(g,c[g].cells,a));return h.createElement("table",{className:this.question.getQuestionRootCss()},h.createElement("tbody",null,f))},l.prototype.renderCell=function(a,c,f){var g,L=function(){a.item.focusIn()};return a.isErrorsCell?g=h.createElement(wi,{question:a.item.editor,creator:this.creator}):g=h.createElement(Qr,{question:this.question,item:a.item,creator:this.creator,cssClasses:c}),h.createElement("td",{key:"item"+f,className:a.className,onFocus:L},g)},l.prototype.renderRow=function(a,c,f){for(var g="item"+a,L=[],F=0;F<c.length;F++){var H=c[F];L.push(this.renderCell(H,f,F))}return h.createElement("tr",{key:g,className:f.row},L)},l}(ce),Qr=function(p){kr(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this.item,c=this.cssClasses,f={};return this.question.itemTitleWidth&&(f.minWidth=this.question.itemTitleWidth,f.width=this.question.itemTitleWidth),h.createElement("label",{className:this.question.getItemLabelCss(a)},h.createElement("span",{className:c.itemTitle,style:f},h.createElement(he,{element:a.editor,cssClasses:a.editor.cssClasses})),h.createElement(_i,{cssClasses:c,itemCss:this.question.getItemCss(),question:a.editor,creator:this.creator}))},l}(ie),_i=function(p){kr(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.renderElement=function(){return h.createElement("div",{className:this.itemCss},this.renderContent())},l}(bi);Ce.Instance.registerQuestion("multipletext",function(p){return h.createElement(sn,p)});var nr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Rn=function(p){nr(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,c=this.question.cssClasses,f=null;return this.question.showClearButtonInContent&&(f=h.createElement("div",null,h.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return a.question.clearValue(!0)},value:this.question.clearButtonCaption}))),h.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(g){return a.setControl(g)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},this.question.hasColumns?this.getColumnedBody(c):this.getBody(c),this.getFooter(),this.question.isOtherSelected?this.renderOther(c):null,f)},l.prototype.getFooter=function(){var a=this;if(this.question.hasFootItems)return this.question.footItems.map(function(c,f){return a.renderItem(c,!1,a.question.cssClasses)})},l.prototype.getColumnedBody=function(a){return h.createElement("div",{className:a.rootMultiColumn},this.getColumns(a))},l.prototype.getColumns=function(a){var c=this,f=this.getStateValue();return this.question.columns.map(function(g,L){var F=g.map(function(H,ye){return c.renderItem(H,f,a,""+L+ye)});return h.createElement("div",{key:"column"+L+c.question.getItemsColumnKey(g),className:c.question.getColumnClass(),role:"presentation"},F)})},l.prototype.getBody=function(a){return this.question.blockedRow?h.createElement("div",{className:a.rootRow},this.getItems(a,this.question.dataChoices)):h.createElement(h.Fragment,null,this.getItems(a,this.question.bodyItems))},l.prototype.getItems=function(a,c){for(var f=[],g=this.getStateValue(),L=0;L<c.length;L++){var F=c[L],H=this.renderItem(F,g,a,""+L);f.push(H)}return f},Object.defineProperty(l.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),l.prototype.renderOther=function(a){return h.createElement("div",{className:this.question.getCommentAreaCss(!0)},h.createElement(ct,{question:this.question,otherCss:a.other,cssClasses:a,isDisplayMode:this.isDisplayMode}))},l.prototype.renderItem=function(a,c,f,g){var L=A.Instance.createElement(this.question.itemComponent,{key:a.value,question:this.question,cssClasses:f,isDisplayMode:this.isDisplayMode,item:a,textStyle:this.textStyle,index:g,isChecked:c===a.value}),F=this.question.survey,H=null;return F&&(H=k.wrapItemValue(F,L,this.question,a)),H??L},l.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},l}(ce),In=function(p){nr(l,p);function l(a){var c=p.call(this,a)||this;return c.rootRef=h.createRef(),c.handleOnChange=c.handleOnChange.bind(c),c.handleOnMouseDown=c.handleOnMouseDown.bind(c),c}return l.prototype.getStateElement=function(){return this.item},Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hideCaption",{get:function(){return this.props.hideCaption===!0},enumerable:!1,configurable:!0}),l.prototype.shouldComponentUpdate=function(a,c){return!p.prototype.shouldComponentUpdate.call(this,a,c)||!this.question?!1:!this.question.customWidget||!!this.question.customWidgetData.isNeedRender||!!this.question.customWidget.widgetJson.isDefaultRender||!!this.question.customWidget.widgetJson.render},l.prototype.handleOnChange=function(a){this.question.clickItemHandler(this.item)},l.prototype.handleOnMouseDown=function(a){this.question.onMouseDown()},l.prototype.canRender=function(){return!!this.question&&!!this.item},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),a.item!==this.props.item&&!this.question.isDesignMode&&(this.props.item&&this.props.item.setRootElement(this.rootRef.current),a.item&&a.item.setRootElement(void 0))},l.prototype.renderElement=function(){var a=this.question.getItemClass(this.item),c=this.question.getLabelClass(this.item),f=this.question.getControlLabelClass(this.item),g=this.hideCaption?null:h.createElement("span",{className:f},this.renderLocString(this.item.locText,this.textStyle));return h.createElement("div",{className:a,role:"presentation",ref:this.rootRef},h.createElement("label",{onMouseDown:this.handleOnMouseDown,className:c},h.createElement("input",{"aria-errormessage":this.question.ariaErrormessage,className:this.cssClasses.itemControl,id:this.question.getItemId(this.item),type:"radio",name:this.question.questionName,checked:this.isChecked,value:this.item.value,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange}),this.cssClasses.materialDecorator?h.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?h.createElement("svg",{className:this.cssClasses.itemDecorator},h.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,g))},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},l}(ie);A.Instance.registerElement("survey-radiogroup-item",function(p){return h.createElement(In,p)}),Ce.Instance.registerQuestion("radiogroup",function(p){return h.createElement(Rn,p)});var Nt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),rr=function(p){Nt(l,p);function l(a){return p.call(this,a)||this}return l.prototype.renderInput=function(){var a=this,c=this.question.getControlClass(),f=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return h.createElement("div",null,this.question.inputValue);var g=this.question.getMaxLength()?h.createElement(Ot,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return h.createElement(h.Fragment,null,h.createElement("input",{id:this.question.inputId,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:c,type:this.question.inputType,ref:function(L){return a.setControl(L)},style:this.question.inputStyle,maxLength:this.question.getMaxLength(),min:this.question.renderedMin,max:this.question.renderedMax,step:this.question.renderedStep,size:this.question.inputSize,placeholder:f,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:function(L){a.question.onBlur(L)},onFocus:function(L){a.question.onFocus(L)},onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(L){return a.question.onCompositionUpdate(L.nativeEvent)},"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),g)},l.prototype.renderElement=function(){return this.question.dataListId?h.createElement("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},l.prototype.setValueCore=function(a){this.question.inputValue=a},l.prototype.getValueCore=function(){return this.question.inputValue},l.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var a=this.question.dataList;if(a.length==0)return null;for(var c=[],f=0;f<a.length;f++)c.push(h.createElement("option",{key:"item"+f,value:a[f]}));return h.createElement("datalist",{id:this.question.dataListId},c)},l}(We);Ce.Instance.registerQuestion("text",function(p){return h.createElement(rr,p)});var Bi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),rt=function(p){Bi(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnChange=c.handleOnChange.bind(c),c.handleOnClick=c.handleOnClick.bind(c),c.handleOnLabelClick=c.handleOnLabelClick.bind(c),c.handleOnSwitchClick=c.handleOnSwitchClick.bind(c),c.handleOnKeyDown=c.handleOnKeyDown.bind(c),c.checkRef=h.createRef(),c}return l.prototype.getStateElement=function(){return this.question},Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.doCheck=function(a){this.question.booleanValue=a},l.prototype.handleOnChange=function(a){this.doCheck(a.target.checked)},l.prototype.handleOnClick=function(a){this.question.onLabelClick(a,!0)},l.prototype.handleOnSwitchClick=function(a){this.question.onSwitchClickModel(a.nativeEvent)},l.prototype.handleOnLabelClick=function(a,c){this.question.onLabelClick(a,c)},l.prototype.handleOnKeyDown=function(a){this.question.onKeyDownCore(a)},l.prototype.updateDomElement=function(){if(this.question){var a=this.checkRef.current;a&&(a.indeterminate=this.question.isIndeterminate),this.setControl(a),p.prototype.updateDomElement.call(this)}},l.prototype.renderElement=function(){var a=this,c=this.question.cssClasses,f=this.question.getItemCss();return h.createElement("div",{className:c.root,onKeyDown:this.handleOnKeyDown},h.createElement("label",{className:f,onClick:this.handleOnClick},h.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:this.question.booleanValue===null?"":this.question.booleanValue,id:this.question.inputId,className:c.control,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),h.createElement("div",{className:c.sliderGhost,onClick:function(g){return a.handleOnLabelClick(g,a.question.swapOrder)}},h.createElement("span",{className:this.question.getLabelCss(this.question.swapOrder)},this.renderLocString(this.question.locLabelLeft))),h.createElement("div",{className:c.switch,onClick:this.handleOnSwitchClick},h.createElement("span",{className:c.slider},this.question.isDeterminated&&c.sliderText?h.createElement("span",{className:c.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),h.createElement("div",{className:c.sliderGhost,onClick:function(g){return a.handleOnLabelClick(g,!a.question.swapOrder)}},h.createElement("span",{className:this.question.getLabelCss(!this.question.swapOrder)},this.renderLocString(this.question.locLabelRight)))))},l}(ce);Ce.Instance.registerQuestion("boolean",function(p){return h.createElement(rt,p)});var ir=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),or=function(p){ir(l,p);function l(a){return p.call(this,a)||this}return l.prototype.renderElement=function(){var a=this.question.cssClasses,c=this.question.getCheckboxItemCss(),f=this.question.canRenderLabelDescription?$.renderQuestionDescription(this.question):null;return h.createElement("div",{className:a.rootCheckbox},h.createElement("div",{className:c},h.createElement("label",{className:a.checkboxLabel},h.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:this.question.booleanValue===null?"":this.question.booleanValue,id:this.question.inputId,className:a.controlCheckbox,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),h.createElement("span",{className:a.checkboxMaterialDecorator},this.question.svgIcon?h.createElement("svg",{className:a.checkboxItemDecorator},h.createElement("use",{xlinkHref:this.question.svgIcon})):null,h.createElement("span",{className:"check"})),this.question.isLabelRendered&&h.createElement("span",{className:a.checkboxControlLabel,id:this.question.labelRenderedAriaID},h.createElement(Je,{element:this.question,cssClasses:this.question.cssClasses}))),f))},l}(rt);Ce.Instance.registerQuestion("sv-boolean-checkbox",function(p){return h.createElement(or,p)}),C.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox");var _e=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Fi=function(p){_e(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnChange=function(f){c.question.booleanValue=f.nativeEvent.target.value=="true"},c}return l.prototype.renderRadioItem=function(a,c){var f=this.question.cssClasses;return h.createElement("div",{role:"presentation",className:this.question.getRadioItemClass(f,a)},h.createElement("label",{className:f.radioLabel},h.createElement("input",{type:"radio",name:this.question.name,value:a,"aria-errormessage":this.question.ariaErrormessage,checked:a===this.question.booleanValueRendered,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:f.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?h.createElement("span",{className:f.materialRadioDecorator},this.question.itemSvgIcon?h.createElement("svg",{className:f.itemRadioDecorator},h.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,h.createElement("span",{className:f.radioControlLabel},this.renderLocString(c))))},l.prototype.renderElement=function(){var a=this.question.cssClasses;return h.createElement("div",{className:a.rootRadio},h.createElement("fieldset",{role:"presentation",className:a.radioFieldset},this.question.swapOrder?h.createElement(h.Fragment,null,this.renderRadioItem(!0,this.question.locLabelTrue),this.renderRadioItem(!1,this.question.locLabelFalse)):h.createElement(h.Fragment,null,this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue))))},l}(rt);Ce.Instance.registerQuestion("sv-boolean-radio",function(p){return h.createElement(Fi,p)}),C.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio");var gt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Hr=function(p){gt(l,p);function l(a){var c=p.call(this,a)||this;return c.state={value:c.question.value},c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){return h.createElement("div",null)},l}(ce);Ce.Instance.registerQuestion("empty",function(p){return h.createElement(Hr,p)});var ki=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Wt=function(p){ki(l,p);function l(a){var c=p.call(this,a)||this;return c.root=w.a.createRef(),c.onPointerDownHandler=function(f){c.parentMatrix.onPointerDown(f.nativeEvent,c.model.row)},c}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.model},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.root.current&&this.model.setRootElement(this.root.current)},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.model.setRootElement(void 0)},l.prototype.shouldComponentUpdate=function(a,c){return p.prototype.shouldComponentUpdate.call(this,a,c)?(a.model!==this.model&&(a.element&&a.element.setRootElement(this.root.current),this.model&&this.model.setRootElement(void 0)),!0):!1},l.prototype.render=function(){var a=this,c=this.model;return c.visible?w.a.createElement("tr",{ref:this.root,className:c.className,"data-sv-drop-target-matrix-row":c.row&&c.row.id,onPointerDown:function(f){return a.onPointerDownHandler(f)}},this.props.children):null},l}($);A.Instance.registerElement("sv-matrix-row",function(p){return w.a.createElement(Wt,p)});var Dn=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),sr=function(p){Dn(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){return w.a.createElement("div",null,this.renderIcon())},l.prototype.renderIcon=function(){return this.question.iconDragElement?w.a.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},w.a.createElement("use",{xlinkHref:this.question.iconDragElement})):w.a.createElement("span",{className:this.question.cssClasses.iconDrag})},l}(ie);A.Instance.registerElement("sv-matrix-drag-drop-icon",function(p){return w.a.createElement(sr,p)});var an=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),An=function(p){an(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"table",{get:function(){return this.question.renderedTable},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.table},l.prototype.wrapCell=function(a,c,f){return this.props.wrapCell(a,c,f)},l.prototype.renderHeader=function(){var a=this.question.renderedTable;if(!a.showHeader)return null;for(var c=[],f=a.headerRow.cells,g=0;g<f.length;g++){var L=f[g],F="column"+g,H={};L.width&&(H.width=L.width),L.minWidth&&(H.minWidth=L.minWidth);var ye=this.renderCellContent(L,"column-header",{}),ae=L.hasTitle?h.createElement("th",{className:L.className,key:F,style:H}," ",ye," "):h.createElement("td",{className:L.className,key:F,style:H});c.push(ae)}return h.createElement("thead",null,h.createElement("tr",null,c))},l.prototype.renderFooter=function(){var a=this.question.renderedTable;if(!a.showFooter)return null;var c=this.renderRow("footer",a.footerRow,this.question.cssClasses,"row-footer");return h.createElement("tfoot",null,c)},l.prototype.renderRows=function(){for(var a=this.question.cssClasses,c=[],f=this.question.renderedTable.renderedRows,g=0;g<f.length;g++)c.push(this.renderRow(f[g].id,f[g],a));return h.createElement("tbody",null,c)},l.prototype.renderRow=function(a,c,f,g){for(var L=[],F=c.cells,H=0;H<F.length;H++)L.push(this.renderCell(F[H],f,g));var ye="row"+a;return h.createElement(h.Fragment,{key:ye},g=="row-footer"?h.createElement("tr",null,L):h.createElement(Wt,{model:c,parentMatrix:this.question},L))},l.prototype.renderCell=function(a,c,f){var g="cell"+a.id;if(a.hasQuestion)return h.createElement(Qi,{key:g,cssClasses:c,cell:a,creator:this.creator,reason:f});if(a.isErrorsCell&&a.isErrorsCell)return h.createElement(ar,{cell:a,key:g,keyValue:g,question:a.question,creator:this.creator});var L=f;L||(L=a.hasTitle?"row-header":"");var F=this.renderCellContent(a,L,c),H=null;return(a.width||a.minWidth)&&(H={},a.width&&(H.width=a.width),a.minWidth&&(H.minWidth=a.minWidth)),h.createElement("td",{className:a.className,key:g,style:H,colSpan:a.colSpans,title:a.getTitle()},F)},l.prototype.renderCellContent=function(a,c,f){var g=null,L=null;if((a.width||a.minWidth)&&(L={},a.width&&(L.width=a.width),a.minWidth&&(L.minWidth=a.minWidth)),a.hasTitle){c="row-header";var F=this.renderLocString(a.locTitle),H=a.column?h.createElement(lr,{column:a.column,question:this.question}):null;g=h.createElement(h.Fragment,null,F,H)}if(a.isDragHandlerCell&&(g=h.createElement(h.Fragment,null,h.createElement(sr,{item:{data:{row:a.row,question:this.question}}}))),a.isActionsCell&&(g=A.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:f,cell:a,model:a.item.getData()})),a.hasPanel&&(g=h.createElement(ze,{key:a.panel.id,element:a.panel,survey:this.question.survey,cssClasses:f,isDisplayMode:this.isDisplayMode,creator:this.creator})),!g)return null;var ye=h.createElement(h.Fragment,null,g);return this.wrapCell(a,ye,c)},l.prototype.renderElement=function(){var a=this.renderHeader(),c=this.renderFooter(),f=this.renderRows();return h.createElement("table",{className:this.question.getTableCss()},a,f,c)},l}($),Ln=function(p){an(l,p);function l(a){var c=p.call(this,a)||this;return c.question.renderedTable,c.state=c.getState(),c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.getState=function(a){return a===void 0&&(a=null),{rowCounter:a?a.rowCounter+1:0}},l.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},l.prototype.componentDidMount=function(){var a=this;p.prototype.componentDidMount.call(this),this.question.onRenderedTableResetCallback=function(){a.updateStateOnCallback()}},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.onRenderedTableResetCallback=function(){}},l.prototype.renderElement=function(){return this.renderTableDiv()},l.prototype.renderTableDiv=function(){var a=this,c=this.question.showHorizontalScroll?{overflowX:"scroll"}:{};return h.createElement("div",{style:c,className:this.question.cssClasses.tableWrapper,ref:function(f){return a.setControl(f)}},h.createElement(An,{question:this.question,creator:this.creator,wrapCell:function(f,g,L){return a.wrapCell(f,g,L)}}))},l}(ce),es=function(p){an(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){return h.createElement(Re,{model:this.model,handleClick:!1})},l}(ie),ar=function(p){an(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"key",{get:function(){return this.props.keyValue},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),l.prototype.render=function(){return this.cell.isVisible?h.createElement("td",{className:this.cell.className,key:this.key,colSpan:this.cell.colSpans,title:this.cell.getTitle()},p.prototype.render.call(this)):null},l.prototype.getQuestionPropertiesToTrack=function(){return p.prototype.getQuestionPropertiesToTrack.call(this).concat(["visible"])},l}(wi);A.Instance.registerElement("sv-matrixdynamic-actions-cell",function(p){return h.createElement(es,p)});var lr=function(p){an(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.column},l.prototype.renderElement=function(){return this.column.isRenderedRequired?h.createElement(h.Fragment,null,h.createElement("span",null," "),h.createElement("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},l}(ie),Qi=function(p){an(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),l.prototype.getQuestion=function(){var a=p.prototype.getQuestion.call(this);return a||(this.cell?this.cell.question:null)},l.prototype.doAfterRender=function(){var a=this.cellRef.current;if(a&&this.cell&&this.question&&this.question.survey&&a.getAttribute("data-rendered")!=="r"){a.setAttribute("data-rendered","r");var c={cell:this.cell,cellQuestion:this.question,htmlElement:a,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,c),this.question.afterRenderCore(a)}},l.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},l.prototype.getCellStyle=function(){var a=p.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(a||(a={}),this.cell.width&&(a.width=this.cell.width),this.cell.minWidth&&(a.minWidth=this.cell.minWidth)),a},l.prototype.getHeaderText=function(){return this.cell.headers},l.prototype.renderElement=function(){return this.cell.isVisible?p.prototype.renderElement.call(this):null},l.prototype.renderCellContent=function(){var a=p.prototype.renderCellContent.call(this),c=this.cell.showResponsiveTitle?h.createElement("span",{className:this.cell.responsiveTitleCss},this.renderLocString(this.cell.responsiveLocTitle),h.createElement(lr,{column:this.cell.column,question:this.cell.matrix})):null;return h.createElement(h.Fragment,null,c,a)},l.prototype.renderQuestion=function(){return this.question.isVisible?this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():nn.renderQuestionBody(this.creator,this.question):h.createElement(h.Fragment,null)},l.prototype.renderOtherComment=function(){var a=this.cell.question,c=a.cssClasses||{};return h.createElement(ct,{question:a,cssClasses:c,otherCss:c.other,isDisplayMode:a.isInputReadOnly})},l.prototype.renderCellCheckboxButton=function(){var a=this.cell.question.id+"item"+this.cell.choiceIndex;return h.createElement(Dr,{key:a,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,isFirst:this.cell.isFirstChoice,index:this.cell.choiceIndex.toString(),hideCaption:!0})},l.prototype.renderCellRadiogroupButton=function(){var a=this.cell.question.id+"item"+this.cell.choiceIndex;return h.createElement(In,{key:a,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,index:this.cell.choiceIndex.toString(),isChecked:this.cell.question.value===this.cell.item.value,isDisabled:this.cell.question.isReadOnly||!this.cell.item.isEnabled,hideCaption:!0})},l}(Ci),zr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Hi=function(p){zr(l,p);function l(a){return p.call(this,a)||this}return l}(Ln);Ce.Instance.registerQuestion("matrixdropdown",function(p){return h.createElement(Hi,p)});var ur=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Ur=function(p){ur(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnRowAddClick=c.handleOnRowAddClick.bind(c),c}return Object.defineProperty(l.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.handleOnRowAddClick=function(a){this.matrix.addRowUI()},l.prototype.renderElement=function(){var a=this.question.cssClasses,c=this.question.renderedTable.showTable,f=c?this.renderTableDiv():this.renderNoRowsContent(a);return h.createElement("div",null,this.renderAddRowButtonOnTop(a),f,this.renderAddRowButtonOnBottom(a))},l.prototype.renderAddRowButtonOnTop=function(a){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(a):null},l.prototype.renderAddRowButtonOnBottom=function(a){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(a):null},l.prototype.renderNoRowsContent=function(a){var c=this.renderLocString(this.matrix.locEmptyRowsText),f=h.createElement("div",{className:a.emptyRowsText},c),g=this.matrix.renderedTable.showAddRow?this.renderAddRowButton(a,!0):void 0;return h.createElement("div",{className:a.emptyRowsSection},f,g)},l.prototype.renderAddRowButton=function(a,c){return c===void 0&&(c=!1),A.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:a,isEmptySection:c})},l}(Ln);Ce.Instance.registerQuestion("matrixdynamic",function(p){return h.createElement(Ur,p)});var cr=function(p){ur(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnRowAddClick=c.handleOnRowAddClick.bind(c),c}return Object.defineProperty(l.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.handleOnRowAddClick=function(a){this.matrix.addRowUI()},l.prototype.renderElement=function(){var a=this.renderLocString(this.matrix.locAddRowText),c=h.createElement("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},a,h.createElement("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?c:h.createElement("div",{className:this.props.cssClasses.footer},c)},l}(ie);A.Instance.registerElement("sv-matrixdynamic-add-btn",function(p){return h.createElement(cr,p)});var zi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Mn=function(p){zi(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),l}(ie),Ui=function(p){zi(l,p);function l(){var a=p!==null&&p.apply(this,arguments)||this;return a.handleClick=function(c){a.question.addPanelUI()},a}return l.prototype.renderElement=function(){if(!this.question.canAddPanel)return null;var a=this.renderLocString(this.question.locPanelAddText);return w.a.createElement("button",{type:"button",id:this.question.addButtonId,className:this.question.getAddButtonCss(),onClick:this.handleClick},w.a.createElement("span",{className:this.question.cssClasses.buttonAddText},a))},l}(Mn);A.Instance.registerElement("sv-paneldynamic-add-btn",function(p){return w.a.createElement(Ui,p)});var ts=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Et=function(p){ts(l,p);function l(){var a=p!==null&&p.apply(this,arguments)||this;return a.handleClick=function(c){a.question.goToNextPanel()},a}return l.prototype.renderElement=function(){return w.a.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},w.a.createElement(ge,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},l}(Mn);A.Instance.registerElement("sv-paneldynamic-next-btn",function(p){return w.a.createElement(Et,p)});var pr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),jn=function(p){pr(l,p);function l(){var a=p!==null&&p.apply(this,arguments)||this;return a.handleClick=function(c){a.question.goToPrevPanel()},a}return l.prototype.renderElement=function(){return w.a.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},w.a.createElement(ge,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},l}(Mn);A.Instance.registerElement("sv-paneldynamic-prev-btn",function(p){return w.a.createElement(jn,p)});var Wi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),fr=function(p){Wi(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.renderElement=function(){return w.a.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},l}(Mn);A.Instance.registerElement("sv-paneldynamic-progress-text",function(p){return w.a.createElement(fr,p)});var $i=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),dr=function(p){$i(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var a=this;this.question.panelCountChangedCallback=function(){a.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){a.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){a.updateQuestionRendering()}},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},l.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},l.prototype.renderElement=function(){var a=this,c=[];this.question.renderedPanels.forEach(function(ye,ae){c.push(h.createElement(ns,{key:ye.id,element:ye,question:a.question,index:ae,cssClasses:a.question.cssClasses,isDisplayMode:a.isDisplayMode,creator:a.creator}))});var f=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,g=this.question.isProgressTopShowing?this.renderNavigator():null,L=this.question.isProgressBottomShowing?this.renderNavigator():null,F=this.renderNavigatorV2(),H=this.renderPlaceholder();return h.createElement("div",{className:this.question.cssClasses.root},H,g,h.createElement("div",{className:this.question.cssClasses.panelsContainer},c),L,f,F)},l.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)return this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null;var a=this.question.isRangeShowing?this.renderRange():null,c=this.rendrerPrevButton(),f=this.rendrerNextButton(),g=this.renderAddRowButton(),L=this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom;return h.createElement("div",{className:L},h.createElement("div",{style:{clear:"both"}},h.createElement("div",{className:this.question.cssClasses.progressContainer},c,a,f),g,this.renderProgressText()))},l.prototype.renderProgressText=function(){return h.createElement(fr,{data:{question:this.question}})},l.prototype.rendrerPrevButton=function(){return h.createElement(jn,{data:{question:this.question}})},l.prototype.rendrerNextButton=function(){return h.createElement(Et,{data:{question:this.question}})},l.prototype.renderRange=function(){return h.createElement("div",{className:this.question.cssClasses.progress},h.createElement("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},l.prototype.renderAddRowButton=function(){return A.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},l.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var a=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return h.createElement("div",{className:this.question.cssClasses.footer},h.createElement("hr",{className:this.question.cssClasses.separator}),a,this.question.footerToolbar.visibleActions.length?h.createElement("div",{className:this.question.cssClasses.footerButtonsContainer},h.createElement(Re,{model:this.question.footerToolbar})):null)},l.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?h.createElement("div",{className:this.question.cssClasses.noEntriesPlaceholder},h.createElement("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},l}(ce),ns=function(p){$i(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),l.prototype.getSurvey=function(){return this.question?this.question.survey:null},l.prototype.getCss=function(){var a=this.getSurvey();return a?a.getCss():{}},l.prototype.render=function(){var a=p.prototype.render.call(this),c=this.renderButton(),f=this.question.showSeparator(this.index)?h.createElement("hr",{className:this.question.cssClasses.separator}):null;return h.createElement(h.Fragment,null,h.createElement("div",{className:this.question.getPanelWrapperCss(this.panel)},a,c),f)},l.prototype.renderButton=function(){return this.question.panelRemoveButtonLocation!=="right"||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:A.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},l}(ze);Ce.Instance.registerQuestion("paneldynamic",function(p){return h.createElement(dr,p)});var Ji=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ke=function(p){Ji(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),l.prototype.render=function(){var a={width:this.progress+"%"};return h.createElement("div",{className:this.survey.getProgressCssClasses(this.props.container)},h.createElement("div",{style:a,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},h.createElement("span",{className:C.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),h.createElement("span",{className:C.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},l}(Ht);A.Instance.registerElement("sv-progress-pages",function(p){return h.createElement(ke,p)}),A.Instance.registerElement("sv-progress-questions",function(p){return h.createElement(ke,p)}),A.Instance.registerElement("sv-progress-correctquestions",function(p){return h.createElement(ke,p)}),A.Instance.registerElement("sv-progress-requiredquestions",function(p){return h.createElement(ke,p)});var Wr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),hr=function(p){Wr(l,p);function l(a){var c=p.call(this,a)||this;return c.listContainerRef=h.createRef(),c}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"container",{get:function(){return this.props.container},enumerable:!1,configurable:!0}),l.prototype.onResize=function(a){this.setState({canShowItemTitles:a}),this.setState({canShowHeader:!a})},l.prototype.onUpdateScroller=function(a){this.setState({hasScroller:a})},l.prototype.onUpdateSettings=function(){this.setState({canShowItemTitles:this.model.showItemTitles}),this.setState({canShowFooter:!this.model.showItemTitles})},l.prototype.render=function(){var a=this;return h.createElement("div",{className:this.model.getRootCss(this.props.container),style:{maxWidth:this.model.progressWidth},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},this.state.canShowHeader?h.createElement("div",{className:this.css.progressButtonsHeader},h.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.headerText},this.model.headerText)):null,h.createElement("div",{className:this.css.progressButtonsContainer},h.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!0),role:"button",onClick:function(){return a.clickScrollButton(a.listContainerRef.current,!0)}}),h.createElement("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},h.createElement("ul",{className:this.css.progressButtonsList},this.getListElements())),h.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!1),role:"button",onClick:function(){return a.clickScrollButton(a.listContainerRef.current,!1)}})),this.state.canShowFooter?h.createElement("div",{className:this.css.progressButtonsFooter},h.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.footerText},this.model.footerText)):null)},l.prototype.getListElements=function(){var a=this,c=[];return this.survey.visiblePages.forEach(function(f,g){c.push(a.renderListElement(f,g))}),c},l.prototype.renderListElement=function(a,c){var f=this,g=$.renderLocString(a.locNavigationTitle);return h.createElement("li",{key:"listelement"+c,className:this.model.getListElementCss(c),onClick:this.model.isListElementClickable(c)?function(){return f.model.clickListElement(a)}:void 0,"data-page-number":this.model.getItemNumber(a)},h.createElement("div",{className:this.css.progressButtonsConnector}),this.state.canShowItemTitles?h.createElement(h.Fragment,null,h.createElement("div",{className:this.css.progressButtonsPageTitle,title:a.renderedNavigationTitle},g),h.createElement("div",{className:this.css.progressButtonsPageDescription,title:a.navigationDescription},a.navigationDescription)):null,h.createElement("div",{className:this.css.progressButtonsButton},h.createElement("div",{className:this.css.progressButtonsButtonBackground}),h.createElement("div",{className:this.css.progressButtonsButtonContent}),h.createElement("span",null,this.model.getItemNumber(a))))},l.prototype.clickScrollButton=function(a,c){a&&(a.scrollLeft+=(c?-1:1)*70)},l.prototype.componentDidMount=function(){var a=this;p.prototype.componentDidMount.call(this),setTimeout(function(){a.respManager=new C.ProgressButtonsResponsivityManager(a.model,a.listContainerRef.current,a)},10)},l.prototype.componentWillUnmount=function(){this.respManager&&this.respManager.dispose(),p.prototype.componentWillUnmount.call(this)},l}(Ht);A.Instance.registerElement("sv-progress-buttons",function(p){return h.createElement(hr,p)});var rs=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Gi=function(p){rs(l,p);function l(){var a=p!==null&&p.apply(this,arguments)||this;return a.handleKeydown=function(c){a.model.onKeyDown(c)},a}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.render=function(){var a=this;if(!this.item)return null;var c=this.model.getItemClass(this.item),f=this.item.component||this.model.itemComponent,g=A.Instance.createElement(f,{item:this.item,key:this.item.id,model:this.model}),L=w.a.createElement("div",{style:this.model.getItemStyle(this.item),className:this.model.cssClasses.itemBody,title:this.item.getTooltip(),onMouseOver:function(ae){a.model.onItemHover(a.item)},onMouseLeave:function(ae){a.model.onItemLeave(a.item)}},g),F=this.item.needSeparator?w.a.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,H=this.model.isItemVisible(this.item),ye={display:H?null:"none"};return xn(w.a.createElement("li",{className:c,role:"option",style:ye,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(ae){a.model.onItemClick(a.item),ae.stopPropagation()},onPointerDown:function(ae){return a.model.onPointerDown(ae,a.item)}},F,L),this.item)},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},l}($);A.Instance.registerElement("sv-list-item",function(p){return w.a.createElement(Gi,p)});var ln=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Nn=function(p){ln(l,p);function l(a){var c=p.call(this,a)||this;return c.handleKeydown=function(f){c.model.onKeyDown(f)},c.handleMouseMove=function(f){c.model.onMouseMove(f)},c.state={filterString:c.model.filterString||""},c.listContainerRef=w.a.createRef(),c}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.model},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},l.prototype.componentDidUpdate=function(a,c){var f;p.prototype.componentDidUpdate.call(this,a,c),this.model!==a.model&&(this.model&&(!((f=this.listContainerRef)===null||f===void 0)&&f.current)&&this.model.initListContainerHtmlElement(this.listContainerRef.current),a.model&&a.model.initListContainerHtmlElement(void 0))},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.model&&this.model.initListContainerHtmlElement(void 0)},l.prototype.renderElement=function(){return w.a.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},l.prototype.renderList=function(){if(!this.model.renderElements)return null;var a=this.renderItems(),c={display:this.model.isEmpty?"none":null};return w.a.createElement("ul",{className:this.model.getListClass(),style:c,role:"listbox",id:this.model.elementId,onMouseDown:function(f){f.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},a)},l.prototype.renderItems=function(){var a=this;if(!this.model)return null;var c=this.model.renderedActions;return c?c.map(function(f,g){return w.a.createElement(Gi,{model:a.model,item:f,key:"item"+g})}):null},l.prototype.searchElementContent=function(){var a=this;if(this.model.showFilter){var c=function(L){var F=C.settings.environment.root;L.target===F.activeElement&&(a.model.filterString=L.target.value)},f=function(L){a.model.goToItems(L)},g=this.model.showSearchClearButton&&this.model.filterString?w.a.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(L){a.model.onClickSearchClearButton(L)}},w.a.createElement(ge,{iconName:"icon-searchclear",size:"auto"})):null;return w.a.createElement("div",{className:this.model.cssClasses.filter},w.a.createElement("div",{className:this.model.cssClasses.filterIcon},w.a.createElement(ge,{iconName:"icon-search",size:"auto"})),w.a.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:f,onChange:c}),g)}else return null},l.prototype.emptyContent=function(){var a={display:this.model.isEmpty?null:"none"};return w.a.createElement("div",{className:this.model.cssClasses.emptyContainer,style:a},w.a.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},l}($);A.Instance.registerElement("sv-list",function(p){return w.a.createElement(Nn,p)});var is=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Zi=function(p){is(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){var a=this.props.model,c;return a.isMobile?c=h.createElement("div",{onClick:a.togglePopup},h.createElement(ge,{iconName:a.icon,size:24}),h.createElement(Qe,{model:a.popupModel})):c=h.createElement(Nn,{model:a.listModel}),h.createElement("div",{className:a.containerCss},c)},l}(Ht);A.Instance.registerElement("sv-navigation-toc",function(p){return h.createElement(Zi,p)});var Ki=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Yi=function(p){Ki(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnClick=c.handleOnClick.bind(c),c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.handleOnClick=function(a){this.question.setValueFromClick(a.target.value),this.setState({value:this.question.value})},l.prototype.renderItem=function(a,c){var f=A.Instance.createElement(this.question.itemComponent,{question:this.question,item:a,index:c,key:"value"+c,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode});return f},l.prototype.renderElement=function(){var a=this,c=this.question.cssClasses,f=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,g=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return h.createElement("div",{className:this.question.ratingRootCss,ref:function(L){return a.setControl(L)}},h.createElement("fieldset",{role:"radiogroup"},h.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?h.createElement("span",{className:c.minText},f):null,this.question.renderedRateItems.map(function(L,F){return a.renderItem(L,F)}),this.question.hasMaxLabel?h.createElement("span",{className:c.maxText},g):null))},l}(ce);Ce.Instance.registerQuestion("rating",function(p){return h.createElement(Yi,p)});var os=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),un=function(p){os(l,p);function l(a){return p.call(this,a)||this}return l.prototype.renderElement=function(){var a=this.question.cssClasses,c=this.renderSelect(a);return h.createElement("div",{className:this.question.cssClasses.rootDropdown},c)},l}(Xn);Ce.Instance.registerQuestion("sv-rating-dropdown",function(p){return h.createElement(un,p)}),C.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown");var Vt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Xe=function(p){Vt(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,c=this.question.cssClasses;return h.createElement("div",{id:this.question.inputId,className:c.root,ref:function(f){return a.setControl(f)}},this.question.formatedValue)},l}(ce);Ce.Instance.registerQuestion("expression",function(p){return h.createElement(Xe,p)});var Xi=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),qn=function(p){Xi(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnExpanded=c.handleOnExpanded.bind(c),c}return l.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},l.prototype.handleOnExpanded=function(a){this.popup.changeExpandCollapse()},l.prototype.canRender=function(){return p.prototype.canRender.call(this)&&this.popup.isShowing},l.prototype.renderElement=function(){var a=this,c=this.renderWindowHeader(),f=this.renderBody(),g={};return this.popup.renderedWidth&&(g.width=this.popup.renderedWidth,g.maxWidth=this.popup.renderedWidth),h.createElement("div",{className:this.popup.cssRoot,style:g,onScroll:function(){return a.popup.onScroll()}},h.createElement("div",{className:this.popup.cssRootContent},c,f))},l.prototype.renderWindowHeader=function(){var a=this.popup,c=a.cssHeaderRoot,f=null,g,L=null,F=null;return a.isCollapsed?(c+=" "+a.cssRootCollapsedMod,f=this.renderTitleCollapsed(a),g=this.renderExpandIcon()):g=this.renderCollapseIcon(),a.allowClose&&(L=this.renderCloseButton(this.popup)),a.allowFullScreen&&(F=this.renderAllowFullScreenButon(this.popup)),h.createElement("div",{className:a.cssHeaderRoot},f,h.createElement("div",{className:a.cssHeaderButtonsContainer},F,h.createElement("div",{className:a.cssHeaderCollapseButton,onClick:this.handleOnExpanded},g),L))},l.prototype.renderTitleCollapsed=function(a){return a.locTitle?h.createElement("div",{className:a.cssHeaderTitleCollapsed},a.locTitle.renderedHtml):null},l.prototype.renderExpandIcon=function(){return h.createElement(ge,{iconName:"icon-restore_16x16",size:16})},l.prototype.renderCollapseIcon=function(){return h.createElement(ge,{iconName:"icon-minimize_16x16",size:16})},l.prototype.renderCloseButton=function(a){var c=this;return h.createElement("div",{className:a.cssHeaderCloseButton,onClick:function(){a.hide(),typeof c.props.onClose=="function"&&c.props.onClose()}},h.createElement(ge,{iconName:"icon-close_16x16",size:16}))},l.prototype.renderAllowFullScreenButon=function(a){var c;return a.isFullScreen?c=h.createElement(ge,{iconName:"icon-back-to-panel_16x16",size:16}):c=h.createElement(ge,{iconName:"icon-full-screen_16x16",size:16}),h.createElement("div",{className:a.cssHeaderFullScreenButton,onClick:function(){a.toggleFullScreen()}},c)},l.prototype.renderBody=function(){return h.createElement("div",{className:this.popup.cssBody},this.doRender())},l.prototype.createSurvey=function(a){a||(a={}),p.prototype.createSurvey.call(this,a),this.popup=new C.PopupSurveyModel(null,this.survey),a.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=a.closeOnCompleteTimeout),this.popup.allowClose=a.allowClose,this.popup.allowFullScreen=a.allowFullScreen,this.popup.isShowing=!0,!this.popup.isExpanded&&(a.expanded||a.isExpanded)&&this.popup.expand()},l}(Mt),ss=function(p){Xi(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l}(qn),eo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),I=function(p){eo(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this.question.cssClasses;return h.createElement("fieldset",{className:this.question.getSelectBaseRootCss()},h.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.question.hasColumns?this.getColumns(a):this.getItems(a))},l.prototype.getColumns=function(a){var c=this;return this.question.columns.map(function(f,g){var L=f.map(function(F,H){return c.renderItem("item"+H,F,a)});return h.createElement("div",{key:"column"+g+c.question.getItemsColumnKey(f),className:c.question.getColumnClass(),role:"presentation"},L)})},l.prototype.getItems=function(a){for(var c=[],f=0;f<this.question.visibleChoices.length;f++){var g=this.question.visibleChoices[f],L="item"+f;c.push(this.renderItem(L,g,a))}return c},Object.defineProperty(l.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),l.prototype.renderItem=function(a,c,f){var g=h.createElement(et,{key:a,question:this.question,item:c,cssClasses:f}),L=this.question.survey,F=null;return L&&(F=k.wrapItemValue(L,g,this.question,c)),F??g},l}(ce),et=function(p){eo(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnChange=c.handleOnChange.bind(c),c}return l.prototype.getStateElement=function(){return this.item},l.prototype.componentDidMount=function(){p.prototype.componentDidMount.call(this),this.reactOnStrChanged()},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},l.prototype.componentDidUpdate=function(a,c){p.prototype.componentDidUpdate.call(this,a,c),this.reactOnStrChanged()},l.prototype.reactOnStrChanged=function(){var a=this;this.item.locImageLink.onChanged=function(){a.setState({locImageLinkchanged:a.state&&a.state.locImageLink?a.state.locImageLink+1:1})}},Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.handleOnChange=function(a){if(!this.question.isReadOnlyAttr){if(this.question.multiSelect)if(a.target.checked)this.question.value=this.question.value.concat(a.target.value);else{var c=this.question.value;c.splice(this.question.value.indexOf(a.target.value),1),this.question.value=c}else this.question.value=a.target.value;this.setState({value:this.question.value})}},l.prototype.renderElement=function(){var a=this,c=this.item,f=this.question,g=this.cssClasses,L=f.isItemSelected(c),F=f.getItemClass(c),H=null;f.showLabel&&(H=h.createElement("span",{className:f.cssClasses.itemText},c.text?$.renderLocString(c.locText):c.value));var ye={objectFit:this.question.imageFit},ae=null;if(c.locImageLink.renderedHtml&&this.question.contentMode==="image"&&(ae=h.createElement("img",{className:g.image,src:c.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:c.locText.renderedHtml,style:ye,onLoad:function(Ze){a.question.onContentLoaded(c,Ze.nativeEvent)},onError:function(Ze){c.onErrorHandler(c,Ze.nativeEvent)}})),c.locImageLink.renderedHtml&&this.question.contentMode==="video"&&(ae=h.createElement("video",{controls:!0,className:g.image,src:c.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:ye,onLoadedMetadata:function(Ze){a.question.onContentLoaded(c,Ze.nativeEvent)},onError:function(Ze){c.onErrorHandler(c,Ze.nativeEvent)}})),!c.locImageLink.renderedHtml||c.contentNotLoaded){var Ve={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};ae=h.createElement("div",{className:g.itemNoImage,style:Ve},g.itemNoImageSvgIcon?h.createElement(ge,{className:g.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}var yt=h.createElement("div",{className:F},h.createElement("label",{className:g.label},h.createElement("input",{className:g.itemControl,id:this.question.getItemId(c),type:this.question.inputType,name:this.question.questionName,checked:L,value:c.value,disabled:!this.question.getItemEnabled(c),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),h.createElement("div",{className:this.question.cssClasses.itemDecorator},h.createElement("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?h.createElement("span",{className:this.question.cssClasses.checkedItemDecorator,"aria-hidden":"true"},this.question.cssClasses.checkedItemSvgIconId?h.createElement(ge,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,ae),H)));return yt},l}(ie);Ce.Instance.registerQuestion("imagepicker",function(p){return h.createElement(I,p)});var it=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),$r=function(p){it(l,p);function l(a){return p.call(this,a)||this}return l.prototype.componentDidMount=function(){var a=this;p.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){a.forceUpdate()}},l.prototype.componentWillUnmount=function(){p.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,c=this.question.getImageCss(),f={objectFit:this.question.imageFit,width:this.question.renderedStyleWidth,height:this.question.renderedStyleHeight};(!this.question.imageLink||this.question.contentNotLoaded)&&(f.display="none");var g=null;this.question.renderedMode==="image"&&(g=h.createElement("img",{className:c,src:this.question.locImageLink.renderedHtml||null,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:f,onLoad:function(F){a.question.onLoadHandler()},onError:function(F){a.question.onErrorHandler()}})),this.question.renderedMode==="video"&&(g=h.createElement("video",{controls:!0,className:c,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:f,onLoadedMetadata:function(F){a.question.onLoadHandler()},onError:function(F){a.question.onErrorHandler()}})),this.question.renderedMode==="youtube"&&(g=h.createElement("iframe",{className:c,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:f}));var L=null;return(!this.question.imageLink||this.question.contentNotLoaded)&&(L=h.createElement("div",{className:this.question.cssClasses.noImage},h.createElement(ge,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),h.createElement("div",{className:this.question.cssClasses.root},g,L)},l}(ce);Ce.Instance.registerQuestion("image",function(p){return h.createElement($r,p)});var to=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Jr=function(p){to(l,p);function l(a){var c=p.call(this,a)||this;return c.state={value:c.question.value},c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,c=this.question.cssClasses,f=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,g=this.renderCleanButton();return h.createElement("div",{className:c.root,ref:function(L){return a.setControl(L)},style:{width:this.question.renderedCanvasWidth}},h.createElement("div",{className:c.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.renderLocString(this.question.locRenderedPlaceholder)),h.createElement("div",null,this.renderBackgroundImage(),h.createElement("canvas",{tabIndex:-1,className:this.question.cssClasses.canvas,onBlur:function(L){a.question.onBlur(L)}})),g,f)},l.prototype.renderBackgroundImage=function(){return this.question.backgroundImage?h.createElement("img",{className:this.question.cssClasses.backgroundImage,src:this.question.backgroundImage,style:{width:this.question.renderedCanvasWidth}}):null},l.prototype.renderLoadingIndicator=function(){return h.createElement("div",{className:this.question.cssClasses.loadingIndicator},h.createElement(Pe,null))},l.prototype.renderCleanButton=function(){var a=this;if(!this.question.canShowClearButton)return null;var c=this.question.cssClasses;return h.createElement("div",{className:c.controls},h.createElement("button",{type:"button",className:c.clearButton,title:this.question.clearButtonCaption,onClick:function(){return a.question.clearValue(!0)}},this.question.cssClasses.clearButtonIconId?h.createElement(ge,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):h.createElement("span",null,"✖")))},l}(ce);Ce.Instance.registerQuestion("signaturepad",function(p){return h.createElement(Jr,p)});var Gr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),as=function(p){Gr(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.question},l.prototype.renderElement=function(){var a=this.renderItems();return w.a.createElement("div",{className:this.question.cssClasses.root},a)},l.prototype.renderItems=function(){var a=this;return this.question.visibleChoices.map(function(c,f){return w.a.createElement(ls,{key:a.question.inputId+"_"+f,item:c,question:a.question,index:f})})},l}(ce),ls=function(p){Gr(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.renderElement=function(){this.model=new C.ButtonGroupItemModel(this.question,this.item,this.index);var a=this.renderIcon(),c=this.renderInput(),f=this.renderCaption();return w.a.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},c,w.a.createElement("div",{className:this.model.css.decorator},a,f))},l.prototype.renderIcon=function(){return this.model.iconName?w.a.createElement(ge,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},l.prototype.renderInput=function(){var a=this;return w.a.createElement("input",{className:this.model.css.control,id:this.model.id,type:"radio",name:this.model.name,checked:this.model.selected,value:this.model.value,disabled:this.model.readOnly,onChange:function(){a.model.onChange()},"aria-required":this.model.isRequired,"aria-label":this.model.caption.renderedHtml,"aria-invalid":this.model.hasErrors,"aria-errormessage":this.model.describedBy,role:"radio"})},l.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var a=this.renderLocString(this.model.caption);return w.a.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},a)},l}($),no=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),_n=function(p){no(l,p);function l(a){return p.call(this,a)||this}return l.prototype.getStateElements=function(){var a=p.prototype.getStateElements.call(this);return this.question.contentQuestion&&a.push(this.question.contentQuestion),a},l.prototype.renderElement=function(){return nn.renderQuestionBody(this.creator,this.question.contentQuestion)},l}(We),ro=function(p){no(l,p);function l(a){return p.call(this,a)||this}return l.prototype.canRender=function(){return!!this.question.contentPanel},l.prototype.renderElement=function(){return h.createElement(ze,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},l}(We);Ce.Instance.registerQuestion("custom",function(p){return h.createElement(_n,p)}),Ce.Instance.registerQuestion("composite",function(p){return h.createElement(ro,p)});var us=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),io=function(p){us(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.render=function(){if(!this.item)return null;var a=this.renderLocString(this.item.locTitle,void 0,"locString"),c=this.item.iconName?w.a.createElement(ge,{className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title}):null,f=this.item.markerIconName?w.a.createElement(ge,{className:this.item.cssClasses.itemMarkerIcon,iconName:this.item.markerIconName,size:"auto"}):null;return w.a.createElement(w.a.Fragment,null,c,a,f)},l}($);A.Instance.registerElement("sv-list-item-content",function(p){return w.a.createElement(io,p)});var oo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ot=function(p){oo(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.render=function(){var a;if(!this.item)return null;var c=A.Instance.createElement("sv-list-item-content",{item:this.item,key:"content"+this.item.id,model:this.model});return w.a.createElement(w.a.Fragment,null,c,w.a.createElement(Qe,{model:(a=this.item)===null||a===void 0?void 0:a.popupModel}))},l}($);A.Instance.registerElement("sv-list-item-group",function(p){return w.a.createElement(ot,p)});var $t=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ft=function(p){$t(l,p);function l(a){return p.call(this,a)||this}return Object.defineProperty(l.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),l.prototype.render=function(){var a=[];return a.push(w.a.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},w.a.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml||null,alt:this.survey.locTitle.renderedHtml,width:this.survey.renderedLogoWidth,height:this.survey.renderedLogoHeight,style:{objectFit:this.survey.logoFit,width:this.survey.renderedStyleLogoWidth,height:this.survey.renderedStyleLogoHeight}}))),w.a.createElement(w.a.Fragment,null,a)},l}(w.a.Component);A.Instance.registerElement("sv-logo-image",function(p){return w.a.createElement(ft,p)});var Jt=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Zr=function(p){Jt(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnRowRemoveClick=c.handleOnRowRemoveClick.bind(c),c}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),l.prototype.handleOnRowRemoveClick=function(a){this.question.removeRowUI(this.row)},l.prototype.renderElement=function(){var a=this.renderLocString(this.question.locRemoveRowText);return w.a.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},a,w.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},l}(ie);A.Instance.registerElement("sv-matrix-remove-button",function(p){return w.a.createElement(Zr,p)});var so=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Kr=function(p){so(l,p);function l(a){var c=p.call(this,a)||this;return c.handleOnShowHideClick=c.handleOnShowHideClick.bind(c),c}return l.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),l.prototype.handleOnShowHideClick=function(a){this.row.showHideDetailPanelClick()},l.prototype.renderElement=function(){var a=this.row.isDetailPanelShowing,c=a,f=a?this.row.detailPanelId:void 0;return w.a.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":c,"aria-controls":f},w.a.createElement(ge,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},l}(ie);A.Instance.registerElement("sv-matrix-detail-button",function(p){return w.a.createElement(Kr,p)});var ao=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Yr=function(p){ao(l,p);function l(){var a=p!==null&&p.apply(this,arguments)||this;return a.handleClick=function(c){a.question.removePanelUI(a.data.panel)},a}return l.prototype.renderElement=function(){var a=this.renderLocString(this.question.locPanelRemoveText),c=this.question.getPanelRemoveButtonId(this.data.panel);return w.a.createElement("button",{id:c,className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},w.a.createElement("span",{className:this.question.cssClasses.buttonRemoveText},a),w.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},l}(Mn);A.Instance.registerElement("sv-paneldynamic-remove-btn",function(p){return w.a.createElement(Yr,p)});var Xr=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),ei=function(p){Xr(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return this.item.isVisible},l.prototype.renderElement=function(){return w.a.createElement("input",{className:this.item.innerCss,type:"button",disabled:this.item.disabled,onMouseDown:this.item.data&&this.item.data.mouseDown,onClick:this.item.action,title:this.item.getTooltip(),value:this.item.title})},l}(ie);A.Instance.registerElement("sv-nav-btn",function(p){return w.a.createElement(ei,p)});var lo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Bn=function(p){lo(l,p);function l(a){var c=p.call(this,a)||this;return c.onChangedHandler=function(f,g){c.isRendering||c.setState({changed:c.state&&c.state.changed?c.state.changed+1:1})},c.rootRef=w.a.createRef(),c}return Object.defineProperty(l.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){this.reactOnStrChanged()},l.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},l.prototype.componentDidUpdate=function(a,c){a.locStr&&a.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},l.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},l.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var a=this.renderString();return this.isRendering=!1,a},l.prototype.renderString=function(){var a=this.locStr.allowLineBreaks?"sv-string-viewer sv-string-viewer--multiline":"sv-string-viewer";if(this.locStr.hasHtml){var c={__html:this.locStr.renderedHtml};return w.a.createElement("span",{ref:this.rootRef,className:a,style:this.style,dangerouslySetInnerHTML:c})}return w.a.createElement("span",{ref:this.rootRef,className:a,style:this.style},this.locStr.renderedHtml)},l}(w.a.Component);A.Instance.registerElement(C.LocalizableString.defaultRenderer,function(p){return w.a.createElement(Bn,p)});var uo=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Fn=function(p){uo(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){return w.a.createElement("div",null,w.a.createElement("span",{className:this.props.cssClasses.error.icon||void 0,"aria-hidden":"true"}),w.a.createElement("span",{className:this.props.cssClasses.error.item||void 0},w.a.createElement(Bn,{locStr:this.props.error.locText})))},l}(w.a.Component);A.Instance.registerElement("sv-question-error",function(p){return w.a.createElement(Fn,p)});var cs=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Gt=function(p){cs(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return l.prototype.render=function(){var a,c;return w.a.createElement("div",{className:"sv-skeleton-element",id:(a=this.props.element)===null||a===void 0?void 0:a.id,style:{height:(c=this.props.element)===null||c===void 0?void 0:c.skeletonHeight}})},l}(w.a.Component);A.Instance.registerElement("sv-skeleton",function(p){return w.a.createElement(Gt,p)});var ti=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),Be=function(p){ti(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.renderLogoImage=function(){var a=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),c=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return A.Instance.createElement(a,{data:c})},l.prototype.render=function(){return w.a.createElement("div",{className:"sv-header--mobile"},this.model.survey.hasLogo?w.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.survey.hasTitle?w.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},w.a.createElement(tt,{element:this.model.survey})):null,this.model.survey.renderedHasDescription?w.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},w.a.createElement("div",{className:this.model.survey.css.description},$.renderLocString(this.model.survey.locDescription))):null)},l}(w.a.Component),gr=function(p){ti(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.renderLogoImage=function(){var a=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),c=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return A.Instance.createElement(a,{data:c})},l.prototype.render=function(){return w.a.createElement("div",{className:this.model.css,style:this.model.style},w.a.createElement("div",{className:"sv-header__cell-content",style:this.model.contentStyle},this.model.showLogo?w.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.showTitle?w.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},w.a.createElement(tt,{element:this.model.survey})):null,this.model.showDescription?w.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},w.a.createElement("div",{className:this.model.survey.css.description},$.renderLocString(this.model.survey.locDescription))):null))},l}(w.a.Component),co=function(p){ti(l,p);function l(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.model},l.prototype.renderElement=function(){if(this.model.survey=this.props.survey,this.props.survey.headerView!=="advanced")return null;var a=null;return this.props.survey.isMobile?a=w.a.createElement(Be,{model:this.model}):a=w.a.createElement("div",{className:this.model.contentClasses,style:{maxWidth:this.model.maxWidth}},this.model.cells.map(function(c,f){return w.a.createElement(gr,{key:f,model:c})})),w.a.createElement("div",{className:this.model.headerClasses,style:{height:this.model.renderedHeight}},this.model.backgroundImage?w.a.createElement("div",{style:this.model.backgroundImageStyle,className:this.model.backgroundImageClasses}):null,a)},l}($);A.Instance.registerElement("sv-header",function(p){return w.a.createElement(co,p)});var ni=function(){var p=function(l,a){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var g in f)Object.prototype.hasOwnProperty.call(f,g)&&(c[g]=f[g])},p(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");p(l,a);function c(){this.constructor=l}l.prototype=a===null?Object.create(a):(c.prototype=a.prototype,new c)}}(),re=function(p){ni(l,p);function l(a){var c=p.call(this,a)||this;return c.onInput=function(f){c.locStr.text=f.target.innerText},c.onClick=function(f){f.preventDefault(),f.stopPropagation()},c.state={changed:0},c}return Object.defineProperty(l.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){if(this.locStr){var a=this;this.locStr.onChanged=function(){a.setState({changed:a.state.changed+1})}}},l.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},l.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var a={__html:this.locStr.renderedHtml};return w.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:a,onBlur:this.onInput,onClick:this.onClick})}return w.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},l}(w.a.Component);A.Instance.registerElement(C.LocalizableString.editableRenderer,function(p){return w.a.createElement(re,p)}),Object(C.checkLibraryVersion)("1.12.20","survey-react-ui")},react:function(B,R){B.exports=z},"react-dom":function(B,R){B.exports=O},"survey-core":function(B,R){B.exports=P}})})}(_o)),_o.exports}var Rh=Th();function Wu(ne,S){var z,O;if(S.column.indexValue==0&&"item"in S.row){const P=S.row.item;P.customDescription!==void 0&&((z=S.htmlElement.parentElement)==null||z.children[0].children[0].setAttribute("description",P.customDescription),(O=S.htmlElement.parentElement)==null||O.children[0].children[0].classList.add("survey-tooltip"))}}function $u(ne,S){if(S.question.hideCheckboxLabels){const z=S.cssClasses;z.root+=" hidden-checkbox-labels"}}function Ih(ne,S){var P;const z='[data-name="'+S.question.name+'"]',O=(P=document.querySelector(z))==null?void 0:P.querySelector("h5");O&&!O.classList.contains("sv-header-flex")&&S.question.updateElementCss()}function Ju(ne,S){if(S.name!=="description")return;let z=S.text;if(!z.length)return;const O=["e.g.","i.e.","etc.","vs."];for(const D of O)z.includes(D)&&(z=z.replace(D,D.slice(0,-1)));const P=z.split(". ");for(let D=0;D<P.length;D++)if(P[D].length!=0)for(const C of O)P[D].includes(C.slice(0,-1))&&(P[D]=P[D].replace(C.slice(0,-1),C));const B=D=>D.includes("*")?D.split("*").map((C,h)=>h==0?C:h==1?`<ul><li>${C}</li>`:`<li>${C}</li>`).join("")+"</ul>":D.endsWith(".")?D:D+".",R=P.map(D=>D.length?`<p>${B(D)}</p>`:null).join("");S.html=R}function Dh(ne){var R;const S=!!ne.visibleIf,z='[data-name="'+ne.name+'"]',O=document.querySelector(z),P=O==null?void 0:O.querySelector("h5");if(S){O.style.display="none";return}P&&(P.style.textDecoration="line-through");const B=(R=document.querySelector(z))==null?void 0:R.querySelector(".sv-question__content");B&&(B.style.display="none")}function Pa(ne,S,z){var D;z.verificationStatus.set(ne.name,S);const O=document.createElement("button");O.type="button",O.className="sv-action-bar-item verification",O.innerHTML=S,S==yi.Unverified?(O.innerHTML="No change from previous year",O.className+=" verification-required",O.onclick=function(){z.mode!="display"&&(ne.validate(),Pa(ne,yi.Verified,z))}):(O.innerHTML="Answer updated",O.className+=" verification-ok");const P='[data-name="'+ne.name+'"]',B=(D=document.querySelector(P))==null?void 0:D.querySelector("h5"),R=B==null?void 0:B.querySelector(".verification");R?R.replaceWith(O):B==null||B.appendChild(O)}function Ah(ne){const S=Bo.c(2),{surveyModel:z}=ne,O=(R,D)=>{var w;const C=z.verificationStatus.get(D.question.name),h=(w=D.question)==null?void 0:w.readOnly;C&&!h?Pa(D.question,C,z):h&&Dh(D.question)},P=(R,D)=>{z.verificationStatus.get(D.question.name)==yi.Unverified&&Pa(D.question,yi.Edited,z)};z.onAfterRenderQuestion.hasFunc(O)||(z.onAfterRenderQuestion.add(O),z.onAfterRenderQuestion.add(Ih)),z.onValueChanged.hasFunc(P)||z.onValueChanged.add(P),z.onUpdateQuestionCssClasses.hasFunc($u)||z.onUpdateQuestionCssClasses.add($u),z.onMatrixAfterCellRender.hasFunc(Wu)||z.onMatrixAfterCellRender.add(Wu),z.onTextMarkdown.hasFunc(Ju)||z.onTextMarkdown.add(Ju);let B;return S[0]!==z?(B=de.jsx(Rh.Survey,{model:z}),S[0]=z,S[1]=B):B=S[1],B}function Lh(ne){const S=Bo.c(14),{surveyModel:z,pageNoSetter:O}=ne;let P;S[0]===Symbol.for("react.memo_cache_sentinel")?(P=[],S[0]=P):P=S[0];const[B,R]=at.useState(P),D=jh;let C,h;S[1]!==z?(C=()=>{const $=ie=>{if(ie&&ie.pages){const ce=[];ie.pages.forEach(We=>{const be=We.questions.filter(Mh),pe=be.length,x=be.filter(D).length,we=pe-x,me=x/pe;ce.push({completionPercentage:me*100,unansweredPercentage:we/pe*100,totalPages:ie.pages.length,pageTitle:We.title})}),R(ce)}};z.onValueChanged.add(ie=>{$(ie)}),$(z)},h=[z],S[1]=z,S[2]=C,S[3]=h):(C=S[2],h=S[3]),at.useEffect(C,h);let w;S[4]===Symbol.for("react.memo_cache_sentinel")?(w={height:"0.5rem",transition:"width 0.3s ease"},S[4]=w):w=S[4];const A=w;let k;if(S[5]!==O||S[6]!==B||S[7]!==z.currentPageNo){let $;S[9]!==O||S[10]!==z.currentPageNo?($=(ie,ce)=>de.jsx(Ch,{xs:12,md:!0,onClick:()=>O(ce),style:{cursor:"pointer",margin:"0.5rem"},children:de.jsxs("div",{children:[de.jsx("span",{style:{whiteSpace:"nowrap",fontSize:"1.5rem",marginRight:"0.25rem",fontWeight:"bold",color:"#2db394"},children:ce+1}),de.jsx("span",{style:{whiteSpace:"nowrap",...z.currentPageNo==ce&&{fontWeight:"bold"}},children:ie.pageTitle}),de.jsxs("div",{style:{display:"flex",flexWrap:"wrap"},children:[de.jsx("div",{style:{...A,width:`${ie.completionPercentage}%`,backgroundColor:"#262261"}}),de.jsx("div",{style:{...A,width:`${ie.unansweredPercentage}%`,backgroundColor:"#cdcdcd"}})]})]})},ce),S[9]=O,S[10]=z.currentPageNo,S[11]=$):$=S[11],k=B.map($),S[5]=O,S[6]=B,S[7]=z.currentPageNo,S[8]=k}else k=S[8];let le;return S[12]!==k?(le=de.jsx(xa,{className:"survey-progress",children:de.jsx(xr,{children:k})}),S[12]=k,S[13]=le):le=S[13],le}function Mh(ne){return ne.startWithNewLine}function jh(ne){return!(ne.value===null||ne.value===void 0||ne.value===""||ne.getType()==="checkbox"&&ne.value.length==0||ne.getType()==="multipletext"&&(Object.keys(ne.value).length===1&&Object.values(ne.value)[0]===void 0||Object.keys(ne.value).length===0))}function Nh(ne){const S=Bo.c(86),{surveyModel:z,surveyActions:O,year:P,nren:B,children:R,onPageChange:D}=ne,[C,h]=at.useState(0),[w,A]=at.useState(!1),[k,le]=at.useState(""),[$,ie]=at.useState(""),{user:ce}=at.useContext(Gu);let We;S[0]!==z.currentPageNo||S[1]!==z.lockedBy||S[2]!==z.mode||S[3]!==z.status?(We=()=>{A(z.mode=="edit"),le(z.lockedBy),h(z.currentPageNo),ie(z.status)},S[0]=z.currentPageNo,S[1]=z.lockedBy,S[2]=z.mode,S[3]=z.status,S[4]=We):We=S[4];const be=We;let pe,x;S[5]!==be?(pe=()=>{be()},x=[be],S[5]=be,S[6]=pe,S[7]=x):(pe=S[6],x=S[7]),at.useEffect(pe,x);let we;S[8]!==D?(we=j=>{h(j),D(j)},S[8]=D,S[9]=we):we=S[9];const me=we;let lt;S[10]!==me||S[11]!==z.currentPageNo?(lt=()=>{me(z.currentPageNo+1)},S[10]=me,S[11]=z.currentPageNo,S[12]=lt):lt=S[12];const Fe=lt;let ge;S[13]!==be||S[14]!==O?(ge=async j=>{await O[j](),be()},S[13]=be,S[14]=O,S[15]=ge):ge=S[15];const en=ge;let Ke,vt,$e,ut,ht,Qe,bt;if(S[16]!==R||S[17]!==en||S[18]!==w||S[19]!==Fe||S[20]!==k||S[21]!==ce||S[22]!==B||S[23]!==C||S[24]!==me||S[25]!==$||S[26]!==z||S[27]!==P){const j=(Vr,Sr)=>wn(Vr,()=>en(Sr)),wn=qh,Re=()=>de.jsxs("div",{className:"survey-edit-buttons-block",children:[!w&&!k&&z.editAllowed&&j("Start editing","startEdit"),!w&&k&&k==ce.name&&j("Discard any unsaved changes and release your lock","releaseLock"),w&&j("Save progress","save"),w&&j("Save and stop editing","saveAndStopEdit"),w&&j("Complete Survey","complete"),C!==z.visiblePages.length-1&&wn("Next Section",Fe)]});vt=xa;let He;S[35]!==P?(He=de.jsxs("span",{className:"survey-title",children:[P," Compendium Survey "]}),S[35]=P,S[36]=He):He=S[36];let he;S[37]!==B?(he=de.jsxs("span",{className:"survey-title-nren",children:[" ",B," "]}),S[37]=B,S[38]=he):he=S[38];let It;S[39]!==$?(It=de.jsxs("span",{children:[" - ",$]}),S[39]=$,S[40]=It):It=S[40];let Je;S[41]!==He||S[42]!==he||S[43]!==It?(Je=de.jsxs("h2",{children:[He,he,It]}),S[41]=He,S[42]=he,S[43]=It,S[44]=Je):Je=S[44];let Qt,tt;S[45]===Symbol.for("react.memo_cache_sentinel")?(Qt={marginTop:"1rem",textAlign:"justify"},tt=de.jsxs("p",{children:["To get started, click “","Start editing","” to end read-only mode. Different people from your NREN (Compendium administrators) can contribute to the survey if needed, but agreement should be reached internally before completing the survey as the administration team will treat responses as a single source of truth from the NREN. You can start editing only when nobody else from your NREN is currently working on the survey."]}),S[45]=Qt,S[46]=tt):(Qt=S[45],tt=S[46]);let Ce;S[47]!==P?(Ce=de.jsxs("p",{children:[de.jsxs("b",{children:["In a small change, the survey now asks about this calendar year, i.e. ",P]})," (or the current financial year if your budget or staffing data does not match the calendar year). For network questions, please provide data from the 12 months preceding you answering the question. Where available, the survey questions are pre-filled with answers from the previous survey. You can edit the pre-filled answer to provide new information, or press the “no change from previous year” button."]}),S[47]=P,S[48]=Ce):Ce=S[48];let tn,Ot;S[49]===Symbol.for("react.memo_cache_sentinel")?(tn=de.jsxs("p",{children:["Press the “","Save progress","“ or “","Save and stop editing","“ button to save all answers in the survey. When you reach the last section of the survey (Services), you will find a “","Complete Survey","“ button which saves all answers in the survey and lets the Compendium team know that your answers are ready to be published. As long as the survey remains open, any Compendium administrator from your NREN can add answers or amend existing ones, even after using the “","Complete Survey","“ button."]}),Ot=de.jsx("p",{children:"Some fields require specific data, such as numerical data, valid http-addresses, and in some questions, the answer has to add up to 100%. If an answer does not fulfil the set criteria, the question will turn pink and an error message will appear. Fields can be left blank if you prefer not to answer a question. If you notice any errors after the survey was closed, please contact us for correcting those."}),S[49]=tn,S[50]=Ot):(tn=S[49],Ot=S[50]);let Dt;S[51]!==Ce?(Dt=de.jsxs("div",{style:Qt,children:[tt,Ce,tn,Ot]}),S[51]=Ce,S[52]=Dt):Dt=S[52];let At;S[53]===Symbol.for("react.memo_cache_sentinel")?(At=de.jsx("a",{href:"mailto:Partner-Relations@geant.org",children:de.jsx("span",{children:"Partner-Relations@geant.org"})}),S[53]=At):At=S[53];let Ct;S[54]!==P?(Ct=de.jsxs("p",{children:["Thank you for taking the time to fill in the ",P," Compendium Survey. Any questions or requests can be sent to ",At]}),S[54]=P,S[55]=Ct):Ct=S[55];let wt;S[56]!==w?(wt=w&&de.jsxs(de.Fragment,{children:[de.jsx("br",{}),de.jsxs("b",{children:["Remember to click “","Save and stop editing","” before leaving the page."]})]}),S[56]=w,S[57]=wt):wt=S[57],S[58]!==Je||S[59]!==Dt||S[60]!==Ct||S[61]!==wt?(Qe=de.jsxs(xr,{className:"survey-content",children:[Je,Dt,Ct,wt]}),S[58]=Je,S[59]=Dt,S[60]=Ct,S[61]=wt,S[62]=Qe):Qe=S[62],bt=de.jsx(xr,{children:Re()});let nt;S[63]!==w||S[64]!==k||S[65]!==ce||S[66]!==z.editAllowed?(nt=!w&&de.jsxs("div",{className:"survey-edit-explainer",children:[!k&&z.editAllowed&&"The survey is in read-only mode; click the “Start editing“ button to begin editing the answers.",!k&&!z.editAllowed&&"The survey is in read-only mode and can not be edited by you.",k&&k!=ce.name&&"The survey is in read-only mode and currently being edited by: "+k+". To start editing the survey, ask them to complete their edits.",k&&k==ce.name&&'The survey is in read-only mode because you started editing in another tab, browser or device. To start editing the survey, either complete those edits or click the "Discard any unsaved changes" button.']}),S[63]=w,S[64]=k,S[65]=ce,S[66]=z.editAllowed,S[67]=nt):nt=S[67],S[68]!==nt?($e=de.jsx(xr,{className:"survey-content",children:nt}),S[68]=nt,S[69]=$e):$e=S[69];let ct;S[70]!==me||S[71]!==z?(ct=de.jsx(Lh,{surveyModel:z,pageNoSetter:me}),S[70]=me,S[71]=z,S[72]=ct):ct=S[72],S[73]!==R||S[74]!==ct?(ut=de.jsxs(xr,{children:[ct,R]}),S[73]=R,S[74]=ct,S[75]=ut):ut=S[75],Ke=xr,ht=Re(),S[16]=R,S[17]=en,S[18]=w,S[19]=Fe,S[20]=k,S[21]=ce,S[22]=B,S[23]=C,S[24]=me,S[25]=$,S[26]=z,S[27]=P,S[28]=Ke,S[29]=vt,S[30]=$e,S[31]=ut,S[32]=ht,S[33]=Qe,S[34]=bt}else Ke=S[28],vt=S[29],$e=S[30],ut=S[31],ht=S[32],Qe=S[33],bt=S[34];let Rt;S[76]!==Ke||S[77]!==ht?(Rt=de.jsx(Ke,{children:ht}),S[76]=Ke,S[77]=ht,S[78]=Rt):Rt=S[78];let je;return S[79]!==vt||S[80]!==$e||S[81]!==ut||S[82]!==Rt||S[83]!==Qe||S[84]!==bt?(je=de.jsxs(vt,{children:[Qe,bt,$e,ut,Rt]}),S[79]=vt,S[80]=$e,S[81]=ut,S[82]=Rt,S[83]=Qe,S[84]=bt,S[85]=je):je=S[85],je}function qh(ne,S){return de.jsx("button",{className:"sv-btn sv-btn--navigation",onClick:S,children:ne})}function _h(ne){const S=Bo.c(5),z=ne.when,O=ne.onPageExit;let P;S[0]!==z||S[1]!==O||S[2]!==ne.message?(P=()=>{if(z()){const R=window.confirm(ne.message);return R&&O(),!R}return!1},S[0]=z,S[1]=O,S[2]=ne.message,S[3]=P):P=S[3],wh(P);let B;return S[4]===Symbol.for("react.memo_cache_sentinel")?(B=de.jsx("div",{}),S[4]=B):B=S[4],B}function Bh(ne,S=!1){if(!S&&(ne==null||ne==null||ne==""))return!0;try{return ne=ne.trim(),ne.includes(" ")?!1:(ne.includes(":/")||(ne="https://"+ne),!!new URL(ne))}catch{return!1}}const Fh={validateWebsiteUrl:Bh},kh={data_protection_contact:(...ne)=>!0};function Qh(ne){let S=ne[0];if(S==null||S==null||S=="")return!0;try{return S=S.trim(),S.includes(" ")?!1:(S.includes(":/")||(S="https://"+S),!!new URL(S))}catch{return!1}}function Hh(ne){try{const S=this.question,z=ne[0]||void 0,O=S.data&&"name"in S.data;let P;O?P=S.data.name:P=S.name;const B=S.value,R=kh[P];if(R)return R(B,...ne.slice(1));const D=Fh[z];if(!D)throw new Error(`Validation function ${z} not found for question ${P}`);return D(B,...ne.slice(1))}catch(S){return console.error(S),!1}}Jn.Serializer.addProperty("itemvalue","customDescription:text");Jn.Serializer.addProperty("question","hideCheckboxLabels:boolean");function Zh({loadFrom:ne}){const[S,z]=at.useState(),{year:O,nren:P}=Ph(),[B,R]=at.useState("loading survey..."),{user:D}=at.useContext(Gu),h=!!D.id?D.permissions.admin:!1;Jn.FunctionFactory.Instance.hasFunction("validateQuestion")||Jn.FunctionFactory.Instance.register("validateQuestion",Hh),Jn.FunctionFactory.Instance.hasFunction("validateWebsiteUrl")||Jn.FunctionFactory.Instance.register("validateWebsiteUrl",Qh);const{trackPageView:w}=xh(),A=at.useCallback(be=>(be.preventDefault(),be.returnValue=""),[]),k=at.useCallback(()=>{window.navigator.sendBeacon("/api/response/unlock/"+O+"/"+P)},[]),le=at.useCallback(()=>{window.navigator.sendBeacon("/api/response/unlock/"+O+"/"+P),removeEventListener("beforeunload",A,{capture:!0}),removeEventListener("pagehide",k)},[]);if(at.useEffect(()=>{async function be(){const pe=await fetch(ne+O+(P?"/"+P:"")),x=await pe.json();if(!pe.ok)throw"message"in x?new Error(x.message):new Error(`Request failed with status ${pe.status}`);const we=new Jn.Model(x.model);we.setVariable("surveyyear",O),we.setVariable("previousyear",parseInt(O)-1),we.showNavigationButtons=!1,we.requiredText="",we.verificationStatus=new Map;for(const me in x.verification_status)we.verificationStatus.set(me,x.verification_status[me]);we.data=x.data,we.clearIncorrectValues(!0),we.currentPageNo=x.page,we.mode=x.mode,we.lockedBy=x.locked_by,we.status=x.status,we.editAllowed=x.edit_allowed,z(we)}be().catch(pe=>R("Error when loading survey: "+pe.message)).then(()=>{w({documentTitle:`Survey for ${P} (${O})`})})},[]),!S)return B;const $=async(be,pe)=>{if(!P)return"Saving not available in inpect/try mode";const x={lock_uuid:be.lockUUID,new_state:pe,data:be.data,page:be.currentPageNo,verification_status:Object.fromEntries(be.verificationStatus)};try{const we=await fetch("/api/response/save/"+O+"/"+P,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(x)}),me=await we.json();if(!we.ok)return me.message;S.mode=me.mode,S.lockedBy=me.locked_by,S.status=me.status}catch(we){return"Unknown Error: "+we.message}},ie=(be,pe=!0)=>{let x="";const we=(lt,Fe)=>{lt.verificationStatus.get(Fe.name)==yi.Unverified&&(x==""&&(x=Fe.name),Fe.error='Please verify that last years data is correct by editing the answer or pressing the "No change from previous year" button!')};pe&&S.onValidateQuestion.add(we);const me=be();return pe&&S.onValidateQuestion.remove(we),me||mt("Validation failed!"),me},ce={save:async()=>{if(!ie(S.validate.bind(S,!0,!0),!1)){mt("Please correct the invalid fields before saving!");return}const pe=await $(S,"editing");pe?mt("Failed saving survey: "+pe):mt("Survey saved!")},complete:async()=>{if(ie(S.validate.bind(S,!0,!0))){const pe=await $(S,"completed");pe?mt("Failed completing survey: "+pe):(mt("Survey completed!"),removeEventListener("beforeunload",A,{capture:!0}),removeEventListener("pagehide",k))}},saveAndStopEdit:async()=>{if(!ie(S.validate.bind(S,!0,!0),!1)){mt("Please correct the invalid fields before saving.");return}const pe=await $(S,"readonly");pe?mt("Failed saving survey: "+pe):(mt("Survey saved!"),removeEventListener("beforeunload",A,{capture:!0}),removeEventListener("pagehide",k))},startEdit:async()=>{const be=await fetch("/api/response/lock/"+O+"/"+P,{method:"POST"}),pe=await be.json();if(!be.ok){mt("Failed starting edit: "+pe.message);return}addEventListener("pagehide",k),addEventListener("beforeunload",A,{capture:!0});for(const we in pe.verification_status)S.verificationStatus.set(we,pe.verification_status[we]);if(S.data=pe.data,S.clearIncorrectValues(!0),S.mode=pe.mode,S.lockedBy=pe.locked_by,S.lockUUID=pe.lock_uuid,S.status=pe.status,!ie(S.validate.bind(S,!0,!0),!1)){mt("Some fields are invalid, please correct them.");return}},releaseLock:async()=>{const be=await fetch("/api/response/unlock/"+O+"/"+P,{method:"POST"}),pe=await be.json();if(!be.ok){mt("Failed releasing lock: "+pe.message);return}S.mode=pe.mode,S.lockedBy=pe.locked_by,S.status=pe.status},validatePage:()=>{ie(S.validatePage.bind(S))&&mt("Page validation successful!")}};S.css.question.title.includes("sv-header-flex")||(S.css.question.title="sv-title sv-question__title sv-header-flex",S.css.question.titleOnError="sv-question__title--error sv-error-color-fix");const We=be=>{S.currentPageNo=be};return de.jsxs(de.Fragment,{children:[h?de.jsx(Sh,{}):null,de.jsxs(xa,{className:"survey-container",children:[de.jsx(Vh,{}),de.jsx(_h,{message:"Are you sure you want to leave this page? Information you've entered may not be saved.",when:()=>S.mode=="edit"&&!!P,onPageExit:le}),de.jsx(Nh,{onPageChange:We,surveyModel:S,surveyActions:ce,year:O,nren:P,children:de.jsx(Ah,{surveyModel:S})})]})]})}export{Zh as default};
diff --git a/compendium_v2/static/SurveyManagementComponent-DMYN1lq-.js b/compendium_v2/static/SurveyManagementComponent-DMYN1lq-.js
new file mode 100644
index 0000000000000000000000000000000000000000..891e0dac72f03f46a00798e768e25c057d7193c3
--- /dev/null
+++ b/compendium_v2/static/SurveyManagementComponent-DMYN1lq-.js
@@ -0,0 +1 @@
+import{r as S,u as U,j as t,c as V,X as O,a as D,N as v,L as M,e as W,R as X}from"./main-BIBsTO5W.js";import{A as B,l as Q}from"./lodash-BjwYmmCl.js";import{T as Y}from"./Table-HH9WOnMU.js";import{k as m,D as Z}from"./index-CuSQpLoM.js";import{S as d}from"./Schema-BuKG9dA7.js";import{f as F,S as ee}from"./survey.js";import"./hook-DmuGcAOd.js";import"./xlsx-CxqzP9DR.js";const G=S.forwardRef(({bsPrefix:e,variant:i,animation:n="border",size:r,as:a="div",className:h,...u},p)=>{e=U(e,"spinner");const y=`${e}-${n}`;return t.jsx(a,{ref:p,...u,className:V(h,y,r&&`${y}-${r}`,i&&`text-${i}`)})});G.displayName="Spinner";function te(e){return O({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M362.6 192.9L345 174.8c-.7-.8-1.8-1.2-2.8-1.2-1.1 0-2.1.4-2.8 1.2l-122 122.9-44.4-44.4c-.8-.8-1.8-1.2-2.8-1.2-1 0-2 .4-2.8 1.2l-17.8 17.8c-1.6 1.6-1.6 4.1 0 5.7l56 56c3.6 3.6 8 5.7 11.7 5.7 5.3 0 9.9-3.9 11.6-5.5h.1l133.7-134.4c1.4-1.7 1.4-4.2-.1-5.7z"},child:[]},{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]}]})(e)}function se(e){return O({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm106.5 150.5L228.8 332.8h-.1c-1.7 1.7-6.3 5.5-11.6 5.5-3.8 0-8.1-2.1-11.7-5.7l-56-56c-1.6-1.6-1.6-4.1 0-5.7l17.8-17.8c.8-.8 1.8-1.2 2.8-1.2 1 0 2 .4 2.8 1.2l44.4 44.4 122-122.9c.8-.8 1.8-1.2 2.8-1.2 1.1 0 2.1.4 2.8 1.2l17.5 18.1c1.8 1.7 1.8 4.2.2 5.8z"},child:[]}]})(e)}function ne(e){return O({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M331.3 308.7L278.6 256l52.7-52.7c6.2-6.2 6.2-16.4 0-22.6-6.2-6.2-16.4-6.2-22.6 0L256 233.4l-52.7-52.7c-6.2-6.2-15.6-7.1-22.6 0-7.1 7.1-6 16.6 0 22.6l52.7 52.7-52.7 52.7c-6.7 6.7-6.4 16.3 0 22.6 6.4 6.4 16.4 6.2 22.6 0l52.7-52.7 52.7 52.7c6.2 6.2 16.4 6.2 22.6 0 6.3-6.2 6.3-16.4 0-22.6z"},child:[]},{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]}]})(e)}function re(e){return O({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm52.7 283.3L256 278.6l-52.7 52.7c-6.2 6.2-16.4 6.2-22.6 0-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3l52.7-52.7-52.7-52.7c-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3 6.2-6.2 16.4-6.2 22.6 0l52.7 52.7 52.7-52.7c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6L278.6 256l52.7 52.7c6.2 6.2 6.2 16.4 0 22.6-6.2 6.3-16.4 6.3-22.6 0z"},child:[]}]})(e)}function ie(e){const i=D.c(2),{status:n}=e;let r;return i[0]!==n?(r={completed:t.jsx(se,{title:n,size:24,color:"green"}),started:t.jsx(te,{title:n,size:24,color:"rgb(217, 117, 10)"}),"did not respond":t.jsx(re,{title:n,size:24,color:"red"}),"not started":t.jsx(ne,{title:n,size:24})},i[0]=n,i[1]=r):r=i[1],r[n]||n}function le(e,i,n){fetch("/api/survey/"+e+"/"+i+"/notes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({notes:n||""})}).then(async r=>{const a=await r.json();r.ok?m.success("Notes saved"):m.error("Failed saving notes: "+a.message||r.statusText)}).catch(r=>{m.error("Failed saving notes: "+r)})}function w({text:e,helpText:i,onClick:n,enabled:r}){const[a,h]=S.useState(!1),u=async()=>{if(!a){h(!0);try{await n()}finally{h(!1)}}};return t.jsxs(v,{onClick:u,disabled:!r,style:{pointerEvents:"auto",marginLeft:".5rem"},title:i,children:[a&&t.jsx(G,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}),e]})}function fe(){const e=D.c(21);let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=[],e[0]=i):i=e[0];const[n,r]=S.useState(i),a=S.useRef(!1);let h,u;e[1]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{F().then(c=>{r(c)})},u=[],e[1]=h,e[2]=u):(h=e[1],u=e[2]),S.useEffect(h,u);let p;e[3]===Symbol.for("react.memo_cache_sentinel")?(p=async function(s,o,l,j){const A=j===void 0?!1:j;try{A&&(s=s+"?dry_run=1");const T=await fetch(s,{method:"POST"}),z=await T.json();T.ok?(z.message&&console.log(z.message),A||m(l),F().then(J=>{r(J)})):m(o+z.message)}catch(T){m(o+T.message)}},e[3]=p):p=e[3];const y=p;let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=async function(){await y("/api/survey/new","Failed creating new survey: ","Created new survey")},e[4]=k):k=e[4];const H=k;let C;e[5]===Symbol.for("react.memo_cache_sentinel")?(C=async function(s,o,l){const j=l===void 0?!1:l;if(a.current){m("Wait for status update to be finished...");return}a.current=!0,await y("/api/survey/"+o+"/"+s,"Error while updating "+s+" survey status to "+o+": ",s+" survey status updated to "+o,j),a.current=!1},e[5]=C):C=e[5];const g=C;let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_=async function(s,o){await y("/api/response/unlock/"+s+"/"+o,"Error while unlocking "+o+" "+s+" survey response: ",o+" "+s+" survey response unlocked")},e[6]=_):_=e[6];const K=_,q=n.length>0&&n.every(oe),P=window.location.origin+"/data?preview";let L;e[7]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx(ee,{}),e[7]=L):L=e[7];let N;e[8]===Symbol.for("react.memo_cache_sentinel")?(N={maxWidth:"100rem"},e[8]=N):N=e[8];let I;e[9]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsx(Z,{}),e[9]=I):I=e[9];const $=!q;let E;e[10]===Symbol.for("react.memo_cache_sentinel")?(E={pointerEvents:"auto",width:"10rem",margin:"1rem"},e[10]=E):E=e[10];let f;e[11]!==$?(f=t.jsx(v,{onClick:H,disabled:$,style:E,title:"Create a new survey for the next year. Only possible if all current surveys are published.",children:"start new survey"}),e[11]=$,e[12]=f):f=e[12];let x;if(e[13]!==n){let c;e[15]===Symbol.for("react.memo_cache_sentinel")?(c=(s,o)=>t.jsxs(B.Item,{eventKey:o.toString(),children:[t.jsxs(B.Header,{children:[s.year," - ",s.status]}),t.jsxs(B.Body,{children:[t.jsxs("div",{style:{marginLeft:".5rem",marginBottom:"1rem"},children:[t.jsx(M,{to:`/survey/admin/edit/${s.year}`,target:"_blank",children:t.jsx(v,{style:{marginLeft:".5rem"},title:"Open the survey for inspection with all questions visible and any visibleIf logic added to the title.",children:"Inspect Survey"})}),t.jsx(M,{to:`/survey/admin/try/${s.year}`,target:"_blank",children:t.jsx(v,{style:{marginLeft:".5rem"},title:"Open the survey exactly as the nrens will see it, but without any nren data.",children:"Try Survey"})}),t.jsx(w,{text:"Mark as open",helpText:"Allow the NRENs to respond to this survey. Only 1 survey may be open at a time, and (pre)-published surveys cannot be opened anymore.",enabled:s.status==d.closed,onClick:()=>g(s.year,"open")}),t.jsx(w,{text:"Mark as closed",helpText:"Do not allow the NRENs to respond to this survey anymore. Only surveys with status open can be closed.",enabled:s.status==d.open,onClick:()=>g(s.year,"close")}),t.jsx(w,{text:"Preview results",helpText:"Publish all completed survey responses to the compendium website for preview by admins. This is only possible if the survey is closed or previewed already.",enabled:s.status==d.closed||s.status==d.preview,onClick:()=>g(s.year,"preview")}),t.jsx(w,{text:"Publish results (dry run)",helpText:"Performs a dry-run of the publish operation, without actually publishing the results. Changes are logged in the browser console (F12).",enabled:s.status==d.preview||s.status==d.published,onClick:()=>g(s.year,"publish",!0)}),t.jsx(w,{text:"Publish results",helpText:"Publish or re-publish all completed survey responses to the compendium website. This is only possible if the survey is in preview or published already.",enabled:s.status==d.preview||s.status==d.published,onClick:()=>g(s.year,"publish")}),s.status==d.preview&&t.jsxs("span",{children:["  Preview link: ",t.jsx("a",{href:P,children:P})]})]}),t.jsxs(Y,{children:[t.jsxs("colgroup",{children:[t.jsx("col",{style:{width:"10%"}}),t.jsx("col",{style:{width:"20%"}}),t.jsx("col",{style:{width:"20%"}}),t.jsx("col",{style:{width:"30%"}}),t.jsx("col",{style:{width:"20%"}})]}),t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"NREN"}),t.jsx("th",{children:"Status"}),t.jsx("th",{children:"Lock"}),t.jsx("th",{children:"Management Notes"}),t.jsx("th",{children:"Actions"})]})}),t.jsx("tbody",{children:s.responses.map(l=>t.jsxs("tr",{children:[t.jsx("td",{children:l.nren.name}),t.jsx("td",{children:t.jsx(ie,{status:l.status})}),t.jsx("td",{style:{textWrap:"wrap",wordWrap:"break-word",maxWidth:"10rem"},children:l.lock_description}),t.jsx("td",{children:"notes"in l&&t.jsx("textarea",{onInput:Q.debounce(j=>le(s.year,l.nren.id,j.target.value),1e3),style:{minWidth:"100%",minHeight:"5rem"},placeholder:"Notes for this survey",defaultValue:l.notes||""})}),t.jsxs("td",{children:[t.jsx(M,{to:`/survey/response/${s.year}/${l.nren.name}`,target:"_blank",children:t.jsx(v,{style:{pointerEvents:"auto",margin:".5rem"},title:"Open the responses of the NREN.",children:"open"})}),t.jsx(v,{onClick:()=>K(s.year,l.nren.name),disabled:l.lock_description=="",style:{pointerEvents:"auto"},title:"Remove the lock from the survey so that another person can open the survey for editing. WARNING: The person that currently has the lock will not be able to save their changes anymore once someone else starts editing!",children:"remove lock"})]})]},l.nren.id))})]})]})]},s.year),e[15]=c):c=e[15],x=n.map(c),e[13]=n,e[14]=x}else x=e[14];let b;e[16]!==x?(b=t.jsx(B,{defaultActiveKey:"0",children:x}),e[16]=x,e[17]=b):b=e[17];let R;return e[18]!==f||e[19]!==b?(R=t.jsxs(t.Fragment,{children:[L,t.jsx(W,{className:"py-5 grey-container",children:t.jsx(W,{style:N,children:t.jsxs(X,{children:[I,f,b]})})})]}),e[18]=f,e[19]=b,e[20]=R):R=e[20],R}function oe(e){return e.status==d.published}export{fe as default};
diff --git a/compendium_v2/static/Table-HH9WOnMU.js b/compendium_v2/static/Table-HH9WOnMU.js
new file mode 100644
index 0000000000000000000000000000000000000000..ffa2a2f803480e23a90aa698526a5501d2e25ea4
--- /dev/null
+++ b/compendium_v2/static/Table-HH9WOnMU.js
@@ -0,0 +1 @@
+import{r as m,u,c as j,j as c}from"./main-BIBsTO5W.js";const g=m.forwardRef(({bsPrefix:l,className:f,striped:e,bordered:n,borderless:d,hover:i,size:a,variant:o,responsive:r,...x},p)=>{const s=u(l,"table"),b=j(f,s,o&&`${s}-${o}`,a&&`${s}-${a}`,e&&`${s}-${typeof e=="string"?`striped-${e}`:"striped"}`,n&&`${s}-bordered`,d&&`${s}-borderless`,i&&`${s}-hover`),$=c.jsx("table",{...x,className:b,ref:p});if(r){let t=`${s}-responsive`;return typeof r=="string"&&(t=`${t}-${r}`),c.jsx("div",{className:t,children:$})}return $});export{g as T};
diff --git a/compendium_v2/static/TrafficRatio-CEE7weoG.js b/compendium_v2/static/TrafficRatio-CEE7weoG.js
new file mode 100644
index 0000000000000000000000000000000000000000..a58bccc8d70ee301fcc08206b6d834a03c2d1d25
--- /dev/null
+++ b/compendium_v2/static/TrafficRatio-CEE7weoG.js
@@ -0,0 +1 @@
+import{a as j,r as w,F as C,j as x}from"./main-BIBsTO5W.js";import{B as E}from"./index-BBrAyDR9.js";import{C as g,a as L,L as v,B as F,p as Y,c as $,d as A,u as B,N as O,D as T,F as M}from"./useData-BDYwoQEh.js";import{S as P}from"./report.js";import{h as W,W as q}from"./HTMLLegendPlugin-BO0IHS_R.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";g.register(L,v,F,Y,$,A);const z={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(e){let t=e.dataset.label||"";return e.parsed.x!==null&&(t+=`: ${e.parsed.x}%`),t}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:(e,t)=>`${t*10}%`}},x2:{ticks:{callback:e=>typeof e=="number"?`${e}%`:e},grid:{drawOnChartArea:!1},afterDataLimits:function(e){const t=Object.keys(g.instances);let a=-999999,i=999999;for(const s of t)g.instances[s]&&e.chart.scales.x2&&(i=Math.min(g.instances[s].scales.x.min,i),a=Math.max(g.instances[s].scales.x.max,a));e.chart.scales.x2.options.min=i,e.chart.scales.x2.options.max=a,e.chart.scales.x2.min=i,e.chart.scales.x2.max=a}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};function ae(){const e=j.c(37),{filterSelection:t,setFilterSelection:a}=w.useContext(C),{data:i,years:s,nrens:n}=B("/api/traffic-ratio",a);let l,r,y,c;if(e[0]!==t||e[1]!==n||e[2]!==a||e[3]!==i||e[4]!==s){let b;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(b=R=>t.selectedYears.includes(R.year)&&t.selectedNrens.includes(R.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=b):b=e[11],r=i.filter(b),c=O(r,t.selectedYears[0]);let d;e[12]!==s?(d=[...s],e[12]=s,e[13]=d):d=e[13];let p;e[14]!==n?(p=n.values(),e[14]=n,e[15]=p):p=e[15];let u;e[16]!==p?(u=[...p],e[16]=p,e[17]=u):u=e[17];let h;e[18]!==d||e[19]!==u?(h={availableYears:d,availableNrens:u},e[18]=d,e[19]=u,e[20]=h):h=e[20];let _;e[21]!==t||e[22]!==a||e[23]!==h?(_=x.jsx(M,{max1year:!0,filterOptions:h,filterSelection:t,setFilterSelection:a}),e[21]=t,e[22]=a,e[23]=h,e[24]=_):_=e[24],l=_,y=Array.from(new Set(r.map(H))).map(R=>n.get(R)).filter(G),e[0]=t,e[1]=n,e[2]=a,e[3]=i,e[4]=s,e[5]=l,e[6]=r,e[7]=y,e[8]=c}else l=e[5],r=e[6],y=e[7],c=e[8];const D=y.length,S=`${Math.max(D*1.5,20)}rem`;let o;e[25]!==S?(o={height:S},e[25]=S,e[26]=o):o=e[26];let N;e[27]===Symbol.for("react.memo_cache_sentinel")?(N=[W],e[27]=N):N=e[27];let f;e[28]!==c?(f=x.jsx(E,{data:c,options:z,plugins:N}),e[28]=c,e[29]=f):f=e[29];let m;e[30]!==o||e[31]!==f?(m=x.jsx(q,{children:x.jsx("div",{className:"chart-container",style:o,children:f})}),e[30]=o,e[31]=f,e[32]=m):m=e[32];let k;return e[33]!==l||e[34]!==r||e[35]!==m?(k=x.jsx(T,{title:"Types of traffic in NREN networks  (Commodity v. Research & Education)",description:"The graph shows the ratio of commodity versus research and education traffic in NREN networks",category:P.Network,filter:l,data:r,filename:"types_of_traffic_in_nren_networks",children:m}),e[33]=l,e[34]=r,e[35]=m,e[36]=k):k=e[36],k}function G(e){return!!e}function H(e){return e.nren}export{ae as default};
diff --git a/compendium_v2/static/TrafficUrl-DFoUKOws.js b/compendium_v2/static/TrafficUrl-DFoUKOws.js
new file mode 100644
index 0000000000000000000000000000000000000000..2e342d985d0f5a4f9c813cd4c131d0f6b3ff7905
--- /dev/null
+++ b/compendium_v2/static/TrafficUrl-DFoUKOws.js
@@ -0,0 +1 @@
+import{a as S,r as j,F as k,j as p}from"./main-BIBsTO5W.js";import{u as T,q as _,k as g,i as v,D as y,F as L,f as R,s as F}from"./useData-BDYwoQEh.js";import{S as U}from"./report.js";import{N as w}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function z(){const e=S.c(21),{filterSelection:t,setFilterSelection:s}=j.useContext(k),{data:r,nrens:n}=T("/api/traffic-stats",s);let a,c;if(e[0]!==r||e[1]!==t.selectedNrens){const D=r?_(r):[];let d;e[4]!==t.selectedNrens?(d=h=>t.selectedNrens.includes(h.nren),e[4]=t.selectedNrens,e[5]=d):d=e[5],a=D.filter(d);const b=g(a);c=v(b,C),e[0]=r,e[1]=t.selectedNrens,e[2]=a,e[3]=c}else a=e[2],c=e[3];const x=c;let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[6]=f):f=e[6];let i;e[7]!==n?(i=n.values(),e[7]=n,e[8]=i):i=e[8];let l;e[9]!==i?(l={availableYears:f,availableNrens:[...i]},e[9]=i,e[10]=l):l=e[10];let m;e[11]!==t||e[12]!==s||e[13]!==l?(m=p.jsx(L,{filterOptions:l,filterSelection:t,setFilterSelection:s,coloredYears:!0}),e[11]=t,e[12]=s,e[13]=l,e[14]=m):m=e[14];const N=m;let o;e[15]!==x?(o=p.jsx(R,{children:p.jsx(w,{data:x,columnTitle:"Traffic Statistics URL",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=x,e[16]=o):o=e[16];let u;return e[17]!==N||e[18]!==a||e[19]!==o?(u=p.jsx(y,{title:"Traffic Statistics",description:"This table shows the URL links to NREN websites showing traffic statistics, if available.",category:U.Network,filter:N,data:a,filename:"traffic_stats_nrens_per_year",children:o}),e[17]=N,e[18]=a,e[19]=o,e[20]=u):u=e[20],u}function C(e,t){const s=F(t);if(s!=null)for(const[r,n]of Object.entries(s))e[r]=n}export{z as default};
diff --git a/compendium_v2/static/TrafficVolume-5iEpLgxK.js b/compendium_v2/static/TrafficVolume-5iEpLgxK.js
new file mode 100644
index 0000000000000000000000000000000000000000..1f59c61e3b7711a8d97e5e0321fc9546aeee070b
--- /dev/null
+++ b/compendium_v2/static/TrafficVolume-5iEpLgxK.js
@@ -0,0 +1 @@
+import{a as A,r as G,F as U,j as t,C as L,R as W}from"./main-BIBsTO5W.js";import{L as P}from"./index-BBrAyDR9.js";import{C as Y,a as $,L as q,P as H,b as I,p as J,c as K,d as M,u as Q,e as V,D as X,F as Z,f as ee}from"./useData-BDYwoQEh.js";import{S as te}from"./report.js";import{g as se}from"./charthelpers-CCaYPWnR.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";Y.register($,q,H,I,J,K,M);function me(){const e=A.c(47),{filterSelection:r,setFilterSelection:N}=G.useContext(U),{data:v,nrens:B}=Q("/api/traffic-volume",N);let o,a,s,_,i;if(e[0]!==v||e[1]!==r.selectedNrens){let l;e[7]!==r.selectedNrens?(l=O=>r.selectedNrens.includes(O.nren),e[7]=r.selectedNrens,e[8]=l):l=e[8],s=v.filter(l),o=V(s,"from_customers"),i=V(s,"to_customers"),a=V(s,"from_external"),_=V(s,"to_external"),e[0]=v,e[1]=r.selectedNrens,e[2]=o,e[3]=a,e[4]=s,e[5]=_,e[6]=i}else o=e[2],a=e[3],s=e[4],_=e[5],i=e[6];const F=_;let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=se({title:"Traffic Volume in PB",tooltipUnit:"PB",valueTransform(l){return l?l/1e3:0}}),e[9]=g):g=e[9];const b=g;let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=[],e[10]=j):j=e[10];let n;e[11]!==B?(n=B.values(),e[11]=B,e[12]=n):n=e[12];let c;e[13]!==n?(c={availableYears:j,availableNrens:[...n]},e[13]=n,e[14]=c):c=e[14];let S;e[15]!==r||e[16]!==N||e[17]!==c?(S=t.jsx(Z,{filterOptions:c,filterSelection:r,setFilterSelection:N}),e[15]=r,e[16]=N,e[17]=c,e[18]=S):S=e[18];const z=S;let y;e[19]===Symbol.for("react.memo_cache_sentinel")?(y=t.jsx("span",{children:"The four graphs below show the estimates of total annual traffic in PB (1000 TB) to & from NREN customers, and to & from external networks. NREN customers are taken to mean sources that are part of the NREN's connectivity remit, while external networks are understood as outside sources including GÉANT, the general/commercial internet, internet exchanges, peerings, other NRENs, etc."}),e[19]=y):y=e[19];let E;e[20]===Symbol.for("react.memo_cache_sentinel")?(E={marginBottom:"30px"},e[20]=E):E=e[20];let T;e[21]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx("span",{style:{fontSize:"20px",color:"rgb(85, 96, 156)",fontWeight:"bold"},children:"Traffic from NREN customer"}),e[21]=T):T=e[21];let f;e[22]!==o?(f=t.jsxs(L,{children:[T,t.jsx(P,{data:o,options:b})]}),e[22]=o,e[23]=f):f=e[23];let C;e[24]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx("span",{style:{fontSize:"20px",color:"rgb(221, 100, 57)",fontWeight:"bold"},children:"Traffic to NREN customer"}),e[24]=C):C=e[24];let m;e[25]!==i?(m=t.jsxs(L,{children:[C,t.jsx(P,{data:i,options:b})]}),e[25]=i,e[26]=m):m=e[26];let d;e[27]!==m||e[28]!==f?(d=t.jsxs(W,{style:E,children:[f,m]}),e[27]=m,e[28]=f,e[29]=d):d=e[29];let R;e[30]===Symbol.for("react.memo_cache_sentinel")?(R={marginTop:"30px"},e[30]=R):R=e[30];let w;e[31]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("span",{style:{fontSize:"20px",color:"rgb(63, 143, 77)",fontWeight:"bold"},children:"Traffic from external network"}),e[31]=w):w=e[31];let x;e[32]!==a?(x=t.jsxs(L,{children:[w,t.jsx(P,{data:a,options:b})]}),e[32]=a,e[33]=x):x=e[33];let D;e[34]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx("span",{style:{fontSize:"20px",color:"rgb(173, 48, 51)",fontWeight:"bold"},children:"Traffic to external network"}),e[34]=D):D=e[34];let h;e[35]!==F?(h=t.jsxs(L,{children:[D,t.jsx(P,{data:F,options:b})]}),e[35]=F,e[36]=h):h=e[36];let p;e[37]!==x||e[38]!==h?(p=t.jsxs(W,{style:R,children:[x,h]}),e[37]=x,e[38]=h,e[39]=p):p=e[39];let u;e[40]!==d||e[41]!==p?(u=t.jsxs(ee,{children:[d,p]}),e[40]=d,e[41]=p,e[42]=u):u=e[42];let k;return e[43]!==z||e[44]!==s||e[45]!==u?(k=t.jsx(X,{title:"NREN Traffic - NREN Customers & External Networks",description:y,category:te.Network,filter:z,data:s,filename:"NREN_traffic_estimates_data",children:u}),e[43]=z,e[44]=s,e[45]=u,e[46]=k):k=e[46],k}export{me as default};
diff --git a/compendium_v2/static/UserManagementComponent-CiWfGwDf.js b/compendium_v2/static/UserManagementComponent-CiWfGwDf.js
new file mode 100644
index 0000000000000000000000000000000000000000..a289f4e79b52a8e13d4840a62a10cdca101c292e
--- /dev/null
+++ b/compendium_v2/static/UserManagementComponent-CiWfGwDf.js
@@ -0,0 +1 @@
+import{r as x,u as Ee,j as t,c as Te,ab as Re,a as Ae,ac as Ve,g as Ge,V as Se,N as Ue,e as Oe,R as Be}from"./main-BIBsTO5W.js";import{k as de,D as Me}from"./index-CuSQpLoM.js";import{S as qe}from"./survey.js";import{c as Le,a as We}from"./index-D6hre9Be.js";import{A as ae,l as He}from"./lodash-BjwYmmCl.js";import{T as Je}from"./Table-HH9WOnMU.js";import"./xlsx-CxqzP9DR.js";import"./hook-DmuGcAOd.js";const me=x.forwardRef(({className:e,bsPrefix:s,as:r="span",...c},l)=>(s=Ee(s,"input-group-text"),t.jsx(r,{ref:l,className:Te(e,s),...c})));me.displayName="InputGroupText";const Ke=e=>t.jsx(me,{children:t.jsx(Re,{type:"checkbox",...e})}),Ye=e=>t.jsx(me,{children:t.jsx(Re,{type:"radio",...e})}),$e=x.forwardRef(({bsPrefix:e,size:s,hasValidation:r,className:c,as:l="div",...a},h)=>{e=Ee(e,"input-group");const d=x.useMemo(()=>({}),[]);return t.jsx(Le.Provider,{value:d,children:t.jsx(l,{ref:h,...a,className:Te(c,e,s&&`${e}-${s}`,r&&"has-validation")})})});$e.displayName="InputGroup";const ke=Object.assign($e,{Text:me,Radio:Ye,Checkbox:Ke});function Qe(e){const s=Ae.c(10),{getConfig:r,setConfig:c}=x.useContext(Ve);let l;s[0]!==r||s[1]!==e?(l=r(e),s[0]=r,s[1]=e,s[2]=l):l=s[2];const a=l;let h;s[3]!==e||s[4]!==c?(h=(M,N)=>c(e,M,N),s[3]=e,s[4]=c,s[5]=h):h=s[5];let d;return s[6]!==a||s[7]!==e||s[8]!==h?(d={[e]:a,setConfig:h},s[6]=a,s[7]=e,s[8]=h,s[9]=d):d=s[9],d}async function Xe(){try{return await(await fetch("/api/user/list")).json()}catch{return[]}}async function Ze(){try{return await(await fetch("/api/nren/list")).json()}catch{return[]}}async function ze(e,s){const r={id:e,...s},c={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)},l=await fetch(`/api/user/${e}`,c),a=await l.json();if(!l.ok)throw new Error(a.message);return de.success(a.message),a.user}async function Pe(e){if(!window.confirm(`Are you sure you want to delete ${e.name} (${e.email})?`))return!1;const r={method:"DELETE",headers:{"Content-Type":"application/json"}},c=await fetch(`/api/user/${e.id}`,r),l=await c.json();if(!c.ok)throw new Error(l.message);return de.success(l.message),!0}const W=(e,s)=>e.role!=="admin"&&s.role==="admin"?1:e.role==="admin"&&s.role!=="admin"?-1:e.role==="user"&&s.role!=="user"?1:s.role==="user"&&e.role!=="user"?-1:!e.permissions.active&&s.permissions.active?1:e.permissions.active&&!s.permissions.active?-1:e.name.localeCompare(s.name);function ut(){const e=Ae.c(88);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=[],e[0]=s):s=e[0];const[r,c]=x.useState(s);let l;e[1]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[1]=l):l=e[1];const[a,h]=x.useState(l),{user:d,setUser:M}=x.useContext(Ge);let N;e[2]===Symbol.for("react.memo_cache_sentinel")?(N={column:"ID",asc:!0},e[2]=N):N=e[2];const[f,Ne]=x.useState(N),[I,Ie]=x.useState(""),{setConfig:H,user_management:U}=Qe("user_management");let J;e[3]!==H||e[4]!==U?(J=(o,u)=>{const m=U??{},p=m==null?void 0:m.shownColumns;if(!p){H({...m,shownColumns:{[o]:u}});return}H({...m,shownColumns:{...p,[o]:u}})},e[3]=H,e[4]=U,e[5]=J):J=e[5];const ue=J;let K;e[6]!==U?(K=o=>{const u=U;if(!u)return!0;const m=u.shownColumns;return m?m[o]??!0:!0},e[6]=U,e[7]=K):K=e[7];const i=K;let Y,Q;e[8]===Symbol.for("react.memo_cache_sentinel")?(Y=()=>{Xe().then(o=>{c(o)}),Ze().then(o=>{h(o.sort(nt))})},Q=[],e[8]=Y,e[9]=Q):(Y=e[8],Q=e[9]),x.useEffect(Y,Q);let X;e[10]!==d.id||e[11]!==M||e[12]!==r?(X=(o,u)=>{const m=r.findIndex(v=>v.id===u.id),p=[...r],{name:L}=o.target,_={};L==="active"?_[L]=o.target.checked:_[L]=o.target.value,ze(u.id,_).then(v=>{v.id===d.id?M(v):(p[m]=v,c(p))}).catch(st)},e[10]=d.id,e[11]=M,e[12]=r,e[13]=X):X=e[13];const q=X;let Z;e[14]!==a?(Z=o=>{var u;return(u=a.find(m=>m.id==o||m.name==o))==null?void 0:u.id},e[14]=a,e[15]=Z):Z=e[15];const fe=Z,De=tt,z=et;let k,E,T,j,y,g,R,A,C,b,w,$,D;if(e[16]!==I||e[17]!==fe||e[18]!==i||e[19]!==q||e[20]!==d||e[21]!==a||e[22]!==ue||e[23]!==f.asc||e[24]!==f.column||e[25]!==r){const o=["ID","Active","Role","Email","Full Name","OIDC Sub","NREN","Actions"],u={[o[1]]:De,[o[2]]:z("role"),[o[3]]:z("email"),[o[4]]:z("name"),[o[6]]:z("nrens")},m=n=>{n===f.column?Ne({column:n,asc:!f.asc}):Ne({column:n,asc:!0})},p={};Array.from(Object.keys(u)).includes(f.column)?p[f.column]={"aria-sort":f.asc?"ascending":"descending"}:p[o[0]]={"aria-sort":f.asc?"ascending":"descending"};const L=u[f.column]??W,v=(I?r.filter(n=>n.email.includes(I)||n.name.includes(I)):r).filter(n=>n.id!==d.id).sort(L);f.asc||v.reverse(),e[39]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(qe,{}),w=t.jsx(Me,{}),e[39]=b,e[40]=w):(b=e[39],w=e[40]),E=Oe,A="py-5 grey-container";let ee;e[41]===Symbol.for("react.memo_cache_sentinel")?(ee=t.jsx("div",{className:"text-center w-100 mb-3",children:t.jsx("h3",{children:"User Management Page"})}),e[41]=ee):ee=e[41];let te;e[42]===Symbol.for("react.memo_cache_sentinel")?(te={width:"30rem"},e[42]=te):te=e[42];let se;e[43]===Symbol.for("react.memo_cache_sentinel")?(se=t.jsxs(ae.Header,{children:[t.jsx("span",{className:"me-2",children:"Column Visibility"}),t.jsx("small",{className:"text-muted",children:"Choose which columns to display"})]}),e[43]=se):se=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=t.jsx("small",{className:"text-muted mb-2 d-block",children:"Select which columns you want to display in the table below. Unchecked columns will be hidden."}),e[44]=ne):ne=e[44];let oe;e[45]===Symbol.for("react.memo_cache_sentinel")?(oe={gridTemplateColumns:"repeat(auto-fill, minmax(150px, 1fr))",gap:"10px"},e[45]=oe):oe=e[45];const he=t.jsx("div",{className:"d-grid",style:oe,children:o.map(n=>t.jsx(Se.Check,{type:"checkbox",id:`column-${n}`,label:n,checked:i(n),onChange:S=>ue(n,S.target.checked)},n))});let B;e[46]!==he?(B=t.jsx(ae,{className:"mb-3",style:te,children:t.jsxs(ae.Item,{eventKey:"0",children:[se,t.jsx(ae.Body,{children:t.jsxs(Se.Control,{as:"div",className:"p-3",children:[ne,he]})})]})}),e[46]=he,e[47]=B):B=e[47];let re,le;e[48]===Symbol.for("react.memo_cache_sentinel")?(re={width:"30rem"},le=t.jsx(ke.Text,{id:"search-text",children:"Search"}),e[48]=re,e[49]=le):(re=e[48],le=e[49]);let ie;e[50]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx(Se.Control,{placeholder:"Search by email/name","aria-label":"Search",onInput:He.debounce(n=>Ie(n.target.value),200)}),e[50]=ie):ie=e[50];let ce;e[51]===Symbol.for("react.memo_cache_sentinel")?(ce=t.jsxs(ke,{className:"mb-3",style:re,children:[le,ie,t.jsx(Ue,{variant:"outline-secondary",onClick:()=>{Ie("")},children:"Clear"})]}),e[51]=ce):ce=e[51],e[52]!==B?(C=t.jsxs(Be,{className:"d-flex justify-content-center align-items-center flex-column",children:[ee,B,ce]}),e[52]=B,e[53]=C):C=e[53],R="d-flex justify-content-center",e[54]===Symbol.for("react.memo_cache_sentinel")?(g={maxWidth:"100rem"},e[54]=g):g=e[54],k=Je,D="user-management-table",T=!0;const pe=i(o[0])&&t.jsx("col",{span:1,style:{width:"8rem"}}),xe=i(o[1])&&t.jsx("col",{span:1,style:{width:"3rem"}}),je=i(o[2])&&t.jsx("col",{span:1,style:{width:"4.5rem"}}),ye=i(o[3])&&t.jsx("col",{span:1,style:{width:"7rem"}}),ge=i(o[4])&&t.jsx("col",{span:1,style:{width:"5rem"}}),Ce=i(o[5])&&t.jsx("col",{span:1,style:{width:"5rem"}}),be=i(o[6])&&t.jsx("col",{span:1,style:{width:"6rem"}}),we=i(o[7])&&t.jsx("col",{span:1,style:{width:"3rem"}});e[55]!==pe||e[56]!==xe||e[57]!==je||e[58]!==ye||e[59]!==ge||e[60]!==Ce||e[61]!==be||e[62]!==we?(j=t.jsxs("colgroup",{children:[pe,xe,je,ye,ge,Ce,be,we]}),e[55]=pe,e[56]=xe,e[57]=je,e[58]=ye,e[59]=ge,e[60]=Ce,e[61]=be,e[62]=we,e[63]=j):j=e[63];const ve=t.jsx("tr",{children:o.map(n=>i(n)&&t.jsx("th",{...p[n],onClick:()=>m(n),className:"sortable fixed-column",style:{border:"1px solid #ddd"},children:n},n))});e[64]!==ve?(y=t.jsx("thead",{children:ve}),e[64]=ve,e[65]=y):y=e[65],$=t.jsx("tbody",{children:(I?[]:[d]).concat(v).map(n=>t.jsxs("tr",{style:{fontWeight:n.id==d.id?"bold":"normal"},children:[i(o[0])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id}),i(o[1])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id==d.id?t.jsx(We,{}):t.jsx("input",{type:"checkbox",name:"active",checked:n.permissions.active,onChange:S=>q(S,n)})}),i(o[2])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id==d.id?n.role.charAt(0).toUpperCase()+n.role.slice(1):t.jsxs("select",{name:"role",defaultValue:n.role,onChange:S=>q(S,n),style:{width:"100%"},children:[t.jsx("option",{value:"admin",children:"Admin"}),t.jsx("option",{value:"user",children:"User"}),t.jsx("option",{value:"observer",children:"Observer"})]})}),i(o[3])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.email}),i(o[4])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.name}),i(o[5])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.oidc_sub}),i(o[6])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:t.jsxs("select",{name:"nren",multiple:!1,value:n.nrens.length>0?fe(n.nrens[0]):"",onChange:S=>q(S,n),children:[t.jsx("option",{value:"",children:"Select NREN"}),a.map(_e)]})}),i(o[7])&&t.jsx("td",{style:{border:"1px dotted #ddd"},children:n.id!==d.id&&t.jsx(Ue,{variant:"danger",onClick:async()=>{if(n.id===d.id){de.error("You cannot delete yourself");return}await Pe(n)&&c(r.filter(Fe=>Fe.id!==n.id))},children:"Delete"})})]},n.id))}),e[16]=I,e[17]=fe,e[18]=i,e[19]=q,e[20]=d,e[21]=a,e[22]=ue,e[23]=f.asc,e[24]=f.column,e[25]=r,e[26]=k,e[27]=E,e[28]=T,e[29]=j,e[30]=y,e[31]=g,e[32]=R,e[33]=A,e[34]=C,e[35]=b,e[36]=w,e[37]=$,e[38]=D}else k=e[26],E=e[27],T=e[28],j=e[29],y=e[30],g=e[31],R=e[32],A=e[33],C=e[34],b=e[35],w=e[36],$=e[37],D=e[38];let F;e[66]!==k||e[67]!==T||e[68]!==j||e[69]!==y||e[70]!==$||e[71]!==D?(F=t.jsxs(k,{className:D,bordered:T,children:[j,y,$]}),e[66]=k,e[67]=T,e[68]=j,e[69]=y,e[70]=$,e[71]=D,e[72]=F):F=e[72];let V;e[73]!==g||e[74]!==F?(V=t.jsx("div",{style:g,children:F}),e[73]=g,e[74]=F,e[75]=V):V=e[75];let G;e[76]!==R||e[77]!==V?(G=t.jsx("div",{className:R,children:V}),e[76]=R,e[77]=V,e[78]=G):G=e[78];let O;e[79]!==E||e[80]!==A||e[81]!==C||e[82]!==G?(O=t.jsxs(E,{className:A,children:[C,G]}),e[79]=E,e[80]=A,e[81]=C,e[82]=G,e[83]=O):O=e[83];let P;return e[84]!==b||e[85]!==w||e[86]!==O?(P=t.jsxs(t.Fragment,{children:[b,w,O]}),e[84]=b,e[85]=w,e[86]=O,e[87]=P):P=e[87],P}function _e(e){return t.jsx("option",{value:e.id,children:e.name},e.id)}function et(e){return(s,r)=>{const c=s[e],l=r[e];if(e==="nrens")return s.nrens.length===0&&r.nrens.length===0?W(s,r):s.nrens.length===0?-1:r.nrens.length===0?1:s.nrens[0].localeCompare(r.nrens[0]);if(typeof c!="string"||typeof l!="string")return W(s,r);const a=c.localeCompare(l);return a===0?W(s,r):a}}function tt(e,s){return e.permissions.active&&!s.permissions.active?1:!e.permissions.active&&s.permissions.active?-1:W(e,s)}function st(e){de.error(e.message)}function nt(e,s){return e.name.localeCompare(s.name)}export{ut as default};
diff --git a/compendium_v2/static/WeatherMap-CR-KiYaJ.js b/compendium_v2/static/WeatherMap-CR-KiYaJ.js
new file mode 100644
index 0000000000000000000000000000000000000000..fa9e60783fcf0967afc35e78dece4edee55641cb
--- /dev/null
+++ b/compendium_v2/static/WeatherMap-CR-KiYaJ.js
@@ -0,0 +1 @@
+import{a as _,r as b,F as w,j as m}from"./main-BIBsTO5W.js";import{u as g,q as j,k as R,i as S,D as v,F as y,f as E}from"./useData-BDYwoQEh.js";import{S as F}from"./report.js";import{N as L}from"./NrenYearTable-BuqomkXK.js";import"./xlsx-CxqzP9DR.js";import"./index-D6hre9Be.js";import"./hook-DmuGcAOd.js";import"./Table-HH9WOnMU.js";function q(){const e=_.c(21),{filterSelection:t,setFilterSelection:o}=b.useContext(w),{data:i,nrens:d}=g("/api/weather-map",o);let a,n;if(e[0]!==i||e[1]!==t.selectedNrens){const x=i?j(i):[];let u;e[4]!==t.selectedNrens?(u=k=>t.selectedNrens.includes(k.nren),e[4]=t.selectedNrens,e[5]=u):u=e[5],a=x.filter(u);const D=R(a);n=S(D,C),e[0]=i,e[1]=t.selectedNrens,e[2]=a,e[3]=n}else a=e[2],n=e[3];const N=n;let c;e[6]===Symbol.for("react.memo_cache_sentinel")?(c=[],e[6]=c):c=e[6];let r;e[7]!==d?(r=d.values(),e[7]=d,e[8]=r):r=e[8];let s;e[9]!==r?(s={availableYears:c,availableNrens:[...r]},e[9]=r,e[10]=s):s=e[10];let f;e[11]!==t||e[12]!==o||e[13]!==s?(f=m.jsx(y,{filterOptions:s,filterSelection:t,setFilterSelection:o,coloredYears:!0}),e[11]=t,e[12]=o,e[13]=s,e[14]=f):f=e[14];const h=f;let l;e[15]!==N?(l=m.jsx(E,{children:m.jsx(L,{data:N,columnTitle:"Network Weather Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=N,e[16]=l):l=e[16];let p;return e[17]!==h||e[18]!==a||e[19]!==l?(p=m.jsx(v,{title:"NREN Online Network Weather Maps ",description:"This table shows the URL links to NREN websites showing weather map, if available.",category:F.Network,filter:h,data:a,filename:"weather_map_nrens_per_year",children:l}),e[17]=h,e[18]=a,e[19]=l,e[20]=p):p=e[20],p}function C(e,t){!!t.url&&(e[t.url]=t.url)}export{q as default};
diff --git a/compendium_v2/static/charthelpers-CCaYPWnR.js b/compendium_v2/static/charthelpers-CCaYPWnR.js
new file mode 100644
index 0000000000000000000000000000000000000000..6499ca0b0a91098fdb20318ba4972518d9738f11
--- /dev/null
+++ b/compendium_v2/static/charthelpers-CCaYPWnR.js
@@ -0,0 +1 @@
+import{C as l}from"./useData-BDYwoQEh.js";const x=({title:i,unit:c,tooltipPrefix:r,tooltipUnit:o,tickLimit:n,valueTransform:t})=>({responsive:!0,elements:{point:{pointStyle:"circle",pointRadius:4,pointBorderWidth:2,pointBackgroundColor:"white"}},animation:{duration:0},plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(a){let s=r??(a.dataset.label||"");const e=t?t(a.parsed.y):a.parsed.y;return a.parsed.y!==null&&(s+=`: ${e} ${o||""}`),s}}}},scales:{y:{title:{display:!!i,text:i||""},ticks:{autoSkip:!0,maxTicksLimit:n,callback:a=>`${typeof a=="string"?a:t?t(a):a} ${c||""}`}}}}),y=({title:i,unit:c,tooltipPrefix:r,tooltipUnit:o,valueTransform:n})=>({maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1},chartDataLabels:{font:{family:'"Open Sans", sans-serif'}},tooltip:{callbacks:{label:function(t){let a=r??(t.dataset.label||"");const s=n?n(t.parsed.x):t.parsed.x;return t.parsed.y!==null&&(a+=`: ${s} ${o||""}`),a}}}},scales:{x:{title:{display:!!i,text:i||""},position:"top",ticks:{callback:t=>t&&`${n?n(t):t} ${c||""}`}},x2:{title:{display:!!i,text:i||""},ticks:{callback:t=>t&&`${n?n(t):t} ${c||""}`},grid:{drawOnChartArea:!1},afterDataLimits:function(t){const a=Object.keys(l.instances);let s=-999999,e=999999;for(const d of a)l.instances[d]&&t.chart.scales.x2&&(e=Math.min(l.instances[d].scales.x.min,e),s=Math.max(l.instances[d].scales.x.max,s));t.chart.scales.x2.options.min=e,t.chart.scales.x2.options.max=s,t.chart.scales.x2.min=e,t.chart.scales.x2.max=s}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"});export{y as a,x as g};
diff --git a/compendium_v2/static/chartjs-plugin-datalabels.esm-D8EJYoxA.js b/compendium_v2/static/chartjs-plugin-datalabels.esm-D8EJYoxA.js
new file mode 100644
index 0000000000000000000000000000000000000000..00088f2f43a151fecc6164a2155c2a460eb6e5cc
--- /dev/null
+++ b/compendium_v2/static/chartjs-plugin-datalabels.esm-D8EJYoxA.js
@@ -0,0 +1,7 @@
+import{x as g,y as J,z as f,A as K,E as q,G as V,H as W,I as p,J as Y,P as Q,B as Z,K as ee,M as re}from"./useData-BDYwoQEh.js";/*!
+ * chartjs-plugin-datalabels v2.2.0
+ * https://chartjs-plugin-datalabels.netlify.app
+ * (c) 2017-2022 chartjs-plugin-datalabels contributors
+ * Released under the MIT license
+ */var B=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),m={toTextLines:function(e){var t=[],r;for(e=[].concat(e);e.length;)r=e.pop(),typeof r=="string"?t.unshift.apply(t,r.split(`
+`)):Array.isArray(r)?e.push.apply(e,r):p(e)||t.unshift(""+r);return t},textSize:function(e,t,r){var a=[].concat(t),i=a.length,n=e.font,o=0,s;for(e.font=r.string,s=0;s<i;++s)o=Math.max(e.measureText(a[s]).width,o);return e.font=n,{height:i*r.lineHeight,width:o}},bound:function(e,t,r){return Math.max(e,Math.min(t,r))},arrayDiff:function(e,t){var r=e.slice(),a=[],i,n,o,s;for(i=0,o=t.length;i<o;++i)s=t[i],n=r.indexOf(s),n===-1?a.push([s,1]):r.splice(n,1);for(i=0,o=r.length;i<o;++i)a.push([r[i],-1]);return a},rasterize:function(e){return Math.round(e*B)/B}};function A(e,t){var r=t.x,a=t.y;if(r===null)return{x:0,y:-1};if(a===null)return{x:1,y:0};var i=e.x-r,n=e.y-a,o=Math.sqrt(i*i+n*n);return{x:o?i/o:0,y:o?n/o:-1}}function ae(e,t,r,a,i){switch(i){case"center":r=a=0;break;case"bottom":r=0,a=1;break;case"right":r=1,a=0;break;case"left":r=-1,a=0;break;case"top":r=0,a=-1;break;case"start":r=-r,a=-a;break;case"end":break;default:i*=Math.PI/180,r=Math.cos(i),a=Math.sin(i);break}return{x:e,y:t,vx:r,vy:a}}var te=0,j=1,N=2,O=4,F=8;function M(e,t,r){var a=te;return e<r.left?a|=j:e>r.right&&(a|=N),t<r.top?a|=F:t>r.bottom&&(a|=O),a}function ie(e,t){for(var r=e.x0,a=e.y0,i=e.x1,n=e.y1,o=M(r,a,t),s=M(i,n,t),l,u,v;!(!(o|s)||o&s);)l=o||s,l&F?(u=r+(i-r)*(t.top-a)/(n-a),v=t.top):l&O?(u=r+(i-r)*(t.bottom-a)/(n-a),v=t.bottom):l&N?(v=a+(n-a)*(t.right-r)/(i-r),u=t.right):l&j&&(v=a+(n-a)*(t.left-r)/(i-r),u=t.left),l===o?(r=u,a=v,o=M(r,a,t)):(i=u,n=v,s=M(i,n,t));return{x0:r,x1:i,y0:a,y1:n}}function P(e,t){var r=t.anchor,a=e,i,n;return t.clamp&&(a=ie(a,t.area)),r==="start"?(i=a.x0,n=a.y0):r==="end"?(i=a.x1,n=a.y1):(i=(a.x0+a.x1)/2,n=(a.y0+a.y1)/2),ae(i,n,e.vx,e.vy,t.align)}var E={arc:function(e,t){var r=(e.startAngle+e.endAngle)/2,a=Math.cos(r),i=Math.sin(r),n=e.innerRadius,o=e.outerRadius;return P({x0:e.x+a*n,y0:e.y+i*n,x1:e.x+a*o,y1:e.y+i*o,vx:a,vy:i},t)},point:function(e,t){var r=A(e,t.origin),a=r.x*e.options.radius,i=r.y*e.options.radius;return P({x0:e.x-a,y0:e.y-i,x1:e.x+a,y1:e.y+i,vx:r.x,vy:r.y},t)},bar:function(e,t){var r=A(e,t.origin),a=e.x,i=e.y,n=0,o=0;return e.horizontal?(a=Math.min(e.x,e.base),n=Math.abs(e.base-e.x)):(i=Math.min(e.y,e.base),o=Math.abs(e.base-e.y)),P({x0:a,y0:i+o,x1:a+n,y1:i,vx:r.x,vy:r.y},t)},fallback:function(e,t){var r=A(e,t.origin);return P({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:r.x,vy:r.y},t)}},x=m.rasterize;function ne(e){var t=e.borderWidth||0,r=e.padding,a=e.size.height,i=e.size.width,n=-i/2,o=-a/2;return{frame:{x:n-r.left-t,y:o-r.top-t,w:i+r.width+t*2,h:a+r.height+t*2},text:{x:n,y:o,w:i,h:a}}}function oe(e,t){var r=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!r)return null;if(r.xCenter!==void 0&&r.yCenter!==void 0)return{x:r.xCenter,y:r.yCenter};var a=r.getBasePixel();return e.horizontal?{x:a,y:null}:{x:null,y:a}}function se(e){return e instanceof Y?E.arc:e instanceof Q?E.point:e instanceof Z?E.bar:E.fallback}function le(e,t,r,a,i,n){var o=Math.PI/2;if(n){var s=Math.min(n,i/2,a/2),l=t+s,u=r+s,v=t+a-s,d=r+i-s;e.moveTo(t,u),l<v&&u<d?(e.arc(l,u,s,-Math.PI,-o),e.arc(v,u,s,-o,0),e.arc(v,d,s,0,o),e.arc(l,d,s,o,Math.PI)):l<v?(e.moveTo(l,r),e.arc(v,u,s,-o,o),e.arc(l,u,s,o,Math.PI+o)):u<d?(e.arc(l,u,s,-Math.PI,0),e.arc(l,d,s,0,Math.PI)):e.arc(l,u,s,-Math.PI,Math.PI),e.closePath(),e.moveTo(t,r)}else e.rect(t,r,a,i)}function ue(e,t,r){var a=r.backgroundColor,i=r.borderColor,n=r.borderWidth;!a&&(!i||!n)||(e.beginPath(),le(e,x(t.x)+n/2,x(t.y)+n/2,x(t.w)-n,x(t.h)-n,r.borderRadius),e.closePath(),a&&(e.fillStyle=a,e.fill()),i&&n&&(e.strokeStyle=i,e.lineWidth=n,e.lineJoin="miter",e.stroke()))}function ve(e,t,r){var a=r.lineHeight,i=e.w,n=e.x,o=e.y+a/2;return t==="center"?n+=i/2:(t==="end"||t==="right")&&(n+=i),{h:a,w:i,x:n,y:o}}function de(e,t,r){var a=e.shadowBlur,i=r.stroked,n=x(r.x),o=x(r.y),s=x(r.w);i&&e.strokeText(t,n,o,s),r.filled&&(a&&i&&(e.shadowBlur=0),e.fillText(t,n,o,s),a&&i&&(e.shadowBlur=a))}function fe(e,t,r,a){var i=a.textAlign,n=a.color,o=!!n,s=a.font,l=t.length,u=a.textStrokeColor,v=a.textStrokeWidth,d=u&&v,y;if(!(!l||!o&&!d))for(r=ve(r,i,s),e.font=s.string,e.textAlign=i,e.textBaseline="middle",e.shadowBlur=a.textShadowBlur,e.shadowColor=a.textShadowColor,o&&(e.fillStyle=n),d&&(e.lineJoin="round",e.lineWidth=v,e.strokeStyle=u),y=0,l=t.length;y<l;++y)de(e,t[y],{stroked:d,filled:o,w:r.w,x:r.x,y:r.y+r.h*y})}var G=function(e,t,r,a){var i=this;i._config=e,i._index=a,i._model=null,i._rects=null,i._ctx=t,i._el=r};g(G.prototype,{_modelize:function(e,t,r,a){var i=this,n=i._index,o=J(f([r.font,{}],a,n)),s=f([r.color,K.color],a,n);return{align:f([r.align,"center"],a,n),anchor:f([r.anchor,"center"],a,n),area:a.chart.chartArea,backgroundColor:f([r.backgroundColor,null],a,n),borderColor:f([r.borderColor,null],a,n),borderRadius:f([r.borderRadius,0],a,n),borderWidth:f([r.borderWidth,0],a,n),clamp:f([r.clamp,!1],a,n),clip:f([r.clip,!1],a,n),color:s,display:e,font:o,lines:t,offset:f([r.offset,4],a,n),opacity:f([r.opacity,1],a,n),origin:oe(i._el,a),padding:q(f([r.padding,4],a,n)),positioner:se(i._el),rotation:f([r.rotation,0],a,n)*(Math.PI/180),size:m.textSize(i._ctx,t,o),textAlign:f([r.textAlign,"start"],a,n),textShadowBlur:f([r.textShadowBlur,0],a,n),textShadowColor:f([r.textShadowColor,s],a,n),textStrokeColor:f([r.textStrokeColor,s],a,n),textStrokeWidth:f([r.textStrokeWidth,0],a,n)}},update:function(e){var t=this,r=null,a=null,i=t._index,n=t._config,o,s,l,u=f([n.display,!0],e,i);u&&(o=e.dataset.data[i],s=V(W(n.formatter,[o,e]),o),l=p(s)?[]:m.toTextLines(s),l.length&&(r=t._modelize(u,l,n,e),a=ne(r))),t._model=r,t._rects=a},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var r=this,a=e.ctx,i=r._model,n=r._rects,o;this.visible()&&(a.save(),i.clip&&(o=i.area,a.beginPath(),a.rect(o.left,o.top,o.right-o.left,o.bottom-o.top),a.clip()),a.globalAlpha=m.bound(0,i.opacity,1),a.translate(x(t.x),x(t.y)),a.rotate(i.rotation),ue(a,n.frame,i),fe(a,i.lines,n.text,i),a.restore())}});var he=Number.MIN_SAFE_INTEGER||-9007199254740991,ye=Number.MAX_SAFE_INTEGER||9007199254740991;function b(e,t,r){var a=Math.cos(r),i=Math.sin(r),n=t.x,o=t.y;return{x:n+a*(e.x-n)-i*(e.y-o),y:o+i*(e.x-n)+a*(e.y-o)}}function D(e,t){var r=ye,a=he,i=t.origin,n,o,s,l,u;for(n=0;n<e.length;++n)o=e[n],s=o.x-i.x,l=o.y-i.y,u=t.vx*s+t.vy*l,r=Math.min(r,u),a=Math.max(a,u);return{min:r,max:a}}function I(e,t){var r=t.x-e.x,a=t.y-e.y,i=Math.sqrt(r*r+a*a);return{vx:(t.x-e.x)/i,vy:(t.y-e.y)/i,origin:e,ln:i}}var H=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};g(H.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,r){this._rotation=r,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,r=1,a=t._rect;return e=b(e,t.center(),-t._rotation),!(e.x<a.x-r||e.y<a.y-r||e.x>a.x+a.w+r*2||e.y>a.y+a.h+r*2)},intersects:function(e){var t=this._points(),r=e._points(),a=[I(t[0],t[1]),I(t[0],t[3])],i,n,o;for(this._rotation!==e._rotation&&a.push(I(r[0],r[1]),I(r[0],r[3])),i=0;i<a.length;++i)if(n=D(t,a[i]),o=D(r,a[i]),n.max<o.min||o.max<n.min)return!1;return!0},_points:function(){var e=this,t=e._rect,r=e._rotation,a=e.center();return[b({x:t.x,y:t.y},a,r),b({x:t.x+t.w,y:t.y},a,r),b({x:t.x+t.w,y:t.y+t.h},a,r),b({x:t.x,y:t.y+t.h},a,r)]}});function L(e,t,r){var a=t.positioner(e,t),i=a.vx,n=a.vy;if(!i&&!n)return{x:a.x,y:a.y};var o=r.w,s=r.h,l=t.rotation,u=Math.abs(o/2*Math.cos(l))+Math.abs(s/2*Math.sin(l)),v=Math.abs(o/2*Math.sin(l))+Math.abs(s/2*Math.cos(l)),d=1/Math.max(Math.abs(i),Math.abs(n));return u*=i*d,v*=n*d,u+=t.offset*i,v+=t.offset*n,{x:a.x+u,y:a.y+v}}function xe(e,t){var r,a,i,n;for(r=e.length-1;r>=0;--r)for(i=e[r].$layout,a=r-1;a>=0&&i._visible;--a)n=e[a].$layout,n._visible&&i._box.intersects(n._box)&&t(i,n);return e}function _e(e){var t,r,a,i,n,o,s;for(t=0,r=e.length;t<r;++t)a=e[t],i=a.$layout,i._visible&&(s=new Proxy(a._el,{get:(l,u)=>l.getProps([u],!0)[u]}),n=a.geometry(),o=L(s,a.model(),n),i._box.update(o,n,a.rotation()));return xe(e,function(l,u){var v=l._hidable,d=u._hidable;v&&d||d?u._visible=!1:v&&(l._visible=!1)})}var w={prepare:function(e){var t=[],r,a,i,n,o;for(r=0,i=e.length;r<i;++r)for(a=0,n=e[r].length;a<n;++a)o=e[r][a],t.push(o),o.$layout={_box:new H,_hidable:!1,_visible:!0,_set:r,_idx:o._index};return t.sort(function(s,l){var u=s.$layout,v=l.$layout;return u._idx===v._idx?v._set-u._set:v._idx-u._idx}),this.update(t),t},update:function(e){var t=!1,r,a,i,n,o;for(r=0,a=e.length;r<a;++r)i=e[r],n=i.model(),o=i.$layout,o._hidable=n&&n.display==="auto",o._visible=i.visible(),t|=o._hidable;t&&_e(e)},lookup:function(e,t){var r,a;for(r=e.length-1;r>=0;--r)if(a=e[r].$layout,a&&a._visible&&a._box.contains(t))return e[r];return null},draw:function(e,t){var r,a,i,n,o,s;for(r=0,a=t.length;r<a;++r)i=t[r],n=i.$layout,n._visible&&(o=i.geometry(),s=L(i._el,i.model(),o),n._box.update(s,o,i.rotation()),i.draw(e,s))}},ce=function(e){if(p(e))return null;var t=e,r,a,i;if(re(e))if(!p(e.label))t=e.label;else if(!p(e.r))t=e.r;else for(t="",r=Object.keys(e),i=0,a=r.length;i<a;++i)t+=(i!==0?", ":"")+r[i]+": "+e[r[i]];return""+t},be={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:ce,labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},h="$datalabels",U="$default";function pe(e,t){var r=e.datalabels,a={},i=[],n,o;return r===!1?null:(r===!0&&(r={}),t=g({},[t,r]),n=t.labels||{},o=Object.keys(n),delete t.labels,o.length?o.forEach(function(s){n[s]&&i.push(g({},[t,n[s],{_key:s}]))}):i.push(t),a=i.reduce(function(s,l){return ee(l.listeners||{},function(u,v){s[v]=s[v]||{},s[v][l._key||U]=u}),delete l.listeners,s},{}),{labels:i,listeners:a})}function R(e,t,r,a){if(t){var i=r.$context,n=r.$groups,o;t[n._set]&&(o=t[n._set][n._key],o&&W(o,[i,a])===!0&&(e[h]._dirty=!0,r.update(i)))}}function me(e,t,r,a,i){var n,o;!r&&!a||(r?a?r!==a&&(o=n=!0):o=!0:n=!0,o&&R(e,t.leave,r,i),n&&R(e,t.enter,a,i))}function we(e,t){var r=e[h],a=r._listeners,i,n;if(!(!a.enter&&!a.leave)){if(t.type==="mousemove")n=w.lookup(r._labels,t);else if(t.type!=="mouseout")return;i=r._hovered,r._hovered=n,me(e,a,i,n,t)}}function ge(e,t){var r=e[h],a=r._listeners.click,i=a&&w.lookup(r._labels,t);i&&R(e,a,i,t)}var Me={id:"datalabels",defaults:be,beforeInit:function(e){e[h]={_actives:[]}},beforeUpdate:function(e){var t=e[h];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,r){var a=t.index,i=e[h],n=i._datasets[a]=[],o=e.isDatasetVisible(a),s=e.data.datasets[a],l=pe(s,r),u=t.meta.data||[],v=e.ctx,d,y,$,T,S,z,c,_;for(v.save(),d=0,$=u.length;d<$;++d)if(c=u[d],c[h]=[],o&&c&&e.getDataVisibility(d)&&!c.skip)for(y=0,T=l.labels.length;y<T;++y)S=l.labels[y],z=S._key,_=new G(S,v,c,d),_.$groups={_set:a,_key:z||U},_.$context={active:!1,chart:e,dataIndex:d,dataset:s,datasetIndex:a},_.update(_.$context),c[h].push(_),n.push(_);v.restore(),g(i._listeners,l.listeners,{merger:function(k,C,X){C[k]=C[k]||{},C[k][t.index]=X[k],i._listened=!0}})},afterUpdate:function(e){e[h]._labels=w.prepare(e[h]._datasets)},afterDatasetsDraw:function(e){w.draw(e,e[h]._labels)},beforeEvent:function(e,t){if(e[h]._listened){var r=t.event;switch(r.type){case"mousemove":case"mouseout":we(e,r);break;case"click":ge(e,r);break}}},afterEvent:function(e){var t=e[h],r=t._actives,a=t._actives=e.getActiveElements(),i=m.arrayDiff(r,a),n,o,s,l,u,v,d;for(n=0,o=i.length;n<o;++n)if(u=i[n],u[1])for(d=u[0].element[h]||[],s=0,l=d.length;s<l;++s)v=d[s],v.$context.active=u[1]===1,v.update(v.$context);(t._dirty||i.length)&&(w.update(t._labels),e.render()),delete t._dirty}};export{Me as p};
diff --git a/compendium_v2/static/hook-DmuGcAOd.js b/compendium_v2/static/hook-DmuGcAOd.js
new file mode 100644
index 0000000000000000000000000000000000000000..aadb417437599470fa5a4e68493b46ce6bb58b0d
--- /dev/null
+++ b/compendium_v2/static/hook-DmuGcAOd.js
@@ -0,0 +1 @@
+import{W as d,r as p}from"./main-BIBsTO5W.js";function m(){return m=Object.assign?Object.assign.bind():function(r){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var e in n)({}).hasOwnProperty.call(n,e)&&(r[e]=n[e])}return r},m.apply(null,arguments)}function b(r){return"default"+r.charAt(0).toUpperCase()+r.substr(1)}function y(r){var t=P(r,"string");return typeof t=="symbol"?t:String(t)}function P(r,t){if(typeof r!="object"||r===null)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var e=n.call(r,t);if(typeof e!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function g(r,t,n){var e=p.useRef(r!==void 0),o=p.useState(t),a=o[0],f=o[1],i=r!==void 0,l=e.current;return e.current=i,!i&&l&&a!==t&&f(t),[i?r:a,p.useCallback(function(c){for(var u=arguments.length,v=new Array(u>1?u-1:0),s=1;s<u;s++)v[s-1]=arguments[s];n&&n.apply(void 0,[c].concat(v)),f(c)},[n])]}function j(r,t){return Object.keys(t).reduce(function(n,e){var o,a=n,f=a[b(e)],i=a[e],l=d(a,[b(e),e].map(y)),c=t[e],u=g(i,f,r[c]),v=u[0],s=u[1];return m({},l,(o={},o[e]=v,o[c]=s,o))},r)}export{j as u};
diff --git a/compendium_v2/static/index-BBrAyDR9.js b/compendium_v2/static/index-BBrAyDR9.js
new file mode 100644
index 0000000000000000000000000000000000000000..faebc1f4f0e8e46e556080faaaa7e389e941934a
--- /dev/null
+++ b/compendium_v2/static/index-BBrAyDR9.js
@@ -0,0 +1 @@
+import{r as a,i as h}from"./main-BIBsTO5W.js";import{C as b,t as L,v}from"./useData-BDYwoQEh.js";const C="label";function m(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function B(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function y(t,e){t.labels=e}function E(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:C;const o=[];t.datasets=e.map(s=>{const u=t.datasets.find(i=>i[n]===s[n]);return!u||!s.data||o.includes(u)?{...s}:(o.push(u),Object.assign(u,s),u)})}function T(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C;const n={labels:[],datasets:[]};return y(n,t.labels),E(n,t.datasets,e),n}function j(t,e){const{height:n=150,width:o=300,redraw:s=!1,datasetIdKey:u,type:i,data:c,options:f,plugins:w=[],fallbackContent:I,updateMode:g,...K}=t,l=a.useRef(null),r=a.useRef(null),d=()=>{l.current&&(r.current=new b(l.current,{type:i,data:T(c,u),options:f&&{...f},plugins:w}),m(e,r.current))},p=()=>{m(e,null),r.current&&(r.current.destroy(),r.current=null)};return a.useEffect(()=>{!s&&r.current&&f&&B(r.current,f)},[s,f]),a.useEffect(()=>{!s&&r.current&&y(r.current.config.data,c.labels)},[s,c.labels]),a.useEffect(()=>{!s&&r.current&&c.datasets&&E(r.current.config.data,c.datasets,u)},[s,c.datasets]),a.useEffect(()=>{r.current&&(s?(p(),setTimeout(d)):r.current.update(g))},[s,f,c.labels,c.datasets,g]),a.useEffect(()=>{r.current&&(p(),setTimeout(d))},[i]),a.useEffect(()=>(d(),()=>p()),[]),h.createElement("canvas",{ref:l,role:"img",height:n,width:o,...K},I)}const D=a.forwardRef(j);function R(t,e){return b.register(e),a.forwardRef((n,o)=>h.createElement(D,{...n,ref:o,type:t}))}const M=R("line",L),P=R("bar",v);export{P as B,M as L};
diff --git a/compendium_v2/static/index-CuSQpLoM.js b/compendium_v2/static/index-CuSQpLoM.js
new file mode 100644
index 0000000000000000000000000000000000000000..a862d0408f713969c96406d31e630a90a38fdd58
--- /dev/null
+++ b/compendium_v2/static/index-CuSQpLoM.js
@@ -0,0 +1,177 @@
+import{r as c}from"./main-BIBsTO5W.js";let T={data:""},F=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||T,_=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,H=/\/\*[^]*?\*\/|  +/g,A=/\n+/g,b=(e,t)=>{let a="",o="",i="";for(let r in e){let n=e[r];r[0]=="@"?r[1]=="i"?a=r+" "+n+";":o+=r[1]=="f"?b(n,r):r+"{"+b(n,r[1]=="k"?"":t)+"}":typeof n=="object"?o+=b(n,t?t.replace(/([^,])+/g,s=>r.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):r):n!=null&&(r=/^--/.test(r)?r:r.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=b.p?b.p(r,n):r+":"+n+";")}return a+(t&&i?t+"{"+i+"}":i)+o},y={},P=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+P(e[a]);return t}return e},L=(e,t,a,o,i)=>{let r=P(e),n=y[r]||(y[r]=(l=>{let d=0,u=11;for(;d<l.length;)u=101*u+l.charCodeAt(d++)>>>0;return"go"+u})(r));if(!y[n]){let l=r!==e?e:(d=>{let u,m,f=[{}];for(;u=_.exec(d.replace(H,""));)u[4]?f.shift():u[3]?(m=u[3].replace(A," ").trim(),f.unshift(f[0][m]=f[0][m]||{})):f[0][u[1]]=u[2].replace(A," ").trim();return f[0]})(e);y[n]=b(i?{["@keyframes "+n]:l}:l,a?"":"."+n)}let s=a&&y.g?y.g:null;return a&&(y.g=y[n]),((l,d,u,m)=>{m?d.data=d.data.replace(m,l):d.data.indexOf(l)===-1&&(d.data=u?l+d.data:d.data+l)})(y[n],t,o,s),n},U=(e,t,a)=>e.reduce((o,i,r)=>{let n=t[r];if(n&&n.call){let s=n(a),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;n=l?"."+l:s&&typeof s=="object"?s.props?"":b(s,""):s===!1?"":s}return o+i+(n??"")},"");function j(e){let t=this||{},a=e.call?e(t.p):e;return L(a.unshift?a.raw?U(a,[].slice.call(arguments,1),t.p):a.reduce((o,i)=>Object.assign(o,i&&i.call?i(t.p):i),{}):a,F(t.target),t.g,t.o,t.k)}let I,N,z;j.bind({g:1});let h=j.bind({k:1});function q(e,t,a,o){b.p=t,I=e,N=a,z=o}function x(e,t){let a=this||{};return function(){let o=arguments;function i(r,n){let s=Object.assign({},r),l=s.className||i.className;a.p=Object.assign({theme:N&&N()},s),a.o=/ *go\d+/.test(l),s.className=j.apply(a,o)+(l?" "+l:"");let d=e;return e[0]&&(d=s.as||e,delete s.as),z&&d[0]&&z(s),I(d,s)}return i}}var R=e=>typeof e=="function",O=(e,t)=>R(e)?e(t):e,Y=(()=>{let e=0;return()=>(++e).toString()})(),M=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Z=20,S=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Z)};case 1:return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case 2:let{toast:a}=t;return S(e,{type:e.toasts.find(r=>r.id===a.id)?1:0,toast:a});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(r=>r.id===o||o===void 0?{...r,dismissed:!0,visible:!1}:r)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(r=>({...r,pauseDuration:r.pauseDuration+i}))}}},k=[],D={toasts:[],pausedAt:void 0},v=e=>{D=S(D,e),k.forEach(t=>{t(D)})},B={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},G=(e={})=>{let[t,a]=c.useState(D);c.useEffect(()=>(k.push(a),()=>{let i=k.indexOf(a);i>-1&&k.splice(i,1)}),[t]);let o=t.toasts.map(i=>{var r,n,s;return{...e,...e[i.type],...i,removeDelay:i.removeDelay||((r=e[i.type])==null?void 0:r.removeDelay)||(e==null?void 0:e.removeDelay),duration:i.duration||((n=e[i.type])==null?void 0:n.duration)||(e==null?void 0:e.duration)||B[i.type],style:{...e.style,...(s=e[i.type])==null?void 0:s.style,...i.style}}});return{...t,toasts:o}},J=(e,t="blank",a)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:(a==null?void 0:a.id)||Y()}),E=e=>(t,a)=>{let o=J(t,e,a);return v({type:2,toast:o}),o.id},p=(e,t)=>E("blank")(e,t);p.error=E("error");p.success=E("success");p.loading=E("loading");p.custom=E("custom");p.dismiss=e=>{v({type:3,toastId:e})};p.remove=e=>v({type:4,toastId:e});p.promise=(e,t,a)=>{let o=p.loading(t.loading,{...a,...a==null?void 0:a.loading});return typeof e=="function"&&(e=e()),e.then(i=>{let r=t.success?O(t.success,i):void 0;return r?p.success(r,{id:o,...a,...a==null?void 0:a.success}):p.dismiss(o),i}).catch(i=>{let r=t.error?O(t.error,i):void 0;r?p.error(r,{id:o,...a,...a==null?void 0:a.error}):p.dismiss(o)}),e};var K=(e,t)=>{v({type:1,toast:{id:e,height:t}})},Q=()=>{v({type:5,time:Date.now()})},w=new Map,V=1e3,W=(e,t=V)=>{if(w.has(e))return;let a=setTimeout(()=>{w.delete(e),v({type:4,toastId:e})},t);w.set(e,a)},X=e=>{let{toasts:t,pausedAt:a}=G(e);c.useEffect(()=>{if(a)return;let r=Date.now(),n=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(r-s.createdAt);if(l<0){s.visible&&p.dismiss(s.id);return}return setTimeout(()=>p.dismiss(s.id),l)});return()=>{n.forEach(s=>s&&clearTimeout(s))}},[t,a]);let o=c.useCallback(()=>{a&&v({type:6,time:Date.now()})},[a]),i=c.useCallback((r,n)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:d}=n||{},u=t.filter(g=>(g.position||d)===(r.position||d)&&g.height),m=u.findIndex(g=>g.id===r.id),f=u.filter((g,C)=>C<m&&g.visible).length;return u.filter(g=>g.visible).slice(...s?[f+1]:[0,f]).reduce((g,C)=>g+(C.height||0)+l,0)},[t]);return c.useEffect(()=>{t.forEach(r=>{if(r.dismissed)W(r.id,r.removeDelay);else{let n=w.get(r.id);n&&(clearTimeout(n),w.delete(r.id))}})},[t]),{toasts:t,handlers:{updateHeight:K,startPause:Q,endPause:o,calculateOffset:i}}},ee=h`
+from {
+  transform: scale(0) rotate(45deg);
+	opacity: 0;
+}
+to {
+ transform: scale(1) rotate(45deg);
+  opacity: 1;
+}`,te=h`
+from {
+  transform: scale(0);
+  opacity: 0;
+}
+to {
+  transform: scale(1);
+  opacity: 1;
+}`,ae=h`
+from {
+  transform: scale(0) rotate(90deg);
+	opacity: 0;
+}
+to {
+  transform: scale(1) rotate(90deg);
+	opacity: 1;
+}`,re=x("div")`
+  width: 20px;
+  opacity: 0;
+  height: 20px;
+  border-radius: 10px;
+  background: ${e=>e.primary||"#ff4b4b"};
+  position: relative;
+  transform: rotate(45deg);
+
+  animation: ${ee} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
+    forwards;
+  animation-delay: 100ms;
+
+  &:after,
+  &:before {
+    content: '';
+    animation: ${te} 0.15s ease-out forwards;
+    animation-delay: 150ms;
+    position: absolute;
+    border-radius: 3px;
+    opacity: 0;
+    background: ${e=>e.secondary||"#fff"};
+    bottom: 9px;
+    left: 4px;
+    height: 2px;
+    width: 12px;
+  }
+
+  &:before {
+    animation: ${ae} 0.15s ease-out forwards;
+    animation-delay: 180ms;
+    transform: rotate(90deg);
+  }
+`,ie=h`
+  from {
+    transform: rotate(0deg);
+  }
+  to {
+    transform: rotate(360deg);
+  }
+`,se=x("div")`
+  width: 12px;
+  height: 12px;
+  box-sizing: border-box;
+  border: 2px solid;
+  border-radius: 100%;
+  border-color: ${e=>e.secondary||"#e0e0e0"};
+  border-right-color: ${e=>e.primary||"#616161"};
+  animation: ${ie} 1s linear infinite;
+`,oe=h`
+from {
+  transform: scale(0) rotate(45deg);
+	opacity: 0;
+}
+to {
+  transform: scale(1) rotate(45deg);
+	opacity: 1;
+}`,ne=h`
+0% {
+	height: 0;
+	width: 0;
+	opacity: 0;
+}
+40% {
+  height: 0;
+	width: 6px;
+	opacity: 1;
+}
+100% {
+  opacity: 1;
+  height: 10px;
+}`,le=x("div")`
+  width: 20px;
+  opacity: 0;
+  height: 20px;
+  border-radius: 10px;
+  background: ${e=>e.primary||"#61d345"};
+  position: relative;
+  transform: rotate(45deg);
+
+  animation: ${oe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
+    forwards;
+  animation-delay: 100ms;
+  &:after {
+    content: '';
+    box-sizing: border-box;
+    animation: ${ne} 0.2s ease-out forwards;
+    opacity: 0;
+    animation-delay: 200ms;
+    position: absolute;
+    border-right: 2px solid;
+    border-bottom: 2px solid;
+    border-color: ${e=>e.secondary||"#fff"};
+    bottom: 6px;
+    left: 6px;
+    height: 10px;
+    width: 6px;
+  }
+`,de=x("div")`
+  position: absolute;
+`,ce=x("div")`
+  position: relative;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  min-width: 20px;
+  min-height: 20px;
+`,ue=h`
+from {
+  transform: scale(0.6);
+  opacity: 0.4;
+}
+to {
+  transform: scale(1);
+  opacity: 1;
+}`,pe=x("div")`
+  position: relative;
+  transform: scale(0.6);
+  opacity: 0.4;
+  min-width: 20px;
+  animation: ${ue} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
+    forwards;
+`,fe=({toast:e})=>{let{icon:t,type:a,iconTheme:o}=e;return t!==void 0?typeof t=="string"?c.createElement(pe,null,t):t:a==="blank"?null:c.createElement(ce,null,c.createElement(se,{...o}),a!=="loading"&&c.createElement(de,null,a==="error"?c.createElement(re,{...o}):c.createElement(le,{...o})))},me=e=>`
+0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
+100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
+`,ge=e=>`
+0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
+100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
+`,ye="0%{opacity:0;} 100%{opacity:1;}",he="0%{opacity:1;} 100%{opacity:0;}",be=x("div")`
+  display: flex;
+  align-items: center;
+  background: #fff;
+  color: #363636;
+  line-height: 1.3;
+  will-change: transform;
+  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
+  max-width: 350px;
+  pointer-events: auto;
+  padding: 8px 10px;
+  border-radius: 8px;
+`,xe=x("div")`
+  display: flex;
+  justify-content: center;
+  margin: 4px 10px;
+  color: inherit;
+  flex: 1 1 auto;
+  white-space: pre-line;
+`,ve=(e,t)=>{let a=e.includes("top")?1:-1,[o,i]=M()?[ye,he]:[me(a),ge(a)];return{animation:t?`${h(o)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${h(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},we=c.memo(({toast:e,position:t,style:a,children:o})=>{let i=e.height?ve(e.position||t||"top-center",e.visible):{opacity:0},r=c.createElement(fe,{toast:e}),n=c.createElement(xe,{...e.ariaProps},O(e.message,e));return c.createElement(be,{className:e.className,style:{...i,...a,...e.style}},typeof o=="function"?o({icon:r,message:n}):c.createElement(c.Fragment,null,r,n))});q(c.createElement);var Ee=({id:e,className:t,style:a,onHeightUpdate:o,children:i})=>{let r=c.useCallback(n=>{if(n){let s=()=>{let l=n.getBoundingClientRect().height;o(e,l)};s(),new MutationObserver(s).observe(n,{subtree:!0,childList:!0,characterData:!0})}},[e,o]);return c.createElement("div",{ref:r,className:t,style:a},i)},$e=(e,t)=>{let a=e.includes("top"),o=a?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:M()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(a?1:-1)}px)`,...o,...i}},ke=j`
+  z-index: 9999;
+  > * {
+    pointer-events: auto;
+  }
+`,$=16,Oe=({reverseOrder:e,position:t="top-center",toastOptions:a,gutter:o,children:i,containerStyle:r,containerClassName:n})=>{let{toasts:s,handlers:l}=X(a);return c.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:$,left:$,right:$,bottom:$,pointerEvents:"none",...r},className:n,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(d=>{let u=d.position||t,m=l.calculateOffset(d,{reverseOrder:e,gutter:o,defaultPosition:t}),f=$e(u,m);return c.createElement(Ee,{id:d.id,key:d.id,onHeightUpdate:l.updateHeight,className:d.visible?ke:"",style:f},d.type==="custom"?O(d.message,d):i?i(d):c.createElement(we,{toast:d,position:u}))}))},je=p;export{Oe as D,je as k};
diff --git a/compendium_v2/static/index-D6hre9Be.js b/compendium_v2/static/index-D6hre9Be.js
new file mode 100644
index 0000000000000000000000000000000000000000..1582af3830427c6fa66aaab07158faf4afb005fa
--- /dev/null
+++ b/compendium_v2/static/index-D6hre9Be.js
@@ -0,0 +1 @@
+import{r as a,X as c}from"./main-BIBsTO5W.js";const o=a.createContext(null);o.displayName="InputGroupContext";function n(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(t)}function e(t){return c({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},child:[]}]})(t)}export{e as F,n as a,o as c};
diff --git a/compendium_v2/static/index.html b/compendium_v2/static/index.html
index a06478eeb6f1c0254868fa5f112a8a01ebf73c66..dbe4602f2241caacfe736943ecc618eeaa9c0d39 100644
--- a/compendium_v2/static/index.html
+++ b/compendium_v2/static/index.html
@@ -3,7 +3,7 @@
 <head>
   <meta charset="utf-8"/>
   <script type="module" crossorigin src="/static/report.js"></script>
-  <link rel="modulepreload" crossorigin href="/static/main-BfdqwKKW.js">
+  <link rel="modulepreload" crossorigin href="/static/main-BIBsTO5W.js">
   <link rel="stylesheet" crossorigin href="/static/main.css">
 </head>
 <body>
diff --git a/compendium_v2/static/lodash-BjwYmmCl.js b/compendium_v2/static/lodash-BjwYmmCl.js
new file mode 100644
index 0000000000000000000000000000000000000000..e696e2e1e70e0157d05bb606f0aa1078769ba2b8
--- /dev/null
+++ b/compendium_v2/static/lodash-BjwYmmCl.js
@@ -0,0 +1,27 @@
+import{i as vo,r as X,j as On,a1 as A_,a2 as y_,a3 as m_,c as Et,a4 as xo,a5 as E_,a6 as R_,a7 as I_,a8 as C_,a9 as S_,u as $t,aa as cr}from"./main-BIBsTO5W.js";import{u as T_}from"./hook-DmuGcAOd.js";function he(...W){return W.filter(I=>I!=null).reduce((I,o)=>{if(typeof o!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return I===null?o:function(...U){I.apply(this,U),o.apply(this,U)}},null)}const L_={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function O_(W,I){const o=`offset${W[0].toUpperCase()}${W.slice(1)}`,$=I[o],U=L_[W];return $+parseInt(xo(I,U[0]),10)+parseInt(xo(I,U[1]),10)}const W_={[E_]:"collapse",[R_]:"collapsing",[I_]:"collapsing",[C_]:"collapse show"},B_=vo.forwardRef(({onEnter:W,onEntering:I,onEntered:o,onExit:$,onExiting:U,className:k,children:L,dimension:nn="height",in:rn=!1,timeout:ht=300,mountOnEnter:Wn=!1,unmountOnExit:an=!1,appear:_e=!1,getDimensionValue:Kn=O_,...zn},Rt)=>{const N=typeof nn=="function"?nn():nn,et=X.useMemo(()=>he(J=>{J.style[N]="0"},W),[N,W]),de=X.useMemo(()=>he(J=>{const _n=`scroll${N[0].toUpperCase()}${N.slice(1)}`;J.style[N]=`${J[_n]}px`},I),[N,I]),Bn=X.useMemo(()=>he(J=>{J.style[N]=null},o),[N,o]),gt=X.useMemo(()=>he(J=>{J.style[N]=`${Kn(N,J)}px`,S_(J)},$),[$,Kn,N]),Mn=X.useMemo(()=>he(J=>{J.style[N]=null},U),[N,U]);return On.jsx(A_,{ref:Rt,addEndListener:y_,...zn,"aria-expanded":zn.role?rn:null,onEnter:et,onEntering:de,onEntered:Bn,onExit:gt,onExiting:Mn,childRef:m_(L),in:rn,timeout:ht,mountOnEnter:Wn,unmountOnExit:an,appear:_e,children:(J,_n)=>vo.cloneElement(L,{..._n,className:Et(k,L.props.className,W_[J],N==="width"&&"collapse-horizontal")})})});function Ao(W,I){return Array.isArray(W)?W.includes(I):W===I}const pe=X.createContext({});pe.displayName="AccordionContext";const Pi=X.forwardRef(({as:W="div",bsPrefix:I,className:o,children:$,eventKey:U,...k},L)=>{const{activeEventKey:nn}=X.useContext(pe);return I=$t(I,"accordion-collapse"),On.jsx(B_,{ref:L,in:Ao(nn,U),...k,className:Et(o,I),children:On.jsx(W,{children:X.Children.only($)})})});Pi.displayName="AccordionCollapse";const hr=X.createContext({eventKey:""});hr.displayName="AccordionItemContext";const yo=X.forwardRef(({as:W="div",bsPrefix:I,className:o,onEnter:$,onEntering:U,onEntered:k,onExit:L,onExiting:nn,onExited:rn,...ht},Wn)=>{I=$t(I,"accordion-body");const{eventKey:an}=X.useContext(hr);return On.jsx(Pi,{eventKey:an,onEnter:$,onEntering:U,onEntered:k,onExit:L,onExiting:nn,onExited:rn,children:On.jsx(W,{ref:Wn,...ht,className:Et(o,I)})})});yo.displayName="AccordionBody";function M_(W,I){const{activeEventKey:o,onSelect:$,alwaysOpen:U}=X.useContext(pe);return k=>{let L=W===o?null:W;U&&(Array.isArray(o)?o.includes(W)?L=o.filter(nn=>nn!==W):L=[...o,W]:L=[W]),$==null||$(L,k),I==null||I(k)}}const bi=X.forwardRef(({as:W="button",bsPrefix:I,className:o,onClick:$,...U},k)=>{I=$t(I,"accordion-button");const{eventKey:L}=X.useContext(hr),nn=M_(L,$),{activeEventKey:rn}=X.useContext(pe);return W==="button"&&(U.type="button"),On.jsx(W,{ref:k,onClick:nn,...U,"aria-expanded":Array.isArray(rn)?rn.includes(L):L===rn,className:Et(o,I,!Ao(rn,L)&&"collapsed")})});bi.displayName="AccordionButton";const mo=X.forwardRef(({as:W="h2","aria-controls":I,bsPrefix:o,className:$,children:U,onClick:k,...L},nn)=>(o=$t(o,"accordion-header"),On.jsx(W,{ref:nn,...L,className:Et($,o),children:On.jsx(bi,{onClick:k,"aria-controls":I,children:U})})));mo.displayName="AccordionHeader";const Eo=X.forwardRef(({as:W="div",bsPrefix:I,className:o,eventKey:$,...U},k)=>{I=$t(I,"accordion-item");const L=X.useMemo(()=>({eventKey:$}),[$]);return On.jsx(hr.Provider,{value:L,children:On.jsx(W,{ref:k,...U,className:Et(o,I)})})});Eo.displayName="AccordionItem";const Ro=X.forwardRef((W,I)=>{const{as:o="div",activeKey:$,bsPrefix:U,className:k,onSelect:L,flush:nn,alwaysOpen:rn,...ht}=T_(W,{activeKey:"onSelect"}),Wn=$t(U,"accordion"),an=X.useMemo(()=>({activeEventKey:$,onSelect:L,alwaysOpen:rn}),[$,L,rn]);return On.jsx(pe.Provider,{value:an,children:On.jsx(o,{ref:I,...ht,className:Et(k,Wn,nn&&`${Wn}-flush`)})})});Ro.displayName="Accordion";const D_=Object.assign(Ro,{Button:bi,Collapse:Pi,Item:Eo,Header:mo,Body:yo});var ge={exports:{}};/**
+ * @license
+ * Lodash <https://lodash.com/>
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
+ * Released under MIT license <https://lodash.com/license>
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+ */var F_=ge.exports,wo;function P_(){return wo||(wo=1,function(W,I){(function(){var o,$="4.17.21",U=200,k="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",L="Expected a function",nn="Invalid `variable` option passed into `_.template`",rn="__lodash_hash_undefined__",ht=500,Wn="__lodash_placeholder__",an=1,_e=2,Kn=4,zn=1,Rt=2,N=1,et=2,de=4,Bn=8,gt=16,Mn=32,J=64,_n=128,qt=256,gr=512,Io=30,Co="...",So=800,To=16,Ui=1,Lo=2,Oo=3,ve=1/0,It=9007199254740991,Wo=17976931348623157e292,xe=NaN,Gn=4294967295,Bo=Gn-1,Mo=Gn>>>1,Fo=[["ary",_n],["bind",N],["bindKey",et],["curry",Bn],["curryRight",gt],["flip",gr],["partial",Mn],["partialRight",J],["rearg",qt]],Ct="[object Arguments]",we="[object Array]",Po="[object AsyncFunction]",Kt="[object Boolean]",zt="[object Date]",bo="[object DOMException]",Ae="[object Error]",ye="[object Function]",Di="[object GeneratorFunction]",Fn="[object Map]",Zt="[object Number]",Uo="[object Null]",Zn="[object Object]",Ni="[object Promise]",Do="[object Proxy]",Yt="[object RegExp]",Pn="[object Set]",Xt="[object String]",me="[object Symbol]",No="[object Undefined]",Jt="[object WeakMap]",Go="[object WeakSet]",Qt="[object ArrayBuffer]",St="[object DataView]",pr="[object Float32Array]",_r="[object Float64Array]",dr="[object Int8Array]",vr="[object Int16Array]",xr="[object Int32Array]",wr="[object Uint8Array]",Ar="[object Uint8ClampedArray]",yr="[object Uint16Array]",mr="[object Uint32Array]",Ho=/\b__p \+= '';/g,$o=/\b(__p \+=) '' \+/g,qo=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gi=/&(?:amp|lt|gt|quot|#39);/g,Hi=/[&<>"']/g,Ko=RegExp(Gi.source),zo=RegExp(Hi.source),Zo=/<%-([\s\S]+?)%>/g,Yo=/<%([\s\S]+?)%>/g,$i=/<%=([\s\S]+?)%>/g,Xo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Jo=/^\w*$/,Qo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Er=/[\\^$.*+?()[\]{}|]/g,Vo=RegExp(Er.source),Rr=/^\s+/,ko=/\s/,jo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nl=/\{\n\/\* \[wrapped with (.+)\] \*/,tl=/,? & /,el=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,rl=/[()=,{}\[\]\/\s]/,il=/\\(\\)?/g,ul=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qi=/\w*$/,fl=/^[-+]0x[0-9a-f]+$/i,ol=/^0b[01]+$/i,ll=/^\[object .+?Constructor\]$/,sl=/^0o[0-7]+$/i,al=/^(?:0|[1-9]\d*)$/,cl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ee=/($^)/,hl=/['\n\r\u2028\u2029\\]/g,Re="\\ud800-\\udfff",gl="\\u0300-\\u036f",pl="\\ufe20-\\ufe2f",_l="\\u20d0-\\u20ff",Ki=gl+pl+_l,zi="\\u2700-\\u27bf",Zi="a-z\\xdf-\\xf6\\xf8-\\xff",dl="\\xac\\xb1\\xd7\\xf7",vl="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xl="\\u2000-\\u206f",wl=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Yi="A-Z\\xc0-\\xd6\\xd8-\\xde",Xi="\\ufe0e\\ufe0f",Ji=dl+vl+xl+wl,Ir="['’]",Al="["+Re+"]",Qi="["+Ji+"]",Ie="["+Ki+"]",Vi="\\d+",yl="["+zi+"]",ki="["+Zi+"]",ji="[^"+Re+Ji+Vi+zi+Zi+Yi+"]",Cr="\\ud83c[\\udffb-\\udfff]",ml="(?:"+Ie+"|"+Cr+")",nu="[^"+Re+"]",Sr="(?:\\ud83c[\\udde6-\\uddff]){2}",Tr="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+Yi+"]",tu="\\u200d",eu="(?:"+ki+"|"+ji+")",El="(?:"+Tt+"|"+ji+")",ru="(?:"+Ir+"(?:d|ll|m|re|s|t|ve))?",iu="(?:"+Ir+"(?:D|LL|M|RE|S|T|VE))?",uu=ml+"?",fu="["+Xi+"]?",Rl="(?:"+tu+"(?:"+[nu,Sr,Tr].join("|")+")"+fu+uu+")*",Il="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Cl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ou=fu+uu+Rl,Sl="(?:"+[yl,Sr,Tr].join("|")+")"+ou,Tl="(?:"+[nu+Ie+"?",Ie,Sr,Tr,Al].join("|")+")",Ll=RegExp(Ir,"g"),Ol=RegExp(Ie,"g"),Lr=RegExp(Cr+"(?="+Cr+")|"+Tl+ou,"g"),Wl=RegExp([Tt+"?"+ki+"+"+ru+"(?="+[Qi,Tt,"$"].join("|")+")",El+"+"+iu+"(?="+[Qi,Tt+eu,"$"].join("|")+")",Tt+"?"+eu+"+"+ru,Tt+"+"+iu,Cl,Il,Vi,Sl].join("|"),"g"),Bl=RegExp("["+tu+Re+Ki+Xi+"]"),Ml=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Pl=-1,H={};H[pr]=H[_r]=H[dr]=H[vr]=H[xr]=H[wr]=H[Ar]=H[yr]=H[mr]=!0,H[Ct]=H[we]=H[Qt]=H[Kt]=H[St]=H[zt]=H[Ae]=H[ye]=H[Fn]=H[Zt]=H[Zn]=H[Yt]=H[Pn]=H[Xt]=H[Jt]=!1;var G={};G[Ct]=G[we]=G[Qt]=G[St]=G[Kt]=G[zt]=G[pr]=G[_r]=G[dr]=G[vr]=G[xr]=G[Fn]=G[Zt]=G[Zn]=G[Yt]=G[Pn]=G[Xt]=G[me]=G[wr]=G[Ar]=G[yr]=G[mr]=!0,G[Ae]=G[ye]=G[Jt]=!1;var bl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ul={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Dl={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Nl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Gl=parseFloat,Hl=parseInt,lu=typeof cr=="object"&&cr&&cr.Object===Object&&cr,$l=typeof self=="object"&&self&&self.Object===Object&&self,tn=lu||$l||Function("return this")(),Or=I&&!I.nodeType&&I,pt=Or&&!0&&W&&!W.nodeType&&W,su=pt&&pt.exports===Or,Wr=su&&lu.process,mn=function(){try{var a=pt&&pt.require&&pt.require("util").types;return a||Wr&&Wr.binding&&Wr.binding("util")}catch{}}(),au=mn&&mn.isArrayBuffer,cu=mn&&mn.isDate,hu=mn&&mn.isMap,gu=mn&&mn.isRegExp,pu=mn&&mn.isSet,_u=mn&&mn.isTypedArray;function dn(a,g,h){switch(h.length){case 0:return a.call(g);case 1:return a.call(g,h[0]);case 2:return a.call(g,h[0],h[1]);case 3:return a.call(g,h[0],h[1],h[2])}return a.apply(g,h)}function ql(a,g,h,x){for(var E=-1,F=a==null?0:a.length;++E<F;){var Q=a[E];g(x,Q,h(Q),a)}return x}function En(a,g){for(var h=-1,x=a==null?0:a.length;++h<x&&g(a[h],h,a)!==!1;);return a}function Kl(a,g){for(var h=a==null?0:a.length;h--&&g(a[h],h,a)!==!1;);return a}function du(a,g){for(var h=-1,x=a==null?0:a.length;++h<x;)if(!g(a[h],h,a))return!1;return!0}function rt(a,g){for(var h=-1,x=a==null?0:a.length,E=0,F=[];++h<x;){var Q=a[h];g(Q,h,a)&&(F[E++]=Q)}return F}function Ce(a,g){var h=a==null?0:a.length;return!!h&&Lt(a,g,0)>-1}function Br(a,g,h){for(var x=-1,E=a==null?0:a.length;++x<E;)if(h(g,a[x]))return!0;return!1}function q(a,g){for(var h=-1,x=a==null?0:a.length,E=Array(x);++h<x;)E[h]=g(a[h],h,a);return E}function it(a,g){for(var h=-1,x=g.length,E=a.length;++h<x;)a[E+h]=g[h];return a}function Mr(a,g,h,x){var E=-1,F=a==null?0:a.length;for(x&&F&&(h=a[++E]);++E<F;)h=g(h,a[E],E,a);return h}function zl(a,g,h,x){var E=a==null?0:a.length;for(x&&E&&(h=a[--E]);E--;)h=g(h,a[E],E,a);return h}function Fr(a,g){for(var h=-1,x=a==null?0:a.length;++h<x;)if(g(a[h],h,a))return!0;return!1}var Zl=Pr("length");function Yl(a){return a.split("")}function Xl(a){return a.match(el)||[]}function vu(a,g,h){var x;return h(a,function(E,F,Q){if(g(E,F,Q))return x=F,!1}),x}function Se(a,g,h,x){for(var E=a.length,F=h+(x?1:-1);x?F--:++F<E;)if(g(a[F],F,a))return F;return-1}function Lt(a,g,h){return g===g?fs(a,g,h):Se(a,xu,h)}function Jl(a,g,h,x){for(var E=h-1,F=a.length;++E<F;)if(x(a[E],g))return E;return-1}function xu(a){return a!==a}function wu(a,g){var h=a==null?0:a.length;return h?Ur(a,g)/h:xe}function Pr(a){return function(g){return g==null?o:g[a]}}function br(a){return function(g){return a==null?o:a[g]}}function Au(a,g,h,x,E){return E(a,function(F,Q,D){h=x?(x=!1,F):g(h,F,Q,D)}),h}function Ql(a,g){var h=a.length;for(a.sort(g);h--;)a[h]=a[h].value;return a}function Ur(a,g){for(var h,x=-1,E=a.length;++x<E;){var F=g(a[x]);F!==o&&(h=h===o?F:h+F)}return h}function Dr(a,g){for(var h=-1,x=Array(a);++h<a;)x[h]=g(h);return x}function Vl(a,g){return q(g,function(h){return[h,a[h]]})}function yu(a){return a&&a.slice(0,Iu(a)+1).replace(Rr,"")}function vn(a){return function(g){return a(g)}}function Nr(a,g){return q(g,function(h){return a[h]})}function Vt(a,g){return a.has(g)}function mu(a,g){for(var h=-1,x=a.length;++h<x&&Lt(g,a[h],0)>-1;);return h}function Eu(a,g){for(var h=a.length;h--&&Lt(g,a[h],0)>-1;);return h}function kl(a,g){for(var h=a.length,x=0;h--;)a[h]===g&&++x;return x}var jl=br(bl),ns=br(Ul);function ts(a){return"\\"+Nl[a]}function es(a,g){return a==null?o:a[g]}function Ot(a){return Bl.test(a)}function rs(a){return Ml.test(a)}function is(a){for(var g,h=[];!(g=a.next()).done;)h.push(g.value);return h}function Gr(a){var g=-1,h=Array(a.size);return a.forEach(function(x,E){h[++g]=[E,x]}),h}function Ru(a,g){return function(h){return a(g(h))}}function ut(a,g){for(var h=-1,x=a.length,E=0,F=[];++h<x;){var Q=a[h];(Q===g||Q===Wn)&&(a[h]=Wn,F[E++]=h)}return F}function Te(a){var g=-1,h=Array(a.size);return a.forEach(function(x){h[++g]=x}),h}function us(a){var g=-1,h=Array(a.size);return a.forEach(function(x){h[++g]=[x,x]}),h}function fs(a,g,h){for(var x=h-1,E=a.length;++x<E;)if(a[x]===g)return x;return-1}function os(a,g,h){for(var x=h+1;x--;)if(a[x]===g)return x;return x}function Wt(a){return Ot(a)?ss(a):Zl(a)}function bn(a){return Ot(a)?as(a):Yl(a)}function Iu(a){for(var g=a.length;g--&&ko.test(a.charAt(g)););return g}var ls=br(Dl);function ss(a){for(var g=Lr.lastIndex=0;Lr.test(a);)++g;return g}function as(a){return a.match(Lr)||[]}function cs(a){return a.match(Wl)||[]}var hs=function a(g){g=g==null?tn:Bt.defaults(tn.Object(),g,Bt.pick(tn,Fl));var h=g.Array,x=g.Date,E=g.Error,F=g.Function,Q=g.Math,D=g.Object,Hr=g.RegExp,gs=g.String,Rn=g.TypeError,Le=h.prototype,ps=F.prototype,Mt=D.prototype,Oe=g["__core-js_shared__"],We=ps.toString,b=Mt.hasOwnProperty,_s=0,Cu=function(){var n=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Be=Mt.toString,ds=We.call(D),vs=tn._,xs=Hr("^"+We.call(b).replace(Er,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=su?g.Buffer:o,ft=g.Symbol,Fe=g.Uint8Array,Su=Me?Me.allocUnsafe:o,Pe=Ru(D.getPrototypeOf,D),Tu=D.create,Lu=Mt.propertyIsEnumerable,be=Le.splice,Ou=ft?ft.isConcatSpreadable:o,kt=ft?ft.iterator:o,_t=ft?ft.toStringTag:o,Ue=function(){try{var n=At(D,"defineProperty");return n({},"",{}),n}catch{}}(),ws=g.clearTimeout!==tn.clearTimeout&&g.clearTimeout,As=x&&x.now!==tn.Date.now&&x.now,ys=g.setTimeout!==tn.setTimeout&&g.setTimeout,De=Q.ceil,Ne=Q.floor,$r=D.getOwnPropertySymbols,ms=Me?Me.isBuffer:o,Wu=g.isFinite,Es=Le.join,Rs=Ru(D.keys,D),V=Q.max,un=Q.min,Is=x.now,Cs=g.parseInt,Bu=Q.random,Ss=Le.reverse,qr=At(g,"DataView"),jt=At(g,"Map"),Kr=At(g,"Promise"),Ft=At(g,"Set"),ne=At(g,"WeakMap"),te=At(D,"create"),Ge=ne&&new ne,Pt={},Ts=yt(qr),Ls=yt(jt),Os=yt(Kr),Ws=yt(Ft),Bs=yt(ne),He=ft?ft.prototype:o,ee=He?He.valueOf:o,Mu=He?He.toString:o;function u(n){if(z(n)&&!R(n)&&!(n instanceof B)){if(n instanceof In)return n;if(b.call(n,"__wrapped__"))return Pf(n)}return new In(n)}var bt=function(){function n(){}return function(t){if(!K(t))return{};if(Tu)return Tu(t);n.prototype=t;var e=new n;return n.prototype=o,e}}();function $e(){}function In(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}u.templateSettings={escape:Zo,evaluate:Yo,interpolate:$i,variable:"",imports:{_:u}},u.prototype=$e.prototype,u.prototype.constructor=u,In.prototype=bt($e.prototype),In.prototype.constructor=In;function B(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Gn,this.__views__=[]}function Ms(){var n=new B(this.__wrapped__);return n.__actions__=cn(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=cn(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=cn(this.__views__),n}function Fs(){if(this.__filtered__){var n=new B(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Ps(){var n=this.__wrapped__.value(),t=this.__dir__,e=R(n),r=t<0,i=e?n.length:0,f=Ya(0,i,this.__views__),l=f.start,s=f.end,c=s-l,p=r?s:l-1,_=this.__iteratees__,d=_.length,v=0,w=un(c,this.__takeCount__);if(!e||!r&&i==c&&w==c)return rf(n,this.__actions__);var y=[];n:for(;c--&&v<w;){p+=t;for(var S=-1,m=n[p];++S<d;){var O=_[S],M=O.iteratee,An=O.type,sn=M(m);if(An==Lo)m=sn;else if(!sn){if(An==Ui)continue n;break n}}y[v++]=m}return y}B.prototype=bt($e.prototype),B.prototype.constructor=B;function dt(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function bs(){this.__data__=te?te(null):{},this.size=0}function Us(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}function Ds(n){var t=this.__data__;if(te){var e=t[n];return e===rn?o:e}return b.call(t,n)?t[n]:o}function Ns(n){var t=this.__data__;return te?t[n]!==o:b.call(t,n)}function Gs(n,t){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=te&&t===o?rn:t,this}dt.prototype.clear=bs,dt.prototype.delete=Us,dt.prototype.get=Ds,dt.prototype.has=Ns,dt.prototype.set=Gs;function Yn(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function Hs(){this.__data__=[],this.size=0}function $s(n){var t=this.__data__,e=qe(t,n);if(e<0)return!1;var r=t.length-1;return e==r?t.pop():be.call(t,e,1),--this.size,!0}function qs(n){var t=this.__data__,e=qe(t,n);return e<0?o:t[e][1]}function Ks(n){return qe(this.__data__,n)>-1}function zs(n,t){var e=this.__data__,r=qe(e,n);return r<0?(++this.size,e.push([n,t])):e[r][1]=t,this}Yn.prototype.clear=Hs,Yn.prototype.delete=$s,Yn.prototype.get=qs,Yn.prototype.has=Ks,Yn.prototype.set=zs;function Xn(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function Zs(){this.size=0,this.__data__={hash:new dt,map:new(jt||Yn),string:new dt}}function Ys(n){var t=tr(this,n).delete(n);return this.size-=t?1:0,t}function Xs(n){return tr(this,n).get(n)}function Js(n){return tr(this,n).has(n)}function Qs(n,t){var e=tr(this,n),r=e.size;return e.set(n,t),this.size+=e.size==r?0:1,this}Xn.prototype.clear=Zs,Xn.prototype.delete=Ys,Xn.prototype.get=Xs,Xn.prototype.has=Js,Xn.prototype.set=Qs;function vt(n){var t=-1,e=n==null?0:n.length;for(this.__data__=new Xn;++t<e;)this.add(n[t])}function Vs(n){return this.__data__.set(n,rn),this}function ks(n){return this.__data__.has(n)}vt.prototype.add=vt.prototype.push=Vs,vt.prototype.has=ks;function Un(n){var t=this.__data__=new Yn(n);this.size=t.size}function js(){this.__data__=new Yn,this.size=0}function na(n){var t=this.__data__,e=t.delete(n);return this.size=t.size,e}function ta(n){return this.__data__.get(n)}function ea(n){return this.__data__.has(n)}function ra(n,t){var e=this.__data__;if(e instanceof Yn){var r=e.__data__;if(!jt||r.length<U-1)return r.push([n,t]),this.size=++e.size,this;e=this.__data__=new Xn(r)}return e.set(n,t),this.size=e.size,this}Un.prototype.clear=js,Un.prototype.delete=na,Un.prototype.get=ta,Un.prototype.has=ea,Un.prototype.set=ra;function Fu(n,t){var e=R(n),r=!e&&mt(n),i=!e&&!r&&ct(n),f=!e&&!r&&!i&&Gt(n),l=e||r||i||f,s=l?Dr(n.length,gs):[],c=s.length;for(var p in n)(t||b.call(n,p))&&!(l&&(p=="length"||i&&(p=="offset"||p=="parent")||f&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||kn(p,c)))&&s.push(p);return s}function Pu(n){var t=n.length;return t?n[ti(0,t-1)]:o}function ia(n,t){return er(cn(n),xt(t,0,n.length))}function ua(n){return er(cn(n))}function zr(n,t,e){(e!==o&&!Dn(n[t],e)||e===o&&!(t in n))&&Jn(n,t,e)}function re(n,t,e){var r=n[t];(!(b.call(n,t)&&Dn(r,e))||e===o&&!(t in n))&&Jn(n,t,e)}function qe(n,t){for(var e=n.length;e--;)if(Dn(n[e][0],t))return e;return-1}function fa(n,t,e,r){return ot(n,function(i,f,l){t(r,i,e(i),l)}),r}function bu(n,t){return n&&$n(t,j(t),n)}function oa(n,t){return n&&$n(t,gn(t),n)}function Jn(n,t,e){t=="__proto__"&&Ue?Ue(n,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[t]=e}function Zr(n,t){for(var e=-1,r=t.length,i=h(r),f=n==null;++e<r;)i[e]=f?o:Ci(n,t[e]);return i}function xt(n,t,e){return n===n&&(e!==o&&(n=n<=e?n:e),t!==o&&(n=n>=t?n:t)),n}function Cn(n,t,e,r,i,f){var l,s=t&an,c=t&_e,p=t&Kn;if(e&&(l=i?e(n,r,i,f):e(n)),l!==o)return l;if(!K(n))return n;var _=R(n);if(_){if(l=Ja(n),!s)return cn(n,l)}else{var d=fn(n),v=d==ye||d==Di;if(ct(n))return of(n,s);if(d==Zn||d==Ct||v&&!i){if(l=c||v?{}:Cf(n),!s)return c?Da(n,oa(l,n)):Ua(n,bu(l,n))}else{if(!G[d])return i?n:{};l=Qa(n,d,s)}}f||(f=new Un);var w=f.get(n);if(w)return w;f.set(n,l),to(n)?n.forEach(function(m){l.add(Cn(m,t,e,m,n,f))}):jf(n)&&n.forEach(function(m,O){l.set(O,Cn(m,t,e,O,n,f))});var y=p?c?hi:ci:c?gn:j,S=_?o:y(n);return En(S||n,function(m,O){S&&(O=m,m=n[O]),re(l,O,Cn(m,t,e,O,n,f))}),l}function la(n){var t=j(n);return function(e){return Uu(e,n,t)}}function Uu(n,t,e){var r=e.length;if(n==null)return!r;for(n=D(n);r--;){var i=e[r],f=t[i],l=n[i];if(l===o&&!(i in n)||!f(l))return!1}return!0}function Du(n,t,e){if(typeof n!="function")throw new Rn(L);return ae(function(){n.apply(o,e)},t)}function ie(n,t,e,r){var i=-1,f=Ce,l=!0,s=n.length,c=[],p=t.length;if(!s)return c;e&&(t=q(t,vn(e))),r?(f=Br,l=!1):t.length>=U&&(f=Vt,l=!1,t=new vt(t));n:for(;++i<s;){var _=n[i],d=e==null?_:e(_);if(_=r||_!==0?_:0,l&&d===d){for(var v=p;v--;)if(t[v]===d)continue n;c.push(_)}else f(t,d,r)||c.push(_)}return c}var ot=hf(Hn),Nu=hf(Xr,!0);function sa(n,t){var e=!0;return ot(n,function(r,i,f){return e=!!t(r,i,f),e}),e}function Ke(n,t,e){for(var r=-1,i=n.length;++r<i;){var f=n[r],l=t(f);if(l!=null&&(s===o?l===l&&!wn(l):e(l,s)))var s=l,c=f}return c}function aa(n,t,e,r){var i=n.length;for(e=C(e),e<0&&(e=-e>i?0:i+e),r=r===o||r>i?i:C(r),r<0&&(r+=i),r=e>r?0:ro(r);e<r;)n[e++]=t;return n}function Gu(n,t){var e=[];return ot(n,function(r,i,f){t(r,i,f)&&e.push(r)}),e}function en(n,t,e,r,i){var f=-1,l=n.length;for(e||(e=ka),i||(i=[]);++f<l;){var s=n[f];t>0&&e(s)?t>1?en(s,t-1,e,r,i):it(i,s):r||(i[i.length]=s)}return i}var Yr=gf(),Hu=gf(!0);function Hn(n,t){return n&&Yr(n,t,j)}function Xr(n,t){return n&&Hu(n,t,j)}function ze(n,t){return rt(t,function(e){return jn(n[e])})}function wt(n,t){t=st(t,n);for(var e=0,r=t.length;n!=null&&e<r;)n=n[qn(t[e++])];return e&&e==r?n:o}function $u(n,t,e){var r=t(n);return R(n)?r:it(r,e(n))}function on(n){return n==null?n===o?No:Uo:_t&&_t in D(n)?Za(n):uc(n)}function Jr(n,t){return n>t}function ca(n,t){return n!=null&&b.call(n,t)}function ha(n,t){return n!=null&&t in D(n)}function ga(n,t,e){return n>=un(t,e)&&n<V(t,e)}function Qr(n,t,e){for(var r=e?Br:Ce,i=n[0].length,f=n.length,l=f,s=h(f),c=1/0,p=[];l--;){var _=n[l];l&&t&&(_=q(_,vn(t))),c=un(_.length,c),s[l]=!e&&(t||i>=120&&_.length>=120)?new vt(l&&_):o}_=n[0];var d=-1,v=s[0];n:for(;++d<i&&p.length<c;){var w=_[d],y=t?t(w):w;if(w=e||w!==0?w:0,!(v?Vt(v,y):r(p,y,e))){for(l=f;--l;){var S=s[l];if(!(S?Vt(S,y):r(n[l],y,e)))continue n}v&&v.push(y),p.push(w)}}return p}function pa(n,t,e,r){return Hn(n,function(i,f,l){t(r,e(i),f,l)}),r}function ue(n,t,e){t=st(t,n),n=Of(n,t);var r=n==null?n:n[qn(Tn(t))];return r==null?o:dn(r,n,e)}function qu(n){return z(n)&&on(n)==Ct}function _a(n){return z(n)&&on(n)==Qt}function da(n){return z(n)&&on(n)==zt}function fe(n,t,e,r,i){return n===t?!0:n==null||t==null||!z(n)&&!z(t)?n!==n&&t!==t:va(n,t,e,r,fe,i)}function va(n,t,e,r,i,f){var l=R(n),s=R(t),c=l?we:fn(n),p=s?we:fn(t);c=c==Ct?Zn:c,p=p==Ct?Zn:p;var _=c==Zn,d=p==Zn,v=c==p;if(v&&ct(n)){if(!ct(t))return!1;l=!0,_=!1}if(v&&!_)return f||(f=new Un),l||Gt(n)?Ef(n,t,e,r,i,f):Ka(n,t,c,e,r,i,f);if(!(e&zn)){var w=_&&b.call(n,"__wrapped__"),y=d&&b.call(t,"__wrapped__");if(w||y){var S=w?n.value():n,m=y?t.value():t;return f||(f=new Un),i(S,m,e,r,f)}}return v?(f||(f=new Un),za(n,t,e,r,i,f)):!1}function xa(n){return z(n)&&fn(n)==Fn}function Vr(n,t,e,r){var i=e.length,f=i,l=!r;if(n==null)return!f;for(n=D(n);i--;){var s=e[i];if(l&&s[2]?s[1]!==n[s[0]]:!(s[0]in n))return!1}for(;++i<f;){s=e[i];var c=s[0],p=n[c],_=s[1];if(l&&s[2]){if(p===o&&!(c in n))return!1}else{var d=new Un;if(r)var v=r(p,_,c,n,t,d);if(!(v===o?fe(_,p,zn|Rt,r,d):v))return!1}}return!0}function Ku(n){if(!K(n)||nc(n))return!1;var t=jn(n)?xs:ll;return t.test(yt(n))}function wa(n){return z(n)&&on(n)==Yt}function Aa(n){return z(n)&&fn(n)==Pn}function ya(n){return z(n)&&lr(n.length)&&!!H[on(n)]}function zu(n){return typeof n=="function"?n:n==null?pn:typeof n=="object"?R(n)?Xu(n[0],n[1]):Yu(n):po(n)}function kr(n){if(!se(n))return Rs(n);var t=[];for(var e in D(n))b.call(n,e)&&e!="constructor"&&t.push(e);return t}function ma(n){if(!K(n))return ic(n);var t=se(n),e=[];for(var r in n)r=="constructor"&&(t||!b.call(n,r))||e.push(r);return e}function jr(n,t){return n<t}function Zu(n,t){var e=-1,r=hn(n)?h(n.length):[];return ot(n,function(i,f,l){r[++e]=t(i,f,l)}),r}function Yu(n){var t=pi(n);return t.length==1&&t[0][2]?Tf(t[0][0],t[0][1]):function(e){return e===n||Vr(e,n,t)}}function Xu(n,t){return di(n)&&Sf(t)?Tf(qn(n),t):function(e){var r=Ci(e,n);return r===o&&r===t?Si(e,n):fe(t,r,zn|Rt)}}function Ze(n,t,e,r,i){n!==t&&Yr(t,function(f,l){if(i||(i=new Un),K(f))Ea(n,t,l,e,Ze,r,i);else{var s=r?r(xi(n,l),f,l+"",n,t,i):o;s===o&&(s=f),zr(n,l,s)}},gn)}function Ea(n,t,e,r,i,f,l){var s=xi(n,e),c=xi(t,e),p=l.get(c);if(p){zr(n,e,p);return}var _=f?f(s,c,e+"",n,t,l):o,d=_===o;if(d){var v=R(c),w=!v&&ct(c),y=!v&&!w&&Gt(c);_=c,v||w||y?R(s)?_=s:Z(s)?_=cn(s):w?(d=!1,_=of(c,!0)):y?(d=!1,_=lf(c,!0)):_=[]:ce(c)||mt(c)?(_=s,mt(s)?_=io(s):(!K(s)||jn(s))&&(_=Cf(c))):d=!1}d&&(l.set(c,_),i(_,c,r,f,l),l.delete(c)),zr(n,e,_)}function Ju(n,t){var e=n.length;if(e)return t+=t<0?e:0,kn(t,e)?n[t]:o}function Qu(n,t,e){t.length?t=q(t,function(f){return R(f)?function(l){return wt(l,f.length===1?f[0]:f)}:f}):t=[pn];var r=-1;t=q(t,vn(A()));var i=Zu(n,function(f,l,s){var c=q(t,function(p){return p(f)});return{criteria:c,index:++r,value:f}});return Ql(i,function(f,l){return ba(f,l,e)})}function Ra(n,t){return Vu(n,t,function(e,r){return Si(n,r)})}function Vu(n,t,e){for(var r=-1,i=t.length,f={};++r<i;){var l=t[r],s=wt(n,l);e(s,l)&&oe(f,st(l,n),s)}return f}function Ia(n){return function(t){return wt(t,n)}}function ni(n,t,e,r){var i=r?Jl:Lt,f=-1,l=t.length,s=n;for(n===t&&(t=cn(t)),e&&(s=q(n,vn(e)));++f<l;)for(var c=0,p=t[f],_=e?e(p):p;(c=i(s,_,c,r))>-1;)s!==n&&be.call(s,c,1),be.call(n,c,1);return n}function ku(n,t){for(var e=n?t.length:0,r=e-1;e--;){var i=t[e];if(e==r||i!==f){var f=i;kn(i)?be.call(n,i,1):ii(n,i)}}return n}function ti(n,t){return n+Ne(Bu()*(t-n+1))}function Ca(n,t,e,r){for(var i=-1,f=V(De((t-n)/(e||1)),0),l=h(f);f--;)l[r?f:++i]=n,n+=e;return l}function ei(n,t){var e="";if(!n||t<1||t>It)return e;do t%2&&(e+=n),t=Ne(t/2),t&&(n+=n);while(t);return e}function T(n,t){return wi(Lf(n,t,pn),n+"")}function Sa(n){return Pu(Ht(n))}function Ta(n,t){var e=Ht(n);return er(e,xt(t,0,e.length))}function oe(n,t,e,r){if(!K(n))return n;t=st(t,n);for(var i=-1,f=t.length,l=f-1,s=n;s!=null&&++i<f;){var c=qn(t[i]),p=e;if(c==="__proto__"||c==="constructor"||c==="prototype")return n;if(i!=l){var _=s[c];p=r?r(_,c,s):o,p===o&&(p=K(_)?_:kn(t[i+1])?[]:{})}re(s,c,p),s=s[c]}return n}var ju=Ge?function(n,t){return Ge.set(n,t),n}:pn,La=Ue?function(n,t){return Ue(n,"toString",{configurable:!0,enumerable:!1,value:Li(t),writable:!0})}:pn;function Oa(n){return er(Ht(n))}function Sn(n,t,e){var r=-1,i=n.length;t<0&&(t=-t>i?0:i+t),e=e>i?i:e,e<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var f=h(i);++r<i;)f[r]=n[r+t];return f}function Wa(n,t){var e;return ot(n,function(r,i,f){return e=t(r,i,f),!e}),!!e}function Ye(n,t,e){var r=0,i=n==null?r:n.length;if(typeof t=="number"&&t===t&&i<=Mo){for(;r<i;){var f=r+i>>>1,l=n[f];l!==null&&!wn(l)&&(e?l<=t:l<t)?r=f+1:i=f}return i}return ri(n,t,pn,e)}function ri(n,t,e,r){var i=0,f=n==null?0:n.length;if(f===0)return 0;t=e(t);for(var l=t!==t,s=t===null,c=wn(t),p=t===o;i<f;){var _=Ne((i+f)/2),d=e(n[_]),v=d!==o,w=d===null,y=d===d,S=wn(d);if(l)var m=r||y;else p?m=y&&(r||v):s?m=y&&v&&(r||!w):c?m=y&&v&&!w&&(r||!S):w||S?m=!1:m=r?d<=t:d<t;m?i=_+1:f=_}return un(f,Bo)}function nf(n,t){for(var e=-1,r=n.length,i=0,f=[];++e<r;){var l=n[e],s=t?t(l):l;if(!e||!Dn(s,c)){var c=s;f[i++]=l===0?0:l}}return f}function tf(n){return typeof n=="number"?n:wn(n)?xe:+n}function xn(n){if(typeof n=="string")return n;if(R(n))return q(n,xn)+"";if(wn(n))return Mu?Mu.call(n):"";var t=n+"";return t=="0"&&1/n==-1/0?"-0":t}function lt(n,t,e){var r=-1,i=Ce,f=n.length,l=!0,s=[],c=s;if(e)l=!1,i=Br;else if(f>=U){var p=t?null:$a(n);if(p)return Te(p);l=!1,i=Vt,c=new vt}else c=t?[]:s;n:for(;++r<f;){var _=n[r],d=t?t(_):_;if(_=e||_!==0?_:0,l&&d===d){for(var v=c.length;v--;)if(c[v]===d)continue n;t&&c.push(d),s.push(_)}else i(c,d,e)||(c!==s&&c.push(d),s.push(_))}return s}function ii(n,t){return t=st(t,n),n=Of(n,t),n==null||delete n[qn(Tn(t))]}function ef(n,t,e,r){return oe(n,t,e(wt(n,t)),r)}function Xe(n,t,e,r){for(var i=n.length,f=r?i:-1;(r?f--:++f<i)&&t(n[f],f,n););return e?Sn(n,r?0:f,r?f+1:i):Sn(n,r?f+1:0,r?i:f)}function rf(n,t){var e=n;return e instanceof B&&(e=e.value()),Mr(t,function(r,i){return i.func.apply(i.thisArg,it([r],i.args))},e)}function ui(n,t,e){var r=n.length;if(r<2)return r?lt(n[0]):[];for(var i=-1,f=h(r);++i<r;)for(var l=n[i],s=-1;++s<r;)s!=i&&(f[i]=ie(f[i]||l,n[s],t,e));return lt(en(f,1),t,e)}function uf(n,t,e){for(var r=-1,i=n.length,f=t.length,l={};++r<i;){var s=r<f?t[r]:o;e(l,n[r],s)}return l}function fi(n){return Z(n)?n:[]}function oi(n){return typeof n=="function"?n:pn}function st(n,t){return R(n)?n:di(n,t)?[n]:Ff(P(n))}var Ba=T;function at(n,t,e){var r=n.length;return e=e===o?r:e,!t&&e>=r?n:Sn(n,t,e)}var ff=ws||function(n){return tn.clearTimeout(n)};function of(n,t){if(t)return n.slice();var e=n.length,r=Su?Su(e):new n.constructor(e);return n.copy(r),r}function li(n){var t=new n.constructor(n.byteLength);return new Fe(t).set(new Fe(n)),t}function Ma(n,t){var e=t?li(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}function Fa(n){var t=new n.constructor(n.source,qi.exec(n));return t.lastIndex=n.lastIndex,t}function Pa(n){return ee?D(ee.call(n)):{}}function lf(n,t){var e=t?li(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}function sf(n,t){if(n!==t){var e=n!==o,r=n===null,i=n===n,f=wn(n),l=t!==o,s=t===null,c=t===t,p=wn(t);if(!s&&!p&&!f&&n>t||f&&l&&c&&!s&&!p||r&&l&&c||!e&&c||!i)return 1;if(!r&&!f&&!p&&n<t||p&&e&&i&&!r&&!f||s&&e&&i||!l&&i||!c)return-1}return 0}function ba(n,t,e){for(var r=-1,i=n.criteria,f=t.criteria,l=i.length,s=e.length;++r<l;){var c=sf(i[r],f[r]);if(c){if(r>=s)return c;var p=e[r];return c*(p=="desc"?-1:1)}}return n.index-t.index}function af(n,t,e,r){for(var i=-1,f=n.length,l=e.length,s=-1,c=t.length,p=V(f-l,0),_=h(c+p),d=!r;++s<c;)_[s]=t[s];for(;++i<l;)(d||i<f)&&(_[e[i]]=n[i]);for(;p--;)_[s++]=n[i++];return _}function cf(n,t,e,r){for(var i=-1,f=n.length,l=-1,s=e.length,c=-1,p=t.length,_=V(f-s,0),d=h(_+p),v=!r;++i<_;)d[i]=n[i];for(var w=i;++c<p;)d[w+c]=t[c];for(;++l<s;)(v||i<f)&&(d[w+e[l]]=n[i++]);return d}function cn(n,t){var e=-1,r=n.length;for(t||(t=h(r));++e<r;)t[e]=n[e];return t}function $n(n,t,e,r){var i=!e;e||(e={});for(var f=-1,l=t.length;++f<l;){var s=t[f],c=r?r(e[s],n[s],s,e,n):o;c===o&&(c=n[s]),i?Jn(e,s,c):re(e,s,c)}return e}function Ua(n,t){return $n(n,_i(n),t)}function Da(n,t){return $n(n,Rf(n),t)}function Je(n,t){return function(e,r){var i=R(e)?ql:fa,f=t?t():{};return i(e,n,A(r,2),f)}}function Ut(n){return T(function(t,e){var r=-1,i=e.length,f=i>1?e[i-1]:o,l=i>2?e[2]:o;for(f=n.length>3&&typeof f=="function"?(i--,f):o,l&&ln(e[0],e[1],l)&&(f=i<3?o:f,i=1),t=D(t);++r<i;){var s=e[r];s&&n(t,s,r,f)}return t})}function hf(n,t){return function(e,r){if(e==null)return e;if(!hn(e))return n(e,r);for(var i=e.length,f=t?i:-1,l=D(e);(t?f--:++f<i)&&r(l[f],f,l)!==!1;);return e}}function gf(n){return function(t,e,r){for(var i=-1,f=D(t),l=r(t),s=l.length;s--;){var c=l[n?s:++i];if(e(f[c],c,f)===!1)break}return t}}function Na(n,t,e){var r=t&N,i=le(n);function f(){var l=this&&this!==tn&&this instanceof f?i:n;return l.apply(r?e:this,arguments)}return f}function pf(n){return function(t){t=P(t);var e=Ot(t)?bn(t):o,r=e?e[0]:t.charAt(0),i=e?at(e,1).join(""):t.slice(1);return r[n]()+i}}function Dt(n){return function(t){return Mr(ho(co(t).replace(Ll,"")),n,"")}}function le(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var e=bt(n.prototype),r=n.apply(e,t);return K(r)?r:e}}function Ga(n,t,e){var r=le(n);function i(){for(var f=arguments.length,l=h(f),s=f,c=Nt(i);s--;)l[s]=arguments[s];var p=f<3&&l[0]!==c&&l[f-1]!==c?[]:ut(l,c);if(f-=p.length,f<e)return wf(n,t,Qe,i.placeholder,o,l,p,o,o,e-f);var _=this&&this!==tn&&this instanceof i?r:n;return dn(_,this,l)}return i}function _f(n){return function(t,e,r){var i=D(t);if(!hn(t)){var f=A(e,3);t=j(t),e=function(s){return f(i[s],s,i)}}var l=n(t,e,r);return l>-1?i[f?t[l]:l]:o}}function df(n){return Vn(function(t){var e=t.length,r=e,i=In.prototype.thru;for(n&&t.reverse();r--;){var f=t[r];if(typeof f!="function")throw new Rn(L);if(i&&!l&&nr(f)=="wrapper")var l=new In([],!0)}for(r=l?r:e;++r<e;){f=t[r];var s=nr(f),c=s=="wrapper"?gi(f):o;c&&vi(c[0])&&c[1]==(_n|Bn|Mn|qt)&&!c[4].length&&c[9]==1?l=l[nr(c[0])].apply(l,c[3]):l=f.length==1&&vi(f)?l[s]():l.thru(f)}return function(){var p=arguments,_=p[0];if(l&&p.length==1&&R(_))return l.plant(_).value();for(var d=0,v=e?t[d].apply(this,p):_;++d<e;)v=t[d].call(this,v);return v}})}function Qe(n,t,e,r,i,f,l,s,c,p){var _=t&_n,d=t&N,v=t&et,w=t&(Bn|gt),y=t&gr,S=v?o:le(n);function m(){for(var O=arguments.length,M=h(O),An=O;An--;)M[An]=arguments[An];if(w)var sn=Nt(m),yn=kl(M,sn);if(r&&(M=af(M,r,i,w)),f&&(M=cf(M,f,l,w)),O-=yn,w&&O<p){var Y=ut(M,sn);return wf(n,t,Qe,m.placeholder,e,M,Y,s,c,p-O)}var Nn=d?e:this,tt=v?Nn[n]:n;return O=M.length,s?M=fc(M,s):y&&O>1&&M.reverse(),_&&c<O&&(M.length=c),this&&this!==tn&&this instanceof m&&(tt=S||le(tt)),tt.apply(Nn,M)}return m}function vf(n,t){return function(e,r){return pa(e,n,t(r),{})}}function Ve(n,t){return function(e,r){var i;if(e===o&&r===o)return t;if(e!==o&&(i=e),r!==o){if(i===o)return r;typeof e=="string"||typeof r=="string"?(e=xn(e),r=xn(r)):(e=tf(e),r=tf(r)),i=n(e,r)}return i}}function si(n){return Vn(function(t){return t=q(t,vn(A())),T(function(e){var r=this;return n(t,function(i){return dn(i,r,e)})})})}function ke(n,t){t=t===o?" ":xn(t);var e=t.length;if(e<2)return e?ei(t,n):t;var r=ei(t,De(n/Wt(t)));return Ot(t)?at(bn(r),0,n).join(""):r.slice(0,n)}function Ha(n,t,e,r){var i=t&N,f=le(n);function l(){for(var s=-1,c=arguments.length,p=-1,_=r.length,d=h(_+c),v=this&&this!==tn&&this instanceof l?f:n;++p<_;)d[p]=r[p];for(;c--;)d[p++]=arguments[++s];return dn(v,i?e:this,d)}return l}function xf(n){return function(t,e,r){return r&&typeof r!="number"&&ln(t,e,r)&&(e=r=o),t=nt(t),e===o?(e=t,t=0):e=nt(e),r=r===o?t<e?1:-1:nt(r),Ca(t,e,r,n)}}function je(n){return function(t,e){return typeof t=="string"&&typeof e=="string"||(t=Ln(t),e=Ln(e)),n(t,e)}}function wf(n,t,e,r,i,f,l,s,c,p){var _=t&Bn,d=_?l:o,v=_?o:l,w=_?f:o,y=_?o:f;t|=_?Mn:J,t&=~(_?J:Mn),t&de||(t&=-4);var S=[n,t,i,w,d,y,v,s,c,p],m=e.apply(o,S);return vi(n)&&Wf(m,S),m.placeholder=r,Bf(m,n,t)}function ai(n){var t=Q[n];return function(e,r){if(e=Ln(e),r=r==null?0:un(C(r),292),r&&Wu(e)){var i=(P(e)+"e").split("e"),f=t(i[0]+"e"+(+i[1]+r));return i=(P(f)+"e").split("e"),+(i[0]+"e"+(+i[1]-r))}return t(e)}}var $a=Ft&&1/Te(new Ft([,-0]))[1]==ve?function(n){return new Ft(n)}:Bi;function Af(n){return function(t){var e=fn(t);return e==Fn?Gr(t):e==Pn?us(t):Vl(t,n(t))}}function Qn(n,t,e,r,i,f,l,s){var c=t&et;if(!c&&typeof n!="function")throw new Rn(L);var p=r?r.length:0;if(p||(t&=-97,r=i=o),l=l===o?l:V(C(l),0),s=s===o?s:C(s),p-=i?i.length:0,t&J){var _=r,d=i;r=i=o}var v=c?o:gi(n),w=[n,t,e,r,i,_,d,f,l,s];if(v&&rc(w,v),n=w[0],t=w[1],e=w[2],r=w[3],i=w[4],s=w[9]=w[9]===o?c?0:n.length:V(w[9]-p,0),!s&&t&(Bn|gt)&&(t&=-25),!t||t==N)var y=Na(n,t,e);else t==Bn||t==gt?y=Ga(n,t,s):(t==Mn||t==(N|Mn))&&!i.length?y=Ha(n,t,e,r):y=Qe.apply(o,w);var S=v?ju:Wf;return Bf(S(y,w),n,t)}function yf(n,t,e,r){return n===o||Dn(n,Mt[e])&&!b.call(r,e)?t:n}function mf(n,t,e,r,i,f){return K(n)&&K(t)&&(f.set(t,n),Ze(n,t,o,mf,f),f.delete(t)),n}function qa(n){return ce(n)?o:n}function Ef(n,t,e,r,i,f){var l=e&zn,s=n.length,c=t.length;if(s!=c&&!(l&&c>s))return!1;var p=f.get(n),_=f.get(t);if(p&&_)return p==t&&_==n;var d=-1,v=!0,w=e&Rt?new vt:o;for(f.set(n,t),f.set(t,n);++d<s;){var y=n[d],S=t[d];if(r)var m=l?r(S,y,d,t,n,f):r(y,S,d,n,t,f);if(m!==o){if(m)continue;v=!1;break}if(w){if(!Fr(t,function(O,M){if(!Vt(w,M)&&(y===O||i(y,O,e,r,f)))return w.push(M)})){v=!1;break}}else if(!(y===S||i(y,S,e,r,f))){v=!1;break}}return f.delete(n),f.delete(t),v}function Ka(n,t,e,r,i,f,l){switch(e){case St:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case Qt:return!(n.byteLength!=t.byteLength||!f(new Fe(n),new Fe(t)));case Kt:case zt:case Zt:return Dn(+n,+t);case Ae:return n.name==t.name&&n.message==t.message;case Yt:case Xt:return n==t+"";case Fn:var s=Gr;case Pn:var c=r&zn;if(s||(s=Te),n.size!=t.size&&!c)return!1;var p=l.get(n);if(p)return p==t;r|=Rt,l.set(n,t);var _=Ef(s(n),s(t),r,i,f,l);return l.delete(n),_;case me:if(ee)return ee.call(n)==ee.call(t)}return!1}function za(n,t,e,r,i,f){var l=e&zn,s=ci(n),c=s.length,p=ci(t),_=p.length;if(c!=_&&!l)return!1;for(var d=c;d--;){var v=s[d];if(!(l?v in t:b.call(t,v)))return!1}var w=f.get(n),y=f.get(t);if(w&&y)return w==t&&y==n;var S=!0;f.set(n,t),f.set(t,n);for(var m=l;++d<c;){v=s[d];var O=n[v],M=t[v];if(r)var An=l?r(M,O,v,t,n,f):r(O,M,v,n,t,f);if(!(An===o?O===M||i(O,M,e,r,f):An)){S=!1;break}m||(m=v=="constructor")}if(S&&!m){var sn=n.constructor,yn=t.constructor;sn!=yn&&"constructor"in n&&"constructor"in t&&!(typeof sn=="function"&&sn instanceof sn&&typeof yn=="function"&&yn instanceof yn)&&(S=!1)}return f.delete(n),f.delete(t),S}function Vn(n){return wi(Lf(n,o,Df),n+"")}function ci(n){return $u(n,j,_i)}function hi(n){return $u(n,gn,Rf)}var gi=Ge?function(n){return Ge.get(n)}:Bi;function nr(n){for(var t=n.name+"",e=Pt[t],r=b.call(Pt,t)?e.length:0;r--;){var i=e[r],f=i.func;if(f==null||f==n)return i.name}return t}function Nt(n){var t=b.call(u,"placeholder")?u:n;return t.placeholder}function A(){var n=u.iteratee||Oi;return n=n===Oi?zu:n,arguments.length?n(arguments[0],arguments[1]):n}function tr(n,t){var e=n.__data__;return ja(t)?e[typeof t=="string"?"string":"hash"]:e.map}function pi(n){for(var t=j(n),e=t.length;e--;){var r=t[e],i=n[r];t[e]=[r,i,Sf(i)]}return t}function At(n,t){var e=es(n,t);return Ku(e)?e:o}function Za(n){var t=b.call(n,_t),e=n[_t];try{n[_t]=o;var r=!0}catch{}var i=Be.call(n);return r&&(t?n[_t]=e:delete n[_t]),i}var _i=$r?function(n){return n==null?[]:(n=D(n),rt($r(n),function(t){return Lu.call(n,t)}))}:Mi,Rf=$r?function(n){for(var t=[];n;)it(t,_i(n)),n=Pe(n);return t}:Mi,fn=on;(qr&&fn(new qr(new ArrayBuffer(1)))!=St||jt&&fn(new jt)!=Fn||Kr&&fn(Kr.resolve())!=Ni||Ft&&fn(new Ft)!=Pn||ne&&fn(new ne)!=Jt)&&(fn=function(n){var t=on(n),e=t==Zn?n.constructor:o,r=e?yt(e):"";if(r)switch(r){case Ts:return St;case Ls:return Fn;case Os:return Ni;case Ws:return Pn;case Bs:return Jt}return t});function Ya(n,t,e){for(var r=-1,i=e.length;++r<i;){var f=e[r],l=f.size;switch(f.type){case"drop":n+=l;break;case"dropRight":t-=l;break;case"take":t=un(t,n+l);break;case"takeRight":n=V(n,t-l);break}}return{start:n,end:t}}function Xa(n){var t=n.match(nl);return t?t[1].split(tl):[]}function If(n,t,e){t=st(t,n);for(var r=-1,i=t.length,f=!1;++r<i;){var l=qn(t[r]);if(!(f=n!=null&&e(n,l)))break;n=n[l]}return f||++r!=i?f:(i=n==null?0:n.length,!!i&&lr(i)&&kn(l,i)&&(R(n)||mt(n)))}function Ja(n){var t=n.length,e=new n.constructor(t);return t&&typeof n[0]=="string"&&b.call(n,"index")&&(e.index=n.index,e.input=n.input),e}function Cf(n){return typeof n.constructor=="function"&&!se(n)?bt(Pe(n)):{}}function Qa(n,t,e){var r=n.constructor;switch(t){case Qt:return li(n);case Kt:case zt:return new r(+n);case St:return Ma(n,e);case pr:case _r:case dr:case vr:case xr:case wr:case Ar:case yr:case mr:return lf(n,e);case Fn:return new r;case Zt:case Xt:return new r(n);case Yt:return Fa(n);case Pn:return new r;case me:return Pa(n)}}function Va(n,t){var e=t.length;if(!e)return n;var r=e-1;return t[r]=(e>1?"& ":"")+t[r],t=t.join(e>2?", ":" "),n.replace(jo,`{
+/* [wrapped with `+t+`] */
+`)}function ka(n){return R(n)||mt(n)||!!(Ou&&n&&n[Ou])}function kn(n,t){var e=typeof n;return t=t??It,!!t&&(e=="number"||e!="symbol"&&al.test(n))&&n>-1&&n%1==0&&n<t}function ln(n,t,e){if(!K(e))return!1;var r=typeof t;return(r=="number"?hn(e)&&kn(t,e.length):r=="string"&&t in e)?Dn(e[t],n):!1}function di(n,t){if(R(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||wn(n)?!0:Jo.test(n)||!Xo.test(n)||t!=null&&n in D(t)}function ja(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}function vi(n){var t=nr(n),e=u[t];if(typeof e!="function"||!(t in B.prototype))return!1;if(n===e)return!0;var r=gi(e);return!!r&&n===r[0]}function nc(n){return!!Cu&&Cu in n}var tc=Oe?jn:Fi;function se(n){var t=n&&n.constructor,e=typeof t=="function"&&t.prototype||Mt;return n===e}function Sf(n){return n===n&&!K(n)}function Tf(n,t){return function(e){return e==null?!1:e[n]===t&&(t!==o||n in D(e))}}function ec(n){var t=fr(n,function(r){return e.size===ht&&e.clear(),r}),e=t.cache;return t}function rc(n,t){var e=n[1],r=t[1],i=e|r,f=i<(N|et|_n),l=r==_n&&e==Bn||r==_n&&e==qt&&n[7].length<=t[8]||r==(_n|qt)&&t[7].length<=t[8]&&e==Bn;if(!(f||l))return n;r&N&&(n[2]=t[2],i|=e&N?0:de);var s=t[3];if(s){var c=n[3];n[3]=c?af(c,s,t[4]):s,n[4]=c?ut(n[3],Wn):t[4]}return s=t[5],s&&(c=n[5],n[5]=c?cf(c,s,t[6]):s,n[6]=c?ut(n[5],Wn):t[6]),s=t[7],s&&(n[7]=s),r&_n&&(n[8]=n[8]==null?t[8]:un(n[8],t[8])),n[9]==null&&(n[9]=t[9]),n[0]=t[0],n[1]=i,n}function ic(n){var t=[];if(n!=null)for(var e in D(n))t.push(e);return t}function uc(n){return Be.call(n)}function Lf(n,t,e){return t=V(t===o?n.length-1:t,0),function(){for(var r=arguments,i=-1,f=V(r.length-t,0),l=h(f);++i<f;)l[i]=r[t+i];i=-1;for(var s=h(t+1);++i<t;)s[i]=r[i];return s[t]=e(l),dn(n,this,s)}}function Of(n,t){return t.length<2?n:wt(n,Sn(t,0,-1))}function fc(n,t){for(var e=n.length,r=un(t.length,e),i=cn(n);r--;){var f=t[r];n[r]=kn(f,e)?i[f]:o}return n}function xi(n,t){if(!(t==="constructor"&&typeof n[t]=="function")&&t!="__proto__")return n[t]}var Wf=Mf(ju),ae=ys||function(n,t){return tn.setTimeout(n,t)},wi=Mf(La);function Bf(n,t,e){var r=t+"";return wi(n,Va(r,oc(Xa(r),e)))}function Mf(n){var t=0,e=0;return function(){var r=Is(),i=To-(r-e);if(e=r,i>0){if(++t>=So)return arguments[0]}else t=0;return n.apply(o,arguments)}}function er(n,t){var e=-1,r=n.length,i=r-1;for(t=t===o?r:t;++e<t;){var f=ti(e,i),l=n[f];n[f]=n[e],n[e]=l}return n.length=t,n}var Ff=ec(function(n){var t=[];return n.charCodeAt(0)===46&&t.push(""),n.replace(Qo,function(e,r,i,f){t.push(i?f.replace(il,"$1"):r||e)}),t});function qn(n){if(typeof n=="string"||wn(n))return n;var t=n+"";return t=="0"&&1/n==-1/0?"-0":t}function yt(n){if(n!=null){try{return We.call(n)}catch{}try{return n+""}catch{}}return""}function oc(n,t){return En(Fo,function(e){var r="_."+e[0];t&e[1]&&!Ce(n,r)&&n.push(r)}),n.sort()}function Pf(n){if(n instanceof B)return n.clone();var t=new In(n.__wrapped__,n.__chain__);return t.__actions__=cn(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}function lc(n,t,e){(e?ln(n,t,e):t===o)?t=1:t=V(C(t),0);var r=n==null?0:n.length;if(!r||t<1)return[];for(var i=0,f=0,l=h(De(r/t));i<r;)l[f++]=Sn(n,i,i+=t);return l}function sc(n){for(var t=-1,e=n==null?0:n.length,r=0,i=[];++t<e;){var f=n[t];f&&(i[r++]=f)}return i}function ac(){var n=arguments.length;if(!n)return[];for(var t=h(n-1),e=arguments[0],r=n;r--;)t[r-1]=arguments[r];return it(R(e)?cn(e):[e],en(t,1))}var cc=T(function(n,t){return Z(n)?ie(n,en(t,1,Z,!0)):[]}),hc=T(function(n,t){var e=Tn(t);return Z(e)&&(e=o),Z(n)?ie(n,en(t,1,Z,!0),A(e,2)):[]}),gc=T(function(n,t){var e=Tn(t);return Z(e)&&(e=o),Z(n)?ie(n,en(t,1,Z,!0),o,e):[]});function pc(n,t,e){var r=n==null?0:n.length;return r?(t=e||t===o?1:C(t),Sn(n,t<0?0:t,r)):[]}function _c(n,t,e){var r=n==null?0:n.length;return r?(t=e||t===o?1:C(t),t=r-t,Sn(n,0,t<0?0:t)):[]}function dc(n,t){return n&&n.length?Xe(n,A(t,3),!0,!0):[]}function vc(n,t){return n&&n.length?Xe(n,A(t,3),!0):[]}function xc(n,t,e,r){var i=n==null?0:n.length;return i?(e&&typeof e!="number"&&ln(n,t,e)&&(e=0,r=i),aa(n,t,e,r)):[]}function bf(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=e==null?0:C(e);return i<0&&(i=V(r+i,0)),Se(n,A(t,3),i)}function Uf(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=r-1;return e!==o&&(i=C(e),i=e<0?V(r+i,0):un(i,r-1)),Se(n,A(t,3),i,!0)}function Df(n){var t=n==null?0:n.length;return t?en(n,1):[]}function wc(n){var t=n==null?0:n.length;return t?en(n,ve):[]}function Ac(n,t){var e=n==null?0:n.length;return e?(t=t===o?1:C(t),en(n,t)):[]}function yc(n){for(var t=-1,e=n==null?0:n.length,r={};++t<e;){var i=n[t];r[i[0]]=i[1]}return r}function Nf(n){return n&&n.length?n[0]:o}function mc(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=e==null?0:C(e);return i<0&&(i=V(r+i,0)),Lt(n,t,i)}function Ec(n){var t=n==null?0:n.length;return t?Sn(n,0,-1):[]}var Rc=T(function(n){var t=q(n,fi);return t.length&&t[0]===n[0]?Qr(t):[]}),Ic=T(function(n){var t=Tn(n),e=q(n,fi);return t===Tn(e)?t=o:e.pop(),e.length&&e[0]===n[0]?Qr(e,A(t,2)):[]}),Cc=T(function(n){var t=Tn(n),e=q(n,fi);return t=typeof t=="function"?t:o,t&&e.pop(),e.length&&e[0]===n[0]?Qr(e,o,t):[]});function Sc(n,t){return n==null?"":Es.call(n,t)}function Tn(n){var t=n==null?0:n.length;return t?n[t-1]:o}function Tc(n,t,e){var r=n==null?0:n.length;if(!r)return-1;var i=r;return e!==o&&(i=C(e),i=i<0?V(r+i,0):un(i,r-1)),t===t?os(n,t,i):Se(n,xu,i,!0)}function Lc(n,t){return n&&n.length?Ju(n,C(t)):o}var Oc=T(Gf);function Gf(n,t){return n&&n.length&&t&&t.length?ni(n,t):n}function Wc(n,t,e){return n&&n.length&&t&&t.length?ni(n,t,A(e,2)):n}function Bc(n,t,e){return n&&n.length&&t&&t.length?ni(n,t,o,e):n}var Mc=Vn(function(n,t){var e=n==null?0:n.length,r=Zr(n,t);return ku(n,q(t,function(i){return kn(i,e)?+i:i}).sort(sf)),r});function Fc(n,t){var e=[];if(!(n&&n.length))return e;var r=-1,i=[],f=n.length;for(t=A(t,3);++r<f;){var l=n[r];t(l,r,n)&&(e.push(l),i.push(r))}return ku(n,i),e}function Ai(n){return n==null?n:Ss.call(n)}function Pc(n,t,e){var r=n==null?0:n.length;return r?(e&&typeof e!="number"&&ln(n,t,e)?(t=0,e=r):(t=t==null?0:C(t),e=e===o?r:C(e)),Sn(n,t,e)):[]}function bc(n,t){return Ye(n,t)}function Uc(n,t,e){return ri(n,t,A(e,2))}function Dc(n,t){var e=n==null?0:n.length;if(e){var r=Ye(n,t);if(r<e&&Dn(n[r],t))return r}return-1}function Nc(n,t){return Ye(n,t,!0)}function Gc(n,t,e){return ri(n,t,A(e,2),!0)}function Hc(n,t){var e=n==null?0:n.length;if(e){var r=Ye(n,t,!0)-1;if(Dn(n[r],t))return r}return-1}function $c(n){return n&&n.length?nf(n):[]}function qc(n,t){return n&&n.length?nf(n,A(t,2)):[]}function Kc(n){var t=n==null?0:n.length;return t?Sn(n,1,t):[]}function zc(n,t,e){return n&&n.length?(t=e||t===o?1:C(t),Sn(n,0,t<0?0:t)):[]}function Zc(n,t,e){var r=n==null?0:n.length;return r?(t=e||t===o?1:C(t),t=r-t,Sn(n,t<0?0:t,r)):[]}function Yc(n,t){return n&&n.length?Xe(n,A(t,3),!1,!0):[]}function Xc(n,t){return n&&n.length?Xe(n,A(t,3)):[]}var Jc=T(function(n){return lt(en(n,1,Z,!0))}),Qc=T(function(n){var t=Tn(n);return Z(t)&&(t=o),lt(en(n,1,Z,!0),A(t,2))}),Vc=T(function(n){var t=Tn(n);return t=typeof t=="function"?t:o,lt(en(n,1,Z,!0),o,t)});function kc(n){return n&&n.length?lt(n):[]}function jc(n,t){return n&&n.length?lt(n,A(t,2)):[]}function nh(n,t){return t=typeof t=="function"?t:o,n&&n.length?lt(n,o,t):[]}function yi(n){if(!(n&&n.length))return[];var t=0;return n=rt(n,function(e){if(Z(e))return t=V(e.length,t),!0}),Dr(t,function(e){return q(n,Pr(e))})}function Hf(n,t){if(!(n&&n.length))return[];var e=yi(n);return t==null?e:q(e,function(r){return dn(t,o,r)})}var th=T(function(n,t){return Z(n)?ie(n,t):[]}),eh=T(function(n){return ui(rt(n,Z))}),rh=T(function(n){var t=Tn(n);return Z(t)&&(t=o),ui(rt(n,Z),A(t,2))}),ih=T(function(n){var t=Tn(n);return t=typeof t=="function"?t:o,ui(rt(n,Z),o,t)}),uh=T(yi);function fh(n,t){return uf(n||[],t||[],re)}function oh(n,t){return uf(n||[],t||[],oe)}var lh=T(function(n){var t=n.length,e=t>1?n[t-1]:o;return e=typeof e=="function"?(n.pop(),e):o,Hf(n,e)});function $f(n){var t=u(n);return t.__chain__=!0,t}function sh(n,t){return t(n),n}function rr(n,t){return t(n)}var ah=Vn(function(n){var t=n.length,e=t?n[0]:0,r=this.__wrapped__,i=function(f){return Zr(f,n)};return t>1||this.__actions__.length||!(r instanceof B)||!kn(e)?this.thru(i):(r=r.slice(e,+e+(t?1:0)),r.__actions__.push({func:rr,args:[i],thisArg:o}),new In(r,this.__chain__).thru(function(f){return t&&!f.length&&f.push(o),f}))});function ch(){return $f(this)}function hh(){return new In(this.value(),this.__chain__)}function gh(){this.__values__===o&&(this.__values__=eo(this.value()));var n=this.__index__>=this.__values__.length,t=n?o:this.__values__[this.__index__++];return{done:n,value:t}}function ph(){return this}function _h(n){for(var t,e=this;e instanceof $e;){var r=Pf(e);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;e=e.__wrapped__}return i.__wrapped__=n,t}function dh(){var n=this.__wrapped__;if(n instanceof B){var t=n;return this.__actions__.length&&(t=new B(this)),t=t.reverse(),t.__actions__.push({func:rr,args:[Ai],thisArg:o}),new In(t,this.__chain__)}return this.thru(Ai)}function vh(){return rf(this.__wrapped__,this.__actions__)}var xh=Je(function(n,t,e){b.call(n,e)?++n[e]:Jn(n,e,1)});function wh(n,t,e){var r=R(n)?du:sa;return e&&ln(n,t,e)&&(t=o),r(n,A(t,3))}function Ah(n,t){var e=R(n)?rt:Gu;return e(n,A(t,3))}var yh=_f(bf),mh=_f(Uf);function Eh(n,t){return en(ir(n,t),1)}function Rh(n,t){return en(ir(n,t),ve)}function Ih(n,t,e){return e=e===o?1:C(e),en(ir(n,t),e)}function qf(n,t){var e=R(n)?En:ot;return e(n,A(t,3))}function Kf(n,t){var e=R(n)?Kl:Nu;return e(n,A(t,3))}var Ch=Je(function(n,t,e){b.call(n,e)?n[e].push(t):Jn(n,e,[t])});function Sh(n,t,e,r){n=hn(n)?n:Ht(n),e=e&&!r?C(e):0;var i=n.length;return e<0&&(e=V(i+e,0)),sr(n)?e<=i&&n.indexOf(t,e)>-1:!!i&&Lt(n,t,e)>-1}var Th=T(function(n,t,e){var r=-1,i=typeof t=="function",f=hn(n)?h(n.length):[];return ot(n,function(l){f[++r]=i?dn(t,l,e):ue(l,t,e)}),f}),Lh=Je(function(n,t,e){Jn(n,e,t)});function ir(n,t){var e=R(n)?q:Zu;return e(n,A(t,3))}function Oh(n,t,e,r){return n==null?[]:(R(t)||(t=t==null?[]:[t]),e=r?o:e,R(e)||(e=e==null?[]:[e]),Qu(n,t,e))}var Wh=Je(function(n,t,e){n[e?0:1].push(t)},function(){return[[],[]]});function Bh(n,t,e){var r=R(n)?Mr:Au,i=arguments.length<3;return r(n,A(t,4),e,i,ot)}function Mh(n,t,e){var r=R(n)?zl:Au,i=arguments.length<3;return r(n,A(t,4),e,i,Nu)}function Fh(n,t){var e=R(n)?rt:Gu;return e(n,or(A(t,3)))}function Ph(n){var t=R(n)?Pu:Sa;return t(n)}function bh(n,t,e){(e?ln(n,t,e):t===o)?t=1:t=C(t);var r=R(n)?ia:Ta;return r(n,t)}function Uh(n){var t=R(n)?ua:Oa;return t(n)}function Dh(n){if(n==null)return 0;if(hn(n))return sr(n)?Wt(n):n.length;var t=fn(n);return t==Fn||t==Pn?n.size:kr(n).length}function Nh(n,t,e){var r=R(n)?Fr:Wa;return e&&ln(n,t,e)&&(t=o),r(n,A(t,3))}var Gh=T(function(n,t){if(n==null)return[];var e=t.length;return e>1&&ln(n,t[0],t[1])?t=[]:e>2&&ln(t[0],t[1],t[2])&&(t=[t[0]]),Qu(n,en(t,1),[])}),ur=As||function(){return tn.Date.now()};function Hh(n,t){if(typeof t!="function")throw new Rn(L);return n=C(n),function(){if(--n<1)return t.apply(this,arguments)}}function zf(n,t,e){return t=e?o:t,t=n&&t==null?n.length:t,Qn(n,_n,o,o,o,o,t)}function Zf(n,t){var e;if(typeof t!="function")throw new Rn(L);return n=C(n),function(){return--n>0&&(e=t.apply(this,arguments)),n<=1&&(t=o),e}}var mi=T(function(n,t,e){var r=N;if(e.length){var i=ut(e,Nt(mi));r|=Mn}return Qn(n,r,t,e,i)}),Yf=T(function(n,t,e){var r=N|et;if(e.length){var i=ut(e,Nt(Yf));r|=Mn}return Qn(t,r,n,e,i)});function Xf(n,t,e){t=e?o:t;var r=Qn(n,Bn,o,o,o,o,o,t);return r.placeholder=Xf.placeholder,r}function Jf(n,t,e){t=e?o:t;var r=Qn(n,gt,o,o,o,o,o,t);return r.placeholder=Jf.placeholder,r}function Qf(n,t,e){var r,i,f,l,s,c,p=0,_=!1,d=!1,v=!0;if(typeof n!="function")throw new Rn(L);t=Ln(t)||0,K(e)&&(_=!!e.leading,d="maxWait"in e,f=d?V(Ln(e.maxWait)||0,t):f,v="trailing"in e?!!e.trailing:v);function w(Y){var Nn=r,tt=i;return r=i=o,p=Y,l=n.apply(tt,Nn),l}function y(Y){return p=Y,s=ae(O,t),_?w(Y):l}function S(Y){var Nn=Y-c,tt=Y-p,_o=t-Nn;return d?un(_o,f-tt):_o}function m(Y){var Nn=Y-c,tt=Y-p;return c===o||Nn>=t||Nn<0||d&&tt>=f}function O(){var Y=ur();if(m(Y))return M(Y);s=ae(O,S(Y))}function M(Y){return s=o,v&&r?w(Y):(r=i=o,l)}function An(){s!==o&&ff(s),p=0,r=c=i=s=o}function sn(){return s===o?l:M(ur())}function yn(){var Y=ur(),Nn=m(Y);if(r=arguments,i=this,c=Y,Nn){if(s===o)return y(c);if(d)return ff(s),s=ae(O,t),w(c)}return s===o&&(s=ae(O,t)),l}return yn.cancel=An,yn.flush=sn,yn}var $h=T(function(n,t){return Du(n,1,t)}),qh=T(function(n,t,e){return Du(n,Ln(t)||0,e)});function Kh(n){return Qn(n,gr)}function fr(n,t){if(typeof n!="function"||t!=null&&typeof t!="function")throw new Rn(L);var e=function(){var r=arguments,i=t?t.apply(this,r):r[0],f=e.cache;if(f.has(i))return f.get(i);var l=n.apply(this,r);return e.cache=f.set(i,l)||f,l};return e.cache=new(fr.Cache||Xn),e}fr.Cache=Xn;function or(n){if(typeof n!="function")throw new Rn(L);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function zh(n){return Zf(2,n)}var Zh=Ba(function(n,t){t=t.length==1&&R(t[0])?q(t[0],vn(A())):q(en(t,1),vn(A()));var e=t.length;return T(function(r){for(var i=-1,f=un(r.length,e);++i<f;)r[i]=t[i].call(this,r[i]);return dn(n,this,r)})}),Ei=T(function(n,t){var e=ut(t,Nt(Ei));return Qn(n,Mn,o,t,e)}),Vf=T(function(n,t){var e=ut(t,Nt(Vf));return Qn(n,J,o,t,e)}),Yh=Vn(function(n,t){return Qn(n,qt,o,o,o,t)});function Xh(n,t){if(typeof n!="function")throw new Rn(L);return t=t===o?t:C(t),T(n,t)}function Jh(n,t){if(typeof n!="function")throw new Rn(L);return t=t==null?0:V(C(t),0),T(function(e){var r=e[t],i=at(e,0,t);return r&&it(i,r),dn(n,this,i)})}function Qh(n,t,e){var r=!0,i=!0;if(typeof n!="function")throw new Rn(L);return K(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),Qf(n,t,{leading:r,maxWait:t,trailing:i})}function Vh(n){return zf(n,1)}function kh(n,t){return Ei(oi(t),n)}function jh(){if(!arguments.length)return[];var n=arguments[0];return R(n)?n:[n]}function ng(n){return Cn(n,Kn)}function tg(n,t){return t=typeof t=="function"?t:o,Cn(n,Kn,t)}function eg(n){return Cn(n,an|Kn)}function rg(n,t){return t=typeof t=="function"?t:o,Cn(n,an|Kn,t)}function ig(n,t){return t==null||Uu(n,t,j(t))}function Dn(n,t){return n===t||n!==n&&t!==t}var ug=je(Jr),fg=je(function(n,t){return n>=t}),mt=qu(function(){return arguments}())?qu:function(n){return z(n)&&b.call(n,"callee")&&!Lu.call(n,"callee")},R=h.isArray,og=au?vn(au):_a;function hn(n){return n!=null&&lr(n.length)&&!jn(n)}function Z(n){return z(n)&&hn(n)}function lg(n){return n===!0||n===!1||z(n)&&on(n)==Kt}var ct=ms||Fi,sg=cu?vn(cu):da;function ag(n){return z(n)&&n.nodeType===1&&!ce(n)}function cg(n){if(n==null)return!0;if(hn(n)&&(R(n)||typeof n=="string"||typeof n.splice=="function"||ct(n)||Gt(n)||mt(n)))return!n.length;var t=fn(n);if(t==Fn||t==Pn)return!n.size;if(se(n))return!kr(n).length;for(var e in n)if(b.call(n,e))return!1;return!0}function hg(n,t){return fe(n,t)}function gg(n,t,e){e=typeof e=="function"?e:o;var r=e?e(n,t):o;return r===o?fe(n,t,o,e):!!r}function Ri(n){if(!z(n))return!1;var t=on(n);return t==Ae||t==bo||typeof n.message=="string"&&typeof n.name=="string"&&!ce(n)}function pg(n){return typeof n=="number"&&Wu(n)}function jn(n){if(!K(n))return!1;var t=on(n);return t==ye||t==Di||t==Po||t==Do}function kf(n){return typeof n=="number"&&n==C(n)}function lr(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=It}function K(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}function z(n){return n!=null&&typeof n=="object"}var jf=hu?vn(hu):xa;function _g(n,t){return n===t||Vr(n,t,pi(t))}function dg(n,t,e){return e=typeof e=="function"?e:o,Vr(n,t,pi(t),e)}function vg(n){return no(n)&&n!=+n}function xg(n){if(tc(n))throw new E(k);return Ku(n)}function wg(n){return n===null}function Ag(n){return n==null}function no(n){return typeof n=="number"||z(n)&&on(n)==Zt}function ce(n){if(!z(n)||on(n)!=Zn)return!1;var t=Pe(n);if(t===null)return!0;var e=b.call(t,"constructor")&&t.constructor;return typeof e=="function"&&e instanceof e&&We.call(e)==ds}var Ii=gu?vn(gu):wa;function yg(n){return kf(n)&&n>=-9007199254740991&&n<=It}var to=pu?vn(pu):Aa;function sr(n){return typeof n=="string"||!R(n)&&z(n)&&on(n)==Xt}function wn(n){return typeof n=="symbol"||z(n)&&on(n)==me}var Gt=_u?vn(_u):ya;function mg(n){return n===o}function Eg(n){return z(n)&&fn(n)==Jt}function Rg(n){return z(n)&&on(n)==Go}var Ig=je(jr),Cg=je(function(n,t){return n<=t});function eo(n){if(!n)return[];if(hn(n))return sr(n)?bn(n):cn(n);if(kt&&n[kt])return is(n[kt]());var t=fn(n),e=t==Fn?Gr:t==Pn?Te:Ht;return e(n)}function nt(n){if(!n)return n===0?n:0;if(n=Ln(n),n===ve||n===-1/0){var t=n<0?-1:1;return t*Wo}return n===n?n:0}function C(n){var t=nt(n),e=t%1;return t===t?e?t-e:t:0}function ro(n){return n?xt(C(n),0,Gn):0}function Ln(n){if(typeof n=="number")return n;if(wn(n))return xe;if(K(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=K(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=yu(n);var e=ol.test(n);return e||sl.test(n)?Hl(n.slice(2),e?2:8):fl.test(n)?xe:+n}function io(n){return $n(n,gn(n))}function Sg(n){return n?xt(C(n),-9007199254740991,It):n===0?n:0}function P(n){return n==null?"":xn(n)}var Tg=Ut(function(n,t){if(se(t)||hn(t)){$n(t,j(t),n);return}for(var e in t)b.call(t,e)&&re(n,e,t[e])}),uo=Ut(function(n,t){$n(t,gn(t),n)}),ar=Ut(function(n,t,e,r){$n(t,gn(t),n,r)}),Lg=Ut(function(n,t,e,r){$n(t,j(t),n,r)}),Og=Vn(Zr);function Wg(n,t){var e=bt(n);return t==null?e:bu(e,t)}var Bg=T(function(n,t){n=D(n);var e=-1,r=t.length,i=r>2?t[2]:o;for(i&&ln(t[0],t[1],i)&&(r=1);++e<r;)for(var f=t[e],l=gn(f),s=-1,c=l.length;++s<c;){var p=l[s],_=n[p];(_===o||Dn(_,Mt[p])&&!b.call(n,p))&&(n[p]=f[p])}return n}),Mg=T(function(n){return n.push(o,mf),dn(fo,o,n)});function Fg(n,t){return vu(n,A(t,3),Hn)}function Pg(n,t){return vu(n,A(t,3),Xr)}function bg(n,t){return n==null?n:Yr(n,A(t,3),gn)}function Ug(n,t){return n==null?n:Hu(n,A(t,3),gn)}function Dg(n,t){return n&&Hn(n,A(t,3))}function Ng(n,t){return n&&Xr(n,A(t,3))}function Gg(n){return n==null?[]:ze(n,j(n))}function Hg(n){return n==null?[]:ze(n,gn(n))}function Ci(n,t,e){var r=n==null?o:wt(n,t);return r===o?e:r}function $g(n,t){return n!=null&&If(n,t,ca)}function Si(n,t){return n!=null&&If(n,t,ha)}var qg=vf(function(n,t,e){t!=null&&typeof t.toString!="function"&&(t=Be.call(t)),n[t]=e},Li(pn)),Kg=vf(function(n,t,e){t!=null&&typeof t.toString!="function"&&(t=Be.call(t)),b.call(n,t)?n[t].push(e):n[t]=[e]},A),zg=T(ue);function j(n){return hn(n)?Fu(n):kr(n)}function gn(n){return hn(n)?Fu(n,!0):ma(n)}function Zg(n,t){var e={};return t=A(t,3),Hn(n,function(r,i,f){Jn(e,t(r,i,f),r)}),e}function Yg(n,t){var e={};return t=A(t,3),Hn(n,function(r,i,f){Jn(e,i,t(r,i,f))}),e}var Xg=Ut(function(n,t,e){Ze(n,t,e)}),fo=Ut(function(n,t,e,r){Ze(n,t,e,r)}),Jg=Vn(function(n,t){var e={};if(n==null)return e;var r=!1;t=q(t,function(f){return f=st(f,n),r||(r=f.length>1),f}),$n(n,hi(n),e),r&&(e=Cn(e,an|_e|Kn,qa));for(var i=t.length;i--;)ii(e,t[i]);return e});function Qg(n,t){return oo(n,or(A(t)))}var Vg=Vn(function(n,t){return n==null?{}:Ra(n,t)});function oo(n,t){if(n==null)return{};var e=q(hi(n),function(r){return[r]});return t=A(t),Vu(n,e,function(r,i){return t(r,i[0])})}function kg(n,t,e){t=st(t,n);var r=-1,i=t.length;for(i||(i=1,n=o);++r<i;){var f=n==null?o:n[qn(t[r])];f===o&&(r=i,f=e),n=jn(f)?f.call(n):f}return n}function jg(n,t,e){return n==null?n:oe(n,t,e)}function np(n,t,e,r){return r=typeof r=="function"?r:o,n==null?n:oe(n,t,e,r)}var lo=Af(j),so=Af(gn);function tp(n,t,e){var r=R(n),i=r||ct(n)||Gt(n);if(t=A(t,4),e==null){var f=n&&n.constructor;i?e=r?new f:[]:K(n)?e=jn(f)?bt(Pe(n)):{}:e={}}return(i?En:Hn)(n,function(l,s,c){return t(e,l,s,c)}),e}function ep(n,t){return n==null?!0:ii(n,t)}function rp(n,t,e){return n==null?n:ef(n,t,oi(e))}function ip(n,t,e,r){return r=typeof r=="function"?r:o,n==null?n:ef(n,t,oi(e),r)}function Ht(n){return n==null?[]:Nr(n,j(n))}function up(n){return n==null?[]:Nr(n,gn(n))}function fp(n,t,e){return e===o&&(e=t,t=o),e!==o&&(e=Ln(e),e=e===e?e:0),t!==o&&(t=Ln(t),t=t===t?t:0),xt(Ln(n),t,e)}function op(n,t,e){return t=nt(t),e===o?(e=t,t=0):e=nt(e),n=Ln(n),ga(n,t,e)}function lp(n,t,e){if(e&&typeof e!="boolean"&&ln(n,t,e)&&(t=e=o),e===o&&(typeof t=="boolean"?(e=t,t=o):typeof n=="boolean"&&(e=n,n=o)),n===o&&t===o?(n=0,t=1):(n=nt(n),t===o?(t=n,n=0):t=nt(t)),n>t){var r=n;n=t,t=r}if(e||n%1||t%1){var i=Bu();return un(n+i*(t-n+Gl("1e-"+((i+"").length-1))),t)}return ti(n,t)}var sp=Dt(function(n,t,e){return t=t.toLowerCase(),n+(e?ao(t):t)});function ao(n){return Ti(P(n).toLowerCase())}function co(n){return n=P(n),n&&n.replace(cl,jl).replace(Ol,"")}function ap(n,t,e){n=P(n),t=xn(t);var r=n.length;e=e===o?r:xt(C(e),0,r);var i=e;return e-=t.length,e>=0&&n.slice(e,i)==t}function cp(n){return n=P(n),n&&zo.test(n)?n.replace(Hi,ns):n}function hp(n){return n=P(n),n&&Vo.test(n)?n.replace(Er,"\\$&"):n}var gp=Dt(function(n,t,e){return n+(e?"-":"")+t.toLowerCase()}),pp=Dt(function(n,t,e){return n+(e?" ":"")+t.toLowerCase()}),_p=pf("toLowerCase");function dp(n,t,e){n=P(n),t=C(t);var r=t?Wt(n):0;if(!t||r>=t)return n;var i=(t-r)/2;return ke(Ne(i),e)+n+ke(De(i),e)}function vp(n,t,e){n=P(n),t=C(t);var r=t?Wt(n):0;return t&&r<t?n+ke(t-r,e):n}function xp(n,t,e){n=P(n),t=C(t);var r=t?Wt(n):0;return t&&r<t?ke(t-r,e)+n:n}function wp(n,t,e){return e||t==null?t=0:t&&(t=+t),Cs(P(n).replace(Rr,""),t||0)}function Ap(n,t,e){return(e?ln(n,t,e):t===o)?t=1:t=C(t),ei(P(n),t)}function yp(){var n=arguments,t=P(n[0]);return n.length<3?t:t.replace(n[1],n[2])}var mp=Dt(function(n,t,e){return n+(e?"_":"")+t.toLowerCase()});function Ep(n,t,e){return e&&typeof e!="number"&&ln(n,t,e)&&(t=e=o),e=e===o?Gn:e>>>0,e?(n=P(n),n&&(typeof t=="string"||t!=null&&!Ii(t))&&(t=xn(t),!t&&Ot(n))?at(bn(n),0,e):n.split(t,e)):[]}var Rp=Dt(function(n,t,e){return n+(e?" ":"")+Ti(t)});function Ip(n,t,e){return n=P(n),e=e==null?0:xt(C(e),0,n.length),t=xn(t),n.slice(e,e+t.length)==t}function Cp(n,t,e){var r=u.templateSettings;e&&ln(n,t,e)&&(t=o),n=P(n),t=ar({},t,r,yf);var i=ar({},t.imports,r.imports,yf),f=j(i),l=Nr(i,f),s,c,p=0,_=t.interpolate||Ee,d="__p += '",v=Hr((t.escape||Ee).source+"|"+_.source+"|"+(_===$i?ul:Ee).source+"|"+(t.evaluate||Ee).source+"|$","g"),w="//# sourceURL="+(b.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Pl+"]")+`
+`;n.replace(v,function(m,O,M,An,sn,yn){return M||(M=An),d+=n.slice(p,yn).replace(hl,ts),O&&(s=!0,d+=`' +
+__e(`+O+`) +
+'`),sn&&(c=!0,d+=`';
+`+sn+`;
+__p += '`),M&&(d+=`' +
+((__t = (`+M+`)) == null ? '' : __t) +
+'`),p=yn+m.length,m}),d+=`';
+`;var y=b.call(t,"variable")&&t.variable;if(!y)d=`with (obj) {
+`+d+`
+}
+`;else if(rl.test(y))throw new E(nn);d=(c?d.replace(Ho,""):d).replace($o,"$1").replace(qo,"$1;"),d="function("+(y||"obj")+`) {
+`+(y?"":`obj || (obj = {});
+`)+"var __t, __p = ''"+(s?", __e = _.escape":"")+(c?`, __j = Array.prototype.join;
+function print() { __p += __j.call(arguments, '') }
+`:`;
+`)+d+`return __p
+}`;var S=go(function(){return F(f,w+"return "+d).apply(o,l)});if(S.source=d,Ri(S))throw S;return S}function Sp(n){return P(n).toLowerCase()}function Tp(n){return P(n).toUpperCase()}function Lp(n,t,e){if(n=P(n),n&&(e||t===o))return yu(n);if(!n||!(t=xn(t)))return n;var r=bn(n),i=bn(t),f=mu(r,i),l=Eu(r,i)+1;return at(r,f,l).join("")}function Op(n,t,e){if(n=P(n),n&&(e||t===o))return n.slice(0,Iu(n)+1);if(!n||!(t=xn(t)))return n;var r=bn(n),i=Eu(r,bn(t))+1;return at(r,0,i).join("")}function Wp(n,t,e){if(n=P(n),n&&(e||t===o))return n.replace(Rr,"");if(!n||!(t=xn(t)))return n;var r=bn(n),i=mu(r,bn(t));return at(r,i).join("")}function Bp(n,t){var e=Io,r=Co;if(K(t)){var i="separator"in t?t.separator:i;e="length"in t?C(t.length):e,r="omission"in t?xn(t.omission):r}n=P(n);var f=n.length;if(Ot(n)){var l=bn(n);f=l.length}if(e>=f)return n;var s=e-Wt(r);if(s<1)return r;var c=l?at(l,0,s).join(""):n.slice(0,s);if(i===o)return c+r;if(l&&(s+=c.length-s),Ii(i)){if(n.slice(s).search(i)){var p,_=c;for(i.global||(i=Hr(i.source,P(qi.exec(i))+"g")),i.lastIndex=0;p=i.exec(_);)var d=p.index;c=c.slice(0,d===o?s:d)}}else if(n.indexOf(xn(i),s)!=s){var v=c.lastIndexOf(i);v>-1&&(c=c.slice(0,v))}return c+r}function Mp(n){return n=P(n),n&&Ko.test(n)?n.replace(Gi,ls):n}var Fp=Dt(function(n,t,e){return n+(e?" ":"")+t.toUpperCase()}),Ti=pf("toUpperCase");function ho(n,t,e){return n=P(n),t=e?o:t,t===o?rs(n)?cs(n):Xl(n):n.match(t)||[]}var go=T(function(n,t){try{return dn(n,o,t)}catch(e){return Ri(e)?e:new E(e)}}),Pp=Vn(function(n,t){return En(t,function(e){e=qn(e),Jn(n,e,mi(n[e],n))}),n});function bp(n){var t=n==null?0:n.length,e=A();return n=t?q(n,function(r){if(typeof r[1]!="function")throw new Rn(L);return[e(r[0]),r[1]]}):[],T(function(r){for(var i=-1;++i<t;){var f=n[i];if(dn(f[0],this,r))return dn(f[1],this,r)}})}function Up(n){return la(Cn(n,an))}function Li(n){return function(){return n}}function Dp(n,t){return n==null||n!==n?t:n}var Np=df(),Gp=df(!0);function pn(n){return n}function Oi(n){return zu(typeof n=="function"?n:Cn(n,an))}function Hp(n){return Yu(Cn(n,an))}function $p(n,t){return Xu(n,Cn(t,an))}var qp=T(function(n,t){return function(e){return ue(e,n,t)}}),Kp=T(function(n,t){return function(e){return ue(n,e,t)}});function Wi(n,t,e){var r=j(t),i=ze(t,r);e==null&&!(K(t)&&(i.length||!r.length))&&(e=t,t=n,n=this,i=ze(t,j(t)));var f=!(K(e)&&"chain"in e)||!!e.chain,l=jn(n);return En(i,function(s){var c=t[s];n[s]=c,l&&(n.prototype[s]=function(){var p=this.__chain__;if(f||p){var _=n(this.__wrapped__),d=_.__actions__=cn(this.__actions__);return d.push({func:c,args:arguments,thisArg:n}),_.__chain__=p,_}return c.apply(n,it([this.value()],arguments))})}),n}function zp(){return tn._===this&&(tn._=vs),this}function Bi(){}function Zp(n){return n=C(n),T(function(t){return Ju(t,n)})}var Yp=si(q),Xp=si(du),Jp=si(Fr);function po(n){return di(n)?Pr(qn(n)):Ia(n)}function Qp(n){return function(t){return n==null?o:wt(n,t)}}var Vp=xf(),kp=xf(!0);function Mi(){return[]}function Fi(){return!1}function jp(){return{}}function n_(){return""}function t_(){return!0}function e_(n,t){if(n=C(n),n<1||n>It)return[];var e=Gn,r=un(n,Gn);t=A(t),n-=Gn;for(var i=Dr(r,t);++e<n;)t(e);return i}function r_(n){return R(n)?q(n,qn):wn(n)?[n]:cn(Ff(P(n)))}function i_(n){var t=++_s;return P(n)+t}var u_=Ve(function(n,t){return n+t},0),f_=ai("ceil"),o_=Ve(function(n,t){return n/t},1),l_=ai("floor");function s_(n){return n&&n.length?Ke(n,pn,Jr):o}function a_(n,t){return n&&n.length?Ke(n,A(t,2),Jr):o}function c_(n){return wu(n,pn)}function h_(n,t){return wu(n,A(t,2))}function g_(n){return n&&n.length?Ke(n,pn,jr):o}function p_(n,t){return n&&n.length?Ke(n,A(t,2),jr):o}var __=Ve(function(n,t){return n*t},1),d_=ai("round"),v_=Ve(function(n,t){return n-t},0);function x_(n){return n&&n.length?Ur(n,pn):0}function w_(n,t){return n&&n.length?Ur(n,A(t,2)):0}return u.after=Hh,u.ary=zf,u.assign=Tg,u.assignIn=uo,u.assignInWith=ar,u.assignWith=Lg,u.at=Og,u.before=Zf,u.bind=mi,u.bindAll=Pp,u.bindKey=Yf,u.castArray=jh,u.chain=$f,u.chunk=lc,u.compact=sc,u.concat=ac,u.cond=bp,u.conforms=Up,u.constant=Li,u.countBy=xh,u.create=Wg,u.curry=Xf,u.curryRight=Jf,u.debounce=Qf,u.defaults=Bg,u.defaultsDeep=Mg,u.defer=$h,u.delay=qh,u.difference=cc,u.differenceBy=hc,u.differenceWith=gc,u.drop=pc,u.dropRight=_c,u.dropRightWhile=dc,u.dropWhile=vc,u.fill=xc,u.filter=Ah,u.flatMap=Eh,u.flatMapDeep=Rh,u.flatMapDepth=Ih,u.flatten=Df,u.flattenDeep=wc,u.flattenDepth=Ac,u.flip=Kh,u.flow=Np,u.flowRight=Gp,u.fromPairs=yc,u.functions=Gg,u.functionsIn=Hg,u.groupBy=Ch,u.initial=Ec,u.intersection=Rc,u.intersectionBy=Ic,u.intersectionWith=Cc,u.invert=qg,u.invertBy=Kg,u.invokeMap=Th,u.iteratee=Oi,u.keyBy=Lh,u.keys=j,u.keysIn=gn,u.map=ir,u.mapKeys=Zg,u.mapValues=Yg,u.matches=Hp,u.matchesProperty=$p,u.memoize=fr,u.merge=Xg,u.mergeWith=fo,u.method=qp,u.methodOf=Kp,u.mixin=Wi,u.negate=or,u.nthArg=Zp,u.omit=Jg,u.omitBy=Qg,u.once=zh,u.orderBy=Oh,u.over=Yp,u.overArgs=Zh,u.overEvery=Xp,u.overSome=Jp,u.partial=Ei,u.partialRight=Vf,u.partition=Wh,u.pick=Vg,u.pickBy=oo,u.property=po,u.propertyOf=Qp,u.pull=Oc,u.pullAll=Gf,u.pullAllBy=Wc,u.pullAllWith=Bc,u.pullAt=Mc,u.range=Vp,u.rangeRight=kp,u.rearg=Yh,u.reject=Fh,u.remove=Fc,u.rest=Xh,u.reverse=Ai,u.sampleSize=bh,u.set=jg,u.setWith=np,u.shuffle=Uh,u.slice=Pc,u.sortBy=Gh,u.sortedUniq=$c,u.sortedUniqBy=qc,u.split=Ep,u.spread=Jh,u.tail=Kc,u.take=zc,u.takeRight=Zc,u.takeRightWhile=Yc,u.takeWhile=Xc,u.tap=sh,u.throttle=Qh,u.thru=rr,u.toArray=eo,u.toPairs=lo,u.toPairsIn=so,u.toPath=r_,u.toPlainObject=io,u.transform=tp,u.unary=Vh,u.union=Jc,u.unionBy=Qc,u.unionWith=Vc,u.uniq=kc,u.uniqBy=jc,u.uniqWith=nh,u.unset=ep,u.unzip=yi,u.unzipWith=Hf,u.update=rp,u.updateWith=ip,u.values=Ht,u.valuesIn=up,u.without=th,u.words=ho,u.wrap=kh,u.xor=eh,u.xorBy=rh,u.xorWith=ih,u.zip=uh,u.zipObject=fh,u.zipObjectDeep=oh,u.zipWith=lh,u.entries=lo,u.entriesIn=so,u.extend=uo,u.extendWith=ar,Wi(u,u),u.add=u_,u.attempt=go,u.camelCase=sp,u.capitalize=ao,u.ceil=f_,u.clamp=fp,u.clone=ng,u.cloneDeep=eg,u.cloneDeepWith=rg,u.cloneWith=tg,u.conformsTo=ig,u.deburr=co,u.defaultTo=Dp,u.divide=o_,u.endsWith=ap,u.eq=Dn,u.escape=cp,u.escapeRegExp=hp,u.every=wh,u.find=yh,u.findIndex=bf,u.findKey=Fg,u.findLast=mh,u.findLastIndex=Uf,u.findLastKey=Pg,u.floor=l_,u.forEach=qf,u.forEachRight=Kf,u.forIn=bg,u.forInRight=Ug,u.forOwn=Dg,u.forOwnRight=Ng,u.get=Ci,u.gt=ug,u.gte=fg,u.has=$g,u.hasIn=Si,u.head=Nf,u.identity=pn,u.includes=Sh,u.indexOf=mc,u.inRange=op,u.invoke=zg,u.isArguments=mt,u.isArray=R,u.isArrayBuffer=og,u.isArrayLike=hn,u.isArrayLikeObject=Z,u.isBoolean=lg,u.isBuffer=ct,u.isDate=sg,u.isElement=ag,u.isEmpty=cg,u.isEqual=hg,u.isEqualWith=gg,u.isError=Ri,u.isFinite=pg,u.isFunction=jn,u.isInteger=kf,u.isLength=lr,u.isMap=jf,u.isMatch=_g,u.isMatchWith=dg,u.isNaN=vg,u.isNative=xg,u.isNil=Ag,u.isNull=wg,u.isNumber=no,u.isObject=K,u.isObjectLike=z,u.isPlainObject=ce,u.isRegExp=Ii,u.isSafeInteger=yg,u.isSet=to,u.isString=sr,u.isSymbol=wn,u.isTypedArray=Gt,u.isUndefined=mg,u.isWeakMap=Eg,u.isWeakSet=Rg,u.join=Sc,u.kebabCase=gp,u.last=Tn,u.lastIndexOf=Tc,u.lowerCase=pp,u.lowerFirst=_p,u.lt=Ig,u.lte=Cg,u.max=s_,u.maxBy=a_,u.mean=c_,u.meanBy=h_,u.min=g_,u.minBy=p_,u.stubArray=Mi,u.stubFalse=Fi,u.stubObject=jp,u.stubString=n_,u.stubTrue=t_,u.multiply=__,u.nth=Lc,u.noConflict=zp,u.noop=Bi,u.now=ur,u.pad=dp,u.padEnd=vp,u.padStart=xp,u.parseInt=wp,u.random=lp,u.reduce=Bh,u.reduceRight=Mh,u.repeat=Ap,u.replace=yp,u.result=kg,u.round=d_,u.runInContext=a,u.sample=Ph,u.size=Dh,u.snakeCase=mp,u.some=Nh,u.sortedIndex=bc,u.sortedIndexBy=Uc,u.sortedIndexOf=Dc,u.sortedLastIndex=Nc,u.sortedLastIndexBy=Gc,u.sortedLastIndexOf=Hc,u.startCase=Rp,u.startsWith=Ip,u.subtract=v_,u.sum=x_,u.sumBy=w_,u.template=Cp,u.times=e_,u.toFinite=nt,u.toInteger=C,u.toLength=ro,u.toLower=Sp,u.toNumber=Ln,u.toSafeInteger=Sg,u.toString=P,u.toUpper=Tp,u.trim=Lp,u.trimEnd=Op,u.trimStart=Wp,u.truncate=Bp,u.unescape=Mp,u.uniqueId=i_,u.upperCase=Fp,u.upperFirst=Ti,u.each=qf,u.eachRight=Kf,u.first=Nf,Wi(u,function(){var n={};return Hn(u,function(t,e){b.call(u.prototype,e)||(n[e]=t)}),n}(),{chain:!1}),u.VERSION=$,En(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){u[n].placeholder=u}),En(["drop","take"],function(n,t){B.prototype[n]=function(e){e=e===o?1:V(C(e),0);var r=this.__filtered__&&!t?new B(this):this.clone();return r.__filtered__?r.__takeCount__=un(e,r.__takeCount__):r.__views__.push({size:un(e,Gn),type:n+(r.__dir__<0?"Right":"")}),r},B.prototype[n+"Right"]=function(e){return this.reverse()[n](e).reverse()}}),En(["filter","map","takeWhile"],function(n,t){var e=t+1,r=e==Ui||e==Oo;B.prototype[n]=function(i){var f=this.clone();return f.__iteratees__.push({iteratee:A(i,3),type:e}),f.__filtered__=f.__filtered__||r,f}}),En(["head","last"],function(n,t){var e="take"+(t?"Right":"");B.prototype[n]=function(){return this[e](1).value()[0]}}),En(["initial","tail"],function(n,t){var e="drop"+(t?"":"Right");B.prototype[n]=function(){return this.__filtered__?new B(this):this[e](1)}}),B.prototype.compact=function(){return this.filter(pn)},B.prototype.find=function(n){return this.filter(n).head()},B.prototype.findLast=function(n){return this.reverse().find(n)},B.prototype.invokeMap=T(function(n,t){return typeof n=="function"?new B(this):this.map(function(e){return ue(e,n,t)})}),B.prototype.reject=function(n){return this.filter(or(A(n)))},B.prototype.slice=function(n,t){n=C(n);var e=this;return e.__filtered__&&(n>0||t<0)?new B(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),t!==o&&(t=C(t),e=t<0?e.dropRight(-t):e.take(t-n)),e)},B.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},B.prototype.toArray=function(){return this.take(Gn)},Hn(B.prototype,function(n,t){var e=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=u[r?"take"+(t=="last"?"Right":""):t],f=r||/^find/.test(t);i&&(u.prototype[t]=function(){var l=this.__wrapped__,s=r?[1]:arguments,c=l instanceof B,p=s[0],_=c||R(l),d=function(O){var M=i.apply(u,it([O],s));return r&&v?M[0]:M};_&&e&&typeof p=="function"&&p.length!=1&&(c=_=!1);var v=this.__chain__,w=!!this.__actions__.length,y=f&&!v,S=c&&!w;if(!f&&_){l=S?l:new B(this);var m=n.apply(l,s);return m.__actions__.push({func:rr,args:[d],thisArg:o}),new In(m,v)}return y&&S?n.apply(this,s):(m=this.thru(d),y?r?m.value()[0]:m.value():m)})}),En(["pop","push","shift","sort","splice","unshift"],function(n){var t=Le[n],e=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);u.prototype[n]=function(){var i=arguments;if(r&&!this.__chain__){var f=this.value();return t.apply(R(f)?f:[],i)}return this[e](function(l){return t.apply(R(l)?l:[],i)})}}),Hn(B.prototype,function(n,t){var e=u[t];if(e){var r=e.name+"";b.call(Pt,r)||(Pt[r]=[]),Pt[r].push({name:t,func:e})}}),Pt[Qe(o,et).name]=[{name:"wrapper",func:o}],B.prototype.clone=Ms,B.prototype.reverse=Fs,B.prototype.value=Ps,u.prototype.at=ah,u.prototype.chain=ch,u.prototype.commit=hh,u.prototype.next=gh,u.prototype.plant=_h,u.prototype.reverse=dh,u.prototype.toJSON=u.prototype.valueOf=u.prototype.value=vh,u.prototype.first=u.prototype.head,kt&&(u.prototype[kt]=ph),u},Bt=hs();pt?((pt.exports=Bt)._=Bt,Or._=Bt):tn._=Bt}).call(F_)}(ge,ge.exports)),ge.exports}var N_=P_();export{D_ as A,N_ as l};
diff --git a/compendium_v2/static/main-BIBsTO5W.js b/compendium_v2/static/main-BIBsTO5W.js
new file mode 100644
index 0000000000000000000000000000000000000000..3c7e2fa7dfadb7845b6e4d7acdcde7d7d9505cff
--- /dev/null
+++ b/compendium_v2/static/main-BIBsTO5W.js
@@ -0,0 +1,82 @@
+var gp=Object.defineProperty;var pp=(l,u,c)=>u in l?gp(l,u,{enumerable:!0,configurable:!0,writable:!0,value:c}):l[u]=c;var vm=(l,u,c)=>pp(l,typeof u!="symbol"?u+"":u,c);(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))f(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const h of s.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&f(h)}).observe(document,{childList:!0,subtree:!0});function c(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function f(o){if(o.ep)return;o.ep=!0;const s=c(o);fetch(o.href,s)}})();var Yb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wu(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Vf={exports:{}},Xu={};/**
+ * @license React
+ * react-jsx-runtime.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var gm;function Ep(){if(gm)return Xu;gm=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function c(f,o,s){var h=null;if(s!==void 0&&(h=""+s),o.key!==void 0&&(h=""+o.key),"key"in o){s={};for(var y in o)y!=="key"&&(s[y]=o[y])}else s=o;return o=s.ref,{$$typeof:l,type:f,key:h,ref:o!==void 0?o:null,props:s}}return Xu.Fragment=u,Xu.jsx=c,Xu.jsxs=c,Xu}var pm;function bp(){return pm||(pm=1,Vf.exports=Ep()),Vf.exports}var j=bp(),Qf={exports:{}},Re={};/**
+ * @license React
+ * react.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var Em;function Sp(){if(Em)return Re;Em=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),M=Symbol.iterator;function S(R){return R===null||typeof R!="object"?null:(R=M&&R[M]||R["@@iterator"],typeof R=="function"?R:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,q={};function V(R,G,te){this.props=R,this.context=G,this.refs=q,this.updater=te||D}V.prototype.isReactComponent={},V.prototype.setState=function(R,G){if(typeof R!="object"&&typeof R!="function"&&R!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,R,G,"setState")},V.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function U(){}U.prototype=V.prototype;function Z(R,G,te){this.props=R,this.context=G,this.refs=q,this.updater=te||D}var K=Z.prototype=new U;K.constructor=Z,N(K,V.prototype),K.isPureReactComponent=!0;var le=Array.isArray,x={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function he(R,G,te,I,J,ve){return te=ve.ref,{$$typeof:l,type:R,key:G,ref:te!==void 0?te:null,props:ve}}function oe(R,G){return he(R.type,G,void 0,void 0,void 0,R.props)}function $(R){return typeof R=="object"&&R!==null&&R.$$typeof===l}function ie(R){var G={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(te){return G[te]})}var He=/\/+/g;function ut(R,G){return typeof R=="object"&&R!==null&&R.key!=null?ie(""+R.key):G.toString(36)}function Je(){}function dt(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(Je,Je):(R.status="pending",R.then(function(G){R.status==="pending"&&(R.status="fulfilled",R.value=G)},function(G){R.status==="pending"&&(R.status="rejected",R.reason=G)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function Me(R,G,te,I,J){var ve=typeof R;(ve==="undefined"||ve==="boolean")&&(R=null);var pe=!1;if(R===null)pe=!0;else switch(ve){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(R.$$typeof){case l:case u:pe=!0;break;case b:return pe=R._init,Me(pe(R._payload),G,te,I,J)}}if(pe)return J=J(R),pe=I===""?"."+ut(R,0):I,le(J)?(te="",pe!=null&&(te=pe.replace(He,"$&/")+"/"),Me(J,G,te,"",function(Se){return Se})):J!=null&&($(J)&&(J=oe(J,te+(J.key==null||R&&R.key===J.key?"":(""+J.key).replace(He,"$&/")+"/")+pe)),G.push(J)),1;pe=0;var Ie=I===""?".":I+":";if(le(R))for(var _e=0;_e<R.length;_e++)I=R[_e],ve=Ie+ut(I,_e),pe+=Me(I,G,te,ve,J);else if(_e=S(R),typeof _e=="function")for(R=_e.call(R),_e=0;!(I=R.next()).done;)I=I.value,ve=Ie+ut(I,_e++),pe+=Me(I,G,te,ve,J);else if(ve==="object"){if(typeof R.then=="function")return Me(dt(R),G,te,I,J);throw G=String(R),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return pe}function k(R,G,te){if(R==null)return R;var I=[],J=0;return Me(R,I,"","",function(ve){return G.call(te,ve,J++)}),I}function se(R){if(R._status===-1){var G=R._result;G=G(),G.then(function(te){(R._status===0||R._status===-1)&&(R._status=1,R._result=te)},function(te){(R._status===0||R._status===-1)&&(R._status=2,R._result=te)}),R._status===-1&&(R._status=0,R._result=G)}if(R._status===1)return R._result.default;throw R._result}var W=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)};function Te(){}return Re.Children={map:k,forEach:function(R,G,te){k(R,function(){G.apply(this,arguments)},te)},count:function(R){var G=0;return k(R,function(){G++}),G},toArray:function(R){return k(R,function(G){return G})||[]},only:function(R){if(!$(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},Re.Component=V,Re.Fragment=c,Re.Profiler=o,Re.PureComponent=Z,Re.StrictMode=f,Re.Suspense=v,Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,Re.act=function(){throw Error("act(...) is not supported in production builds of React.")},Re.cache=function(R){return function(){return R.apply(null,arguments)}},Re.cloneElement=function(R,G,te){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var I=N({},R.props),J=R.key,ve=void 0;if(G!=null)for(pe in G.ref!==void 0&&(ve=void 0),G.key!==void 0&&(J=""+G.key),G)!P.call(G,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&G.ref===void 0||(I[pe]=G[pe]);var pe=arguments.length-2;if(pe===1)I.children=te;else if(1<pe){for(var Ie=Array(pe),_e=0;_e<pe;_e++)Ie[_e]=arguments[_e+2];I.children=Ie}return he(R.type,J,void 0,void 0,ve,I)},Re.createContext=function(R){return R={$$typeof:h,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:s,_context:R},R},Re.createElement=function(R,G,te){var I,J={},ve=null;if(G!=null)for(I in G.key!==void 0&&(ve=""+G.key),G)P.call(G,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(J[I]=G[I]);var pe=arguments.length-2;if(pe===1)J.children=te;else if(1<pe){for(var Ie=Array(pe),_e=0;_e<pe;_e++)Ie[_e]=arguments[_e+2];J.children=Ie}if(R&&R.defaultProps)for(I in pe=R.defaultProps,pe)J[I]===void 0&&(J[I]=pe[I]);return he(R,ve,void 0,void 0,null,J)},Re.createRef=function(){return{current:null}},Re.forwardRef=function(R){return{$$typeof:y,render:R}},Re.isValidElement=$,Re.lazy=function(R){return{$$typeof:b,_payload:{_status:-1,_result:R},_init:se}},Re.memo=function(R,G){return{$$typeof:m,type:R,compare:G===void 0?null:G}},Re.startTransition=function(R){var G=x.T,te={};x.T=te;try{var I=R(),J=x.S;J!==null&&J(te,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(Te,W)}catch(ve){W(ve)}finally{x.T=G}},Re.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},Re.use=function(R){return x.H.use(R)},Re.useActionState=function(R,G,te){return x.H.useActionState(R,G,te)},Re.useCallback=function(R,G){return x.H.useCallback(R,G)},Re.useContext=function(R){return x.H.useContext(R)},Re.useDebugValue=function(){},Re.useDeferredValue=function(R,G){return x.H.useDeferredValue(R,G)},Re.useEffect=function(R,G){return x.H.useEffect(R,G)},Re.useId=function(){return x.H.useId()},Re.useImperativeHandle=function(R,G,te){return x.H.useImperativeHandle(R,G,te)},Re.useInsertionEffect=function(R,G){return x.H.useInsertionEffect(R,G)},Re.useLayoutEffect=function(R,G){return x.H.useLayoutEffect(R,G)},Re.useMemo=function(R,G){return x.H.useMemo(R,G)},Re.useOptimistic=function(R,G){return x.H.useOptimistic(R,G)},Re.useReducer=function(R,G,te){return x.H.useReducer(R,G,te)},Re.useRef=function(R){return x.H.useRef(R)},Re.useState=function(R){return x.H.useState(R)},Re.useSyncExternalStore=function(R,G,te){return x.H.useSyncExternalStore(R,G,te)},Re.useTransition=function(){return x.H.useTransition()},Re.version="19.0.0",Re}var bm;function Ar(){return bm||(bm=1,Qf.exports=Sp()),Qf.exports}var p=Ar();const Ht=Wu(p);var Zf={exports:{}},Vu={},Kf={exports:{}},kf={};/**
+ * @license React
+ * scheduler.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var Sm;function Rp(){return Sm||(Sm=1,function(l){function u(k,se){var W=k.length;k.push(se);e:for(;0<W;){var Te=W-1>>>1,R=k[Te];if(0<o(R,se))k[Te]=se,k[W]=R,W=Te;else break e}}function c(k){return k.length===0?null:k[0]}function f(k){if(k.length===0)return null;var se=k[0],W=k.pop();if(W!==se){k[0]=W;e:for(var Te=0,R=k.length,G=R>>>1;Te<G;){var te=2*(Te+1)-1,I=k[te],J=te+1,ve=k[J];if(0>o(I,W))J<R&&0>o(ve,I)?(k[Te]=ve,k[J]=W,Te=J):(k[Te]=I,k[te]=W,Te=te);else if(J<R&&0>o(ve,W))k[Te]=ve,k[J]=W,Te=J;else break e}}return se}function o(k,se){var W=k.sortIndex-se.sortIndex;return W!==0?W:k.id-se.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;l.unstable_now=function(){return s.now()}}else{var h=Date,y=h.now();l.unstable_now=function(){return h.now()-y}}var v=[],m=[],b=1,M=null,S=3,D=!1,N=!1,q=!1,V=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function K(k){for(var se=c(m);se!==null;){if(se.callback===null)f(m);else if(se.startTime<=k)f(m),se.sortIndex=se.expirationTime,u(v,se);else break;se=c(m)}}function le(k){if(q=!1,K(k),!N)if(c(v)!==null)N=!0,dt();else{var se=c(m);se!==null&&Me(le,se.startTime-k)}}var x=!1,P=-1,he=5,oe=-1;function $(){return!(l.unstable_now()-oe<he)}function ie(){if(x){var k=l.unstable_now();oe=k;var se=!0;try{e:{N=!1,q&&(q=!1,U(P),P=-1),D=!0;var W=S;try{t:{for(K(k),M=c(v);M!==null&&!(M.expirationTime>k&&$());){var Te=M.callback;if(typeof Te=="function"){M.callback=null,S=M.priorityLevel;var R=Te(M.expirationTime<=k);if(k=l.unstable_now(),typeof R=="function"){M.callback=R,K(k),se=!0;break t}M===c(v)&&f(v),K(k)}else f(v);M=c(v)}if(M!==null)se=!0;else{var G=c(m);G!==null&&Me(le,G.startTime-k),se=!1}}break e}finally{M=null,S=W,D=!1}se=void 0}}finally{se?He():x=!1}}}var He;if(typeof Z=="function")He=function(){Z(ie)};else if(typeof MessageChannel<"u"){var ut=new MessageChannel,Je=ut.port2;ut.port1.onmessage=ie,He=function(){Je.postMessage(null)}}else He=function(){V(ie,0)};function dt(){x||(x=!0,He())}function Me(k,se){P=V(function(){k(l.unstable_now())},se)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(k){k.callback=null},l.unstable_continueExecution=function(){N||D||(N=!0,dt())},l.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<k?Math.floor(1e3/k):5},l.unstable_getCurrentPriorityLevel=function(){return S},l.unstable_getFirstCallbackNode=function(){return c(v)},l.unstable_next=function(k){switch(S){case 1:case 2:case 3:var se=3;break;default:se=S}var W=S;S=se;try{return k()}finally{S=W}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=function(){},l.unstable_runWithPriority=function(k,se){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var W=S;S=k;try{return se()}finally{S=W}},l.unstable_scheduleCallback=function(k,se,W){var Te=l.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?Te+W:Te):W=Te,k){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=W+R,k={id:b++,callback:se,priorityLevel:k,startTime:W,expirationTime:R,sortIndex:-1},W>Te?(k.sortIndex=W,u(m,k),c(v)===null&&k===c(m)&&(q?(U(P),P=-1):q=!0,Me(le,W-Te))):(k.sortIndex=R,u(v,k),N||D||(N=!0,dt())),k},l.unstable_shouldYield=$,l.unstable_wrapCallback=function(k){var se=S;return function(){var W=S;S=se;try{return k.apply(this,arguments)}finally{S=W}}}}(kf)),kf}var Rm;function Tp(){return Rm||(Rm=1,Kf.exports=Rp()),Kf.exports}var $f={exports:{}},Ct={};/**
+ * @license React
+ * react-dom.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var Tm;function xp(){if(Tm)return Ct;Tm=1;var l=Ar();function u(v){var m="https://react.dev/errors/"+v;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var f={d:{f:c,r:function(){throw Error(u(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(v,m,b){var M=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:M==null?null:""+M,children:v,containerInfo:m,implementation:b}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(v,m){if(v==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,Ct.createPortal=function(v,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(u(299));return s(v,m,null,b)},Ct.flushSync=function(v){var m=h.T,b=f.p;try{if(h.T=null,f.p=2,v)return v()}finally{h.T=m,f.p=b,f.d.f()}},Ct.preconnect=function(v,m){typeof v=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,f.d.C(v,m))},Ct.prefetchDNS=function(v){typeof v=="string"&&f.d.D(v)},Ct.preinit=function(v,m){if(typeof v=="string"&&m&&typeof m.as=="string"){var b=m.as,M=y(b,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,D=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?f.d.S(v,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:M,integrity:S,fetchPriority:D}):b==="script"&&f.d.X(v,{crossOrigin:M,integrity:S,fetchPriority:D,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Ct.preinitModule=function(v,m){if(typeof v=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=y(m.as,m.crossOrigin);f.d.M(v,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&f.d.M(v)},Ct.preload=function(v,m){if(typeof v=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,M=y(b,m.crossOrigin);f.d.L(v,b,{crossOrigin:M,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Ct.preloadModule=function(v,m){if(typeof v=="string")if(m){var b=y(m.as,m.crossOrigin);f.d.m(v,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else f.d.m(v)},Ct.requestFormReset=function(v){f.d.r(v)},Ct.unstable_batchedUpdates=function(v,m){return v(m)},Ct.useFormState=function(v,m,b){return h.H.useFormState(v,m,b)},Ct.useFormStatus=function(){return h.H.useHostTransitionStatus()},Ct.version="19.0.0",Ct}var xm;function my(){if(xm)return $f.exports;xm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),$f.exports=xp(),$f.exports}/**
+ * @license React
+ * react-dom-client.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var Om;function Op(){if(Om)return Vu;Om=1;var l=Tp(),u=Ar(),c=my();function f(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}var s=Symbol.for("react.element"),h=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),S=Symbol.for("react.consumer"),D=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),le=Symbol.for("react.memo_cache_sentinel"),x=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=x&&e[x]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function oe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case y:return"Portal";case b:return"Profiler";case m:return"StrictMode";case q:return"Suspense";case V:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case D:return(e.displayName||"Context")+".Provider";case S:return(e._context.displayName||"Context")+".Consumer";case N:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return t=e.displayName||null,t!==null?t:oe(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var $=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie=Object.assign,He,ut;function Je(e){if(He===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);He=t&&t[1]||"",ut=-1<n.stack.indexOf(`
+    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
+`+He+e+ut}var dt=!1;function Me(e,t){if(!e||dt)return"";dt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(H){var z=H}Reflect.construct(e,[],X)}else{try{X.call()}catch(H){z=H}e.call(X.prototype)}}else{try{throw Error()}catch(H){z=H}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(H){if(H&&z&&typeof H.stack=="string")return[H.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),d=r[0],g=r[1];if(d&&g){var E=d.split(`
+`),C=g.split(`
+`);for(i=a=0;a<E.length&&!E[a].includes("DetermineComponentFrameRoot");)a++;for(;i<C.length&&!C[i].includes("DetermineComponentFrameRoot");)i++;if(a===E.length||i===C.length)for(a=E.length-1,i=C.length-1;1<=a&&0<=i&&E[a]!==C[i];)i--;for(;1<=a&&0<=i;a--,i--)if(E[a]!==C[i]){if(a!==1||i!==1)do if(a--,i--,0>i||E[a]!==C[i]){var B=`
+`+E[a].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=a&&0<=i);break}}}finally{dt=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Je(n):""}function k(e){switch(e.tag){case 26:case 27:case 5:return Je(e.type);case 16:return Je("Lazy");case 13:return Je("Suspense");case 19:return Je("SuspenseList");case 0:case 15:return e=Me(e.type,!1),e;case 11:return e=Me(e.type.render,!1),e;case 1:return e=Me(e.type,!0),e;default:return""}}function se(e){try{var t="";do t+=k(e),e=e.return;while(e);return t}catch(n){return`
+Error generating stack: `+n.message+`
+`+n.stack}}function W(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Te(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function R(e){if(W(e)!==e)throw Error(f(188))}function G(e){var t=e.alternate;if(!t){if(t=W(e),t===null)throw Error(f(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(i===null)break;var r=i.alternate;if(r===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===n)return R(i),e;if(r===a)return R(i),t;r=r.sibling}throw Error(f(188))}if(n.return!==a.return)n=i,a=r;else{for(var d=!1,g=i.child;g;){if(g===n){d=!0,n=i,a=r;break}if(g===a){d=!0,a=i,n=r;break}g=g.sibling}if(!d){for(g=r.child;g;){if(g===n){d=!0,n=r,a=i;break}if(g===a){d=!0,a=r,n=i;break}g=g.sibling}if(!d)throw Error(f(189))}}if(n.alternate!==a)throw Error(f(190))}if(n.tag!==3)throw Error(f(188));return n.stateNode.current===n?e:t}function te(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=te(e),t!==null)return t;e=e.sibling}return null}var I=Array.isArray,J=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve={pending:!1,data:null,method:null,action:null},pe=[],Ie=-1;function _e(e){return{current:e}}function Se(e){0>Ie||(e.current=pe[Ie],pe[Ie]=null,Ie--)}function De(e,t){Ie++,pe[Ie]=e.current,e.current=t}var yt=_e(null),Nt=_e(null),et=_e(null),qt=_e(null);function Le(e,t){switch(De(et,t),De(Nt,e),De(yt,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Zh(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=Zh(e),t=Kh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Se(yt),De(yt,t)}function zt(){Se(yt),Se(Nt),Se(et)}function hn(e){e.memoizedState!==null&&De(qt,e);var t=yt.current,n=Kh(t,e.type);t!==n&&(De(Nt,e),De(yt,n))}function aa(e){Nt.current===e&&(Se(yt),Se(Nt)),qt.current===e&&(Se(qt),Hu._currentValue=ve)}var wa=Object.prototype.hasOwnProperty,Na=l.unstable_scheduleCallback,Yt=l.unstable_cancelCallback,zn=l.unstable_shouldYield,cl=l.unstable_requestPaint,St=l.unstable_now,Ft=l.unstable_getCurrentPriorityLevel,be=l.unstable_ImmediatePriority,Wt=l.unstable_UserBlockingPriority,mn=l.unstable_NormalPriority,Lr=l.unstable_LowPriority,yn=l.unstable_IdlePriority,ti=l.log,ni=l.unstable_setDisableYieldValue,la=null,Mt=null;function ai(e){if(Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(la,e,void 0,(e.current.flags&128)===128)}catch{}}function Gt(e){if(typeof ti=="function"&&ni(e),Mt&&typeof Mt.setStrictMode=="function")try{Mt.setStrictMode(la,e)}catch{}}var Ot=Math.clz32?Math.clz32:li,Jl=Math.log,Hr=Math.LN2;function li(e){return e>>>=0,e===0?32:31-(Jl(e)/Hr|0)|0}var fl=128,za=4194304;function Pt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Un(e,t){var n=e.pendingLanes;if(n===0)return 0;var a=0,i=e.suspendedLanes,r=e.pingedLanes,d=e.warmLanes;e=e.finishedLanes!==0;var g=n&134217727;return g!==0?(n=g&~i,n!==0?a=Pt(n):(r&=g,r!==0?a=Pt(r):e||(d=g&~d,d!==0&&(a=Pt(d))))):(g=n&~i,g!==0?a=Pt(g):r!==0?a=Pt(r):e||(d=n&~d,d!==0&&(a=Pt(d)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,d=t&-t,i>=d||i===32&&(d&4194176)!==0)?t:a}function Ua(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Br(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function T(){var e=fl;return fl<<=1,!(fl&4194176)&&(fl=128),e}function _(){var e=za;return za<<=1,!(za&62914560)&&(za=4194304),e}function L(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Q(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ee(e,t,n,a,i,r){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var g=e.entanglements,E=e.expirationTimes,C=e.hiddenUpdates;for(n=d&~n;0<n;){var B=31-Ot(n),X=1<<B;g[B]=0,E[B]=-1;var z=C[B];if(z!==null)for(C[B]=null,B=0;B<z.length;B++){var H=z[B];H!==null&&(H.lane&=-536870913)}n&=~X}a!==0&&ce(e,a,0),r!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=r&~(d&~t))}function ce(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ot(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&4194218}function ge(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-Ot(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function ne(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ue(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:om(e.type))}function F(e,t){var n=J.p;try{return J.p=e,t()}finally{J.p=n}}var me=Math.random().toString(36).slice(2),de="__reactFiber$"+me,xe="__reactProps$"+me,ke="__reactContainer$"+me,Xe="__reactEvents$"+me,Ve="__reactListeners$"+me,it="__reactHandles$"+me,jn="__reactResources$"+me,vn="__reactMarker$"+me;function Xt(e){delete e[de],delete e[xe],delete e[Xe],delete e[Ve],delete e[it]}function vt(e){var t=e[de];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ke]||n[de]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Jh(e);e!==null;){if(n=e[de])return n;e=Jh(e)}return t}e=n,n=e.parentNode}return null}function On(e){if(e=e[de]||e[ke]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function gn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(f(33))}function Ut(e){var t=e[jn];return t||(t=e[jn]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Fe(e){e[vn]=!0}var ja=new Set,Be={};function $e(e,t){pn(e,t),pn(e+"Capture",t)}function pn(e,t){for(Be[e]=t,e=0;e<t.length;e++)ja.add(t[e])}var At=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ln={},Fl={};function qr(e){return wa.call(Fl,e)?!0:wa.call(Ln,e)?!1:tt.test(e)?Fl[e]=!0:(Ln[e]=!0,!1)}function ui(e,t,n){if(qr(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ii(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Hn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function It(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $o(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dv(e){var t=$o(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(d){a=""+d,r.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ri(e){e._valueTracker||(e._valueTracker=dv(e))}function Jo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=$o(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function ci(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var hv=/[\n"\\]/g;function en(e){return e.replace(hv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Yr(e,t,n,a,i,r,d,g){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+It(t)):e.value!==""+It(t)&&(e.value=""+It(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Gr(e,d,It(t)):n!=null?Gr(e,d,It(n)):a!=null&&e.removeAttribute("value"),i==null&&r!=null&&(e.defaultChecked=!!r),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+It(g):e.removeAttribute("name")}function Fo(e,t,n,a,i,r,d,g){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||t!=null))return;n=n!=null?""+It(n):"",t=t!=null?""+It(t):n,g||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=g?e.checked:!!a,e.defaultChecked=!!a,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d)}function Gr(e,t,n){t==="number"&&ci(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ol(e,t,n,a){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&a&&(e[n].defaultSelected=!0)}else{for(n=""+It(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Wo(e,t,n){if(t!=null&&(t=""+It(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+It(n):""}function Po(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(f(92));if(I(a)){if(1<a.length)throw Error(f(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=It(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a)}function sl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mv=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Io(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||mv.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function es(e,t,n){if(t!=null&&typeof t!="object")throw Error(f(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&Io(e,i,a)}else for(var r in t)t.hasOwnProperty(r)&&Io(e,r,t[r])}function Xr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),vv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function fi(e){return vv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Vr=null;function Qr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dl=null,hl=null;function ts(e){var t=On(e);if(t&&(e=t.stateNode)){var n=e[xe]||null;e:switch(e=t.stateNode,t.type){case"input":if(Yr(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+en(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[xe]||null;if(!i)throw Error(f(90));Yr(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Jo(a)}break e;case"textarea":Wo(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ol(e,!!n.multiple,t,!1)}}}var Zr=!1;function ns(e,t,n){if(Zr)return e(t,n);Zr=!0;try{var a=e(t);return a}finally{if(Zr=!1,(dl!==null||hl!==null)&&(Ki(),dl&&(t=dl,e=hl,hl=dl=null,ts(t),e)))for(t=0;t<e.length;t++)ts(e[t])}}function Wl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[xe]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(f(231,t,typeof n));return n}var Kr=!1;if(At)try{var Pl={};Object.defineProperty(Pl,"passive",{get:function(){Kr=!0}}),window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{Kr=!1}var ua=null,kr=null,oi=null;function as(){if(oi)return oi;var e,t=kr,n=t.length,a,i="value"in ua?ua.value:ua.textContent,r=i.length;for(e=0;e<n&&t[e]===i[e];e++);var d=n-e;for(a=1;a<=d&&t[n-a]===i[r-a];a++);return oi=i.slice(e,1<a?1-a:void 0)}function si(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function di(){return!0}function ls(){return!1}function jt(e){function t(n,a,i,r,d){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=r,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(r):r[g]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?di:ls,this.isPropagationStopped=ls,this}return ie(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=di)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=di)},persist:function(){},isPersistent:di}),t}var La={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hi=jt(La),Il=ie({},La,{view:0,detail:0}),gv=jt(Il),$r,Jr,eu,mi=ie({},Il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==eu&&(eu&&e.type==="mousemove"?($r=e.screenX-eu.screenX,Jr=e.screenY-eu.screenY):Jr=$r=0,eu=e),$r)},movementY:function(e){return"movementY"in e?e.movementY:Jr}}),us=jt(mi),pv=ie({},mi,{dataTransfer:0}),Ev=jt(pv),bv=ie({},Il,{relatedTarget:0}),Fr=jt(bv),Sv=ie({},La,{animationName:0,elapsedTime:0,pseudoElement:0}),Rv=jt(Sv),Tv=ie({},La,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xv=jt(Tv),Ov=ie({},La,{data:0}),is=jt(Ov),Dv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Mv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Av(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Mv[e])?!!t[e]:!1}function Wr(){return Av}var _v=ie({},Il,{key:function(e){if(e.key){var t=Dv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=si(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Cv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wr,charCode:function(e){return e.type==="keypress"?si(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?si(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wv=jt(_v),Nv=ie({},mi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rs=jt(Nv),zv=ie({},Il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wr}),Uv=jt(zv),jv=ie({},La,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lv=jt(jv),Hv=ie({},mi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Bv=jt(Hv),qv=ie({},La,{newState:0,oldState:0}),Yv=jt(qv),Gv=[9,13,27,32],Pr=At&&"CompositionEvent"in window,tu=null;At&&"documentMode"in document&&(tu=document.documentMode);var Xv=At&&"TextEvent"in window&&!tu,cs=At&&(!Pr||tu&&8<tu&&11>=tu),fs=" ",os=!1;function ss(e,t){switch(e){case"keyup":return Gv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ds(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ml=!1;function Vv(e,t){switch(e){case"compositionend":return ds(t);case"keypress":return t.which!==32?null:(os=!0,fs);case"textInput":return e=t.data,e===fs&&os?null:e;default:return null}}function Qv(e,t){if(ml)return e==="compositionend"||!Pr&&ss(e,t)?(e=as(),oi=kr=ua=null,ml=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return cs&&t.locale!=="ko"?null:t.data;default:return null}}var Zv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function hs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Zv[e.type]:t==="textarea"}function ms(e,t,n,a){dl?hl?hl.push(a):hl=[a]:dl=a,t=Wi(t,"onChange"),0<t.length&&(n=new hi("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var nu=null,au=null;function Kv(e){Yh(e,0)}function yi(e){var t=gn(e);if(Jo(t))return e}function ys(e,t){if(e==="change")return t}var vs=!1;if(At){var Ir;if(At){var ec="oninput"in document;if(!ec){var gs=document.createElement("div");gs.setAttribute("oninput","return;"),ec=typeof gs.oninput=="function"}Ir=ec}else Ir=!1;vs=Ir&&(!document.documentMode||9<document.documentMode)}function ps(){nu&&(nu.detachEvent("onpropertychange",Es),au=nu=null)}function Es(e){if(e.propertyName==="value"&&yi(au)){var t=[];ms(t,au,e,Qr(e)),ns(Kv,t)}}function kv(e,t,n){e==="focusin"?(ps(),nu=t,au=n,nu.attachEvent("onpropertychange",Es)):e==="focusout"&&ps()}function $v(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yi(au)}function Jv(e,t){if(e==="click")return yi(t)}function Fv(e,t){if(e==="input"||e==="change")return yi(t)}function Wv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vt=typeof Object.is=="function"?Object.is:Wv;function lu(e,t){if(Vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!wa.call(t,i)||!Vt(e[i],t[i]))return!1}return!0}function bs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ss(e,t){var n=bs(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=bs(n)}}function Rs(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rs(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ts(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ci(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ci(e.document)}return t}function tc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Pv(e,t){var n=Ts(t);t=e.focusedElem;var a=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Rs(t.ownerDocument.documentElement,t)){if(a!==null&&tc(t)){if(e=a.start,n=a.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var i=t.textContent.length,r=Math.min(a.start,i);a=a.end===void 0?r:Math.min(a.end,i),!n.extend&&r>a&&(i=a,a=r,r=i),i=Ss(t,r);var d=Ss(t,a);i&&d&&(n.rangeCount!==1||n.anchorNode!==i.node||n.anchorOffset!==i.offset||n.focusNode!==d.node||n.focusOffset!==d.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),n.removeAllRanges(),r>a?(n.addRange(e),n.extend(d.node,d.offset)):(e.setEnd(d.node,d.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)n=e[t],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var Iv=At&&"documentMode"in document&&11>=document.documentMode,yl=null,nc=null,uu=null,ac=!1;function xs(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ac||yl==null||yl!==ci(a)||(a=yl,"selectionStart"in a&&tc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),uu&&lu(uu,a)||(uu=a,a=Wi(nc,"onSelect"),0<a.length&&(t=new hi("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=yl)))}function Ha(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vl={animationend:Ha("Animation","AnimationEnd"),animationiteration:Ha("Animation","AnimationIteration"),animationstart:Ha("Animation","AnimationStart"),transitionrun:Ha("Transition","TransitionRun"),transitionstart:Ha("Transition","TransitionStart"),transitioncancel:Ha("Transition","TransitionCancel"),transitionend:Ha("Transition","TransitionEnd")},lc={},Os={};At&&(Os=document.createElement("div").style,"AnimationEvent"in window||(delete vl.animationend.animation,delete vl.animationiteration.animation,delete vl.animationstart.animation),"TransitionEvent"in window||delete vl.transitionend.transition);function Ba(e){if(lc[e])return lc[e];if(!vl[e])return e;var t=vl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Os)return lc[e]=t[n];return e}var Ds=Ba("animationend"),Cs=Ba("animationiteration"),Ms=Ba("animationstart"),eg=Ba("transitionrun"),tg=Ba("transitionstart"),ng=Ba("transitioncancel"),As=Ba("transitionend"),_s=new Map,ws="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function En(e,t){_s.set(e,t),$e(t,[e])}var tn=[],gl=0,uc=0;function vi(){for(var e=gl,t=uc=gl=0;t<e;){var n=tn[t];tn[t++]=null;var a=tn[t];tn[t++]=null;var i=tn[t];tn[t++]=null;var r=tn[t];if(tn[t++]=null,a!==null&&i!==null){var d=a.pending;d===null?i.next=i:(i.next=d.next,d.next=i),a.pending=i}r!==0&&Ns(n,i,r)}}function gi(e,t,n,a){tn[gl++]=e,tn[gl++]=t,tn[gl++]=n,tn[gl++]=a,uc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ic(e,t,n,a){return gi(e,t,n,a),pi(e)}function ia(e,t){return gi(e,null,null,t),pi(e)}function Ns(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var i=!1,r=e.return;r!==null;)r.childLanes|=n,a=r.alternate,a!==null&&(a.childLanes|=n),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(i=!0)),e=r,r=r.return;i&&t!==null&&e.tag===3&&(r=e.stateNode,i=31-Ot(n),r=r.hiddenUpdates,e=r[i],e===null?r[i]=[t]:e.push(t),t.lane=n|536870912)}function pi(e){if(50<_u)throw _u=0,hf=null,Error(f(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pl={},zs=new WeakMap;function nn(e,t){if(typeof e=="object"&&e!==null){var n=zs.get(e);return n!==void 0?n:(t={value:e,source:t,stack:se(t)},zs.set(e,t),t)}return{value:e,source:t,stack:se(t)}}var El=[],bl=0,Ei=null,bi=0,an=[],ln=0,qa=null,Bn=1,qn="";function Ya(e,t){El[bl++]=bi,El[bl++]=Ei,Ei=e,bi=t}function Us(e,t,n){an[ln++]=Bn,an[ln++]=qn,an[ln++]=qa,qa=e;var a=Bn;e=qn;var i=32-Ot(a)-1;a&=~(1<<i),n+=1;var r=32-Ot(t)+i;if(30<r){var d=i-i%5;r=(a&(1<<d)-1).toString(32),a>>=d,i-=d,Bn=1<<32-Ot(t)+i|n<<i|a,qn=r+e}else Bn=1<<r|n<<i|a,qn=e}function rc(e){e.return!==null&&(Ya(e,1),Us(e,1,0))}function cc(e){for(;e===Ei;)Ei=El[--bl],El[bl]=null,bi=El[--bl],El[bl]=null;for(;e===qa;)qa=an[--ln],an[ln]=null,qn=an[--ln],an[ln]=null,Bn=an[--ln],an[ln]=null}var _t=null,Rt=null,Ue=!1,bn=null,Dn=!1,fc=Error(f(519));function Ga(e){var t=Error(f(418,""));throw cu(nn(t,e)),fc}function js(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[de]=e,t[xe]=a,n){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(n=0;n<Nu.length;n++)we(Nu[n],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),Fo(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),ri(t);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),Po(t,a.value,a.defaultValue,a.children),ri(t)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Qh(t.textContent,n)?(a.popover!=null&&(we("beforetoggle",t),we("toggle",t)),a.onScroll!=null&&we("scroll",t),a.onScrollEnd!=null&&we("scrollend",t),a.onClick!=null&&(t.onclick=Pi),t=!0):t=!1,t||Ga(e)}function Ls(e){for(_t=e.return;_t;)switch(_t.tag){case 3:case 27:Dn=!0;return;case 5:case 13:Dn=!1;return;default:_t=_t.return}}function iu(e){if(e!==_t)return!1;if(!Ue)return Ls(e),Ue=!0,!1;var t=!1,n;if((n=e.tag!==3&&e.tag!==27)&&((n=e.tag===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||_f(e.type,e.memoizedProps)),n=!n),n&&(t=!0),t&&Rt&&Ga(e),Ls(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Rt=Rn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Rt=null}}else Rt=_t?Rn(e.stateNode.nextSibling):null;return!0}function ru(){Rt=_t=null,Ue=!1}function cu(e){bn===null?bn=[e]:bn.push(e)}var fu=Error(f(460)),Hs=Error(f(474)),oc={then:function(){}};function Bs(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Si(){}function qs(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Si,Si),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===fu?Error(f(483)):e;default:if(typeof t.status=="string")t.then(Si,Si);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(f(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===fu?Error(f(483)):e}throw ou=t,fu}}var ou=null;function Ys(){if(ou===null)throw Error(f(459));var e=ou;return ou=null,e}var Sl=null,su=0;function Ri(e){var t=su;return su+=1,Sl===null&&(Sl=[]),qs(Sl,e,t)}function du(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ti(e,t){throw t.$$typeof===s?Error(f(525)):(e=Object.prototype.toString.call(t),Error(f(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Gs(e){var t=e._init;return t(e._payload)}function Xs(e){function t(A,O){if(e){var w=A.deletions;w===null?(A.deletions=[O],A.flags|=16):w.push(O)}}function n(A,O){if(!e)return null;for(;O!==null;)t(A,O),O=O.sibling;return null}function a(A){for(var O=new Map;A!==null;)A.key!==null?O.set(A.key,A):O.set(A.index,A),A=A.sibling;return O}function i(A,O){return A=pa(A,O),A.index=0,A.sibling=null,A}function r(A,O,w){return A.index=w,e?(w=A.alternate,w!==null?(w=w.index,w<O?(A.flags|=33554434,O):w):(A.flags|=33554434,O)):(A.flags|=1048576,O)}function d(A){return e&&A.alternate===null&&(A.flags|=33554434),A}function g(A,O,w,Y){return O===null||O.tag!==6?(O=lf(w,A.mode,Y),O.return=A,O):(O=i(O,w),O.return=A,O)}function E(A,O,w,Y){var ae=w.type;return ae===v?B(A,O,w.props.children,Y,w.key):O!==null&&(O.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Z&&Gs(ae)===O.type)?(O=i(O,w.props),du(O,w),O.return=A,O):(O=Gi(w.type,w.key,w.props,null,A.mode,Y),du(O,w),O.return=A,O)}function C(A,O,w,Y){return O===null||O.tag!==4||O.stateNode.containerInfo!==w.containerInfo||O.stateNode.implementation!==w.implementation?(O=uf(w,A.mode,Y),O.return=A,O):(O=i(O,w.children||[]),O.return=A,O)}function B(A,O,w,Y,ae){return O===null||O.tag!==7?(O=Wa(w,A.mode,Y,ae),O.return=A,O):(O=i(O,w),O.return=A,O)}function X(A,O,w){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=lf(""+O,A.mode,w),O.return=A,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case h:return w=Gi(O.type,O.key,O.props,null,A.mode,w),du(w,O),w.return=A,w;case y:return O=uf(O,A.mode,w),O.return=A,O;case Z:var Y=O._init;return O=Y(O._payload),X(A,O,w)}if(I(O)||P(O))return O=Wa(O,A.mode,w,null),O.return=A,O;if(typeof O.then=="function")return X(A,Ri(O),w);if(O.$$typeof===D)return X(A,Bi(A,O),w);Ti(A,O)}return null}function z(A,O,w,Y){var ae=O!==null?O.key:null;if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return ae!==null?null:g(A,O,""+w,Y);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case h:return w.key===ae?E(A,O,w,Y):null;case y:return w.key===ae?C(A,O,w,Y):null;case Z:return ae=w._init,w=ae(w._payload),z(A,O,w,Y)}if(I(w)||P(w))return ae!==null?null:B(A,O,w,Y,null);if(typeof w.then=="function")return z(A,O,Ri(w),Y);if(w.$$typeof===D)return z(A,O,Bi(A,w),Y);Ti(A,w)}return null}function H(A,O,w,Y,ae){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return A=A.get(w)||null,g(O,A,""+Y,ae);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case h:return A=A.get(Y.key===null?w:Y.key)||null,E(O,A,Y,ae);case y:return A=A.get(Y.key===null?w:Y.key)||null,C(O,A,Y,ae);case Z:var Ce=Y._init;return Y=Ce(Y._payload),H(A,O,w,Y,ae)}if(I(Y)||P(Y))return A=A.get(w)||null,B(O,A,Y,ae,null);if(typeof Y.then=="function")return H(A,O,w,Ri(Y),ae);if(Y.$$typeof===D)return H(A,O,w,Bi(O,Y),ae);Ti(O,Y)}return null}function re(A,O,w,Y){for(var ae=null,Ce=null,fe=O,ye=O=0,Et=null;fe!==null&&ye<w.length;ye++){fe.index>ye?(Et=fe,fe=null):Et=fe.sibling;var je=z(A,fe,w[ye],Y);if(je===null){fe===null&&(fe=Et);break}e&&fe&&je.alternate===null&&t(A,fe),O=r(je,O,ye),Ce===null?ae=je:Ce.sibling=je,Ce=je,fe=Et}if(ye===w.length)return n(A,fe),Ue&&Ya(A,ye),ae;if(fe===null){for(;ye<w.length;ye++)fe=X(A,w[ye],Y),fe!==null&&(O=r(fe,O,ye),Ce===null?ae=fe:Ce.sibling=fe,Ce=fe);return Ue&&Ya(A,ye),ae}for(fe=a(fe);ye<w.length;ye++)Et=H(fe,A,ye,w[ye],Y),Et!==null&&(e&&Et.alternate!==null&&fe.delete(Et.key===null?ye:Et.key),O=r(Et,O,ye),Ce===null?ae=Et:Ce.sibling=Et,Ce=Et);return e&&fe.forEach(function(Oa){return t(A,Oa)}),Ue&&Ya(A,ye),ae}function Ee(A,O,w,Y){if(w==null)throw Error(f(151));for(var ae=null,Ce=null,fe=O,ye=O=0,Et=null,je=w.next();fe!==null&&!je.done;ye++,je=w.next()){fe.index>ye?(Et=fe,fe=null):Et=fe.sibling;var Oa=z(A,fe,je.value,Y);if(Oa===null){fe===null&&(fe=Et);break}e&&fe&&Oa.alternate===null&&t(A,fe),O=r(Oa,O,ye),Ce===null?ae=Oa:Ce.sibling=Oa,Ce=Oa,fe=Et}if(je.done)return n(A,fe),Ue&&Ya(A,ye),ae;if(fe===null){for(;!je.done;ye++,je=w.next())je=X(A,je.value,Y),je!==null&&(O=r(je,O,ye),Ce===null?ae=je:Ce.sibling=je,Ce=je);return Ue&&Ya(A,ye),ae}for(fe=a(fe);!je.done;ye++,je=w.next())je=H(fe,A,ye,je.value,Y),je!==null&&(e&&je.alternate!==null&&fe.delete(je.key===null?ye:je.key),O=r(je,O,ye),Ce===null?ae=je:Ce.sibling=je,Ce=je);return e&&fe.forEach(function(vp){return t(A,vp)}),Ue&&Ya(A,ye),ae}function lt(A,O,w,Y){if(typeof w=="object"&&w!==null&&w.type===v&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case h:e:{for(var ae=w.key;O!==null;){if(O.key===ae){if(ae=w.type,ae===v){if(O.tag===7){n(A,O.sibling),Y=i(O,w.props.children),Y.return=A,A=Y;break e}}else if(O.elementType===ae||typeof ae=="object"&&ae!==null&&ae.$$typeof===Z&&Gs(ae)===O.type){n(A,O.sibling),Y=i(O,w.props),du(Y,w),Y.return=A,A=Y;break e}n(A,O);break}else t(A,O);O=O.sibling}w.type===v?(Y=Wa(w.props.children,A.mode,Y,w.key),Y.return=A,A=Y):(Y=Gi(w.type,w.key,w.props,null,A.mode,Y),du(Y,w),Y.return=A,A=Y)}return d(A);case y:e:{for(ae=w.key;O!==null;){if(O.key===ae)if(O.tag===4&&O.stateNode.containerInfo===w.containerInfo&&O.stateNode.implementation===w.implementation){n(A,O.sibling),Y=i(O,w.children||[]),Y.return=A,A=Y;break e}else{n(A,O);break}else t(A,O);O=O.sibling}Y=uf(w,A.mode,Y),Y.return=A,A=Y}return d(A);case Z:return ae=w._init,w=ae(w._payload),lt(A,O,w,Y)}if(I(w))return re(A,O,w,Y);if(P(w)){if(ae=P(w),typeof ae!="function")throw Error(f(150));return w=ae.call(w),Ee(A,O,w,Y)}if(typeof w.then=="function")return lt(A,O,Ri(w),Y);if(w.$$typeof===D)return lt(A,O,Bi(A,w),Y);Ti(A,w)}return typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint"?(w=""+w,O!==null&&O.tag===6?(n(A,O.sibling),Y=i(O,w),Y.return=A,A=Y):(n(A,O),Y=lf(w,A.mode,Y),Y.return=A,A=Y),d(A)):n(A,O)}return function(A,O,w,Y){try{su=0;var ae=lt(A,O,w,Y);return Sl=null,ae}catch(fe){if(fe===fu)throw fe;var Ce=fn(29,fe,null,A.mode);return Ce.lanes=Y,Ce.return=A,Ce}finally{}}}var Xa=Xs(!0),Vs=Xs(!1),Rl=_e(null),xi=_e(0);function Qs(e,t){e=Fn,De(xi,e),De(Rl,t),Fn=e|t.baseLanes}function sc(){De(xi,Fn),De(Rl,Rl.current)}function dc(){Fn=xi.current,Se(Rl),Se(xi)}var un=_e(null),Cn=null;function ra(e){var t=e.alternate;De(ht,ht.current&1),De(un,e),Cn===null&&(t===null||Rl.current!==null||t.memoizedState!==null)&&(Cn=e)}function Zs(e){if(e.tag===22){if(De(ht,ht.current),De(un,e),Cn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Cn=e)}}else ca()}function ca(){De(ht,ht.current),De(un,un.current)}function Yn(e){Se(un),Cn===e&&(Cn=null),Se(ht)}var ht=_e(0);function Oi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ag=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},lg=l.unstable_scheduleCallback,ug=l.unstable_NormalPriority,mt={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hc(){return{controller:new ag,data:new Map,refCount:0}}function hu(e){e.refCount--,e.refCount===0&&lg(ug,function(){e.controller.abort()})}var mu=null,mc=0,Tl=0,xl=null;function ig(e,t){if(mu===null){var n=mu=[];mc=0,Tl=Sf(),xl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return mc++,t.then(Ks,Ks),t}function Ks(){if(--mc===0&&mu!==null){xl!==null&&(xl.status="fulfilled");var e=mu;mu=null,Tl=0,xl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function rg(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var ks=$.S;$.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&ig(e,t),ks!==null&&ks(e,t)};var Va=_e(null);function yc(){var e=Va.current;return e!==null?e:Ze.pooledCache}function Di(e,t){t===null?De(Va,Va.current):De(Va,t.pool)}function $s(){var e=yc();return e===null?null:{parent:mt._currentValue,pool:e}}var fa=0,Oe=null,qe=null,ft=null,Ci=!1,Ol=!1,Qa=!1,Mi=0,yu=0,Dl=null,cg=0;function rt(){throw Error(f(321))}function vc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Vt(e[n],t[n]))return!1;return!0}function gc(e,t,n,a,i,r){return fa=r,Oe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$.H=e===null||e.memoizedState===null?Za:oa,Qa=!1,r=n(a,i),Qa=!1,Ol&&(r=Fs(t,n,a,i)),Js(e),r}function Js(e){$.H=Mn;var t=qe!==null&&qe.next!==null;if(fa=0,ft=qe=Oe=null,Ci=!1,yu=0,Dl=null,t)throw Error(f(300));e===null||gt||(e=e.dependencies,e!==null&&Hi(e)&&(gt=!0))}function Fs(e,t,n,a){Oe=e;var i=0;do{if(Ol&&(Dl=null),yu=0,Ol=!1,25<=i)throw Error(f(301));if(i+=1,ft=qe=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}$.H=Ka,r=t(n,a)}while(Ol);return r}function fg(){var e=$.H,t=e.useState()[0];return t=typeof t.then=="function"?vu(t):t,e=e.useState()[0],(qe!==null?qe.memoizedState:null)!==e&&(Oe.flags|=1024),t}function pc(){var e=Mi!==0;return Mi=0,e}function Ec(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function bc(e){if(Ci){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ci=!1}fa=0,ft=qe=Oe=null,Ol=!1,yu=Mi=0,Dl=null}function Lt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?Oe.memoizedState=ft=e:ft=ft.next=e,ft}function ot(){if(qe===null){var e=Oe.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=ft===null?Oe.memoizedState:ft.next;if(t!==null)ft=t,qe=e;else{if(e===null)throw Oe.alternate===null?Error(f(467)):Error(f(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},ft===null?Oe.memoizedState=ft=e:ft=ft.next=e}return ft}var Ai;Ai=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function vu(e){var t=yu;return yu+=1,Dl===null&&(Dl=[]),e=qs(Dl,e,t),t=Oe,(ft===null?t.memoizedState:ft.next)===null&&(t=t.alternate,$.H=t===null||t.memoizedState===null?Za:oa),e}function _i(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vu(e);if(e.$$typeof===D)return Dt(e)}throw Error(f(438,String(e)))}function Sc(e){var t=null,n=Oe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=Oe.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ai(),Oe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=le;return t.index++,n}function Gn(e,t){return typeof t=="function"?t(e):t}function wi(e){var t=ot();return Rc(t,qe,e)}function Rc(e,t,n){var a=e.queue;if(a===null)throw Error(f(311));a.lastRenderedReducer=n;var i=e.baseQueue,r=a.pending;if(r!==null){if(i!==null){var d=i.next;i.next=r.next,r.next=d}t.baseQueue=i=r,a.pending=null}if(r=e.baseState,i===null)e.memoizedState=r;else{t=i.next;var g=d=null,E=null,C=t,B=!1;do{var X=C.lane&-536870913;if(X!==C.lane?(ze&X)===X:(fa&X)===X){var z=C.revertLane;if(z===0)E!==null&&(E=E.next={lane:0,revertLane:0,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),X===Tl&&(B=!0);else if((fa&z)===z){C=C.next,z===Tl&&(B=!0);continue}else X={lane:0,revertLane:C.revertLane,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},E===null?(g=E=X,d=r):E=E.next=X,Oe.lanes|=z,Ea|=z;X=C.action,Qa&&n(r,X),r=C.hasEagerState?C.eagerState:n(r,X)}else z={lane:X,revertLane:C.revertLane,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},E===null?(g=E=z,d=r):E=E.next=z,Oe.lanes|=X,Ea|=X;C=C.next}while(C!==null&&C!==t);if(E===null?d=r:E.next=g,!Vt(r,e.memoizedState)&&(gt=!0,B&&(n=xl,n!==null)))throw n;e.memoizedState=r,e.baseState=d,e.baseQueue=E,a.lastRenderedState=r}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Tc(e){var t=ot(),n=t.queue;if(n===null)throw Error(f(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,r=t.memoizedState;if(i!==null){n.pending=null;var d=i=i.next;do r=e(r,d.action),d=d.next;while(d!==i);Vt(r,t.memoizedState)||(gt=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),n.lastRenderedState=r}return[r,a]}function Ws(e,t,n){var a=Oe,i=ot(),r=Ue;if(r){if(n===void 0)throw Error(f(407));n=n()}else n=t();var d=!Vt((qe||i).memoizedState,n);if(d&&(i.memoizedState=n,gt=!0),i=i.queue,Dc(ed.bind(null,a,i,e),[e]),i.getSnapshot!==t||d||ft!==null&&ft.memoizedState.tag&1){if(a.flags|=2048,Cl(9,Is.bind(null,a,i,n,t),{destroy:void 0},null),Ze===null)throw Error(f(349));r||fa&60||Ps(a,t,n)}return n}function Ps(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Oe.updateQueue,t===null?(t=Ai(),Oe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Is(e,t,n,a){t.value=n,t.getSnapshot=a,td(t)&&nd(e)}function ed(e,t,n){return n(function(){td(t)&&nd(e)})}function td(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vt(e,n)}catch{return!0}}function nd(e){var t=ia(e,2);t!==null&&wt(t,e,2)}function xc(e){var t=Lt();if(typeof e=="function"){var n=e;if(e=n(),Qa){Gt(!0);try{n()}finally{Gt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:e},t}function ad(e,t,n,a){return e.baseState=n,Rc(e,qe,typeof a=="function"?a:Gn)}function og(e,t,n,a,i){if(Ui(e))throw Error(f(485));if(e=t.action,e!==null){var r={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){r.listeners.push(d)}};$.T!==null?n(!0):r.isTransition=!1,a(r),n=t.pending,n===null?(r.next=t.pending=r,ld(t,r)):(r.next=n.next,t.pending=n.next=r)}}function ld(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var r=$.T,d={};$.T=d;try{var g=n(i,a),E=$.S;E!==null&&E(d,g),ud(e,t,g)}catch(C){Oc(e,t,C)}finally{$.T=r}}else try{r=n(i,a),ud(e,t,r)}catch(C){Oc(e,t,C)}}function ud(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){id(e,t,a)},function(a){return Oc(e,t,a)}):id(e,t,n)}function id(e,t,n){t.status="fulfilled",t.value=n,rd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ld(e,n)))}function Oc(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,rd(t),t=t.next;while(t!==a)}e.action=null}function rd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function cd(e,t){return t}function fd(e,t){if(Ue){var n=Ze.formState;if(n!==null){e:{var a=Oe;if(Ue){if(Rt){t:{for(var i=Rt,r=Dn;i.nodeType!==8;){if(!r){i=null;break t}if(i=Rn(i.nextSibling),i===null){i=null;break t}}r=i.data,i=r==="F!"||r==="F"?i:null}if(i){Rt=Rn(i.nextSibling),a=i.data==="F!";break e}}Ga(a)}a=!1}a&&(t=n[0])}}return n=Lt(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cd,lastRenderedState:t},n.queue=a,n=Cd.bind(null,Oe,a),a.dispatch=n,a=xc(!1),r=wc.bind(null,Oe,!1,a.queue),a=Lt(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,n=og.bind(null,Oe,i,r,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function od(e){var t=ot();return sd(t,qe,e)}function sd(e,t,n){t=Rc(e,t,cd)[0],e=wi(Gn)[0],t=typeof t=="object"&&t!==null&&typeof t.then=="function"?vu(t):t;var a=ot(),i=a.queue,r=i.dispatch;return n!==a.memoizedState&&(Oe.flags|=2048,Cl(9,sg.bind(null,i,n),{destroy:void 0},null)),[t,r,e]}function sg(e,t){e.action=t}function dd(e){var t=ot(),n=qe;if(n!==null)return sd(t,n,e);ot(),t=t.memoizedState,n=ot();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Cl(e,t,n,a){return e={tag:e,create:t,inst:n,deps:a,next:null},t=Oe.updateQueue,t===null&&(t=Ai(),Oe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function hd(){return ot().memoizedState}function Ni(e,t,n,a){var i=Lt();Oe.flags|=e,i.memoizedState=Cl(1|t,n,{destroy:void 0},a===void 0?null:a)}function zi(e,t,n,a){var i=ot();a=a===void 0?null:a;var r=i.memoizedState.inst;qe!==null&&a!==null&&vc(a,qe.memoizedState.deps)?i.memoizedState=Cl(t,n,r,a):(Oe.flags|=e,i.memoizedState=Cl(1|t,n,r,a))}function md(e,t){Ni(8390656,8,e,t)}function Dc(e,t){zi(2048,8,e,t)}function yd(e,t){return zi(4,2,e,t)}function vd(e,t){return zi(4,4,e,t)}function gd(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function pd(e,t,n){n=n!=null?n.concat([e]):null,zi(4,4,gd.bind(null,t,e),n)}function Cc(){}function Ed(e,t){var n=ot();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&vc(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function bd(e,t){var n=ot();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&vc(t,a[1]))return a[0];if(a=e(),Qa){Gt(!0);try{e()}finally{Gt(!1)}}return n.memoizedState=[a,t],a}function Mc(e,t,n){return n===void 0||fa&1073741824?e.memoizedState=t:(e.memoizedState=n,e=Rh(),Oe.lanes|=e,Ea|=e,n)}function Sd(e,t,n,a){return Vt(n,t)?n:Rl.current!==null?(e=Mc(e,n,a),Vt(e,t)||(gt=!0),e):fa&42?(e=Rh(),Oe.lanes|=e,Ea|=e,t):(gt=!0,e.memoizedState=n)}function Rd(e,t,n,a,i){var r=J.p;J.p=r!==0&&8>r?r:8;var d=$.T,g={};$.T=g,wc(e,!1,t,n);try{var E=i(),C=$.S;if(C!==null&&C(g,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var B=rg(E,a);gu(e,t,B,kt(e))}else gu(e,t,a,kt(e))}catch(X){gu(e,t,{then:function(){},status:"rejected",reason:X},kt())}finally{J.p=r,$.T=d}}function dg(){}function Ac(e,t,n,a){if(e.tag!==5)throw Error(f(476));var i=Td(e).queue;Rd(e,i,t,ve,n===null?dg:function(){return xd(e),n(a)})}function Td(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ve,baseState:ve,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:ve},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function xd(e){var t=Td(e).next.queue;gu(e,t,{},kt())}function _c(){return Dt(Hu)}function Od(){return ot().memoizedState}function Dd(){return ot().memoizedState}function hg(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=kt();e=ha(n);var a=ma(t,e,n);a!==null&&(wt(a,t,n),bu(a,t,n)),t={cache:hc()},e.payload=t;return}t=t.return}}function mg(e,t,n){var a=kt();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Ui(e)?Md(t,n):(n=ic(e,t,n,a),n!==null&&(wt(n,e,a),Ad(n,t,a)))}function Cd(e,t,n){var a=kt();gu(e,t,n,a)}function gu(e,t,n,a){var i={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ui(e))Md(t,i);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var d=t.lastRenderedState,g=r(d,n);if(i.hasEagerState=!0,i.eagerState=g,Vt(g,d))return gi(e,t,i,0),Ze===null&&vi(),!1}catch{}finally{}if(n=ic(e,t,i,a),n!==null)return wt(n,e,a),Ad(n,t,a),!0}return!1}function wc(e,t,n,a){if(a={lane:2,revertLane:Sf(),action:a,hasEagerState:!1,eagerState:null,next:null},Ui(e)){if(t)throw Error(f(479))}else t=ic(e,n,a,2),t!==null&&wt(t,e,2)}function Ui(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function Md(e,t){Ol=Ci=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ad(e,t,n){if(n&4194176){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ge(e,n)}}var Mn={readContext:Dt,use:_i,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt};Mn.useCacheRefresh=rt,Mn.useMemoCache=rt,Mn.useHostTransitionStatus=rt,Mn.useFormState=rt,Mn.useActionState=rt,Mn.useOptimistic=rt;var Za={readContext:Dt,use:_i,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:Dt,useEffect:md,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ni(4194308,4,gd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){Ni(4,2,e,t)},useMemo:function(e,t){var n=Lt();t=t===void 0?null:t;var a=e();if(Qa){Gt(!0);try{e()}finally{Gt(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Lt();if(n!==void 0){var i=n(t);if(Qa){Gt(!0);try{n(t)}finally{Gt(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=mg.bind(null,Oe,e),[a.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:function(e){e=xc(e);var t=e.queue,n=Cd.bind(null,Oe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Cc,useDeferredValue:function(e,t){var n=Lt();return Mc(n,e,t)},useTransition:function(){var e=xc(!1);return e=Rd.bind(null,Oe,e.queue,!0,!1),Lt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Oe,i=Lt();if(Ue){if(n===void 0)throw Error(f(407));n=n()}else{if(n=t(),Ze===null)throw Error(f(349));ze&60||Ps(a,t,n)}i.memoizedState=n;var r={value:n,getSnapshot:t};return i.queue=r,md(ed.bind(null,a,r,e),[e]),a.flags|=2048,Cl(9,Is.bind(null,a,r,n,t),{destroy:void 0},null),n},useId:function(){var e=Lt(),t=Ze.identifierPrefix;if(Ue){var n=qn,a=Bn;n=(a&~(1<<32-Ot(a)-1)).toString(32)+n,t=":"+t+"R"+n,n=Mi++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=cg++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return Lt().memoizedState=hg.bind(null,Oe)}};Za.useMemoCache=Sc,Za.useHostTransitionStatus=_c,Za.useFormState=fd,Za.useActionState=fd,Za.useOptimistic=function(e){var t=Lt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=wc.bind(null,Oe,!0,n),n.dispatch=t,[e,t]};var oa={readContext:Dt,use:_i,useCallback:Ed,useContext:Dt,useEffect:Dc,useImperativeHandle:pd,useInsertionEffect:yd,useLayoutEffect:vd,useMemo:bd,useReducer:wi,useRef:hd,useState:function(){return wi(Gn)},useDebugValue:Cc,useDeferredValue:function(e,t){var n=ot();return Sd(n,qe.memoizedState,e,t)},useTransition:function(){var e=wi(Gn)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:vu(e),t]},useSyncExternalStore:Ws,useId:Od};oa.useCacheRefresh=Dd,oa.useMemoCache=Sc,oa.useHostTransitionStatus=_c,oa.useFormState=od,oa.useActionState=od,oa.useOptimistic=function(e,t){var n=ot();return ad(n,qe,e,t)};var Ka={readContext:Dt,use:_i,useCallback:Ed,useContext:Dt,useEffect:Dc,useImperativeHandle:pd,useInsertionEffect:yd,useLayoutEffect:vd,useMemo:bd,useReducer:Tc,useRef:hd,useState:function(){return Tc(Gn)},useDebugValue:Cc,useDeferredValue:function(e,t){var n=ot();return qe===null?Mc(n,e,t):Sd(n,qe.memoizedState,e,t)},useTransition:function(){var e=Tc(Gn)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:vu(e),t]},useSyncExternalStore:Ws,useId:Od};Ka.useCacheRefresh=Dd,Ka.useMemoCache=Sc,Ka.useHostTransitionStatus=_c,Ka.useFormState=dd,Ka.useActionState=dd,Ka.useOptimistic=function(e,t){var n=ot();return qe!==null?ad(n,qe,e,t):(n.baseState=e,[e,n.queue.dispatch])};function Nc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var zc={isMounted:function(e){return(e=e._reactInternals)?W(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var a=kt(),i=ha(a);i.payload=t,n!=null&&(i.callback=n),t=ma(e,i,a),t!==null&&(wt(t,e,a),bu(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=kt(),i=ha(a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ma(e,i,a),t!==null&&(wt(t,e,a),bu(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=kt(),a=ha(n);a.tag=2,t!=null&&(a.callback=t),t=ma(e,a,n),t!==null&&(wt(t,e,n),bu(t,e,n))}};function _d(e,t,n,a,i,r,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,r,d):t.prototype&&t.prototype.isPureReactComponent?!lu(n,a)||!lu(i,r):!0}function wd(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&zc.enqueueReplaceState(t,t.state,null)}function ka(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=ie({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}var ji=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Nd(e){ji(e)}function zd(e){console.error(e)}function Ud(e){ji(e)}function Li(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function jd(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Uc(e,t,n){return n=ha(n),n.tag=3,n.payload={element:null},n.callback=function(){Li(e,t)},n}function Ld(e){return e=ha(e),e.tag=3,e}function Hd(e,t,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var r=a.value;e.payload=function(){return i(r)},e.callback=function(){jd(t,n,a)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){jd(t,n,a),typeof i!="function"&&(ba===null?ba=new Set([this]):ba.add(this));var g=a.stack;this.componentDidCatch(a.value,{componentStack:g!==null?g:""})})}function yg(e,t,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Eu(t,n,i,!0),n=un.current,n!==null){switch(n.tag){case 13:return Cn===null?vf():n.alternate===null&&at===0&&(at=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===oc?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),pf(e,a,i)),!1;case 22:return n.flags|=65536,a===oc?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),pf(e,a,i)),!1}throw Error(f(435,n.tag))}return pf(e,a,i),vf(),!1}if(Ue)return t=un.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==fc&&(e=Error(f(422),{cause:a}),cu(nn(e,n)))):(a!==fc&&(t=Error(f(423),{cause:a}),cu(nn(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=nn(a,n),i=Uc(e.stateNode,a,i),Jc(e,i),at!==4&&(at=2)),!1;var r=Error(f(520),{cause:a});if(r=nn(r,n),Mu===null?Mu=[r]:Mu.push(r),at!==4&&(at=2),t===null)return!0;a=nn(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Uc(n.stateNode,a,e),Jc(n,e),!1;case 1:if(t=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(ba===null||!ba.has(r))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Ld(i),Hd(i,e,n,a),Jc(n,i),!1}n=n.return}while(n!==null);return!1}var Bd=Error(f(461)),gt=!1;function Tt(e,t,n,a){t.child=e===null?Vs(t,null,n,a):Xa(t,e.child,n,a)}function qd(e,t,n,a,i){n=n.render;var r=t.ref;if("ref"in a){var d={};for(var g in a)g!=="ref"&&(d[g]=a[g])}else d=a;return Ja(t),a=gc(e,t,n,d,r,i),g=pc(),e!==null&&!gt?(Ec(e,t,i),Xn(e,t,i)):(Ue&&g&&rc(t),t.flags|=1,Tt(e,t,a,i),t.child)}function Yd(e,t,n,a,i){if(e===null){var r=n.type;return typeof r=="function"&&!af(r)&&r.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=r,Gd(e,t,r,a,i)):(e=Gi(n.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Vc(e,i)){var d=r.memoizedProps;if(n=n.compare,n=n!==null?n:lu,n(d,a)&&e.ref===t.ref)return Xn(e,t,i)}return t.flags|=1,e=pa(r,a),e.ref=t.ref,e.return=t,t.child=e}function Gd(e,t,n,a,i){if(e!==null){var r=e.memoizedProps;if(lu(r,a)&&e.ref===t.ref)if(gt=!1,t.pendingProps=a=r,Vc(e,i))e.flags&131072&&(gt=!0);else return t.lanes=e.lanes,Xn(e,t,i)}return jc(e,t,n,a,i)}function Xd(e,t,n){var a=t.pendingProps,i=a.children,r=(t.stateNode._pendingVisibility&2)!==0,d=e!==null?e.memoizedState:null;if(pu(e,t),a.mode==="hidden"||r){if(t.flags&128){if(a=d!==null?d.baseLanes|n:n,e!==null){for(i=t.child=e.child,r=0;i!==null;)r=r|i.lanes|i.childLanes,i=i.sibling;t.childLanes=r&~a}else t.childLanes=0,t.child=null;return Vd(e,t,a,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Di(t,d!==null?d.cachePool:null),d!==null?Qs(t,d):sc(),Zs(t);else return t.lanes=t.childLanes=536870912,Vd(e,t,d!==null?d.baseLanes|n:n,n)}else d!==null?(Di(t,d.cachePool),Qs(t,d),ca(),t.memoizedState=null):(e!==null&&Di(t,null),sc(),ca());return Tt(e,t,i,n),t.child}function Vd(e,t,n,a){var i=yc();return i=i===null?null:{parent:mt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&Di(t,null),sc(),Zs(t),e!==null&&Eu(e,t,a,!0),null}function pu(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=2097664);else{if(typeof n!="function"&&typeof n!="object")throw Error(f(284));(e===null||e.ref!==n)&&(t.flags|=2097664)}}function jc(e,t,n,a,i){return Ja(t),n=gc(e,t,n,a,void 0,i),a=pc(),e!==null&&!gt?(Ec(e,t,i),Xn(e,t,i)):(Ue&&a&&rc(t),t.flags|=1,Tt(e,t,n,i),t.child)}function Qd(e,t,n,a,i,r){return Ja(t),t.updateQueue=null,n=Fs(t,a,n,i),Js(e),a=pc(),e!==null&&!gt?(Ec(e,t,r),Xn(e,t,r)):(Ue&&a&&rc(t),t.flags|=1,Tt(e,t,n,r),t.child)}function Zd(e,t,n,a,i){if(Ja(t),t.stateNode===null){var r=pl,d=n.contextType;typeof d=="object"&&d!==null&&(r=Dt(d)),r=new n(a,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=zc,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=a,r.state=t.memoizedState,r.refs={},kc(t),d=n.contextType,r.context=typeof d=="object"&&d!==null?Dt(d):pl,r.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Nc(t,n,d,a),r.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(d=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),d!==r.state&&zc.enqueueReplaceState(r,r.state,null),Ru(t,a,r,i),Su(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){r=t.stateNode;var g=t.memoizedProps,E=ka(n,g);r.props=E;var C=r.context,B=n.contextType;d=pl,typeof B=="object"&&B!==null&&(d=Dt(B));var X=n.getDerivedStateFromProps;B=typeof X=="function"||typeof r.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,B||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(g||C!==d)&&wd(t,r,a,d),da=!1;var z=t.memoizedState;r.state=z,Ru(t,a,r,i),Su(),C=t.memoizedState,g||z!==C||da?(typeof X=="function"&&(Nc(t,n,X,a),C=t.memoizedState),(E=da||_d(t,n,E,a,z,C,d))?(B||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=C),r.props=a,r.state=C,r.context=d,a=E):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{r=t.stateNode,$c(e,t),d=t.memoizedProps,B=ka(n,d),r.props=B,X=t.pendingProps,z=r.context,C=n.contextType,E=pl,typeof C=="object"&&C!==null&&(E=Dt(C)),g=n.getDerivedStateFromProps,(C=typeof g=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==X||z!==E)&&wd(t,r,a,E),da=!1,z=t.memoizedState,r.state=z,Ru(t,a,r,i),Su();var H=t.memoizedState;d!==X||z!==H||da||e!==null&&e.dependencies!==null&&Hi(e.dependencies)?(typeof g=="function"&&(Nc(t,n,g,a),H=t.memoizedState),(B=da||_d(t,n,B,a,z,H,E)||e!==null&&e.dependencies!==null&&Hi(e.dependencies))?(C||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,H,E),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,H,E)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=H),r.props=a,r.state=H,r.context=E,a=B):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return r=a,pu(e,t),a=(t.flags&128)!==0,r||a?(r=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&a?(t.child=Xa(t,e.child,null,i),t.child=Xa(t,null,n,i)):Tt(e,t,n,i),t.memoizedState=r.state,e=t.child):e=Xn(e,t,i),e}function Kd(e,t,n,a){return ru(),t.flags|=256,Tt(e,t,n,a),t.child}var Lc={dehydrated:null,treeContext:null,retryLane:0};function Hc(e){return{baseLanes:e,cachePool:$s()}}function Bc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=on),e}function kd(e,t,n){var a=t.pendingProps,i=!1,r=(t.flags&128)!==0,d;if((d=r)||(d=e!==null&&e.memoizedState===null?!1:(ht.current&2)!==0),d&&(i=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ue){if(i?ra(t):ca(),Ue){var g=Rt,E;if(E=g){e:{for(E=g,g=Dn;E.nodeType!==8;){if(!g){g=null;break e}if(E=Rn(E.nextSibling),E===null){g=null;break e}}g=E}g!==null?(t.memoizedState={dehydrated:g,treeContext:qa!==null?{id:Bn,overflow:qn}:null,retryLane:536870912},E=fn(18,null,null,0),E.stateNode=g,E.return=t,t.child=E,_t=t,Rt=null,E=!0):E=!1}E||Ga(t)}if(g=t.memoizedState,g!==null&&(g=g.dehydrated,g!==null))return g.data==="$!"?t.lanes=16:t.lanes=536870912,null;Yn(t)}return g=a.children,a=a.fallback,i?(ca(),i=t.mode,g=Yc({mode:"hidden",children:g},i),a=Wa(a,i,n,null),g.return=t,a.return=t,g.sibling=a,t.child=g,i=t.child,i.memoizedState=Hc(n),i.childLanes=Bc(e,d,n),t.memoizedState=Lc,a):(ra(t),qc(t,g))}if(E=e.memoizedState,E!==null&&(g=E.dehydrated,g!==null)){if(r)t.flags&256?(ra(t),t.flags&=-257,t=Gc(e,t,n)):t.memoizedState!==null?(ca(),t.child=e.child,t.flags|=128,t=null):(ca(),i=a.fallback,g=t.mode,a=Yc({mode:"visible",children:a.children},g),i=Wa(i,g,n,null),i.flags|=2,a.return=t,i.return=t,a.sibling=i,t.child=a,Xa(t,e.child,null,n),a=t.child,a.memoizedState=Hc(n),a.childLanes=Bc(e,d,n),t.memoizedState=Lc,t=i);else if(ra(t),g.data==="$!"){if(d=g.nextSibling&&g.nextSibling.dataset,d)var C=d.dgst;d=C,a=Error(f(419)),a.stack="",a.digest=d,cu({value:a,source:null,stack:null}),t=Gc(e,t,n)}else if(gt||Eu(e,t,n,!1),d=(n&e.childLanes)!==0,gt||d){if(d=Ze,d!==null){if(a=n&-n,a&42)a=1;else switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=64;break;case 268435456:a=134217728;break;default:a=0}if(a=a&(d.suspendedLanes|n)?0:a,a!==0&&a!==E.retryLane)throw E.retryLane=a,ia(e,a),wt(d,e,a),Bd}g.data==="$?"||vf(),t=Gc(e,t,n)}else g.data==="$?"?(t.flags|=128,t.child=e.child,t=_g.bind(null,e),g._reactRetry=t,t=null):(e=E.treeContext,Rt=Rn(g.nextSibling),_t=t,Ue=!0,bn=null,Dn=!1,e!==null&&(an[ln++]=Bn,an[ln++]=qn,an[ln++]=qa,Bn=e.id,qn=e.overflow,qa=t),t=qc(t,a.children),t.flags|=4096);return t}return i?(ca(),i=a.fallback,g=t.mode,E=e.child,C=E.sibling,a=pa(E,{mode:"hidden",children:a.children}),a.subtreeFlags=E.subtreeFlags&31457280,C!==null?i=pa(C,i):(i=Wa(i,g,n,null),i.flags|=2),i.return=t,a.return=t,a.sibling=i,t.child=a,a=i,i=t.child,g=e.child.memoizedState,g===null?g=Hc(n):(E=g.cachePool,E!==null?(C=mt._currentValue,E=E.parent!==C?{parent:C,pool:C}:E):E=$s(),g={baseLanes:g.baseLanes|n,cachePool:E}),i.memoizedState=g,i.childLanes=Bc(e,d,n),t.memoizedState=Lc,a):(ra(t),n=e.child,e=n.sibling,n=pa(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function qc(e,t){return t=Yc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Yc(e,t){return Eh(e,t,0,null)}function Gc(e,t,n){return Xa(t,e.child,null,n),e=qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $d(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Zc(e.return,t,n)}function Xc(e,t,n,a,i){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=a,r.tail=n,r.tailMode=i)}function Jd(e,t,n){var a=t.pendingProps,i=a.revealOrder,r=a.tail;if(Tt(e,t,a.children,n),a=ht.current,a&2)a=a&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$d(e,n,t);else if(e.tag===19)$d(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(De(ht,a),i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Oi(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Xc(t,!1,i,n,r);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Oi(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Xc(t,!0,n,null,r);break;case"together":Xc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Xn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ea|=t.lanes,!(n&t.childLanes))if(e!==null){if(Eu(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(f(153));if(t.child!==null){for(e=t.child,n=pa(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pa(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vc(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Hi(e)))}function vg(e,t,n){switch(t.tag){case 3:Le(t,t.stateNode.containerInfo),sa(t,mt,e.memoizedState.cache),ru();break;case 27:case 5:hn(t);break;case 4:Le(t,t.stateNode.containerInfo);break;case 10:sa(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ra(t),t.flags|=128,null):n&t.child.childLanes?kd(e,t,n):(ra(t),e=Xn(e,t,n),e!==null?e.sibling:null);ra(t);break;case 19:var i=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Eu(e,t,n,!1),a=(n&t.childLanes)!==0),i){if(a)return Jd(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),De(ht,ht.current),a)break;return null;case 22:case 23:return t.lanes=0,Xd(e,t,n);case 24:sa(t,mt,e.memoizedState.cache)}return Xn(e,t,n)}function Fd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)gt=!0;else{if(!Vc(e,n)&&!(t.flags&128))return gt=!1,vg(e,t,n);gt=!!(e.flags&131072)}else gt=!1,Ue&&t.flags&1048576&&Us(t,bi,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,i=a._init;if(a=i(a._payload),t.type=a,typeof a=="function")af(a)?(e=ka(a,e),t.tag=1,t=Zd(null,t,a,e,n)):(t.tag=0,t=jc(null,t,a,e,n));else{if(a!=null){if(i=a.$$typeof,i===N){t.tag=11,t=qd(null,t,a,e,n);break e}else if(i===U){t.tag=14,t=Yd(null,t,a,e,n);break e}}throw t=oe(a)||a,Error(f(306,t,""))}}return t;case 0:return jc(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,i=ka(a,t.pendingProps),Zd(e,t,a,i,n);case 3:e:{if(Le(t,t.stateNode.containerInfo),e===null)throw Error(f(387));var r=t.pendingProps;i=t.memoizedState,a=i.element,$c(e,t),Ru(t,r,null,n);var d=t.memoizedState;if(r=d.cache,sa(t,mt,r),r!==i.cache&&Kc(t,[mt],n,!0),Su(),r=d.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Kd(e,t,r,n);break e}else if(r!==a){a=nn(Error(f(424)),t),cu(a),t=Kd(e,t,r,n);break e}else for(Rt=Rn(t.stateNode.containerInfo.firstChild),_t=t,Ue=!0,bn=null,Dn=!0,n=Vs(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ru(),r===a){t=Xn(e,t,n);break e}Tt(e,t,r,n)}t=t.child}return t;case 26:return pu(e,t),e===null?(n=Ih(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ue||(n=t.type,e=t.pendingProps,a=Ii(et.current).createElement(n),a[de]=t,a[xe]=e,xt(a,n,e),Fe(a),t.stateNode=a):t.memoizedState=Ih(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return hn(t),e===null&&Ue&&(a=t.stateNode=Fh(t.type,t.pendingProps,et.current),_t=t,Dn=!0,Rt=Rn(a.firstChild)),a=t.pendingProps.children,e!==null||Ue?Tt(e,t,a,n):t.child=Xa(t,null,a,n),pu(e,t),t.child;case 5:return e===null&&Ue&&((i=a=Rt)&&(a=Kg(a,t.type,t.pendingProps,Dn),a!==null?(t.stateNode=a,_t=t,Rt=Rn(a.firstChild),Dn=!1,i=!0):i=!1),i||Ga(t)),hn(t),i=t.type,r=t.pendingProps,d=e!==null?e.memoizedProps:null,a=r.children,_f(i,r)?a=null:d!==null&&_f(i,d)&&(t.flags|=32),t.memoizedState!==null&&(i=gc(e,t,fg,null,null,n),Hu._currentValue=i),pu(e,t),Tt(e,t,a,n),t.child;case 6:return e===null&&Ue&&((e=n=Rt)&&(n=kg(n,t.pendingProps,Dn),n!==null?(t.stateNode=n,_t=t,Rt=null,e=!0):e=!1),e||Ga(t)),null;case 13:return kd(e,t,n);case 4:return Le(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Xa(t,null,a,n):Tt(e,t,a,n),t.child;case 11:return qd(e,t,t.type,t.pendingProps,n);case 7:return Tt(e,t,t.pendingProps,n),t.child;case 8:return Tt(e,t,t.pendingProps.children,n),t.child;case 12:return Tt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,sa(t,t.type,a.value),Tt(e,t,a.children,n),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,Ja(t),i=Dt(i),a=a(i),t.flags|=1,Tt(e,t,a,n),t.child;case 14:return Yd(e,t,t.type,t.pendingProps,n);case 15:return Gd(e,t,t.type,t.pendingProps,n);case 19:return Jd(e,t,n);case 22:return Xd(e,t,n);case 24:return Ja(t),a=Dt(mt),e===null?(i=yc(),i===null&&(i=Ze,r=hc(),i.pooledCache=r,r.refCount++,r!==null&&(i.pooledCacheLanes|=n),i=r),t.memoizedState={parent:a,cache:i},kc(t),sa(t,mt,i)):(e.lanes&n&&($c(e,t),Ru(t,null,null,n),Su()),i=e.memoizedState,r=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),sa(t,mt,a)):(a=r.cache,sa(t,mt,a),a!==i.cache&&Kc(t,[mt],n,!0))),Tt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(f(156,t.tag))}var Qc=_e(null),$a=null,Vn=null;function sa(e,t,n){De(Qc,t._currentValue),t._currentValue=n}function Qn(e){e._currentValue=Qc.current,Se(Qc)}function Zc(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Kc(e,t,n,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var r=i.dependencies;if(r!==null){var d=i.child;r=r.firstContext;e:for(;r!==null;){var g=r;r=i;for(var E=0;E<t.length;E++)if(g.context===t[E]){r.lanes|=n,g=r.alternate,g!==null&&(g.lanes|=n),Zc(r.return,n,e),a||(d=null);break e}r=g.next}}else if(i.tag===18){if(d=i.return,d===null)throw Error(f(341));d.lanes|=n,r=d.alternate,r!==null&&(r.lanes|=n),Zc(d,n,e),d=null}else d=i.child;if(d!==null)d.return=i;else for(d=i;d!==null;){if(d===e){d=null;break}if(i=d.sibling,i!==null){i.return=d.return,d=i;break}d=d.return}i=d}}function Eu(e,t,n,a){e=null;for(var i=t,r=!1;i!==null;){if(!r){if(i.flags&524288)r=!0;else if(i.flags&262144)break}if(i.tag===10){var d=i.alternate;if(d===null)throw Error(f(387));if(d=d.memoizedProps,d!==null){var g=i.type;Vt(i.pendingProps.value,d.value)||(e!==null?e.push(g):e=[g])}}else if(i===qt.current){if(d=i.alternate,d===null)throw Error(f(387));d.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(Hu):e=[Hu])}i=i.return}e!==null&&Kc(t,e,n,a),t.flags|=262144}function Hi(e){for(e=e.firstContext;e!==null;){if(!Vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ja(e){$a=e,Vn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Dt(e){return Wd($a,e)}function Bi(e,t){return $a===null&&Ja(e),Wd(e,t)}function Wd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Vn===null){if(e===null)throw Error(f(308));Vn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vn=Vn.next=t;return n}var da=!1;function kc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $c(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ha(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ma(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,Pe&2){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=pi(e),Ns(e,null,n),t}return gi(e,a,t,n),pi(e)}function bu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194176)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,ge(e,n)}}function Jc(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?i=r=d:r=r.next=d,n=n.next}while(n!==null);r===null?i=r=t:r=r.next=t}else i=r=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Fc=!1;function Su(){if(Fc){var e=xl;if(e!==null)throw e}}function Ru(e,t,n,a){Fc=!1;var i=e.updateQueue;da=!1;var r=i.firstBaseUpdate,d=i.lastBaseUpdate,g=i.shared.pending;if(g!==null){i.shared.pending=null;var E=g,C=E.next;E.next=null,d===null?r=C:d.next=C,d=E;var B=e.alternate;B!==null&&(B=B.updateQueue,g=B.lastBaseUpdate,g!==d&&(g===null?B.firstBaseUpdate=C:g.next=C,B.lastBaseUpdate=E))}if(r!==null){var X=i.baseState;d=0,B=C=E=null,g=r;do{var z=g.lane&-536870913,H=z!==g.lane;if(H?(ze&z)===z:(a&z)===z){z!==0&&z===Tl&&(Fc=!0),B!==null&&(B=B.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var re=e,Ee=g;z=t;var lt=n;switch(Ee.tag){case 1:if(re=Ee.payload,typeof re=="function"){X=re.call(lt,X,z);break e}X=re;break e;case 3:re.flags=re.flags&-65537|128;case 0:if(re=Ee.payload,z=typeof re=="function"?re.call(lt,X,z):re,z==null)break e;X=ie({},X,z);break e;case 2:da=!0}}z=g.callback,z!==null&&(e.flags|=64,H&&(e.flags|=8192),H=i.callbacks,H===null?i.callbacks=[z]:H.push(z))}else H={lane:z,tag:g.tag,payload:g.payload,callback:g.callback,next:null},B===null?(C=B=H,E=X):B=B.next=H,d|=z;if(g=g.next,g===null){if(g=i.shared.pending,g===null)break;H=g,g=H.next,H.next=null,i.lastBaseUpdate=H,i.shared.pending=null}}while(!0);B===null&&(E=X),i.baseState=E,i.firstBaseUpdate=C,i.lastBaseUpdate=B,r===null&&(i.shared.lanes=0),Ea|=d,e.lanes=d,e.memoizedState=X}}function Pd(e,t){if(typeof e!="function")throw Error(f(191,e));e.call(t)}function Id(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Pd(n[e],t)}function Tu(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var r=n.create,d=n.inst;a=r(),d.destroy=a}n=n.next}while(n!==i)}}catch(g){Qe(t,t.return,g)}}function ya(e,t,n){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var r=i.next;a=r;do{if((a.tag&e)===e){var d=a.inst,g=d.destroy;if(g!==void 0){d.destroy=void 0,i=t;var E=n;try{g()}catch(C){Qe(i,E,C)}}}a=a.next}while(a!==r)}}catch(C){Qe(t,t.return,C)}}function eh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Id(t,n)}catch(a){Qe(e,e.return,a)}}}function th(e,t,n){n.props=ka(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Qe(e,t,a)}}function Fa(e,t){try{var n=e.ref;if(n!==null){var a=e.stateNode;switch(e.tag){case 26:case 27:case 5:var i=a;break;default:i=a}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){Qe(e,t,r)}}function Qt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){Qe(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Qe(e,t,i)}else n.current=null}function nh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){Qe(e,e.return,i)}}function ah(e,t,n){try{var a=e.stateNode;Gg(a,e.type,n,t),a[xe]=t}catch(i){Qe(e,e.return,i)}}function lh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function Wc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==27&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pc(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Pi));else if(a!==4&&a!==27&&(e=e.child,e!==null))for(Pc(e,t,n),e=e.sibling;e!==null;)Pc(e,t,n),e=e.sibling}function qi(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&a!==27&&(e=e.child,e!==null))for(qi(e,t,n),e=e.sibling;e!==null;)qi(e,t,n),e=e.sibling}var Zn=!1,nt=!1,Ic=!1,uh=typeof WeakSet=="function"?WeakSet:Set,pt=null,ih=!1;function gg(e,t){if(e=e.containerInfo,Mf=ur,e=Ts(e),tc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break e}var d=0,g=-1,E=-1,C=0,B=0,X=e,z=null;t:for(;;){for(var H;X!==n||i!==0&&X.nodeType!==3||(g=d+i),X!==r||a!==0&&X.nodeType!==3||(E=d+a),X.nodeType===3&&(d+=X.nodeValue.length),(H=X.firstChild)!==null;)z=X,X=H;for(;;){if(X===e)break t;if(z===n&&++C===i&&(g=d),z===r&&++B===a&&(E=d),(H=X.nextSibling)!==null)break;X=z,z=X.parentNode}X=H}n=g===-1||E===-1?null:{start:g,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(Af={focusedElem:e,selectionRange:n},ur=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){switch(t=pt,r=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&r!==null){e=void 0,n=t,i=r.memoizedProps,r=r.memoizedState,a=n.stateNode;try{var re=ka(n.type,i,n.elementType===n.type);e=a.getSnapshotBeforeUpdate(re,r),a.__reactInternalSnapshotBeforeUpdate=e}catch(Ee){Qe(n,n.return,Ee)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)zf(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":zf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(f(163))}if(e=t.sibling,e!==null){e.return=t.return,pt=e;break}pt=t.return}return re=ih,ih=!1,re}function rh(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:kn(e,n),a&4&&Tu(5,n);break;case 1:if(kn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){Qe(n,n.return,g)}else{var i=ka(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Qe(n,n.return,g)}}a&64&&eh(n),a&512&&Fa(n,n.return);break;case 3:if(kn(e,n),a&64&&(a=n.updateQueue,a!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Id(a,e)}catch(g){Qe(n,n.return,g)}}break;case 26:kn(e,n),a&512&&Fa(n,n.return);break;case 27:case 5:kn(e,n),t===null&&a&4&&nh(n),a&512&&Fa(n,n.return);break;case 12:kn(e,n);break;case 13:kn(e,n),a&4&&oh(e,n);break;case 22:if(i=n.memoizedState!==null||Zn,!i){t=t!==null&&t.memoizedState!==null||nt;var r=Zn,d=nt;Zn=i,(nt=t)&&!d?va(e,n,(n.subtreeFlags&8772)!==0):kn(e,n),Zn=r,nt=d}a&512&&(n.memoizedProps.mode==="manual"?Fa(n,n.return):Qt(n,n.return));break;default:kn(e,n)}}function ch(e){var t=e.alternate;t!==null&&(e.alternate=null,ch(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var st=null,Zt=!1;function Kn(e,t,n){for(n=n.child;n!==null;)fh(e,t,n),n=n.sibling}function fh(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(la,n)}catch{}switch(n.tag){case 26:nt||Qt(n,t),Kn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nt||Qt(n,t);var a=st,i=Zt;for(st=n.stateNode,Kn(e,t,n),n=n.stateNode,t=n.attributes;t.length;)n.removeAttributeNode(t[0]);Xt(n),st=a,Zt=i;break;case 5:nt||Qt(n,t);case 6:i=st;var r=Zt;if(st=null,Kn(e,t,n),st=i,Zt=r,st!==null)if(Zt)try{e=st,a=n.stateNode,e.nodeType===8?e.parentNode.removeChild(a):e.removeChild(a)}catch(d){Qe(n,t,d)}else try{st.removeChild(n.stateNode)}catch(d){Qe(n,t,d)}break;case 18:st!==null&&(Zt?(t=st,n=n.stateNode,t.nodeType===8?Nf(t.parentNode,n):t.nodeType===1&&Nf(t,n),Gu(t)):Nf(st,n.stateNode));break;case 4:a=st,i=Zt,st=n.stateNode.containerInfo,Zt=!0,Kn(e,t,n),st=a,Zt=i;break;case 0:case 11:case 14:case 15:nt||ya(2,n,t),nt||ya(4,n,t),Kn(e,t,n);break;case 1:nt||(Qt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&th(n,t,a)),Kn(e,t,n);break;case 21:Kn(e,t,n);break;case 22:nt||Qt(n,t),nt=(a=nt)||n.memoizedState!==null,Kn(e,t,n),nt=a;break;default:Kn(e,t,n)}}function oh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gu(e)}catch(n){Qe(t,t.return,n)}}function pg(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new uh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new uh),t;default:throw Error(f(435,e.tag))}}function ef(e,t){var n=pg(e);t.forEach(function(a){var i=wg.bind(null,e,a);n.has(a)||(n.add(a),a.then(i,i))})}function rn(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],r=e,d=t,g=d;e:for(;g!==null;){switch(g.tag){case 27:case 5:st=g.stateNode,Zt=!1;break e;case 3:st=g.stateNode.containerInfo,Zt=!0;break e;case 4:st=g.stateNode.containerInfo,Zt=!0;break e}g=g.return}if(st===null)throw Error(f(160));fh(r,d,i),st=null,Zt=!1,r=i.alternate,r!==null&&(r.return=null),i.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)sh(t,e),t=t.sibling}var Sn=null;function sh(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:rn(t,e),cn(e),a&4&&(ya(3,e,e.return),Tu(3,e),ya(5,e,e.return));break;case 1:rn(t,e),cn(e),a&512&&(nt||n===null||Qt(n,n.return)),a&64&&Zn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=Sn;if(rn(t,e),cn(e),a&512&&(nt||n===null||Qt(n,n.return)),a&4){var r=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":r=i.getElementsByTagName("title")[0],(!r||r[vn]||r[de]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=i.createElement(a),i.head.insertBefore(r,i.querySelector("head > title"))),xt(r,a,n),r[de]=e,Fe(r),a=r;break e;case"link":var d=nm("link","href",i).get(a+(n.href||""));if(d){for(var g=0;g<d.length;g++)if(r=d[g],r.getAttribute("href")===(n.href==null?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(g,1);break t}}r=i.createElement(a),xt(r,a,n),i.head.appendChild(r);break;case"meta":if(d=nm("meta","content",i).get(a+(n.content||""))){for(g=0;g<d.length;g++)if(r=d[g],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(g,1);break t}}r=i.createElement(a),xt(r,a,n),i.head.appendChild(r);break;default:throw Error(f(468,a))}r[de]=e,Fe(r),a=r}e.stateNode=a}else am(i,e.type,e.stateNode);else e.stateNode=tm(i,a,e.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?am(i,e.type,e.stateNode):tm(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&ah(e,e.memoizedProps,n.memoizedProps)}break;case 27:if(a&4&&e.alternate===null){i=e.stateNode,r=e.memoizedProps;try{for(var E=i.firstChild;E;){var C=E.nextSibling,B=E.nodeName;E[vn]||B==="HEAD"||B==="BODY"||B==="SCRIPT"||B==="STYLE"||B==="LINK"&&E.rel.toLowerCase()==="stylesheet"||i.removeChild(E),E=C}for(var X=e.type,z=i.attributes;z.length;)i.removeAttributeNode(z[0]);xt(i,X,r),i[de]=e,i[xe]=r}catch(re){Qe(e,e.return,re)}}case 5:if(rn(t,e),cn(e),a&512&&(nt||n===null||Qt(n,n.return)),e.flags&32){i=e.stateNode;try{sl(i,"")}catch(re){Qe(e,e.return,re)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,ah(e,i,n!==null?n.memoizedProps:i)),a&1024&&(Ic=!0);break;case 6:if(rn(t,e),cn(e),a&4){if(e.stateNode===null)throw Error(f(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(re){Qe(e,e.return,re)}}break;case 3:if(nr=null,i=Sn,Sn=er(t.containerInfo),rn(t,e),Sn=i,cn(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{Gu(t.containerInfo)}catch(re){Qe(e,e.return,re)}Ic&&(Ic=!1,dh(e));break;case 4:a=Sn,Sn=er(e.stateNode.containerInfo),rn(t,e),cn(e),Sn=a;break;case 12:rn(t,e),cn(e);break;case 13:rn(t,e),cn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(of=St()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ef(e,a)));break;case 22:if(a&512&&(nt||n===null||Qt(n,n.return)),E=e.memoizedState!==null,C=n!==null&&n.memoizedState!==null,B=Zn,X=nt,Zn=B||E,nt=X||C,rn(t,e),nt=X,Zn=B,cn(e),t=e.stateNode,t._current=e,t._visibility&=-3,t._visibility|=t._pendingVisibility&2,a&8192&&(t._visibility=E?t._visibility&-2:t._visibility|1,E&&(t=Zn||nt,n===null||C||t||Ml(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))e:for(n=null,t=e;;){if(t.tag===5||t.tag===26||t.tag===27){if(n===null){C=n=t;try{if(i=C.stateNode,E)r=i.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{d=C.stateNode,g=C.memoizedProps.style;var H=g!=null&&g.hasOwnProperty("display")?g.display:null;d.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(re){Qe(C,C.return,re)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=E?"":C.memoizedProps}catch(re){Qe(C,C.return,re)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,ef(e,n))));break;case 19:rn(t,e),cn(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ef(e,a)));break;case 21:break;default:rn(t,e),cn(e)}}function cn(e){var t=e.flags;if(t&2){try{if(e.tag!==27){e:{for(var n=e.return;n!==null;){if(lh(n)){var a=n;break e}n=n.return}throw Error(f(160))}switch(a.tag){case 27:var i=a.stateNode,r=Wc(e);qi(e,r,i);break;case 5:var d=a.stateNode;a.flags&32&&(sl(d,""),a.flags&=-33);var g=Wc(e);qi(e,g,d);break;case 3:case 4:var E=a.stateNode.containerInfo,C=Wc(e);Pc(e,C,E);break;default:throw Error(f(161))}}}catch(B){Qe(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function kn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)rh(e,t.alternate,t),t=t.sibling}function Ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ya(4,t,t.return),Ml(t);break;case 1:Qt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&th(t,t.return,n),Ml(t);break;case 26:case 27:case 5:Qt(t,t.return),Ml(t);break;case 22:Qt(t,t.return),t.memoizedState===null&&Ml(t);break;default:Ml(t)}e=e.sibling}}function va(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,r=t,d=r.flags;switch(r.tag){case 0:case 11:case 15:va(i,r,n),Tu(4,r);break;case 1:if(va(i,r,n),a=r,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(C){Qe(a,a.return,C)}if(a=r,i=a.updateQueue,i!==null){var g=a.stateNode;try{var E=i.shared.hiddenCallbacks;if(E!==null)for(i.shared.hiddenCallbacks=null,i=0;i<E.length;i++)Pd(E[i],g)}catch(C){Qe(a,a.return,C)}}n&&d&64&&eh(r),Fa(r,r.return);break;case 26:case 27:case 5:va(i,r,n),n&&a===null&&d&4&&nh(r),Fa(r,r.return);break;case 12:va(i,r,n);break;case 13:va(i,r,n),n&&d&4&&oh(i,r);break;case 22:r.memoizedState===null&&va(i,r,n),Fa(r,r.return);break;default:va(i,r,n)}t=t.sibling}}function tf(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&hu(n))}function nf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hu(e))}function ga(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hh(e,t,n,a),t=t.sibling}function hh(e,t,n,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:ga(e,t,n,a),i&2048&&Tu(9,t);break;case 3:ga(e,t,n,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hu(e)));break;case 12:if(i&2048){ga(e,t,n,a),e=t.stateNode;try{var r=t.memoizedProps,d=r.id,g=r.onPostCommit;typeof g=="function"&&g(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Qe(t,t.return,E)}}else ga(e,t,n,a);break;case 23:break;case 22:r=t.stateNode,t.memoizedState!==null?r._visibility&4?ga(e,t,n,a):xu(e,t):r._visibility&4?ga(e,t,n,a):(r._visibility|=4,Al(e,t,n,a,(t.subtreeFlags&10256)!==0)),i&2048&&tf(t.alternate,t);break;case 24:ga(e,t,n,a),i&2048&&nf(t.alternate,t);break;default:ga(e,t,n,a)}}function Al(e,t,n,a,i){for(i=i&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var r=e,d=t,g=n,E=a,C=d.flags;switch(d.tag){case 0:case 11:case 15:Al(r,d,g,E,i),Tu(8,d);break;case 23:break;case 22:var B=d.stateNode;d.memoizedState!==null?B._visibility&4?Al(r,d,g,E,i):xu(r,d):(B._visibility|=4,Al(r,d,g,E,i)),i&&C&2048&&tf(d.alternate,d);break;case 24:Al(r,d,g,E,i),i&&C&2048&&nf(d.alternate,d);break;default:Al(r,d,g,E,i)}t=t.sibling}}function xu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:xu(n,a),i&2048&&tf(a.alternate,a);break;case 24:xu(n,a),i&2048&&nf(a.alternate,a);break;default:xu(n,a)}t=t.sibling}}var Ou=8192;function _l(e){if(e.subtreeFlags&Ou)for(e=e.child;e!==null;)mh(e),e=e.sibling}function mh(e){switch(e.tag){case 26:_l(e),e.flags&Ou&&e.memoizedState!==null&&ip(Sn,e.memoizedState,e.memoizedProps);break;case 5:_l(e);break;case 3:case 4:var t=Sn;Sn=er(e.stateNode.containerInfo),_l(e),Sn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Ou,Ou=16777216,_l(e),Ou=t):_l(e));break;default:_l(e)}}function yh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Du(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];pt=a,gh(a,e)}yh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vh(e),e=e.sibling}function vh(e){switch(e.tag){case 0:case 11:case 15:Du(e),e.flags&2048&&ya(9,e,e.return);break;case 3:Du(e);break;case 12:Du(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&4&&(e.return===null||e.return.tag!==13)?(t._visibility&=-5,Yi(e)):Du(e);break;default:Du(e)}}function Yi(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];pt=a,gh(a,e)}yh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ya(8,t,t.return),Yi(t);break;case 22:n=t.stateNode,n._visibility&4&&(n._visibility&=-5,Yi(t));break;default:Yi(t)}e=e.sibling}}function gh(e,t){for(;pt!==null;){var n=pt;switch(n.tag){case 0:case 11:case 15:ya(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:hu(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,pt=a;else e:for(n=e;pt!==null;){a=pt;var i=a.sibling,r=a.return;if(ch(a),a===n){pt=null;break e}if(i!==null){i.return=r,pt=i;break e}pt=r}}}function Eg(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fn(e,t,n,a){return new Eg(e,t,n,a)}function af(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pa(e,t){var n=e.alternate;return n===null?(n=fn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&31457280,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ph(e,t){e.flags&=31457282;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Gi(e,t,n,a,i,r){var d=0;if(a=e,typeof e=="function")af(e)&&(d=1);else if(typeof e=="string")d=lp(e,n,yt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case v:return Wa(n.children,i,r,t);case m:d=8,i|=24;break;case b:return e=fn(12,n,t,i|2),e.elementType=b,e.lanes=r,e;case q:return e=fn(13,n,t,i),e.elementType=q,e.lanes=r,e;case V:return e=fn(19,n,t,i),e.elementType=V,e.lanes=r,e;case K:return Eh(n,i,r,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:case D:d=10;break e;case S:d=9;break e;case N:d=11;break e;case U:d=14;break e;case Z:d=16,a=null;break e}d=29,n=Error(f(130,e===null?"null":typeof e,"")),a=null}return t=fn(d,n,t,i),t.elementType=e,t.type=a,t.lanes=r,t}function Wa(e,t,n,a){return e=fn(7,e,a,t),e.lanes=n,e}function Eh(e,t,n,a){e=fn(22,e,a,t),e.elementType=K,e.lanes=n;var i={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var r=i._current;if(r===null)throw Error(f(456));if(!(i._pendingVisibility&2)){var d=ia(r,2);d!==null&&(i._pendingVisibility|=2,wt(d,r,2))}},attach:function(){var r=i._current;if(r===null)throw Error(f(456));if(i._pendingVisibility&2){var d=ia(r,2);d!==null&&(i._pendingVisibility&=-3,wt(d,r,2))}}};return e.stateNode=i,e}function lf(e,t,n){return e=fn(6,e,null,t),e.lanes=n,e}function uf(e,t,n){return t=fn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $n(e){e.flags|=4}function bh(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!lm(t)){if(t=un.current,t!==null&&((ze&4194176)===ze?Cn!==null:(ze&62914560)!==ze&&!(ze&536870912)||t!==Cn))throw ou=oc,Hs;e.flags|=8192}}function Xi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?_():536870912,e.lanes|=t,Nl|=t)}function Cu(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&31457280,a|=i.flags&31457280,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function bg(e,t,n){var a=t.pendingProps;switch(cc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return We(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Qn(mt),zt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(iu(t)?$n(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,bn!==null&&(mf(bn),bn=null))),We(t),null;case 26:return n=t.memoizedState,e===null?($n(t),n!==null?(We(t),bh(t,n)):(We(t),t.flags&=-16777217)):n?n!==e.memoizedState?($n(t),We(t),bh(t,n)):(We(t),t.flags&=-16777217):(e.memoizedProps!==a&&$n(t),We(t),t.flags&=-16777217),null;case 27:aa(t),n=et.current;var i=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$n(t);else{if(!a){if(t.stateNode===null)throw Error(f(166));return We(t),null}e=yt.current,iu(t)?js(t):(e=Fh(i,a,n),t.stateNode=e,$n(t))}return We(t),null;case 5:if(aa(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&$n(t);else{if(!a){if(t.stateNode===null)throw Error(f(166));return We(t),null}if(e=yt.current,iu(t))js(t);else{switch(i=Ii(et.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}e[de]=t,e[xe]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(xt(e,n,a),n){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&$n(t)}}return We(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&$n(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(f(166));if(e=et.current,iu(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=_t,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[de]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Qh(e.nodeValue,n)),e||Ga(t)}else e=Ii(e).createTextNode(a),e[de]=t,t.stateNode=e}return We(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=iu(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(f(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(f(317));i[de]=t}else ru(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;We(t),i=!1}else bn!==null&&(mf(bn),bn=null),i=!0;if(!i)return t.flags&256?(Yn(t),t):(Yn(t),null)}if(Yn(t),t.flags&128)return t.lanes=n,t;if(n=a!==null,e=e!==null&&e.memoizedState!==null,n){a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool);var r=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==i&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Xi(t,t.updateQueue),We(t),null;case 4:return zt(),e===null&&Of(t.stateNode.containerInfo),We(t),null;case 10:return Qn(t.type),We(t),null;case 19:if(Se(ht),i=t.memoizedState,i===null)return We(t),null;if(a=(t.flags&128)!==0,r=i.rendering,r===null)if(a)Cu(i,!1);else{if(at!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(r=Oi(e),r!==null){for(t.flags|=128,Cu(i,!1),e=r.updateQueue,t.updateQueue=e,Xi(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ph(n,e),n=n.sibling;return De(ht,ht.current&1|2),t.child}e=e.sibling}i.tail!==null&&St()>Vi&&(t.flags|=128,a=!0,Cu(i,!1),t.lanes=4194304)}else{if(!a)if(e=Oi(r),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Xi(t,e),Cu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!r.alternate&&!Ue)return We(t),null}else 2*St()-i.renderingStartTime>Vi&&n!==536870912&&(t.flags|=128,a=!0,Cu(i,!1),t.lanes=4194304);i.isBackwards?(r.sibling=t.child,t.child=r):(e=i.last,e!==null?e.sibling=r:t.child=r,i.last=r)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=St(),t.sibling=null,e=ht.current,De(ht,a?e&1|2:e&1),t):(We(t),null);case 22:case 23:return Yn(t),dc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?n&536870912&&!(t.flags&128)&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),n=t.updateQueue,n!==null&&Xi(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&Se(Va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Qn(mt),We(t),null;case 25:return null}throw Error(f(156,t.tag))}function Sg(e,t){switch(cc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qn(mt),zt(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return aa(t),null;case 13:if(Yn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(f(340));ru()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Se(ht),null;case 4:return zt(),null;case 10:return Qn(t.type),null;case 22:case 23:return Yn(t),dc(),e!==null&&Se(Va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Qn(mt),null;case 25:return null;default:return null}}function Sh(e,t){switch(cc(t),t.tag){case 3:Qn(mt),zt();break;case 26:case 27:case 5:aa(t);break;case 4:zt();break;case 13:Yn(t);break;case 19:Se(ht);break;case 10:Qn(t.type);break;case 22:case 23:Yn(t),dc(),e!==null&&Se(Va);break;case 24:Qn(mt)}}var Rg={getCacheForType:function(e){var t=Dt(mt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},Tg=typeof WeakMap=="function"?WeakMap:Map,Pe=0,Ze=null,Ae=null,ze=0,Ke=0,Kt=null,Jn=!1,wl=!1,rf=!1,Fn=0,at=0,Ea=0,Pa=0,cf=0,on=0,Nl=0,Mu=null,An=null,ff=!1,of=0,Vi=1/0,Qi=null,ba=null,Zi=!1,Ia=null,Au=0,sf=0,df=null,_u=0,hf=null;function kt(){if(Pe&2&&ze!==0)return ze&-ze;if($.T!==null){var e=Tl;return e!==0?e:Sf()}return ue()}function Rh(){on===0&&(on=!(ze&536870912)||Ue?T():536870912);var e=un.current;return e!==null&&(e.flags|=32),on}function wt(e,t,n){(e===Ze&&Ke===2||e.cancelPendingCommit!==null)&&(zl(e,0),Wn(e,ze,on,!1)),Q(e,n),(!(Pe&2)||e!==Ze)&&(e===Ze&&(!(Pe&2)&&(Pa|=n),at===4&&Wn(e,ze,on,!1)),_n(e))}function Th(e,t,n){if(Pe&6)throw Error(f(327));var a=!n&&(t&60)===0&&(t&e.expiredLanes)===0||Ua(e,t),i=a?Dg(e,t):gf(e,t,!0),r=a;do{if(i===0){wl&&!a&&Wn(e,t,0,!1);break}else if(i===6)Wn(e,t,0,!Jn);else{if(n=e.current.alternate,r&&!xg(n)){i=gf(e,t,!1),r=!1;continue}if(i===2){if(r=t,e.errorRecoveryDisabledLanes&r)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var g=e;i=Mu;var E=g.current.memoizedState.isDehydrated;if(E&&(zl(g,d).flags|=256),d=gf(g,d,!1),d!==2){if(rf&&!E){g.errorRecoveryDisabledLanes|=r,Pa|=r,i=4;break e}r=An,An=i,r!==null&&mf(r)}i=d}if(r=!1,i!==2)continue}}if(i===1){zl(e,0),Wn(e,t,0,!0);break}e:{switch(a=e,i){case 0:case 1:throw Error(f(345));case 4:if((t&4194176)===t){Wn(a,t,on,!Jn);break e}break;case 2:An=null;break;case 3:case 5:break;default:throw Error(f(329))}if(a.finishedWork=n,a.finishedLanes=t,(t&62914560)===t&&(r=of+300-St(),10<r)){if(Wn(a,t,on,!Jn),Un(a,0)!==0)break e;a.timeoutHandle=kh(xh.bind(null,a,n,An,Qi,ff,t,on,Pa,Nl,Jn,2,-0,0),r);break e}xh(a,n,An,Qi,ff,t,on,Pa,Nl,Jn,0,-0,0)}}break}while(!0);_n(e)}function mf(e){An===null?An=e:An.push.apply(An,e)}function xh(e,t,n,a,i,r,d,g,E,C,B,X,z){var H=t.subtreeFlags;if((H&8192||(H&16785408)===16785408)&&(Lu={stylesheets:null,count:0,unsuspend:up},mh(t),t=rp(),t!==null)){e.cancelPendingCommit=t(wh.bind(null,e,n,a,i,d,g,E,1,X,z)),Wn(e,r,d,!C);return}wh(e,n,a,i,d,g,E,B,X,z)}function xg(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],r=i.getSnapshot;i=i.value;try{if(!Vt(r(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Wn(e,t,n,a){t&=~cf,t&=~Pa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var r=31-Ot(i),d=1<<r;a[r]=-1,i&=~d}n!==0&&ce(e,n,t)}function Ki(){return Pe&6?!0:(wu(0),!1)}function yf(){if(Ae!==null){if(Ke===0)var e=Ae.return;else e=Ae,Vn=$a=null,bc(e),Sl=null,su=0,e=Ae;for(;e!==null;)Sh(e.alternate,e),e=e.return;Ae=null}}function zl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Vg(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),yf(),Ze=e,Ae=n=pa(e.current,null),ze=t,Ke=0,Kt=null,Jn=!1,wl=Ua(e,t),rf=!1,Nl=on=cf=Pa=Ea=at=0,An=Mu=null,ff=!1,t&8&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-Ot(a),r=1<<i;t|=e[i],a&=~r}return Fn=t,vi(),n}function Oh(e,t){Oe=null,$.H=Mn,t===fu?(t=Ys(),Ke=3):t===Hs?(t=Ys(),Ke=4):Ke=t===Bd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Kt=t,Ae===null&&(at=1,Li(e,nn(t,e.current)))}function Dh(){var e=$.H;return $.H=Mn,e===null?Mn:e}function Ch(){var e=$.A;return $.A=Rg,e}function vf(){at=4,Jn||(ze&4194176)!==ze&&un.current!==null||(wl=!0),!(Ea&134217727)&&!(Pa&134217727)||Ze===null||Wn(Ze,ze,on,!1)}function gf(e,t,n){var a=Pe;Pe|=2;var i=Dh(),r=Ch();(Ze!==e||ze!==t)&&(Qi=null,zl(e,t)),t=!1;var d=at;e:do try{if(Ke!==0&&Ae!==null){var g=Ae,E=Kt;switch(Ke){case 8:yf(),d=6;break e;case 3:case 2:case 6:un.current===null&&(t=!0);var C=Ke;if(Ke=0,Kt=null,Ul(e,g,E,C),n&&wl){d=0;break e}break;default:C=Ke,Ke=0,Kt=null,Ul(e,g,E,C)}}Og(),d=at;break}catch(B){Oh(e,B)}while(!0);return t&&e.shellSuspendCounter++,Vn=$a=null,Pe=a,$.H=i,$.A=r,Ae===null&&(Ze=null,ze=0,vi()),d}function Og(){for(;Ae!==null;)Mh(Ae)}function Dg(e,t){var n=Pe;Pe|=2;var a=Dh(),i=Ch();Ze!==e||ze!==t?(Qi=null,Vi=St()+500,zl(e,t)):wl=Ua(e,t);e:do try{if(Ke!==0&&Ae!==null){t=Ae;var r=Kt;t:switch(Ke){case 1:Ke=0,Kt=null,Ul(e,t,r,1);break;case 2:if(Bs(r)){Ke=0,Kt=null,Ah(t);break}t=function(){Ke===2&&Ze===e&&(Ke=7),_n(e)},r.then(t,t);break e;case 3:Ke=7;break e;case 4:Ke=5;break e;case 7:Bs(r)?(Ke=0,Kt=null,Ah(t)):(Ke=0,Kt=null,Ul(e,t,r,7));break;case 5:var d=null;switch(Ae.tag){case 26:d=Ae.memoizedState;case 5:case 27:var g=Ae;if(!d||lm(d)){Ke=0,Kt=null;var E=g.sibling;if(E!==null)Ae=E;else{var C=g.return;C!==null?(Ae=C,ki(C)):Ae=null}break t}}Ke=0,Kt=null,Ul(e,t,r,5);break;case 6:Ke=0,Kt=null,Ul(e,t,r,6);break;case 8:yf(),at=6;break e;default:throw Error(f(462))}}Cg();break}catch(B){Oh(e,B)}while(!0);return Vn=$a=null,$.H=a,$.A=i,Pe=n,Ae!==null?0:(Ze=null,ze=0,vi(),at)}function Cg(){for(;Ae!==null&&!zn();)Mh(Ae)}function Mh(e){var t=Fd(e.alternate,e,Fn);e.memoizedProps=e.pendingProps,t===null?ki(e):Ae=t}function Ah(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Qd(n,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=Qd(n,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:bc(t);default:Sh(n,t),t=Ae=ph(t,Fn),t=Fd(n,t,Fn)}e.memoizedProps=e.pendingProps,t===null?ki(e):Ae=t}function Ul(e,t,n,a){Vn=$a=null,bc(t),Sl=null,su=0;var i=t.return;try{if(yg(e,i,t,n,ze)){at=1,Li(e,nn(n,e.current)),Ae=null;return}}catch(r){if(i!==null)throw Ae=i,r;at=1,Li(e,nn(n,e.current)),Ae=null;return}t.flags&32768?(Ue||a===1?e=!0:wl||ze&536870912?e=!1:(Jn=e=!0,(a===2||a===3||a===6)&&(a=un.current,a!==null&&a.tag===13&&(a.flags|=16384))),_h(t,e)):ki(t)}function ki(e){var t=e;do{if(t.flags&32768){_h(t,Jn);return}e=t.return;var n=bg(t.alternate,t,Fn);if(n!==null){Ae=n;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);at===0&&(at=5)}function _h(e,t){do{var n=Sg(e.alternate,e);if(n!==null){n.flags&=32767,Ae=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=n}while(e!==null);at=6,Ae=null}function wh(e,t,n,a,i,r,d,g,E,C){var B=$.T,X=J.p;try{J.p=2,$.T=null,Mg(e,t,n,a,X,i,r,d,g,E,C)}finally{$.T=B,J.p=X}}function Mg(e,t,n,a,i,r,d,g){do jl();while(Ia!==null);if(Pe&6)throw Error(f(327));var E=e.finishedWork;if(a=e.finishedLanes,E===null)return null;if(e.finishedWork=null,e.finishedLanes=0,E===e.current)throw Error(f(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var C=E.lanes|E.childLanes;if(C|=uc,ee(e,a,C,r,d,g),e===Ze&&(Ae=Ze=null,ze=0),!(E.subtreeFlags&10256)&&!(E.flags&10256)||Zi||(Zi=!0,sf=C,df=n,Ng(mn,function(){return jl(),null})),n=(E.flags&15990)!==0,E.subtreeFlags&15990||n?(n=$.T,$.T=null,r=J.p,J.p=2,d=Pe,Pe|=4,gg(e,E),sh(E,e),Pv(Af,e.containerInfo),ur=!!Mf,Af=Mf=null,e.current=E,rh(e,E.alternate,E),cl(),Pe=d,J.p=r,$.T=n):e.current=E,Zi?(Zi=!1,Ia=e,Au=a):Nh(e,C),C=e.pendingLanes,C===0&&(ba=null),ai(E.stateNode),_n(e),t!==null)for(i=e.onRecoverableError,E=0;E<t.length;E++)C=t[E],i(C.value,{componentStack:C.stack});return Au&3&&jl(),C=e.pendingLanes,a&4194218&&C&42?e===hf?_u++:(_u=0,hf=e):_u=0,wu(0),null}function Nh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,hu(t)))}function jl(){if(Ia!==null){var e=Ia,t=sf;sf=0;var n=ne(Au),a=$.T,i=J.p;try{if(J.p=32>n?32:n,$.T=null,Ia===null)var r=!1;else{n=df,df=null;var d=Ia,g=Au;if(Ia=null,Au=0,Pe&6)throw Error(f(331));var E=Pe;if(Pe|=4,vh(d.current),hh(d,d.current,g,n),Pe=E,wu(0,!1),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(la,d)}catch{}r=!0}return r}finally{J.p=i,$.T=a,Nh(e,t)}}return!1}function zh(e,t,n){t=nn(n,t),t=Uc(e.stateNode,t,2),e=ma(e,t,2),e!==null&&(Q(e,2),_n(e))}function Qe(e,t,n){if(e.tag===3)zh(e,e,n);else for(;t!==null;){if(t.tag===3){zh(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ba===null||!ba.has(a))){e=nn(n,e),n=Ld(2),a=ma(t,n,2),a!==null&&(Hd(n,a,t,e),Q(a,2),_n(a));break}}t=t.return}}function pf(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Tg;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(rf=!0,i.add(n),e=Ag.bind(null,e,t,n),t.then(e,e))}function Ag(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ze===e&&(ze&n)===n&&(at===4||at===3&&(ze&62914560)===ze&&300>St()-of?!(Pe&2)&&zl(e,0):cf|=n,Nl===ze&&(Nl=0)),_n(e)}function Uh(e,t){t===0&&(t=_()),e=ia(e,t),e!==null&&(Q(e,t),_n(e))}function _g(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Uh(e,n)}function wg(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(f(314))}a!==null&&a.delete(t),Uh(e,n)}function Ng(e,t){return Na(e,t)}var $i=null,Ll=null,Ef=!1,Ji=!1,bf=!1,el=0;function _n(e){e!==Ll&&e.next===null&&(Ll===null?$i=Ll=e:Ll=Ll.next=e),Ji=!0,Ef||(Ef=!0,Ug(zg))}function wu(e,t){if(!bf&&Ji){bf=!0;do for(var n=!1,a=$i;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var r=0;else{var d=a.suspendedLanes,g=a.pingedLanes;r=(1<<31-Ot(42|e)+1)-1,r&=i&~(d&~g),r=r&201326677?r&201326677|1:r?r|2:0}r!==0&&(n=!0,Hh(a,r))}else r=ze,r=Un(a,a===Ze?r:0),!(r&3)||Ua(a,r)||(n=!0,Hh(a,r));a=a.next}while(n);bf=!1}}function zg(){Ji=Ef=!1;var e=0;el!==0&&(Xg()&&(e=el),el=0);for(var t=St(),n=null,a=$i;a!==null;){var i=a.next,r=jh(a,t);r===0?(a.next=null,n===null?$i=i:n.next=i,i===null&&(Ll=n)):(n=a,(e!==0||r&3)&&(Ji=!0)),a=i}wu(e)}function jh(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var d=31-Ot(r),g=1<<d,E=i[d];E===-1?(!(g&n)||g&a)&&(i[d]=Br(g,t)):E<=t&&(e.expiredLanes|=g),r&=~g}if(t=Ze,n=ze,n=Un(e,e===t?n:0),a=e.callbackNode,n===0||e===t&&Ke===2||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Yt(a),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ua(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Yt(a),ne(n)){case 2:case 8:n=Wt;break;case 32:n=mn;break;case 268435456:n=yn;break;default:n=mn}return a=Lh.bind(null,e),n=Na(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Yt(a),e.callbackPriority=2,e.callbackNode=null,2}function Lh(e,t){var n=e.callbackNode;if(jl()&&e.callbackNode!==n)return null;var a=ze;return a=Un(e,e===Ze?a:0),a===0?null:(Th(e,a,t),jh(e,St()),e.callbackNode!=null&&e.callbackNode===n?Lh.bind(null,e):null)}function Hh(e,t){if(jl())return null;Th(e,t,!0)}function Ug(e){Qg(function(){Pe&6?Na(be,e):e()})}function Sf(){return el===0&&(el=T()),el}function Bh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:fi(""+e)}function qh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function jg(e,t,n,a,i){if(t==="submit"&&n&&n.stateNode===i){var r=Bh((i[xe]||null).action),d=a.submitter;d&&(t=(t=d[xe]||null)?Bh(t.formAction):d.getAttribute("formAction"),t!==null&&(r=t,d=null));var g=new hi("action","action",null,a,i);e.push({event:g,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(el!==0){var E=d?qh(i,d):new FormData(i);Ac(n,{pending:!0,data:E,method:i.method,action:r},null,E)}}else typeof r=="function"&&(g.preventDefault(),E=d?qh(i,d):new FormData(i),Ac(n,{pending:!0,data:E,method:i.method,action:r},r,E))},currentTarget:i}]})}}for(var Rf=0;Rf<ws.length;Rf++){var Tf=ws[Rf],Lg=Tf.toLowerCase(),Hg=Tf[0].toUpperCase()+Tf.slice(1);En(Lg,"on"+Hg)}En(Ds,"onAnimationEnd"),En(Cs,"onAnimationIteration"),En(Ms,"onAnimationStart"),En("dblclick","onDoubleClick"),En("focusin","onFocus"),En("focusout","onBlur"),En(eg,"onTransitionRun"),En(tg,"onTransitionStart"),En(ng,"onTransitionCancel"),En(As,"onTransitionEnd"),pn("onMouseEnter",["mouseout","mouseover"]),pn("onMouseLeave",["mouseout","mouseover"]),pn("onPointerEnter",["pointerout","pointerover"]),pn("onPointerLeave",["pointerout","pointerover"]),$e("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$e("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$e("onBeforeInput",["compositionend","keypress","textInput","paste"]),$e("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$e("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$e("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Bg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nu));function Yh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var r=void 0;if(t)for(var d=a.length-1;0<=d;d--){var g=a[d],E=g.instance,C=g.currentTarget;if(g=g.listener,E!==r&&i.isPropagationStopped())break e;r=g,i.currentTarget=C;try{r(i)}catch(B){ji(B)}i.currentTarget=null,r=E}else for(d=0;d<a.length;d++){if(g=a[d],E=g.instance,C=g.currentTarget,g=g.listener,E!==r&&i.isPropagationStopped())break e;r=g,i.currentTarget=C;try{r(i)}catch(B){ji(B)}i.currentTarget=null,r=E}}}}function we(e,t){var n=t[Xe];n===void 0&&(n=t[Xe]=new Set);var a=e+"__bubble";n.has(a)||(Gh(t,e,2,!1),n.add(a))}function xf(e,t,n){var a=0;t&&(a|=4),Gh(n,e,a,t)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function Of(e){if(!e[Fi]){e[Fi]=!0,ja.forEach(function(n){n!=="selectionchange"&&(Bg.has(n)||xf(n,!1,e),xf(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fi]||(t[Fi]=!0,xf("selectionchange",!1,t))}}function Gh(e,t,n,a){switch(om(t)){case 2:var i=op;break;case 8:i=sp;break;default:i=Bf}n=i.bind(null,t,n,e),i=void 0,!Kr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Df(e,t,n,a,i){var r=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var d=a.tag;if(d===3||d===4){var g=a.stateNode.containerInfo;if(g===i||g.nodeType===8&&g.parentNode===i)break;if(d===4)for(d=a.return;d!==null;){var E=d.tag;if((E===3||E===4)&&(E=d.stateNode.containerInfo,E===i||E.nodeType===8&&E.parentNode===i))return;d=d.return}for(;g!==null;){if(d=vt(g),d===null)return;if(E=d.tag,E===5||E===6||E===26||E===27){a=r=d;continue e}g=g.parentNode}}a=a.return}ns(function(){var C=r,B=Qr(n),X=[];e:{var z=_s.get(e);if(z!==void 0){var H=hi,re=e;switch(e){case"keypress":if(si(n)===0)break e;case"keydown":case"keyup":H=wv;break;case"focusin":re="focus",H=Fr;break;case"focusout":re="blur",H=Fr;break;case"beforeblur":case"afterblur":H=Fr;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=us;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Ev;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Uv;break;case Ds:case Cs:case Ms:H=Rv;break;case As:H=Lv;break;case"scroll":case"scrollend":H=gv;break;case"wheel":H=Bv;break;case"copy":case"cut":case"paste":H=xv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=rs;break;case"toggle":case"beforetoggle":H=Yv}var Ee=(t&4)!==0,lt=!Ee&&(e==="scroll"||e==="scrollend"),A=Ee?z!==null?z+"Capture":null:z;Ee=[];for(var O=C,w;O!==null;){var Y=O;if(w=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||w===null||A===null||(Y=Wl(O,A),Y!=null&&Ee.push(zu(O,Y,w))),lt)break;O=O.return}0<Ee.length&&(z=new H(z,re,null,n,B),X.push({event:z,listeners:Ee}))}}if(!(t&7)){e:{if(z=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",z&&n!==Vr&&(re=n.relatedTarget||n.fromElement)&&(vt(re)||re[ke]))break e;if((H||z)&&(z=B.window===B?B:(z=B.ownerDocument)?z.defaultView||z.parentWindow:window,H?(re=n.relatedTarget||n.toElement,H=C,re=re?vt(re):null,re!==null&&(lt=W(re),Ee=re.tag,re!==lt||Ee!==5&&Ee!==27&&Ee!==6)&&(re=null)):(H=null,re=C),H!==re)){if(Ee=us,Y="onMouseLeave",A="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Ee=rs,Y="onPointerLeave",A="onPointerEnter",O="pointer"),lt=H==null?z:gn(H),w=re==null?z:gn(re),z=new Ee(Y,O+"leave",H,n,B),z.target=lt,z.relatedTarget=w,Y=null,vt(B)===C&&(Ee=new Ee(A,O+"enter",re,n,B),Ee.target=w,Ee.relatedTarget=lt,Y=Ee),lt=Y,H&&re)t:{for(Ee=H,A=re,O=0,w=Ee;w;w=Hl(w))O++;for(w=0,Y=A;Y;Y=Hl(Y))w++;for(;0<O-w;)Ee=Hl(Ee),O--;for(;0<w-O;)A=Hl(A),w--;for(;O--;){if(Ee===A||A!==null&&Ee===A.alternate)break t;Ee=Hl(Ee),A=Hl(A)}Ee=null}else Ee=null;H!==null&&Xh(X,z,H,Ee,!1),re!==null&&lt!==null&&Xh(X,lt,re,Ee,!0)}}e:{if(z=C?gn(C):window,H=z.nodeName&&z.nodeName.toLowerCase(),H==="select"||H==="input"&&z.type==="file")var ae=ys;else if(hs(z))if(vs)ae=Fv;else{ae=$v;var Ce=kv}else H=z.nodeName,!H||H.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?C&&Xr(C.elementType)&&(ae=ys):ae=Jv;if(ae&&(ae=ae(e,C))){ms(X,ae,n,B);break e}Ce&&Ce(e,z,C),e==="focusout"&&C&&z.type==="number"&&C.memoizedProps.value!=null&&Gr(z,"number",z.value)}switch(Ce=C?gn(C):window,e){case"focusin":(hs(Ce)||Ce.contentEditable==="true")&&(yl=Ce,nc=C,uu=null);break;case"focusout":uu=nc=yl=null;break;case"mousedown":ac=!0;break;case"contextmenu":case"mouseup":case"dragend":ac=!1,xs(X,n,B);break;case"selectionchange":if(Iv)break;case"keydown":case"keyup":xs(X,n,B)}var fe;if(Pr)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else ml?ss(e,n)&&(ye="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ye="onCompositionStart");ye&&(cs&&n.locale!=="ko"&&(ml||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&ml&&(fe=as()):(ua=B,kr="value"in ua?ua.value:ua.textContent,ml=!0)),Ce=Wi(C,ye),0<Ce.length&&(ye=new is(ye,e,null,n,B),X.push({event:ye,listeners:Ce}),fe?ye.data=fe:(fe=ds(n),fe!==null&&(ye.data=fe)))),(fe=Xv?Vv(e,n):Qv(e,n))&&(ye=Wi(C,"onBeforeInput"),0<ye.length&&(Ce=new is("onBeforeInput","beforeinput",null,n,B),X.push({event:Ce,listeners:ye}),Ce.data=fe)),jg(X,e,C,n,B)}Yh(X,t)})}function zu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wi(e,t){for(var n=t+"Capture",a=[];e!==null;){var i=e,r=i.stateNode;i=i.tag,i!==5&&i!==26&&i!==27||r===null||(i=Wl(e,n),i!=null&&a.unshift(zu(e,i,r)),i=Wl(e,t),i!=null&&a.push(zu(e,i,r))),e=e.return}return a}function Hl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xh(e,t,n,a,i){for(var r=t._reactName,d=[];n!==null&&n!==a;){var g=n,E=g.alternate,C=g.stateNode;if(g=g.tag,E!==null&&E===a)break;g!==5&&g!==26&&g!==27||C===null||(E=C,i?(C=Wl(n,r),C!=null&&d.unshift(zu(n,C,E))):i||(C=Wl(n,r),C!=null&&d.push(zu(n,C,E)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var qg=/\r\n?/g,Yg=/\u0000|\uFFFD/g;function Vh(e){return(typeof e=="string"?e:""+e).replace(qg,`
+`).replace(Yg,"")}function Qh(e,t){return t=Vh(t),Vh(e)===t}function Pi(){}function Ye(e,t,n,a,i,r){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||sl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&sl(e,""+a);break;case"className":ii(e,"class",a);break;case"tabIndex":ii(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ii(e,n,a);break;case"style":es(e,a,r);break;case"data":if(t!=="object"){ii(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=fi(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(t!=="input"&&Ye(e,t,"name",i.name,i,null),Ye(e,t,"formEncType",i.formEncType,i,null),Ye(e,t,"formMethod",i.formMethod,i,null),Ye(e,t,"formTarget",i.formTarget,i,null)):(Ye(e,t,"encType",i.encType,i,null),Ye(e,t,"method",i.method,i,null),Ye(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=fi(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Pi);break;case"onScroll":a!=null&&we("scroll",e);break;case"onScrollEnd":a!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(f(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=fi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":we("beforetoggle",e),we("toggle",e),ui(e,"popover",a);break;case"xlinkActuate":Hn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Hn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Hn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Hn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Hn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Hn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Hn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Hn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Hn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ui(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=yv.get(n)||n,ui(e,n,a))}}function Cf(e,t,n,a,i,r){switch(n){case"style":es(e,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(f(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(f(60));e.innerHTML=n}}break;case"children":typeof a=="string"?sl(e,a):(typeof a=="number"||typeof a=="bigint")&&sl(e,""+a);break;case"onScroll":a!=null&&we("scroll",e);break;case"onScrollEnd":a!=null&&we("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Pi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Be.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),r=e[xe]||null,r=r!=null?r[n]:null,typeof r=="function"&&e.removeEventListener(t,r,i),typeof a=="function")){typeof r!="function"&&r!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,i);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):ui(e,n,a)}}}function xt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var a=!1,i=!1,r;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:Ye(e,t,r,d,n,null)}}i&&Ye(e,t,"srcSet",n.srcSet,n,null),a&&Ye(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var g=r=d=i=null,E=null,C=null;for(a in n)if(n.hasOwnProperty(a)){var B=n[a];if(B!=null)switch(a){case"name":i=B;break;case"type":d=B;break;case"checked":E=B;break;case"defaultChecked":C=B;break;case"value":r=B;break;case"defaultValue":g=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(f(137,t));break;default:Ye(e,t,a,B,n,null)}}Fo(e,r,g,E,C,d,i,!1),ri(e);return;case"select":we("invalid",e),a=d=r=null;for(i in n)if(n.hasOwnProperty(i)&&(g=n[i],g!=null))switch(i){case"value":r=g;break;case"defaultValue":d=g;break;case"multiple":a=g;default:Ye(e,t,i,g,n,null)}t=r,n=d,e.multiple=!!a,t!=null?ol(e,!!a,t,!1):n!=null&&ol(e,!!a,n,!0);return;case"textarea":we("invalid",e),r=i=a=null;for(d in n)if(n.hasOwnProperty(d)&&(g=n[d],g!=null))switch(d){case"value":a=g;break;case"defaultValue":i=g;break;case"children":r=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(f(91));break;default:Ye(e,t,d,g,n,null)}Po(e,a,i,r),ri(e);return;case"option":for(E in n)if(n.hasOwnProperty(E)&&(a=n[E],a!=null))switch(E){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ye(e,t,E,a,n,null)}return;case"dialog":we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(a=0;a<Nu.length;a++)we(Nu[a],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:Ye(e,t,C,a,n,null)}return;default:if(Xr(t)){for(B in n)n.hasOwnProperty(B)&&(a=n[B],a!==void 0&&Cf(e,t,B,a,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(a=n[g],a!=null&&Ye(e,t,g,a,n,null))}function Gg(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,r=null,d=null,g=null,E=null,C=null,B=null;for(H in n){var X=n[H];if(n.hasOwnProperty(H)&&X!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":E=X;default:a.hasOwnProperty(H)||Ye(e,t,H,null,a,X)}}for(var z in a){var H=a[z];if(X=n[z],a.hasOwnProperty(z)&&(H!=null||X!=null))switch(z){case"type":r=H;break;case"name":i=H;break;case"checked":C=H;break;case"defaultChecked":B=H;break;case"value":d=H;break;case"defaultValue":g=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(f(137,t));break;default:H!==X&&Ye(e,t,z,H,a,X)}}Yr(e,d,g,E,C,B,r,i);return;case"select":H=d=g=z=null;for(r in n)if(E=n[r],n.hasOwnProperty(r)&&E!=null)switch(r){case"value":break;case"multiple":H=E;default:a.hasOwnProperty(r)||Ye(e,t,r,null,a,E)}for(i in a)if(r=a[i],E=n[i],a.hasOwnProperty(i)&&(r!=null||E!=null))switch(i){case"value":z=r;break;case"defaultValue":g=r;break;case"multiple":d=r;default:r!==E&&Ye(e,t,i,r,a,E)}t=g,n=d,a=H,z!=null?ol(e,!!n,z,!1):!!a!=!!n&&(t!=null?ol(e,!!n,t,!0):ol(e,!!n,n?[]:"",!1));return;case"textarea":H=z=null;for(g in n)if(i=n[g],n.hasOwnProperty(g)&&i!=null&&!a.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Ye(e,t,g,null,a,i)}for(d in a)if(i=a[d],r=n[d],a.hasOwnProperty(d)&&(i!=null||r!=null))switch(d){case"value":z=i;break;case"defaultValue":H=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(f(91));break;default:i!==r&&Ye(e,t,d,i,a,r)}Wo(e,z,H);return;case"option":for(var re in n)if(z=n[re],n.hasOwnProperty(re)&&z!=null&&!a.hasOwnProperty(re))switch(re){case"selected":e.selected=!1;break;default:Ye(e,t,re,null,a,z)}for(E in a)if(z=a[E],H=n[E],a.hasOwnProperty(E)&&z!==H&&(z!=null||H!=null))switch(E){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Ye(e,t,E,z,a,H)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in n)z=n[Ee],n.hasOwnProperty(Ee)&&z!=null&&!a.hasOwnProperty(Ee)&&Ye(e,t,Ee,null,a,z);for(C in a)if(z=a[C],H=n[C],a.hasOwnProperty(C)&&z!==H&&(z!=null||H!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(f(137,t));break;default:Ye(e,t,C,z,a,H)}return;default:if(Xr(t)){for(var lt in n)z=n[lt],n.hasOwnProperty(lt)&&z!==void 0&&!a.hasOwnProperty(lt)&&Cf(e,t,lt,void 0,a,z);for(B in a)z=a[B],H=n[B],!a.hasOwnProperty(B)||z===H||z===void 0&&H===void 0||Cf(e,t,B,z,a,H);return}}for(var A in n)z=n[A],n.hasOwnProperty(A)&&z!=null&&!a.hasOwnProperty(A)&&Ye(e,t,A,null,a,z);for(X in a)z=a[X],H=n[X],!a.hasOwnProperty(X)||z===H||z==null&&H==null||Ye(e,t,X,z,a,H)}var Mf=null,Af=null;function Ii(e){return e.nodeType===9?e:e.ownerDocument}function Zh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Kh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function _f(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var wf=null;function Xg(){var e=window.event;return e&&e.type==="popstate"?e===wf?!1:(wf=e,!0):(wf=null,!1)}var kh=typeof setTimeout=="function"?setTimeout:void 0,Vg=typeof clearTimeout=="function"?clearTimeout:void 0,$h=typeof Promise=="function"?Promise:void 0,Qg=typeof queueMicrotask=="function"?queueMicrotask:typeof $h<"u"?function(e){return $h.resolve(null).then(e).catch(Zg)}:kh;function Zg(e){setTimeout(function(){throw e})}function Nf(e,t){var n=t,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(a===0){e.removeChild(i),Gu(t);return}a--}else n!=="$"&&n!=="$?"&&n!=="$!"||a++;n=i}while(n);Gu(t)}function zf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":zf(n),Xt(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Kg(e,t,n,a){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[vn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==i.rel||e.getAttribute("href")!==(i.href==null?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Rn(e.nextSibling),e===null)break}return null}function kg(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Rn(e.nextSibling),e===null))return null;return e}function Rn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}function Jh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function Fh(e,t,n){switch(t=Ii(n),e){case"html":if(e=t.documentElement,!e)throw Error(f(452));return e;case"head":if(e=t.head,!e)throw Error(f(453));return e;case"body":if(e=t.body,!e)throw Error(f(454));return e;default:throw Error(f(451))}}var sn=new Map,Wh=new Set;function er(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var Pn=J.d;J.d={f:$g,r:Jg,D:Fg,C:Wg,L:Pg,m:Ig,X:tp,S:ep,M:np};function $g(){var e=Pn.f(),t=Ki();return e||t}function Jg(e){var t=On(e);t!==null&&t.tag===5&&t.type==="form"?xd(t):Pn.r(e)}var Bl=typeof document>"u"?null:document;function Ph(e,t,n){var a=Bl;if(a&&typeof t=="string"&&t){var i=en(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Wh.has(i)||(Wh.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),xt(t,"link",e),Fe(t),a.head.appendChild(t)))}}function Fg(e){Pn.D(e),Ph("dns-prefetch",e,null)}function Wg(e,t){Pn.C(e,t),Ph("preconnect",e,t)}function Pg(e,t,n){Pn.L(e,t,n);var a=Bl;if(a&&e&&t){var i='link[rel="preload"][as="'+en(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+en(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+en(n.imageSizes)+'"]')):i+='[href="'+en(e)+'"]';var r=i;switch(t){case"style":r=ql(e);break;case"script":r=Yl(e)}sn.has(r)||(e=ie({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),sn.set(r,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Uu(r))||t==="script"&&a.querySelector(ju(r))||(t=a.createElement("link"),xt(t,"link",e),Fe(t),a.head.appendChild(t)))}}function Ig(e,t){Pn.m(e,t);var n=Bl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+en(a)+'"][href="'+en(e)+'"]',r=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Yl(e)}if(!sn.has(r)&&(e=ie({rel:"modulepreload",href:e},t),sn.set(r,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ju(r)))return}a=n.createElement("link"),xt(a,"link",e),Fe(a),n.head.appendChild(a)}}}function ep(e,t,n){Pn.S(e,t,n);var a=Bl;if(a&&e){var i=Ut(a).hoistableStyles,r=ql(e);t=t||"default";var d=i.get(r);if(!d){var g={loading:0,preload:null};if(d=a.querySelector(Uu(r)))g.loading=5;else{e=ie({rel:"stylesheet",href:e,"data-precedence":t},n),(n=sn.get(r))&&Uf(e,n);var E=d=a.createElement("link");Fe(E),xt(E,"link",e),E._p=new Promise(function(C,B){E.onload=C,E.onerror=B}),E.addEventListener("load",function(){g.loading|=1}),E.addEventListener("error",function(){g.loading|=2}),g.loading|=4,tr(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:g},i.set(r,d)}}}function tp(e,t){Pn.X(e,t);var n=Bl;if(n&&e){var a=Ut(n).hoistableScripts,i=Yl(e),r=a.get(i);r||(r=n.querySelector(ju(i)),r||(e=ie({src:e,async:!0},t),(t=sn.get(i))&&jf(e,t),r=n.createElement("script"),Fe(r),xt(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(i,r))}}function np(e,t){Pn.M(e,t);var n=Bl;if(n&&e){var a=Ut(n).hoistableScripts,i=Yl(e),r=a.get(i);r||(r=n.querySelector(ju(i)),r||(e=ie({src:e,async:!0,type:"module"},t),(t=sn.get(i))&&jf(e,t),r=n.createElement("script"),Fe(r),xt(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(i,r))}}function Ih(e,t,n,a){var i=(i=et.current)?er(i):null;if(!i)throw Error(f(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ql(n.href),n=Ut(i).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ql(n.href);var r=Ut(i).hoistableStyles,d=r.get(e);if(d||(i=i.ownerDocument||i,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,d),(r=i.querySelector(Uu(e)))&&!r._p&&(d.instance=r,d.state.loading=5),sn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},sn.set(e,n),r||ap(i,e,n,d.state))),t&&a===null)throw Error(f(528,""));return d}if(t&&a!==null)throw Error(f(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Yl(n),n=Ut(i).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,e))}}function ql(e){return'href="'+en(e)+'"'}function Uu(e){return'link[rel="stylesheet"]['+e+"]"}function em(e){return ie({},e,{"data-precedence":e.precedence,precedence:null})}function ap(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),xt(t,"link",n),Fe(t),e.head.appendChild(t))}function Yl(e){return'[src="'+en(e)+'"]'}function ju(e){return"script[async]"+e}function tm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+en(n.href)+'"]');if(a)return t.instance=a,Fe(a),a;var i=ie({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Fe(a),xt(a,"style",i),tr(a,n.precedence,e),t.instance=a;case"stylesheet":i=ql(n.href);var r=e.querySelector(Uu(i));if(r)return t.state.loading|=4,t.instance=r,Fe(r),r;a=em(n),(i=sn.get(i))&&Uf(a,i),r=(e.ownerDocument||e).createElement("link"),Fe(r);var d=r;return d._p=new Promise(function(g,E){d.onload=g,d.onerror=E}),xt(r,"link",a),t.state.loading|=4,tr(r,n.precedence,e),t.instance=r;case"script":return r=Yl(n.src),(i=e.querySelector(ju(r)))?(t.instance=i,Fe(i),i):(a=n,(i=sn.get(r))&&(a=ie({},n),jf(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Fe(i),xt(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(f(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,tr(a,n.precedence,e));return t.instance}function tr(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,r=i,d=0;d<a.length;d++){var g=a[d];if(g.dataset.precedence===t)r=g;else if(r!==i)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Uf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function jf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var nr=null;function nm(e,t,n){if(nr===null){var a=new Map,i=nr=new Map;i.set(n,a)}else i=nr,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var r=n[i];if(!(r[vn]||r[de]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var d=r.getAttribute(t)||"";d=e+d;var g=a.get(d);g?g.push(r):a.set(d,[r])}}return a}function am(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function lp(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function lm(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var Lu=null;function up(){}function ip(e,t,n){if(Lu===null)throw Error(f(475));var a=Lu;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var i=ql(n.href),r=e.querySelector(Uu(i));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=ar.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=r,Fe(r);return}r=e.ownerDocument||e,n=em(n),(i=sn.get(i))&&Uf(n,i),r=r.createElement("link"),Fe(r);var d=r;d._p=new Promise(function(g,E){d.onload=g,d.onerror=E}),xt(r,"link",n),t.instance=r}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(a.count++,t=ar.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function rp(){if(Lu===null)throw Error(f(475));var e=Lu;return e.stylesheets&&e.count===0&&Lf(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Lf(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function ar(){if(this.count--,this.count===0){if(this.stylesheets)Lf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var lr=null;function Lf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lr=new Map,t.forEach(cp,e),lr=null,ar.call(e))}function cp(e,t){if(!(t.state.loading&4)){var n=lr.get(e);if(n)var a=n.get(null);else{n=new Map,lr.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<i.length;r++){var d=i[r];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),a=d)}a&&n.set(null,a)}i=t.instance,d=i.getAttribute("data-precedence"),r=n.get(d)||a,r===a&&n.set(null,i),n.set(d,i),this.count++,a=ar.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),r?r.parentNode.insertBefore(i,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Hu={$$typeof:D,Provider:null,Consumer:null,_currentValue:ve,_currentValue2:ve,_threadCount:0};function fp(e,t,n,a,i,r,d,g){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=L(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=L(0),this.hiddenUpdates=L(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=r,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function um(e,t,n,a,i,r,d,g,E,C,B,X){return e=new fp(e,t,n,d,g,E,C,X),t=1,r===!0&&(t|=24),r=fn(3,null,null,t),e.current=r,r.stateNode=e,t=hc(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:t},kc(r),e}function im(e){return e?(e=pl,e):pl}function rm(e,t,n,a,i,r){i=im(i),a.context===null?a.context=i:a.pendingContext=i,a=ha(t),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=ma(e,a,t),n!==null&&(wt(n,e,t),bu(n,e,t))}function cm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Hf(e,t){cm(e,t),(e=e.alternate)&&cm(e,t)}function fm(e){if(e.tag===13){var t=ia(e,67108864);t!==null&&wt(t,e,67108864),Hf(e,67108864)}}var ur=!0;function op(e,t,n,a){var i=$.T;$.T=null;var r=J.p;try{J.p=2,Bf(e,t,n,a)}finally{J.p=r,$.T=i}}function sp(e,t,n,a){var i=$.T;$.T=null;var r=J.p;try{J.p=8,Bf(e,t,n,a)}finally{J.p=r,$.T=i}}function Bf(e,t,n,a){if(ur){var i=qf(a);if(i===null)Df(e,t,a,ir,n),sm(e,a);else if(hp(i,e,t,n,a))a.stopPropagation();else if(sm(e,a),t&4&&-1<dp.indexOf(e)){for(;i!==null;){var r=On(i);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var d=Pt(r.pendingLanes);if(d!==0){var g=r;for(g.pendingLanes|=2,g.entangledLanes|=2;d;){var E=1<<31-Ot(d);g.entanglements[1]|=E,d&=~E}_n(r),!(Pe&6)&&(Vi=St()+500,wu(0))}}break;case 13:g=ia(r,2),g!==null&&wt(g,r,2),Ki(),Hf(r,2)}if(r=qf(a),r===null&&Df(e,t,a,ir,n),r===i)break;i=r}i!==null&&a.stopPropagation()}else Df(e,t,a,null,n)}}function qf(e){return e=Qr(e),Yf(e)}var ir=null;function Yf(e){if(ir=null,e=vt(e),e!==null){var t=W(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Te(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ir=e,null}function om(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ft()){case be:return 2;case Wt:return 8;case mn:case Lr:return 32;case yn:return 268435456;default:return 32}default:return 32}}var Gf=!1,Sa=null,Ra=null,Ta=null,Bu=new Map,qu=new Map,xa=[],dp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function sm(e,t){switch(e){case"focusin":case"focusout":Sa=null;break;case"dragenter":case"dragleave":Ra=null;break;case"mouseover":case"mouseout":Ta=null;break;case"pointerover":case"pointerout":Bu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qu.delete(t.pointerId)}}function Yu(e,t,n,a,i,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:r,targetContainers:[i]},t!==null&&(t=On(t),t!==null&&fm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function hp(e,t,n,a,i){switch(t){case"focusin":return Sa=Yu(Sa,e,t,n,a,i),!0;case"dragenter":return Ra=Yu(Ra,e,t,n,a,i),!0;case"mouseover":return Ta=Yu(Ta,e,t,n,a,i),!0;case"pointerover":var r=i.pointerId;return Bu.set(r,Yu(Bu.get(r)||null,e,t,n,a,i)),!0;case"gotpointercapture":return r=i.pointerId,qu.set(r,Yu(qu.get(r)||null,e,t,n,a,i)),!0}return!1}function dm(e){var t=vt(e.target);if(t!==null){var n=W(t);if(n!==null){if(t=n.tag,t===13){if(t=Te(n),t!==null){e.blockedOn=t,F(e.priority,function(){if(n.tag===13){var a=kt(),i=ia(n,a);i!==null&&wt(i,n,a),Hf(n,a)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function rr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=qf(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Vr=a,n.target.dispatchEvent(a),Vr=null}else return t=On(n),t!==null&&fm(t),e.blockedOn=n,!1;t.shift()}return!0}function hm(e,t,n){rr(e)&&n.delete(t)}function mp(){Gf=!1,Sa!==null&&rr(Sa)&&(Sa=null),Ra!==null&&rr(Ra)&&(Ra=null),Ta!==null&&rr(Ta)&&(Ta=null),Bu.forEach(hm),qu.forEach(hm)}function cr(e,t){e.blockedOn===t&&(e.blockedOn=null,Gf||(Gf=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,mp)))}var fr=null;function mm(e){fr!==e&&(fr=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){fr===e&&(fr=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(Yf(a||n)===null)continue;break}var r=On(n);r!==null&&(e.splice(t,3),t-=3,Ac(r,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function Gu(e){function t(E){return cr(E,e)}Sa!==null&&cr(Sa,e),Ra!==null&&cr(Ra,e),Ta!==null&&cr(Ta,e),Bu.forEach(t),qu.forEach(t);for(var n=0;n<xa.length;n++){var a=xa[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<xa.length&&(n=xa[0],n.blockedOn===null);)dm(n),n.blockedOn===null&&xa.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],r=n[a+1],d=i[xe]||null;if(typeof r=="function")d||mm(n);else if(d){var g=null;if(r&&r.hasAttribute("formAction")){if(i=r,d=r[xe]||null)g=d.formAction;else if(Yf(i)!==null)continue}else g=d.action;typeof g=="function"?n[a+1]=g:(n.splice(a,3),a-=3),mm(n)}}}function Xf(e){this._internalRoot=e}or.prototype.render=Xf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(f(409));var n=t.current,a=kt();rm(n,a,e,t,null,null)},or.prototype.unmount=Xf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;e.tag===0&&jl(),rm(e.current,2,null,e,null,null),Ki(),t[ke]=null}};function or(e){this._internalRoot=e}or.prototype.unstable_scheduleHydration=function(e){if(e){var t=ue();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xa.length&&t!==0&&t<xa[n].priority;n++);xa.splice(n,0,e),n===0&&dm(e)}};var ym=u.version;if(ym!=="19.0.0")throw Error(f(527,ym,"19.0.0"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(f(188)):(e=Object.keys(e).join(","),Error(f(268,e)));return e=G(t),e=e!==null?te(e):null,e=e===null?null:e.stateNode,e};var yp={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:$,findFiberByHostInstance:vt,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sr.isDisabled&&sr.supportsFiber)try{la=sr.inject(yp),Mt=sr}catch{}}return Vu.createRoot=function(e,t){if(!o(e))throw Error(f(299));var n=!1,a="",i=Nd,r=zd,d=Ud,g=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(g=t.unstable_transitionCallbacks)),t=um(e,1,!1,null,null,n,a,i,r,d,g,null),e[ke]=t.current,Of(e.nodeType===8?e.parentNode:e),new Xf(t)},Vu.hydrateRoot=function(e,t,n){if(!o(e))throw Error(f(299));var a=!1,i="",r=Nd,d=zd,g=Ud,E=null,C=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(E=n.unstable_transitionCallbacks),n.formState!==void 0&&(C=n.formState)),t=um(e,1,!0,t,n??null,a,i,r,d,g,E,C),t.context=im(null),n=t.current,a=kt(),i=ha(a),i.callback=null,ma(n,i,a),t.current.lanes=a,Q(t,a),_n(t),e[ke]=t.current,Of(e),new or(t)},Vu.version="19.0.0",Vu}var Dm;function Dp(){if(Dm)return Zf.exports;Dm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),Zf.exports=Op(),Zf.exports}var Gb=Dp();const Cp="modulepreload",Mp=function(l){return"/static/"+l},Cm={},Xb=function(u,c,f){let o=Promise.resolve();if(c&&c.length>0){document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),y=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));o=Promise.allSettled(c.map(v=>{if(v=Mp(v),v in Cm)return;Cm[v]=!0;const m=v.endsWith(".css"),b=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${b}`))return;const M=document.createElement("link");if(M.rel=m?"stylesheet":Cp,m||(M.as="script"),M.crossOrigin="",M.href=v,y&&M.setAttribute("nonce",y),document.head.appendChild(M),m)return new Promise((S,D)=>{M.addEventListener("load",S),M.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${v}`)))})}))}function s(h){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=h,window.dispatchEvent(y),!y.defaultPrevented)throw h}return o.then(h=>{for(const y of h||[])y.status==="rejected"&&s(y.reason);return u().catch(s)})};var Jf={exports:{}},Ff={};/**
+ * @license React
+ * react-compiler-runtime.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var Mm;function Ap(){if(Mm)return Ff;Mm=1;var l=Ar().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Ff.c=function(u){return l.H.useMemoCache(u)},Ff}var Am;function _p(){return Am||(Am=1,Jf.exports=Ap()),Jf.exports}var Bt=_p(),Qu={},_m;function wp(){if(_m)return Qu;_m=1,Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.parse=h,Qu.serialize=m;const l=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,u=/^[\u0021-\u003A\u003C-\u007E]*$/,c=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,f=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,s=(()=>{const S=function(){};return S.prototype=Object.create(null),S})();function h(S,D){const N=new s,q=S.length;if(q<2)return N;const V=(D==null?void 0:D.decode)||b;let U=0;do{const Z=S.indexOf("=",U);if(Z===-1)break;const K=S.indexOf(";",U),le=K===-1?q:K;if(Z>le){U=S.lastIndexOf(";",Z-1)+1;continue}const x=y(S,U,Z),P=v(S,Z,x),he=S.slice(x,P);if(N[he]===void 0){let oe=y(S,Z+1,le),$=v(S,le,oe);const ie=V(S.slice(oe,$));N[he]=ie}U=le+1}while(U<q);return N}function y(S,D,N){do{const q=S.charCodeAt(D);if(q!==32&&q!==9)return D}while(++D<N);return N}function v(S,D,N){for(;D>N;){const q=S.charCodeAt(--D);if(q!==32&&q!==9)return D+1}return N}function m(S,D,N){const q=(N==null?void 0:N.encode)||encodeURIComponent;if(!l.test(S))throw new TypeError(`argument name is invalid: ${S}`);const V=q(D);if(!u.test(V))throw new TypeError(`argument val is invalid: ${D}`);let U=S+"="+V;if(!N)return U;if(N.maxAge!==void 0){if(!Number.isInteger(N.maxAge))throw new TypeError(`option maxAge is invalid: ${N.maxAge}`);U+="; Max-Age="+N.maxAge}if(N.domain){if(!c.test(N.domain))throw new TypeError(`option domain is invalid: ${N.domain}`);U+="; Domain="+N.domain}if(N.path){if(!f.test(N.path))throw new TypeError(`option path is invalid: ${N.path}`);U+="; Path="+N.path}if(N.expires){if(!M(N.expires)||!Number.isFinite(N.expires.valueOf()))throw new TypeError(`option expires is invalid: ${N.expires}`);U+="; Expires="+N.expires.toUTCString()}if(N.httpOnly&&(U+="; HttpOnly"),N.secure&&(U+="; Secure"),N.partitioned&&(U+="; Partitioned"),N.priority)switch(typeof N.priority=="string"?N.priority.toLowerCase():void 0){case"low":U+="; Priority=Low";break;case"medium":U+="; Priority=Medium";break;case"high":U+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${N.priority}`)}if(N.sameSite)switch(typeof N.sameSite=="string"?N.sameSite.toLowerCase():N.sameSite){case!0:case"strict":U+="; SameSite=Strict";break;case"lax":U+="; SameSite=Lax";break;case"none":U+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${N.sameSite}`)}return U}function b(S){if(S.indexOf("%")===-1)return S;try{return decodeURIComponent(S)}catch{return S}}function M(S){return o.call(S)==="[object Date]"}return Qu}wp();/**
+ * react-router v7.1.3
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */var wm="popstate";function Np(l={}){function u(f,o){let{pathname:s,search:h,hash:y}=f.location;return Fu("",{pathname:s,search:h,hash:y},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function c(f,o){return typeof o=="string"?o:Aa(o)}return Up(u,c,null,l)}function Ne(l,u){if(l===!1||l===null||typeof l>"u")throw new Error(u)}function bt(l,u){if(!l){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function zp(){return Math.random().toString(36).substring(2,10)}function Nm(l,u){return{usr:l.state,key:l.key,idx:u}}function Fu(l,u,c=null,f){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof u=="string"?_a(u):u,state:c,key:u&&u.key||f||zp()}}function Aa({pathname:l="/",search:u="",hash:c=""}){return u&&u!=="?"&&(l+=u.charAt(0)==="?"?u:"?"+u),c&&c!=="#"&&(l+=c.charAt(0)==="#"?c:"#"+c),l}function _a(l){let u={};if(l){let c=l.indexOf("#");c>=0&&(u.hash=l.substring(c),l=l.substring(0,c));let f=l.indexOf("?");f>=0&&(u.search=l.substring(f),l=l.substring(0,f)),l&&(u.pathname=l)}return u}function Up(l,u,c,f={}){let{window:o=document.defaultView,v5Compat:s=!1}=f,h=o.history,y="POP",v=null,m=b();m==null&&(m=0,h.replaceState({...h.state,idx:m},""));function b(){return(h.state||{idx:null}).idx}function M(){y="POP";let V=b(),U=V==null?null:V-m;m=V,v&&v({action:y,location:q.location,delta:U})}function S(V,U){y="PUSH";let Z=Fu(q.location,V,U);m=b()+1;let K=Nm(Z,m),le=q.createHref(Z);try{h.pushState(K,"",le)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;o.location.assign(le)}s&&v&&v({action:y,location:q.location,delta:1})}function D(V,U){y="REPLACE";let Z=Fu(q.location,V,U);m=b();let K=Nm(Z,m),le=q.createHref(Z);h.replaceState(K,"",le),s&&v&&v({action:y,location:q.location,delta:0})}function N(V){let U=o.location.origin!=="null"?o.location.origin:o.location.href,Z=typeof V=="string"?V:Aa(V);return Z=Z.replace(/ $/,"%20"),Ne(U,`No window.location.(origin|href) available to create URL for href: ${Z}`),new URL(Z,U)}let q={get action(){return y},get location(){return l(o,h)},listen(V){if(v)throw new Error("A history only accepts one active listener");return o.addEventListener(wm,M),v=V,()=>{o.removeEventListener(wm,M),v=null}},createHref(V){return u(o,V)},createURL:N,encodeLocation(V){let U=N(V);return{pathname:U.pathname,search:U.search,hash:U.hash}},push:S,replace:D,go(V){return h.go(V)}};return q}var jp=new Set(["lazy","caseSensitive","path","id","index","children"]);function Lp(l){return l.index===!0}function br(l,u,c=[],f={}){return l.map((o,s)=>{let h=[...c,String(s)],y=typeof o.id=="string"?o.id:h.join("-");if(Ne(o.index!==!0||!o.children,"Cannot specify children on an index route"),Ne(!f[y],`Found a route id collision on id "${y}".  Route id's must be globally unique within Data Router usages`),Lp(o)){let v={...o,...u(o),id:y};return f[y]=v,v}else{let v={...o,...u(o),id:y,children:void 0};return f[y]=v,o.children&&(v.children=br(o.children,u,h,f)),v}})}function Ma(l,u,c="/"){return gr(l,u,c,!1)}function gr(l,u,c,f){let o=typeof u=="string"?_a(u):u,s=Jt(o.pathname||"/",c);if(s==null)return null;let h=yy(l);Bp(h);let y=null;for(let v=0;y==null&&v<h.length;++v){let m=Jp(s);y=kp(h[v],m,f)}return y}function Hp(l,u){let{route:c,pathname:f,params:o}=l;return{id:c.id,pathname:f,params:o,data:u[c.id],handle:c.handle}}function yy(l,u=[],c=[],f=""){let o=(s,h,y)=>{let v={relativePath:y===void 0?s.path||"":y,caseSensitive:s.caseSensitive===!0,childrenIndex:h,route:s};v.relativePath.startsWith("/")&&(Ne(v.relativePath.startsWith(f),`Absolute route path "${v.relativePath}" nested under path "${f}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(f.length));let m=wn([f,v.relativePath]),b=c.concat(v);s.children&&s.children.length>0&&(Ne(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),yy(s.children,u,b,m)),!(s.path==null&&!s.index)&&u.push({path:m,score:Zp(m,s.index),routesMeta:b})};return l.forEach((s,h)=>{var y;if(s.path===""||!((y=s.path)!=null&&y.includes("?")))o(s,h);else for(let v of vy(s.path))o(s,h,v)}),u}function vy(l){let u=l.split("/");if(u.length===0)return[];let[c,...f]=u,o=c.endsWith("?"),s=c.replace(/\?$/,"");if(f.length===0)return o?[s,""]:[s];let h=vy(f.join("/")),y=[];return y.push(...h.map(v=>v===""?s:[s,v].join("/"))),o&&y.push(...h),y.map(v=>l.startsWith("/")&&v===""?"/":v)}function Bp(l){l.sort((u,c)=>u.score!==c.score?c.score-u.score:Kp(u.routesMeta.map(f=>f.childrenIndex),c.routesMeta.map(f=>f.childrenIndex)))}var qp=/^:[\w-]+$/,Yp=3,Gp=2,Xp=1,Vp=10,Qp=-2,zm=l=>l==="*";function Zp(l,u){let c=l.split("/"),f=c.length;return c.some(zm)&&(f+=Qp),u&&(f+=Gp),c.filter(o=>!zm(o)).reduce((o,s)=>o+(qp.test(s)?Yp:s===""?Xp:Vp),f)}function Kp(l,u){return l.length===u.length&&l.slice(0,-1).every((f,o)=>f===u[o])?l[l.length-1]-u[u.length-1]:0}function kp(l,u,c=!1){let{routesMeta:f}=l,o={},s="/",h=[];for(let y=0;y<f.length;++y){let v=f[y],m=y===f.length-1,b=s==="/"?u:u.slice(s.length)||"/",M=Sr({path:v.relativePath,caseSensitive:v.caseSensitive,end:m},b),S=v.route;if(!M&&m&&c&&!f[f.length-1].route.index&&(M=Sr({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},b)),!M)return null;Object.assign(o,M.params),h.push({params:o,pathname:wn([s,M.pathname]),pathnameBase:Pp(wn([s,M.pathnameBase])),route:S}),M.pathnameBase!=="/"&&(s=wn([s,M.pathnameBase]))}return h}function Sr(l,u){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[c,f]=$p(l.path,l.caseSensitive,l.end),o=u.match(c);if(!o)return null;let s=o[0],h=s.replace(/(.)\/+$/,"$1"),y=o.slice(1);return{params:f.reduce((m,{paramName:b,isOptional:M},S)=>{if(b==="*"){let N=y[S]||"";h=s.slice(0,s.length-N.length).replace(/(.)\/+$/,"$1")}const D=y[S];return M&&!D?m[b]=void 0:m[b]=(D||"").replace(/%2F/g,"/"),m},{}),pathname:s,pathnameBase:h,pattern:l}}function $p(l,u=!1,c=!0){bt(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let f=[],o="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,y,v)=>(f.push({paramName:y,isOptional:v!=null}),v?"/?([^\\/]+)?":"/([^\\/]+)"));return l.endsWith("*")?(f.push({paramName:"*"}),o+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?o+="\\/*$":l!==""&&l!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,u?void 0:"i"),f]}function Jp(l){try{return l.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return bt(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),l}}function Jt(l,u){if(u==="/")return l;if(!l.toLowerCase().startsWith(u.toLowerCase()))return null;let c=u.endsWith("/")?u.length-1:u.length,f=l.charAt(c);return f&&f!=="/"?null:l.slice(c)||"/"}function Fp(l,u="/"){let{pathname:c,search:f="",hash:o=""}=typeof l=="string"?_a(l):l;return{pathname:c?c.startsWith("/")?c:Wp(c,u):u,search:Ip(f),hash:e0(o)}}function Wp(l,u){let c=u.replace(/\/+$/,"").split("/");return l.split("/").forEach(o=>{o===".."?c.length>1&&c.pop():o!=="."&&c.push(o)}),c.length>1?c.join("/"):"/"}function Wf(l,u,c,f){return`Cannot include a '${l}' character in a manually specified \`to.${u}\` field [${JSON.stringify(f)}].  Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function gy(l){return l.filter((u,c)=>c===0||u.route.path&&u.route.path.length>0)}function Do(l){let u=gy(l);return u.map((c,f)=>f===u.length-1?c.pathname:c.pathnameBase)}function Co(l,u,c,f=!1){let o;typeof l=="string"?o=_a(l):(o={...l},Ne(!o.pathname||!o.pathname.includes("?"),Wf("?","pathname","search",o)),Ne(!o.pathname||!o.pathname.includes("#"),Wf("#","pathname","hash",o)),Ne(!o.search||!o.search.includes("#"),Wf("#","search","hash",o)));let s=l===""||o.pathname==="",h=s?"/":o.pathname,y;if(h==null)y=c;else{let M=u.length-1;if(!f&&h.startsWith("..")){let S=h.split("/");for(;S[0]==="..";)S.shift(),M-=1;o.pathname=S.join("/")}y=M>=0?u[M]:"/"}let v=Fp(o,y),m=h&&h!=="/"&&h.endsWith("/"),b=(s||h===".")&&c.endsWith("/");return!v.pathname.endsWith("/")&&(m||b)&&(v.pathname+="/"),v}var wn=l=>l.join("/").replace(/\/\/+/g,"/"),Pp=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),Ip=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,e0=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,Rr=class{constructor(l,u,c,f=!1){this.status=l,this.statusText=u||"",this.internal=f,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function _r(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}var py=["POST","PUT","PATCH","DELETE"],t0=new Set(py),n0=["GET",...py],a0=new Set(n0),l0=new Set([301,302,303,307,308]),u0=new Set([307,308]),Pf={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},i0={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Zl={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Mo=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,r0=l=>({hasErrorBoundary:!!l.hasErrorBoundary}),Ey="remix-router-transitions",by=Symbol("ResetLoaderData");function c0(l){const u=l.window?l.window:typeof window<"u"?window:void 0,c=typeof u<"u"&&typeof u.document<"u"&&typeof u.document.createElement<"u";Ne(l.routes.length>0,"You must provide a non-empty routes array to createRouter");let f=l.mapRouteProperties||r0,o={},s=br(l.routes,f,void 0,o),h,y=l.basename||"/",v=l.dataStrategy||h0,m=l.patchRoutesOnNavigation,b={...l.future},M=null,S=new Set,D=null,N=null,q=null,V=l.hydrationData!=null,U=Ma(s,l.history.location,y),Z=null;if(U==null&&!m){let T=dn(404,{pathname:l.history.location.pathname}),{matches:_,route:L}=Qm(s);U=_,Z={[L.id]:T}}U&&!l.hydrationData&&Pt(U,s,l.history.location.pathname).active&&(U=null);let K;if(U)if(U.some(T=>T.route.lazy))K=!1;else if(!U.some(T=>T.route.loader))K=!0;else{let T=l.hydrationData?l.hydrationData.loaderData:null,_=l.hydrationData?l.hydrationData.errors:null;if(_){let L=U.findIndex(Q=>_[Q.route.id]!==void 0);K=U.slice(0,L+1).every(Q=>!yo(Q.route,T,_))}else K=U.every(L=>!yo(L.route,T,_))}else{K=!1,U=[];let T=Pt(null,s,l.history.location.pathname);T.active&&T.matches&&(U=T.matches)}let le,x={historyAction:l.history.action,location:l.history.location,matches:U,initialized:K,navigation:Pf,restoreScrollPosition:l.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:l.hydrationData&&l.hydrationData.loaderData||{},actionData:l.hydrationData&&l.hydrationData.actionData||null,errors:l.hydrationData&&l.hydrationData.errors||Z,fetchers:new Map,blockers:new Map},P="POP",he=!1,oe,$=!1,ie=new Map,He=null,ut=!1,Je=!1,dt=new Set,Me=new Map,k=0,se=-1,W=new Map,Te=new Set,R=new Map,G=new Map,te=new Set,I=new Map,J,ve=null;function pe(){if(M=l.history.listen(({action:T,location:_,delta:L})=>{if(J){J(),J=void 0;return}bt(I.size===0||L!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let Q=Ot({currentLocation:x.location,nextLocation:_,historyAction:T});if(Q&&L!=null){let ee=new Promise(ce=>{J=ce});l.history.go(L*-1),Gt(Q,{state:"blocked",location:_,proceed(){Gt(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),ee.then(()=>l.history.go(L))},reset(){let ce=new Map(x.blockers);ce.set(Q,Zl),Se({blockers:ce})}});return}return et(T,_)}),c){x0(u,ie);let T=()=>O0(u,ie);u.addEventListener("pagehide",T),He=()=>u.removeEventListener("pagehide",T)}return x.initialized||et("POP",x.location,{initialHydration:!0}),le}function Ie(){M&&M(),He&&He(),S.clear(),oe&&oe.abort(),x.fetchers.forEach((T,_)=>mn(_)),x.blockers.forEach((T,_)=>ai(_))}function _e(T){return S.add(T),()=>S.delete(T)}function Se(T,_={}){x={...x,...T};let L=[],Q=[];x.fetchers.forEach((ee,ce)=>{ee.state==="idle"&&(te.has(ce)?L.push(ce):Q.push(ce))}),te.forEach(ee=>{!x.fetchers.has(ee)&&!Me.has(ee)&&L.push(ee)}),[...S].forEach(ee=>ee(x,{deletedFetchers:L,viewTransitionOpts:_.viewTransitionOpts,flushSync:_.flushSync===!0})),L.forEach(ee=>mn(ee)),Q.forEach(ee=>x.fetchers.delete(ee))}function De(T,_,{flushSync:L}={}){var F,me;let Q=x.actionData!=null&&x.navigation.formMethod!=null&&Tn(x.navigation.formMethod)&&x.navigation.state==="loading"&&((F=T.state)==null?void 0:F._isRedirect)!==!0,ee;_.actionData?Object.keys(_.actionData).length>0?ee=_.actionData:ee=null:Q?ee=x.actionData:ee=null;let ce=_.loaderData?Xm(x.loaderData,_.loaderData,_.matches||[],_.errors):x.loaderData,ge=x.blockers;ge.size>0&&(ge=new Map(ge),ge.forEach((de,xe)=>ge.set(xe,Zl)));let ne=he===!0||x.navigation.formMethod!=null&&Tn(x.navigation.formMethod)&&((me=T.state)==null?void 0:me._isRedirect)!==!0;h&&(s=h,h=void 0),ut||P==="POP"||(P==="PUSH"?l.history.push(T,T.state):P==="REPLACE"&&l.history.replace(T,T.state));let ue;if(P==="POP"){let de=ie.get(x.location.pathname);de&&de.has(T.pathname)?ue={currentLocation:x.location,nextLocation:T}:ie.has(T.pathname)&&(ue={currentLocation:T,nextLocation:x.location})}else if($){let de=ie.get(x.location.pathname);de?de.add(T.pathname):(de=new Set([T.pathname]),ie.set(x.location.pathname,de)),ue={currentLocation:x.location,nextLocation:T}}Se({..._,actionData:ee,loaderData:ce,historyAction:P,location:T,initialized:!0,navigation:Pf,revalidation:"idle",restoreScrollPosition:za(T,_.matches||x.matches),preventScrollReset:ne,blockers:ge},{viewTransitionOpts:ue,flushSync:L===!0}),P="POP",he=!1,$=!1,ut=!1,Je=!1,ve==null||ve.resolve(),ve=null}async function yt(T,_){if(typeof T=="number"){l.history.go(T);return}let L=mo(x.location,x.matches,y,T,_==null?void 0:_.fromRouteId,_==null?void 0:_.relative),{path:Q,submission:ee,error:ce}=Um(!1,L,_),ge=x.location,ne=Fu(x.location,Q,_&&_.state);ne={...ne,...l.history.encodeLocation(ne)};let ue=_&&_.replace!=null?_.replace:void 0,F="PUSH";ue===!0?F="REPLACE":ue===!1||ee!=null&&Tn(ee.formMethod)&&ee.formAction===x.location.pathname+x.location.search&&(F="REPLACE");let me=_&&"preventScrollReset"in _?_.preventScrollReset===!0:void 0,de=(_&&_.flushSync)===!0,xe=Ot({currentLocation:ge,nextLocation:ne,historyAction:F});if(xe){Gt(xe,{state:"blocked",location:ne,proceed(){Gt(xe,{state:"proceeding",proceed:void 0,reset:void 0,location:ne}),yt(T,_)},reset(){let ke=new Map(x.blockers);ke.set(xe,Zl),Se({blockers:ke})}});return}await et(F,ne,{submission:ee,pendingError:ce,preventScrollReset:me,replace:_&&_.replace,enableViewTransition:_&&_.viewTransition,flushSync:de})}function Nt(){ve||(ve=D0()),St(),Se({revalidation:"loading"});let T=ve.promise;return x.navigation.state==="submitting"?T:x.navigation.state==="idle"?(et(x.historyAction,x.location,{startUninterruptedRevalidation:!0}),T):(et(P||x.historyAction,x.navigation.location,{overrideNavigation:x.navigation,enableViewTransition:$===!0}),T)}async function et(T,_,L){oe&&oe.abort(),oe=null,P=T,ut=(L&&L.startUninterruptedRevalidation)===!0,fl(x.location,x.matches),he=(L&&L.preventScrollReset)===!0,$=(L&&L.enableViewTransition)===!0;let Q=h||s,ee=L&&L.overrideNavigation,ce=Ma(Q,_,y),ge=(L&&L.flushSync)===!0,ne=Pt(ce,Q,_.pathname);if(ne.active&&ne.matches&&(ce=ne.matches),!ce){let{error:Xe,notFoundMatches:Ve,route:it}=Jl(_.pathname);De(_,{matches:Ve,loaderData:{},errors:{[it.id]:Xe}},{flushSync:ge});return}if(x.initialized&&!Je&&E0(x.location,_)&&!(L&&L.submission&&Tn(L.submission.formMethod))){De(_,{matches:ce},{flushSync:ge});return}oe=new AbortController;let ue=Gl(l.history,_,oe.signal,L&&L.submission),F;if(L&&L.pendingError)F=[nl(ce).route.id,{type:"error",error:L.pendingError}];else if(L&&L.submission&&Tn(L.submission.formMethod)){let Xe=await qt(ue,_,L.submission,ce,ne.active,{replace:L.replace,flushSync:ge});if(Xe.shortCircuited)return;if(Xe.pendingActionResult){let[Ve,it]=Xe.pendingActionResult;if($t(it)&&_r(it.error)&&it.error.status===404){oe=null,De(_,{matches:Xe.matches,loaderData:{},errors:{[Ve]:it.error}});return}}ce=Xe.matches||ce,F=Xe.pendingActionResult,ee=If(_,L.submission),ge=!1,ne.active=!1,ue=Gl(l.history,ue.url,ue.signal)}let{shortCircuited:me,matches:de,loaderData:xe,errors:ke}=await Le(ue,_,ce,ne.active,ee,L&&L.submission,L&&L.fetcherSubmission,L&&L.replace,L&&L.initialHydration===!0,ge,F);me||(oe=null,De(_,{matches:de||ce,...Vm(F),loaderData:xe,errors:ke}))}async function qt(T,_,L,Q,ee,ce={}){St();let ge=R0(_,L);if(Se({navigation:ge},{flushSync:ce.flushSync===!0}),ee){let F=await Un(Q,_.pathname,T.signal);if(F.type==="aborted")return{shortCircuited:!0};if(F.type==="error"){let me=nl(F.partialMatches).route.id;return{matches:F.partialMatches,pendingActionResult:[me,{type:"error",error:F.error}]}}else if(F.matches)Q=F.matches;else{let{notFoundMatches:me,error:de,route:xe}=Jl(_.pathname);return{matches:me,pendingActionResult:[xe.id,{type:"error",error:de}]}}}let ne,ue=$u(Q,_);if(!ue.route.action&&!ue.route.lazy)ne={type:"error",error:dn(405,{method:T.method,pathname:_.pathname,routeId:ue.route.id})};else if(ne=(await zn("action",x,T,[ue],Q,null))[ue.route.id],T.signal.aborted)return{shortCircuited:!0};if(ul(ne)){let F;return ce&&ce.replace!=null?F=ce.replace:F=qm(ne.response.headers.get("Location"),new URL(T.url),y)===x.location.pathname+x.location.search,await Yt(T,ne,!0,{submission:L,replace:F}),{shortCircuited:!0}}if($t(ne)){let F=nl(Q,ue.route.id);return(ce&&ce.replace)!==!0&&(P="PUSH"),{matches:Q,pendingActionResult:[F.route.id,ne]}}return{matches:Q,pendingActionResult:[ue.route.id,ne]}}async function Le(T,_,L,Q,ee,ce,ge,ne,ue,F,me){let de=ee||If(_,ce),xe=ce||ge||Km(de),ke=!ut&&!ue;if(Q){if(ke){let $e=zt(me);Se({navigation:de,...$e!==void 0?{actionData:$e}:{}},{flushSync:F})}let Be=await Un(L,_.pathname,T.signal);if(Be.type==="aborted")return{shortCircuited:!0};if(Be.type==="error"){let $e=nl(Be.partialMatches).route.id;return{matches:Be.partialMatches,loaderData:{},errors:{[$e]:Be.error}}}else if(Be.matches)L=Be.matches;else{let{error:$e,notFoundMatches:pn,route:At}=Jl(_.pathname);return{matches:pn,loaderData:{},errors:{[At.id]:$e}}}}let Xe=h||s,[Ve,it]=Lm(l.history,x,L,xe,_,ue===!0,Je,dt,te,R,Te,Xe,y,me);if(se=++k,Ve.length===0&&it.length===0){let Be=ni();return De(_,{matches:L,loaderData:{},errors:me&&$t(me[1])?{[me[0]]:me[1].error}:null,...Vm(me),...Be?{fetchers:new Map(x.fetchers)}:{}},{flushSync:F}),{shortCircuited:!0}}if(ke){let Be={};if(!Q){Be.navigation=de;let $e=zt(me);$e!==void 0&&(Be.actionData=$e)}it.length>0&&(Be.fetchers=hn(it)),Se(Be,{flushSync:F})}it.forEach(Be=>{yn(Be.key),Be.controller&&Me.set(Be.key,Be.controller)});let jn=()=>it.forEach(Be=>yn(Be.key));oe&&oe.signal.addEventListener("abort",jn);let{loaderResults:vn,fetcherResults:Xt}=await cl(x,L,Ve,it,T);if(T.signal.aborted)return{shortCircuited:!0};oe&&oe.signal.removeEventListener("abort",jn),it.forEach(Be=>Me.delete(Be.key));let vt=dr(vn);if(vt)return await Yt(T,vt.result,!0,{replace:ne}),{shortCircuited:!0};if(vt=dr(Xt),vt)return Te.add(vt.key),await Yt(T,vt.result,!0,{replace:ne}),{shortCircuited:!0};let{loaderData:On,errors:gn}=Gm(x,L,vn,me,it,Xt);ue&&x.errors&&(gn={...x.errors,...gn});let Ut=ni(),Fe=la(se),ja=Ut||Fe||it.length>0;return{matches:L,loaderData:On,errors:gn,...ja?{fetchers:new Map(x.fetchers)}:{}}}function zt(T){if(T&&!$t(T[1]))return{[T[0]]:T[1].data};if(x.actionData)return Object.keys(x.actionData).length===0?null:x.actionData}function hn(T){return T.forEach(_=>{let L=x.fetchers.get(_.key),Q=Zu(void 0,L?L.data:void 0);x.fetchers.set(_.key,Q)}),new Map(x.fetchers)}async function aa(T,_,L,Q){yn(T);let ee=(Q&&Q.flushSync)===!0,ce=h||s,ge=mo(x.location,x.matches,y,L,_,Q==null?void 0:Q.relative),ne=Ma(ce,ge,y),ue=Pt(ne,ce,ge);if(ue.active&&ue.matches&&(ne=ue.matches),!ne){be(T,_,dn(404,{pathname:ge}),{flushSync:ee});return}let{path:F,submission:me,error:de}=Um(!0,ge,Q);if(de){be(T,_,de,{flushSync:ee});return}let xe=$u(ne,F),ke=(Q&&Q.preventScrollReset)===!0;if(me&&Tn(me.formMethod)){await wa(T,_,F,xe,ne,ue.active,ee,ke,me);return}R.set(T,{routeId:_,path:F}),await Na(T,_,F,xe,ne,ue.active,ee,ke,me)}async function wa(T,_,L,Q,ee,ce,ge,ne,ue){St(),R.delete(T);function F(tt){if(!tt.route.action&&!tt.route.lazy){let Ln=dn(405,{method:ue.formMethod,pathname:L,routeId:_});return be(T,_,Ln,{flushSync:ge}),!0}return!1}if(!ce&&F(Q))return;let me=x.fetchers.get(T);Ft(T,T0(ue,me),{flushSync:ge});let de=new AbortController,xe=Gl(l.history,L,de.signal,ue);if(ce){let tt=await Un(ee,L,xe.signal);if(tt.type==="aborted")return;if(tt.type==="error"){be(T,_,tt.error,{flushSync:ge});return}else if(tt.matches){if(ee=tt.matches,Q=$u(ee,L),F(Q))return}else{be(T,_,dn(404,{pathname:L}),{flushSync:ge});return}}Me.set(T,de);let ke=k,Ve=(await zn("action",x,xe,[Q],ee,T))[Q.route.id];if(xe.signal.aborted){Me.get(T)===de&&Me.delete(T);return}if(te.has(T)){if(ul(Ve)||$t(Ve)){Ft(T,Da(void 0));return}}else{if(ul(Ve))if(Me.delete(T),se>ke){Ft(T,Da(void 0));return}else return Te.add(T),Ft(T,Zu(ue)),Yt(xe,Ve,!1,{fetcherSubmission:ue,preventScrollReset:ne});if($t(Ve)){be(T,_,Ve.error);return}}let it=x.navigation.location||x.location,jn=Gl(l.history,it,de.signal),vn=h||s,Xt=x.navigation.state!=="idle"?Ma(vn,x.navigation.location,y):x.matches;Ne(Xt,"Didn't find any matches after fetcher action");let vt=++k;W.set(T,vt);let On=Zu(ue,Ve.data);x.fetchers.set(T,On);let[gn,Ut]=Lm(l.history,x,Xt,ue,it,!1,Je,dt,te,R,Te,vn,y,[Q.route.id,Ve]);Ut.filter(tt=>tt.key!==T).forEach(tt=>{let Ln=tt.key,Fl=x.fetchers.get(Ln),qr=Zu(void 0,Fl?Fl.data:void 0);x.fetchers.set(Ln,qr),yn(Ln),tt.controller&&Me.set(Ln,tt.controller)}),Se({fetchers:new Map(x.fetchers)});let Fe=()=>Ut.forEach(tt=>yn(tt.key));de.signal.addEventListener("abort",Fe);let{loaderResults:ja,fetcherResults:Be}=await cl(x,Xt,gn,Ut,jn);if(de.signal.aborted)return;de.signal.removeEventListener("abort",Fe),W.delete(T),Me.delete(T),Ut.forEach(tt=>Me.delete(tt.key));let $e=dr(ja);if($e)return Yt(jn,$e.result,!1,{preventScrollReset:ne});if($e=dr(Be),$e)return Te.add($e.key),Yt(jn,$e.result,!1,{preventScrollReset:ne});let{loaderData:pn,errors:At}=Gm(x,Xt,ja,void 0,Ut,Be);if(x.fetchers.has(T)){let tt=Da(Ve.data);x.fetchers.set(T,tt)}la(vt),x.navigation.state==="loading"&&vt>se?(Ne(P,"Expected pending action"),oe&&oe.abort(),De(x.navigation.location,{matches:Xt,loaderData:pn,errors:At,fetchers:new Map(x.fetchers)})):(Se({errors:At,loaderData:Xm(x.loaderData,pn,Xt,At),fetchers:new Map(x.fetchers)}),Je=!1)}async function Na(T,_,L,Q,ee,ce,ge,ne,ue){let F=x.fetchers.get(T);Ft(T,Zu(ue,F?F.data:void 0),{flushSync:ge});let me=new AbortController,de=Gl(l.history,L,me.signal);if(ce){let Ve=await Un(ee,L,de.signal);if(Ve.type==="aborted")return;if(Ve.type==="error"){be(T,_,Ve.error,{flushSync:ge});return}else if(Ve.matches)ee=Ve.matches,Q=$u(ee,L);else{be(T,_,dn(404,{pathname:L}),{flushSync:ge});return}}Me.set(T,me);let xe=k,Xe=(await zn("loader",x,de,[Q],ee,T))[Q.route.id];if(Me.get(T)===me&&Me.delete(T),!de.signal.aborted){if(te.has(T)){Ft(T,Da(void 0));return}if(ul(Xe))if(se>xe){Ft(T,Da(void 0));return}else{Te.add(T),await Yt(de,Xe,!1,{preventScrollReset:ne});return}if($t(Xe)){be(T,_,Xe.error);return}Ft(T,Da(Xe.data))}}async function Yt(T,_,L,{submission:Q,fetcherSubmission:ee,preventScrollReset:ce,replace:ge}={}){_.response.headers.has("X-Remix-Revalidate")&&(Je=!0);let ne=_.response.headers.get("Location");Ne(ne,"Expected a Location header on the redirect Response"),ne=qm(ne,new URL(T.url),y);let ue=Fu(x.location,ne,{_isRedirect:!0});if(c){let Xe=!1;if(_.response.headers.has("X-Remix-Reload-Document"))Xe=!0;else if(Mo.test(ne)){const Ve=l.history.createURL(ne);Xe=Ve.origin!==u.location.origin||Jt(Ve.pathname,y)==null}if(Xe){ge?u.location.replace(ne):u.location.assign(ne);return}}oe=null;let F=ge===!0||_.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:me,formAction:de,formEncType:xe}=x.navigation;!Q&&!ee&&me&&de&&xe&&(Q=Km(x.navigation));let ke=Q||ee;if(u0.has(_.response.status)&&ke&&Tn(ke.formMethod))await et(F,ue,{submission:{...ke,formAction:ne},preventScrollReset:ce||he,enableViewTransition:L?$:void 0});else{let Xe=If(ue,Q);await et(F,ue,{overrideNavigation:Xe,fetcherSubmission:ee,preventScrollReset:ce||he,enableViewTransition:L?$:void 0})}}async function zn(T,_,L,Q,ee,ce){let ge,ne={};try{ge=await m0(v,T,_,L,Q,ee,ce,o,f)}catch(ue){return Q.forEach(F=>{ne[F.route.id]={type:"error",error:ue}}),ne}for(let[ue,F]of Object.entries(ge))if(b0(F)){let me=F.result;ne[ue]={type:"redirect",response:g0(me,L,ue,ee,y)}}else ne[ue]=await v0(F);return ne}async function cl(T,_,L,Q,ee){let ce=zn("loader",T,ee,L,_,null),ge=Promise.all(Q.map(async F=>{if(F.matches&&F.match&&F.controller){let de=(await zn("loader",T,Gl(l.history,F.path,F.controller.signal),[F.match],F.matches,F.key))[F.match.route.id];return{[F.key]:de}}else return Promise.resolve({[F.key]:{type:"error",error:dn(404,{pathname:F.path})}})})),ne=await ce,ue=(await ge).reduce((F,me)=>Object.assign(F,me),{});return{loaderResults:ne,fetcherResults:ue}}function St(){Je=!0,R.forEach((T,_)=>{Me.has(_)&&dt.add(_),yn(_)})}function Ft(T,_,L={}){x.fetchers.set(T,_),Se({fetchers:new Map(x.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function be(T,_,L,Q={}){let ee=nl(x.matches,_);mn(T),Se({errors:{[ee.route.id]:L},fetchers:new Map(x.fetchers)},{flushSync:(Q&&Q.flushSync)===!0})}function Wt(T){return G.set(T,(G.get(T)||0)+1),te.has(T)&&te.delete(T),x.fetchers.get(T)||i0}function mn(T){let _=x.fetchers.get(T);Me.has(T)&&!(_&&_.state==="loading"&&W.has(T))&&yn(T),R.delete(T),W.delete(T),Te.delete(T),te.delete(T),dt.delete(T),x.fetchers.delete(T)}function Lr(T){let _=(G.get(T)||0)-1;_<=0?(G.delete(T),te.add(T)):G.set(T,_),Se({fetchers:new Map(x.fetchers)})}function yn(T){let _=Me.get(T);_&&(_.abort(),Me.delete(T))}function ti(T){for(let _ of T){let L=Wt(_),Q=Da(L.data);x.fetchers.set(_,Q)}}function ni(){let T=[],_=!1;for(let L of Te){let Q=x.fetchers.get(L);Ne(Q,`Expected fetcher: ${L}`),Q.state==="loading"&&(Te.delete(L),T.push(L),_=!0)}return ti(T),_}function la(T){let _=[];for(let[L,Q]of W)if(Q<T){let ee=x.fetchers.get(L);Ne(ee,`Expected fetcher: ${L}`),ee.state==="loading"&&(yn(L),W.delete(L),_.push(L))}return ti(_),_.length>0}function Mt(T,_){let L=x.blockers.get(T)||Zl;return I.get(T)!==_&&I.set(T,_),L}function ai(T){x.blockers.delete(T),I.delete(T)}function Gt(T,_){let L=x.blockers.get(T)||Zl;Ne(L.state==="unblocked"&&_.state==="blocked"||L.state==="blocked"&&_.state==="blocked"||L.state==="blocked"&&_.state==="proceeding"||L.state==="blocked"&&_.state==="unblocked"||L.state==="proceeding"&&_.state==="unblocked",`Invalid blocker state transition: ${L.state} -> ${_.state}`);let Q=new Map(x.blockers);Q.set(T,_),Se({blockers:Q})}function Ot({currentLocation:T,nextLocation:_,historyAction:L}){if(I.size===0)return;I.size>1&&bt(!1,"A router only supports one blocker at a time");let Q=Array.from(I.entries()),[ee,ce]=Q[Q.length-1],ge=x.blockers.get(ee);if(!(ge&&ge.state==="proceeding")&&ce({currentLocation:T,nextLocation:_,historyAction:L}))return ee}function Jl(T){let _=dn(404,{pathname:T}),L=h||s,{matches:Q,route:ee}=Qm(L);return{notFoundMatches:Q,route:ee,error:_}}function Hr(T,_,L){if(D=T,q=_,N=L||null,!V&&x.navigation===Pf){V=!0;let Q=za(x.location,x.matches);Q!=null&&Se({restoreScrollPosition:Q})}return()=>{D=null,q=null,N=null}}function li(T,_){return N&&N(T,_.map(Q=>Hp(Q,x.loaderData)))||T.key}function fl(T,_){if(D&&q){let L=li(T,_);D[L]=q()}}function za(T,_){if(D){let L=li(T,_),Q=D[L];if(typeof Q=="number")return Q}return null}function Pt(T,_,L){if(m)if(T){if(Object.keys(T[0].params).length>0)return{active:!0,matches:gr(_,L,y,!0)}}else return{active:!0,matches:gr(_,L,y,!0)||[]};return{active:!1,matches:null}}async function Un(T,_,L){if(!m)return{type:"success",matches:T};let Q=T;for(;;){let ee=h==null,ce=h||s,ge=o;try{await m({path:_,matches:Q,patch:(F,me)=>{L.aborted||Bm(F,me,ce,ge,f)}})}catch(F){return{type:"error",error:F,partialMatches:Q}}finally{ee&&!L.aborted&&(s=[...s])}if(L.aborted)return{type:"aborted"};let ne=Ma(ce,_,y);if(ne)return{type:"success",matches:ne};let ue=gr(ce,_,y,!0);if(!ue||Q.length===ue.length&&Q.every((F,me)=>F.route.id===ue[me].route.id))return{type:"success",matches:null};Q=ue}}function Ua(T){o={},h=br(T,f,void 0,o)}function Br(T,_){let L=h==null;Bm(T,_,h||s,o,f),L&&(s=[...s],Se({}))}return le={get basename(){return y},get future(){return b},get state(){return x},get routes(){return s},get window(){return u},initialize:pe,subscribe:_e,enableScrollRestoration:Hr,navigate:yt,fetch:aa,revalidate:Nt,createHref:T=>l.history.createHref(T),encodeLocation:T=>l.history.encodeLocation(T),getFetcher:Wt,deleteFetcher:Lr,dispose:Ie,getBlocker:Mt,deleteBlocker:ai,patchRoutes:Br,_internalFetchControllers:Me,_internalSetRoutes:Ua},le}function f0(l){return l!=null&&("formData"in l&&l.formData!=null||"body"in l&&l.body!==void 0)}function mo(l,u,c,f,o,s){let h,y;if(o){h=[];for(let m of u)if(h.push(m),m.route.id===o){y=m;break}}else h=u,y=u[u.length-1];let v=Co(f||".",Do(h),Jt(l.pathname,c)||l.pathname,s==="path");if(f==null&&(v.search=l.search,v.hash=l.hash),(f==null||f===""||f===".")&&y){let m=Ao(v.search);if(y.route.index&&!m)v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index";else if(!y.route.index&&m){let b=new URLSearchParams(v.search),M=b.getAll("index");b.delete("index"),M.filter(D=>D).forEach(D=>b.append("index",D));let S=b.toString();v.search=S?`?${S}`:""}}return c!=="/"&&(v.pathname=v.pathname==="/"?c:wn([c,v.pathname])),Aa(v)}function Um(l,u,c){if(!c||!f0(c))return{path:u};if(c.formMethod&&!S0(c.formMethod))return{path:u,error:dn(405,{method:c.formMethod})};let f=()=>({path:u,error:dn(400,{type:"invalid-body"})}),s=(c.formMethod||"get").toUpperCase(),h=Ry(u);if(c.body!==void 0){if(c.formEncType==="text/plain"){if(!Tn(s))return f();let M=typeof c.body=="string"?c.body:c.body instanceof FormData||c.body instanceof URLSearchParams?Array.from(c.body.entries()).reduce((S,[D,N])=>`${S}${D}=${N}
+`,""):String(c.body);return{path:u,submission:{formMethod:s,formAction:h,formEncType:c.formEncType,formData:void 0,json:void 0,text:M}}}else if(c.formEncType==="application/json"){if(!Tn(s))return f();try{let M=typeof c.body=="string"?JSON.parse(c.body):c.body;return{path:u,submission:{formMethod:s,formAction:h,formEncType:c.formEncType,formData:void 0,json:M,text:void 0}}}catch{return f()}}}Ne(typeof FormData=="function","FormData is not available in this environment");let y,v;if(c.formData)y=vo(c.formData),v=c.formData;else if(c.body instanceof FormData)y=vo(c.body),v=c.body;else if(c.body instanceof URLSearchParams)y=c.body,v=Ym(y);else if(c.body==null)y=new URLSearchParams,v=new FormData;else try{y=new URLSearchParams(c.body),v=Ym(y)}catch{return f()}let m={formMethod:s,formAction:h,formEncType:c&&c.formEncType||"application/x-www-form-urlencoded",formData:v,json:void 0,text:void 0};if(Tn(m.formMethod))return{path:u,submission:m};let b=_a(u);return l&&b.search&&Ao(b.search)&&y.append("index",""),b.search=`?${y}`,{path:Aa(b),submission:m}}function jm(l,u,c=!1){let f=l.findIndex(o=>o.route.id===u);return f>=0?l.slice(0,c?f+1:f):l}function Lm(l,u,c,f,o,s,h,y,v,m,b,M,S,D){let N=D?$t(D[1])?D[1].error:D[1].data:void 0,q=l.createURL(u.location),V=l.createURL(o),U=c;s&&u.errors?U=jm(c,Object.keys(u.errors)[0],!0):D&&$t(D[1])&&(U=jm(c,D[0]));let Z=D?D[1].statusCode:void 0,K=Z&&Z>=400,le=U.filter((P,he)=>{let{route:oe}=P;if(oe.lazy)return!0;if(oe.loader==null)return!1;if(s)return yo(oe,u.loaderData,u.errors);if(o0(u.loaderData,u.matches[he],P))return!0;let $=u.matches[he],ie=P;return Hm(P,{currentUrl:q,currentParams:$.params,nextUrl:V,nextParams:ie.params,...f,actionResult:N,actionStatus:Z,defaultShouldRevalidate:K?!1:h||q.pathname+q.search===V.pathname+V.search||q.search!==V.search||s0($,ie)})}),x=[];return m.forEach((P,he)=>{if(s||!c.some(ut=>ut.route.id===P.routeId)||v.has(he))return;let oe=Ma(M,P.path,S);if(!oe){x.push({key:he,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let $=u.fetchers.get(he),ie=$u(oe,P.path),He=!1;b.has(he)?He=!1:y.has(he)?(y.delete(he),He=!0):$&&$.state!=="idle"&&$.data===void 0?He=h:He=Hm(ie,{currentUrl:q,currentParams:u.matches[u.matches.length-1].params,nextUrl:V,nextParams:c[c.length-1].params,...f,actionResult:N,actionStatus:Z,defaultShouldRevalidate:K?!1:h}),He&&x.push({key:he,routeId:P.routeId,path:P.path,matches:oe,match:ie,controller:new AbortController})}),[le,x]}function yo(l,u,c){if(l.lazy)return!0;if(!l.loader)return!1;let f=u!=null&&u[l.id]!==void 0,o=c!=null&&c[l.id]!==void 0;return!f&&o?!1:typeof l.loader=="function"&&l.loader.hydrate===!0?!0:!f&&!o}function o0(l,u,c){let f=!u||c.route.id!==u.route.id,o=!l.hasOwnProperty(c.route.id);return f||o}function s0(l,u){let c=l.route.path;return l.pathname!==u.pathname||c!=null&&c.endsWith("*")&&l.params["*"]!==u.params["*"]}function Hm(l,u){if(l.route.shouldRevalidate){let c=l.route.shouldRevalidate(u);if(typeof c=="boolean")return c}return u.defaultShouldRevalidate}function Bm(l,u,c,f,o){let s;if(l){let v=f[l];Ne(v,`No route found to patch children into: routeId = ${l}`),v.children||(v.children=[]),s=v.children}else s=c;let h=u.filter(v=>!s.some(m=>Sy(v,m))),y=br(h,o,[l||"_","patch",String((s==null?void 0:s.length)||"0")],f);s.push(...y)}function Sy(l,u){return"id"in l&&"id"in u&&l.id===u.id?!0:l.index===u.index&&l.path===u.path&&l.caseSensitive===u.caseSensitive?(!l.children||l.children.length===0)&&(!u.children||u.children.length===0)?!0:l.children.every((c,f)=>{var o;return(o=u.children)==null?void 0:o.some(s=>Sy(c,s))}):!1}async function d0(l,u,c){if(!l.lazy)return;let f=await l.lazy();if(!l.lazy)return;let o=c[l.id];Ne(o,"No route found in manifest");let s={};for(let h in f){let v=o[h]!==void 0&&h!=="hasErrorBoundary";bt(!v,`Route "${o.id}" has a static property "${h}" defined but its lazy function is also returning a value for this property. The lazy route property "${h}" will be ignored.`),!v&&!jp.has(h)&&(s[h]=f[h])}Object.assign(o,s),Object.assign(o,{...u(o),lazy:void 0})}async function h0({matches:l}){let u=l.filter(f=>f.shouldLoad);return(await Promise.all(u.map(f=>f.resolve()))).reduce((f,o,s)=>Object.assign(f,{[u[s].route.id]:o}),{})}async function m0(l,u,c,f,o,s,h,y,v,m){let b=s.map(D=>D.route.lazy?d0(D.route,v,y):void 0),M=s.map((D,N)=>{let q=b[N],V=o.some(Z=>Z.route.id===D.route.id);return{...D,shouldLoad:V,resolve:async Z=>(Z&&f.method==="GET"&&(D.route.lazy||D.route.loader)&&(V=!0),V?y0(u,f,D,q,Z,m):Promise.resolve({type:"data",result:void 0}))}}),S=await l({matches:M,request:f,params:s[0].params,fetcherKey:h,context:m});try{await Promise.all(b)}catch{}return S}async function y0(l,u,c,f,o,s){let h,y,v=m=>{let b,M=new Promise((N,q)=>b=q);y=()=>b(),u.signal.addEventListener("abort",y);let S=N=>typeof m!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${l}" [routeId: ${c.route.id}]`)):m({request:u,params:c.params,context:s},...N!==void 0?[N]:[]),D=(async()=>{try{return{type:"data",result:await(o?o(q=>S(q)):S())}}catch(N){return{type:"error",result:N}}})();return Promise.race([D,M])};try{let m=c.route[l];if(f)if(m){let b,[M]=await Promise.all([v(m).catch(S=>{b=S}),f]);if(b!==void 0)throw b;h=M}else if(await f,m=c.route[l],m)h=await v(m);else if(l==="action"){let b=new URL(u.url),M=b.pathname+b.search;throw dn(405,{method:u.method,pathname:M,routeId:c.route.id})}else return{type:"data",result:void 0};else if(m)h=await v(m);else{let b=new URL(u.url),M=b.pathname+b.search;throw dn(404,{pathname:M})}}catch(m){return{type:"error",result:m}}finally{y&&u.signal.removeEventListener("abort",y)}return h}async function v0(l){var f,o,s,h;let{result:u,type:c}=l;if(Ty(u)){let y;try{let v=u.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?u.body==null?y=null:y=await u.json():y=await u.text()}catch(v){return{type:"error",error:v}}return c==="error"?{type:"error",error:new Rr(u.status,u.statusText,y),statusCode:u.status,headers:u.headers}:{type:"data",data:y,statusCode:u.status,headers:u.headers}}if(c==="error"){if(Zm(u)){if(u.data instanceof Error)return{type:"error",error:u.data,statusCode:(f=u.init)==null?void 0:f.status};u=new Rr(((o=u.init)==null?void 0:o.status)||500,void 0,u.data)}return{type:"error",error:u,statusCode:_r(u)?u.status:void 0}}return Zm(u)?{type:"data",data:u.data,statusCode:(s=u.init)==null?void 0:s.status,headers:(h=u.init)!=null&&h.headers?new Headers(u.init.headers):void 0}:{type:"data",data:u}}function g0(l,u,c,f,o){let s=l.headers.get("Location");if(Ne(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!Mo.test(s)){let h=f.slice(0,f.findIndex(y=>y.route.id===c)+1);s=mo(new URL(u.url),h,o,s),l.headers.set("Location",s)}return l}function qm(l,u,c){if(Mo.test(l)){let f=l,o=f.startsWith("//")?new URL(u.protocol+f):new URL(f),s=Jt(o.pathname,c)!=null;if(o.origin===u.origin&&s)return o.pathname+o.search+o.hash}return l}function Gl(l,u,c,f){let o=l.createURL(Ry(u)).toString(),s={signal:c};if(f&&Tn(f.formMethod)){let{formMethod:h,formEncType:y}=f;s.method=h.toUpperCase(),y==="application/json"?(s.headers=new Headers({"Content-Type":y}),s.body=JSON.stringify(f.json)):y==="text/plain"?s.body=f.text:y==="application/x-www-form-urlencoded"&&f.formData?s.body=vo(f.formData):s.body=f.formData}return new Request(o,s)}function vo(l){let u=new URLSearchParams;for(let[c,f]of l.entries())u.append(c,typeof f=="string"?f:f.name);return u}function Ym(l){let u=new FormData;for(let[c,f]of l.entries())u.append(c,f);return u}function p0(l,u,c,f=!1,o=!1){let s={},h=null,y,v=!1,m={},b=c&&$t(c[1])?c[1].error:void 0;return l.forEach(M=>{if(!(M.route.id in u))return;let S=M.route.id,D=u[S];if(Ne(!ul(D),"Cannot handle redirect results in processLoaderData"),$t(D)){let N=D.error;if(b!==void 0&&(N=b,b=void 0),h=h||{},o)h[S]=N;else{let q=nl(l,S);h[q.route.id]==null&&(h[q.route.id]=N)}f||(s[S]=by),v||(v=!0,y=_r(D.error)?D.error.status:500),D.headers&&(m[S]=D.headers)}else s[S]=D.data,D.statusCode&&D.statusCode!==200&&!v&&(y=D.statusCode),D.headers&&(m[S]=D.headers)}),b!==void 0&&c&&(h={[c[0]]:b},s[c[0]]=void 0),{loaderData:s,errors:h,statusCode:y||200,loaderHeaders:m}}function Gm(l,u,c,f,o,s){let{loaderData:h,errors:y}=p0(u,c,f);return o.forEach(v=>{let{key:m,match:b,controller:M}=v,S=s[m];if(Ne(S,"Did not find corresponding fetcher result"),!(M&&M.signal.aborted))if($t(S)){let D=nl(l.matches,b==null?void 0:b.route.id);y&&y[D.route.id]||(y={...y,[D.route.id]:S.error}),l.fetchers.delete(m)}else if(ul(S))Ne(!1,"Unhandled fetcher revalidation redirect");else{let D=Da(S.data);l.fetchers.set(m,D)}}),{loaderData:h,errors:y}}function Xm(l,u,c,f){let o=Object.entries(u).filter(([,s])=>s!==by).reduce((s,[h,y])=>(s[h]=y,s),{});for(let s of c){let h=s.route.id;if(!u.hasOwnProperty(h)&&l.hasOwnProperty(h)&&s.route.loader&&(o[h]=l[h]),f&&f.hasOwnProperty(h))break}return o}function Vm(l){return l?$t(l[1])?{actionData:{}}:{actionData:{[l[0]]:l[1].data}}:{}}function nl(l,u){return(u?l.slice(0,l.findIndex(f=>f.route.id===u)+1):[...l]).reverse().find(f=>f.route.hasErrorBoundary===!0)||l[0]}function Qm(l){let u=l.length===1?l[0]:l.find(c=>c.index||!c.path||c.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:u}],route:u}}function dn(l,{pathname:u,routeId:c,method:f,type:o,message:s}={}){let h="Unknown Server Error",y="Unknown @remix-run/router error";return l===400?(h="Bad Request",f&&u&&c?y=`You made a ${f} request to "${u}" but did not provide a \`loader\` for route "${c}", so there is no way to handle the request.`:o==="invalid-body"&&(y="Unable to encode submission body")):l===403?(h="Forbidden",y=`Route "${c}" does not match URL "${u}"`):l===404?(h="Not Found",y=`No route matches URL "${u}"`):l===405&&(h="Method Not Allowed",f&&u&&c?y=`You made a ${f.toUpperCase()} request to "${u}" but did not provide an \`action\` for route "${c}", so there is no way to handle the request.`:f&&(y=`Invalid request method "${f.toUpperCase()}"`)),new Rr(l||500,h,new Error(y),!0)}function dr(l){let u=Object.entries(l);for(let c=u.length-1;c>=0;c--){let[f,o]=u[c];if(ul(o))return{key:f,result:o}}}function Ry(l){let u=typeof l=="string"?_a(l):l;return Aa({...u,hash:""})}function E0(l,u){return l.pathname!==u.pathname||l.search!==u.search?!1:l.hash===""?u.hash!=="":l.hash===u.hash?!0:u.hash!==""}function b0(l){return Ty(l.result)&&l0.has(l.result.status)}function $t(l){return l.type==="error"}function ul(l){return(l&&l.type)==="redirect"}function Zm(l){return typeof l=="object"&&l!=null&&"type"in l&&"data"in l&&"init"in l&&l.type==="DataWithResponseInit"}function Ty(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.headers=="object"&&typeof l.body<"u"}function S0(l){return a0.has(l.toUpperCase())}function Tn(l){return t0.has(l.toUpperCase())}function Ao(l){return new URLSearchParams(l).getAll("index").some(u=>u==="")}function $u(l,u){let c=typeof u=="string"?_a(u).search:u.search;if(l[l.length-1].route.index&&Ao(c||""))return l[l.length-1];let f=gy(l);return f[f.length-1]}function Km(l){let{formMethod:u,formAction:c,formEncType:f,text:o,formData:s,json:h}=l;if(!(!u||!c||!f)){if(o!=null)return{formMethod:u,formAction:c,formEncType:f,formData:void 0,json:void 0,text:o};if(s!=null)return{formMethod:u,formAction:c,formEncType:f,formData:s,json:void 0,text:void 0};if(h!==void 0)return{formMethod:u,formAction:c,formEncType:f,formData:void 0,json:h,text:void 0}}}function If(l,u){return u?{state:"loading",location:l,formMethod:u.formMethod,formAction:u.formAction,formEncType:u.formEncType,formData:u.formData,json:u.json,text:u.text}:{state:"loading",location:l,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function R0(l,u){return{state:"submitting",location:l,formMethod:u.formMethod,formAction:u.formAction,formEncType:u.formEncType,formData:u.formData,json:u.json,text:u.text}}function Zu(l,u){return l?{state:"loading",formMethod:l.formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text,data:u}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:u}}function T0(l,u){return{state:"submitting",formMethod:l.formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text,data:u?u.data:void 0}}function Da(l){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:l}}function x0(l,u){try{let c=l.sessionStorage.getItem(Ey);if(c){let f=JSON.parse(c);for(let[o,s]of Object.entries(f||{}))s&&Array.isArray(s)&&u.set(o,new Set(s||[]))}}catch{}}function O0(l,u){if(u.size>0){let c={};for(let[f,o]of u)c[f]=[...o];try{l.sessionStorage.setItem(Ey,JSON.stringify(c))}catch(f){bt(!1,`Failed to save applied view transitions in sessionStorage (${f}).`)}}}function D0(){let l,u,c=new Promise((f,o)=>{l=async s=>{f(s);try{await c}catch{}},u=async s=>{o(s);try{await c}catch{}}});return{promise:c,resolve:l,reject:u}}var rl=p.createContext(null);rl.displayName="DataRouter";var Pu=p.createContext(null);Pu.displayName="DataRouterState";var _o=p.createContext({isTransitioning:!1});_o.displayName="ViewTransition";var xy=p.createContext(new Map);xy.displayName="Fetchers";var C0=p.createContext(null);C0.displayName="Await";var Nn=p.createContext(null);Nn.displayName="Navigation";var wr=p.createContext(null);wr.displayName="Location";var xn=p.createContext({outlet:null,matches:[],isDataRoute:!1});xn.displayName="Route";var wo=p.createContext(null);wo.displayName="RouteError";function M0(l,{relative:u}={}){Ne(Iu(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:f}=p.useContext(Nn),{hash:o,pathname:s,search:h}=ei(l,{relative:u}),y=s;return c!=="/"&&(y=s==="/"?c:wn([c,s])),f.createHref({pathname:y,search:h,hash:o})}function Iu(){return p.useContext(wr)!=null}function ta(){return Ne(Iu(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(wr).location}var Oy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Dy(l){p.useContext(Nn).static||p.useLayoutEffect(l)}function Cy(){let{isDataRoute:l}=p.useContext(xn);return l?X0():A0()}function A0(){Ne(Iu(),"useNavigate() may be used only in the context of a <Router> component.");let l=p.useContext(rl),{basename:u,navigator:c}=p.useContext(Nn),{matches:f}=p.useContext(xn),{pathname:o}=ta(),s=JSON.stringify(Do(f)),h=p.useRef(!1);return Dy(()=>{h.current=!0}),p.useCallback((v,m={})=>{if(bt(h.current,Oy),!h.current)return;if(typeof v=="number"){c.go(v);return}let b=Co(v,JSON.parse(s),o,m.relative==="path");l==null&&u!=="/"&&(b.pathname=b.pathname==="/"?u:wn([u,b.pathname])),(m.replace?c.replace:c.push)(b,m.state,m)},[u,c,s,o,l])}var _0=p.createContext(null);function w0(l){let u=p.useContext(xn).outlet;return u&&p.createElement(_0.Provider,{value:l},u)}function Vb(){let{matches:l}=p.useContext(xn),u=l[l.length-1];return u?u.params:{}}function ei(l,{relative:u}={}){let{matches:c}=p.useContext(xn),{pathname:f}=ta(),o=JSON.stringify(Do(c));return p.useMemo(()=>Co(l,JSON.parse(o),f,u==="path"),[l,o,f,u])}function N0(l,u,c,f){Ne(Iu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=p.useContext(Nn),{matches:s}=p.useContext(xn),h=s[s.length-1],y=h?h.params:{},v=h?h.pathname:"/",m=h?h.pathnameBase:"/",b=h&&h.route;{let U=b&&b.path||"";_y(v,!b||U.endsWith("*")||U.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${U}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
+
+Please change the parent <Route path="${U}"> to <Route path="${U==="/"?"*":`${U}/*`}">.`)}let M=ta(),S;S=M;let D=S.pathname||"/",N=D;if(m!=="/"){let U=m.replace(/^\//,"").split("/");N="/"+D.replace(/^\//,"").split("/").slice(U.length).join("/")}let q=Ma(l,{pathname:N});return bt(b||q!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),bt(q==null||q[q.length-1].route.element!==void 0||q[q.length-1].route.Component!==void 0||q[q.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),H0(q&&q.map(U=>Object.assign({},U,{params:Object.assign({},y,U.params),pathname:wn([m,o.encodeLocation?o.encodeLocation(U.pathname).pathname:U.pathname]),pathnameBase:U.pathnameBase==="/"?m:wn([m,o.encodeLocation?o.encodeLocation(U.pathnameBase).pathname:U.pathnameBase])})),s,c,f)}function z0(){let l=Y0(),u=_r(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),c=l instanceof Error?l.stack:null,f="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:f},s={padding:"2px 4px",backgroundColor:f},h=null;return console.error("Error handled by React Router default ErrorBoundary:",l),h=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:s},"ErrorBoundary")," or"," ",p.createElement("code",{style:s},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},u),c?p.createElement("pre",{style:o},c):null,h)}var U0=p.createElement(z0,null),j0=class extends p.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,u){return u.location!==l.location||u.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:u.error,location:u.location,revalidation:l.revalidation||u.revalidation}}componentDidCatch(l,u){console.error("React Router caught the following error during render",l,u)}render(){return this.state.error!==void 0?p.createElement(xn.Provider,{value:this.props.routeContext},p.createElement(wo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function L0({routeContext:l,match:u,children:c}){let f=p.useContext(rl);return f&&f.static&&f.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(f.staticContext._deepestRenderedBoundaryId=u.route.id),p.createElement(xn.Provider,{value:l},c)}function H0(l,u=[],c=null,f=null){if(l==null){if(!c)return null;if(c.errors)l=c.matches;else if(u.length===0&&!c.initialized&&c.matches.length>0)l=c.matches;else return null}let o=l,s=c==null?void 0:c.errors;if(s!=null){let v=o.findIndex(m=>m.route.id&&(s==null?void 0:s[m.route.id])!==void 0);Ne(v>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,v+1))}let h=!1,y=-1;if(c)for(let v=0;v<o.length;v++){let m=o[v];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(y=v),m.route.id){let{loaderData:b,errors:M}=c,S=m.route.loader&&!b.hasOwnProperty(m.route.id)&&(!M||M[m.route.id]===void 0);if(m.route.lazy||S){h=!0,y>=0?o=o.slice(0,y+1):o=[o[0]];break}}}return o.reduceRight((v,m,b)=>{let M,S=!1,D=null,N=null;c&&(M=s&&m.route.id?s[m.route.id]:void 0,D=m.route.errorElement||U0,h&&(y<0&&b===0?(_y("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,N=null):y===b&&(S=!0,N=m.route.hydrateFallbackElement||null)));let q=u.concat(o.slice(0,b+1)),V=()=>{let U;return M?U=D:S?U=N:m.route.Component?U=p.createElement(m.route.Component,null):m.route.element?U=m.route.element:U=v,p.createElement(L0,{match:m,routeContext:{outlet:v,matches:q,isDataRoute:c!=null},children:U})};return c&&(m.route.ErrorBoundary||m.route.errorElement||b===0)?p.createElement(j0,{location:c.location,revalidation:c.revalidation,component:D,error:M,children:V(),routeContext:{outlet:null,matches:q,isDataRoute:!0}}):V()},null)}function No(l){return`${l} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function My(l){let u=p.useContext(rl);return Ne(u,No(l)),u}function Ay(l){let u=p.useContext(Pu);return Ne(u,No(l)),u}function B0(l){let u=p.useContext(xn);return Ne(u,No(l)),u}function zo(l){let u=B0(l),c=u.matches[u.matches.length-1];return Ne(c.route.id,`${l} can only be used on routes that contain a unique "id"`),c.route.id}function q0(){return zo("useRouteId")}function Y0(){var f;let l=p.useContext(wo),u=Ay("useRouteError"),c=zo("useRouteError");return l!==void 0?l:(f=u.errors)==null?void 0:f[c]}var G0=0;function Qb(l){let{router:u,basename:c}=My("useBlocker"),f=Ay("useBlocker"),[o,s]=p.useState(""),h=p.useCallback(y=>{if(typeof l!="function")return!!l;if(c==="/")return l(y);let{currentLocation:v,nextLocation:m,historyAction:b}=y;return l({currentLocation:{...v,pathname:Jt(v.pathname,c)||v.pathname},nextLocation:{...m,pathname:Jt(m.pathname,c)||m.pathname},historyAction:b})},[c,l]);return p.useEffect(()=>{let y=String(++G0);return s(y),()=>u.deleteBlocker(y)},[u]),p.useEffect(()=>{o!==""&&u.getBlocker(o,h)},[u,o,h]),o&&f.blockers.has(o)?f.blockers.get(o):Zl}function X0(){let{router:l}=My("useNavigate"),u=zo("useNavigate"),c=p.useRef(!1);return Dy(()=>{c.current=!0}),p.useCallback(async(o,s={})=>{bt(c.current,Oy),c.current&&(typeof o=="number"?l.navigate(o):await l.navigate(o,{fromRouteId:u,...s}))},[l,u])}var km={};function _y(l,u,c){!u&&!km[l]&&(km[l]=!0,bt(!1,c))}var $m={};function Jm(l,u){!l&&!$m[u]&&($m[u]=!0,console.warn(u))}function V0(l){let u={hasErrorBoundary:l.hasErrorBoundary||l.ErrorBoundary!=null||l.errorElement!=null};return l.Component&&(l.element&&bt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(u,{element:p.createElement(l.Component),Component:void 0})),l.HydrateFallback&&(l.hydrateFallbackElement&&bt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(u,{hydrateFallbackElement:p.createElement(l.HydrateFallback),HydrateFallback:void 0})),l.ErrorBoundary&&(l.errorElement&&bt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(u,{errorElement:p.createElement(l.ErrorBoundary),ErrorBoundary:void 0})),u}var Q0=class{constructor(){this.status="pending",this.promise=new Promise((l,u)=>{this.resolve=c=>{this.status==="pending"&&(this.status="resolved",l(c))},this.reject=c=>{this.status==="pending"&&(this.status="rejected",u(c))}})}};function Z0({router:l,flushSync:u}){let[c,f]=p.useState(l.state),[o,s]=p.useState(),[h,y]=p.useState({isTransitioning:!1}),[v,m]=p.useState(),[b,M]=p.useState(),[S,D]=p.useState(),N=p.useRef(new Map),q=p.useCallback((K,{deletedFetchers:le,flushSync:x,viewTransitionOpts:P})=>{K.fetchers.forEach((oe,$)=>{oe.data!==void 0&&N.current.set($,oe.data)}),le.forEach(oe=>N.current.delete(oe)),Jm(x===!1||u!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let he=l.window!=null&&l.window.document!=null&&typeof l.window.document.startViewTransition=="function";if(Jm(P==null||he,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!P||!he){u&&x?u(()=>f(K)):p.startTransition(()=>f(K));return}if(u&&x){u(()=>{b&&(v&&v.resolve(),b.skipTransition()),y({isTransitioning:!0,flushSync:!0,currentLocation:P.currentLocation,nextLocation:P.nextLocation})});let oe=l.window.document.startViewTransition(()=>{u(()=>f(K))});oe.finished.finally(()=>{u(()=>{m(void 0),M(void 0),s(void 0),y({isTransitioning:!1})})}),u(()=>M(oe));return}b?(v&&v.resolve(),b.skipTransition(),D({state:K,currentLocation:P.currentLocation,nextLocation:P.nextLocation})):(s(K),y({isTransitioning:!0,flushSync:!1,currentLocation:P.currentLocation,nextLocation:P.nextLocation}))},[l.window,u,b,v]);p.useLayoutEffect(()=>l.subscribe(q),[l,q]),p.useEffect(()=>{h.isTransitioning&&!h.flushSync&&m(new Q0)},[h]),p.useEffect(()=>{if(v&&o&&l.window){let K=o,le=v.promise,x=l.window.document.startViewTransition(async()=>{p.startTransition(()=>f(K)),await le});x.finished.finally(()=>{m(void 0),M(void 0),s(void 0),y({isTransitioning:!1})}),M(x)}},[o,v,l.window]),p.useEffect(()=>{v&&o&&c.location.key===o.location.key&&v.resolve()},[v,b,c.location,o]),p.useEffect(()=>{!h.isTransitioning&&S&&(s(S.state),y({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),D(void 0))},[h.isTransitioning,S]);let V=p.useMemo(()=>({createHref:l.createHref,encodeLocation:l.encodeLocation,go:K=>l.navigate(K),push:(K,le,x)=>l.navigate(K,{state:le,preventScrollReset:x==null?void 0:x.preventScrollReset}),replace:(K,le,x)=>l.navigate(K,{replace:!0,state:le,preventScrollReset:x==null?void 0:x.preventScrollReset})}),[l]),U=l.basename||"/",Z=p.useMemo(()=>({router:l,navigator:V,static:!1,basename:U}),[l,V,U]);return p.createElement(p.Fragment,null,p.createElement(rl.Provider,{value:Z},p.createElement(Pu.Provider,{value:c},p.createElement(xy.Provider,{value:N.current},p.createElement(_o.Provider,{value:h},p.createElement($0,{basename:U,location:c.location,navigationType:c.historyAction,navigator:V},p.createElement(K0,{routes:l.routes,future:l.future,state:c})))))),null)}var K0=p.memo(k0);function k0({routes:l,future:u,state:c}){return N0(l,void 0,c,u)}function Zb(l){return w0(l.context)}function $0({basename:l="/",children:u=null,location:c,navigationType:f="POP",navigator:o,static:s=!1}){Ne(!Iu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=l.replace(/^\/*/,"/"),y=p.useMemo(()=>({basename:h,navigator:o,static:s,future:{}}),[h,o,s]);typeof c=="string"&&(c=_a(c));let{pathname:v="/",search:m="",hash:b="",state:M=null,key:S="default"}=c,D=p.useMemo(()=>{let N=Jt(v,h);return N==null?null:{location:{pathname:N,search:m,hash:b,state:M,key:S},navigationType:f}},[h,v,m,b,M,S,f]);return bt(D!=null,`<Router basename="${h}"> is not able to match the URL "${v}${m}${b}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:p.createElement(Nn.Provider,{value:y},p.createElement(wr.Provider,{children:u,value:D}))}var pr="get",Er="application/x-www-form-urlencoded";function Nr(l){return l!=null&&typeof l.tagName=="string"}function J0(l){return Nr(l)&&l.tagName.toLowerCase()==="button"}function F0(l){return Nr(l)&&l.tagName.toLowerCase()==="form"}function W0(l){return Nr(l)&&l.tagName.toLowerCase()==="input"}function P0(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function I0(l,u){return l.button===0&&(!u||u==="_self")&&!P0(l)}function go(l=""){return new URLSearchParams(typeof l=="string"||Array.isArray(l)||l instanceof URLSearchParams?l:Object.keys(l).reduce((u,c)=>{let f=l[c];return u.concat(Array.isArray(f)?f.map(o=>[c,o]):[[c,f]])},[]))}function e1(l,u){let c=go(l);return u&&u.forEach((f,o)=>{c.has(o)||u.getAll(o).forEach(s=>{c.append(o,s)})}),c}var hr=null;function t1(){if(hr===null)try{new FormData(document.createElement("form"),0),hr=!1}catch{hr=!0}return hr}var n1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function eo(l){return l!=null&&!n1.has(l)?(bt(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Er}"`),null):l}function a1(l,u){let c,f,o,s,h;if(F0(l)){let y=l.getAttribute("action");f=y?Jt(y,u):null,c=l.getAttribute("method")||pr,o=eo(l.getAttribute("enctype"))||Er,s=new FormData(l)}else if(J0(l)||W0(l)&&(l.type==="submit"||l.type==="image")){let y=l.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let v=l.getAttribute("formaction")||y.getAttribute("action");if(f=v?Jt(v,u):null,c=l.getAttribute("formmethod")||y.getAttribute("method")||pr,o=eo(l.getAttribute("formenctype"))||eo(y.getAttribute("enctype"))||Er,s=new FormData(y,l),!t1()){let{name:m,type:b,value:M}=l;if(b==="image"){let S=m?`${m}.`:"";s.append(`${S}x`,"0"),s.append(`${S}y`,"0")}else m&&s.append(m,M)}}else{if(Nr(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=pr,f=null,o=Er,h=l}return s&&o==="text/plain"&&(h=s,s=void 0),{action:f,method:c.toLowerCase(),encType:o,formData:s,body:h}}function Uo(l,u){if(l===!1||l===null||typeof l>"u")throw new Error(u)}async function l1(l,u){if(l.id in u)return u[l.id];try{let c=await import(l.module);return u[l.id]=c,c}catch(c){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function u1(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function i1(l,u,c){let f=await Promise.all(l.map(async o=>{let s=u.routes[o.route.id];if(s){let h=await l1(s,c);return h.links?h.links():[]}return[]}));return o1(f.flat(1).filter(u1).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Fm(l,u,c,f,o,s){let h=(v,m)=>c[m]?v.route.id!==c[m].route.id:!0,y=(v,m)=>{var b;return c[m].pathname!==v.pathname||((b=c[m].route.path)==null?void 0:b.endsWith("*"))&&c[m].params["*"]!==v.params["*"]};return s==="assets"?u.filter((v,m)=>h(v,m)||y(v,m)):s==="data"?u.filter((v,m)=>{var M;let b=f.routes[v.route.id];if(!b||!b.hasLoader)return!1;if(h(v,m)||y(v,m))return!0;if(v.route.shouldRevalidate){let S=v.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((M=c[0])==null?void 0:M.params)||{},nextUrl:new URL(l,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function r1(l,u){return c1(l.map(c=>{let f=u.routes[c.route.id];if(!f)return[];let o=[f.module];return f.imports&&(o=o.concat(f.imports)),o}).flat(1))}function c1(l){return[...new Set(l)]}function f1(l){let u={},c=Object.keys(l).sort();for(let f of c)u[f]=l[f];return u}function o1(l,u){let c=new Set;return new Set(u),l.reduce((f,o)=>{let s=JSON.stringify(f1(o));return c.has(s)||(c.add(s),f.push({key:s,link:o})),f},[])}function s1(l){let u=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return u.pathname==="/"?u.pathname="_root.data":u.pathname=`${u.pathname.replace(/\/$/,"")}.data`,u}function d1(){let l=p.useContext(rl);return Uo(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function h1(){let l=p.useContext(Pu);return Uo(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var jo=p.createContext(void 0);jo.displayName="FrameworkContext";function wy(){let l=p.useContext(jo);return Uo(l,"You must render this element inside a <HydratedRouter> element"),l}function m1(l,u){let c=p.useContext(jo),[f,o]=p.useState(!1),[s,h]=p.useState(!1),{onFocus:y,onBlur:v,onMouseEnter:m,onMouseLeave:b,onTouchStart:M}=u,S=p.useRef(null);p.useEffect(()=>{if(l==="render"&&h(!0),l==="viewport"){let q=U=>{U.forEach(Z=>{h(Z.isIntersecting)})},V=new IntersectionObserver(q,{threshold:.5});return S.current&&V.observe(S.current),()=>{V.disconnect()}}},[l]),p.useEffect(()=>{if(f){let q=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(q)}}},[f]);let D=()=>{o(!0)},N=()=>{o(!1),h(!1)};return c?l!=="intent"?[s,S,{}]:[s,S,{onFocus:Ku(y,D),onBlur:Ku(v,N),onMouseEnter:Ku(m,D),onMouseLeave:Ku(b,N),onTouchStart:Ku(M,D)}]:[!1,S,{}]}function Ku(l,u){return c=>{l&&l(c),c.defaultPrevented||u(c)}}function y1({page:l,...u}){let{router:c}=d1(),f=p.useMemo(()=>Ma(c.routes,l,c.basename),[c.routes,l,c.basename]);return f?p.createElement(g1,{page:l,matches:f,...u}):null}function v1(l){let{manifest:u,routeModules:c}=wy(),[f,o]=p.useState([]);return p.useEffect(()=>{let s=!1;return i1(l,u,c).then(h=>{s||o(h)}),()=>{s=!0}},[l,u,c]),f}function g1({page:l,matches:u,...c}){let f=ta(),{manifest:o,routeModules:s}=wy(),{loaderData:h,matches:y}=h1(),v=p.useMemo(()=>Fm(l,u,y,o,f,"data"),[l,u,y,o,f]),m=p.useMemo(()=>Fm(l,u,y,o,f,"assets"),[l,u,y,o,f]),b=p.useMemo(()=>{if(l===f.pathname+f.search+f.hash)return[];let D=new Set,N=!1;if(u.forEach(V=>{var Z;let U=o.routes[V.route.id];!U||!U.hasLoader||(!v.some(K=>K.route.id===V.route.id)&&V.route.id in h&&((Z=s[V.route.id])!=null&&Z.shouldRevalidate)||U.hasClientLoader?N=!0:D.add(V.route.id))}),D.size===0)return[];let q=s1(l);return N&&D.size>0&&q.searchParams.set("_routes",u.filter(V=>D.has(V.route.id)).map(V=>V.route.id).join(",")),[q.pathname+q.search]},[h,f,o,v,u,l,s]),M=p.useMemo(()=>r1(m,o),[m,o]),S=v1(m);return p.createElement(p.Fragment,null,b.map(D=>p.createElement("link",{key:D,rel:"prefetch",as:"fetch",href:D,...c})),M.map(D=>p.createElement("link",{key:D,rel:"modulepreload",href:D,...c})),S.map(({key:D,link:N})=>p.createElement("link",{key:D,...N})))}function p1(...l){return u=>{l.forEach(c=>{typeof c=="function"?c(u):c!=null&&(c.current=u)})}}var Ny=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ny&&(window.__reactRouterVersion="7.1.3")}catch{}function Kb(l,u){return c0({basename:u==null?void 0:u.basename,future:u==null?void 0:u.future,history:Np({window:u==null?void 0:u.window}),hydrationData:E1(),routes:l,mapRouteProperties:V0,dataStrategy:u==null?void 0:u.dataStrategy,patchRoutesOnNavigation:u==null?void 0:u.patchRoutesOnNavigation,window:u==null?void 0:u.window}).initialize()}function E1(){let l=window==null?void 0:window.__staticRouterHydrationData;return l&&l.errors&&(l={...l,errors:b1(l.errors)}),l}function b1(l){if(!l)return null;let u=Object.entries(l),c={};for(let[f,o]of u)if(o&&o.__type==="RouteErrorResponse")c[f]=new Rr(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let s=window[o.__subType];if(typeof s=="function")try{let h=new s(o.message);h.stack="",c[f]=h}catch{}}if(c[f]==null){let s=new Error(o.message);s.stack="",c[f]=s}}else c[f]=o;return c}var zy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tr=p.forwardRef(function({onClick:u,discover:c="render",prefetch:f="none",relative:o,reloadDocument:s,replace:h,state:y,target:v,to:m,preventScrollReset:b,viewTransition:M,...S},D){let{basename:N}=p.useContext(Nn),q=typeof m=="string"&&zy.test(m),V,U=!1;if(typeof m=="string"&&q&&(V=m,Ny))try{let $=new URL(window.location.href),ie=m.startsWith("//")?new URL($.protocol+m):new URL(m),He=Jt(ie.pathname,N);ie.origin===$.origin&&He!=null?m=He+ie.search+ie.hash:U=!0}catch{bt(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let Z=M0(m,{relative:o}),[K,le,x]=m1(f,S),P=x1(m,{replace:h,state:y,target:v,preventScrollReset:b,relative:o,viewTransition:M});function he($){u&&u($),$.defaultPrevented||P($)}let oe=p.createElement("a",{...S,...x,href:V||Z,onClick:U||s?u:he,ref:p1(D,le),target:v,"data-discover":!q&&c==="render"?"true":void 0});return K&&!q?p.createElement(p.Fragment,null,oe,p.createElement(y1,{page:Z})):oe});Tr.displayName="Link";var S1=p.forwardRef(function({"aria-current":u="page",caseSensitive:c=!1,className:f="",end:o=!1,style:s,to:h,viewTransition:y,children:v,...m},b){let M=ei(h,{relative:m.relative}),S=ta(),D=p.useContext(Pu),{navigator:N,basename:q}=p.useContext(Nn),V=D!=null&&A1(M)&&y===!0,U=N.encodeLocation?N.encodeLocation(M).pathname:M.pathname,Z=S.pathname,K=D&&D.navigation&&D.navigation.location?D.navigation.location.pathname:null;c||(Z=Z.toLowerCase(),K=K?K.toLowerCase():null,U=U.toLowerCase()),K&&q&&(K=Jt(K,q)||K);const le=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let x=Z===U||!o&&Z.startsWith(U)&&Z.charAt(le)==="/",P=K!=null&&(K===U||!o&&K.startsWith(U)&&K.charAt(U.length)==="/"),he={isActive:x,isPending:P,isTransitioning:V},oe=x?u:void 0,$;typeof f=="function"?$=f(he):$=[f,x?"active":null,P?"pending":null,V?"transitioning":null].filter(Boolean).join(" ");let ie=typeof s=="function"?s(he):s;return p.createElement(Tr,{...m,"aria-current":oe,className:$,ref:b,style:ie,to:h,viewTransition:y},typeof v=="function"?v(he):v)});S1.displayName="NavLink";var R1=p.forwardRef(({discover:l="render",fetcherKey:u,navigate:c,reloadDocument:f,replace:o,state:s,method:h=pr,action:y,onSubmit:v,relative:m,preventScrollReset:b,viewTransition:M,...S},D)=>{let N=C1(),q=M1(y,{relative:m}),V=h.toLowerCase()==="get"?"get":"post",U=typeof y=="string"&&zy.test(y),Z=K=>{if(v&&v(K),K.defaultPrevented)return;K.preventDefault();let le=K.nativeEvent.submitter,x=(le==null?void 0:le.getAttribute("formmethod"))||h;N(le||K.currentTarget,{fetcherKey:u,method:x,navigate:c,replace:o,state:s,relative:m,preventScrollReset:b,viewTransition:M})};return p.createElement("form",{ref:D,method:V,action:q,onSubmit:f?v:Z,...S,"data-discover":!U&&l==="render"?"true":void 0})});R1.displayName="Form";function T1(l){return`${l} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Uy(l){let u=p.useContext(rl);return Ne(u,T1(l)),u}function x1(l,{target:u,replace:c,state:f,preventScrollReset:o,relative:s,viewTransition:h}={}){let y=Cy(),v=ta(),m=ei(l,{relative:s});return p.useCallback(b=>{if(I0(b,u)){b.preventDefault();let M=c!==void 0?c:Aa(v)===Aa(m);y(l,{replace:M,state:f,preventScrollReset:o,relative:s,viewTransition:h})}},[v,y,m,c,f,u,l,o,s,h])}function kb(l){bt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let u=p.useRef(go(l)),c=p.useRef(!1),f=ta(),o=p.useMemo(()=>e1(f.search,c.current?null:u.current),[f.search]),s=Cy(),h=p.useCallback((y,v)=>{const m=go(typeof y=="function"?y(o):y);c.current=!0,s("?"+m,v)},[s,o]);return[o,h]}var O1=0,D1=()=>`__${String(++O1)}__`;function C1(){let{router:l}=Uy("useSubmit"),{basename:u}=p.useContext(Nn),c=q0();return p.useCallback(async(f,o={})=>{let{action:s,method:h,encType:y,formData:v,body:m}=a1(f,u);if(o.navigate===!1){let b=o.fetcherKey||D1();await l.fetch(b,c,o.action||s,{preventScrollReset:o.preventScrollReset,formData:v,body:m,formMethod:o.method||h,formEncType:o.encType||y,flushSync:o.flushSync})}else await l.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:v,body:m,formMethod:o.method||h,formEncType:o.encType||y,replace:o.replace,state:o.state,fromRouteId:c,flushSync:o.flushSync,viewTransition:o.viewTransition})},[l,u,c])}function M1(l,{relative:u}={}){let{basename:c}=p.useContext(Nn),f=p.useContext(xn);Ne(f,"useFormAction must be used inside a RouteContext");let[o]=f.matches.slice(-1),s={...ei(l||".",{relative:u})},h=ta();if(l==null){s.search=h.search;let y=new URLSearchParams(s.search),v=y.getAll("index");if(v.some(b=>b==="")){y.delete("index"),v.filter(M=>M).forEach(M=>y.append("index",M));let b=y.toString();s.search=b?`?${b}`:""}}return(!l||l===".")&&o.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(s.pathname=s.pathname==="/"?c:wn([c,s.pathname])),Aa(s)}function A1(l,u={}){let c=p.useContext(_o);Ne(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:f}=Uy("useViewTransitionState"),o=ei(l,{relative:u.relative});if(!c.isTransitioning)return!1;let s=Jt(c.currentLocation.pathname,f)||c.currentLocation.pathname,h=Jt(c.nextLocation.pathname,f)||c.nextLocation.pathname;return Sr(o.pathname,h)!=null||Sr(o.pathname,s)!=null}new TextEncoder;var jy=my();const Kl=Wu(jy);/**
+ * react-router v7.1.3
+ *
+ * Copyright (c) Remix Software Inc.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE.md file in the root directory of this source tree.
+ *
+ * @license MIT
+ */function $b(l){return p.createElement(Z0,{flushSync:jy.flushSync,...l})}const _1=p.createContext({show:!1,toggle:()=>{}}),w1=l=>{const u=Bt.c(8),{children:c}=l,[f,o]=p.useState(!1);let s;u[0]!==f?(s=()=>{o(!f)},u[0]=f,u[1]=s):s=u[1];const h=s;let y;u[2]!==f||u[3]!==h?(y={show:f,toggle:h},u[2]=f,u[3]=h,u[4]=y):y=u[4];let v;return u[5]!==c||u[6]!==y?(v=j.jsx(_1.Provider,{value:y,children:c}),u[5]=c,u[6]=y,u[7]=v):v=u[7],v};async function N1(){return await(await fetch("/api/user/")).json()}const po={name:"",email:"",permissions:{admin:!1,active:!1},id:"",nrens:[],oidc_sub:"",role:""},Ly=p.createContext({user:po,logout:()=>{},setUser:()=>{}}),z1=l=>{const u=Bt.c(8),{children:c}=l,[f,o]=p.useState(po);let s;u[0]===Symbol.for("react.memo_cache_sentinel")?(s=async function(){await fetch("/logout"),o(po)},u[0]=s):s=u[0];const h=s;let y,v;u[1]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{N1().then(M=>{o(M)})},v=[],u[1]=y,u[2]=v):(y=u[1],v=u[2]),p.useEffect(y,v);let m;u[3]!==f?(m={user:f,logout:h,setUser:o},u[3]=f,u[4]=m):m=u[4];let b;return u[5]!==c||u[6]!==m?(b=j.jsx(Ly.Provider,{value:m,children:c}),u[5]=c,u[6]=m,u[7]=b):b=u[7],b},U1=p.createContext({filterSelection:{selectedYears:[],selectedNrens:[]},setFilterSelection:()=>{}}),j1=l=>{const u=Bt.c(6),{children:c}=l;let f;u[0]===Symbol.for("react.memo_cache_sentinel")?(f={selectedYears:[],selectedNrens:[]},u[0]=f):f=u[0];const[o,s]=p.useState(f);let h;u[1]!==o?(h={filterSelection:o,setFilterSelection:s},u[1]=o,u[2]=h):h=u[2];let y;return u[3]!==c||u[4]!==h?(y=j.jsx(U1.Provider,{value:h,children:c}),u[3]=c,u[4]=h,u[5]=y):y=u[5],y},L1=p.createContext(null),H1=l=>{const u=Bt.c(2),{children:c}=l,f=p.useRef(null);let o;return u[0]!==c?(o=j.jsx(L1.Provider,{value:f,children:c}),u[0]=c,u[1]=o):o=u[1],o},B1=p.createContext({preview:!1,setPreview:()=>{}}),q1=l=>{const u=Bt.c(5),{children:c}=l,[f,o]=p.useState(!1);let s;u[0]!==f?(s={preview:f,setPreview:o},u[0]=f,u[1]=s):s=u[1];let h;return u[2]!==c||u[3]!==s?(h=j.jsx(B1.Provider,{value:s,children:c}),u[2]=c,u[3]=s,u[4]=h):h=u[4],h};async function Y1(){try{return await(await fetch("/api/nren/list")).json()}catch{return[]}}const G1=p.createContext({nrens:[],setNrens:()=>{}}),X1=l=>{const u=Bt.c(8),{children:c}=l;let f;u[0]===Symbol.for("react.memo_cache_sentinel")?(f=[],u[0]=f):f=u[0];const[o,s]=p.useState(f);let h,y;u[1]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{Y1().then(b=>s(b))},y=[],u[1]=h,u[2]=y):(h=u[1],y=u[2]),p.useEffect(h,y);let v;u[3]!==o?(v={nrens:o,setNrens:s},u[3]=o,u[4]=v):v=u[4];let m;return u[5]!==c||u[6]!==v?(m=j.jsx(G1.Provider,{value:v,children:c}),u[5]=c,u[6]=v,u[7]=m):m=u[7],m},to={TRACK_EVENT:"trackEvent",TRACK_LINK:"trackLink",TRACK_VIEW:"trackPageView"};class V1{constructor(u){vm(this,"mutationObserver");if(!u.urlBase)throw new Error("Matomo urlBase is required.");if(!u.siteId)throw new Error("Matomo siteId is required.");this.initialize(u)}initialize({urlBase:u,siteId:c,userId:f,trackerUrl:o,srcUrl:s,disabled:h,heartBeat:y,requireConsent:v=!1,configurations:m={}}){const b=u[u.length-1]!=="/"?`${u}/`:u;if(typeof window>"u"||(window._paq=window._paq||[],window._paq.length!==0)||h)return;v&&this.pushInstruction("requireConsent"),this.pushInstruction("setTrackerUrl",o??`${b}matomo.php`),this.pushInstruction("setSiteId",c),f&&this.pushInstruction("setUserId",f),Object.entries(m).forEach(([N,q])=>{q instanceof Array?this.pushInstruction(N,...q):this.pushInstruction(N,q)}),(!y||y&&y.active)&&this.enableHeartBeatTimer((y&&y.seconds)??15);const M=document,S=M.createElement("script"),D=M.getElementsByTagName("script")[0];S.type="text/javascript",S.async=!0,S.defer=!0,S.src=s||`${b}matomo.js`,D&&D.parentNode&&D.parentNode.insertBefore(S,D)}enableHeartBeatTimer(u){this.pushInstruction("enableHeartBeatTimer",u)}trackEventsForElements(u){u.length&&u.forEach(c=>{c.addEventListener("click",()=>{const{matomoCategory:f,matomoAction:o,matomoName:s,matomoValue:h}=c.dataset;if(f&&o)this.trackEvent({category:f,action:o,name:s,value:Number(h)});else throw new Error("Error: data-matomo-category and data-matomo-action are required.")})})}trackEvents(){const u='[data-matomo-event="click"]';let c=!1;if(this.mutationObserver||(c=!0,this.mutationObserver=new MutationObserver(f=>{f.forEach(o=>{o.addedNodes.forEach(s=>{if(!(s instanceof HTMLElement))return;s.matches(u)&&this.trackEventsForElements([s]);const h=Array.from(s.querySelectorAll(u));this.trackEventsForElements(h)})})})),this.mutationObserver.observe(document,{childList:!0,subtree:!0}),c){const f=Array.from(document.querySelectorAll(u));this.trackEventsForElements(f)}}stopObserving(){this.mutationObserver&&this.mutationObserver.disconnect()}trackEvent({category:u,action:c,name:f,value:o,...s}){if(u&&c)this.track({data:[to.TRACK_EVENT,u,c,f,o],...s});else throw new Error("Error: category and action are required.")}giveConsent(){this.pushInstruction("setConsentGiven")}trackLink({href:u,linkType:c="link"}){this.pushInstruction(to.TRACK_LINK,u,c)}trackPageView(u){this.track({data:[to.TRACK_VIEW],...u})}track({data:u=[],documentTitle:c=window.document.title,href:f,customDimensions:o=!1}){u.length&&(o&&Array.isArray(o)&&o.length&&o.map(s=>this.pushInstruction("setCustomDimension",s.id,s.value)),this.pushInstruction("setCustomUrl",f??window.location.href),this.pushInstruction("setDocumentTitle",c),this.pushInstruction(...u))}pushInstruction(u,...c){return typeof window<"u"&&window._paq.push([u,...c]),this}}function Q1(l){return window.location.hostname==="localhost"&&(console.log("Matomo tracking disabled in development mode."),l.disabled=!0),new V1(l)}const Lo=p.createContext({consent:null,setConsent:()=>{}}),Z1=l=>{const u=Bt.c(7),{children:c}=l,f=K1;let o;u[0]===Symbol.for("react.memo_cache_sentinel")?(o=f(),u[0]=o):o=u[0];const[s,h]=p.useState(o);let y;u[1]===Symbol.for("react.memo_cache_sentinel")?(y=b=>h(b),u[1]=y):y=u[1];let v;u[2]!==s?(v={setConsent:y,consent:s},u[2]=s,u[3]=v):v=u[3];let m;return u[4]!==c||u[5]!==v?(m=j.jsx(Lo.Provider,{value:v,children:c}),u[4]=c,u[5]=v,u[6]=m):m=u[6],m};function K1(){const l=localStorage.getItem("matomo_consent");if(l){const u=JSON.parse(l);if(new Date(u.expiry)>new Date)return u.consent}return null}const Hy=p.createContext(null),k1=function(l){const u=Bt.c(5),{children:c}=l,o=!p.useContext(Lo).consent;let s;u[0]!==o?(s=Q1({urlBase:"https://prod-swd-webanalytics01.geant.org/",siteId:1,disabled:o}),u[0]=o,u[1]=s):s=u[1];const h=s;let y;return u[2]!==c||u[3]!==h?(y=j.jsx(Hy.Provider,{value:h,children:c}),u[2]=c,u[3]=h,u[4]=y):y=u[4],y},$1=()=>{const l=JSON.parse(localStorage.getItem("config")??"{}"),u={};for(const c in l){const f=l[c];f.expireTime&&f.expireTime<Date.now()||f&&(u[c]=f)}return u},no=l=>{localStorage.setItem("config",JSON.stringify(l))},J1=p.createContext({getConfig:()=>{},setConfig:()=>{}}),F1=l=>{const u=Bt.c(12),{children:c}=l;let f;u[0]===Symbol.for("react.memo_cache_sentinel")?(f=$1(),u[0]=f):f=u[0];const[o,s]=p.useState(f);let h;u[1]!==o?(h=(S,D,N)=>{var Z;if(!S)throw new Error("Valid config key must be provided");if(D==null){const K={...o};delete K[S],s(K),no(K);return}const q=JSON.stringify(D),V=JSON.stringify((Z=o[S])==null?void 0:Z.value);if(q===V)return;const U=N?N.getTime():null;if(U&&U<Date.now())throw new Error("Timeout must be in the future");U?(s({...o,[S]:{value:D,expireTime:U}}),no({...o,[S]:{value:D,expireTime:U}})):(s({...o,[S]:{value:D}}),no({...o,[S]:{value:D}}))},u[1]=o,u[2]=h):h=u[2];const y=h;let v;u[3]!==o||u[4]!==y?(v=S=>{const D=o[S];if(D!=null&&D.expireTime&&D.expireTime<Date.now()){y(S);return}if(D!=null)return D.value},u[3]=o,u[4]=y,u[5]=v):v=u[5];const m=v;let b;u[6]!==m||u[7]!==y?(b={getConfig:m,setConfig:y},u[6]=m,u[7]=y,u[8]=b):b=u[8];let M;return u[9]!==c||u[10]!==b?(M=j.jsx(J1.Provider,{value:b,children:c}),u[9]=c,u[10]=b,u[11]=M):M=u[11],M};function Jb(l){const u=Bt.c(2),{children:c}=l;let f;return u[0]!==c?(f=j.jsx(F1,{children:j.jsx(Z1,{children:j.jsx(k1,{children:j.jsx(w1,{children:j.jsx(z1,{children:j.jsx(j1,{children:j.jsx(H1,{children:j.jsx(q1,{children:j.jsx(X1,{children:c})})})})})})})})}),u[0]=c,u[1]=f):f=u[1],f}var ao={exports:{}};/*!
+	Copyright (c) 2018 Jed Watson.
+	Licensed under the MIT License (MIT), see
+	http://jedwatson.github.io/classnames
+*/var Wm;function W1(){return Wm||(Wm=1,function(l){(function(){var u={}.hasOwnProperty;function c(){for(var s="",h=0;h<arguments.length;h++){var y=arguments[h];y&&(s=o(s,f(y)))}return s}function f(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return c.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var h="";for(var y in s)u.call(s,y)&&s[y]&&(h=o(h,y));return h}function o(s,h){return h?s?s+" "+h:s+h:s}l.exports?(c.default=c,l.exports=c):window.classNames=c})()}(ao)),ao.exports}var P1=W1();const Ge=Wu(P1);function I1(l,u){if(l==null)return{};var c={};for(var f in l)if({}.hasOwnProperty.call(l,f)){if(u.includes(f))continue;c[f]=l[f]}return c}function Eo(l,u){return Eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(c,f){return c.__proto__=f,c},Eo(l,u)}function eE(l,u){l.prototype=Object.create(u.prototype),l.prototype.constructor=l,Eo(l,u)}const tE=["xxl","xl","lg","md","sm","xs"],nE="xs",zr=p.createContext({prefixes:{},breakpoints:tE,minBreakpoint:nE});function ct(l,u){const{prefixes:c}=p.useContext(zr);return l||c[u]||u}function By(){const{breakpoints:l}=p.useContext(zr);return l}function qy(){const{minBreakpoint:l}=p.useContext(zr);return l}function aE(){const{dir:l}=p.useContext(zr);return l==="rtl"}function Ur(l){return l&&l.ownerDocument||document}function lE(l){var u=Ur(l);return u&&u.defaultView||window}function uE(l,u){return lE(l).getComputedStyle(l,u)}var iE=/([A-Z])/g;function rE(l){return l.replace(iE,"-$1").toLowerCase()}var cE=/^ms-/;function mr(l){return rE(l).replace(cE,"-ms-")}var fE=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function oE(l){return!!(l&&fE.test(l))}function il(l,u){var c="",f="";if(typeof u=="string")return l.style.getPropertyValue(mr(u))||uE(l).getPropertyValue(mr(u));Object.keys(u).forEach(function(o){var s=u[o];!s&&s!==0?l.style.removeProperty(mr(o)):oE(o)?f+=o+"("+s+") ":c+=mr(o)+": "+s+";"}),f&&(c+="transform: "+f+";"),l.style.cssText+=";"+c}var lo={exports:{}},uo,Pm;function sE(){if(Pm)return uo;Pm=1;var l="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return uo=l,uo}var io,Im;function dE(){if(Im)return io;Im=1;var l=sE();function u(){}function c(){}return c.resetWarningCache=u,io=function(){function f(h,y,v,m,b,M){if(M!==l){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}f.isRequired=f;function o(){return f}var s={array:f,bigint:f,bool:f,func:f,number:f,object:f,string:f,symbol:f,any:f,arrayOf:o,element:f,elementType:f,instanceOf:o,node:f,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:c,resetWarningCache:u};return s.PropTypes=s,s},io}var ey;function hE(){return ey||(ey=1,lo.exports=dE()()),lo.exports}var mE=hE();const In=Wu(mE),ty={disabled:!1},Yy=Ht.createContext(null);var yE=function(u){return u.scrollTop},Ju="unmounted",tl="exited",Ca="entering",al="entered",bo="exiting",na=function(l){eE(u,l);function u(f,o){var s;s=l.call(this,f,o)||this;var h=o,y=h&&!h.isMounting?f.enter:f.appear,v;return s.appearStatus=null,f.in?y?(v=tl,s.appearStatus=Ca):v=al:f.unmountOnExit||f.mountOnEnter?v=Ju:v=tl,s.state={status:v},s.nextCallback=null,s}u.getDerivedStateFromProps=function(o,s){var h=o.in;return h&&s.status===Ju?{status:tl}:null};var c=u.prototype;return c.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},c.componentDidUpdate=function(o){var s=null;if(o!==this.props){var h=this.state.status;this.props.in?h!==Ca&&h!==al&&(s=Ca):(h===Ca||h===al)&&(s=bo)}this.updateStatus(!1,s)},c.componentWillUnmount=function(){this.cancelNextCallback()},c.getTimeouts=function(){var o=this.props.timeout,s,h,y;return s=h=y=o,o!=null&&typeof o!="number"&&(s=o.exit,h=o.enter,y=o.appear!==void 0?o.appear:h),{exit:s,enter:h,appear:y}},c.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===Ca){if(this.props.unmountOnExit||this.props.mountOnEnter){var h=this.props.nodeRef?this.props.nodeRef.current:Kl.findDOMNode(this);h&&yE(h)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===tl&&this.setState({status:Ju})},c.performEnter=function(o){var s=this,h=this.props.enter,y=this.context?this.context.isMounting:o,v=this.props.nodeRef?[y]:[Kl.findDOMNode(this),y],m=v[0],b=v[1],M=this.getTimeouts(),S=y?M.appear:M.enter;if(!o&&!h||ty.disabled){this.safeSetState({status:al},function(){s.props.onEntered(m)});return}this.props.onEnter(m,b),this.safeSetState({status:Ca},function(){s.props.onEntering(m,b),s.onTransitionEnd(S,function(){s.safeSetState({status:al},function(){s.props.onEntered(m,b)})})})},c.performExit=function(){var o=this,s=this.props.exit,h=this.getTimeouts(),y=this.props.nodeRef?void 0:Kl.findDOMNode(this);if(!s||ty.disabled){this.safeSetState({status:tl},function(){o.props.onExited(y)});return}this.props.onExit(y),this.safeSetState({status:bo},function(){o.props.onExiting(y),o.onTransitionEnd(h.exit,function(){o.safeSetState({status:tl},function(){o.props.onExited(y)})})})},c.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},c.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},c.setNextCallback=function(o){var s=this,h=!0;return this.nextCallback=function(y){h&&(h=!1,s.nextCallback=null,o(y))},this.nextCallback.cancel=function(){h=!1},this.nextCallback},c.onTransitionEnd=function(o,s){this.setNextCallback(s);var h=this.props.nodeRef?this.props.nodeRef.current:Kl.findDOMNode(this),y=o==null&&!this.props.addEndListener;if(!h||y){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var v=this.props.nodeRef?[this.nextCallback]:[h,this.nextCallback],m=v[0],b=v[1];this.props.addEndListener(m,b)}o!=null&&setTimeout(this.nextCallback,o)},c.render=function(){var o=this.state.status;if(o===Ju)return null;var s=this.props,h=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var y=I1(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ht.createElement(Yy.Provider,{value:null},typeof h=="function"?h(o,y):Ht.cloneElement(Ht.Children.only(h),y))},u}(Ht.Component);na.contextType=Yy;na.propTypes={};function Xl(){}na.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xl,onEntering:Xl,onEntered:Xl,onExit:Xl,onExiting:Xl,onExited:Xl};na.UNMOUNTED=Ju;na.EXITED=tl;na.ENTERING=Ca;na.ENTERED=al;na.EXITING=bo;function vE(l){return l.code==="Escape"||l.keyCode===27}function gE(){const l=p.version.split(".");return{major:+l[0],minor:+l[1],patch:+l[2]}}function Gy(l){if(!l||typeof l=="function")return null;const{major:u}=gE();return u>=19?l.props.ref:l.ref}const $l=!!(typeof window<"u"&&window.document&&window.document.createElement);var So=!1,Ro=!1;try{var ro={get passive(){return So=!0},get once(){return Ro=So=!0}};$l&&(window.addEventListener("test",ro,ro),window.removeEventListener("test",ro,!0))}catch{}function Xy(l,u,c,f){if(f&&typeof f!="boolean"&&!Ro){var o=f.once,s=f.capture,h=c;!Ro&&o&&(h=c.__once||function y(v){this.removeEventListener(u,y,s),c.call(this,v)},c.__once=h),l.addEventListener(u,h,So?f:s)}l.addEventListener(u,c,f)}function To(l,u,c,f){var o=f&&typeof f!="boolean"?f.capture:f;l.removeEventListener(u,c,o),c.__once&&l.removeEventListener(u,c.__once,o)}function xr(l,u,c,f){return Xy(l,u,c,f),function(){To(l,u,c,f)}}function pE(l,u,c,f){if(f===void 0&&(f=!0),l){var o=document.createEvent("HTMLEvents");o.initEvent(u,c,f),l.dispatchEvent(o)}}function EE(l){var u=il(l,"transitionDuration")||"",c=u.indexOf("ms")===-1?1e3:1;return parseFloat(u)*c}function bE(l,u,c){c===void 0&&(c=5);var f=!1,o=setTimeout(function(){f||pE(l,"transitionend",!0)},u+c),s=xr(l,"transitionend",function(){f=!0},{once:!0});return function(){clearTimeout(o),s()}}function Vy(l,u,c,f){c==null&&(c=EE(l)||0);var o=bE(l,c,f),s=xr(l,"transitionend",u);return function(){o(),s()}}function ny(l,u){const c=il(l,u)||"",f=c.indexOf("ms")===-1?1e3:1;return parseFloat(c)*f}function SE(l,u){const c=ny(l,"transitionDuration"),f=ny(l,"transitionDelay"),o=Vy(l,s=>{s.target===l&&(o(),u(s))},c+f)}function RE(l){l.offsetHeight}const ay=l=>!l||typeof l=="function"?l:u=>{l.current=u};function TE(l,u){const c=ay(l),f=ay(u);return o=>{c&&c(o),f&&f(o)}}function Qy(l,u){return p.useMemo(()=>TE(l,u),[l,u])}function xE(l){return l&&"setState"in l?Kl.findDOMNode(l):l??null}const OE=Ht.forwardRef(({onEnter:l,onEntering:u,onEntered:c,onExit:f,onExiting:o,onExited:s,addEndListener:h,children:y,childRef:v,...m},b)=>{const M=p.useRef(null),S=Qy(M,v),D=P=>{S(xE(P))},N=P=>he=>{P&&M.current&&P(M.current,he)},q=p.useCallback(N(l),[l]),V=p.useCallback(N(u),[u]),U=p.useCallback(N(c),[c]),Z=p.useCallback(N(f),[f]),K=p.useCallback(N(o),[o]),le=p.useCallback(N(s),[s]),x=p.useCallback(N(h),[h]);return j.jsx(na,{ref:b,...m,onEnter:q,onEntered:U,onEntering:V,onExit:Z,onExited:le,onExiting:K,addEndListener:x,nodeRef:M,children:typeof y=="function"?(P,he)=>y(P,{...he,ref:D}):Ht.cloneElement(y,{ref:D})})});function DE(l){const u=p.useRef(l);return p.useEffect(()=>{u.current=l},[l]),u}function xo(l){const u=DE(l);return p.useCallback(function(...c){return u.current&&u.current(...c)},[u])}const CE=l=>p.forwardRef((u,c)=>j.jsx("div",{...u,ref:c,className:Ge(u.className,l)}));function ME(l){const u=p.useRef(l);return p.useEffect(()=>{u.current=l},[l]),u}function ll(l){const u=ME(l);return p.useCallback(function(...c){return u.current&&u.current(...c)},[u])}function AE(){const l=p.useRef(!0),u=p.useRef(()=>l.current);return p.useEffect(()=>(l.current=!0,()=>{l.current=!1}),[]),u.current}function _E(l){const u=p.useRef(null);return p.useEffect(()=>{u.current=l}),u.current}const wE=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",NE=typeof document<"u",ly=NE||wE?p.useLayoutEffect:p.useEffect,zE=["as","disabled"];function UE(l,u){if(l==null)return{};var c={};for(var f in l)if({}.hasOwnProperty.call(l,f)){if(u.indexOf(f)>=0)continue;c[f]=l[f]}return c}function jE(l){return!l||l.trim()==="#"}function Zy({tagName:l,disabled:u,href:c,target:f,rel:o,role:s,onClick:h,tabIndex:y=0,type:v}){l||(c!=null||f!=null||o!=null?l="a":l="button");const m={tagName:l};if(l==="button")return[{type:v||"button",disabled:u},m];const b=S=>{if((u||l==="a"&&jE(c))&&S.preventDefault(),u){S.stopPropagation();return}h==null||h(S)},M=S=>{S.key===" "&&(S.preventDefault(),b(S))};return l==="a"&&(c||(c="#"),u&&(c=void 0)),[{role:s??"button",disabled:void 0,tabIndex:u?void 0:y,href:c,target:l==="a"?f:void 0,"aria-disabled":u||void 0,rel:l==="a"?o:void 0,onClick:b,onKeyDown:M},m]}const LE=p.forwardRef((l,u)=>{let{as:c,disabled:f}=l,o=UE(l,zE);const[s,{tagName:h}]=Zy(Object.assign({tagName:c,disabled:f},o));return j.jsx(h,Object.assign({},o,s,{ref:u}))});LE.displayName="Button";const HE={[Ca]:"show",[al]:"show"},Ho=p.forwardRef(({className:l,children:u,transitionClasses:c={},onEnter:f,...o},s)=>{const h={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},y=p.useCallback((v,m)=>{RE(v),f==null||f(v,m)},[f]);return j.jsx(OE,{ref:s,addEndListener:SE,...h,onEnter:y,childRef:Gy(u),children:(v,m)=>p.cloneElement(u,{...m,className:Ge("fade",l,u.props.className,HE[v],c[v])})})});Ho.displayName="Fade";const BE={"aria-label":In.string,onClick:In.func,variant:In.oneOf(["white"])},Bo=p.forwardRef(({className:l,variant:u,"aria-label":c="Close",...f},o)=>j.jsx("button",{ref:o,type:"button",className:Ge("btn-close",u&&`btn-close-${u}`,l),"aria-label":c,...f}));Bo.displayName="CloseButton";Bo.propTypes=BE;const Oo=p.forwardRef(({as:l,bsPrefix:u,variant:c="primary",size:f,active:o=!1,disabled:s=!1,className:h,...y},v)=>{const m=ct(u,"btn"),[b,{tagName:M}]=Zy({tagName:l,disabled:s,...y}),S=M;return j.jsx(S,{...b,...y,ref:v,disabled:s,className:Ge(h,m,o&&"active",c&&`${m}-${c}`,f&&`${m}-${f}`,y.href&&s&&"disabled")})});Oo.displayName="Button";function qE(l){const u=p.useRef(l);return u.current=l,u}function YE(l){const u=qE(l);p.useEffect(()=>()=>u.current(),[])}function GE(l,u){return p.Children.toArray(l).some(c=>p.isValidElement(c)&&c.type===u)}function XE({as:l,bsPrefix:u,className:c,...f}){u=ct(u,"col");const o=By(),s=qy(),h=[],y=[];return o.forEach(v=>{const m=f[v];delete f[v];let b,M,S;typeof m=="object"&&m!=null?{span:b,offset:M,order:S}=m:b=m;const D=v!==s?`-${v}`:"";b&&h.push(b===!0?`${u}${D}`:`${u}${D}-${b}`),S!=null&&y.push(`order${D}-${S}`),M!=null&&y.push(`offset${D}-${M}`)}),[{...f,className:Ge(c,...h,...y)},{as:l,bsPrefix:u,spans:h}]}const kl=p.forwardRef((l,u)=>{const[{className:c,...f},{as:o="div",bsPrefix:s,spans:h}]=XE(l);return j.jsx(o,{...f,ref:u,className:Ge(c,!h.length&&s)})});kl.displayName="Col";const qo=p.forwardRef(({bsPrefix:l,fluid:u=!1,as:c="div",className:f,...o},s)=>{const h=ct(l,"container"),y=typeof u=="string"?`-${u}`:"-fluid";return j.jsx(c,{ref:s,...o,className:Ge(f,u?`${h}${y}`:h)})});qo.displayName="Container";var VE=Function.prototype.bind.call(Function.prototype.call,[].slice);function Vl(l,u){return VE(l.querySelectorAll(u))}function uy(l,u){if(l.contains)return l.contains(u);if(l.compareDocumentPosition)return l===u||!!(l.compareDocumentPosition(u)&16)}var co,iy;function QE(){if(iy)return co;iy=1;var l=function(){};return co=l,co}var ZE=QE();const Fb=Wu(ZE),KE="data-rr-ui-";function kE(l){return`${KE}${l}`}const Ky=p.createContext($l?window:void 0);Ky.Provider;function Yo(){return p.useContext(Ky)}const $E={type:In.string,tooltip:In.bool,as:In.elementType},jr=p.forwardRef(({as:l="div",className:u,type:c="valid",tooltip:f=!1,...o},s)=>j.jsx(l,{...o,ref:s,className:Ge(u,`${c}-${f?"tooltip":"feedback"}`)}));jr.displayName="Feedback";jr.propTypes=$E;const ea=p.createContext({}),Go=p.forwardRef(({id:l,bsPrefix:u,className:c,type:f="checkbox",isValid:o=!1,isInvalid:s=!1,as:h="input",...y},v)=>{const{controlId:m}=p.useContext(ea);return u=ct(u,"form-check-input"),j.jsx(h,{...y,ref:v,type:f,id:l||m,className:Ge(c,u,o&&"is-valid",s&&"is-invalid")})});Go.displayName="FormCheckInput";const Or=p.forwardRef(({bsPrefix:l,className:u,htmlFor:c,...f},o)=>{const{controlId:s}=p.useContext(ea);return l=ct(l,"form-check-label"),j.jsx("label",{...f,ref:o,htmlFor:c||s,className:Ge(u,l)})});Or.displayName="FormCheckLabel";const ky=p.forwardRef(({id:l,bsPrefix:u,bsSwitchPrefix:c,inline:f=!1,reverse:o=!1,disabled:s=!1,isValid:h=!1,isInvalid:y=!1,feedbackTooltip:v=!1,feedback:m,feedbackType:b,className:M,style:S,title:D="",type:N="checkbox",label:q,children:V,as:U="input",...Z},K)=>{u=ct(u,"form-check"),c=ct(c,"form-switch");const{controlId:le}=p.useContext(ea),x=p.useMemo(()=>({controlId:l||le}),[le,l]),P=!V&&q!=null&&q!==!1||GE(V,Or),he=j.jsx(Go,{...Z,type:N==="switch"?"checkbox":N,ref:K,isValid:h,isInvalid:y,disabled:s,as:U});return j.jsx(ea.Provider,{value:x,children:j.jsx("div",{style:S,className:Ge(M,P&&u,f&&`${u}-inline`,o&&`${u}-reverse`,N==="switch"&&c),children:V||j.jsxs(j.Fragment,{children:[he,P&&j.jsx(Or,{title:D,children:q}),m&&j.jsx(jr,{type:b,tooltip:v,children:m})]})})})});ky.displayName="FormCheck";const Dr=Object.assign(ky,{Input:Go,Label:Or}),$y=p.forwardRef(({bsPrefix:l,type:u,size:c,htmlSize:f,id:o,className:s,isValid:h=!1,isInvalid:y=!1,plaintext:v,readOnly:m,as:b="input",...M},S)=>{const{controlId:D}=p.useContext(ea);return l=ct(l,"form-control"),j.jsx(b,{...M,type:u,size:f,ref:S,readOnly:m,id:o||D,className:Ge(s,v?`${l}-plaintext`:l,c&&`${l}-${c}`,u==="color"&&`${l}-color`,h&&"is-valid",y&&"is-invalid")})});$y.displayName="FormControl";const JE=Object.assign($y,{Feedback:jr}),Jy=p.forwardRef(({className:l,bsPrefix:u,as:c="div",...f},o)=>(u=ct(u,"form-floating"),j.jsx(c,{ref:o,className:Ge(l,u),...f})));Jy.displayName="FormFloating";const Xo=p.forwardRef(({controlId:l,as:u="div",...c},f)=>{const o=p.useMemo(()=>({controlId:l}),[l]);return j.jsx(ea.Provider,{value:o,children:j.jsx(u,{...c,ref:f})})});Xo.displayName="FormGroup";const Fy=p.forwardRef(({as:l="label",bsPrefix:u,column:c=!1,visuallyHidden:f=!1,className:o,htmlFor:s,...h},y)=>{const{controlId:v}=p.useContext(ea);u=ct(u,"form-label");let m="col-form-label";typeof c=="string"&&(m=`${m} ${m}-${c}`);const b=Ge(o,u,f&&"visually-hidden",c&&m);return s=s||v,c?j.jsx(kl,{ref:y,as:"label",className:b,htmlFor:s,...h}):j.jsx(l,{ref:y,className:b,htmlFor:s,...h})});Fy.displayName="FormLabel";const Wy=p.forwardRef(({bsPrefix:l,className:u,id:c,...f},o)=>{const{controlId:s}=p.useContext(ea);return l=ct(l,"form-range"),j.jsx("input",{...f,type:"range",ref:o,className:Ge(u,l),id:c||s})});Wy.displayName="FormRange";const Py=p.forwardRef(({bsPrefix:l,size:u,htmlSize:c,className:f,isValid:o=!1,isInvalid:s=!1,id:h,...y},v)=>{const{controlId:m}=p.useContext(ea);return l=ct(l,"form-select"),j.jsx("select",{...y,size:c,ref:v,className:Ge(f,l,u&&`${l}-${u}`,o&&"is-valid",s&&"is-invalid"),id:h||m})});Py.displayName="FormSelect";const Iy=p.forwardRef(({bsPrefix:l,className:u,as:c="small",muted:f,...o},s)=>(l=ct(l,"form-text"),j.jsx(c,{...o,ref:s,className:Ge(u,l,f&&"text-muted")})));Iy.displayName="FormText";const ev=p.forwardRef((l,u)=>j.jsx(Dr,{...l,ref:u,type:"switch"}));ev.displayName="Switch";const FE=Object.assign(ev,{Input:Dr.Input,Label:Dr.Label}),tv=p.forwardRef(({bsPrefix:l,className:u,children:c,controlId:f,label:o,...s},h)=>(l=ct(l,"form-floating"),j.jsxs(Xo,{ref:h,className:Ge(u,l),controlId:f,...s,children:[c,j.jsx("label",{htmlFor:f,children:o})]})));tv.displayName="FloatingLabel";const WE={_ref:In.any,validated:In.bool,as:In.elementType},Vo=p.forwardRef(({className:l,validated:u,as:c="form",...f},o)=>j.jsx(c,{...f,ref:o,className:Ge(l,u&&"was-validated")}));Vo.displayName="Form";Vo.propTypes=WE;const yr=Object.assign(Vo,{Group:Xo,Control:JE,Floating:Jy,Check:Dr,Switch:FE,Label:Fy,Text:Iy,Range:Wy,Select:Py,FloatingLabel:tv}),ry=l=>!l||typeof l=="function"?l:u=>{l.current=u};function PE(l,u){const c=ry(l),f=ry(u);return o=>{c&&c(o),f&&f(o)}}function Qo(l,u){return p.useMemo(()=>PE(l,u),[l,u])}var vr;function cy(l){if((!vr&&vr!==0||l)&&$l){var u=document.createElement("div");u.style.position="absolute",u.style.top="-9999px",u.style.width="50px",u.style.height="50px",u.style.overflow="scroll",document.body.appendChild(u),vr=u.offsetWidth-u.clientWidth,document.body.removeChild(u)}return vr}function IE(){return p.useState(null)}function fo(l){l===void 0&&(l=Ur());try{var u=l.activeElement;return!u||!u.nodeName?null:u}catch{return l.body}}function eb(l){const u=p.useRef(l);return u.current=l,u}function tb(l){const u=eb(l);p.useEffect(()=>()=>u.current(),[])}function nb(l=document){const u=l.defaultView;return Math.abs(u.innerWidth-l.documentElement.clientWidth)}const fy=kE("modal-open");class Zo{constructor({ownerDocument:u,handleContainerOverflow:c=!0,isRTL:f=!1}={}){this.handleContainerOverflow=c,this.isRTL=f,this.modals=[],this.ownerDocument=u}getScrollbarWidth(){return nb(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(u){}removeModalAttributes(u){}setContainerStyle(u){const c={overflow:"hidden"},f=this.isRTL?"paddingLeft":"paddingRight",o=this.getElement();u.style={overflow:o.style.overflow,[f]:o.style[f]},u.scrollBarWidth&&(c[f]=`${parseInt(il(o,f)||"0",10)+u.scrollBarWidth}px`),o.setAttribute(fy,""),il(o,c)}reset(){[...this.modals].forEach(u=>this.remove(u))}removeContainerStyle(u){const c=this.getElement();c.removeAttribute(fy),Object.assign(c.style,u.style)}add(u){let c=this.modals.indexOf(u);return c!==-1||(c=this.modals.length,this.modals.push(u),this.setModalAttributes(u),c!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),c}remove(u){const c=this.modals.indexOf(u);c!==-1&&(this.modals.splice(c,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(u))}isTopModal(u){return!!this.modals.length&&this.modals[this.modals.length-1]===u}}const oo=(l,u)=>$l?l==null?(u||Ur()).body:(typeof l=="function"&&(l=l()),l&&"current"in l&&(l=l.current),l&&("nodeType"in l||l.getBoundingClientRect)?l:null):null;function ab(l,u){const c=Yo(),[f,o]=p.useState(()=>oo(l,c==null?void 0:c.document));if(!f){const s=oo(l);s&&o(s)}return p.useEffect(()=>{},[u,f]),p.useEffect(()=>{const s=oo(l);s!==f&&o(s)},[l,f]),f}function lb({children:l,in:u,onExited:c,mountOnEnter:f,unmountOnExit:o}){const s=p.useRef(null),h=p.useRef(u),y=ll(c);p.useEffect(()=>{u?h.current=!0:y(s.current)},[u,y]);const v=Qo(s,l.ref),m=p.cloneElement(l,{ref:v});return u?m:o||!h.current&&f?null:m}const ub=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function ib(l,u){if(l==null)return{};var c={};for(var f in l)if({}.hasOwnProperty.call(l,f)){if(u.indexOf(f)>=0)continue;c[f]=l[f]}return c}function rb(l){let{onEnter:u,onEntering:c,onEntered:f,onExit:o,onExiting:s,onExited:h,addEndListener:y,children:v}=l,m=ib(l,ub);const b=p.useRef(null),M=Qo(b,Gy(v)),S=le=>x=>{le&&b.current&&le(b.current,x)},D=p.useCallback(S(u),[u]),N=p.useCallback(S(c),[c]),q=p.useCallback(S(f),[f]),V=p.useCallback(S(o),[o]),U=p.useCallback(S(s),[s]),Z=p.useCallback(S(h),[h]),K=p.useCallback(S(y),[y]);return Object.assign({},m,{nodeRef:b},u&&{onEnter:D},c&&{onEntering:N},f&&{onEntered:q},o&&{onExit:V},s&&{onExiting:U},h&&{onExited:Z},y&&{addEndListener:K},{children:typeof v=="function"?(le,x)=>v(le,Object.assign({},x,{ref:M})):p.cloneElement(v,{ref:M})})}const cb=["component"];function fb(l,u){if(l==null)return{};var c={};for(var f in l)if({}.hasOwnProperty.call(l,f)){if(u.indexOf(f)>=0)continue;c[f]=l[f]}return c}const ob=p.forwardRef((l,u)=>{let{component:c}=l,f=fb(l,cb);const o=rb(f);return j.jsx(c,Object.assign({ref:u},o))});function sb({in:l,onTransition:u}){const c=p.useRef(null),f=p.useRef(!0),o=ll(u);return ly(()=>{if(!c.current)return;let s=!1;return o({in:l,element:c.current,initial:f.current,isStale:()=>s}),()=>{s=!0}},[l,o]),ly(()=>(f.current=!1,()=>{f.current=!0}),[]),c}function db({children:l,in:u,onExited:c,onEntered:f,transition:o}){const[s,h]=p.useState(!u);u&&s&&h(!1);const y=sb({in:!!u,onTransition:m=>{const b=()=>{m.isStale()||(m.in?f==null||f(m.element,m.initial):(h(!0),c==null||c(m.element)))};Promise.resolve(o(m)).then(b,M=>{throw m.in||h(!0),M})}}),v=Qo(y,l.ref);return s&&!u?null:p.cloneElement(l,{ref:v})}function oy(l,u,c){return l?j.jsx(ob,Object.assign({},c,{component:l})):u?j.jsx(db,Object.assign({},c,{transition:u})):j.jsx(lb,Object.assign({},c))}const hb=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function mb(l,u){if(l==null)return{};var c={};for(var f in l)if({}.hasOwnProperty.call(l,f)){if(u.indexOf(f)>=0)continue;c[f]=l[f]}return c}let so;function yb(l){return so||(so=new Zo({ownerDocument:l==null?void 0:l.document})),so}function vb(l){const u=Yo(),c=l||yb(u),f=p.useRef({dialog:null,backdrop:null});return Object.assign(f.current,{add:()=>c.add(f.current),remove:()=>c.remove(f.current),isTopModal:()=>c.isTopModal(f.current),setDialogRef:p.useCallback(o=>{f.current.dialog=o},[]),setBackdropRef:p.useCallback(o=>{f.current.backdrop=o},[])})}const nv=p.forwardRef((l,u)=>{let{show:c=!1,role:f="dialog",className:o,style:s,children:h,backdrop:y=!0,keyboard:v=!0,onBackdropClick:m,onEscapeKeyDown:b,transition:M,runTransition:S,backdropTransition:D,runBackdropTransition:N,autoFocus:q=!0,enforceFocus:V=!0,restoreFocus:U=!0,restoreFocusOptions:Z,renderDialog:K,renderBackdrop:le=Le=>j.jsx("div",Object.assign({},Le)),manager:x,container:P,onShow:he,onHide:oe=()=>{},onExit:$,onExited:ie,onExiting:He,onEnter:ut,onEntering:Je,onEntered:dt}=l,Me=mb(l,hb);const k=Yo(),se=ab(P),W=vb(x),Te=AE(),R=_E(c),[G,te]=p.useState(!c),I=p.useRef(null);p.useImperativeHandle(u,()=>W,[W]),$l&&!R&&c&&(I.current=fo(k==null?void 0:k.document)),c&&G&&te(!1);const J=ll(()=>{if(W.add(),De.current=xr(document,"keydown",_e),Se.current=xr(document,"focus",()=>setTimeout(pe),!0),he&&he(),q){var Le,zt;const hn=fo((Le=(zt=W.dialog)==null?void 0:zt.ownerDocument)!=null?Le:k==null?void 0:k.document);W.dialog&&hn&&!uy(W.dialog,hn)&&(I.current=hn,W.dialog.focus())}}),ve=ll(()=>{if(W.remove(),De.current==null||De.current(),Se.current==null||Se.current(),U){var Le;(Le=I.current)==null||Le.focus==null||Le.focus(Z),I.current=null}});p.useEffect(()=>{!c||!se||J()},[c,se,J]),p.useEffect(()=>{G&&ve()},[G,ve]),tb(()=>{ve()});const pe=ll(()=>{if(!V||!Te()||!W.isTopModal())return;const Le=fo(k==null?void 0:k.document);W.dialog&&Le&&!uy(W.dialog,Le)&&W.dialog.focus()}),Ie=ll(Le=>{Le.target===Le.currentTarget&&(m==null||m(Le),y===!0&&oe())}),_e=ll(Le=>{v&&vE(Le)&&W.isTopModal()&&(b==null||b(Le),Le.defaultPrevented||oe())}),Se=p.useRef(),De=p.useRef(),yt=(...Le)=>{te(!0),ie==null||ie(...Le)};if(!se)return null;const Nt=Object.assign({role:f,ref:W.setDialogRef,"aria-modal":f==="dialog"?!0:void 0},Me,{style:s,className:o,tabIndex:-1});let et=K?K(Nt):j.jsx("div",Object.assign({},Nt,{children:p.cloneElement(h,{role:"document"})}));et=oy(M,S,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!c,onExit:$,onExiting:He,onExited:yt,onEnter:ut,onEntering:Je,onEntered:dt,children:et});let qt=null;return y&&(qt=le({ref:W.setBackdropRef,onClick:Ie}),qt=oy(D,N,{in:!!c,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:qt})),j.jsx(j.Fragment,{children:Kl.createPortal(j.jsxs(j.Fragment,{children:[qt,et]}),se)})});nv.displayName="Modal";const gb=Object.assign(nv,{Manager:Zo});function pb(l,u){return l.classList?l.classList.contains(u):(" "+(l.className.baseVal||l.className)+" ").indexOf(" "+u+" ")!==-1}function Eb(l,u){l.classList?l.classList.add(u):pb(l,u)||(typeof l.className=="string"?l.className=l.className+" "+u:l.setAttribute("class",(l.className&&l.className.baseVal||"")+" "+u))}function sy(l,u){return l.replace(new RegExp("(^|\\s)"+u+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function bb(l,u){l.classList?l.classList.remove(u):typeof l.className=="string"?l.className=sy(l.className,u):l.setAttribute("class",sy(l.className&&l.className.baseVal||"",u))}const Ql={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class Sb extends Zo{adjustAndStore(u,c,f){const o=c.style[u];c.dataset[u]=o,il(c,{[u]:`${parseFloat(il(c,u))+f}px`})}restore(u,c){const f=c.dataset[u];f!==void 0&&(delete c.dataset[u],il(c,{[u]:f}))}setContainerStyle(u){super.setContainerStyle(u);const c=this.getElement();if(Eb(c,"modal-open"),!u.scrollBarWidth)return;const f=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Vl(c,Ql.FIXED_CONTENT).forEach(s=>this.adjustAndStore(f,s,u.scrollBarWidth)),Vl(c,Ql.STICKY_CONTENT).forEach(s=>this.adjustAndStore(o,s,-u.scrollBarWidth)),Vl(c,Ql.NAVBAR_TOGGLER).forEach(s=>this.adjustAndStore(o,s,u.scrollBarWidth))}removeContainerStyle(u){super.removeContainerStyle(u);const c=this.getElement();bb(c,"modal-open");const f=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";Vl(c,Ql.FIXED_CONTENT).forEach(s=>this.restore(f,s)),Vl(c,Ql.STICKY_CONTENT).forEach(s=>this.restore(o,s)),Vl(c,Ql.NAVBAR_TOGGLER).forEach(s=>this.restore(o,s))}}let ho;function Rb(l){return ho||(ho=new Sb(l)),ho}const av=p.forwardRef(({className:l,bsPrefix:u,as:c="div",...f},o)=>(u=ct(u,"modal-body"),j.jsx(c,{ref:o,className:Ge(l,u),...f})));av.displayName="ModalBody";const lv=p.createContext({onHide(){}}),Ko=p.forwardRef(({bsPrefix:l,className:u,contentClassName:c,centered:f,size:o,fullscreen:s,children:h,scrollable:y,...v},m)=>{l=ct(l,"modal");const b=`${l}-dialog`,M=typeof s=="string"?`${l}-fullscreen-${s}`:`${l}-fullscreen`;return j.jsx("div",{...v,ref:m,className:Ge(b,u,o&&`${l}-${o}`,f&&`${b}-centered`,y&&`${b}-scrollable`,s&&M),children:j.jsx("div",{className:Ge(`${l}-content`,c),children:h})})});Ko.displayName="ModalDialog";const uv=p.forwardRef(({className:l,bsPrefix:u,as:c="div",...f},o)=>(u=ct(u,"modal-footer"),j.jsx(c,{ref:o,className:Ge(l,u),...f})));uv.displayName="ModalFooter";const Tb=p.forwardRef(({closeLabel:l="Close",closeVariant:u,closeButton:c=!1,onHide:f,children:o,...s},h)=>{const y=p.useContext(lv),v=xo(()=>{y==null||y.onHide(),f==null||f()});return j.jsxs("div",{ref:h,...s,children:[o,c&&j.jsx(Bo,{"aria-label":l,variant:u,onClick:v})]})}),iv=p.forwardRef(({bsPrefix:l,className:u,closeLabel:c="Close",closeButton:f=!1,...o},s)=>(l=ct(l,"modal-header"),j.jsx(Tb,{ref:s,...o,className:Ge(u,l),closeLabel:c,closeButton:f})));iv.displayName="ModalHeader";const xb=CE("h4"),rv=p.forwardRef(({className:l,bsPrefix:u,as:c=xb,...f},o)=>(u=ct(u,"modal-title"),j.jsx(c,{ref:o,className:Ge(l,u),...f})));rv.displayName="ModalTitle";function Ob(l){return j.jsx(Ho,{...l,timeout:null})}function Db(l){return j.jsx(Ho,{...l,timeout:null})}const cv=p.forwardRef(({bsPrefix:l,className:u,style:c,dialogClassName:f,contentClassName:o,children:s,dialogAs:h=Ko,"data-bs-theme":y,"aria-labelledby":v,"aria-describedby":m,"aria-label":b,show:M=!1,animation:S=!0,backdrop:D=!0,keyboard:N=!0,onEscapeKeyDown:q,onShow:V,onHide:U,container:Z,autoFocus:K=!0,enforceFocus:le=!0,restoreFocus:x=!0,restoreFocusOptions:P,onEntered:he,onExit:oe,onExiting:$,onEnter:ie,onEntering:He,onExited:ut,backdropClassName:Je,manager:dt,...Me},k)=>{const[se,W]=p.useState({}),[Te,R]=p.useState(!1),G=p.useRef(!1),te=p.useRef(!1),I=p.useRef(null),[J,ve]=IE(),pe=Qy(k,ve),Ie=xo(U),_e=aE();l=ct(l,"modal");const Se=p.useMemo(()=>({onHide:Ie}),[Ie]);function De(){return dt||Rb({isRTL:_e})}function yt(be){if(!$l)return;const Wt=De().getScrollbarWidth()>0,mn=be.scrollHeight>Ur(be).documentElement.clientHeight;W({paddingRight:Wt&&!mn?cy():void 0,paddingLeft:!Wt&&mn?cy():void 0})}const Nt=xo(()=>{J&&yt(J.dialog)});YE(()=>{To(window,"resize",Nt),I.current==null||I.current()});const et=()=>{G.current=!0},qt=be=>{G.current&&J&&be.target===J.dialog&&(te.current=!0),G.current=!1},Le=()=>{R(!0),I.current=Vy(J.dialog,()=>{R(!1)})},zt=be=>{be.target===be.currentTarget&&Le()},hn=be=>{if(D==="static"){zt(be);return}if(te.current||be.target!==be.currentTarget){te.current=!1;return}U==null||U()},aa=be=>{N?q==null||q(be):(be.preventDefault(),D==="static"&&Le())},wa=(be,Wt)=>{be&&yt(be),ie==null||ie(be,Wt)},Na=be=>{I.current==null||I.current(),oe==null||oe(be)},Yt=(be,Wt)=>{He==null||He(be,Wt),Xy(window,"resize",Nt)},zn=be=>{be&&(be.style.display=""),ut==null||ut(be),To(window,"resize",Nt)},cl=p.useCallback(be=>j.jsx("div",{...be,className:Ge(`${l}-backdrop`,Je,!S&&"show")}),[S,Je,l]),St={...c,...se};St.display="block";const Ft=be=>j.jsx("div",{role:"dialog",...be,style:St,className:Ge(u,l,Te&&`${l}-static`,!S&&"show"),onClick:D?hn:void 0,onMouseUp:qt,"data-bs-theme":y,"aria-label":b,"aria-labelledby":v,"aria-describedby":m,children:j.jsx(h,{...Me,onMouseDown:et,className:f,contentClassName:o,children:s})});return j.jsx(lv.Provider,{value:Se,children:j.jsx(gb,{show:M,ref:pe,backdrop:D,container:Z,keyboard:!0,autoFocus:K,enforceFocus:le,restoreFocus:x,restoreFocusOptions:P,onEscapeKeyDown:aa,onShow:V,onHide:U,onEnter:wa,onEntering:Yt,onEntered:he,onExit:Na,onExiting:$,onExited:zn,manager:De(),transition:S?Ob:void 0,backdropTransition:S?Db:void 0,renderBackdrop:cl,renderDialog:Ft})})});cv.displayName="Modal";const ku=Object.assign(cv,{Body:av,Header:iv,Title:rv,Footer:uv,Dialog:Ko,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),ko=p.forwardRef(({bsPrefix:l,className:u,as:c="div",...f},o)=>{const s=ct(l,"row"),h=By(),y=qy(),v=`${s}-cols`,m=[];return h.forEach(b=>{const M=f[b];delete f[b];let S;M!=null&&typeof M=="object"?{cols:S}=M:S=M;const D=b!==y?`-${b}`:"";S!=null&&m.push(`${v}${D}-${S}`)}),j.jsx(c,{ref:o,...f,className:Ge(u,s,...m)})});ko.displayName="Row";const Cb="/static/DY3vaYXT.svg";function Wb(){const l=Bt.c(6),{user:u}=p.useContext(Ly),{pathname:c}=ta();let f;l[0]===Symbol.for("react.memo_cache_sentinel")?(f=j.jsx(kl,{xs:10,children:j.jsx("div",{className:"nav-wrapper",children:j.jsxs("nav",{className:"header-nav",children:[j.jsx("a",{href:"https://geant.org/",children:j.jsx("img",{src:Cb})}),j.jsxs("ul",{children:[j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://network.geant.org/",children:"NETWORK"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://geant.org/services/",children:"SERVICES"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://community.geant.org/",children:"COMMUNITY"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://tnc23.geant.org/",children:"TNC"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://geant.org/projects/",children:"PROJECTS"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://connect.geant.org/",children:"CONNECT"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://impact.geant.org/",children:"IMPACT"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://careers.geant.org/",children:"CAREERS"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://about.geant.org/",children:"ABOUT"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://connect.geant.org/community-news",children:"NEWS"})}),j.jsx("li",{children:j.jsx("a",{className:"nav-link-entry",href:"https://resources.geant.org/",children:"RESOURCES"})}),j.jsx("li",{children:j.jsx(Tr,{className:"nav-link-entry",to:"/",children:"COMPENDIUM"})})]})]})})}),l[0]=f):f=l[0];let o;l[1]!==c||l[2]!==u.permissions.admin?(o=u.permissions.admin&&!c.includes("survey")&&j.jsx("div",{className:"nav-link",style:{float:"right"},children:j.jsx(Tr,{className:"nav-link-entry",to:"/survey",children:j.jsx("span",{children:"Go to Survey"})})}),l[1]=c,l[2]=u.permissions.admin,l[3]=o):o=l[3];let s;return l[4]!==o?(s=j.jsx("div",{className:"external-page-nav-bar",children:j.jsx(qo,{children:j.jsxs(ko,{children:[f,j.jsx(kl,{xs:2,children:o})]})})}),l[4]=o,l[5]=s):s=l[5],s}const Mb="/static/A3T3A-a_.svg",Ab="/static/DOOiIGTs.png";function Pb(){const l=Bt.c(9);let u;l[0]===Symbol.for("react.memo_cache_sentinel")?(u=j.jsx("a",{href:"https://geant.org",children:j.jsx("img",{src:Mb,className:"m-3",style:{maxWidth:"100px"}})}),l[0]=u):u=l[0];let c;l[1]===Symbol.for("react.memo_cache_sentinel")?(c=j.jsxs(kl,{children:[u,j.jsx("img",{src:Ab,className:"m-3",style:{maxWidth:"200px"}})]}),l[1]=c):c=l[1];let f,o;l[2]===Symbol.for("react.memo_cache_sentinel")?(f=j.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/Disclaimer/",children:"Disclaimer"}),o=j.jsx("wbr",{}),l[2]=f,l[3]=o):(f=l[2],o=l[3]);let s,h;l[4]===Symbol.for("react.memo_cache_sentinel")?(s=j.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/geant-anti-slavery-policy/",children:"GEANT Anti‑Slavery Policy"}),h=j.jsx("wbr",{}),l[4]=s,l[5]=h):(s=l[4],h=l[5]);let y,v;l[6]===Symbol.for("react.memo_cache_sentinel")?(y=j.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/Privacy-Notice/",children:"Privacy Policy"}),v=j.jsx("wbr",{}),l[6]=y,l[7]=v):(y=l[6],v=l[7]);let m;return l[8]===Symbol.for("react.memo_cache_sentinel")?(m=j.jsx("footer",{className:"page-footer pt-3",children:j.jsx(qo,{children:j.jsxs(ko,{children:[c,j.jsx(kl,{className:"mt-4 text-end",children:j.jsxs("span",{children:[f,o,"|",s,h,"|",y,v,"|",j.jsx("a",{className:"mx-3 footer-link",style:{cursor:"pointer"},onClick:_b,children:"Analytics Consent"})]})})]})})}),l[8]=m):m=l[8],m}function _b(){localStorage.removeItem("matomo_consent"),window.location.reload()}function Ib(){const l=Bt.c(16),u=p.useContext(Hy);let c;l[0]!==u?(c=N=>u==null?void 0:u.trackPageView(N),l[0]=u,l[1]=c):c=l[1];const f=c;let o;l[2]!==u?(o=N=>u==null?void 0:u.trackEvent(N),l[2]=u,l[3]=o):o=l[3];const s=o;let h;l[4]!==u?(h=()=>u==null?void 0:u.trackEvents(),l[4]=u,l[5]=h):h=l[5];const y=h;let v;l[6]!==u?(v=N=>u==null?void 0:u.trackLink(N),l[6]=u,l[7]=v):v=l[7];const m=v,b=wb;let M;l[8]!==u?(M=(N,...q)=>{const V=q;u==null||u.pushInstruction(N,...V)},l[8]=u,l[9]=M):M=l[9];const S=M;let D;return l[10]!==S||l[11]!==s||l[12]!==y||l[13]!==m||l[14]!==f?(D={trackEvent:s,trackEvents:y,trackPageView:f,trackLink:m,enableLinkTracking:b,pushInstruction:S},l[10]=S,l[11]=s,l[12]=y,l[13]=m,l[14]=f,l[15]=D):D=l[15],D}function wb(){}var fv={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},dy=Ht.createContext&&Ht.createContext(fv),Nb=["attr","size","title"];function zb(l,u){if(l==null)return{};var c=Ub(l,u),f,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(l);for(o=0;o<s.length;o++)f=s[o],!(u.indexOf(f)>=0)&&Object.prototype.propertyIsEnumerable.call(l,f)&&(c[f]=l[f])}return c}function Ub(l,u){if(l==null)return{};var c={};for(var f in l)if(Object.prototype.hasOwnProperty.call(l,f)){if(u.indexOf(f)>=0)continue;c[f]=l[f]}return c}function Cr(){return Cr=Object.assign?Object.assign.bind():function(l){for(var u=1;u<arguments.length;u++){var c=arguments[u];for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f])}return l},Cr.apply(this,arguments)}function hy(l,u){var c=Object.keys(l);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(l);u&&(f=f.filter(function(o){return Object.getOwnPropertyDescriptor(l,o).enumerable})),c.push.apply(c,f)}return c}function Mr(l){for(var u=1;u<arguments.length;u++){var c=arguments[u]!=null?arguments[u]:{};u%2?hy(Object(c),!0).forEach(function(f){jb(l,f,c[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(c)):hy(Object(c)).forEach(function(f){Object.defineProperty(l,f,Object.getOwnPropertyDescriptor(c,f))})}return l}function jb(l,u,c){return u=Lb(u),u in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c,l}function Lb(l){var u=Hb(l,"string");return typeof u=="symbol"?u:u+""}function Hb(l,u){if(typeof l!="object"||!l)return l;var c=l[Symbol.toPrimitive];if(c!==void 0){var f=c.call(l,u||"default");if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(l)}function ov(l){return l&&l.map((u,c)=>Ht.createElement(u.tag,Mr({key:c},u.attr),ov(u.child)))}function sv(l){return u=>Ht.createElement(Bb,Cr({attr:Mr({},l.attr)},u),ov(l.child))}function Bb(l){var u=c=>{var{attr:f,size:o,title:s}=l,h=zb(l,Nb),y=o||c.size||"1em",v;return c.className&&(v=c.className),l.className&&(v=(v?v+" ":"")+l.className),Ht.createElement("svg",Cr({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},c.attr,f,h,{className:v,style:Mr(Mr({color:l.color||c.color},c.style),l.style),height:y,width:y,xmlns:"http://www.w3.org/2000/svg"}),s&&Ht.createElement("title",null,s),l.children)};return dy!==void 0?Ht.createElement(dy.Consumer,null,c=>u(c)):u(fv)}function eS(l){return sv({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},child:[]}]})(l)}function tS(l){return sv({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z"},child:[]},{tag:"path",attr:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z"},child:[]}]})(l)}const nS=()=>{const l=Bt.c(26),{consent:u,setConsent:c}=p.useContext(Lo),[f,o]=p.useState(u===null);let s;l[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{o(!1),window.location.reload()},l[0]=s):s=l[0];const h=s,[y,v]=p.useState(!0);let m;l[1]!==c?(m=P=>{const he=new Date;he.setDate(he.getDate()+30),localStorage.setItem("matomo_consent",JSON.stringify({consent:P,expiry:he})),c(P)},l[1]=c,l[2]=m):m=l[2];const b=m;let M;l[3]===Symbol.for("react.memo_cache_sentinel")?(M=j.jsx(ku.Header,{closeButton:!0,children:j.jsx(ku.Title,{children:"Privacy on this site"})}),l[3]=M):M=l[3];let S;l[4]===Symbol.for("react.memo_cache_sentinel")?(S=j.jsx("a",{href:"https://geant.org/Privacy-Notice/",children:"Privacy Policy"}),l[4]=S):S=l[4];let D;l[5]===Symbol.for("react.memo_cache_sentinel")?(D=j.jsxs("p",{children:["On our site we use Matomo to collect and process data about your visit to better understand how it is used. For more information, see our ",S,".",j.jsx("br",{}),"Below, you can choose to accept or decline to have this data collected."]}),l[5]=D):D=l[5];let N;l[6]!==y?(N=()=>v(!y),l[6]=y,l[7]=N):N=l[7];let q;l[8]!==y||l[9]!==N?(q=j.jsx(yr.Check,{type:"checkbox",label:"Analytics",checked:y,onChange:N}),l[8]=y,l[9]=N,l[10]=q):q=l[10];let V;l[11]===Symbol.for("react.memo_cache_sentinel")?(V=j.jsx(yr.Text,{className:"text-muted",children:"We collect information about your visit on the compendium site — this helps us understand how the site is used, and how we can improve it."}),l[11]=V):V=l[11];let U;l[12]!==q?(U=j.jsxs(ku.Body,{children:[D,j.jsx(yr,{children:j.jsxs(yr.Group,{className:"mb-3",children:[q,V]})})]}),l[12]=q,l[13]=U):U=l[13];let Z;l[14]!==b?(Z=j.jsx(Oo,{variant:"secondary",onClick:()=>{b(!1),h()},children:"Decline all"}),l[14]=b,l[15]=Z):Z=l[15];let K;l[16]!==y||l[17]!==b?(K=j.jsx(Oo,{variant:"primary",onClick:()=>{b(y),h()},children:"Save consent for 30 days"}),l[16]=y,l[17]=b,l[18]=K):K=l[18];let le;l[19]!==K||l[20]!==Z?(le=j.jsxs(ku.Footer,{children:[Z,K]}),l[19]=K,l[20]=Z,l[21]=le):le=l[21];let x;return l[22]!==f||l[23]!==le||l[24]!==U?(x=j.jsxs(ku,{show:f,centered:!0,children:[M,U,le]}),l[22]=f,l[23]=le,l[24]=U,l[25]=x):x=l[25],x};export{Qb as $,tS as A,kE as B,kl as C,LE as D,Wb as E,U1 as F,Pb as G,Yo as H,_E as I,Vl as J,Xy as K,Tr as L,Qy as M,Oo as N,Zb as O,B1 as P,aE as Q,ko as R,xo as S,L1 as T,G1 as U,yr as V,I1 as W,sv as X,Ar as Y,my as Z,Xb as _,Bt as a,Vb as a0,OE as a1,SE as a2,Gy as a3,il as a4,tl as a5,bo as a6,Ca as a7,al as a8,RE as a9,Yb as aa,Go as ab,J1 as ac,Ib as b,Ge as c,CE as d,qo as e,eS as f,Ly as g,kb as h,Ht as i,j,Kb as k,ta as l,nS as m,Jb as n,$b as o,Gb as p,Cy as q,p as r,ll as s,Zy as t,ct as u,AE as v,Fb as w,uy as x,Ur as y,xr as z};
diff --git a/compendium_v2/static/main-BfdqwKKW.js b/compendium_v2/static/main-BfdqwKKW.js
deleted file mode 100644
index c2b7160bd485cdcc7eb8232da8fa8fa3b5388e12..0000000000000000000000000000000000000000
--- a/compendium_v2/static/main-BfdqwKKW.js
+++ /dev/null
@@ -1,176 +0,0 @@
-var Qy=Object.defineProperty;var Zy=(e,t,r)=>t in e?Qy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Nv=(e,t,r)=>Zy(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))i(u);new MutationObserver(u=>{for(const s of u)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function r(u){const s={};return u.integrity&&(s.integrity=u.integrity),u.referrerPolicy&&(s.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?s.credentials="include":u.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(u){if(u.ep)return;u.ep=!0;const s=r(u);fetch(u.href,s)}})();var o5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function af(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ao={exports:{}},Mu={};/**
- * @license React
- * react-jsx-runtime.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var bv;function Jy(){if(bv)return Mu;bv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,u,s){var c=null;if(s!==void 0&&(c=""+s),u.key!==void 0&&(c=""+u.key),"key"in u){s={};for(var h in u)h!=="key"&&(s[h]=u[h])}else s=u;return u=s.ref,{$$typeof:e,type:i,key:c,ref:u!==void 0?u:null,props:s}}return Mu.Fragment=t,Mu.jsx=r,Mu.jsxs=r,Mu}var Fv;function e_(){return Fv||(Fv=1,Ao.exports=Jy()),Ao.exports}var ae=e_(),Ro={exports:{}},nt={};/**
- * @license React
- * react.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var Mv;function t_(){if(Mv)return nt;Mv=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),E=Symbol.iterator;function p(z){return z===null||typeof z!="object"?null:(z=E&&z[E]||z["@@iterator"],typeof z=="function"?z:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,y={};function w(z,me,L){this.props=z,this.context=me,this.refs=y,this.updater=L||g}w.prototype.isReactComponent={},w.prototype.setState=function(z,me){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,me,"setState")},w.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function D(){}D.prototype=w.prototype;function U(z,me,L){this.props=z,this.context=me,this.refs=y,this.updater=L||g}var B=U.prototype=new D;B.constructor=U,S(B,w.prototype),B.isPureReactComponent=!0;var X=Array.isArray,M={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function G(z,me,L,j,k,H){return L=H.ref,{$$typeof:e,type:z,key:me,ref:L!==void 0?L:null,props:H}}function Z(z,me){return G(z.type,me,void 0,void 0,void 0,z.props)}function I(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function ee(z){var me={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(L){return me[L]})}var ce=/\/+/g;function ve(z,me){return typeof z=="object"&&z!==null&&z.key!=null?ee(""+z.key):me.toString(36)}function Re(){}function Ke(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(Re,Re):(z.status="pending",z.then(function(me){z.status==="pending"&&(z.status="fulfilled",z.value=me)},function(me){z.status==="pending"&&(z.status="rejected",z.reason=me)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function Me(z,me,L,j,k){var H=typeof z;(H==="undefined"||H==="boolean")&&(z=null);var ie=!1;if(z===null)ie=!0;else switch(H){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(z.$$typeof){case e:case t:ie=!0;break;case x:return ie=z._init,Me(ie(z._payload),me,L,j,k)}}if(ie)return k=k(z),ie=j===""?"."+ve(z,0):j,X(k)?(L="",ie!=null&&(L=ie.replace(ce,"$&/")+"/"),Me(k,me,L,"",function(_e){return _e})):k!=null&&(I(k)&&(k=Z(k,L+(k.key==null||z&&z.key===k.key?"":(""+k.key).replace(ce,"$&/")+"/")+ie)),me.push(k)),1;ie=0;var Fe=j===""?".":j+":";if(X(z))for(var Ce=0;Ce<z.length;Ce++)j=z[Ce],H=Fe+ve(j,Ce),ie+=Me(j,me,L,H,k);else if(Ce=p(z),typeof Ce=="function")for(z=Ce.call(z),Ce=0;!(j=z.next()).done;)j=j.value,H=Fe+ve(j,Ce++),ie+=Me(j,me,L,H,k);else if(H==="object"){if(typeof z.then=="function")return Me(Ke(z),me,L,j,k);throw me=String(z),Error("Objects are not valid as a React child (found: "+(me==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":me)+"). If you meant to render a collection of children, use an array instead.")}return ie}function ye(z,me,L){if(z==null)return z;var j=[],k=0;return Me(z,j,"","",function(H){return me.call(L,H,k++)}),j}function Be(z){if(z._status===-1){var me=z._result;me=me(),me.then(function(L){(z._status===0||z._status===-1)&&(z._status=1,z._result=L)},function(L){(z._status===0||z._status===-1)&&(z._status=2,z._result=L)}),z._status===-1&&(z._status=0,z._result=me)}if(z._status===1)return z._result.default;throw z._result}var De=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var me=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(me))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)};function je(){}return nt.Children={map:ye,forEach:function(z,me,L){ye(z,function(){me.apply(this,arguments)},L)},count:function(z){var me=0;return ye(z,function(){me++}),me},toArray:function(z){return ye(z,function(me){return me})||[]},only:function(z){if(!I(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},nt.Component=w,nt.Fragment=r,nt.Profiler=u,nt.PureComponent=U,nt.StrictMode=i,nt.Suspense=m,nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,nt.act=function(){throw Error("act(...) is not supported in production builds of React.")},nt.cache=function(z){return function(){return z.apply(null,arguments)}},nt.cloneElement=function(z,me,L){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var j=S({},z.props),k=z.key,H=void 0;if(me!=null)for(ie in me.ref!==void 0&&(H=void 0),me.key!==void 0&&(k=""+me.key),me)!fe.call(me,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&me.ref===void 0||(j[ie]=me[ie]);var ie=arguments.length-2;if(ie===1)j.children=L;else if(1<ie){for(var Fe=Array(ie),Ce=0;Ce<ie;Ce++)Fe[Ce]=arguments[Ce+2];j.children=Fe}return G(z.type,k,void 0,void 0,H,j)},nt.createContext=function(z){return z={$$typeof:c,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:s,_context:z},z},nt.createElement=function(z,me,L){var j,k={},H=null;if(me!=null)for(j in me.key!==void 0&&(H=""+me.key),me)fe.call(me,j)&&j!=="key"&&j!=="__self"&&j!=="__source"&&(k[j]=me[j]);var ie=arguments.length-2;if(ie===1)k.children=L;else if(1<ie){for(var Fe=Array(ie),Ce=0;Ce<ie;Ce++)Fe[Ce]=arguments[Ce+2];k.children=Fe}if(z&&z.defaultProps)for(j in ie=z.defaultProps,ie)k[j]===void 0&&(k[j]=ie[j]);return G(z,H,void 0,void 0,null,k)},nt.createRef=function(){return{current:null}},nt.forwardRef=function(z){return{$$typeof:h,render:z}},nt.isValidElement=I,nt.lazy=function(z){return{$$typeof:x,_payload:{_status:-1,_result:z},_init:Be}},nt.memo=function(z,me){return{$$typeof:d,type:z,compare:me===void 0?null:me}},nt.startTransition=function(z){var me=M.T,L={};M.T=L;try{var j=z(),k=M.S;k!==null&&k(L,j),typeof j=="object"&&j!==null&&typeof j.then=="function"&&j.then(je,De)}catch(H){De(H)}finally{M.T=me}},nt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},nt.use=function(z){return M.H.use(z)},nt.useActionState=function(z,me,L){return M.H.useActionState(z,me,L)},nt.useCallback=function(z,me){return M.H.useCallback(z,me)},nt.useContext=function(z){return M.H.useContext(z)},nt.useDebugValue=function(){},nt.useDeferredValue=function(z,me){return M.H.useDeferredValue(z,me)},nt.useEffect=function(z,me){return M.H.useEffect(z,me)},nt.useId=function(){return M.H.useId()},nt.useImperativeHandle=function(z,me,L){return M.H.useImperativeHandle(z,me,L)},nt.useInsertionEffect=function(z,me){return M.H.useInsertionEffect(z,me)},nt.useLayoutEffect=function(z,me){return M.H.useLayoutEffect(z,me)},nt.useMemo=function(z,me){return M.H.useMemo(z,me)},nt.useOptimistic=function(z,me){return M.H.useOptimistic(z,me)},nt.useReducer=function(z,me,L){return M.H.useReducer(z,me,L)},nt.useRef=function(z){return M.H.useRef(z)},nt.useState=function(z){return M.H.useState(z)},nt.useSyncExternalStore=function(z,me,L){return M.H.useSyncExternalStore(z,me,L)},nt.useTransition=function(){return M.H.useTransition()},nt.version="19.0.0",nt}var Lv;function ic(){return Lv||(Lv=1,Ro.exports=t_()),Ro.exports}var N=ic();const Hr=af(N);var Co={exports:{}},Lu={},Oo={exports:{}},Do={};/**
- * @license React
- * scheduler.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var Bv;function r_(){return Bv||(Bv=1,function(e){function t(ye,Be){var De=ye.length;ye.push(Be);e:for(;0<De;){var je=De-1>>>1,z=ye[je];if(0<u(z,Be))ye[je]=Be,ye[De]=z,De=je;else break e}}function r(ye){return ye.length===0?null:ye[0]}function i(ye){if(ye.length===0)return null;var Be=ye[0],De=ye.pop();if(De!==Be){ye[0]=De;e:for(var je=0,z=ye.length,me=z>>>1;je<me;){var L=2*(je+1)-1,j=ye[L],k=L+1,H=ye[k];if(0>u(j,De))k<z&&0>u(H,j)?(ye[je]=H,ye[k]=De,je=k):(ye[je]=j,ye[L]=De,je=L);else if(k<z&&0>u(H,De))ye[je]=H,ye[k]=De,je=k;else break e}}return Be}function u(ye,Be){var De=ye.sortIndex-Be.sortIndex;return De!==0?De:ye.id-Be.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,h=c.now();e.unstable_now=function(){return c.now()-h}}var m=[],d=[],x=1,E=null,p=3,g=!1,S=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;function B(ye){for(var Be=r(d);Be!==null;){if(Be.callback===null)i(d);else if(Be.startTime<=ye)i(d),Be.sortIndex=Be.expirationTime,t(m,Be);else break;Be=r(d)}}function X(ye){if(y=!1,B(ye),!S)if(r(m)!==null)S=!0,Ke();else{var Be=r(d);Be!==null&&Me(X,Be.startTime-ye)}}var M=!1,fe=-1,G=5,Z=-1;function I(){return!(e.unstable_now()-Z<G)}function ee(){if(M){var ye=e.unstable_now();Z=ye;var Be=!0;try{e:{S=!1,y&&(y=!1,D(fe),fe=-1),g=!0;var De=p;try{t:{for(B(ye),E=r(m);E!==null&&!(E.expirationTime>ye&&I());){var je=E.callback;if(typeof je=="function"){E.callback=null,p=E.priorityLevel;var z=je(E.expirationTime<=ye);if(ye=e.unstable_now(),typeof z=="function"){E.callback=z,B(ye),Be=!0;break t}E===r(m)&&i(m),B(ye)}else i(m);E=r(m)}if(E!==null)Be=!0;else{var me=r(d);me!==null&&Me(X,me.startTime-ye),Be=!1}}break e}finally{E=null,p=De,g=!1}Be=void 0}}finally{Be?ce():M=!1}}}var ce;if(typeof U=="function")ce=function(){U(ee)};else if(typeof MessageChannel<"u"){var ve=new MessageChannel,Re=ve.port2;ve.port1.onmessage=ee,ce=function(){Re.postMessage(null)}}else ce=function(){w(ee,0)};function Ke(){M||(M=!0,ce())}function Me(ye,Be){fe=w(function(){ye(e.unstable_now())},Be)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(ye){ye.callback=null},e.unstable_continueExecution=function(){S||g||(S=!0,Ke())},e.unstable_forceFrameRate=function(ye){0>ye||125<ye?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<ye?Math.floor(1e3/ye):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return r(m)},e.unstable_next=function(ye){switch(p){case 1:case 2:case 3:var Be=3;break;default:Be=p}var De=p;p=Be;try{return ye()}finally{p=De}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(ye,Be){switch(ye){case 1:case 2:case 3:case 4:case 5:break;default:ye=3}var De=p;p=ye;try{return Be()}finally{p=De}},e.unstable_scheduleCallback=function(ye,Be,De){var je=e.unstable_now();switch(typeof De=="object"&&De!==null?(De=De.delay,De=typeof De=="number"&&0<De?je+De:je):De=je,ye){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=De+z,ye={id:x++,callback:Be,priorityLevel:ye,startTime:De,expirationTime:z,sortIndex:-1},De>je?(ye.sortIndex=De,t(d,ye),r(m)===null&&ye===r(d)&&(y?(D(fe),fe=-1):y=!0,Me(X,De-je))):(ye.sortIndex=z,t(m,ye),S||g||(S=!0,Ke())),ye},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(ye){var Be=p;return function(){var De=p;p=Be;try{return ye.apply(this,arguments)}finally{p=De}}}}(Do)),Do}var kv;function n_(){return kv||(kv=1,Oo.exports=r_()),Oo.exports}var No={exports:{}},Sr={};/**
- * @license React
- * react-dom.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var Uv;function a_(){if(Uv)return Sr;Uv=1;var e=ic();function t(m){var d="https://react.dev/errors/"+m;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)d+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+m+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function s(m,d,x){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:E==null?null:""+E,children:m,containerInfo:d,implementation:x}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,d){if(m==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Sr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Sr.createPortal=function(m,d){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return s(m,d,null,x)},Sr.flushSync=function(m){var d=c.T,x=i.p;try{if(c.T=null,i.p=2,m)return m()}finally{c.T=d,i.p=x,i.d.f()}},Sr.preconnect=function(m,d){typeof m=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,i.d.C(m,d))},Sr.prefetchDNS=function(m){typeof m=="string"&&i.d.D(m)},Sr.preinit=function(m,d){if(typeof m=="string"&&d&&typeof d.as=="string"){var x=d.as,E=h(x,d.crossOrigin),p=typeof d.integrity=="string"?d.integrity:void 0,g=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;x==="style"?i.d.S(m,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:E,integrity:p,fetchPriority:g}):x==="script"&&i.d.X(m,{crossOrigin:E,integrity:p,fetchPriority:g,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Sr.preinitModule=function(m,d){if(typeof m=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var x=h(d.as,d.crossOrigin);i.d.M(m,{crossOrigin:x,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&i.d.M(m)},Sr.preload=function(m,d){if(typeof m=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var x=d.as,E=h(x,d.crossOrigin);i.d.L(m,x,{crossOrigin:E,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Sr.preloadModule=function(m,d){if(typeof m=="string")if(d){var x=h(d.as,d.crossOrigin);i.d.m(m,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:x,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else i.d.m(m)},Sr.requestFormReset=function(m){i.d.r(m)},Sr.unstable_batchedUpdates=function(m,d){return m(d)},Sr.useFormState=function(m,d,x){return c.H.useFormState(m,d,x)},Sr.useFormStatus=function(){return c.H.useHostTransitionStatus()},Sr.version="19.0.0",Sr}var Pv;function vp(){if(Pv)return No.exports;Pv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),No.exports=a_(),No.exports}/**
- * @license React
- * react-dom-client.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var Hv;function i_(){if(Hv)return Lu;Hv=1;var e=n_(),t=ic(),r=vp();function i(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}var s=Symbol.for("react.element"),c=Symbol.for("react.transitional.element"),h=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),p=Symbol.for("react.consumer"),g=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),X=Symbol.for("react.memo_cache_sentinel"),M=Symbol.iterator;function fe(n){return n===null||typeof n!="object"?null:(n=M&&n[M]||n["@@iterator"],typeof n=="function"?n:null)}var G=Symbol.for("react.client.reference");function Z(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===G?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case m:return"Fragment";case h:return"Portal";case x:return"Profiler";case d:return"StrictMode";case y:return"Suspense";case w:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case g:return(n.displayName||"Context")+".Provider";case p:return(n._context.displayName||"Context")+".Consumer";case S:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case D:return a=n.displayName||null,a!==null?a:Z(n.type)||"Memo";case U:a=n._payload,n=n._init;try{return Z(n(a))}catch{}}return null}var I=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee=Object.assign,ce,ve;function Re(n){if(ce===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);ce=a&&a[1]||"",ve=-1<l.stack.indexOf(`
-    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
-`+ce+n+ve}var Ke=!1;function Me(n,a){if(!n||Ke)return"";Ke=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var f={DetermineComponentFrameRoot:function(){try{if(a){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(he){var le=he}Reflect.construct(n,[],Se)}else{try{Se.call()}catch(he){le=he}n.call(Se.prototype)}}else{try{throw Error()}catch(he){le=he}(Se=n())&&typeof Se.catch=="function"&&Se.catch(function(){})}}catch(he){if(he&&le&&typeof he.stack=="string")return[he.stack,le.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=f.DetermineComponentFrameRoot(),_=v[0],R=v[1];if(_&&R){var P=_.split(`
-`),W=R.split(`
-`);for(o=f=0;f<P.length&&!P[f].includes("DetermineComponentFrameRoot");)f++;for(;o<W.length&&!W[o].includes("DetermineComponentFrameRoot");)o++;if(f===P.length||o===W.length)for(f=P.length-1,o=W.length-1;1<=f&&0<=o&&P[f]!==W[o];)o--;for(;1<=f&&0<=o;f--,o--)if(P[f]!==W[o]){if(f!==1||o!==1)do if(f--,o--,0>o||P[f]!==W[o]){var de=`
-`+P[f].replace(" at new "," at ");return n.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",n.displayName)),de}while(1<=f&&0<=o);break}}}finally{Ke=!1,Error.prepareStackTrace=l}return(l=n?n.displayName||n.name:"")?Re(l):""}function ye(n){switch(n.tag){case 26:case 27:case 5:return Re(n.type);case 16:return Re("Lazy");case 13:return Re("Suspense");case 19:return Re("SuspenseList");case 0:case 15:return n=Me(n.type,!1),n;case 11:return n=Me(n.type.render,!1),n;case 1:return n=Me(n.type,!0),n;default:return""}}function Be(n){try{var a="";do a+=ye(n),n=n.return;while(n);return a}catch(l){return`
-Error generating stack: `+l.message+`
-`+l.stack}}function De(n){var a=n,l=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,a.flags&4098&&(l=a.return),n=a.return;while(n)}return a.tag===3?l:null}function je(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function z(n){if(De(n)!==n)throw Error(i(188))}function me(n){var a=n.alternate;if(!a){if(a=De(n),a===null)throw Error(i(188));return a!==n?null:n}for(var l=n,f=a;;){var o=l.return;if(o===null)break;var v=o.alternate;if(v===null){if(f=o.return,f!==null){l=f;continue}break}if(o.child===v.child){for(v=o.child;v;){if(v===l)return z(o),n;if(v===f)return z(o),a;v=v.sibling}throw Error(i(188))}if(l.return!==f.return)l=o,f=v;else{for(var _=!1,R=o.child;R;){if(R===l){_=!0,l=o,f=v;break}if(R===f){_=!0,f=o,l=v;break}R=R.sibling}if(!_){for(R=v.child;R;){if(R===l){_=!0,l=v,f=o;break}if(R===f){_=!0,f=v,l=o;break}R=R.sibling}if(!_)throw Error(i(189))}}if(l.alternate!==f)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?n:a}function L(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=L(n),a!==null)return a;n=n.sibling}return null}var j=Array.isArray,k=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H={pending:!1,data:null,method:null,action:null},ie=[],Fe=-1;function Ce(n){return{current:n}}function _e(n){0>Fe||(n.current=ie[Fe],ie[Fe]=null,Fe--)}function xe(n,a){Fe++,ie[Fe]=n.current,n.current=a}var Je=Ce(null),$e=Ce(null),lt=Ce(null),et=Ce(null);function rt(n,a){switch(xe(lt,a),xe($e,n),xe(Je,null),n=a.nodeType,n){case 9:case 11:a=(a=a.documentElement)&&(a=a.namespaceURI)?iv(a):0;break;default:if(n=n===8?a.parentNode:a,a=n.tagName,n=n.namespaceURI)n=iv(n),a=lv(n,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}_e(Je),xe(Je,a)}function ft(){_e(Je),_e($e),_e(lt)}function ke(n){n.memoizedState!==null&&xe(et,n);var a=Je.current,l=lv(a,n.type);a!==l&&(xe($e,n),xe(Je,l))}function It(n){$e.current===n&&(_e(Je),_e($e)),et.current===n&&(_e(et),Ou._currentValue=H)}var sr=Object.prototype.hasOwnProperty,Cr=e.unstable_scheduleCallback,Gt=e.unstable_cancelCallback,rn=e.unstable_shouldYield,Mn=e.unstable_requestPaint,Tt=e.unstable_now,cr=e.unstable_getCurrentPriorityLevel,Ze=e.unstable_ImmediatePriority,_r=e.unstable_UserBlockingPriority,$t=e.unstable_NormalPriority,Il=e.unstable_LowPriority,Br=e.unstable_IdlePriority,Ja=e.log,ei=e.unstable_setDisableYieldValue,yn=null,er=null;function ti(n){if(er&&typeof er.onCommitFiberRoot=="function")try{er.onCommitFiberRoot(yn,n,void 0,(n.current.flags&128)===128)}catch{}}function Or(n){if(typeof Ja=="function"&&ei(n),er&&typeof er.setStrictMode=="function")try{er.setStrictMode(yn,n)}catch{}}var tr=Math.clz32?Math.clz32:ri,ga=Math.log,Ii=Math.LN2;function ri(n){return n>>>=0,n===0?32:31-(ga(n)/Ii|0)|0}var Ea=128,Vn=4194304;function or(n){var a=n&42;if(a!==0)return a;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function _n(n,a){var l=n.pendingLanes;if(l===0)return 0;var f=0,o=n.suspendedLanes,v=n.pingedLanes,_=n.warmLanes;n=n.finishedLanes!==0;var R=l&134217727;return R!==0?(l=R&~o,l!==0?f=or(l):(v&=R,v!==0?f=or(v):n||(_=R&~_,_!==0&&(f=or(_))))):(R=l&~o,R!==0?f=or(R):v!==0?f=or(v):n||(_=l&~_,_!==0&&(f=or(_)))),f===0?0:a!==0&&a!==f&&!(a&o)&&(o=f&-f,_=a&-a,o>=_||o===32&&(_&4194176)!==0)?a:f}function Xn(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function zl(n,a){switch(n){case 1:case 2:case 4:case 8:return a+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function V(){var n=Ea;return Ea<<=1,!(Ea&4194176)&&(Ea=128),n}function Q(){var n=Vn;return Vn<<=1,!(Vn&62914560)&&(Vn=4194304),n}function se(n){for(var a=[],l=0;31>l;l++)a.push(n);return a}function Te(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Ue(n,a,l,f,o,v){var _=n.pendingLanes;n.pendingLanes=l,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=l,n.entangledLanes&=l,n.errorRecoveryDisabledLanes&=l,n.shellSuspendCounter=0;var R=n.entanglements,P=n.expirationTimes,W=n.hiddenUpdates;for(l=_&~l;0<l;){var de=31-tr(l),Se=1<<de;R[de]=0,P[de]=-1;var le=W[de];if(le!==null)for(W[de]=null,de=0;de<le.length;de++){var he=le[de];he!==null&&(he.lane&=-536870913)}l&=~Se}f!==0&&ze(n,f,0),v!==0&&o===0&&n.tag!==0&&(n.suspendedLanes|=v&~(_&~a))}function ze(n,a,l){n.pendingLanes|=a,n.suspendedLanes&=~a;var f=31-tr(a);n.entangledLanes|=a,n.entanglements[f]=n.entanglements[f]|1073741824|l&4194218}function We(n,a){var l=n.entangledLanes|=a;for(n=n.entanglements;l;){var f=31-tr(l),o=1<<f;o&a|n[f]&a&&(n[f]|=a),l&=~o}}function Pe(n){return n&=-n,2<n?8<n?n&134217727?32:268435456:8:2}function Ie(){var n=k.p;return n!==0?n:(n=window.event,n===void 0?32:wv(n.type))}function T(n,a){var l=k.p;try{return k.p=n,a()}finally{k.p=l}}var O=Math.random().toString(36).slice(2),A="__reactFiber$"+O,C="__reactProps$"+O,b="__reactContainer$"+O,F="__reactEvents$"+O,q="__reactListeners$"+O,ue="__reactHandles$"+O,J="__reactResources$"+O,te="__reactMarker$"+O;function re(n){delete n[A],delete n[C],delete n[F],delete n[q],delete n[ue]}function pe(n){var a=n[A];if(a)return a;for(var l=n.parentNode;l;){if(a=l[b]||l[A]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(n=sv(n);n!==null;){if(l=n[A])return l;n=sv(n)}return a}n=l,l=n.parentNode}return null}function Oe(n){if(n=n[A]||n[b]){var a=n.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return n}return null}function Le(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(i(33))}function we(n){var a=n[J];return a||(a=n[J]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Ae(n){n[te]=!0}var Ye=new Set,Xe={};function Qe(n,a){St(n,a),St(n+"Capture",a)}function St(n,a){for(Xe[n]=a,n=0;n<a.length;n++)Ye.add(a[n])}var zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wt=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Dr={},Gr={};function ni(n){return sr.call(Gr,n)?!0:sr.call(Dr,n)?!1:wt.test(n)?Gr[n]=!0:(Dr[n]=!0,!1)}function kr(n,a,l){if(ni(a))if(l===null)n.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var f=a.toLowerCase().slice(0,5);if(f!=="data-"&&f!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+l)}}function vf(n,a,l){if(l===null)n.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+l)}}function Yn(n,a,l,f){if(f===null)n.removeAttribute(l);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(l);return}n.setAttributeNS(a,l,""+f)}}function nn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function fd(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Y2(n){var a=fd(n)?"checked":"value",l=Object.getOwnPropertyDescriptor(n.constructor.prototype,a),f=""+n[a];if(!n.hasOwnProperty(a)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,v=l.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return o.call(this)},set:function(_){f=""+_,v.call(this,_)}}),Object.defineProperty(n,a,{enumerable:l.enumerable}),{getValue:function(){return f},setValue:function(_){f=""+_},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function xf(n){n._valueTracker||(n._valueTracker=Y2(n))}function sd(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var l=a.getValue(),f="";return n&&(f=fd(n)?n.checked?"true":"false":n.value),n=f,n!==l?(a.setValue(n),!0):!1}function pf(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var W2=/[\n"\\]/g;function an(n){return n.replace(W2,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Tc(n,a,l,f,o,v,_,R){n.name="",_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?n.type=_:n.removeAttribute("type"),a!=null?_==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+nn(a)):n.value!==""+nn(a)&&(n.value=""+nn(a)):_!=="submit"&&_!=="reset"||n.removeAttribute("value"),a!=null?Sc(n,_,nn(a)):l!=null?Sc(n,_,nn(l)):f!=null&&n.removeAttribute("value"),o==null&&v!=null&&(n.defaultChecked=!!v),o!=null&&(n.checked=o&&typeof o!="function"&&typeof o!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?n.name=""+nn(R):n.removeAttribute("name")}function cd(n,a,l,f,o,v,_,R){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.type=v),a!=null||l!=null){if(!(v!=="submit"&&v!=="reset"||a!=null))return;l=l!=null?""+nn(l):"",a=a!=null?""+nn(a):l,R||a===n.value||(n.value=a),n.defaultValue=a}f=f??o,f=typeof f!="function"&&typeof f!="symbol"&&!!f,n.checked=R?n.checked:!!f,n.defaultChecked=!!f,_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(n.name=_)}function Sc(n,a,l){a==="number"&&pf(n.ownerDocument)===n||n.defaultValue===""+l||(n.defaultValue=""+l)}function zi(n,a,l,f){if(n=n.options,a){a={};for(var o=0;o<l.length;o++)a["$"+l[o]]=!0;for(l=0;l<n.length;l++)o=a.hasOwnProperty("$"+n[l].value),n[l].selected!==o&&(n[l].selected=o),o&&f&&(n[l].defaultSelected=!0)}else{for(l=""+nn(l),a=null,o=0;o<n.length;o++){if(n[o].value===l){n[o].selected=!0,f&&(n[o].defaultSelected=!0);return}a!==null||n[o].disabled||(a=n[o])}a!==null&&(a.selected=!0)}}function od(n,a,l){if(a!=null&&(a=""+nn(a),a!==n.value&&(n.value=a),l==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=l!=null?""+nn(l):""}function hd(n,a,l,f){if(a==null){if(f!=null){if(l!=null)throw Error(i(92));if(j(f)){if(1<f.length)throw Error(i(93));f=f[0]}l=f}l==null&&(l=""),a=l}l=nn(a),n.defaultValue=l,f=n.textContent,f===l&&f!==""&&f!==null&&(n.value=f)}function ji(n,a){if(a){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=a;return}}n.textContent=a}var q2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function dd(n,a,l){var f=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?f?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":f?n.setProperty(a,l):typeof l!="number"||l===0||q2.has(a)?a==="float"?n.cssFloat=l:n[a]=(""+l).trim():n[a]=l+"px"}function md(n,a,l){if(a!=null&&typeof a!="object")throw Error(i(62));if(n=n.style,l!=null){for(var f in l)!l.hasOwnProperty(f)||a!=null&&a.hasOwnProperty(f)||(f.indexOf("--")===0?n.setProperty(f,""):f==="float"?n.cssFloat="":n[f]="");for(var o in a)f=a[o],a.hasOwnProperty(o)&&l[o]!==f&&dd(n,o,f)}else for(var v in a)a.hasOwnProperty(v)&&dd(n,v,a[v])}function wc(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var K2=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),$2=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function gf(n){return $2.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var Ac=null;function Rc(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Gi=null,Vi=null;function vd(n){var a=Oe(n);if(a&&(n=a.stateNode)){var l=n[C]||null;e:switch(n=a.stateNode,a.type){case"input":if(Tc(n,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+an(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var f=l[a];if(f!==n&&f.form===n.form){var o=f[C]||null;if(!o)throw Error(i(90));Tc(f,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(a=0;a<l.length;a++)f=l[a],f.form===n.form&&sd(f)}break e;case"textarea":od(n,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&zi(n,!!l.multiple,a,!1)}}}var Cc=!1;function xd(n,a,l){if(Cc)return n(a,l);Cc=!0;try{var f=n(a);return f}finally{if(Cc=!1,(Gi!==null||Vi!==null)&&(ts(),Gi&&(a=Gi,n=Vi,Vi=Gi=null,vd(a),n)))for(a=0;a<n.length;a++)vd(n[a])}}function jl(n,a){var l=n.stateNode;if(l===null)return null;var f=l[C]||null;if(f===null)return null;l=f[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(n=n.type,f=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!f;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(i(231,a,typeof l));return l}var Oc=!1;if(zt)try{var Gl={};Object.defineProperty(Gl,"passive",{get:function(){Oc=!0}}),window.addEventListener("test",Gl,Gl),window.removeEventListener("test",Gl,Gl)}catch{Oc=!1}var ya=null,Dc=null,Ef=null;function pd(){if(Ef)return Ef;var n,a=Dc,l=a.length,f,o="value"in ya?ya.value:ya.textContent,v=o.length;for(n=0;n<l&&a[n]===o[n];n++);var _=l-n;for(f=1;f<=_&&a[l-f]===o[v-f];f++);return Ef=o.slice(n,1<f?1-f:void 0)}function yf(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function _f(){return!0}function gd(){return!1}function Ur(n){function a(l,f,o,v,_){this._reactName=l,this._targetInst=o,this.type=f,this.nativeEvent=v,this.target=_,this.currentTarget=null;for(var R in n)n.hasOwnProperty(R)&&(l=n[R],this[R]=l?l(v):v[R]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?_f:gd,this.isPropagationStopped=gd,this}return ee(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=_f)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=_f)},persist:function(){},isPersistent:_f}),a}var ai={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tf=Ur(ai),Vl=ee({},ai,{view:0,detail:0}),Q2=Ur(Vl),Nc,bc,Xl,Sf=ee({},Vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mc,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Xl&&(Xl&&n.type==="mousemove"?(Nc=n.screenX-Xl.screenX,bc=n.screenY-Xl.screenY):bc=Nc=0,Xl=n),Nc)},movementY:function(n){return"movementY"in n?n.movementY:bc}}),Ed=Ur(Sf),Z2=ee({},Sf,{dataTransfer:0}),J2=Ur(Z2),eE=ee({},Vl,{relatedTarget:0}),Fc=Ur(eE),tE=ee({},ai,{animationName:0,elapsedTime:0,pseudoElement:0}),rE=Ur(tE),nE=ee({},ai,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),aE=Ur(nE),iE=ee({},ai,{data:0}),yd=Ur(iE),lE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uE={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sE(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=fE[n])?!!a[n]:!1}function Mc(){return sE}var cE=ee({},Vl,{key:function(n){if(n.key){var a=lE[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=yf(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?uE[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mc,charCode:function(n){return n.type==="keypress"?yf(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?yf(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),oE=Ur(cE),hE=ee({},Sf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_d=Ur(hE),dE=ee({},Vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mc}),mE=Ur(dE),vE=ee({},ai,{propertyName:0,elapsedTime:0,pseudoElement:0}),xE=Ur(vE),pE=ee({},Sf,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),gE=Ur(pE),EE=ee({},ai,{newState:0,oldState:0}),yE=Ur(EE),_E=[9,13,27,32],Lc=zt&&"CompositionEvent"in window,Yl=null;zt&&"documentMode"in document&&(Yl=document.documentMode);var TE=zt&&"TextEvent"in window&&!Yl,Td=zt&&(!Lc||Yl&&8<Yl&&11>=Yl),Sd=" ",wd=!1;function Ad(n,a){switch(n){case"keyup":return _E.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rd(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Xi=!1;function SE(n,a){switch(n){case"compositionend":return Rd(a);case"keypress":return a.which!==32?null:(wd=!0,Sd);case"textInput":return n=a.data,n===Sd&&wd?null:n;default:return null}}function wE(n,a){if(Xi)return n==="compositionend"||!Lc&&Ad(n,a)?(n=pd(),Ef=Dc=ya=null,Xi=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Td&&a.locale!=="ko"?null:a.data;default:return null}}var AE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Cd(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!AE[n.type]:a==="textarea"}function Od(n,a,l,f){Gi?Vi?Vi.push(f):Vi=[f]:Gi=f,a=ls(a,"onChange"),0<a.length&&(l=new Tf("onChange","change",null,l,f),n.push({event:l,listeners:a}))}var Wl=null,ql=null;function RE(n){ev(n,0)}function wf(n){var a=Le(n);if(sd(a))return n}function Dd(n,a){if(n==="change")return a}var Nd=!1;if(zt){var Bc;if(zt){var kc="oninput"in document;if(!kc){var bd=document.createElement("div");bd.setAttribute("oninput","return;"),kc=typeof bd.oninput=="function"}Bc=kc}else Bc=!1;Nd=Bc&&(!document.documentMode||9<document.documentMode)}function Fd(){Wl&&(Wl.detachEvent("onpropertychange",Md),ql=Wl=null)}function Md(n){if(n.propertyName==="value"&&wf(ql)){var a=[];Od(a,ql,n,Rc(n)),xd(RE,a)}}function CE(n,a,l){n==="focusin"?(Fd(),Wl=a,ql=l,Wl.attachEvent("onpropertychange",Md)):n==="focusout"&&Fd()}function OE(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return wf(ql)}function DE(n,a){if(n==="click")return wf(a)}function NE(n,a){if(n==="input"||n==="change")return wf(a)}function bE(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Vr=typeof Object.is=="function"?Object.is:bE;function Kl(n,a){if(Vr(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var l=Object.keys(n),f=Object.keys(a);if(l.length!==f.length)return!1;for(f=0;f<l.length;f++){var o=l[f];if(!sr.call(a,o)||!Vr(n[o],a[o]))return!1}return!0}function Ld(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Bd(n,a){var l=Ld(n);n=0;for(var f;l;){if(l.nodeType===3){if(f=n+l.textContent.length,n<=a&&f>=a)return{node:l,offset:a-n};n=f}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Ld(l)}}function kd(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?kd(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Ud(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=pf(n.document);a instanceof n.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)n=a.contentWindow;else break;a=pf(n.document)}return a}function Uc(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}function FE(n,a){var l=Ud(a);a=n.focusedElem;var f=n.selectionRange;if(l!==a&&a&&a.ownerDocument&&kd(a.ownerDocument.documentElement,a)){if(f!==null&&Uc(a)){if(n=f.start,l=f.end,l===void 0&&(l=n),"selectionStart"in a)a.selectionStart=n,a.selectionEnd=Math.min(l,a.value.length);else if(l=(n=a.ownerDocument||document)&&n.defaultView||window,l.getSelection){l=l.getSelection();var o=a.textContent.length,v=Math.min(f.start,o);f=f.end===void 0?v:Math.min(f.end,o),!l.extend&&v>f&&(o=f,f=v,v=o),o=Bd(a,v);var _=Bd(a,f);o&&_&&(l.rangeCount!==1||l.anchorNode!==o.node||l.anchorOffset!==o.offset||l.focusNode!==_.node||l.focusOffset!==_.offset)&&(n=n.createRange(),n.setStart(o.node,o.offset),l.removeAllRanges(),v>f?(l.addRange(n),l.extend(_.node,_.offset)):(n.setEnd(_.node,_.offset),l.addRange(n)))}}for(n=[],l=a;l=l.parentNode;)l.nodeType===1&&n.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<n.length;a++)l=n[a],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}var ME=zt&&"documentMode"in document&&11>=document.documentMode,Yi=null,Pc=null,$l=null,Hc=!1;function Pd(n,a,l){var f=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Hc||Yi==null||Yi!==pf(f)||(f=Yi,"selectionStart"in f&&Uc(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),$l&&Kl($l,f)||($l=f,f=ls(Pc,"onSelect"),0<f.length&&(a=new Tf("onSelect","select",null,a,l),n.push({event:a,listeners:f}),a.target=Yi)))}function ii(n,a){var l={};return l[n.toLowerCase()]=a.toLowerCase(),l["Webkit"+n]="webkit"+a,l["Moz"+n]="moz"+a,l}var Wi={animationend:ii("Animation","AnimationEnd"),animationiteration:ii("Animation","AnimationIteration"),animationstart:ii("Animation","AnimationStart"),transitionrun:ii("Transition","TransitionRun"),transitionstart:ii("Transition","TransitionStart"),transitioncancel:ii("Transition","TransitionCancel"),transitionend:ii("Transition","TransitionEnd")},Ic={},Hd={};zt&&(Hd=document.createElement("div").style,"AnimationEvent"in window||(delete Wi.animationend.animation,delete Wi.animationiteration.animation,delete Wi.animationstart.animation),"TransitionEvent"in window||delete Wi.transitionend.transition);function li(n){if(Ic[n])return Ic[n];if(!Wi[n])return n;var a=Wi[n],l;for(l in a)if(a.hasOwnProperty(l)&&l in Hd)return Ic[n]=a[l];return n}var Id=li("animationend"),zd=li("animationiteration"),jd=li("animationstart"),LE=li("transitionrun"),BE=li("transitionstart"),kE=li("transitioncancel"),Gd=li("transitionend"),Vd=new Map,Xd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function Tn(n,a){Vd.set(n,a),Qe(a,[n])}var ln=[],qi=0,zc=0;function Af(){for(var n=qi,a=zc=qi=0;a<n;){var l=ln[a];ln[a++]=null;var f=ln[a];ln[a++]=null;var o=ln[a];ln[a++]=null;var v=ln[a];if(ln[a++]=null,f!==null&&o!==null){var _=f.pending;_===null?o.next=o:(o.next=_.next,_.next=o),f.pending=o}v!==0&&Yd(l,o,v)}}function Rf(n,a,l,f){ln[qi++]=n,ln[qi++]=a,ln[qi++]=l,ln[qi++]=f,zc|=f,n.lanes|=f,n=n.alternate,n!==null&&(n.lanes|=f)}function jc(n,a,l,f){return Rf(n,a,l,f),Cf(n)}function _a(n,a){return Rf(n,null,null,a),Cf(n)}function Yd(n,a,l){n.lanes|=l;var f=n.alternate;f!==null&&(f.lanes|=l);for(var o=!1,v=n.return;v!==null;)v.childLanes|=l,f=v.alternate,f!==null&&(f.childLanes|=l),v.tag===22&&(n=v.stateNode,n===null||n._visibility&1||(o=!0)),n=v,v=v.return;o&&a!==null&&n.tag===3&&(v=n.stateNode,o=31-tr(l),v=v.hiddenUpdates,n=v[o],n===null?v[o]=[a]:n.push(a),a.lane=l|536870912)}function Cf(n){if(50<_u)throw _u=0,q0=null,Error(i(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Ki={},Wd=new WeakMap;function un(n,a){if(typeof n=="object"&&n!==null){var l=Wd.get(n);return l!==void 0?l:(a={value:n,source:a,stack:Be(a)},Wd.set(n,a),a)}return{value:n,source:a,stack:Be(a)}}var $i=[],Qi=0,Of=null,Df=0,fn=[],sn=0,ui=null,Wn=1,qn="";function fi(n,a){$i[Qi++]=Df,$i[Qi++]=Of,Of=n,Df=a}function qd(n,a,l){fn[sn++]=Wn,fn[sn++]=qn,fn[sn++]=ui,ui=n;var f=Wn;n=qn;var o=32-tr(f)-1;f&=~(1<<o),l+=1;var v=32-tr(a)+o;if(30<v){var _=o-o%5;v=(f&(1<<_)-1).toString(32),f>>=_,o-=_,Wn=1<<32-tr(a)+o|l<<o|f,qn=v+n}else Wn=1<<v|l<<o|f,qn=n}function Gc(n){n.return!==null&&(fi(n,1),qd(n,1,0))}function Vc(n){for(;n===Of;)Of=$i[--Qi],$i[Qi]=null,Df=$i[--Qi],$i[Qi]=null;for(;n===ui;)ui=fn[--sn],fn[sn]=null,qn=fn[--sn],fn[sn]=null,Wn=fn[--sn],fn[sn]=null}var Nr=null,hr=null,dt=!1,Sn=null,Ln=!1,Xc=Error(i(519));function si(n){var a=Error(i(418,""));throw Jl(un(a,n)),Xc}function Kd(n){var a=n.stateNode,l=n.type,f=n.memoizedProps;switch(a[A]=n,a[C]=f,l){case"dialog":ct("cancel",a),ct("close",a);break;case"iframe":case"object":case"embed":ct("load",a);break;case"video":case"audio":for(l=0;l<Su.length;l++)ct(Su[l],a);break;case"source":ct("error",a);break;case"img":case"image":case"link":ct("error",a),ct("load",a);break;case"details":ct("toggle",a);break;case"input":ct("invalid",a),cd(a,f.value,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name,!0),xf(a);break;case"select":ct("invalid",a);break;case"textarea":ct("invalid",a),hd(a,f.value,f.defaultValue,f.children),xf(a)}l=f.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||f.suppressHydrationWarning===!0||av(a.textContent,l)?(f.popover!=null&&(ct("beforetoggle",a),ct("toggle",a)),f.onScroll!=null&&ct("scroll",a),f.onScrollEnd!=null&&ct("scrollend",a),f.onClick!=null&&(a.onclick=us),a=!0):a=!1,a||si(n)}function $d(n){for(Nr=n.return;Nr;)switch(Nr.tag){case 3:case 27:Ln=!0;return;case 5:case 13:Ln=!1;return;default:Nr=Nr.return}}function Ql(n){if(n!==Nr)return!1;if(!dt)return $d(n),dt=!0,!1;var a=!1,l;if((l=n.tag!==3&&n.tag!==27)&&((l=n.tag===5)&&(l=n.type,l=!(l!=="form"&&l!=="button")||oo(n.type,n.memoizedProps)),l=!l),l&&(a=!0),a&&hr&&si(n),$d(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));e:{for(n=n.nextSibling,a=0;n;){if(n.nodeType===8)if(l=n.data,l==="/$"){if(a===0){hr=An(n.nextSibling);break e}a--}else l!=="$"&&l!=="$!"&&l!=="$?"||a++;n=n.nextSibling}hr=null}}else hr=Nr?An(n.stateNode.nextSibling):null;return!0}function Zl(){hr=Nr=null,dt=!1}function Jl(n){Sn===null?Sn=[n]:Sn.push(n)}var eu=Error(i(460)),Qd=Error(i(474)),Yc={then:function(){}};function Zd(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Nf(){}function Jd(n,a,l){switch(l=n[l],l===void 0?n.push(a):l!==a&&(a.then(Nf,Nf),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,n===eu?Error(i(483)):n;default:if(typeof a.status=="string")a.then(Nf,Nf);else{if(n=Dt,n!==null&&100<n.shellSuspendCounter)throw Error(i(482));n=a,n.status="pending",n.then(function(f){if(a.status==="pending"){var o=a;o.status="fulfilled",o.value=f}},function(f){if(a.status==="pending"){var o=a;o.status="rejected",o.reason=f}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,n===eu?Error(i(483)):n}throw tu=a,eu}}var tu=null;function e1(){if(tu===null)throw Error(i(459));var n=tu;return tu=null,n}var Zi=null,ru=0;function bf(n){var a=ru;return ru+=1,Zi===null&&(Zi=[]),Jd(Zi,n,a)}function nu(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Ff(n,a){throw a.$$typeof===s?Error(i(525)):(n=Object.prototype.toString.call(a),Error(i(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function t1(n){var a=n._init;return a(n._payload)}function r1(n){function a(K,Y){if(n){var ne=K.deletions;ne===null?(K.deletions=[Y],K.flags|=16):ne.push(Y)}}function l(K,Y){if(!n)return null;for(;Y!==null;)a(K,Y),Y=Y.sibling;return null}function f(K){for(var Y=new Map;K!==null;)K.key!==null?Y.set(K.key,K):Y.set(K.index,K),K=K.sibling;return Y}function o(K,Y){return K=Ma(K,Y),K.index=0,K.sibling=null,K}function v(K,Y,ne){return K.index=ne,n?(ne=K.alternate,ne!==null?(ne=ne.index,ne<Y?(K.flags|=33554434,Y):ne):(K.flags|=33554434,Y)):(K.flags|=1048576,Y)}function _(K){return n&&K.alternate===null&&(K.flags|=33554434),K}function R(K,Y,ne,ge){return Y===null||Y.tag!==6?(Y=I0(ne,K.mode,ge),Y.return=K,Y):(Y=o(Y,ne),Y.return=K,Y)}function P(K,Y,ne,ge){var He=ne.type;return He===m?de(K,Y,ne.props.children,ge,ne.key):Y!==null&&(Y.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===U&&t1(He)===Y.type)?(Y=o(Y,ne.props),nu(Y,ne),Y.return=K,Y):(Y=$f(ne.type,ne.key,ne.props,null,K.mode,ge),nu(Y,ne),Y.return=K,Y)}function W(K,Y,ne,ge){return Y===null||Y.tag!==4||Y.stateNode.containerInfo!==ne.containerInfo||Y.stateNode.implementation!==ne.implementation?(Y=z0(ne,K.mode,ge),Y.return=K,Y):(Y=o(Y,ne.children||[]),Y.return=K,Y)}function de(K,Y,ne,ge,He){return Y===null||Y.tag!==7?(Y=Ei(ne,K.mode,ge,He),Y.return=K,Y):(Y=o(Y,ne),Y.return=K,Y)}function Se(K,Y,ne){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Y=I0(""+Y,K.mode,ne),Y.return=K,Y;if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case c:return ne=$f(Y.type,Y.key,Y.props,null,K.mode,ne),nu(ne,Y),ne.return=K,ne;case h:return Y=z0(Y,K.mode,ne),Y.return=K,Y;case U:var ge=Y._init;return Y=ge(Y._payload),Se(K,Y,ne)}if(j(Y)||fe(Y))return Y=Ei(Y,K.mode,ne,null),Y.return=K,Y;if(typeof Y.then=="function")return Se(K,bf(Y),ne);if(Y.$$typeof===g)return Se(K,Wf(K,Y),ne);Ff(K,Y)}return null}function le(K,Y,ne,ge){var He=Y!==null?Y.key:null;if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return He!==null?null:R(K,Y,""+ne,ge);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case c:return ne.key===He?P(K,Y,ne,ge):null;case h:return ne.key===He?W(K,Y,ne,ge):null;case U:return He=ne._init,ne=He(ne._payload),le(K,Y,ne,ge)}if(j(ne)||fe(ne))return He!==null?null:de(K,Y,ne,ge,null);if(typeof ne.then=="function")return le(K,Y,bf(ne),ge);if(ne.$$typeof===g)return le(K,Y,Wf(K,ne),ge);Ff(K,ne)}return null}function he(K,Y,ne,ge,He){if(typeof ge=="string"&&ge!==""||typeof ge=="number"||typeof ge=="bigint")return K=K.get(ne)||null,R(Y,K,""+ge,He);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case c:return K=K.get(ge.key===null?ne:ge.key)||null,P(Y,K,ge,He);case h:return K=K.get(ge.key===null?ne:ge.key)||null,W(Y,K,ge,He);case U:var ut=ge._init;return ge=ut(ge._payload),he(K,Y,ne,ge,He)}if(j(ge)||fe(ge))return K=K.get(ne)||null,de(Y,K,ge,He,null);if(typeof ge.then=="function")return he(K,Y,ne,bf(ge),He);if(ge.$$typeof===g)return he(K,Y,ne,Wf(Y,ge),He);Ff(Y,ge)}return null}function Ge(K,Y,ne,ge){for(var He=null,ut=null,Ve=Y,qe=Y=0,ar=null;Ve!==null&&qe<ne.length;qe++){Ve.index>qe?(ar=Ve,Ve=null):ar=Ve.sibling;var mt=le(K,Ve,ne[qe],ge);if(mt===null){Ve===null&&(Ve=ar);break}n&&Ve&&mt.alternate===null&&a(K,Ve),Y=v(mt,Y,qe),ut===null?He=mt:ut.sibling=mt,ut=mt,Ve=ar}if(qe===ne.length)return l(K,Ve),dt&&fi(K,qe),He;if(Ve===null){for(;qe<ne.length;qe++)Ve=Se(K,ne[qe],ge),Ve!==null&&(Y=v(Ve,Y,qe),ut===null?He=Ve:ut.sibling=Ve,ut=Ve);return dt&&fi(K,qe),He}for(Ve=f(Ve);qe<ne.length;qe++)ar=he(Ve,K,qe,ne[qe],ge),ar!==null&&(n&&ar.alternate!==null&&Ve.delete(ar.key===null?qe:ar.key),Y=v(ar,Y,qe),ut===null?He=ar:ut.sibling=ar,ut=ar);return n&&Ve.forEach(function(Ia){return a(K,Ia)}),dt&&fi(K,qe),He}function tt(K,Y,ne,ge){if(ne==null)throw Error(i(151));for(var He=null,ut=null,Ve=Y,qe=Y=0,ar=null,mt=ne.next();Ve!==null&&!mt.done;qe++,mt=ne.next()){Ve.index>qe?(ar=Ve,Ve=null):ar=Ve.sibling;var Ia=le(K,Ve,mt.value,ge);if(Ia===null){Ve===null&&(Ve=ar);break}n&&Ve&&Ia.alternate===null&&a(K,Ve),Y=v(Ia,Y,qe),ut===null?He=Ia:ut.sibling=Ia,ut=Ia,Ve=ar}if(mt.done)return l(K,Ve),dt&&fi(K,qe),He;if(Ve===null){for(;!mt.done;qe++,mt=ne.next())mt=Se(K,mt.value,ge),mt!==null&&(Y=v(mt,Y,qe),ut===null?He=mt:ut.sibling=mt,ut=mt);return dt&&fi(K,qe),He}for(Ve=f(Ve);!mt.done;qe++,mt=ne.next())mt=he(Ve,K,qe,mt.value,ge),mt!==null&&(n&&mt.alternate!==null&&Ve.delete(mt.key===null?qe:mt.key),Y=v(mt,Y,qe),ut===null?He=mt:ut.sibling=mt,ut=mt);return n&&Ve.forEach(function($y){return a(K,$y)}),dt&&fi(K,qe),He}function kt(K,Y,ne,ge){if(typeof ne=="object"&&ne!==null&&ne.type===m&&ne.key===null&&(ne=ne.props.children),typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case c:e:{for(var He=ne.key;Y!==null;){if(Y.key===He){if(He=ne.type,He===m){if(Y.tag===7){l(K,Y.sibling),ge=o(Y,ne.props.children),ge.return=K,K=ge;break e}}else if(Y.elementType===He||typeof He=="object"&&He!==null&&He.$$typeof===U&&t1(He)===Y.type){l(K,Y.sibling),ge=o(Y,ne.props),nu(ge,ne),ge.return=K,K=ge;break e}l(K,Y);break}else a(K,Y);Y=Y.sibling}ne.type===m?(ge=Ei(ne.props.children,K.mode,ge,ne.key),ge.return=K,K=ge):(ge=$f(ne.type,ne.key,ne.props,null,K.mode,ge),nu(ge,ne),ge.return=K,K=ge)}return _(K);case h:e:{for(He=ne.key;Y!==null;){if(Y.key===He)if(Y.tag===4&&Y.stateNode.containerInfo===ne.containerInfo&&Y.stateNode.implementation===ne.implementation){l(K,Y.sibling),ge=o(Y,ne.children||[]),ge.return=K,K=ge;break e}else{l(K,Y);break}else a(K,Y);Y=Y.sibling}ge=z0(ne,K.mode,ge),ge.return=K,K=ge}return _(K);case U:return He=ne._init,ne=He(ne._payload),kt(K,Y,ne,ge)}if(j(ne))return Ge(K,Y,ne,ge);if(fe(ne)){if(He=fe(ne),typeof He!="function")throw Error(i(150));return ne=He.call(ne),tt(K,Y,ne,ge)}if(typeof ne.then=="function")return kt(K,Y,bf(ne),ge);if(ne.$$typeof===g)return kt(K,Y,Wf(K,ne),ge);Ff(K,ne)}return typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint"?(ne=""+ne,Y!==null&&Y.tag===6?(l(K,Y.sibling),ge=o(Y,ne),ge.return=K,K=ge):(l(K,Y),ge=I0(ne,K.mode,ge),ge.return=K,K=ge),_(K)):l(K,Y)}return function(K,Y,ne,ge){try{ru=0;var He=kt(K,Y,ne,ge);return Zi=null,He}catch(Ve){if(Ve===eu)throw Ve;var ut=dn(29,Ve,null,K.mode);return ut.lanes=ge,ut.return=K,ut}finally{}}}var ci=r1(!0),n1=r1(!1),Ji=Ce(null),Mf=Ce(0);function a1(n,a){n=ia,xe(Mf,n),xe(Ji,a),ia=n|a.baseLanes}function Wc(){xe(Mf,ia),xe(Ji,Ji.current)}function qc(){ia=Mf.current,_e(Ji),_e(Mf)}var cn=Ce(null),Bn=null;function Ta(n){var a=n.alternate;xe(Qt,Qt.current&1),xe(cn,n),Bn===null&&(a===null||Ji.current!==null||a.memoizedState!==null)&&(Bn=n)}function i1(n){if(n.tag===22){if(xe(Qt,Qt.current),xe(cn,n),Bn===null){var a=n.alternate;a!==null&&a.memoizedState!==null&&(Bn=n)}}else Sa()}function Sa(){xe(Qt,Qt.current),xe(cn,cn.current)}function Kn(n){_e(cn),Bn===n&&(Bn=null),_e(Qt)}var Qt=Ce(0);function Lf(n){for(var a=n;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if(a.flags&128)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var UE=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(l,f){n.push(f)}};this.abort=function(){a.aborted=!0,n.forEach(function(l){return l()})}},PE=e.unstable_scheduleCallback,HE=e.unstable_NormalPriority,Zt={$$typeof:g,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Kc(){return{controller:new UE,data:new Map,refCount:0}}function au(n){n.refCount--,n.refCount===0&&PE(HE,function(){n.controller.abort()})}var iu=null,$c=0,el=0,tl=null;function IE(n,a){if(iu===null){var l=iu=[];$c=0,el=ro(),tl={status:"pending",value:void 0,then:function(f){l.push(f)}}}return $c++,a.then(l1,l1),a}function l1(){if(--$c===0&&iu!==null){tl!==null&&(tl.status="fulfilled");var n=iu;iu=null,el=0,tl=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function zE(n,a){var l=[],f={status:"pending",value:null,reason:null,then:function(o){l.push(o)}};return n.then(function(){f.status="fulfilled",f.value=a;for(var o=0;o<l.length;o++)(0,l[o])(a)},function(o){for(f.status="rejected",f.reason=o,o=0;o<l.length;o++)(0,l[o])(void 0)}),f}var u1=I.S;I.S=function(n,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&IE(n,a),u1!==null&&u1(n,a)};var oi=Ce(null);function Qc(){var n=oi.current;return n!==null?n:Dt.pooledCache}function Bf(n,a){a===null?xe(oi,oi.current):xe(oi,a.pool)}function f1(){var n=Qc();return n===null?null:{parent:Zt._currentValue,pool:n}}var wa=0,it=null,At=null,Vt=null,kf=!1,rl=!1,hi=!1,Uf=0,lu=0,nl=null,jE=0;function jt(){throw Error(i(321))}function Zc(n,a){if(a===null)return!1;for(var l=0;l<a.length&&l<n.length;l++)if(!Vr(n[l],a[l]))return!1;return!0}function Jc(n,a,l,f,o,v){return wa=v,it=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,I.H=n===null||n.memoizedState===null?di:Aa,hi=!1,v=l(f,o),hi=!1,rl&&(v=c1(a,l,f,o)),s1(n),v}function s1(n){I.H=kn;var a=At!==null&&At.next!==null;if(wa=0,Vt=At=it=null,kf=!1,lu=0,nl=null,a)throw Error(i(300));n===null||rr||(n=n.dependencies,n!==null&&Yf(n)&&(rr=!0))}function c1(n,a,l,f){it=n;var o=0;do{if(rl&&(nl=null),lu=0,rl=!1,25<=o)throw Error(i(301));if(o+=1,Vt=At=null,n.updateQueue!=null){var v=n.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}I.H=mi,v=a(l,f)}while(rl);return v}function GE(){var n=I.H,a=n.useState()[0];return a=typeof a.then=="function"?uu(a):a,n=n.useState()[0],(At!==null?At.memoizedState:null)!==n&&(it.flags|=1024),a}function e0(){var n=Uf!==0;return Uf=0,n}function t0(n,a,l){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~l}function r0(n){if(kf){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}kf=!1}wa=0,Vt=At=it=null,rl=!1,lu=Uf=0,nl=null}function Pr(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?it.memoizedState=Vt=n:Vt=Vt.next=n,Vt}function Xt(){if(At===null){var n=it.alternate;n=n!==null?n.memoizedState:null}else n=At.next;var a=Vt===null?it.memoizedState:Vt.next;if(a!==null)Vt=a,At=n;else{if(n===null)throw it.alternate===null?Error(i(467)):Error(i(310));At=n,n={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},Vt===null?it.memoizedState=Vt=n:Vt=Vt.next=n}return Vt}var Pf;Pf=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function uu(n){var a=lu;return lu+=1,nl===null&&(nl=[]),n=Jd(nl,n,a),a=it,(Vt===null?a.memoizedState:Vt.next)===null&&(a=a.alternate,I.H=a===null||a.memoizedState===null?di:Aa),n}function Hf(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return uu(n);if(n.$$typeof===g)return Tr(n)}throw Error(i(438,String(n)))}function n0(n){var a=null,l=it.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var f=it.alternate;f!==null&&(f=f.updateQueue,f!==null&&(f=f.memoCache,f!=null&&(a={data:f.data.map(function(o){return o.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=Pf(),it.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(n),f=0;f<n;f++)l[f]=X;return a.index++,l}function $n(n,a){return typeof a=="function"?a(n):a}function If(n){var a=Xt();return a0(a,At,n)}function a0(n,a,l){var f=n.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=l;var o=n.baseQueue,v=f.pending;if(v!==null){if(o!==null){var _=o.next;o.next=v.next,v.next=_}a.baseQueue=o=v,f.pending=null}if(v=n.baseState,o===null)n.memoizedState=v;else{a=o.next;var R=_=null,P=null,W=a,de=!1;do{var Se=W.lane&-536870913;if(Se!==W.lane?(ht&Se)===Se:(wa&Se)===Se){var le=W.revertLane;if(le===0)P!==null&&(P=P.next={lane:0,revertLane:0,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),Se===el&&(de=!0);else if((wa&le)===le){W=W.next,le===el&&(de=!0);continue}else Se={lane:0,revertLane:W.revertLane,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},P===null?(R=P=Se,_=v):P=P.next=Se,it.lanes|=le,La|=le;Se=W.action,hi&&l(v,Se),v=W.hasEagerState?W.eagerState:l(v,Se)}else le={lane:Se,revertLane:W.revertLane,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},P===null?(R=P=le,_=v):P=P.next=le,it.lanes|=Se,La|=Se;W=W.next}while(W!==null&&W!==a);if(P===null?_=v:P.next=R,!Vr(v,n.memoizedState)&&(rr=!0,de&&(l=tl,l!==null)))throw l;n.memoizedState=v,n.baseState=_,n.baseQueue=P,f.lastRenderedState=v}return o===null&&(f.lanes=0),[n.memoizedState,f.dispatch]}function i0(n){var a=Xt(),l=a.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=n;var f=l.dispatch,o=l.pending,v=a.memoizedState;if(o!==null){l.pending=null;var _=o=o.next;do v=n(v,_.action),_=_.next;while(_!==o);Vr(v,a.memoizedState)||(rr=!0),a.memoizedState=v,a.baseQueue===null&&(a.baseState=v),l.lastRenderedState=v}return[v,f]}function o1(n,a,l){var f=it,o=Xt(),v=dt;if(v){if(l===void 0)throw Error(i(407));l=l()}else l=a();var _=!Vr((At||o).memoizedState,l);if(_&&(o.memoizedState=l,rr=!0),o=o.queue,f0(m1.bind(null,f,o,n),[n]),o.getSnapshot!==a||_||Vt!==null&&Vt.memoizedState.tag&1){if(f.flags|=2048,al(9,d1.bind(null,f,o,l,a),{destroy:void 0},null),Dt===null)throw Error(i(349));v||wa&60||h1(f,a,l)}return l}function h1(n,a,l){n.flags|=16384,n={getSnapshot:a,value:l},a=it.updateQueue,a===null?(a=Pf(),it.updateQueue=a,a.stores=[n]):(l=a.stores,l===null?a.stores=[n]:l.push(n))}function d1(n,a,l,f){a.value=l,a.getSnapshot=f,v1(a)&&x1(n)}function m1(n,a,l){return l(function(){v1(a)&&x1(n)})}function v1(n){var a=n.getSnapshot;n=n.value;try{var l=a();return!Vr(n,l)}catch{return!0}}function x1(n){var a=_a(n,2);a!==null&&br(a,n,2)}function l0(n){var a=Pr();if(typeof n=="function"){var l=n;if(n=l(),hi){Or(!0);try{l()}finally{Or(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$n,lastRenderedState:n},a}function p1(n,a,l,f){return n.baseState=l,a0(n,At,typeof f=="function"?f:$n)}function VE(n,a,l,f,o){if(Gf(n))throw Error(i(485));if(n=a.action,n!==null){var v={payload:o,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(_){v.listeners.push(_)}};I.T!==null?l(!0):v.isTransition=!1,f(v),l=a.pending,l===null?(v.next=a.pending=v,g1(a,v)):(v.next=l.next,a.pending=l.next=v)}}function g1(n,a){var l=a.action,f=a.payload,o=n.state;if(a.isTransition){var v=I.T,_={};I.T=_;try{var R=l(o,f),P=I.S;P!==null&&P(_,R),E1(n,a,R)}catch(W){u0(n,a,W)}finally{I.T=v}}else try{v=l(o,f),E1(n,a,v)}catch(W){u0(n,a,W)}}function E1(n,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(f){y1(n,a,f)},function(f){return u0(n,a,f)}):y1(n,a,l)}function y1(n,a,l){a.status="fulfilled",a.value=l,_1(a),n.state=l,a=n.pending,a!==null&&(l=a.next,l===a?n.pending=null:(l=l.next,a.next=l,g1(n,l)))}function u0(n,a,l){var f=n.pending;if(n.pending=null,f!==null){f=f.next;do a.status="rejected",a.reason=l,_1(a),a=a.next;while(a!==f)}n.action=null}function _1(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function T1(n,a){return a}function S1(n,a){if(dt){var l=Dt.formState;if(l!==null){e:{var f=it;if(dt){if(hr){t:{for(var o=hr,v=Ln;o.nodeType!==8;){if(!v){o=null;break t}if(o=An(o.nextSibling),o===null){o=null;break t}}v=o.data,o=v==="F!"||v==="F"?o:null}if(o){hr=An(o.nextSibling),f=o.data==="F!";break e}}si(f)}f=!1}f&&(a=l[0])}}return l=Pr(),l.memoizedState=l.baseState=a,f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:T1,lastRenderedState:a},l.queue=f,l=z1.bind(null,it,f),f.dispatch=l,f=l0(!1),v=d0.bind(null,it,!1,f.queue),f=Pr(),o={state:a,dispatch:null,action:n,pending:null},f.queue=o,l=VE.bind(null,it,o,v,l),o.dispatch=l,f.memoizedState=n,[a,l,!1]}function w1(n){var a=Xt();return A1(a,At,n)}function A1(n,a,l){a=a0(n,a,T1)[0],n=If($n)[0],a=typeof a=="object"&&a!==null&&typeof a.then=="function"?uu(a):a;var f=Xt(),o=f.queue,v=o.dispatch;return l!==f.memoizedState&&(it.flags|=2048,al(9,XE.bind(null,o,l),{destroy:void 0},null)),[a,v,n]}function XE(n,a){n.action=a}function R1(n){var a=Xt(),l=At;if(l!==null)return A1(a,l,n);Xt(),a=a.memoizedState,l=Xt();var f=l.queue.dispatch;return l.memoizedState=n,[a,f,!1]}function al(n,a,l,f){return n={tag:n,create:a,inst:l,deps:f,next:null},a=it.updateQueue,a===null&&(a=Pf(),it.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=n.next=n:(f=l.next,l.next=n,n.next=f,a.lastEffect=n),n}function C1(){return Xt().memoizedState}function zf(n,a,l,f){var o=Pr();it.flags|=n,o.memoizedState=al(1|a,l,{destroy:void 0},f===void 0?null:f)}function jf(n,a,l,f){var o=Xt();f=f===void 0?null:f;var v=o.memoizedState.inst;At!==null&&f!==null&&Zc(f,At.memoizedState.deps)?o.memoizedState=al(a,l,v,f):(it.flags|=n,o.memoizedState=al(1|a,l,v,f))}function O1(n,a){zf(8390656,8,n,a)}function f0(n,a){jf(2048,8,n,a)}function D1(n,a){return jf(4,2,n,a)}function N1(n,a){return jf(4,4,n,a)}function b1(n,a){if(typeof a=="function"){n=n();var l=a(n);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function F1(n,a,l){l=l!=null?l.concat([n]):null,jf(4,4,b1.bind(null,a,n),l)}function s0(){}function M1(n,a){var l=Xt();a=a===void 0?null:a;var f=l.memoizedState;return a!==null&&Zc(a,f[1])?f[0]:(l.memoizedState=[n,a],n)}function L1(n,a){var l=Xt();a=a===void 0?null:a;var f=l.memoizedState;if(a!==null&&Zc(a,f[1]))return f[0];if(f=n(),hi){Or(!0);try{n()}finally{Or(!1)}}return l.memoizedState=[f,a],f}function c0(n,a,l){return l===void 0||wa&1073741824?n.memoizedState=a:(n.memoizedState=l,n=km(),it.lanes|=n,La|=n,l)}function B1(n,a,l,f){return Vr(l,a)?l:Ji.current!==null?(n=c0(n,l,f),Vr(n,a)||(rr=!0),n):wa&42?(n=km(),it.lanes|=n,La|=n,a):(rr=!0,n.memoizedState=l)}function k1(n,a,l,f,o){var v=k.p;k.p=v!==0&&8>v?v:8;var _=I.T,R={};I.T=R,d0(n,!1,a,l);try{var P=o(),W=I.S;if(W!==null&&W(R,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var de=zE(P,f);fu(n,a,de,qr(n))}else fu(n,a,f,qr(n))}catch(Se){fu(n,a,{then:function(){},status:"rejected",reason:Se},qr())}finally{k.p=v,I.T=_}}function YE(){}function o0(n,a,l,f){if(n.tag!==5)throw Error(i(476));var o=U1(n).queue;k1(n,o,a,H,l===null?YE:function(){return P1(n),l(f)})}function U1(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:H,baseState:H,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$n,lastRenderedState:H},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$n,lastRenderedState:l},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function P1(n){var a=U1(n).next.queue;fu(n,a,{},qr())}function h0(){return Tr(Ou)}function H1(){return Xt().memoizedState}function I1(){return Xt().memoizedState}function WE(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var l=qr();n=Oa(l);var f=Da(a,n,l);f!==null&&(br(f,a,l),ou(f,a,l)),a={cache:Kc()},n.payload=a;return}a=a.return}}function qE(n,a,l){var f=qr();l={lane:f,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Gf(n)?j1(a,l):(l=jc(n,a,l,f),l!==null&&(br(l,n,f),G1(l,a,f)))}function z1(n,a,l){var f=qr();fu(n,a,l,f)}function fu(n,a,l,f){var o={lane:f,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Gf(n))j1(a,o);else{var v=n.alternate;if(n.lanes===0&&(v===null||v.lanes===0)&&(v=a.lastRenderedReducer,v!==null))try{var _=a.lastRenderedState,R=v(_,l);if(o.hasEagerState=!0,o.eagerState=R,Vr(R,_))return Rf(n,a,o,0),Dt===null&&Af(),!1}catch{}finally{}if(l=jc(n,a,o,f),l!==null)return br(l,n,f),G1(l,a,f),!0}return!1}function d0(n,a,l,f){if(f={lane:2,revertLane:ro(),action:f,hasEagerState:!1,eagerState:null,next:null},Gf(n)){if(a)throw Error(i(479))}else a=jc(n,l,f,2),a!==null&&br(a,n,2)}function Gf(n){var a=n.alternate;return n===it||a!==null&&a===it}function j1(n,a){rl=kf=!0;var l=n.pending;l===null?a.next=a:(a.next=l.next,l.next=a),n.pending=a}function G1(n,a,l){if(l&4194176){var f=a.lanes;f&=n.pendingLanes,l|=f,a.lanes=l,We(n,l)}}var kn={readContext:Tr,use:Hf,useCallback:jt,useContext:jt,useEffect:jt,useImperativeHandle:jt,useLayoutEffect:jt,useInsertionEffect:jt,useMemo:jt,useReducer:jt,useRef:jt,useState:jt,useDebugValue:jt,useDeferredValue:jt,useTransition:jt,useSyncExternalStore:jt,useId:jt};kn.useCacheRefresh=jt,kn.useMemoCache=jt,kn.useHostTransitionStatus=jt,kn.useFormState=jt,kn.useActionState=jt,kn.useOptimistic=jt;var di={readContext:Tr,use:Hf,useCallback:function(n,a){return Pr().memoizedState=[n,a===void 0?null:a],n},useContext:Tr,useEffect:O1,useImperativeHandle:function(n,a,l){l=l!=null?l.concat([n]):null,zf(4194308,4,b1.bind(null,a,n),l)},useLayoutEffect:function(n,a){return zf(4194308,4,n,a)},useInsertionEffect:function(n,a){zf(4,2,n,a)},useMemo:function(n,a){var l=Pr();a=a===void 0?null:a;var f=n();if(hi){Or(!0);try{n()}finally{Or(!1)}}return l.memoizedState=[f,a],f},useReducer:function(n,a,l){var f=Pr();if(l!==void 0){var o=l(a);if(hi){Or(!0);try{l(a)}finally{Or(!1)}}}else o=a;return f.memoizedState=f.baseState=o,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:o},f.queue=n,n=n.dispatch=qE.bind(null,it,n),[f.memoizedState,n]},useRef:function(n){var a=Pr();return n={current:n},a.memoizedState=n},useState:function(n){n=l0(n);var a=n.queue,l=z1.bind(null,it,a);return a.dispatch=l,[n.memoizedState,l]},useDebugValue:s0,useDeferredValue:function(n,a){var l=Pr();return c0(l,n,a)},useTransition:function(){var n=l0(!1);return n=k1.bind(null,it,n.queue,!0,!1),Pr().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,l){var f=it,o=Pr();if(dt){if(l===void 0)throw Error(i(407));l=l()}else{if(l=a(),Dt===null)throw Error(i(349));ht&60||h1(f,a,l)}o.memoizedState=l;var v={value:l,getSnapshot:a};return o.queue=v,O1(m1.bind(null,f,v,n),[n]),f.flags|=2048,al(9,d1.bind(null,f,v,l,a),{destroy:void 0},null),l},useId:function(){var n=Pr(),a=Dt.identifierPrefix;if(dt){var l=qn,f=Wn;l=(f&~(1<<32-tr(f)-1)).toString(32)+l,a=":"+a+"R"+l,l=Uf++,0<l&&(a+="H"+l.toString(32)),a+=":"}else l=jE++,a=":"+a+"r"+l.toString(32)+":";return n.memoizedState=a},useCacheRefresh:function(){return Pr().memoizedState=WE.bind(null,it)}};di.useMemoCache=n0,di.useHostTransitionStatus=h0,di.useFormState=S1,di.useActionState=S1,di.useOptimistic=function(n){var a=Pr();a.memoizedState=a.baseState=n;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=d0.bind(null,it,!0,l),l.dispatch=a,[n,a]};var Aa={readContext:Tr,use:Hf,useCallback:M1,useContext:Tr,useEffect:f0,useImperativeHandle:F1,useInsertionEffect:D1,useLayoutEffect:N1,useMemo:L1,useReducer:If,useRef:C1,useState:function(){return If($n)},useDebugValue:s0,useDeferredValue:function(n,a){var l=Xt();return B1(l,At.memoizedState,n,a)},useTransition:function(){var n=If($n)[0],a=Xt().memoizedState;return[typeof n=="boolean"?n:uu(n),a]},useSyncExternalStore:o1,useId:H1};Aa.useCacheRefresh=I1,Aa.useMemoCache=n0,Aa.useHostTransitionStatus=h0,Aa.useFormState=w1,Aa.useActionState=w1,Aa.useOptimistic=function(n,a){var l=Xt();return p1(l,At,n,a)};var mi={readContext:Tr,use:Hf,useCallback:M1,useContext:Tr,useEffect:f0,useImperativeHandle:F1,useInsertionEffect:D1,useLayoutEffect:N1,useMemo:L1,useReducer:i0,useRef:C1,useState:function(){return i0($n)},useDebugValue:s0,useDeferredValue:function(n,a){var l=Xt();return At===null?c0(l,n,a):B1(l,At.memoizedState,n,a)},useTransition:function(){var n=i0($n)[0],a=Xt().memoizedState;return[typeof n=="boolean"?n:uu(n),a]},useSyncExternalStore:o1,useId:H1};mi.useCacheRefresh=I1,mi.useMemoCache=n0,mi.useHostTransitionStatus=h0,mi.useFormState=R1,mi.useActionState=R1,mi.useOptimistic=function(n,a){var l=Xt();return At!==null?p1(l,At,n,a):(l.baseState=n,[n,l.queue.dispatch])};function m0(n,a,l,f){a=n.memoizedState,l=l(f,a),l=l==null?a:ee({},a,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var v0={isMounted:function(n){return(n=n._reactInternals)?De(n)===n:!1},enqueueSetState:function(n,a,l){n=n._reactInternals;var f=qr(),o=Oa(f);o.payload=a,l!=null&&(o.callback=l),a=Da(n,o,f),a!==null&&(br(a,n,f),ou(a,n,f))},enqueueReplaceState:function(n,a,l){n=n._reactInternals;var f=qr(),o=Oa(f);o.tag=1,o.payload=a,l!=null&&(o.callback=l),a=Da(n,o,f),a!==null&&(br(a,n,f),ou(a,n,f))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var l=qr(),f=Oa(l);f.tag=2,a!=null&&(f.callback=a),a=Da(n,f,l),a!==null&&(br(a,n,l),ou(a,n,l))}};function V1(n,a,l,f,o,v,_){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(f,v,_):a.prototype&&a.prototype.isPureReactComponent?!Kl(l,f)||!Kl(o,v):!0}function X1(n,a,l,f){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,f),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,f),a.state!==n&&v0.enqueueReplaceState(a,a.state,null)}function vi(n,a){var l=a;if("ref"in a){l={};for(var f in a)f!=="ref"&&(l[f]=a[f])}if(n=n.defaultProps){l===a&&(l=ee({},l));for(var o in n)l[o]===void 0&&(l[o]=n[o])}return l}var Vf=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function Y1(n){Vf(n)}function W1(n){console.error(n)}function q1(n){Vf(n)}function Xf(n,a){try{var l=n.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(f){setTimeout(function(){throw f})}}function K1(n,a,l){try{var f=n.onCaughtError;f(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function x0(n,a,l){return l=Oa(l),l.tag=3,l.payload={element:null},l.callback=function(){Xf(n,a)},l}function $1(n){return n=Oa(n),n.tag=3,n}function Q1(n,a,l,f){var o=l.type.getDerivedStateFromError;if(typeof o=="function"){var v=f.value;n.payload=function(){return o(v)},n.callback=function(){K1(a,l,f)}}var _=l.stateNode;_!==null&&typeof _.componentDidCatch=="function"&&(n.callback=function(){K1(a,l,f),typeof o!="function"&&(Ba===null?Ba=new Set([this]):Ba.add(this));var R=f.stack;this.componentDidCatch(f.value,{componentStack:R!==null?R:""})})}function KE(n,a,l,f,o){if(l.flags|=32768,f!==null&&typeof f=="object"&&typeof f.then=="function"){if(a=l.alternate,a!==null&&cu(a,l,o,!0),l=cn.current,l!==null){switch(l.tag){case 13:return Bn===null?Q0():l.alternate===null&&Bt===0&&(Bt=3),l.flags&=-257,l.flags|=65536,l.lanes=o,f===Yc?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([f]):a.add(f),J0(n,f,o)),!1;case 22:return l.flags|=65536,f===Yc?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([f])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([f]):l.add(f)),J0(n,f,o)),!1}throw Error(i(435,l.tag))}return J0(n,f,o),Q0(),!1}if(dt)return a=cn.current,a!==null?(!(a.flags&65536)&&(a.flags|=256),a.flags|=65536,a.lanes=o,f!==Xc&&(n=Error(i(422),{cause:f}),Jl(un(n,l)))):(f!==Xc&&(a=Error(i(423),{cause:f}),Jl(un(a,l))),n=n.current.alternate,n.flags|=65536,o&=-o,n.lanes|=o,f=un(f,l),o=x0(n.stateNode,f,o),b0(n,o),Bt!==4&&(Bt=2)),!1;var v=Error(i(520),{cause:f});if(v=un(v,l),Eu===null?Eu=[v]:Eu.push(v),Bt!==4&&(Bt=2),a===null)return!0;f=un(f,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,n=o&-o,l.lanes|=n,n=x0(l.stateNode,f,n),b0(l,n),!1;case 1:if(a=l.type,v=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Ba===null||!Ba.has(v))))return l.flags|=65536,o&=-o,l.lanes|=o,o=$1(o),Q1(o,n,l,f),b0(l,o),!1}l=l.return}while(l!==null);return!1}var Z1=Error(i(461)),rr=!1;function dr(n,a,l,f){a.child=n===null?n1(a,null,l,f):ci(a,n.child,l,f)}function J1(n,a,l,f,o){l=l.render;var v=a.ref;if("ref"in f){var _={};for(var R in f)R!=="ref"&&(_[R]=f[R])}else _=f;return pi(a),f=Jc(n,a,l,_,v,o),R=e0(),n!==null&&!rr?(t0(n,a,o),Qn(n,a,o)):(dt&&R&&Gc(a),a.flags|=1,dr(n,a,f,o),a.child)}function em(n,a,l,f,o){if(n===null){var v=l.type;return typeof v=="function"&&!H0(v)&&v.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=v,tm(n,a,v,f,o)):(n=$f(l.type,null,f,a,a.mode,o),n.ref=a.ref,n.return=a,a.child=n)}if(v=n.child,!A0(n,o)){var _=v.memoizedProps;if(l=l.compare,l=l!==null?l:Kl,l(_,f)&&n.ref===a.ref)return Qn(n,a,o)}return a.flags|=1,n=Ma(v,f),n.ref=a.ref,n.return=a,a.child=n}function tm(n,a,l,f,o){if(n!==null){var v=n.memoizedProps;if(Kl(v,f)&&n.ref===a.ref)if(rr=!1,a.pendingProps=f=v,A0(n,o))n.flags&131072&&(rr=!0);else return a.lanes=n.lanes,Qn(n,a,o)}return p0(n,a,l,f,o)}function rm(n,a,l){var f=a.pendingProps,o=f.children,v=(a.stateNode._pendingVisibility&2)!==0,_=n!==null?n.memoizedState:null;if(su(n,a),f.mode==="hidden"||v){if(a.flags&128){if(f=_!==null?_.baseLanes|l:l,n!==null){for(o=a.child=n.child,v=0;o!==null;)v=v|o.lanes|o.childLanes,o=o.sibling;a.childLanes=v&~f}else a.childLanes=0,a.child=null;return nm(n,a,f,l)}if(l&536870912)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&Bf(a,_!==null?_.cachePool:null),_!==null?a1(a,_):Wc(),i1(a);else return a.lanes=a.childLanes=536870912,nm(n,a,_!==null?_.baseLanes|l:l,l)}else _!==null?(Bf(a,_.cachePool),a1(a,_),Sa(),a.memoizedState=null):(n!==null&&Bf(a,null),Wc(),Sa());return dr(n,a,o,l),a.child}function nm(n,a,l,f){var o=Qc();return o=o===null?null:{parent:Zt._currentValue,pool:o},a.memoizedState={baseLanes:l,cachePool:o},n!==null&&Bf(a,null),Wc(),i1(a),n!==null&&cu(n,a,f,!0),null}function su(n,a){var l=a.ref;if(l===null)n!==null&&n.ref!==null&&(a.flags|=2097664);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(n===null||n.ref!==l)&&(a.flags|=2097664)}}function p0(n,a,l,f,o){return pi(a),l=Jc(n,a,l,f,void 0,o),f=e0(),n!==null&&!rr?(t0(n,a,o),Qn(n,a,o)):(dt&&f&&Gc(a),a.flags|=1,dr(n,a,l,o),a.child)}function am(n,a,l,f,o,v){return pi(a),a.updateQueue=null,l=c1(a,f,l,o),s1(n),f=e0(),n!==null&&!rr?(t0(n,a,v),Qn(n,a,v)):(dt&&f&&Gc(a),a.flags|=1,dr(n,a,l,v),a.child)}function im(n,a,l,f,o){if(pi(a),a.stateNode===null){var v=Ki,_=l.contextType;typeof _=="object"&&_!==null&&(v=Tr(_)),v=new l(f,v),a.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=v0,a.stateNode=v,v._reactInternals=a,v=a.stateNode,v.props=f,v.state=a.memoizedState,v.refs={},D0(a),_=l.contextType,v.context=typeof _=="object"&&_!==null?Tr(_):Ki,v.state=a.memoizedState,_=l.getDerivedStateFromProps,typeof _=="function"&&(m0(a,l,_,f),v.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(_=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),_!==v.state&&v0.enqueueReplaceState(v,v.state,null),du(a,f,v,o),hu(),v.state=a.memoizedState),typeof v.componentDidMount=="function"&&(a.flags|=4194308),f=!0}else if(n===null){v=a.stateNode;var R=a.memoizedProps,P=vi(l,R);v.props=P;var W=v.context,de=l.contextType;_=Ki,typeof de=="object"&&de!==null&&(_=Tr(de));var Se=l.getDerivedStateFromProps;de=typeof Se=="function"||typeof v.getSnapshotBeforeUpdate=="function",R=a.pendingProps!==R,de||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(R||W!==_)&&X1(a,v,f,_),Ca=!1;var le=a.memoizedState;v.state=le,du(a,f,v,o),hu(),W=a.memoizedState,R||le!==W||Ca?(typeof Se=="function"&&(m0(a,l,Se,f),W=a.memoizedState),(P=Ca||V1(a,l,P,f,le,W,_))?(de||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(a.flags|=4194308)):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=f,a.memoizedState=W),v.props=f,v.state=W,v.context=_,f=P):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),f=!1)}else{v=a.stateNode,N0(n,a),_=a.memoizedProps,de=vi(l,_),v.props=de,Se=a.pendingProps,le=v.context,W=l.contextType,P=Ki,typeof W=="object"&&W!==null&&(P=Tr(W)),R=l.getDerivedStateFromProps,(W=typeof R=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(_!==Se||le!==P)&&X1(a,v,f,P),Ca=!1,le=a.memoizedState,v.state=le,du(a,f,v,o),hu();var he=a.memoizedState;_!==Se||le!==he||Ca||n!==null&&n.dependencies!==null&&Yf(n.dependencies)?(typeof R=="function"&&(m0(a,l,R,f),he=a.memoizedState),(de=Ca||V1(a,l,de,f,le,he,P)||n!==null&&n.dependencies!==null&&Yf(n.dependencies))?(W||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(f,he,P),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(f,he,P)),typeof v.componentDidUpdate=="function"&&(a.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof v.componentDidUpdate!="function"||_===n.memoizedProps&&le===n.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||_===n.memoizedProps&&le===n.memoizedState||(a.flags|=1024),a.memoizedProps=f,a.memoizedState=he),v.props=f,v.state=he,v.context=P,f=de):(typeof v.componentDidUpdate!="function"||_===n.memoizedProps&&le===n.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||_===n.memoizedProps&&le===n.memoizedState||(a.flags|=1024),f=!1)}return v=f,su(n,a),f=(a.flags&128)!==0,v||f?(v=a.stateNode,l=f&&typeof l.getDerivedStateFromError!="function"?null:v.render(),a.flags|=1,n!==null&&f?(a.child=ci(a,n.child,null,o),a.child=ci(a,null,l,o)):dr(n,a,l,o),a.memoizedState=v.state,n=a.child):n=Qn(n,a,o),n}function lm(n,a,l,f){return Zl(),a.flags|=256,dr(n,a,l,f),a.child}var g0={dehydrated:null,treeContext:null,retryLane:0};function E0(n){return{baseLanes:n,cachePool:f1()}}function y0(n,a,l){return n=n!==null?n.childLanes&~l:0,a&&(n|=mn),n}function um(n,a,l){var f=a.pendingProps,o=!1,v=(a.flags&128)!==0,_;if((_=v)||(_=n!==null&&n.memoizedState===null?!1:(Qt.current&2)!==0),_&&(o=!0,a.flags&=-129),_=(a.flags&32)!==0,a.flags&=-33,n===null){if(dt){if(o?Ta(a):Sa(),dt){var R=hr,P;if(P=R){e:{for(P=R,R=Ln;P.nodeType!==8;){if(!R){R=null;break e}if(P=An(P.nextSibling),P===null){R=null;break e}}R=P}R!==null?(a.memoizedState={dehydrated:R,treeContext:ui!==null?{id:Wn,overflow:qn}:null,retryLane:536870912},P=dn(18,null,null,0),P.stateNode=R,P.return=a,a.child=P,Nr=a,hr=null,P=!0):P=!1}P||si(a)}if(R=a.memoizedState,R!==null&&(R=R.dehydrated,R!==null))return R.data==="$!"?a.lanes=16:a.lanes=536870912,null;Kn(a)}return R=f.children,f=f.fallback,o?(Sa(),o=a.mode,R=T0({mode:"hidden",children:R},o),f=Ei(f,o,l,null),R.return=a,f.return=a,R.sibling=f,a.child=R,o=a.child,o.memoizedState=E0(l),o.childLanes=y0(n,_,l),a.memoizedState=g0,f):(Ta(a),_0(a,R))}if(P=n.memoizedState,P!==null&&(R=P.dehydrated,R!==null)){if(v)a.flags&256?(Ta(a),a.flags&=-257,a=S0(n,a,l)):a.memoizedState!==null?(Sa(),a.child=n.child,a.flags|=128,a=null):(Sa(),o=f.fallback,R=a.mode,f=T0({mode:"visible",children:f.children},R),o=Ei(o,R,l,null),o.flags|=2,f.return=a,o.return=a,f.sibling=o,a.child=f,ci(a,n.child,null,l),f=a.child,f.memoizedState=E0(l),f.childLanes=y0(n,_,l),a.memoizedState=g0,a=o);else if(Ta(a),R.data==="$!"){if(_=R.nextSibling&&R.nextSibling.dataset,_)var W=_.dgst;_=W,f=Error(i(419)),f.stack="",f.digest=_,Jl({value:f,source:null,stack:null}),a=S0(n,a,l)}else if(rr||cu(n,a,l,!1),_=(l&n.childLanes)!==0,rr||_){if(_=Dt,_!==null){if(f=l&-l,f&42)f=1;else switch(f){case 2:f=1;break;case 8:f=4;break;case 32:f=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:f=64;break;case 268435456:f=134217728;break;default:f=0}if(f=f&(_.suspendedLanes|l)?0:f,f!==0&&f!==P.retryLane)throw P.retryLane=f,_a(n,f),br(_,n,f),Z1}R.data==="$?"||Q0(),a=S0(n,a,l)}else R.data==="$?"?(a.flags|=128,a.child=n.child,a=cy.bind(null,n),R._reactRetry=a,a=null):(n=P.treeContext,hr=An(R.nextSibling),Nr=a,dt=!0,Sn=null,Ln=!1,n!==null&&(fn[sn++]=Wn,fn[sn++]=qn,fn[sn++]=ui,Wn=n.id,qn=n.overflow,ui=a),a=_0(a,f.children),a.flags|=4096);return a}return o?(Sa(),o=f.fallback,R=a.mode,P=n.child,W=P.sibling,f=Ma(P,{mode:"hidden",children:f.children}),f.subtreeFlags=P.subtreeFlags&31457280,W!==null?o=Ma(W,o):(o=Ei(o,R,l,null),o.flags|=2),o.return=a,f.return=a,f.sibling=o,a.child=f,f=o,o=a.child,R=n.child.memoizedState,R===null?R=E0(l):(P=R.cachePool,P!==null?(W=Zt._currentValue,P=P.parent!==W?{parent:W,pool:W}:P):P=f1(),R={baseLanes:R.baseLanes|l,cachePool:P}),o.memoizedState=R,o.childLanes=y0(n,_,l),a.memoizedState=g0,f):(Ta(a),l=n.child,n=l.sibling,l=Ma(l,{mode:"visible",children:f.children}),l.return=a,l.sibling=null,n!==null&&(_=a.deletions,_===null?(a.deletions=[n],a.flags|=16):_.push(n)),a.child=l,a.memoizedState=null,l)}function _0(n,a){return a=T0({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function T0(n,a){return Mm(n,a,0,null)}function S0(n,a,l){return ci(a,n.child,null,l),n=_0(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function fm(n,a,l){n.lanes|=a;var f=n.alternate;f!==null&&(f.lanes|=a),C0(n.return,a,l)}function w0(n,a,l,f,o){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:f,tail:l,tailMode:o}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=f,v.tail=l,v.tailMode=o)}function sm(n,a,l){var f=a.pendingProps,o=f.revealOrder,v=f.tail;if(dr(n,a,f.children,l),f=Qt.current,f&2)f=f&1|2,a.flags|=128;else{if(n!==null&&n.flags&128)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&fm(n,l,a);else if(n.tag===19)fm(n,l,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}f&=1}switch(xe(Qt,f),o){case"forwards":for(l=a.child,o=null;l!==null;)n=l.alternate,n!==null&&Lf(n)===null&&(o=l),l=l.sibling;l=o,l===null?(o=a.child,a.child=null):(o=l.sibling,l.sibling=null),w0(a,!1,o,l,v);break;case"backwards":for(l=null,o=a.child,a.child=null;o!==null;){if(n=o.alternate,n!==null&&Lf(n)===null){a.child=o;break}n=o.sibling,o.sibling=l,l=o,o=n}w0(a,!0,l,null,v);break;case"together":w0(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Qn(n,a,l){if(n!==null&&(a.dependencies=n.dependencies),La|=a.lanes,!(l&a.childLanes))if(n!==null){if(cu(n,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(i(153));if(a.child!==null){for(n=a.child,l=Ma(n,n.pendingProps),a.child=l,l.return=a;n.sibling!==null;)n=n.sibling,l=l.sibling=Ma(n,n.pendingProps),l.return=a;l.sibling=null}return a.child}function A0(n,a){return n.lanes&a?!0:(n=n.dependencies,!!(n!==null&&Yf(n)))}function $E(n,a,l){switch(a.tag){case 3:rt(a,a.stateNode.containerInfo),Ra(a,Zt,n.memoizedState.cache),Zl();break;case 27:case 5:ke(a);break;case 4:rt(a,a.stateNode.containerInfo);break;case 10:Ra(a,a.type,a.memoizedProps.value);break;case 13:var f=a.memoizedState;if(f!==null)return f.dehydrated!==null?(Ta(a),a.flags|=128,null):l&a.child.childLanes?um(n,a,l):(Ta(a),n=Qn(n,a,l),n!==null?n.sibling:null);Ta(a);break;case 19:var o=(n.flags&128)!==0;if(f=(l&a.childLanes)!==0,f||(cu(n,a,l,!1),f=(l&a.childLanes)!==0),o){if(f)return sm(n,a,l);a.flags|=128}if(o=a.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),xe(Qt,Qt.current),f)break;return null;case 22:case 23:return a.lanes=0,rm(n,a,l);case 24:Ra(a,Zt,n.memoizedState.cache)}return Qn(n,a,l)}function cm(n,a,l){if(n!==null)if(n.memoizedProps!==a.pendingProps)rr=!0;else{if(!A0(n,l)&&!(a.flags&128))return rr=!1,$E(n,a,l);rr=!!(n.flags&131072)}else rr=!1,dt&&a.flags&1048576&&qd(a,Df,a.index);switch(a.lanes=0,a.tag){case 16:e:{n=a.pendingProps;var f=a.elementType,o=f._init;if(f=o(f._payload),a.type=f,typeof f=="function")H0(f)?(n=vi(f,n),a.tag=1,a=im(null,a,f,n,l)):(a.tag=0,a=p0(null,a,f,n,l));else{if(f!=null){if(o=f.$$typeof,o===S){a.tag=11,a=J1(null,a,f,n,l);break e}else if(o===D){a.tag=14,a=em(null,a,f,n,l);break e}}throw a=Z(f)||f,Error(i(306,a,""))}}return a;case 0:return p0(n,a,a.type,a.pendingProps,l);case 1:return f=a.type,o=vi(f,a.pendingProps),im(n,a,f,o,l);case 3:e:{if(rt(a,a.stateNode.containerInfo),n===null)throw Error(i(387));var v=a.pendingProps;o=a.memoizedState,f=o.element,N0(n,a),du(a,v,null,l);var _=a.memoizedState;if(v=_.cache,Ra(a,Zt,v),v!==o.cache&&O0(a,[Zt],l,!0),hu(),v=_.element,o.isDehydrated)if(o={element:v,isDehydrated:!1,cache:_.cache},a.updateQueue.baseState=o,a.memoizedState=o,a.flags&256){a=lm(n,a,v,l);break e}else if(v!==f){f=un(Error(i(424)),a),Jl(f),a=lm(n,a,v,l);break e}else for(hr=An(a.stateNode.containerInfo.firstChild),Nr=a,dt=!0,Sn=null,Ln=!0,l=n1(a,null,v,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Zl(),v===f){a=Qn(n,a,l);break e}dr(n,a,v,l)}a=a.child}return a;case 26:return su(n,a),n===null?(l=dv(a.type,null,a.pendingProps,null))?a.memoizedState=l:dt||(l=a.type,n=a.pendingProps,f=fs(lt.current).createElement(l),f[A]=a,f[C]=n,mr(f,l,n),Ae(f),a.stateNode=f):a.memoizedState=dv(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return ke(a),n===null&&dt&&(f=a.stateNode=cv(a.type,a.pendingProps,lt.current),Nr=a,Ln=!0,hr=An(f.firstChild)),f=a.pendingProps.children,n!==null||dt?dr(n,a,f,l):a.child=ci(a,null,f,l),su(n,a),a.child;case 5:return n===null&&dt&&((o=f=hr)&&(f=Ry(f,a.type,a.pendingProps,Ln),f!==null?(a.stateNode=f,Nr=a,hr=An(f.firstChild),Ln=!1,o=!0):o=!1),o||si(a)),ke(a),o=a.type,v=a.pendingProps,_=n!==null?n.memoizedProps:null,f=v.children,oo(o,v)?f=null:_!==null&&oo(o,_)&&(a.flags|=32),a.memoizedState!==null&&(o=Jc(n,a,GE,null,null,l),Ou._currentValue=o),su(n,a),dr(n,a,f,l),a.child;case 6:return n===null&&dt&&((n=l=hr)&&(l=Cy(l,a.pendingProps,Ln),l!==null?(a.stateNode=l,Nr=a,hr=null,n=!0):n=!1),n||si(a)),null;case 13:return um(n,a,l);case 4:return rt(a,a.stateNode.containerInfo),f=a.pendingProps,n===null?a.child=ci(a,null,f,l):dr(n,a,f,l),a.child;case 11:return J1(n,a,a.type,a.pendingProps,l);case 7:return dr(n,a,a.pendingProps,l),a.child;case 8:return dr(n,a,a.pendingProps.children,l),a.child;case 12:return dr(n,a,a.pendingProps.children,l),a.child;case 10:return f=a.pendingProps,Ra(a,a.type,f.value),dr(n,a,f.children,l),a.child;case 9:return o=a.type._context,f=a.pendingProps.children,pi(a),o=Tr(o),f=f(o),a.flags|=1,dr(n,a,f,l),a.child;case 14:return em(n,a,a.type,a.pendingProps,l);case 15:return tm(n,a,a.type,a.pendingProps,l);case 19:return sm(n,a,l);case 22:return rm(n,a,l);case 24:return pi(a),f=Tr(Zt),n===null?(o=Qc(),o===null&&(o=Dt,v=Kc(),o.pooledCache=v,v.refCount++,v!==null&&(o.pooledCacheLanes|=l),o=v),a.memoizedState={parent:f,cache:o},D0(a),Ra(a,Zt,o)):(n.lanes&l&&(N0(n,a),du(a,null,null,l),hu()),o=n.memoizedState,v=a.memoizedState,o.parent!==f?(o={parent:f,cache:f},a.memoizedState=o,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=o),Ra(a,Zt,f)):(f=v.cache,Ra(a,Zt,f),f!==o.cache&&O0(a,[Zt],l,!0))),dr(n,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}var R0=Ce(null),xi=null,Zn=null;function Ra(n,a,l){xe(R0,a._currentValue),a._currentValue=l}function Jn(n){n._currentValue=R0.current,_e(R0)}function C0(n,a,l){for(;n!==null;){var f=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,f!==null&&(f.childLanes|=a)):f!==null&&(f.childLanes&a)!==a&&(f.childLanes|=a),n===l)break;n=n.return}}function O0(n,a,l,f){var o=n.child;for(o!==null&&(o.return=n);o!==null;){var v=o.dependencies;if(v!==null){var _=o.child;v=v.firstContext;e:for(;v!==null;){var R=v;v=o;for(var P=0;P<a.length;P++)if(R.context===a[P]){v.lanes|=l,R=v.alternate,R!==null&&(R.lanes|=l),C0(v.return,l,n),f||(_=null);break e}v=R.next}}else if(o.tag===18){if(_=o.return,_===null)throw Error(i(341));_.lanes|=l,v=_.alternate,v!==null&&(v.lanes|=l),C0(_,l,n),_=null}else _=o.child;if(_!==null)_.return=o;else for(_=o;_!==null;){if(_===n){_=null;break}if(o=_.sibling,o!==null){o.return=_.return,_=o;break}_=_.return}o=_}}function cu(n,a,l,f){n=null;for(var o=a,v=!1;o!==null;){if(!v){if(o.flags&524288)v=!0;else if(o.flags&262144)break}if(o.tag===10){var _=o.alternate;if(_===null)throw Error(i(387));if(_=_.memoizedProps,_!==null){var R=o.type;Vr(o.pendingProps.value,_.value)||(n!==null?n.push(R):n=[R])}}else if(o===et.current){if(_=o.alternate,_===null)throw Error(i(387));_.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(n!==null?n.push(Ou):n=[Ou])}o=o.return}n!==null&&O0(a,n,l,f),a.flags|=262144}function Yf(n){for(n=n.firstContext;n!==null;){if(!Vr(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function pi(n){xi=n,Zn=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Tr(n){return om(xi,n)}function Wf(n,a){return xi===null&&pi(n),om(n,a)}function om(n,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},Zn===null){if(n===null)throw Error(i(308));Zn=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else Zn=Zn.next=a;return l}var Ca=!1;function D0(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function N0(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Oa(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Da(n,a,l){var f=n.updateQueue;if(f===null)return null;if(f=f.shared,Mt&2){var o=f.pending;return o===null?a.next=a:(a.next=o.next,o.next=a),f.pending=a,a=Cf(n),Yd(n,null,l),a}return Rf(n,f,a,l),Cf(n)}function ou(n,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194176)!==0)){var f=a.lanes;f&=n.pendingLanes,l|=f,a.lanes=l,We(n,l)}}function b0(n,a){var l=n.updateQueue,f=n.alternate;if(f!==null&&(f=f.updateQueue,l===f)){var o=null,v=null;if(l=l.firstBaseUpdate,l!==null){do{var _={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};v===null?o=v=_:v=v.next=_,l=l.next}while(l!==null);v===null?o=v=a:v=v.next=a}else o=v=a;l={baseState:f.baseState,firstBaseUpdate:o,lastBaseUpdate:v,shared:f.shared,callbacks:f.callbacks},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=a:n.next=a,l.lastBaseUpdate=a}var F0=!1;function hu(){if(F0){var n=tl;if(n!==null)throw n}}function du(n,a,l,f){F0=!1;var o=n.updateQueue;Ca=!1;var v=o.firstBaseUpdate,_=o.lastBaseUpdate,R=o.shared.pending;if(R!==null){o.shared.pending=null;var P=R,W=P.next;P.next=null,_===null?v=W:_.next=W,_=P;var de=n.alternate;de!==null&&(de=de.updateQueue,R=de.lastBaseUpdate,R!==_&&(R===null?de.firstBaseUpdate=W:R.next=W,de.lastBaseUpdate=P))}if(v!==null){var Se=o.baseState;_=0,de=W=P=null,R=v;do{var le=R.lane&-536870913,he=le!==R.lane;if(he?(ht&le)===le:(f&le)===le){le!==0&&le===el&&(F0=!0),de!==null&&(de=de.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var Ge=n,tt=R;le=a;var kt=l;switch(tt.tag){case 1:if(Ge=tt.payload,typeof Ge=="function"){Se=Ge.call(kt,Se,le);break e}Se=Ge;break e;case 3:Ge.flags=Ge.flags&-65537|128;case 0:if(Ge=tt.payload,le=typeof Ge=="function"?Ge.call(kt,Se,le):Ge,le==null)break e;Se=ee({},Se,le);break e;case 2:Ca=!0}}le=R.callback,le!==null&&(n.flags|=64,he&&(n.flags|=8192),he=o.callbacks,he===null?o.callbacks=[le]:he.push(le))}else he={lane:le,tag:R.tag,payload:R.payload,callback:R.callback,next:null},de===null?(W=de=he,P=Se):de=de.next=he,_|=le;if(R=R.next,R===null){if(R=o.shared.pending,R===null)break;he=R,R=he.next,he.next=null,o.lastBaseUpdate=he,o.shared.pending=null}}while(!0);de===null&&(P=Se),o.baseState=P,o.firstBaseUpdate=W,o.lastBaseUpdate=de,v===null&&(o.shared.lanes=0),La|=_,n.lanes=_,n.memoizedState=Se}}function hm(n,a){if(typeof n!="function")throw Error(i(191,n));n.call(a)}function dm(n,a){var l=n.callbacks;if(l!==null)for(n.callbacks=null,n=0;n<l.length;n++)hm(l[n],a)}function mu(n,a){try{var l=a.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var o=f.next;l=o;do{if((l.tag&n)===n){f=void 0;var v=l.create,_=l.inst;f=v(),_.destroy=f}l=l.next}while(l!==o)}}catch(R){Ot(a,a.return,R)}}function Na(n,a,l){try{var f=a.updateQueue,o=f!==null?f.lastEffect:null;if(o!==null){var v=o.next;f=v;do{if((f.tag&n)===n){var _=f.inst,R=_.destroy;if(R!==void 0){_.destroy=void 0,o=a;var P=l;try{R()}catch(W){Ot(o,P,W)}}}f=f.next}while(f!==v)}}catch(W){Ot(a,a.return,W)}}function mm(n){var a=n.updateQueue;if(a!==null){var l=n.stateNode;try{dm(a,l)}catch(f){Ot(n,n.return,f)}}}function vm(n,a,l){l.props=vi(n.type,n.memoizedProps),l.state=n.memoizedState;try{l.componentWillUnmount()}catch(f){Ot(n,a,f)}}function gi(n,a){try{var l=n.ref;if(l!==null){var f=n.stateNode;switch(n.tag){case 26:case 27:case 5:var o=f;break;default:o=f}typeof l=="function"?n.refCleanup=l(o):l.current=o}}catch(v){Ot(n,a,v)}}function Xr(n,a){var l=n.ref,f=n.refCleanup;if(l!==null)if(typeof f=="function")try{f()}catch(o){Ot(n,a,o)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(o){Ot(n,a,o)}else l.current=null}function xm(n){var a=n.type,l=n.memoizedProps,f=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&f.focus();break e;case"img":l.src?f.src=l.src:l.srcSet&&(f.srcset=l.srcSet)}}catch(o){Ot(n,n.return,o)}}function pm(n,a,l){try{var f=n.stateNode;_y(f,n.type,l,a),f[C]=a}catch(o){Ot(n,n.return,o)}}function gm(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27||n.tag===4}function M0(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||gm(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==27&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function L0(n,a,l){var f=n.tag;if(f===5||f===6)n=n.stateNode,a?l.nodeType===8?l.parentNode.insertBefore(n,a):l.insertBefore(n,a):(l.nodeType===8?(a=l.parentNode,a.insertBefore(n,l)):(a=l,a.appendChild(n)),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=us));else if(f!==4&&f!==27&&(n=n.child,n!==null))for(L0(n,a,l),n=n.sibling;n!==null;)L0(n,a,l),n=n.sibling}function qf(n,a,l){var f=n.tag;if(f===5||f===6)n=n.stateNode,a?l.insertBefore(n,a):l.appendChild(n);else if(f!==4&&f!==27&&(n=n.child,n!==null))for(qf(n,a,l),n=n.sibling;n!==null;)qf(n,a,l),n=n.sibling}var ea=!1,Lt=!1,B0=!1,Em=typeof WeakSet=="function"?WeakSet:Set,nr=null,ym=!1;function QE(n,a){if(n=n.containerInfo,so=ms,n=Ud(n),Uc(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var f=l.getSelection&&l.getSelection();if(f&&f.rangeCount!==0){l=f.anchorNode;var o=f.anchorOffset,v=f.focusNode;f=f.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var _=0,R=-1,P=-1,W=0,de=0,Se=n,le=null;t:for(;;){for(var he;Se!==l||o!==0&&Se.nodeType!==3||(R=_+o),Se!==v||f!==0&&Se.nodeType!==3||(P=_+f),Se.nodeType===3&&(_+=Se.nodeValue.length),(he=Se.firstChild)!==null;)le=Se,Se=he;for(;;){if(Se===n)break t;if(le===l&&++W===o&&(R=_),le===v&&++de===f&&(P=_),(he=Se.nextSibling)!==null)break;Se=le,le=Se.parentNode}Se=he}l=R===-1||P===-1?null:{start:R,end:P}}else l=null}l=l||{start:0,end:0}}else l=null;for(co={focusedElem:n,selectionRange:l},ms=!1,nr=a;nr!==null;)if(a=nr,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,nr=n;else for(;nr!==null;){switch(a=nr,v=a.alternate,n=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if(n&1024&&v!==null){n=void 0,l=a,o=v.memoizedProps,v=v.memoizedState,f=l.stateNode;try{var Ge=vi(l.type,o,l.elementType===l.type);n=f.getSnapshotBeforeUpdate(Ge,v),f.__reactInternalSnapshotBeforeUpdate=n}catch(tt){Ot(l,l.return,tt)}}break;case 3:if(n&1024){if(n=a.stateNode.containerInfo,l=n.nodeType,l===9)vo(n);else if(l===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":vo(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(n&1024)throw Error(i(163))}if(n=a.sibling,n!==null){n.return=a.return,nr=n;break}nr=a.return}return Ge=ym,ym=!1,Ge}function _m(n,a,l){var f=l.flags;switch(l.tag){case 0:case 11:case 15:ra(n,l),f&4&&mu(5,l);break;case 1:if(ra(n,l),f&4)if(n=l.stateNode,a===null)try{n.componentDidMount()}catch(R){Ot(l,l.return,R)}else{var o=vi(l.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(o,a,n.__reactInternalSnapshotBeforeUpdate)}catch(R){Ot(l,l.return,R)}}f&64&&mm(l),f&512&&gi(l,l.return);break;case 3:if(ra(n,l),f&64&&(f=l.updateQueue,f!==null)){if(n=null,l.child!==null)switch(l.child.tag){case 27:case 5:n=l.child.stateNode;break;case 1:n=l.child.stateNode}try{dm(f,n)}catch(R){Ot(l,l.return,R)}}break;case 26:ra(n,l),f&512&&gi(l,l.return);break;case 27:case 5:ra(n,l),a===null&&f&4&&xm(l),f&512&&gi(l,l.return);break;case 12:ra(n,l);break;case 13:ra(n,l),f&4&&wm(n,l);break;case 22:if(o=l.memoizedState!==null||ea,!o){a=a!==null&&a.memoizedState!==null||Lt;var v=ea,_=Lt;ea=o,(Lt=a)&&!_?ba(n,l,(l.subtreeFlags&8772)!==0):ra(n,l),ea=v,Lt=_}f&512&&(l.memoizedProps.mode==="manual"?gi(l,l.return):Xr(l,l.return));break;default:ra(n,l)}}function Tm(n){var a=n.alternate;a!==null&&(n.alternate=null,Tm(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&re(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Yt=null,Yr=!1;function ta(n,a,l){for(l=l.child;l!==null;)Sm(n,a,l),l=l.sibling}function Sm(n,a,l){if(er&&typeof er.onCommitFiberUnmount=="function")try{er.onCommitFiberUnmount(yn,l)}catch{}switch(l.tag){case 26:Lt||Xr(l,a),ta(n,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Lt||Xr(l,a);var f=Yt,o=Yr;for(Yt=l.stateNode,ta(n,a,l),l=l.stateNode,a=l.attributes;a.length;)l.removeAttributeNode(a[0]);re(l),Yt=f,Yr=o;break;case 5:Lt||Xr(l,a);case 6:o=Yt;var v=Yr;if(Yt=null,ta(n,a,l),Yt=o,Yr=v,Yt!==null)if(Yr)try{n=Yt,f=l.stateNode,n.nodeType===8?n.parentNode.removeChild(f):n.removeChild(f)}catch(_){Ot(l,a,_)}else try{Yt.removeChild(l.stateNode)}catch(_){Ot(l,a,_)}break;case 18:Yt!==null&&(Yr?(a=Yt,l=l.stateNode,a.nodeType===8?mo(a.parentNode,l):a.nodeType===1&&mo(a,l),Fu(a)):mo(Yt,l.stateNode));break;case 4:f=Yt,o=Yr,Yt=l.stateNode.containerInfo,Yr=!0,ta(n,a,l),Yt=f,Yr=o;break;case 0:case 11:case 14:case 15:Lt||Na(2,l,a),Lt||Na(4,l,a),ta(n,a,l);break;case 1:Lt||(Xr(l,a),f=l.stateNode,typeof f.componentWillUnmount=="function"&&vm(l,a,f)),ta(n,a,l);break;case 21:ta(n,a,l);break;case 22:Lt||Xr(l,a),Lt=(f=Lt)||l.memoizedState!==null,ta(n,a,l),Lt=f;break;default:ta(n,a,l)}}function wm(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Fu(n)}catch(l){Ot(a,a.return,l)}}function ZE(n){switch(n.tag){case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new Em),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new Em),a;default:throw Error(i(435,n.tag))}}function k0(n,a){var l=ZE(n);a.forEach(function(f){var o=oy.bind(null,n,f);l.has(f)||(l.add(f),f.then(o,o))})}function on(n,a){var l=a.deletions;if(l!==null)for(var f=0;f<l.length;f++){var o=l[f],v=n,_=a,R=_;e:for(;R!==null;){switch(R.tag){case 27:case 5:Yt=R.stateNode,Yr=!1;break e;case 3:Yt=R.stateNode.containerInfo,Yr=!0;break e;case 4:Yt=R.stateNode.containerInfo,Yr=!0;break e}R=R.return}if(Yt===null)throw Error(i(160));Sm(v,_,o),Yt=null,Yr=!1,v=o.alternate,v!==null&&(v.return=null),o.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)Am(a,n),a=a.sibling}var wn=null;function Am(n,a){var l=n.alternate,f=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:on(a,n),hn(n),f&4&&(Na(3,n,n.return),mu(3,n),Na(5,n,n.return));break;case 1:on(a,n),hn(n),f&512&&(Lt||l===null||Xr(l,l.return)),f&64&&ea&&(n=n.updateQueue,n!==null&&(f=n.callbacks,f!==null&&(l=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=l===null?f:l.concat(f))));break;case 26:var o=wn;if(on(a,n),hn(n),f&512&&(Lt||l===null||Xr(l,l.return)),f&4){var v=l!==null?l.memoizedState:null;if(f=n.memoizedState,l===null)if(f===null)if(n.stateNode===null){e:{f=n.type,l=n.memoizedProps,o=o.ownerDocument||o;t:switch(f){case"title":v=o.getElementsByTagName("title")[0],(!v||v[te]||v[A]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=o.createElement(f),o.head.insertBefore(v,o.querySelector("head > title"))),mr(v,f,l),v[A]=n,Ae(v),f=v;break e;case"link":var _=xv("link","href",o).get(f+(l.href||""));if(_){for(var R=0;R<_.length;R++)if(v=_[R],v.getAttribute("href")===(l.href==null?null:l.href)&&v.getAttribute("rel")===(l.rel==null?null:l.rel)&&v.getAttribute("title")===(l.title==null?null:l.title)&&v.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){_.splice(R,1);break t}}v=o.createElement(f),mr(v,f,l),o.head.appendChild(v);break;case"meta":if(_=xv("meta","content",o).get(f+(l.content||""))){for(R=0;R<_.length;R++)if(v=_[R],v.getAttribute("content")===(l.content==null?null:""+l.content)&&v.getAttribute("name")===(l.name==null?null:l.name)&&v.getAttribute("property")===(l.property==null?null:l.property)&&v.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&v.getAttribute("charset")===(l.charSet==null?null:l.charSet)){_.splice(R,1);break t}}v=o.createElement(f),mr(v,f,l),o.head.appendChild(v);break;default:throw Error(i(468,f))}v[A]=n,Ae(v),f=v}n.stateNode=f}else pv(o,n.type,n.stateNode);else n.stateNode=vv(o,f,n.memoizedProps);else v!==f?(v===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):v.count--,f===null?pv(o,n.type,n.stateNode):vv(o,f,n.memoizedProps)):f===null&&n.stateNode!==null&&pm(n,n.memoizedProps,l.memoizedProps)}break;case 27:if(f&4&&n.alternate===null){o=n.stateNode,v=n.memoizedProps;try{for(var P=o.firstChild;P;){var W=P.nextSibling,de=P.nodeName;P[te]||de==="HEAD"||de==="BODY"||de==="SCRIPT"||de==="STYLE"||de==="LINK"&&P.rel.toLowerCase()==="stylesheet"||o.removeChild(P),P=W}for(var Se=n.type,le=o.attributes;le.length;)o.removeAttributeNode(le[0]);mr(o,Se,v),o[A]=n,o[C]=v}catch(Ge){Ot(n,n.return,Ge)}}case 5:if(on(a,n),hn(n),f&512&&(Lt||l===null||Xr(l,l.return)),n.flags&32){o=n.stateNode;try{ji(o,"")}catch(Ge){Ot(n,n.return,Ge)}}f&4&&n.stateNode!=null&&(o=n.memoizedProps,pm(n,o,l!==null?l.memoizedProps:o)),f&1024&&(B0=!0);break;case 6:if(on(a,n),hn(n),f&4){if(n.stateNode===null)throw Error(i(162));f=n.memoizedProps,l=n.stateNode;try{l.nodeValue=f}catch(Ge){Ot(n,n.return,Ge)}}break;case 3:if(os=null,o=wn,wn=ss(a.containerInfo),on(a,n),wn=o,hn(n),f&4&&l!==null&&l.memoizedState.isDehydrated)try{Fu(a.containerInfo)}catch(Ge){Ot(n,n.return,Ge)}B0&&(B0=!1,Rm(n));break;case 4:f=wn,wn=ss(n.stateNode.containerInfo),on(a,n),hn(n),wn=f;break;case 12:on(a,n),hn(n);break;case 13:on(a,n),hn(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(X0=Tt()),f&4&&(f=n.updateQueue,f!==null&&(n.updateQueue=null,k0(n,f)));break;case 22:if(f&512&&(Lt||l===null||Xr(l,l.return)),P=n.memoizedState!==null,W=l!==null&&l.memoizedState!==null,de=ea,Se=Lt,ea=de||P,Lt=Se||W,on(a,n),Lt=Se,ea=de,hn(n),a=n.stateNode,a._current=n,a._visibility&=-3,a._visibility|=a._pendingVisibility&2,f&8192&&(a._visibility=P?a._visibility&-2:a._visibility|1,P&&(a=ea||Lt,l===null||W||a||il(n)),n.memoizedProps===null||n.memoizedProps.mode!=="manual"))e:for(l=null,a=n;;){if(a.tag===5||a.tag===26||a.tag===27){if(l===null){W=l=a;try{if(o=W.stateNode,P)v=o.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{_=W.stateNode,R=W.memoizedProps.style;var he=R!=null&&R.hasOwnProperty("display")?R.display:null;_.style.display=he==null||typeof he=="boolean"?"":(""+he).trim()}}catch(Ge){Ot(W,W.return,Ge)}}}else if(a.tag===6){if(l===null){W=a;try{W.stateNode.nodeValue=P?"":W.memoizedProps}catch(Ge){Ot(W,W.return,Ge)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}f&4&&(f=n.updateQueue,f!==null&&(l=f.retryQueue,l!==null&&(f.retryQueue=null,k0(n,l))));break;case 19:on(a,n),hn(n),f&4&&(f=n.updateQueue,f!==null&&(n.updateQueue=null,k0(n,f)));break;case 21:break;default:on(a,n),hn(n)}}function hn(n){var a=n.flags;if(a&2){try{if(n.tag!==27){e:{for(var l=n.return;l!==null;){if(gm(l)){var f=l;break e}l=l.return}throw Error(i(160))}switch(f.tag){case 27:var o=f.stateNode,v=M0(n);qf(n,v,o);break;case 5:var _=f.stateNode;f.flags&32&&(ji(_,""),f.flags&=-33);var R=M0(n);qf(n,R,_);break;case 3:case 4:var P=f.stateNode.containerInfo,W=M0(n);L0(n,W,P);break;default:throw Error(i(161))}}}catch(de){Ot(n,n.return,de)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function Rm(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;Rm(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function ra(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)_m(n,a.alternate,a),a=a.sibling}function il(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:Na(4,a,a.return),il(a);break;case 1:Xr(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&vm(a,a.return,l),il(a);break;case 26:case 27:case 5:Xr(a,a.return),il(a);break;case 22:Xr(a,a.return),a.memoizedState===null&&il(a);break;default:il(a)}n=n.sibling}}function ba(n,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var f=a.alternate,o=n,v=a,_=v.flags;switch(v.tag){case 0:case 11:case 15:ba(o,v,l),mu(4,v);break;case 1:if(ba(o,v,l),f=v,o=f.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(W){Ot(f,f.return,W)}if(f=v,o=f.updateQueue,o!==null){var R=f.stateNode;try{var P=o.shared.hiddenCallbacks;if(P!==null)for(o.shared.hiddenCallbacks=null,o=0;o<P.length;o++)hm(P[o],R)}catch(W){Ot(f,f.return,W)}}l&&_&64&&mm(v),gi(v,v.return);break;case 26:case 27:case 5:ba(o,v,l),l&&f===null&&_&4&&xm(v),gi(v,v.return);break;case 12:ba(o,v,l);break;case 13:ba(o,v,l),l&&_&4&&wm(o,v);break;case 22:v.memoizedState===null&&ba(o,v,l),gi(v,v.return);break;default:ba(o,v,l)}a=a.sibling}}function U0(n,a){var l=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==l&&(n!=null&&n.refCount++,l!=null&&au(l))}function P0(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&au(n))}function Fa(n,a,l,f){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Cm(n,a,l,f),a=a.sibling}function Cm(n,a,l,f){var o=a.flags;switch(a.tag){case 0:case 11:case 15:Fa(n,a,l,f),o&2048&&mu(9,a);break;case 3:Fa(n,a,l,f),o&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&au(n)));break;case 12:if(o&2048){Fa(n,a,l,f),n=a.stateNode;try{var v=a.memoizedProps,_=v.id,R=v.onPostCommit;typeof R=="function"&&R(_,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(P){Ot(a,a.return,P)}}else Fa(n,a,l,f);break;case 23:break;case 22:v=a.stateNode,a.memoizedState!==null?v._visibility&4?Fa(n,a,l,f):vu(n,a):v._visibility&4?Fa(n,a,l,f):(v._visibility|=4,ll(n,a,l,f,(a.subtreeFlags&10256)!==0)),o&2048&&U0(a.alternate,a);break;case 24:Fa(n,a,l,f),o&2048&&P0(a.alternate,a);break;default:Fa(n,a,l,f)}}function ll(n,a,l,f,o){for(o=o&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var v=n,_=a,R=l,P=f,W=_.flags;switch(_.tag){case 0:case 11:case 15:ll(v,_,R,P,o),mu(8,_);break;case 23:break;case 22:var de=_.stateNode;_.memoizedState!==null?de._visibility&4?ll(v,_,R,P,o):vu(v,_):(de._visibility|=4,ll(v,_,R,P,o)),o&&W&2048&&U0(_.alternate,_);break;case 24:ll(v,_,R,P,o),o&&W&2048&&P0(_.alternate,_);break;default:ll(v,_,R,P,o)}a=a.sibling}}function vu(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=n,f=a,o=f.flags;switch(f.tag){case 22:vu(l,f),o&2048&&U0(f.alternate,f);break;case 24:vu(l,f),o&2048&&P0(f.alternate,f);break;default:vu(l,f)}a=a.sibling}}var xu=8192;function ul(n){if(n.subtreeFlags&xu)for(n=n.child;n!==null;)Om(n),n=n.sibling}function Om(n){switch(n.tag){case 26:ul(n),n.flags&xu&&n.memoizedState!==null&&Iy(wn,n.memoizedState,n.memoizedProps);break;case 5:ul(n);break;case 3:case 4:var a=wn;wn=ss(n.stateNode.containerInfo),ul(n),wn=a;break;case 22:n.memoizedState===null&&(a=n.alternate,a!==null&&a.memoizedState!==null?(a=xu,xu=16777216,ul(n),xu=a):ul(n));break;default:ul(n)}}function Dm(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function pu(n){var a=n.deletions;if(n.flags&16){if(a!==null)for(var l=0;l<a.length;l++){var f=a[l];nr=f,bm(f,n)}Dm(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Nm(n),n=n.sibling}function Nm(n){switch(n.tag){case 0:case 11:case 15:pu(n),n.flags&2048&&Na(9,n,n.return);break;case 3:pu(n);break;case 12:pu(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&4&&(n.return===null||n.return.tag!==13)?(a._visibility&=-5,Kf(n)):pu(n);break;default:pu(n)}}function Kf(n){var a=n.deletions;if(n.flags&16){if(a!==null)for(var l=0;l<a.length;l++){var f=a[l];nr=f,bm(f,n)}Dm(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:Na(8,a,a.return),Kf(a);break;case 22:l=a.stateNode,l._visibility&4&&(l._visibility&=-5,Kf(a));break;default:Kf(a)}n=n.sibling}}function bm(n,a){for(;nr!==null;){var l=nr;switch(l.tag){case 0:case 11:case 15:Na(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var f=l.memoizedState.cachePool.pool;f!=null&&f.refCount++}break;case 24:au(l.memoizedState.cache)}if(f=l.child,f!==null)f.return=l,nr=f;else e:for(l=n;nr!==null;){f=nr;var o=f.sibling,v=f.return;if(Tm(f),f===l){nr=null;break e}if(o!==null){o.return=v,nr=o;break e}nr=v}}}function JE(n,a,l,f){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dn(n,a,l,f){return new JE(n,a,l,f)}function H0(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Ma(n,a){var l=n.alternate;return l===null?(l=dn(n.tag,a,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=a,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&31457280,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,a=n.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l.refCleanup=n.refCleanup,l}function Fm(n,a){n.flags&=31457282;var l=n.alternate;return l===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=l.childLanes,n.lanes=l.lanes,n.child=l.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=l.memoizedProps,n.memoizedState=l.memoizedState,n.updateQueue=l.updateQueue,n.type=l.type,a=l.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function $f(n,a,l,f,o,v){var _=0;if(f=n,typeof n=="function")H0(n)&&(_=1);else if(typeof n=="string")_=Py(n,l,Je.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case m:return Ei(l.children,o,v,a);case d:_=8,o|=24;break;case x:return n=dn(12,l,a,o|2),n.elementType=x,n.lanes=v,n;case y:return n=dn(13,l,a,o),n.elementType=y,n.lanes=v,n;case w:return n=dn(19,l,a,o),n.elementType=w,n.lanes=v,n;case B:return Mm(l,o,v,a);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case E:case g:_=10;break e;case p:_=9;break e;case S:_=11;break e;case D:_=14;break e;case U:_=16,f=null;break e}_=29,l=Error(i(130,n===null?"null":typeof n,"")),f=null}return a=dn(_,l,a,o),a.elementType=n,a.type=f,a.lanes=v,a}function Ei(n,a,l,f){return n=dn(7,n,f,a),n.lanes=l,n}function Mm(n,a,l,f){n=dn(22,n,f,a),n.elementType=B,n.lanes=l;var o={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var v=o._current;if(v===null)throw Error(i(456));if(!(o._pendingVisibility&2)){var _=_a(v,2);_!==null&&(o._pendingVisibility|=2,br(_,v,2))}},attach:function(){var v=o._current;if(v===null)throw Error(i(456));if(o._pendingVisibility&2){var _=_a(v,2);_!==null&&(o._pendingVisibility&=-3,br(_,v,2))}}};return n.stateNode=o,n}function I0(n,a,l){return n=dn(6,n,null,a),n.lanes=l,n}function z0(n,a,l){return a=dn(4,n.children!==null?n.children:[],n.key,a),a.lanes=l,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}function na(n){n.flags|=4}function Lm(n,a){if(a.type!=="stylesheet"||a.state.loading&4)n.flags&=-16777217;else if(n.flags|=16777216,!gv(a)){if(a=cn.current,a!==null&&((ht&4194176)===ht?Bn!==null:(ht&62914560)!==ht&&!(ht&536870912)||a!==Bn))throw tu=Yc,Qd;n.flags|=8192}}function Qf(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Q():536870912,n.lanes|=a,sl|=a)}function gu(n,a){if(!dt)switch(n.tailMode){case"hidden":a=n.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var f=null;l!==null;)l.alternate!==null&&(f=l),l=l.sibling;f===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:f.sibling=null}}function Ft(n){var a=n.alternate!==null&&n.alternate.child===n.child,l=0,f=0;if(a)for(var o=n.child;o!==null;)l|=o.lanes|o.childLanes,f|=o.subtreeFlags&31457280,f|=o.flags&31457280,o.return=n,o=o.sibling;else for(o=n.child;o!==null;)l|=o.lanes|o.childLanes,f|=o.subtreeFlags,f|=o.flags,o.return=n,o=o.sibling;return n.subtreeFlags|=f,n.childLanes=l,a}function ey(n,a,l){var f=a.pendingProps;switch(Vc(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ft(a),null;case 1:return Ft(a),null;case 3:return l=a.stateNode,f=null,n!==null&&(f=n.memoizedState.cache),a.memoizedState.cache!==f&&(a.flags|=2048),Jn(Zt),ft(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(n===null||n.child===null)&&(Ql(a)?na(a):n===null||n.memoizedState.isDehydrated&&!(a.flags&256)||(a.flags|=1024,Sn!==null&&(K0(Sn),Sn=null))),Ft(a),null;case 26:return l=a.memoizedState,n===null?(na(a),l!==null?(Ft(a),Lm(a,l)):(Ft(a),a.flags&=-16777217)):l?l!==n.memoizedState?(na(a),Ft(a),Lm(a,l)):(Ft(a),a.flags&=-16777217):(n.memoizedProps!==f&&na(a),Ft(a),a.flags&=-16777217),null;case 27:It(a),l=lt.current;var o=a.type;if(n!==null&&a.stateNode!=null)n.memoizedProps!==f&&na(a);else{if(!f){if(a.stateNode===null)throw Error(i(166));return Ft(a),null}n=Je.current,Ql(a)?Kd(a):(n=cv(o,f,l),a.stateNode=n,na(a))}return Ft(a),null;case 5:if(It(a),l=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==f&&na(a);else{if(!f){if(a.stateNode===null)throw Error(i(166));return Ft(a),null}if(n=Je.current,Ql(a))Kd(a);else{switch(o=fs(lt.current),n){case 1:n=o.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:n=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":n=o.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":n=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":n=o.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof f.is=="string"?o.createElement("select",{is:f.is}):o.createElement("select"),f.multiple?n.multiple=!0:f.size&&(n.size=f.size);break;default:n=typeof f.is=="string"?o.createElement(l,{is:f.is}):o.createElement(l)}}n[A]=a,n[C]=f;e:for(o=a.child;o!==null;){if(o.tag===5||o.tag===6)n.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}a.stateNode=n;e:switch(mr(n,l,f),l){case"button":case"input":case"select":case"textarea":n=!!f.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&na(a)}}return Ft(a),a.flags&=-16777217,null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==f&&na(a);else{if(typeof f!="string"&&a.stateNode===null)throw Error(i(166));if(n=lt.current,Ql(a)){if(n=a.stateNode,l=a.memoizedProps,f=null,o=Nr,o!==null)switch(o.tag){case 27:case 5:f=o.memoizedProps}n[A]=a,n=!!(n.nodeValue===l||f!==null&&f.suppressHydrationWarning===!0||av(n.nodeValue,l)),n||si(a)}else n=fs(n).createTextNode(f),n[A]=a,a.stateNode=n}return Ft(a),null;case 13:if(f=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(o=Ql(a),f!==null&&f.dehydrated!==null){if(n===null){if(!o)throw Error(i(318));if(o=a.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(i(317));o[A]=a}else Zl(),!(a.flags&128)&&(a.memoizedState=null),a.flags|=4;Ft(a),o=!1}else Sn!==null&&(K0(Sn),Sn=null),o=!0;if(!o)return a.flags&256?(Kn(a),a):(Kn(a),null)}if(Kn(a),a.flags&128)return a.lanes=l,a;if(l=f!==null,n=n!==null&&n.memoizedState!==null,l){f=a.child,o=null,f.alternate!==null&&f.alternate.memoizedState!==null&&f.alternate.memoizedState.cachePool!==null&&(o=f.alternate.memoizedState.cachePool.pool);var v=null;f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(v=f.memoizedState.cachePool.pool),v!==o&&(f.flags|=2048)}return l!==n&&l&&(a.child.flags|=8192),Qf(a,a.updateQueue),Ft(a),null;case 4:return ft(),n===null&&lo(a.stateNode.containerInfo),Ft(a),null;case 10:return Jn(a.type),Ft(a),null;case 19:if(_e(Qt),o=a.memoizedState,o===null)return Ft(a),null;if(f=(a.flags&128)!==0,v=o.rendering,v===null)if(f)gu(o,!1);else{if(Bt!==0||n!==null&&n.flags&128)for(n=a.child;n!==null;){if(v=Lf(n),v!==null){for(a.flags|=128,gu(o,!1),n=v.updateQueue,a.updateQueue=n,Qf(a,n),a.subtreeFlags=0,n=l,l=a.child;l!==null;)Fm(l,n),l=l.sibling;return xe(Qt,Qt.current&1|2),a.child}n=n.sibling}o.tail!==null&&Tt()>Zf&&(a.flags|=128,f=!0,gu(o,!1),a.lanes=4194304)}else{if(!f)if(n=Lf(v),n!==null){if(a.flags|=128,f=!0,n=n.updateQueue,a.updateQueue=n,Qf(a,n),gu(o,!0),o.tail===null&&o.tailMode==="hidden"&&!v.alternate&&!dt)return Ft(a),null}else 2*Tt()-o.renderingStartTime>Zf&&l!==536870912&&(a.flags|=128,f=!0,gu(o,!1),a.lanes=4194304);o.isBackwards?(v.sibling=a.child,a.child=v):(n=o.last,n!==null?n.sibling=v:a.child=v,o.last=v)}return o.tail!==null?(a=o.tail,o.rendering=a,o.tail=a.sibling,o.renderingStartTime=Tt(),a.sibling=null,n=Qt.current,xe(Qt,f?n&1|2:n&1),a):(Ft(a),null);case 22:case 23:return Kn(a),qc(),f=a.memoizedState!==null,n!==null?n.memoizedState!==null!==f&&(a.flags|=8192):f&&(a.flags|=8192),f?l&536870912&&!(a.flags&128)&&(Ft(a),a.subtreeFlags&6&&(a.flags|=8192)):Ft(a),l=a.updateQueue,l!==null&&Qf(a,l.retryQueue),l=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),f=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),f!==l&&(a.flags|=2048),n!==null&&_e(oi),null;case 24:return l=null,n!==null&&(l=n.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Jn(Zt),Ft(a),null;case 25:return null}throw Error(i(156,a.tag))}function ty(n,a){switch(Vc(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return Jn(Zt),ft(),n=a.flags,n&65536&&!(n&128)?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return It(a),null;case 13:if(Kn(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Zl()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return _e(Qt),null;case 4:return ft(),null;case 10:return Jn(a.type),null;case 22:case 23:return Kn(a),qc(),n!==null&&_e(oi),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return Jn(Zt),null;case 25:return null;default:return null}}function Bm(n,a){switch(Vc(a),a.tag){case 3:Jn(Zt),ft();break;case 26:case 27:case 5:It(a);break;case 4:ft();break;case 13:Kn(a);break;case 19:_e(Qt);break;case 10:Jn(a.type);break;case 22:case 23:Kn(a),qc(),n!==null&&_e(oi);break;case 24:Jn(Zt)}}var ry={getCacheForType:function(n){var a=Tr(Zt),l=a.data.get(n);return l===void 0&&(l=n(),a.data.set(n,l)),l}},ny=typeof WeakMap=="function"?WeakMap:Map,Mt=0,Dt=null,st=null,ht=0,Nt=0,Wr=null,aa=!1,fl=!1,j0=!1,ia=0,Bt=0,La=0,yi=0,G0=0,mn=0,sl=0,Eu=null,Un=null,V0=!1,X0=0,Zf=1/0,Jf=null,Ba=null,es=!1,_i=null,yu=0,Y0=0,W0=null,_u=0,q0=null;function qr(){if(Mt&2&&ht!==0)return ht&-ht;if(I.T!==null){var n=el;return n!==0?n:ro()}return Ie()}function km(){mn===0&&(mn=!(ht&536870912)||dt?V():536870912);var n=cn.current;return n!==null&&(n.flags|=32),mn}function br(n,a,l){(n===Dt&&Nt===2||n.cancelPendingCommit!==null)&&(cl(n,0),la(n,ht,mn,!1)),Te(n,l),(!(Mt&2)||n!==Dt)&&(n===Dt&&(!(Mt&2)&&(yi|=l),Bt===4&&la(n,ht,mn,!1)),Pn(n))}function Um(n,a,l){if(Mt&6)throw Error(i(327));var f=!l&&(a&60)===0&&(a&n.expiredLanes)===0||Xn(n,a),o=f?ly(n,a):Z0(n,a,!0),v=f;do{if(o===0){fl&&!f&&la(n,a,0,!1);break}else if(o===6)la(n,a,0,!aa);else{if(l=n.current.alternate,v&&!ay(l)){o=Z0(n,a,!1),v=!1;continue}if(o===2){if(v=a,n.errorRecoveryDisabledLanes&v)var _=0;else _=n.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){a=_;e:{var R=n;o=Eu;var P=R.current.memoizedState.isDehydrated;if(P&&(cl(R,_).flags|=256),_=Z0(R,_,!1),_!==2){if(j0&&!P){R.errorRecoveryDisabledLanes|=v,yi|=v,o=4;break e}v=Un,Un=o,v!==null&&K0(v)}o=_}if(v=!1,o!==2)continue}}if(o===1){cl(n,0),la(n,a,0,!0);break}e:{switch(f=n,o){case 0:case 1:throw Error(i(345));case 4:if((a&4194176)===a){la(f,a,mn,!aa);break e}break;case 2:Un=null;break;case 3:case 5:break;default:throw Error(i(329))}if(f.finishedWork=l,f.finishedLanes=a,(a&62914560)===a&&(v=X0+300-Tt(),10<v)){if(la(f,a,mn,!aa),_n(f,0)!==0)break e;f.timeoutHandle=uv(Pm.bind(null,f,l,Un,Jf,V0,a,mn,yi,sl,aa,2,-0,0),v);break e}Pm(f,l,Un,Jf,V0,a,mn,yi,sl,aa,0,-0,0)}}break}while(!0);Pn(n)}function K0(n){Un===null?Un=n:Un.push.apply(Un,n)}function Pm(n,a,l,f,o,v,_,R,P,W,de,Se,le){var he=a.subtreeFlags;if((he&8192||(he&16785408)===16785408)&&(Cu={stylesheets:null,count:0,unsuspend:Hy},Om(a),a=zy(),a!==null)){n.cancelPendingCommit=a(Xm.bind(null,n,l,f,o,_,R,P,1,Se,le)),la(n,v,_,!W);return}Xm(n,l,f,o,_,R,P,de,Se,le)}function ay(n){for(var a=n;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var f=0;f<l.length;f++){var o=l[f],v=o.getSnapshot;o=o.value;try{if(!Vr(v(),o))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function la(n,a,l,f){a&=~G0,a&=~yi,n.suspendedLanes|=a,n.pingedLanes&=~a,f&&(n.warmLanes|=a),f=n.expirationTimes;for(var o=a;0<o;){var v=31-tr(o),_=1<<v;f[v]=-1,o&=~_}l!==0&&ze(n,l,a)}function ts(){return Mt&6?!0:(Tu(0),!1)}function $0(){if(st!==null){if(Nt===0)var n=st.return;else n=st,Zn=xi=null,r0(n),Zi=null,ru=0,n=st;for(;n!==null;)Bm(n.alternate,n),n=n.return;st=null}}function cl(n,a){n.finishedWork=null,n.finishedLanes=0;var l=n.timeoutHandle;l!==-1&&(n.timeoutHandle=-1,Sy(l)),l=n.cancelPendingCommit,l!==null&&(n.cancelPendingCommit=null,l()),$0(),Dt=n,st=l=Ma(n.current,null),ht=a,Nt=0,Wr=null,aa=!1,fl=Xn(n,a),j0=!1,sl=mn=G0=yi=La=Bt=0,Un=Eu=null,V0=!1,a&8&&(a|=a&32);var f=n.entangledLanes;if(f!==0)for(n=n.entanglements,f&=a;0<f;){var o=31-tr(f),v=1<<o;a|=n[o],f&=~v}return ia=a,Af(),l}function Hm(n,a){it=null,I.H=kn,a===eu?(a=e1(),Nt=3):a===Qd?(a=e1(),Nt=4):Nt=a===Z1?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Wr=a,st===null&&(Bt=1,Xf(n,un(a,n.current)))}function Im(){var n=I.H;return I.H=kn,n===null?kn:n}function zm(){var n=I.A;return I.A=ry,n}function Q0(){Bt=4,aa||(ht&4194176)!==ht&&cn.current!==null||(fl=!0),!(La&134217727)&&!(yi&134217727)||Dt===null||la(Dt,ht,mn,!1)}function Z0(n,a,l){var f=Mt;Mt|=2;var o=Im(),v=zm();(Dt!==n||ht!==a)&&(Jf=null,cl(n,a)),a=!1;var _=Bt;e:do try{if(Nt!==0&&st!==null){var R=st,P=Wr;switch(Nt){case 8:$0(),_=6;break e;case 3:case 2:case 6:cn.current===null&&(a=!0);var W=Nt;if(Nt=0,Wr=null,ol(n,R,P,W),l&&fl){_=0;break e}break;default:W=Nt,Nt=0,Wr=null,ol(n,R,P,W)}}iy(),_=Bt;break}catch(de){Hm(n,de)}while(!0);return a&&n.shellSuspendCounter++,Zn=xi=null,Mt=f,I.H=o,I.A=v,st===null&&(Dt=null,ht=0,Af()),_}function iy(){for(;st!==null;)jm(st)}function ly(n,a){var l=Mt;Mt|=2;var f=Im(),o=zm();Dt!==n||ht!==a?(Jf=null,Zf=Tt()+500,cl(n,a)):fl=Xn(n,a);e:do try{if(Nt!==0&&st!==null){a=st;var v=Wr;t:switch(Nt){case 1:Nt=0,Wr=null,ol(n,a,v,1);break;case 2:if(Zd(v)){Nt=0,Wr=null,Gm(a);break}a=function(){Nt===2&&Dt===n&&(Nt=7),Pn(n)},v.then(a,a);break e;case 3:Nt=7;break e;case 4:Nt=5;break e;case 7:Zd(v)?(Nt=0,Wr=null,Gm(a)):(Nt=0,Wr=null,ol(n,a,v,7));break;case 5:var _=null;switch(st.tag){case 26:_=st.memoizedState;case 5:case 27:var R=st;if(!_||gv(_)){Nt=0,Wr=null;var P=R.sibling;if(P!==null)st=P;else{var W=R.return;W!==null?(st=W,rs(W)):st=null}break t}}Nt=0,Wr=null,ol(n,a,v,5);break;case 6:Nt=0,Wr=null,ol(n,a,v,6);break;case 8:$0(),Bt=6;break e;default:throw Error(i(462))}}uy();break}catch(de){Hm(n,de)}while(!0);return Zn=xi=null,I.H=f,I.A=o,Mt=l,st!==null?0:(Dt=null,ht=0,Af(),Bt)}function uy(){for(;st!==null&&!rn();)jm(st)}function jm(n){var a=cm(n.alternate,n,ia);n.memoizedProps=n.pendingProps,a===null?rs(n):st=a}function Gm(n){var a=n,l=a.alternate;switch(a.tag){case 15:case 0:a=am(l,a,a.pendingProps,a.type,void 0,ht);break;case 11:a=am(l,a,a.pendingProps,a.type.render,a.ref,ht);break;case 5:r0(a);default:Bm(l,a),a=st=Fm(a,ia),a=cm(l,a,ia)}n.memoizedProps=n.pendingProps,a===null?rs(n):st=a}function ol(n,a,l,f){Zn=xi=null,r0(a),Zi=null,ru=0;var o=a.return;try{if(KE(n,o,a,l,ht)){Bt=1,Xf(n,un(l,n.current)),st=null;return}}catch(v){if(o!==null)throw st=o,v;Bt=1,Xf(n,un(l,n.current)),st=null;return}a.flags&32768?(dt||f===1?n=!0:fl||ht&536870912?n=!1:(aa=n=!0,(f===2||f===3||f===6)&&(f=cn.current,f!==null&&f.tag===13&&(f.flags|=16384))),Vm(a,n)):rs(a)}function rs(n){var a=n;do{if(a.flags&32768){Vm(a,aa);return}n=a.return;var l=ey(a.alternate,a,ia);if(l!==null){st=l;return}if(a=a.sibling,a!==null){st=a;return}st=a=n}while(a!==null);Bt===0&&(Bt=5)}function Vm(n,a){do{var l=ty(n.alternate,n);if(l!==null){l.flags&=32767,st=l;return}if(l=n.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(n=n.sibling,n!==null)){st=n;return}st=n=l}while(n!==null);Bt=6,st=null}function Xm(n,a,l,f,o,v,_,R,P,W){var de=I.T,Se=k.p;try{k.p=2,I.T=null,fy(n,a,l,f,Se,o,v,_,R,P,W)}finally{I.T=de,k.p=Se}}function fy(n,a,l,f,o,v,_,R){do hl();while(_i!==null);if(Mt&6)throw Error(i(327));var P=n.finishedWork;if(f=n.finishedLanes,P===null)return null;if(n.finishedWork=null,n.finishedLanes=0,P===n.current)throw Error(i(177));n.callbackNode=null,n.callbackPriority=0,n.cancelPendingCommit=null;var W=P.lanes|P.childLanes;if(W|=zc,Ue(n,f,W,v,_,R),n===Dt&&(st=Dt=null,ht=0),!(P.subtreeFlags&10256)&&!(P.flags&10256)||es||(es=!0,Y0=W,W0=l,hy($t,function(){return hl(),null})),l=(P.flags&15990)!==0,P.subtreeFlags&15990||l?(l=I.T,I.T=null,v=k.p,k.p=2,_=Mt,Mt|=4,QE(n,P),Am(P,n),FE(co,n.containerInfo),ms=!!so,co=so=null,n.current=P,_m(n,P.alternate,P),Mn(),Mt=_,k.p=v,I.T=l):n.current=P,es?(es=!1,_i=n,yu=f):Ym(n,W),W=n.pendingLanes,W===0&&(Ba=null),ti(P.stateNode),Pn(n),a!==null)for(o=n.onRecoverableError,P=0;P<a.length;P++)W=a[P],o(W.value,{componentStack:W.stack});return yu&3&&hl(),W=n.pendingLanes,f&4194218&&W&42?n===q0?_u++:(_u=0,q0=n):_u=0,Tu(0),null}function Ym(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,au(a)))}function hl(){if(_i!==null){var n=_i,a=Y0;Y0=0;var l=Pe(yu),f=I.T,o=k.p;try{if(k.p=32>l?32:l,I.T=null,_i===null)var v=!1;else{l=W0,W0=null;var _=_i,R=yu;if(_i=null,yu=0,Mt&6)throw Error(i(331));var P=Mt;if(Mt|=4,Nm(_.current),Cm(_,_.current,R,l),Mt=P,Tu(0,!1),er&&typeof er.onPostCommitFiberRoot=="function")try{er.onPostCommitFiberRoot(yn,_)}catch{}v=!0}return v}finally{k.p=o,I.T=f,Ym(n,a)}}return!1}function Wm(n,a,l){a=un(l,a),a=x0(n.stateNode,a,2),n=Da(n,a,2),n!==null&&(Te(n,2),Pn(n))}function Ot(n,a,l){if(n.tag===3)Wm(n,n,l);else for(;a!==null;){if(a.tag===3){Wm(a,n,l);break}else if(a.tag===1){var f=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Ba===null||!Ba.has(f))){n=un(l,n),l=$1(2),f=Da(a,l,2),f!==null&&(Q1(l,f,a,n),Te(f,2),Pn(f));break}}a=a.return}}function J0(n,a,l){var f=n.pingCache;if(f===null){f=n.pingCache=new ny;var o=new Set;f.set(a,o)}else o=f.get(a),o===void 0&&(o=new Set,f.set(a,o));o.has(l)||(j0=!0,o.add(l),n=sy.bind(null,n,a,l),a.then(n,n))}function sy(n,a,l){var f=n.pingCache;f!==null&&f.delete(a),n.pingedLanes|=n.suspendedLanes&l,n.warmLanes&=~l,Dt===n&&(ht&l)===l&&(Bt===4||Bt===3&&(ht&62914560)===ht&&300>Tt()-X0?!(Mt&2)&&cl(n,0):G0|=l,sl===ht&&(sl=0)),Pn(n)}function qm(n,a){a===0&&(a=Q()),n=_a(n,a),n!==null&&(Te(n,a),Pn(n))}function cy(n){var a=n.memoizedState,l=0;a!==null&&(l=a.retryLane),qm(n,l)}function oy(n,a){var l=0;switch(n.tag){case 13:var f=n.stateNode,o=n.memoizedState;o!==null&&(l=o.retryLane);break;case 19:f=n.stateNode;break;case 22:f=n.stateNode._retryCache;break;default:throw Error(i(314))}f!==null&&f.delete(a),qm(n,l)}function hy(n,a){return Cr(n,a)}var ns=null,dl=null,eo=!1,as=!1,to=!1,Ti=0;function Pn(n){n!==dl&&n.next===null&&(dl===null?ns=dl=n:dl=dl.next=n),as=!0,eo||(eo=!0,my(dy))}function Tu(n,a){if(!to&&as){to=!0;do for(var l=!1,f=ns;f!==null;){if(n!==0){var o=f.pendingLanes;if(o===0)var v=0;else{var _=f.suspendedLanes,R=f.pingedLanes;v=(1<<31-tr(42|n)+1)-1,v&=o&~(_&~R),v=v&201326677?v&201326677|1:v?v|2:0}v!==0&&(l=!0,Qm(f,v))}else v=ht,v=_n(f,f===Dt?v:0),!(v&3)||Xn(f,v)||(l=!0,Qm(f,v));f=f.next}while(l);to=!1}}function dy(){as=eo=!1;var n=0;Ti!==0&&(Ty()&&(n=Ti),Ti=0);for(var a=Tt(),l=null,f=ns;f!==null;){var o=f.next,v=Km(f,a);v===0?(f.next=null,l===null?ns=o:l.next=o,o===null&&(dl=l)):(l=f,(n!==0||v&3)&&(as=!0)),f=o}Tu(n)}function Km(n,a){for(var l=n.suspendedLanes,f=n.pingedLanes,o=n.expirationTimes,v=n.pendingLanes&-62914561;0<v;){var _=31-tr(v),R=1<<_,P=o[_];P===-1?(!(R&l)||R&f)&&(o[_]=zl(R,a)):P<=a&&(n.expiredLanes|=R),v&=~R}if(a=Dt,l=ht,l=_n(n,n===a?l:0),f=n.callbackNode,l===0||n===a&&Nt===2||n.cancelPendingCommit!==null)return f!==null&&f!==null&&Gt(f),n.callbackNode=null,n.callbackPriority=0;if(!(l&3)||Xn(n,l)){if(a=l&-l,a===n.callbackPriority)return a;switch(f!==null&&Gt(f),Pe(l)){case 2:case 8:l=_r;break;case 32:l=$t;break;case 268435456:l=Br;break;default:l=$t}return f=$m.bind(null,n),l=Cr(l,f),n.callbackPriority=a,n.callbackNode=l,a}return f!==null&&f!==null&&Gt(f),n.callbackPriority=2,n.callbackNode=null,2}function $m(n,a){var l=n.callbackNode;if(hl()&&n.callbackNode!==l)return null;var f=ht;return f=_n(n,n===Dt?f:0),f===0?null:(Um(n,f,a),Km(n,Tt()),n.callbackNode!=null&&n.callbackNode===l?$m.bind(null,n):null)}function Qm(n,a){if(hl())return null;Um(n,a,!0)}function my(n){wy(function(){Mt&6?Cr(Ze,n):n()})}function ro(){return Ti===0&&(Ti=V()),Ti}function Zm(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:gf(""+n)}function Jm(n,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,n.id&&l.setAttribute("form",n.id),a.parentNode.insertBefore(l,a),n=new FormData(n),l.parentNode.removeChild(l),n}function vy(n,a,l,f,o){if(a==="submit"&&l&&l.stateNode===o){var v=Zm((o[C]||null).action),_=f.submitter;_&&(a=(a=_[C]||null)?Zm(a.formAction):_.getAttribute("formAction"),a!==null&&(v=a,_=null));var R=new Tf("action","action",null,f,o);n.push({event:R,listeners:[{instance:null,listener:function(){if(f.defaultPrevented){if(Ti!==0){var P=_?Jm(o,_):new FormData(o);o0(l,{pending:!0,data:P,method:o.method,action:v},null,P)}}else typeof v=="function"&&(R.preventDefault(),P=_?Jm(o,_):new FormData(o),o0(l,{pending:!0,data:P,method:o.method,action:v},v,P))},currentTarget:o}]})}}for(var no=0;no<Xd.length;no++){var ao=Xd[no],xy=ao.toLowerCase(),py=ao[0].toUpperCase()+ao.slice(1);Tn(xy,"on"+py)}Tn(Id,"onAnimationEnd"),Tn(zd,"onAnimationIteration"),Tn(jd,"onAnimationStart"),Tn("dblclick","onDoubleClick"),Tn("focusin","onFocus"),Tn("focusout","onBlur"),Tn(LE,"onTransitionRun"),Tn(BE,"onTransitionStart"),Tn(kE,"onTransitionCancel"),Tn(Gd,"onTransitionEnd"),St("onMouseEnter",["mouseout","mouseover"]),St("onMouseLeave",["mouseout","mouseover"]),St("onPointerEnter",["pointerout","pointerover"]),St("onPointerLeave",["pointerout","pointerover"]),Qe("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Qe("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Qe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qe("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Qe("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Qe("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Su="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Su));function ev(n,a){a=(a&4)!==0;for(var l=0;l<n.length;l++){var f=n[l],o=f.event;f=f.listeners;e:{var v=void 0;if(a)for(var _=f.length-1;0<=_;_--){var R=f[_],P=R.instance,W=R.currentTarget;if(R=R.listener,P!==v&&o.isPropagationStopped())break e;v=R,o.currentTarget=W;try{v(o)}catch(de){Vf(de)}o.currentTarget=null,v=P}else for(_=0;_<f.length;_++){if(R=f[_],P=R.instance,W=R.currentTarget,R=R.listener,P!==v&&o.isPropagationStopped())break e;v=R,o.currentTarget=W;try{v(o)}catch(de){Vf(de)}o.currentTarget=null,v=P}}}}function ct(n,a){var l=a[F];l===void 0&&(l=a[F]=new Set);var f=n+"__bubble";l.has(f)||(tv(a,n,2,!1),l.add(f))}function io(n,a,l){var f=0;a&&(f|=4),tv(l,n,f,a)}var is="_reactListening"+Math.random().toString(36).slice(2);function lo(n){if(!n[is]){n[is]=!0,Ye.forEach(function(l){l!=="selectionchange"&&(gy.has(l)||io(l,!1,n),io(l,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[is]||(a[is]=!0,io("selectionchange",!1,a))}}function tv(n,a,l,f){switch(wv(a)){case 2:var o=Vy;break;case 8:o=Xy;break;default:o=yo}l=o.bind(null,a,l,n),o=void 0,!Oc||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(o=!0),f?o!==void 0?n.addEventListener(a,l,{capture:!0,passive:o}):n.addEventListener(a,l,!0):o!==void 0?n.addEventListener(a,l,{passive:o}):n.addEventListener(a,l,!1)}function uo(n,a,l,f,o){var v=f;if(!(a&1)&&!(a&2)&&f!==null)e:for(;;){if(f===null)return;var _=f.tag;if(_===3||_===4){var R=f.stateNode.containerInfo;if(R===o||R.nodeType===8&&R.parentNode===o)break;if(_===4)for(_=f.return;_!==null;){var P=_.tag;if((P===3||P===4)&&(P=_.stateNode.containerInfo,P===o||P.nodeType===8&&P.parentNode===o))return;_=_.return}for(;R!==null;){if(_=pe(R),_===null)return;if(P=_.tag,P===5||P===6||P===26||P===27){f=v=_;continue e}R=R.parentNode}}f=f.return}xd(function(){var W=v,de=Rc(l),Se=[];e:{var le=Vd.get(n);if(le!==void 0){var he=Tf,Ge=n;switch(n){case"keypress":if(yf(l)===0)break e;case"keydown":case"keyup":he=oE;break;case"focusin":Ge="focus",he=Fc;break;case"focusout":Ge="blur",he=Fc;break;case"beforeblur":case"afterblur":he=Fc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=Ed;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=J2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=mE;break;case Id:case zd:case jd:he=rE;break;case Gd:he=xE;break;case"scroll":case"scrollend":he=Q2;break;case"wheel":he=gE;break;case"copy":case"cut":case"paste":he=aE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=_d;break;case"toggle":case"beforetoggle":he=yE}var tt=(a&4)!==0,kt=!tt&&(n==="scroll"||n==="scrollend"),K=tt?le!==null?le+"Capture":null:le;tt=[];for(var Y=W,ne;Y!==null;){var ge=Y;if(ne=ge.stateNode,ge=ge.tag,ge!==5&&ge!==26&&ge!==27||ne===null||K===null||(ge=jl(Y,K),ge!=null&&tt.push(wu(Y,ge,ne))),kt)break;Y=Y.return}0<tt.length&&(le=new he(le,Ge,null,l,de),Se.push({event:le,listeners:tt}))}}if(!(a&7)){e:{if(le=n==="mouseover"||n==="pointerover",he=n==="mouseout"||n==="pointerout",le&&l!==Ac&&(Ge=l.relatedTarget||l.fromElement)&&(pe(Ge)||Ge[b]))break e;if((he||le)&&(le=de.window===de?de:(le=de.ownerDocument)?le.defaultView||le.parentWindow:window,he?(Ge=l.relatedTarget||l.toElement,he=W,Ge=Ge?pe(Ge):null,Ge!==null&&(kt=De(Ge),tt=Ge.tag,Ge!==kt||tt!==5&&tt!==27&&tt!==6)&&(Ge=null)):(he=null,Ge=W),he!==Ge)){if(tt=Ed,ge="onMouseLeave",K="onMouseEnter",Y="mouse",(n==="pointerout"||n==="pointerover")&&(tt=_d,ge="onPointerLeave",K="onPointerEnter",Y="pointer"),kt=he==null?le:Le(he),ne=Ge==null?le:Le(Ge),le=new tt(ge,Y+"leave",he,l,de),le.target=kt,le.relatedTarget=ne,ge=null,pe(de)===W&&(tt=new tt(K,Y+"enter",Ge,l,de),tt.target=ne,tt.relatedTarget=kt,ge=tt),kt=ge,he&&Ge)t:{for(tt=he,K=Ge,Y=0,ne=tt;ne;ne=ml(ne))Y++;for(ne=0,ge=K;ge;ge=ml(ge))ne++;for(;0<Y-ne;)tt=ml(tt),Y--;for(;0<ne-Y;)K=ml(K),ne--;for(;Y--;){if(tt===K||K!==null&&tt===K.alternate)break t;tt=ml(tt),K=ml(K)}tt=null}else tt=null;he!==null&&rv(Se,le,he,tt,!1),Ge!==null&&kt!==null&&rv(Se,kt,Ge,tt,!0)}}e:{if(le=W?Le(W):window,he=le.nodeName&&le.nodeName.toLowerCase(),he==="select"||he==="input"&&le.type==="file")var He=Dd;else if(Cd(le))if(Nd)He=NE;else{He=OE;var ut=CE}else he=le.nodeName,!he||he.toLowerCase()!=="input"||le.type!=="checkbox"&&le.type!=="radio"?W&&wc(W.elementType)&&(He=Dd):He=DE;if(He&&(He=He(n,W))){Od(Se,He,l,de);break e}ut&&ut(n,le,W),n==="focusout"&&W&&le.type==="number"&&W.memoizedProps.value!=null&&Sc(le,"number",le.value)}switch(ut=W?Le(W):window,n){case"focusin":(Cd(ut)||ut.contentEditable==="true")&&(Yi=ut,Pc=W,$l=null);break;case"focusout":$l=Pc=Yi=null;break;case"mousedown":Hc=!0;break;case"contextmenu":case"mouseup":case"dragend":Hc=!1,Pd(Se,l,de);break;case"selectionchange":if(ME)break;case"keydown":case"keyup":Pd(Se,l,de)}var Ve;if(Lc)e:{switch(n){case"compositionstart":var qe="onCompositionStart";break e;case"compositionend":qe="onCompositionEnd";break e;case"compositionupdate":qe="onCompositionUpdate";break e}qe=void 0}else Xi?Ad(n,l)&&(qe="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(qe="onCompositionStart");qe&&(Td&&l.locale!=="ko"&&(Xi||qe!=="onCompositionStart"?qe==="onCompositionEnd"&&Xi&&(Ve=pd()):(ya=de,Dc="value"in ya?ya.value:ya.textContent,Xi=!0)),ut=ls(W,qe),0<ut.length&&(qe=new yd(qe,n,null,l,de),Se.push({event:qe,listeners:ut}),Ve?qe.data=Ve:(Ve=Rd(l),Ve!==null&&(qe.data=Ve)))),(Ve=TE?SE(n,l):wE(n,l))&&(qe=ls(W,"onBeforeInput"),0<qe.length&&(ut=new yd("onBeforeInput","beforeinput",null,l,de),Se.push({event:ut,listeners:qe}),ut.data=Ve)),vy(Se,n,W,l,de)}ev(Se,a)})}function wu(n,a,l){return{instance:n,listener:a,currentTarget:l}}function ls(n,a){for(var l=a+"Capture",f=[];n!==null;){var o=n,v=o.stateNode;o=o.tag,o!==5&&o!==26&&o!==27||v===null||(o=jl(n,l),o!=null&&f.unshift(wu(n,o,v)),o=jl(n,a),o!=null&&f.push(wu(n,o,v))),n=n.return}return f}function ml(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function rv(n,a,l,f,o){for(var v=a._reactName,_=[];l!==null&&l!==f;){var R=l,P=R.alternate,W=R.stateNode;if(R=R.tag,P!==null&&P===f)break;R!==5&&R!==26&&R!==27||W===null||(P=W,o?(W=jl(l,v),W!=null&&_.unshift(wu(l,W,P))):o||(W=jl(l,v),W!=null&&_.push(wu(l,W,P)))),l=l.return}_.length!==0&&n.push({event:a,listeners:_})}var Ey=/\r\n?/g,yy=/\u0000|\uFFFD/g;function nv(n){return(typeof n=="string"?n:""+n).replace(Ey,`
-`).replace(yy,"")}function av(n,a){return a=nv(a),nv(n)===a}function us(){}function Rt(n,a,l,f,o,v){switch(l){case"children":typeof f=="string"?a==="body"||a==="textarea"&&f===""||ji(n,f):(typeof f=="number"||typeof f=="bigint")&&a!=="body"&&ji(n,""+f);break;case"className":vf(n,"class",f);break;case"tabIndex":vf(n,"tabindex",f);break;case"dir":case"role":case"viewBox":case"width":case"height":vf(n,l,f);break;case"style":md(n,f,v);break;case"data":if(a!=="object"){vf(n,"data",f);break}case"src":case"href":if(f===""&&(a!=="a"||l!=="href")){n.removeAttribute(l);break}if(f==null||typeof f=="function"||typeof f=="symbol"||typeof f=="boolean"){n.removeAttribute(l);break}f=gf(""+f),n.setAttribute(l,f);break;case"action":case"formAction":if(typeof f=="function"){n.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(l==="formAction"?(a!=="input"&&Rt(n,a,"name",o.name,o,null),Rt(n,a,"formEncType",o.formEncType,o,null),Rt(n,a,"formMethod",o.formMethod,o,null),Rt(n,a,"formTarget",o.formTarget,o,null)):(Rt(n,a,"encType",o.encType,o,null),Rt(n,a,"method",o.method,o,null),Rt(n,a,"target",o.target,o,null)));if(f==null||typeof f=="symbol"||typeof f=="boolean"){n.removeAttribute(l);break}f=gf(""+f),n.setAttribute(l,f);break;case"onClick":f!=null&&(n.onclick=us);break;case"onScroll":f!=null&&ct("scroll",n);break;case"onScrollEnd":f!=null&&ct("scrollend",n);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(i(61));if(l=f.__html,l!=null){if(o.children!=null)throw Error(i(60));n.innerHTML=l}}break;case"multiple":n.multiple=f&&typeof f!="function"&&typeof f!="symbol";break;case"muted":n.muted=f&&typeof f!="function"&&typeof f!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(f==null||typeof f=="function"||typeof f=="boolean"||typeof f=="symbol"){n.removeAttribute("xlink:href");break}l=gf(""+f),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":f!=null&&typeof f!="function"&&typeof f!="symbol"?n.setAttribute(l,""+f):n.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":f&&typeof f!="function"&&typeof f!="symbol"?n.setAttribute(l,""):n.removeAttribute(l);break;case"capture":case"download":f===!0?n.setAttribute(l,""):f!==!1&&f!=null&&typeof f!="function"&&typeof f!="symbol"?n.setAttribute(l,f):n.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":f!=null&&typeof f!="function"&&typeof f!="symbol"&&!isNaN(f)&&1<=f?n.setAttribute(l,f):n.removeAttribute(l);break;case"rowSpan":case"start":f==null||typeof f=="function"||typeof f=="symbol"||isNaN(f)?n.removeAttribute(l):n.setAttribute(l,f);break;case"popover":ct("beforetoggle",n),ct("toggle",n),kr(n,"popover",f);break;case"xlinkActuate":Yn(n,"http://www.w3.org/1999/xlink","xlink:actuate",f);break;case"xlinkArcrole":Yn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",f);break;case"xlinkRole":Yn(n,"http://www.w3.org/1999/xlink","xlink:role",f);break;case"xlinkShow":Yn(n,"http://www.w3.org/1999/xlink","xlink:show",f);break;case"xlinkTitle":Yn(n,"http://www.w3.org/1999/xlink","xlink:title",f);break;case"xlinkType":Yn(n,"http://www.w3.org/1999/xlink","xlink:type",f);break;case"xmlBase":Yn(n,"http://www.w3.org/XML/1998/namespace","xml:base",f);break;case"xmlLang":Yn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",f);break;case"xmlSpace":Yn(n,"http://www.w3.org/XML/1998/namespace","xml:space",f);break;case"is":kr(n,"is",f);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=K2.get(l)||l,kr(n,l,f))}}function fo(n,a,l,f,o,v){switch(l){case"style":md(n,f,v);break;case"dangerouslySetInnerHTML":if(f!=null){if(typeof f!="object"||!("__html"in f))throw Error(i(61));if(l=f.__html,l!=null){if(o.children!=null)throw Error(i(60));n.innerHTML=l}}break;case"children":typeof f=="string"?ji(n,f):(typeof f=="number"||typeof f=="bigint")&&ji(n,""+f);break;case"onScroll":f!=null&&ct("scroll",n);break;case"onScrollEnd":f!=null&&ct("scrollend",n);break;case"onClick":f!=null&&(n.onclick=us);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xe.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(o=l.endsWith("Capture"),a=l.slice(2,o?l.length-7:void 0),v=n[C]||null,v=v!=null?v[l]:null,typeof v=="function"&&n.removeEventListener(a,v,o),typeof f=="function")){typeof v!="function"&&v!==null&&(l in n?n[l]=null:n.hasAttribute(l)&&n.removeAttribute(l)),n.addEventListener(a,f,o);break e}l in n?n[l]=f:f===!0?n.setAttribute(l,""):kr(n,l,f)}}}function mr(n,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ct("error",n),ct("load",n);var f=!1,o=!1,v;for(v in l)if(l.hasOwnProperty(v)){var _=l[v];if(_!=null)switch(v){case"src":f=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Rt(n,a,v,_,l,null)}}o&&Rt(n,a,"srcSet",l.srcSet,l,null),f&&Rt(n,a,"src",l.src,l,null);return;case"input":ct("invalid",n);var R=v=_=o=null,P=null,W=null;for(f in l)if(l.hasOwnProperty(f)){var de=l[f];if(de!=null)switch(f){case"name":o=de;break;case"type":_=de;break;case"checked":P=de;break;case"defaultChecked":W=de;break;case"value":v=de;break;case"defaultValue":R=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(i(137,a));break;default:Rt(n,a,f,de,l,null)}}cd(n,v,R,P,W,_,o,!1),xf(n);return;case"select":ct("invalid",n),f=_=v=null;for(o in l)if(l.hasOwnProperty(o)&&(R=l[o],R!=null))switch(o){case"value":v=R;break;case"defaultValue":_=R;break;case"multiple":f=R;default:Rt(n,a,o,R,l,null)}a=v,l=_,n.multiple=!!f,a!=null?zi(n,!!f,a,!1):l!=null&&zi(n,!!f,l,!0);return;case"textarea":ct("invalid",n),v=o=f=null;for(_ in l)if(l.hasOwnProperty(_)&&(R=l[_],R!=null))switch(_){case"value":f=R;break;case"defaultValue":o=R;break;case"children":v=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:Rt(n,a,_,R,l,null)}hd(n,f,o,v),xf(n);return;case"option":for(P in l)if(l.hasOwnProperty(P)&&(f=l[P],f!=null))switch(P){case"selected":n.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Rt(n,a,P,f,l,null)}return;case"dialog":ct("cancel",n),ct("close",n);break;case"iframe":case"object":ct("load",n);break;case"video":case"audio":for(f=0;f<Su.length;f++)ct(Su[f],n);break;case"image":ct("error",n),ct("load",n);break;case"details":ct("toggle",n);break;case"embed":case"source":case"link":ct("error",n),ct("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(W in l)if(l.hasOwnProperty(W)&&(f=l[W],f!=null))switch(W){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Rt(n,a,W,f,l,null)}return;default:if(wc(a)){for(de in l)l.hasOwnProperty(de)&&(f=l[de],f!==void 0&&fo(n,a,de,f,l,void 0));return}}for(R in l)l.hasOwnProperty(R)&&(f=l[R],f!=null&&Rt(n,a,R,f,l,null))}function _y(n,a,l,f){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,v=null,_=null,R=null,P=null,W=null,de=null;for(he in l){var Se=l[he];if(l.hasOwnProperty(he)&&Se!=null)switch(he){case"checked":break;case"value":break;case"defaultValue":P=Se;default:f.hasOwnProperty(he)||Rt(n,a,he,null,f,Se)}}for(var le in f){var he=f[le];if(Se=l[le],f.hasOwnProperty(le)&&(he!=null||Se!=null))switch(le){case"type":v=he;break;case"name":o=he;break;case"checked":W=he;break;case"defaultChecked":de=he;break;case"value":_=he;break;case"defaultValue":R=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(i(137,a));break;default:he!==Se&&Rt(n,a,le,he,f,Se)}}Tc(n,_,R,P,W,de,v,o);return;case"select":he=_=R=le=null;for(v in l)if(P=l[v],l.hasOwnProperty(v)&&P!=null)switch(v){case"value":break;case"multiple":he=P;default:f.hasOwnProperty(v)||Rt(n,a,v,null,f,P)}for(o in f)if(v=f[o],P=l[o],f.hasOwnProperty(o)&&(v!=null||P!=null))switch(o){case"value":le=v;break;case"defaultValue":R=v;break;case"multiple":_=v;default:v!==P&&Rt(n,a,o,v,f,P)}a=R,l=_,f=he,le!=null?zi(n,!!l,le,!1):!!f!=!!l&&(a!=null?zi(n,!!l,a,!0):zi(n,!!l,l?[]:"",!1));return;case"textarea":he=le=null;for(R in l)if(o=l[R],l.hasOwnProperty(R)&&o!=null&&!f.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Rt(n,a,R,null,f,o)}for(_ in f)if(o=f[_],v=l[_],f.hasOwnProperty(_)&&(o!=null||v!=null))switch(_){case"value":le=o;break;case"defaultValue":he=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(i(91));break;default:o!==v&&Rt(n,a,_,o,f,v)}od(n,le,he);return;case"option":for(var Ge in l)if(le=l[Ge],l.hasOwnProperty(Ge)&&le!=null&&!f.hasOwnProperty(Ge))switch(Ge){case"selected":n.selected=!1;break;default:Rt(n,a,Ge,null,f,le)}for(P in f)if(le=f[P],he=l[P],f.hasOwnProperty(P)&&le!==he&&(le!=null||he!=null))switch(P){case"selected":n.selected=le&&typeof le!="function"&&typeof le!="symbol";break;default:Rt(n,a,P,le,f,he)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var tt in l)le=l[tt],l.hasOwnProperty(tt)&&le!=null&&!f.hasOwnProperty(tt)&&Rt(n,a,tt,null,f,le);for(W in f)if(le=f[W],he=l[W],f.hasOwnProperty(W)&&le!==he&&(le!=null||he!=null))switch(W){case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(i(137,a));break;default:Rt(n,a,W,le,f,he)}return;default:if(wc(a)){for(var kt in l)le=l[kt],l.hasOwnProperty(kt)&&le!==void 0&&!f.hasOwnProperty(kt)&&fo(n,a,kt,void 0,f,le);for(de in f)le=f[de],he=l[de],!f.hasOwnProperty(de)||le===he||le===void 0&&he===void 0||fo(n,a,de,le,f,he);return}}for(var K in l)le=l[K],l.hasOwnProperty(K)&&le!=null&&!f.hasOwnProperty(K)&&Rt(n,a,K,null,f,le);for(Se in f)le=f[Se],he=l[Se],!f.hasOwnProperty(Se)||le===he||le==null&&he==null||Rt(n,a,Se,le,f,he)}var so=null,co=null;function fs(n){return n.nodeType===9?n:n.ownerDocument}function iv(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lv(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function oo(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var ho=null;function Ty(){var n=window.event;return n&&n.type==="popstate"?n===ho?!1:(ho=n,!0):(ho=null,!1)}var uv=typeof setTimeout=="function"?setTimeout:void 0,Sy=typeof clearTimeout=="function"?clearTimeout:void 0,fv=typeof Promise=="function"?Promise:void 0,wy=typeof queueMicrotask=="function"?queueMicrotask:typeof fv<"u"?function(n){return fv.resolve(null).then(n).catch(Ay)}:uv;function Ay(n){setTimeout(function(){throw n})}function mo(n,a){var l=a,f=0;do{var o=l.nextSibling;if(n.removeChild(l),o&&o.nodeType===8)if(l=o.data,l==="/$"){if(f===0){n.removeChild(o),Fu(a);return}f--}else l!=="$"&&l!=="$?"&&l!=="$!"||f++;l=o}while(l);Fu(a)}function vo(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":vo(l),re(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}n.removeChild(l)}}function Ry(n,a,l,f){for(;n.nodeType===1;){var o=l;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!f&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(f){if(!n[te])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(v=n.getAttribute("rel"),v==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(v!==o.rel||n.getAttribute("href")!==(o.href==null?null:o.href)||n.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||n.getAttribute("title")!==(o.title==null?null:o.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(v=n.getAttribute("src"),(v!==(o.src==null?null:o.src)||n.getAttribute("type")!==(o.type==null?null:o.type)||n.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&v&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var v=o.name==null?null:""+o.name;if(o.type==="hidden"&&n.getAttribute("name")===v)return n}else return n;if(n=An(n.nextSibling),n===null)break}return null}function Cy(n,a,l){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!l||(n=An(n.nextSibling),n===null))return null;return n}function An(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return n}function sv(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"){if(a===0)return n;a--}else l==="/$"&&a++}n=n.previousSibling}return null}function cv(n,a,l){switch(a=fs(l),n){case"html":if(n=a.documentElement,!n)throw Error(i(452));return n;case"head":if(n=a.head,!n)throw Error(i(453));return n;case"body":if(n=a.body,!n)throw Error(i(454));return n;default:throw Error(i(451))}}var vn=new Map,ov=new Set;function ss(n){return typeof n.getRootNode=="function"?n.getRootNode():n.ownerDocument}var ua=k.d;k.d={f:Oy,r:Dy,D:Ny,C:by,L:Fy,m:My,X:By,S:Ly,M:ky};function Oy(){var n=ua.f(),a=ts();return n||a}function Dy(n){var a=Oe(n);a!==null&&a.tag===5&&a.type==="form"?P1(a):ua.r(n)}var vl=typeof document>"u"?null:document;function hv(n,a,l){var f=vl;if(f&&typeof a=="string"&&a){var o=an(a);o='link[rel="'+n+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),ov.has(o)||(ov.add(o),n={rel:n,crossOrigin:l,href:a},f.querySelector(o)===null&&(a=f.createElement("link"),mr(a,"link",n),Ae(a),f.head.appendChild(a)))}}function Ny(n){ua.D(n),hv("dns-prefetch",n,null)}function by(n,a){ua.C(n,a),hv("preconnect",n,a)}function Fy(n,a,l){ua.L(n,a,l);var f=vl;if(f&&n&&a){var o='link[rel="preload"][as="'+an(a)+'"]';a==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+an(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+an(l.imageSizes)+'"]')):o+='[href="'+an(n)+'"]';var v=o;switch(a){case"style":v=xl(n);break;case"script":v=pl(n)}vn.has(v)||(n=ee({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:n,as:a},l),vn.set(v,n),f.querySelector(o)!==null||a==="style"&&f.querySelector(Au(v))||a==="script"&&f.querySelector(Ru(v))||(a=f.createElement("link"),mr(a,"link",n),Ae(a),f.head.appendChild(a)))}}function My(n,a){ua.m(n,a);var l=vl;if(l&&n){var f=a&&typeof a.as=="string"?a.as:"script",o='link[rel="modulepreload"][as="'+an(f)+'"][href="'+an(n)+'"]',v=o;switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=pl(n)}if(!vn.has(v)&&(n=ee({rel:"modulepreload",href:n},a),vn.set(v,n),l.querySelector(o)===null)){switch(f){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ru(v)))return}f=l.createElement("link"),mr(f,"link",n),Ae(f),l.head.appendChild(f)}}}function Ly(n,a,l){ua.S(n,a,l);var f=vl;if(f&&n){var o=we(f).hoistableStyles,v=xl(n);a=a||"default";var _=o.get(v);if(!_){var R={loading:0,preload:null};if(_=f.querySelector(Au(v)))R.loading=5;else{n=ee({rel:"stylesheet",href:n,"data-precedence":a},l),(l=vn.get(v))&&xo(n,l);var P=_=f.createElement("link");Ae(P),mr(P,"link",n),P._p=new Promise(function(W,de){P.onload=W,P.onerror=de}),P.addEventListener("load",function(){R.loading|=1}),P.addEventListener("error",function(){R.loading|=2}),R.loading|=4,cs(_,a,f)}_={type:"stylesheet",instance:_,count:1,state:R},o.set(v,_)}}}function By(n,a){ua.X(n,a);var l=vl;if(l&&n){var f=we(l).hoistableScripts,o=pl(n),v=f.get(o);v||(v=l.querySelector(Ru(o)),v||(n=ee({src:n,async:!0},a),(a=vn.get(o))&&po(n,a),v=l.createElement("script"),Ae(v),mr(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},f.set(o,v))}}function ky(n,a){ua.M(n,a);var l=vl;if(l&&n){var f=we(l).hoistableScripts,o=pl(n),v=f.get(o);v||(v=l.querySelector(Ru(o)),v||(n=ee({src:n,async:!0,type:"module"},a),(a=vn.get(o))&&po(n,a),v=l.createElement("script"),Ae(v),mr(v,"link",n),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},f.set(o,v))}}function dv(n,a,l,f){var o=(o=lt.current)?ss(o):null;if(!o)throw Error(i(446));switch(n){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=xl(l.href),l=we(o).hoistableStyles,f=l.get(a),f||(f={type:"style",instance:null,count:0,state:null},l.set(a,f)),f):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){n=xl(l.href);var v=we(o).hoistableStyles,_=v.get(n);if(_||(o=o.ownerDocument||o,_={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(n,_),(v=o.querySelector(Au(n)))&&!v._p&&(_.instance=v,_.state.loading=5),vn.has(n)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},vn.set(n,l),v||Uy(o,n,l,_.state))),a&&f===null)throw Error(i(528,""));return _}if(a&&f!==null)throw Error(i(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=pl(l),l=we(o).hoistableScripts,f=l.get(a),f||(f={type:"script",instance:null,count:0,state:null},l.set(a,f)),f):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,n))}}function xl(n){return'href="'+an(n)+'"'}function Au(n){return'link[rel="stylesheet"]['+n+"]"}function mv(n){return ee({},n,{"data-precedence":n.precedence,precedence:null})}function Uy(n,a,l,f){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?f.loading=1:(a=n.createElement("link"),f.preload=a,a.addEventListener("load",function(){return f.loading|=1}),a.addEventListener("error",function(){return f.loading|=2}),mr(a,"link",l),Ae(a),n.head.appendChild(a))}function pl(n){return'[src="'+an(n)+'"]'}function Ru(n){return"script[async]"+n}function vv(n,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var f=n.querySelector('style[data-href~="'+an(l.href)+'"]');if(f)return a.instance=f,Ae(f),f;var o=ee({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return f=(n.ownerDocument||n).createElement("style"),Ae(f),mr(f,"style",o),cs(f,l.precedence,n),a.instance=f;case"stylesheet":o=xl(l.href);var v=n.querySelector(Au(o));if(v)return a.state.loading|=4,a.instance=v,Ae(v),v;f=mv(l),(o=vn.get(o))&&xo(f,o),v=(n.ownerDocument||n).createElement("link"),Ae(v);var _=v;return _._p=new Promise(function(R,P){_.onload=R,_.onerror=P}),mr(v,"link",f),a.state.loading|=4,cs(v,l.precedence,n),a.instance=v;case"script":return v=pl(l.src),(o=n.querySelector(Ru(v)))?(a.instance=o,Ae(o),o):(f=l,(o=vn.get(v))&&(f=ee({},l),po(f,o)),n=n.ownerDocument||n,o=n.createElement("script"),Ae(o),mr(o,"link",f),n.head.appendChild(o),a.instance=o);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&!(a.state.loading&4)&&(f=a.instance,a.state.loading|=4,cs(f,l.precedence,n));return a.instance}function cs(n,a,l){for(var f=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=f.length?f[f.length-1]:null,v=o,_=0;_<f.length;_++){var R=f[_];if(R.dataset.precedence===a)v=R;else if(v!==o)break}v?v.parentNode.insertBefore(n,v.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(n,a.firstChild))}function xo(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function po(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var os=null;function xv(n,a,l){if(os===null){var f=new Map,o=os=new Map;o.set(l,f)}else o=os,f=o.get(l),f||(f=new Map,o.set(l,f));if(f.has(n))return f;for(f.set(n,null),l=l.getElementsByTagName(n),o=0;o<l.length;o++){var v=l[o];if(!(v[te]||v[A]||n==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var _=v.getAttribute(a)||"";_=n+_;var R=f.get(_);R?R.push(v):f.set(_,[v])}}return f}function pv(n,a,l){n=n.ownerDocument||n,n.head.insertBefore(l,a==="title"?n.querySelector("head > title"):null)}function Py(n,a,l){if(l===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function gv(n){return!(n.type==="stylesheet"&&!(n.state.loading&3))}var Cu=null;function Hy(){}function Iy(n,a,l){if(Cu===null)throw Error(i(475));var f=Cu;if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&!(a.state.loading&4)){if(a.instance===null){var o=xl(l.href),v=n.querySelector(Au(o));if(v){n=v._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(f.count++,f=hs.bind(f),n.then(f,f)),a.state.loading|=4,a.instance=v,Ae(v);return}v=n.ownerDocument||n,l=mv(l),(o=vn.get(o))&&xo(l,o),v=v.createElement("link"),Ae(v);var _=v;_._p=new Promise(function(R,P){_.onload=R,_.onerror=P}),mr(v,"link",l),a.instance=v}f.stylesheets===null&&(f.stylesheets=new Map),f.stylesheets.set(a,n),(n=a.state.preload)&&!(a.state.loading&3)&&(f.count++,a=hs.bind(f),n.addEventListener("load",a),n.addEventListener("error",a))}}function zy(){if(Cu===null)throw Error(i(475));var n=Cu;return n.stylesheets&&n.count===0&&go(n,n.stylesheets),0<n.count?function(a){var l=setTimeout(function(){if(n.stylesheets&&go(n,n.stylesheets),n.unsuspend){var f=n.unsuspend;n.unsuspend=null,f()}},6e4);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(l)}}:null}function hs(){if(this.count--,this.count===0){if(this.stylesheets)go(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var ds=null;function go(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,ds=new Map,a.forEach(jy,n),ds=null,hs.call(n))}function jy(n,a){if(!(a.state.loading&4)){var l=ds.get(n);if(l)var f=l.get(null);else{l=new Map,ds.set(n,l);for(var o=n.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<o.length;v++){var _=o[v];(_.nodeName==="LINK"||_.getAttribute("media")!=="not all")&&(l.set(_.dataset.precedence,_),f=_)}f&&l.set(null,f)}o=a.instance,_=o.getAttribute("data-precedence"),v=l.get(_)||f,v===f&&l.set(null,o),l.set(_,o),this.count++,f=hs.bind(this),o.addEventListener("load",f),o.addEventListener("error",f),v?v.parentNode.insertBefore(o,v.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(o,n.firstChild)),a.state.loading|=4}}var Ou={$$typeof:g,Provider:null,Consumer:null,_currentValue:H,_currentValue2:H,_threadCount:0};function Gy(n,a,l,f,o,v,_,R){this.tag=1,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=se(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=se(0),this.hiddenUpdates=se(null),this.identifierPrefix=f,this.onUncaughtError=o,this.onCaughtError=v,this.onRecoverableError=_,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Ev(n,a,l,f,o,v,_,R,P,W,de,Se){return n=new Gy(n,a,l,_,R,P,W,Se),a=1,v===!0&&(a|=24),v=dn(3,null,null,a),n.current=v,v.stateNode=n,a=Kc(),a.refCount++,n.pooledCache=a,a.refCount++,v.memoizedState={element:f,isDehydrated:l,cache:a},D0(v),n}function yv(n){return n?(n=Ki,n):Ki}function _v(n,a,l,f,o,v){o=yv(o),f.context===null?f.context=o:f.pendingContext=o,f=Oa(a),f.payload={element:l},v=v===void 0?null:v,v!==null&&(f.callback=v),l=Da(n,f,a),l!==null&&(br(l,n,a),ou(l,n,a))}function Tv(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<a?l:a}}function Eo(n,a){Tv(n,a),(n=n.alternate)&&Tv(n,a)}function Sv(n){if(n.tag===13){var a=_a(n,67108864);a!==null&&br(a,n,67108864),Eo(n,67108864)}}var ms=!0;function Vy(n,a,l,f){var o=I.T;I.T=null;var v=k.p;try{k.p=2,yo(n,a,l,f)}finally{k.p=v,I.T=o}}function Xy(n,a,l,f){var o=I.T;I.T=null;var v=k.p;try{k.p=8,yo(n,a,l,f)}finally{k.p=v,I.T=o}}function yo(n,a,l,f){if(ms){var o=_o(f);if(o===null)uo(n,a,f,vs,l),Av(n,f);else if(Wy(o,n,a,l,f))f.stopPropagation();else if(Av(n,f),a&4&&-1<Yy.indexOf(n)){for(;o!==null;){var v=Oe(o);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var _=or(v.pendingLanes);if(_!==0){var R=v;for(R.pendingLanes|=2,R.entangledLanes|=2;_;){var P=1<<31-tr(_);R.entanglements[1]|=P,_&=~P}Pn(v),!(Mt&6)&&(Zf=Tt()+500,Tu(0))}}break;case 13:R=_a(v,2),R!==null&&br(R,v,2),ts(),Eo(v,2)}if(v=_o(f),v===null&&uo(n,a,f,vs,l),v===o)break;o=v}o!==null&&f.stopPropagation()}else uo(n,a,f,null,l)}}function _o(n){return n=Rc(n),To(n)}var vs=null;function To(n){if(vs=null,n=pe(n),n!==null){var a=De(n);if(a===null)n=null;else{var l=a.tag;if(l===13){if(n=je(a),n!==null)return n;n=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return vs=n,null}function wv(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(cr()){case Ze:return 2;case _r:return 8;case $t:case Il:return 32;case Br:return 268435456;default:return 32}default:return 32}}var So=!1,ka=null,Ua=null,Pa=null,Du=new Map,Nu=new Map,Ha=[],Yy="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Av(n,a){switch(n){case"focusin":case"focusout":ka=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":Pa=null;break;case"pointerover":case"pointerout":Du.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nu.delete(a.pointerId)}}function bu(n,a,l,f,o,v){return n===null||n.nativeEvent!==v?(n={blockedOn:a,domEventName:l,eventSystemFlags:f,nativeEvent:v,targetContainers:[o]},a!==null&&(a=Oe(a),a!==null&&Sv(a)),n):(n.eventSystemFlags|=f,a=n.targetContainers,o!==null&&a.indexOf(o)===-1&&a.push(o),n)}function Wy(n,a,l,f,o){switch(a){case"focusin":return ka=bu(ka,n,a,l,f,o),!0;case"dragenter":return Ua=bu(Ua,n,a,l,f,o),!0;case"mouseover":return Pa=bu(Pa,n,a,l,f,o),!0;case"pointerover":var v=o.pointerId;return Du.set(v,bu(Du.get(v)||null,n,a,l,f,o)),!0;case"gotpointercapture":return v=o.pointerId,Nu.set(v,bu(Nu.get(v)||null,n,a,l,f,o)),!0}return!1}function Rv(n){var a=pe(n.target);if(a!==null){var l=De(a);if(l!==null){if(a=l.tag,a===13){if(a=je(l),a!==null){n.blockedOn=a,T(n.priority,function(){if(l.tag===13){var f=qr(),o=_a(l,f);o!==null&&br(o,l,f),Eo(l,f)}});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function xs(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var l=_o(n.nativeEvent);if(l===null){l=n.nativeEvent;var f=new l.constructor(l.type,l);Ac=f,l.target.dispatchEvent(f),Ac=null}else return a=Oe(l),a!==null&&Sv(a),n.blockedOn=l,!1;a.shift()}return!0}function Cv(n,a,l){xs(n)&&l.delete(a)}function qy(){So=!1,ka!==null&&xs(ka)&&(ka=null),Ua!==null&&xs(Ua)&&(Ua=null),Pa!==null&&xs(Pa)&&(Pa=null),Du.forEach(Cv),Nu.forEach(Cv)}function ps(n,a){n.blockedOn===a&&(n.blockedOn=null,So||(So=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,qy)))}var gs=null;function Ov(n){gs!==n&&(gs=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){gs===n&&(gs=null);for(var a=0;a<n.length;a+=3){var l=n[a],f=n[a+1],o=n[a+2];if(typeof f!="function"){if(To(f||l)===null)continue;break}var v=Oe(l);v!==null&&(n.splice(a,3),a-=3,o0(v,{pending:!0,data:o,method:l.method,action:f},f,o))}}))}function Fu(n){function a(P){return ps(P,n)}ka!==null&&ps(ka,n),Ua!==null&&ps(Ua,n),Pa!==null&&ps(Pa,n),Du.forEach(a),Nu.forEach(a);for(var l=0;l<Ha.length;l++){var f=Ha[l];f.blockedOn===n&&(f.blockedOn=null)}for(;0<Ha.length&&(l=Ha[0],l.blockedOn===null);)Rv(l),l.blockedOn===null&&Ha.shift();if(l=(n.ownerDocument||n).$$reactFormReplay,l!=null)for(f=0;f<l.length;f+=3){var o=l[f],v=l[f+1],_=o[C]||null;if(typeof v=="function")_||Ov(l);else if(_){var R=null;if(v&&v.hasAttribute("formAction")){if(o=v,_=v[C]||null)R=_.formAction;else if(To(o)!==null)continue}else R=_.action;typeof R=="function"?l[f+1]=R:(l.splice(f,3),f-=3),Ov(l)}}}function wo(n){this._internalRoot=n}Es.prototype.render=wo.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(i(409));var l=a.current,f=qr();_v(l,f,n,a,null,null)},Es.prototype.unmount=wo.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;n.tag===0&&hl(),_v(n.current,2,null,n,null,null),ts(),a[b]=null}};function Es(n){this._internalRoot=n}Es.prototype.unstable_scheduleHydration=function(n){if(n){var a=Ie();n={blockedOn:null,target:n,priority:a};for(var l=0;l<Ha.length&&a!==0&&a<Ha[l].priority;l++);Ha.splice(l,0,n),l===0&&Rv(n)}};var Dv=t.version;if(Dv!=="19.0.0")throw Error(i(527,Dv,"19.0.0"));k.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(i(188)):(n=Object.keys(n).join(","),Error(i(268,n)));return n=me(a),n=n!==null?L(n):null,n=n===null?null:n.stateNode,n};var Ky={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:I,findFiberByHostInstance:pe,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ys=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ys.isDisabled&&ys.supportsFiber)try{yn=ys.inject(Ky),er=ys}catch{}}return Lu.createRoot=function(n,a){if(!u(n))throw Error(i(299));var l=!1,f="",o=Y1,v=W1,_=q1,R=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(f=a.identifierPrefix),a.onUncaughtError!==void 0&&(o=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(R=a.unstable_transitionCallbacks)),a=Ev(n,1,!1,null,null,l,f,o,v,_,R,null),n[b]=a.current,lo(n.nodeType===8?n.parentNode:n),new wo(a)},Lu.hydrateRoot=function(n,a,l){if(!u(n))throw Error(i(299));var f=!1,o="",v=Y1,_=W1,R=q1,P=null,W=null;return l!=null&&(l.unstable_strictMode===!0&&(f=!0),l.identifierPrefix!==void 0&&(o=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(_=l.onCaughtError),l.onRecoverableError!==void 0&&(R=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(P=l.unstable_transitionCallbacks),l.formState!==void 0&&(W=l.formState)),a=Ev(n,1,!0,a,l??null,f,o,v,_,R,P,W),a.context=yv(null),l=a.current,f=qr(),o=Oa(f),o.callback=null,Da(l,o,f),a.current.lanes=f,Te(a,f),Pn(a),n[b]=a.current,lo(n),new Es(a)},Lu.version="19.0.0",Lu}var Iv;function l_(){if(Iv)return Co.exports;Iv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Co.exports=i_(),Co.exports}var h5=l_(),bo={exports:{}},Fo={};/**
- * @license React
- * react-compiler-runtime.production.js
- *
- * Copyright (c) Meta Platforms, Inc. and affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var zv;function u_(){if(zv)return Fo;zv=1;var e=ic().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Fo.c=function(t){return e.H.useMemoCache(t)},Fo}var jv;function f_(){return jv||(jv=1,bo.exports=u_()),bo.exports}var Rr=f_(),Bu={},Gv;function s_(){if(Gv)return Bu;Gv=1,Object.defineProperty(Bu,"__esModule",{value:!0}),Bu.parse=c,Bu.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,u=Object.prototype.toString,s=(()=>{const p=function(){};return p.prototype=Object.create(null),p})();function c(p,g){const S=new s,y=p.length;if(y<2)return S;const w=(g==null?void 0:g.decode)||x;let D=0;do{const U=p.indexOf("=",D);if(U===-1)break;const B=p.indexOf(";",D),X=B===-1?y:B;if(U>X){D=p.lastIndexOf(";",U-1)+1;continue}const M=h(p,D,U),fe=m(p,U,M),G=p.slice(M,fe);if(S[G]===void 0){let Z=h(p,U+1,X),I=m(p,X,Z);const ee=w(p.slice(Z,I));S[G]=ee}D=X+1}while(D<y);return S}function h(p,g,S){do{const y=p.charCodeAt(g);if(y!==32&&y!==9)return g}while(++g<S);return S}function m(p,g,S){for(;g>S;){const y=p.charCodeAt(--g);if(y!==32&&y!==9)return g+1}return S}function d(p,g,S){const y=(S==null?void 0:S.encode)||encodeURIComponent;if(!e.test(p))throw new TypeError(`argument name is invalid: ${p}`);const w=y(g);if(!t.test(w))throw new TypeError(`argument val is invalid: ${g}`);let D=p+"="+w;if(!S)return D;if(S.maxAge!==void 0){if(!Number.isInteger(S.maxAge))throw new TypeError(`option maxAge is invalid: ${S.maxAge}`);D+="; Max-Age="+S.maxAge}if(S.domain){if(!r.test(S.domain))throw new TypeError(`option domain is invalid: ${S.domain}`);D+="; Domain="+S.domain}if(S.path){if(!i.test(S.path))throw new TypeError(`option path is invalid: ${S.path}`);D+="; Path="+S.path}if(S.expires){if(!E(S.expires)||!Number.isFinite(S.expires.valueOf()))throw new TypeError(`option expires is invalid: ${S.expires}`);D+="; Expires="+S.expires.toUTCString()}if(S.httpOnly&&(D+="; HttpOnly"),S.secure&&(D+="; Secure"),S.partitioned&&(D+="; Partitioned"),S.priority)switch(typeof S.priority=="string"?S.priority.toLowerCase():void 0){case"low":D+="; Priority=Low";break;case"medium":D+="; Priority=Medium";break;case"high":D+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${S.priority}`)}if(S.sameSite)switch(typeof S.sameSite=="string"?S.sameSite.toLowerCase():S.sameSite){case!0:case"strict":D+="; SameSite=Strict";break;case"lax":D+="; SameSite=Lax";break;case"none":D+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${S.sameSite}`)}return D}function x(p){if(p.indexOf("%")===-1)return p;try{return decodeURIComponent(p)}catch{return p}}function E(p){return u.call(p)==="[object Date]"}return Bu}s_();/**
- * react-router v7.1.3
- *
- * Copyright (c) Remix Software Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE.md file in the root directory of this source tree.
- *
- * @license MIT
- */var Vv="popstate";function c_(e={}){function t(i,u){let{pathname:s,search:c,hash:h}=i.location;return Ku("",{pathname:s,search:c,hash:h},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function r(i,u){return typeof u=="string"?u:Wa(u)}return h_(t,r,null,e)}function ot(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function fr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function o_(){return Math.random().toString(36).substring(2,10)}function Xv(e,t){return{usr:e.state,key:e.key,idx:t}}function Ku(e,t,r=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Qa(t):t,state:r,key:t&&t.key||i||o_()}}function Wa({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Qa(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function h_(e,t,r,i={}){let{window:u=document.defaultView,v5Compat:s=!1}=i,c=u.history,h="POP",m=null,d=x();d==null&&(d=0,c.replaceState({...c.state,idx:d},""));function x(){return(c.state||{idx:null}).idx}function E(){h="POP";let w=x(),D=w==null?null:w-d;d=w,m&&m({action:h,location:y.location,delta:D})}function p(w,D){h="PUSH";let U=Ku(y.location,w,D);d=x()+1;let B=Xv(U,d),X=y.createHref(U);try{c.pushState(B,"",X)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;u.location.assign(X)}s&&m&&m({action:h,location:y.location,delta:1})}function g(w,D){h="REPLACE";let U=Ku(y.location,w,D);d=x();let B=Xv(U,d),X=y.createHref(U);c.replaceState(B,"",X),s&&m&&m({action:h,location:y.location,delta:0})}function S(w){let D=u.location.origin!=="null"?u.location.origin:u.location.href,U=typeof w=="string"?w:Wa(w);return U=U.replace(/ $/,"%20"),ot(D,`No window.location.(origin|href) available to create URL for href: ${U}`),new URL(U,D)}let y={get action(){return h},get location(){return e(u,c)},listen(w){if(m)throw new Error("A history only accepts one active listener");return u.addEventListener(Vv,E),m=w,()=>{u.removeEventListener(Vv,E),m=null}},createHref(w){return t(u,w)},createURL:S,encodeLocation(w){let D=S(w);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:p,replace:g,go(w){return c.go(w)}};return y}var d_=new Set(["lazy","caseSensitive","path","id","index","children"]);function m_(e){return e.index===!0}function Us(e,t,r=[],i={}){return e.map((u,s)=>{let c=[...r,String(s)],h=typeof u.id=="string"?u.id:c.join("-");if(ot(u.index!==!0||!u.children,"Cannot specify children on an index route"),ot(!i[h],`Found a route id collision on id "${h}".  Route id's must be globally unique within Data Router usages`),m_(u)){let m={...u,...t(u),id:h};return i[h]=m,m}else{let m={...u,...t(u),id:h,children:void 0};return i[h]=m,u.children&&(m.children=Us(u.children,t,c,i)),m}})}function Va(e,t,r="/"){return Ls(e,t,r,!1)}function Ls(e,t,r,i){let u=typeof t=="string"?Qa(t):t,s=en(u.pathname||"/",r);if(s==null)return null;let c=xp(e);x_(c);let h=null;for(let m=0;h==null&&m<c.length;++m){let d=C_(s);h=A_(c[m],d,i)}return h}function v_(e,t){let{route:r,pathname:i,params:u}=e;return{id:r.id,pathname:i,params:u,data:t[r.id],handle:r.handle}}function xp(e,t=[],r=[],i=""){let u=(s,c,h)=>{let m={relativePath:h===void 0?s.path||"":h,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};m.relativePath.startsWith("/")&&(ot(m.relativePath.startsWith(i),`Absolute route path "${m.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(i.length));let d=zn([i,m.relativePath]),x=r.concat(m);s.children&&s.children.length>0&&(ot(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),xp(s.children,t,x,d)),!(s.path==null&&!s.index)&&t.push({path:d,score:S_(d,s.index),routesMeta:x})};return e.forEach((s,c)=>{var h;if(s.path===""||!((h=s.path)!=null&&h.includes("?")))u(s,c);else for(let m of pp(s.path))u(s,c,m)}),t}function pp(e){let t=e.split("/");if(t.length===0)return[];let[r,...i]=t,u=r.endsWith("?"),s=r.replace(/\?$/,"");if(i.length===0)return u?[s,""]:[s];let c=pp(i.join("/")),h=[];return h.push(...c.map(m=>m===""?s:[s,m].join("/"))),u&&h.push(...c),h.map(m=>e.startsWith("/")&&m===""?"/":m)}function x_(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:w_(t.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var p_=/^:[\w-]+$/,g_=3,E_=2,y_=1,__=10,T_=-2,Yv=e=>e==="*";function S_(e,t){let r=e.split("/"),i=r.length;return r.some(Yv)&&(i+=T_),t&&(i+=E_),r.filter(u=>!Yv(u)).reduce((u,s)=>u+(p_.test(s)?g_:s===""?y_:__),i)}function w_(e,t){return e.length===t.length&&e.slice(0,-1).every((i,u)=>i===t[u])?e[e.length-1]-t[t.length-1]:0}function A_(e,t,r=!1){let{routesMeta:i}=e,u={},s="/",c=[];for(let h=0;h<i.length;++h){let m=i[h],d=h===i.length-1,x=s==="/"?t:t.slice(s.length)||"/",E=Ps({path:m.relativePath,caseSensitive:m.caseSensitive,end:d},x),p=m.route;if(!E&&d&&r&&!i[i.length-1].route.index&&(E=Ps({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},x)),!E)return null;Object.assign(u,E.params),c.push({params:u,pathname:zn([s,E.pathname]),pathnameBase:N_(zn([s,E.pathnameBase])),route:p}),E.pathnameBase!=="/"&&(s=zn([s,E.pathnameBase]))}return c}function Ps(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=R_(e.path,e.caseSensitive,e.end),u=t.match(r);if(!u)return null;let s=u[0],c=s.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:i.reduce((d,{paramName:x,isOptional:E},p)=>{if(x==="*"){let S=h[p]||"";c=s.slice(0,s.length-S.length).replace(/(.)\/+$/,"$1")}const g=h[p];return E&&!g?d[x]=void 0:d[x]=(g||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:c,pattern:e}}function R_(e,t=!1,r=!0){fr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],u="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,h,m)=>(i.push({paramName:h,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(i.push({paramName:"*"}),u+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?u+="\\/*$":e!==""&&e!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,t?void 0:"i"),i]}function C_(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function en(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}function O_(e,t="/"){let{pathname:r,search:i="",hash:u=""}=typeof e=="string"?Qa(e):e;return{pathname:r?r.startsWith("/")?r:D_(r,t):t,search:b_(i),hash:F_(u)}}function D_(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(u=>{u===".."?r.length>1&&r.pop():u!=="."&&r.push(u)}),r.length>1?r.join("/"):"/"}function Mo(e,t,r,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function gp(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function yh(e){let t=gp(e);return t.map((r,i)=>i===t.length-1?r.pathname:r.pathnameBase)}function _h(e,t,r,i=!1){let u;typeof e=="string"?u=Qa(e):(u={...e},ot(!u.pathname||!u.pathname.includes("?"),Mo("?","pathname","search",u)),ot(!u.pathname||!u.pathname.includes("#"),Mo("#","pathname","hash",u)),ot(!u.search||!u.search.includes("#"),Mo("#","search","hash",u)));let s=e===""||u.pathname==="",c=s?"/":u.pathname,h;if(c==null)h=r;else{let E=t.length-1;if(!i&&c.startsWith("..")){let p=c.split("/");for(;p[0]==="..";)p.shift(),E-=1;u.pathname=p.join("/")}h=E>=0?t[E]:"/"}let m=O_(u,h),d=c&&c!=="/"&&c.endsWith("/"),x=(s||c===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(d||x)&&(m.pathname+="/"),m}var zn=e=>e.join("/").replace(/\/\/+/g,"/"),N_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),b_=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,F_=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Hs=class{constructor(e,t,r,i=!1){this.status=e,this.statusText=t||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function lc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Ep=["POST","PUT","PATCH","DELETE"],M_=new Set(Ep),L_=["GET",...Ep],B_=new Set(L_),k_=new Set([301,302,303,307,308]),U_=new Set([307,308]),Lo={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},P_={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Al={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Th=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,H_=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),yp="remix-router-transitions",_p=Symbol("ResetLoaderData");function I_(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";ot(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i=e.mapRouteProperties||H_,u={},s=Us(e.routes,i,void 0,u),c,h=e.basename||"/",m=e.dataStrategy||X_,d=e.patchRoutesOnNavigation,x={...e.future},E=null,p=new Set,g=null,S=null,y=null,w=e.hydrationData!=null,D=Va(s,e.history.location,h),U=null;if(D==null&&!d){let V=pn(404,{pathname:e.history.location.pathname}),{matches:Q,route:se}=nx(s);D=Q,U={[se.id]:V}}D&&!e.hydrationData&&or(D,s,e.history.location.pathname).active&&(D=null);let B;if(D)if(D.some(V=>V.route.lazy))B=!1;else if(!D.some(V=>V.route.loader))B=!0;else{let V=e.hydrationData?e.hydrationData.loaderData:null,Q=e.hydrationData?e.hydrationData.errors:null;if(Q){let se=D.findIndex(Te=>Q[Te.route.id]!==void 0);B=D.slice(0,se+1).every(Te=>!ah(Te.route,V,Q))}else B=D.every(se=>!ah(se.route,V,Q))}else{B=!1,D=[];let V=or(null,s,e.history.location.pathname);V.active&&V.matches&&(D=V.matches)}let X,M={historyAction:e.history.action,location:e.history.location,matches:D,initialized:B,navigation:Lo,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||U,fetchers:new Map,blockers:new Map},fe="POP",G=!1,Z,I=!1,ee=new Map,ce=null,ve=!1,Re=!1,Ke=new Set,Me=new Map,ye=0,Be=-1,De=new Map,je=new Set,z=new Map,me=new Map,L=new Set,j=new Map,k,H=null;function ie(){if(E=e.history.listen(({action:V,location:Q,delta:se})=>{if(k){k(),k=void 0;return}fr(j.size===0||se!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let Te=tr({currentLocation:M.location,nextLocation:Q,historyAction:V});if(Te&&se!=null){let Ue=new Promise(ze=>{k=ze});e.history.go(se*-1),Or(Te,{state:"blocked",location:Q,proceed(){Or(Te,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),Ue.then(()=>e.history.go(se))},reset(){let ze=new Map(M.blockers);ze.set(Te,Al),_e({blockers:ze})}});return}return lt(V,Q)}),r){rT(t,ee);let V=()=>nT(t,ee);t.addEventListener("pagehide",V),ce=()=>t.removeEventListener("pagehide",V)}return M.initialized||lt("POP",M.location,{initialHydration:!0}),X}function Fe(){E&&E(),ce&&ce(),p.clear(),Z&&Z.abort(),M.fetchers.forEach((V,Q)=>$t(Q)),M.blockers.forEach((V,Q)=>ti(Q))}function Ce(V){return p.add(V),()=>p.delete(V)}function _e(V,Q={}){M={...M,...V};let se=[],Te=[];M.fetchers.forEach((Ue,ze)=>{Ue.state==="idle"&&(L.has(ze)?se.push(ze):Te.push(ze))}),L.forEach(Ue=>{!M.fetchers.has(Ue)&&!Me.has(Ue)&&se.push(Ue)}),[...p].forEach(Ue=>Ue(M,{deletedFetchers:se,viewTransitionOpts:Q.viewTransitionOpts,flushSync:Q.flushSync===!0})),se.forEach(Ue=>$t(Ue)),Te.forEach(Ue=>M.fetchers.delete(Ue))}function xe(V,Q,{flushSync:se}={}){var T,O;let Te=M.actionData!=null&&M.navigation.formMethod!=null&&On(M.navigation.formMethod)&&M.navigation.state==="loading"&&((T=V.state)==null?void 0:T._isRedirect)!==!0,Ue;Q.actionData?Object.keys(Q.actionData).length>0?Ue=Q.actionData:Ue=null:Te?Ue=M.actionData:Ue=null;let ze=Q.loaderData?tx(M.loaderData,Q.loaderData,Q.matches||[],Q.errors):M.loaderData,We=M.blockers;We.size>0&&(We=new Map(We),We.forEach((A,C)=>We.set(C,Al)));let Pe=G===!0||M.navigation.formMethod!=null&&On(M.navigation.formMethod)&&((O=V.state)==null?void 0:O._isRedirect)!==!0;c&&(s=c,c=void 0),ve||fe==="POP"||(fe==="PUSH"?e.history.push(V,V.state):fe==="REPLACE"&&e.history.replace(V,V.state));let Ie;if(fe==="POP"){let A=ee.get(M.location.pathname);A&&A.has(V.pathname)?Ie={currentLocation:M.location,nextLocation:V}:ee.has(V.pathname)&&(Ie={currentLocation:V,nextLocation:M.location})}else if(I){let A=ee.get(M.location.pathname);A?A.add(V.pathname):(A=new Set([V.pathname]),ee.set(M.location.pathname,A)),Ie={currentLocation:M.location,nextLocation:V}}_e({...Q,actionData:Ue,loaderData:ze,historyAction:fe,location:V,initialized:!0,navigation:Lo,revalidation:"idle",restoreScrollPosition:Vn(V,Q.matches||M.matches),preventScrollReset:Pe,blockers:We},{viewTransitionOpts:Ie,flushSync:se===!0}),fe="POP",G=!1,I=!1,ve=!1,Re=!1,H==null||H.resolve(),H=null}async function Je(V,Q){if(typeof V=="number"){e.history.go(V);return}let se=nh(M.location,M.matches,h,V,Q==null?void 0:Q.fromRouteId,Q==null?void 0:Q.relative),{path:Te,submission:Ue,error:ze}=Wv(!1,se,Q),We=M.location,Pe=Ku(M.location,Te,Q&&Q.state);Pe={...Pe,...e.history.encodeLocation(Pe)};let Ie=Q&&Q.replace!=null?Q.replace:void 0,T="PUSH";Ie===!0?T="REPLACE":Ie===!1||Ue!=null&&On(Ue.formMethod)&&Ue.formAction===M.location.pathname+M.location.search&&(T="REPLACE");let O=Q&&"preventScrollReset"in Q?Q.preventScrollReset===!0:void 0,A=(Q&&Q.flushSync)===!0,C=tr({currentLocation:We,nextLocation:Pe,historyAction:T});if(C){Or(C,{state:"blocked",location:Pe,proceed(){Or(C,{state:"proceeding",proceed:void 0,reset:void 0,location:Pe}),Je(V,Q)},reset(){let b=new Map(M.blockers);b.set(C,Al),_e({blockers:b})}});return}await lt(T,Pe,{submission:Ue,pendingError:ze,preventScrollReset:O,replace:Q&&Q.replace,enableViewTransition:Q&&Q.viewTransition,flushSync:A})}function $e(){H||(H=aT()),Tt(),_e({revalidation:"loading"});let V=H.promise;return M.navigation.state==="submitting"?V:M.navigation.state==="idle"?(lt(M.historyAction,M.location,{startUninterruptedRevalidation:!0}),V):(lt(fe||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:I===!0}),V)}async function lt(V,Q,se){Z&&Z.abort(),Z=null,fe=V,ve=(se&&se.startUninterruptedRevalidation)===!0,Ea(M.location,M.matches),G=(se&&se.preventScrollReset)===!0,I=(se&&se.enableViewTransition)===!0;let Te=c||s,Ue=se&&se.overrideNavigation,ze=Va(Te,Q,h),We=(se&&se.flushSync)===!0,Pe=or(ze,Te,Q.pathname);if(Pe.active&&Pe.matches&&(ze=Pe.matches),!ze){let{error:F,notFoundMatches:q,route:ue}=ga(Q.pathname);xe(Q,{matches:q,loaderData:{},errors:{[ue.id]:F}},{flushSync:We});return}if(M.initialized&&!Re&&Q_(M.location,Q)&&!(se&&se.submission&&On(se.submission.formMethod))){xe(Q,{matches:ze},{flushSync:We});return}Z=new AbortController;let Ie=gl(e.history,Q,Z.signal,se&&se.submission),T;if(se&&se.pendingError)T=[wi(ze).route.id,{type:"error",error:se.pendingError}];else if(se&&se.submission&&On(se.submission.formMethod)){let F=await et(Ie,Q,se.submission,ze,Pe.active,{replace:se.replace,flushSync:We});if(F.shortCircuited)return;if(F.pendingActionResult){let[q,ue]=F.pendingActionResult;if($r(ue)&&lc(ue.error)&&ue.error.status===404){Z=null,xe(Q,{matches:F.matches,loaderData:{},errors:{[q]:ue.error}});return}}ze=F.matches||ze,T=F.pendingActionResult,Ue=Bo(Q,se.submission),We=!1,Pe.active=!1,Ie=gl(e.history,Ie.url,Ie.signal)}let{shortCircuited:O,matches:A,loaderData:C,errors:b}=await rt(Ie,Q,ze,Pe.active,Ue,se&&se.submission,se&&se.fetcherSubmission,se&&se.replace,se&&se.initialHydration===!0,We,T);O||(Z=null,xe(Q,{matches:A||ze,...rx(T),loaderData:C,errors:b}))}async function et(V,Q,se,Te,Ue,ze={}){Tt();let We=eT(Q,se);if(_e({navigation:We},{flushSync:ze.flushSync===!0}),Ue){let T=await _n(Te,Q.pathname,V.signal);if(T.type==="aborted")return{shortCircuited:!0};if(T.type==="error"){let O=wi(T.partialMatches).route.id;return{matches:T.partialMatches,pendingActionResult:[O,{type:"error",error:T.error}]}}else if(T.matches)Te=T.matches;else{let{notFoundMatches:O,error:A,route:C}=ga(Q.pathname);return{matches:O,pendingActionResult:[C.id,{type:"error",error:A}]}}}let Pe,Ie=Iu(Te,Q);if(!Ie.route.action&&!Ie.route.lazy)Pe={type:"error",error:pn(405,{method:V.method,pathname:Q.pathname,routeId:Ie.route.id})};else if(Pe=(await rn("action",M,V,[Ie],Te,null))[Ie.route.id],V.signal.aborted)return{shortCircuited:!0};if(Oi(Pe)){let T;return ze&&ze.replace!=null?T=ze.replace:T=Zv(Pe.response.headers.get("Location"),new URL(V.url),h)===M.location.pathname+M.location.search,await Gt(V,Pe,!0,{submission:se,replace:T}),{shortCircuited:!0}}if($r(Pe)){let T=wi(Te,Ie.route.id);return(ze&&ze.replace)!==!0&&(fe="PUSH"),{matches:Te,pendingActionResult:[T.route.id,Pe]}}return{matches:Te,pendingActionResult:[Ie.route.id,Pe]}}async function rt(V,Q,se,Te,Ue,ze,We,Pe,Ie,T,O){let A=Ue||Bo(Q,ze),C=ze||We||ix(A),b=!ve&&!Ie;if(Te){if(b){let Qe=ft(O);_e({navigation:A,...Qe!==void 0?{actionData:Qe}:{}},{flushSync:T})}let Xe=await _n(se,Q.pathname,V.signal);if(Xe.type==="aborted")return{shortCircuited:!0};if(Xe.type==="error"){let Qe=wi(Xe.partialMatches).route.id;return{matches:Xe.partialMatches,loaderData:{},errors:{[Qe]:Xe.error}}}else if(Xe.matches)se=Xe.matches;else{let{error:Qe,notFoundMatches:St,route:zt}=ga(Q.pathname);return{matches:St,loaderData:{},errors:{[zt.id]:Qe}}}}let F=c||s,[q,ue]=Kv(e.history,M,se,C,Q,Ie===!0,Re,Ke,L,z,je,F,h,O);if(Be=++ye,q.length===0&&ue.length===0){let Xe=ei();return xe(Q,{matches:se,loaderData:{},errors:O&&$r(O[1])?{[O[0]]:O[1].error}:null,...rx(O),...Xe?{fetchers:new Map(M.fetchers)}:{}},{flushSync:T}),{shortCircuited:!0}}if(b){let Xe={};if(!Te){Xe.navigation=A;let Qe=ft(O);Qe!==void 0&&(Xe.actionData=Qe)}ue.length>0&&(Xe.fetchers=ke(ue)),_e(Xe,{flushSync:T})}ue.forEach(Xe=>{Br(Xe.key),Xe.controller&&Me.set(Xe.key,Xe.controller)});let J=()=>ue.forEach(Xe=>Br(Xe.key));Z&&Z.signal.addEventListener("abort",J);let{loaderResults:te,fetcherResults:re}=await Mn(M,se,q,ue,V);if(V.signal.aborted)return{shortCircuited:!0};Z&&Z.signal.removeEventListener("abort",J),ue.forEach(Xe=>Me.delete(Xe.key));let pe=_s(te);if(pe)return await Gt(V,pe.result,!0,{replace:Pe}),{shortCircuited:!0};if(pe=_s(re),pe)return je.add(pe.key),await Gt(V,pe.result,!0,{replace:Pe}),{shortCircuited:!0};let{loaderData:Oe,errors:Le}=ex(M,se,te,O,ue,re);Ie&&M.errors&&(Le={...M.errors,...Le});let we=ei(),Ae=yn(Be),Ye=we||Ae||ue.length>0;return{matches:se,loaderData:Oe,errors:Le,...Ye?{fetchers:new Map(M.fetchers)}:{}}}function ft(V){if(V&&!$r(V[1]))return{[V[0]]:V[1].data};if(M.actionData)return Object.keys(M.actionData).length===0?null:M.actionData}function ke(V){return V.forEach(Q=>{let se=M.fetchers.get(Q.key),Te=ku(void 0,se?se.data:void 0);M.fetchers.set(Q.key,Te)}),new Map(M.fetchers)}async function It(V,Q,se,Te){Br(V);let Ue=(Te&&Te.flushSync)===!0,ze=c||s,We=nh(M.location,M.matches,h,se,Q,Te==null?void 0:Te.relative),Pe=Va(ze,We,h),Ie=or(Pe,ze,We);if(Ie.active&&Ie.matches&&(Pe=Ie.matches),!Pe){Ze(V,Q,pn(404,{pathname:We}),{flushSync:Ue});return}let{path:T,submission:O,error:A}=Wv(!0,We,Te);if(A){Ze(V,Q,A,{flushSync:Ue});return}let C=Iu(Pe,T),b=(Te&&Te.preventScrollReset)===!0;if(O&&On(O.formMethod)){await sr(V,Q,T,C,Pe,Ie.active,Ue,b,O);return}z.set(V,{routeId:Q,path:T}),await Cr(V,Q,T,C,Pe,Ie.active,Ue,b,O)}async function sr(V,Q,se,Te,Ue,ze,We,Pe,Ie){Tt(),z.delete(V);function T(wt){if(!wt.route.action&&!wt.route.lazy){let Dr=pn(405,{method:Ie.formMethod,pathname:se,routeId:Q});return Ze(V,Q,Dr,{flushSync:We}),!0}return!1}if(!ze&&T(Te))return;let O=M.fetchers.get(V);cr(V,tT(Ie,O),{flushSync:We});let A=new AbortController,C=gl(e.history,se,A.signal,Ie);if(ze){let wt=await _n(Ue,se,C.signal);if(wt.type==="aborted")return;if(wt.type==="error"){Ze(V,Q,wt.error,{flushSync:We});return}else if(wt.matches){if(Ue=wt.matches,Te=Iu(Ue,se),T(Te))return}else{Ze(V,Q,pn(404,{pathname:se}),{flushSync:We});return}}Me.set(V,A);let b=ye,q=(await rn("action",M,C,[Te],Ue,V))[Te.route.id];if(C.signal.aborted){Me.get(V)===A&&Me.delete(V);return}if(L.has(V)){if(Oi(q)||$r(q)){cr(V,ja(void 0));return}}else{if(Oi(q))if(Me.delete(V),Be>b){cr(V,ja(void 0));return}else return je.add(V),cr(V,ku(Ie)),Gt(C,q,!1,{fetcherSubmission:Ie,preventScrollReset:Pe});if($r(q)){Ze(V,Q,q.error);return}}let ue=M.navigation.location||M.location,J=gl(e.history,ue,A.signal),te=c||s,re=M.navigation.state!=="idle"?Va(te,M.navigation.location,h):M.matches;ot(re,"Didn't find any matches after fetcher action");let pe=++ye;De.set(V,pe);let Oe=ku(Ie,q.data);M.fetchers.set(V,Oe);let[Le,we]=Kv(e.history,M,re,Ie,ue,!1,Re,Ke,L,z,je,te,h,[Te.route.id,q]);we.filter(wt=>wt.key!==V).forEach(wt=>{let Dr=wt.key,Gr=M.fetchers.get(Dr),ni=ku(void 0,Gr?Gr.data:void 0);M.fetchers.set(Dr,ni),Br(Dr),wt.controller&&Me.set(Dr,wt.controller)}),_e({fetchers:new Map(M.fetchers)});let Ae=()=>we.forEach(wt=>Br(wt.key));A.signal.addEventListener("abort",Ae);let{loaderResults:Ye,fetcherResults:Xe}=await Mn(M,re,Le,we,J);if(A.signal.aborted)return;A.signal.removeEventListener("abort",Ae),De.delete(V),Me.delete(V),we.forEach(wt=>Me.delete(wt.key));let Qe=_s(Ye);if(Qe)return Gt(J,Qe.result,!1,{preventScrollReset:Pe});if(Qe=_s(Xe),Qe)return je.add(Qe.key),Gt(J,Qe.result,!1,{preventScrollReset:Pe});let{loaderData:St,errors:zt}=ex(M,re,Ye,void 0,we,Xe);if(M.fetchers.has(V)){let wt=ja(q.data);M.fetchers.set(V,wt)}yn(pe),M.navigation.state==="loading"&&pe>Be?(ot(fe,"Expected pending action"),Z&&Z.abort(),xe(M.navigation.location,{matches:re,loaderData:St,errors:zt,fetchers:new Map(M.fetchers)})):(_e({errors:zt,loaderData:tx(M.loaderData,St,re,zt),fetchers:new Map(M.fetchers)}),Re=!1)}async function Cr(V,Q,se,Te,Ue,ze,We,Pe,Ie){let T=M.fetchers.get(V);cr(V,ku(Ie,T?T.data:void 0),{flushSync:We});let O=new AbortController,A=gl(e.history,se,O.signal);if(ze){let q=await _n(Ue,se,A.signal);if(q.type==="aborted")return;if(q.type==="error"){Ze(V,Q,q.error,{flushSync:We});return}else if(q.matches)Ue=q.matches,Te=Iu(Ue,se);else{Ze(V,Q,pn(404,{pathname:se}),{flushSync:We});return}}Me.set(V,O);let C=ye,F=(await rn("loader",M,A,[Te],Ue,V))[Te.route.id];if(Me.get(V)===O&&Me.delete(V),!A.signal.aborted){if(L.has(V)){cr(V,ja(void 0));return}if(Oi(F))if(Be>C){cr(V,ja(void 0));return}else{je.add(V),await Gt(A,F,!1,{preventScrollReset:Pe});return}if($r(F)){Ze(V,Q,F.error);return}cr(V,ja(F.data))}}async function Gt(V,Q,se,{submission:Te,fetcherSubmission:Ue,preventScrollReset:ze,replace:We}={}){Q.response.headers.has("X-Remix-Revalidate")&&(Re=!0);let Pe=Q.response.headers.get("Location");ot(Pe,"Expected a Location header on the redirect Response"),Pe=Zv(Pe,new URL(V.url),h);let Ie=Ku(M.location,Pe,{_isRedirect:!0});if(r){let F=!1;if(Q.response.headers.has("X-Remix-Reload-Document"))F=!0;else if(Th.test(Pe)){const q=e.history.createURL(Pe);F=q.origin!==t.location.origin||en(q.pathname,h)==null}if(F){We?t.location.replace(Pe):t.location.assign(Pe);return}}Z=null;let T=We===!0||Q.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:O,formAction:A,formEncType:C}=M.navigation;!Te&&!Ue&&O&&A&&C&&(Te=ix(M.navigation));let b=Te||Ue;if(U_.has(Q.response.status)&&b&&On(b.formMethod))await lt(T,Ie,{submission:{...b,formAction:Pe},preventScrollReset:ze||G,enableViewTransition:se?I:void 0});else{let F=Bo(Ie,Te);await lt(T,Ie,{overrideNavigation:F,fetcherSubmission:Ue,preventScrollReset:ze||G,enableViewTransition:se?I:void 0})}}async function rn(V,Q,se,Te,Ue,ze){let We,Pe={};try{We=await Y_(m,V,Q,se,Te,Ue,ze,u,i)}catch(Ie){return Te.forEach(T=>{Pe[T.route.id]={type:"error",error:Ie}}),Pe}for(let[Ie,T]of Object.entries(We))if(Z_(T)){let O=T.result;Pe[Ie]={type:"redirect",response:K_(O,se,Ie,Ue,h)}}else Pe[Ie]=await q_(T);return Pe}async function Mn(V,Q,se,Te,Ue){let ze=rn("loader",V,Ue,se,Q,null),We=Promise.all(Te.map(async T=>{if(T.matches&&T.match&&T.controller){let A=(await rn("loader",V,gl(e.history,T.path,T.controller.signal),[T.match],T.matches,T.key))[T.match.route.id];return{[T.key]:A}}else return Promise.resolve({[T.key]:{type:"error",error:pn(404,{pathname:T.path})}})})),Pe=await ze,Ie=(await We).reduce((T,O)=>Object.assign(T,O),{});return{loaderResults:Pe,fetcherResults:Ie}}function Tt(){Re=!0,z.forEach((V,Q)=>{Me.has(Q)&&Ke.add(Q),Br(Q)})}function cr(V,Q,se={}){M.fetchers.set(V,Q),_e({fetchers:new Map(M.fetchers)},{flushSync:(se&&se.flushSync)===!0})}function Ze(V,Q,se,Te={}){let Ue=wi(M.matches,Q);$t(V),_e({errors:{[Ue.route.id]:se},fetchers:new Map(M.fetchers)},{flushSync:(Te&&Te.flushSync)===!0})}function _r(V){return me.set(V,(me.get(V)||0)+1),L.has(V)&&L.delete(V),M.fetchers.get(V)||P_}function $t(V){let Q=M.fetchers.get(V);Me.has(V)&&!(Q&&Q.state==="loading"&&De.has(V))&&Br(V),z.delete(V),De.delete(V),je.delete(V),L.delete(V),Ke.delete(V),M.fetchers.delete(V)}function Il(V){let Q=(me.get(V)||0)-1;Q<=0?(me.delete(V),L.add(V)):me.set(V,Q),_e({fetchers:new Map(M.fetchers)})}function Br(V){let Q=Me.get(V);Q&&(Q.abort(),Me.delete(V))}function Ja(V){for(let Q of V){let se=_r(Q),Te=ja(se.data);M.fetchers.set(Q,Te)}}function ei(){let V=[],Q=!1;for(let se of je){let Te=M.fetchers.get(se);ot(Te,`Expected fetcher: ${se}`),Te.state==="loading"&&(je.delete(se),V.push(se),Q=!0)}return Ja(V),Q}function yn(V){let Q=[];for(let[se,Te]of De)if(Te<V){let Ue=M.fetchers.get(se);ot(Ue,`Expected fetcher: ${se}`),Ue.state==="loading"&&(Br(se),De.delete(se),Q.push(se))}return Ja(Q),Q.length>0}function er(V,Q){let se=M.blockers.get(V)||Al;return j.get(V)!==Q&&j.set(V,Q),se}function ti(V){M.blockers.delete(V),j.delete(V)}function Or(V,Q){let se=M.blockers.get(V)||Al;ot(se.state==="unblocked"&&Q.state==="blocked"||se.state==="blocked"&&Q.state==="blocked"||se.state==="blocked"&&Q.state==="proceeding"||se.state==="blocked"&&Q.state==="unblocked"||se.state==="proceeding"&&Q.state==="unblocked",`Invalid blocker state transition: ${se.state} -> ${Q.state}`);let Te=new Map(M.blockers);Te.set(V,Q),_e({blockers:Te})}function tr({currentLocation:V,nextLocation:Q,historyAction:se}){if(j.size===0)return;j.size>1&&fr(!1,"A router only supports one blocker at a time");let Te=Array.from(j.entries()),[Ue,ze]=Te[Te.length-1],We=M.blockers.get(Ue);if(!(We&&We.state==="proceeding")&&ze({currentLocation:V,nextLocation:Q,historyAction:se}))return Ue}function ga(V){let Q=pn(404,{pathname:V}),se=c||s,{matches:Te,route:Ue}=nx(se);return{notFoundMatches:Te,route:Ue,error:Q}}function Ii(V,Q,se){if(g=V,y=Q,S=se||null,!w&&M.navigation===Lo){w=!0;let Te=Vn(M.location,M.matches);Te!=null&&_e({restoreScrollPosition:Te})}return()=>{g=null,y=null,S=null}}function ri(V,Q){return S&&S(V,Q.map(Te=>v_(Te,M.loaderData)))||V.key}function Ea(V,Q){if(g&&y){let se=ri(V,Q);g[se]=y()}}function Vn(V,Q){if(g){let se=ri(V,Q),Te=g[se];if(typeof Te=="number")return Te}return null}function or(V,Q,se){if(d)if(V){if(Object.keys(V[0].params).length>0)return{active:!0,matches:Ls(Q,se,h,!0)}}else return{active:!0,matches:Ls(Q,se,h,!0)||[]};return{active:!1,matches:null}}async function _n(V,Q,se){if(!d)return{type:"success",matches:V};let Te=V;for(;;){let Ue=c==null,ze=c||s,We=u;try{await d({path:Q,matches:Te,patch:(T,O)=>{se.aborted||Qv(T,O,ze,We,i)}})}catch(T){return{type:"error",error:T,partialMatches:Te}}finally{Ue&&!se.aborted&&(s=[...s])}if(se.aborted)return{type:"aborted"};let Pe=Va(ze,Q,h);if(Pe)return{type:"success",matches:Pe};let Ie=Ls(ze,Q,h,!0);if(!Ie||Te.length===Ie.length&&Te.every((T,O)=>T.route.id===Ie[O].route.id))return{type:"success",matches:null};Te=Ie}}function Xn(V){u={},c=Us(V,i,void 0,u)}function zl(V,Q){let se=c==null;Qv(V,Q,c||s,u,i),se&&(s=[...s],_e({}))}return X={get basename(){return h},get future(){return x},get state(){return M},get routes(){return s},get window(){return t},initialize:ie,subscribe:Ce,enableScrollRestoration:Ii,navigate:Je,fetch:It,revalidate:$e,createHref:V=>e.history.createHref(V),encodeLocation:V=>e.history.encodeLocation(V),getFetcher:_r,deleteFetcher:Il,dispose:Fe,getBlocker:er,deleteBlocker:ti,patchRoutes:zl,_internalFetchControllers:Me,_internalSetRoutes:Xn},X}function z_(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function nh(e,t,r,i,u,s){let c,h;if(u){c=[];for(let d of t)if(c.push(d),d.route.id===u){h=d;break}}else c=t,h=t[t.length-1];let m=_h(i||".",yh(c),en(e.pathname,r)||e.pathname,s==="path");if(i==null&&(m.search=e.search,m.hash=e.hash),(i==null||i===""||i===".")&&h){let d=Sh(m.search);if(h.route.index&&!d)m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index";else if(!h.route.index&&d){let x=new URLSearchParams(m.search),E=x.getAll("index");x.delete("index"),E.filter(g=>g).forEach(g=>x.append("index",g));let p=x.toString();m.search=p?`?${p}`:""}}return r!=="/"&&(m.pathname=m.pathname==="/"?r:zn([r,m.pathname])),Wa(m)}function Wv(e,t,r){if(!r||!z_(r))return{path:t};if(r.formMethod&&!J_(r.formMethod))return{path:t,error:pn(405,{method:r.formMethod})};let i=()=>({path:t,error:pn(400,{type:"invalid-body"})}),s=(r.formMethod||"get").toUpperCase(),c=Sp(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!On(s))return i();let E=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,[g,S])=>`${p}${g}=${S}
-`,""):String(r.body);return{path:t,submission:{formMethod:s,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:E}}}else if(r.formEncType==="application/json"){if(!On(s))return i();try{let E=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:s,formAction:c,formEncType:r.formEncType,formData:void 0,json:E,text:void 0}}}catch{return i()}}}ot(typeof FormData=="function","FormData is not available in this environment");let h,m;if(r.formData)h=ih(r.formData),m=r.formData;else if(r.body instanceof FormData)h=ih(r.body),m=r.body;else if(r.body instanceof URLSearchParams)h=r.body,m=Jv(h);else if(r.body==null)h=new URLSearchParams,m=new FormData;else try{h=new URLSearchParams(r.body),m=Jv(h)}catch{return i()}let d={formMethod:s,formAction:c,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:m,json:void 0,text:void 0};if(On(d.formMethod))return{path:t,submission:d};let x=Qa(t);return e&&x.search&&Sh(x.search)&&h.append("index",""),x.search=`?${h}`,{path:Wa(x),submission:d}}function qv(e,t,r=!1){let i=e.findIndex(u=>u.route.id===t);return i>=0?e.slice(0,r?i+1:i):e}function Kv(e,t,r,i,u,s,c,h,m,d,x,E,p,g){let S=g?$r(g[1])?g[1].error:g[1].data:void 0,y=e.createURL(t.location),w=e.createURL(u),D=r;s&&t.errors?D=qv(r,Object.keys(t.errors)[0],!0):g&&$r(g[1])&&(D=qv(r,g[0]));let U=g?g[1].statusCode:void 0,B=U&&U>=400,X=D.filter((fe,G)=>{let{route:Z}=fe;if(Z.lazy)return!0;if(Z.loader==null)return!1;if(s)return ah(Z,t.loaderData,t.errors);if(j_(t.loaderData,t.matches[G],fe))return!0;let I=t.matches[G],ee=fe;return $v(fe,{currentUrl:y,currentParams:I.params,nextUrl:w,nextParams:ee.params,...i,actionResult:S,actionStatus:U,defaultShouldRevalidate:B?!1:c||y.pathname+y.search===w.pathname+w.search||y.search!==w.search||G_(I,ee)})}),M=[];return d.forEach((fe,G)=>{if(s||!r.some(ve=>ve.route.id===fe.routeId)||m.has(G))return;let Z=Va(E,fe.path,p);if(!Z){M.push({key:G,routeId:fe.routeId,path:fe.path,matches:null,match:null,controller:null});return}let I=t.fetchers.get(G),ee=Iu(Z,fe.path),ce=!1;x.has(G)?ce=!1:h.has(G)?(h.delete(G),ce=!0):I&&I.state!=="idle"&&I.data===void 0?ce=c:ce=$v(ee,{currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params,...i,actionResult:S,actionStatus:U,defaultShouldRevalidate:B?!1:c}),ce&&M.push({key:G,routeId:fe.routeId,path:fe.path,matches:Z,match:ee,controller:new AbortController})}),[X,M]}function ah(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let i=t!=null&&t[e.id]!==void 0,u=r!=null&&r[e.id]!==void 0;return!i&&u?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!i&&!u}function j_(e,t,r){let i=!t||r.route.id!==t.route.id,u=!e.hasOwnProperty(r.route.id);return i||u}function G_(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function $v(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function Qv(e,t,r,i,u){let s;if(e){let m=i[e];ot(m,`No route found to patch children into: routeId = ${e}`),m.children||(m.children=[]),s=m.children}else s=r;let c=t.filter(m=>!s.some(d=>Tp(m,d))),h=Us(c,u,[e||"_","patch",String((s==null?void 0:s.length)||"0")],i);s.push(...h)}function Tp(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,i)=>{var u;return(u=t.children)==null?void 0:u.some(s=>Tp(r,s))}):!1}async function V_(e,t,r){if(!e.lazy)return;let i=await e.lazy();if(!e.lazy)return;let u=r[e.id];ot(u,"No route found in manifest");let s={};for(let c in i){let m=u[c]!==void 0&&c!=="hasErrorBoundary";fr(!m,`Route "${u.id}" has a static property "${c}" defined but its lazy function is also returning a value for this property. The lazy route property "${c}" will be ignored.`),!m&&!d_.has(c)&&(s[c]=i[c])}Object.assign(u,s),Object.assign(u,{...t(u),lazy:void 0})}async function X_({matches:e}){let t=e.filter(i=>i.shouldLoad);return(await Promise.all(t.map(i=>i.resolve()))).reduce((i,u,s)=>Object.assign(i,{[t[s].route.id]:u}),{})}async function Y_(e,t,r,i,u,s,c,h,m,d){let x=s.map(g=>g.route.lazy?V_(g.route,m,h):void 0),E=s.map((g,S)=>{let y=x[S],w=u.some(U=>U.route.id===g.route.id);return{...g,shouldLoad:w,resolve:async U=>(U&&i.method==="GET"&&(g.route.lazy||g.route.loader)&&(w=!0),w?W_(t,i,g,y,U,d):Promise.resolve({type:"data",result:void 0}))}}),p=await e({matches:E,request:i,params:s[0].params,fetcherKey:c,context:d});try{await Promise.all(x)}catch{}return p}async function W_(e,t,r,i,u,s){let c,h,m=d=>{let x,E=new Promise((S,y)=>x=y);h=()=>x(),t.signal.addEventListener("abort",h);let p=S=>typeof d!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${r.route.id}]`)):d({request:t,params:r.params,context:s},...S!==void 0?[S]:[]),g=(async()=>{try{return{type:"data",result:await(u?u(y=>p(y)):p())}}catch(S){return{type:"error",result:S}}})();return Promise.race([g,E])};try{let d=r.route[e];if(i)if(d){let x,[E]=await Promise.all([m(d).catch(p=>{x=p}),i]);if(x!==void 0)throw x;c=E}else if(await i,d=r.route[e],d)c=await m(d);else if(e==="action"){let x=new URL(t.url),E=x.pathname+x.search;throw pn(405,{method:t.method,pathname:E,routeId:r.route.id})}else return{type:"data",result:void 0};else if(d)c=await m(d);else{let x=new URL(t.url),E=x.pathname+x.search;throw pn(404,{pathname:E})}}catch(d){return{type:"error",result:d}}finally{h&&t.signal.removeEventListener("abort",h)}return c}async function q_(e){var i,u,s,c;let{result:t,type:r}=e;if(wp(t)){let h;try{let m=t.headers.get("Content-Type");m&&/\bapplication\/json\b/.test(m)?t.body==null?h=null:h=await t.json():h=await t.text()}catch(m){return{type:"error",error:m}}return r==="error"?{type:"error",error:new Hs(t.status,t.statusText,h),statusCode:t.status,headers:t.headers}:{type:"data",data:h,statusCode:t.status,headers:t.headers}}if(r==="error"){if(ax(t)){if(t.data instanceof Error)return{type:"error",error:t.data,statusCode:(i=t.init)==null?void 0:i.status};t=new Hs(((u=t.init)==null?void 0:u.status)||500,void 0,t.data)}return{type:"error",error:t,statusCode:lc(t)?t.status:void 0}}return ax(t)?{type:"data",data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(c=t.init)!=null&&c.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function K_(e,t,r,i,u){let s=e.headers.get("Location");if(ot(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!Th.test(s)){let c=i.slice(0,i.findIndex(h=>h.route.id===r)+1);s=nh(new URL(t.url),c,u,s),e.headers.set("Location",s)}return e}function Zv(e,t,r){if(Th.test(e)){let i=e,u=i.startsWith("//")?new URL(t.protocol+i):new URL(i),s=en(u.pathname,r)!=null;if(u.origin===t.origin&&s)return u.pathname+u.search+u.hash}return e}function gl(e,t,r,i){let u=e.createURL(Sp(t)).toString(),s={signal:r};if(i&&On(i.formMethod)){let{formMethod:c,formEncType:h}=i;s.method=c.toUpperCase(),h==="application/json"?(s.headers=new Headers({"Content-Type":h}),s.body=JSON.stringify(i.json)):h==="text/plain"?s.body=i.text:h==="application/x-www-form-urlencoded"&&i.formData?s.body=ih(i.formData):s.body=i.formData}return new Request(u,s)}function ih(e){let t=new URLSearchParams;for(let[r,i]of e.entries())t.append(r,typeof i=="string"?i:i.name);return t}function Jv(e){let t=new FormData;for(let[r,i]of e.entries())t.append(r,i);return t}function $_(e,t,r,i=!1,u=!1){let s={},c=null,h,m=!1,d={},x=r&&$r(r[1])?r[1].error:void 0;return e.forEach(E=>{if(!(E.route.id in t))return;let p=E.route.id,g=t[p];if(ot(!Oi(g),"Cannot handle redirect results in processLoaderData"),$r(g)){let S=g.error;if(x!==void 0&&(S=x,x=void 0),c=c||{},u)c[p]=S;else{let y=wi(e,p);c[y.route.id]==null&&(c[y.route.id]=S)}i||(s[p]=_p),m||(m=!0,h=lc(g.error)?g.error.status:500),g.headers&&(d[p]=g.headers)}else s[p]=g.data,g.statusCode&&g.statusCode!==200&&!m&&(h=g.statusCode),g.headers&&(d[p]=g.headers)}),x!==void 0&&r&&(c={[r[0]]:x},s[r[0]]=void 0),{loaderData:s,errors:c,statusCode:h||200,loaderHeaders:d}}function ex(e,t,r,i,u,s){let{loaderData:c,errors:h}=$_(t,r,i);return u.forEach(m=>{let{key:d,match:x,controller:E}=m,p=s[d];if(ot(p,"Did not find corresponding fetcher result"),!(E&&E.signal.aborted))if($r(p)){let g=wi(e.matches,x==null?void 0:x.route.id);h&&h[g.route.id]||(h={...h,[g.route.id]:p.error}),e.fetchers.delete(d)}else if(Oi(p))ot(!1,"Unhandled fetcher revalidation redirect");else{let g=ja(p.data);e.fetchers.set(d,g)}}),{loaderData:c,errors:h}}function tx(e,t,r,i){let u=Object.entries(t).filter(([,s])=>s!==_p).reduce((s,[c,h])=>(s[c]=h,s),{});for(let s of r){let c=s.route.id;if(!t.hasOwnProperty(c)&&e.hasOwnProperty(c)&&s.route.loader&&(u[c]=e[c]),i&&i.hasOwnProperty(c))break}return u}function rx(e){return e?$r(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function wi(e,t){return(t?e.slice(0,e.findIndex(i=>i.route.id===t)+1):[...e]).reverse().find(i=>i.route.hasErrorBoundary===!0)||e[0]}function nx(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function pn(e,{pathname:t,routeId:r,method:i,type:u,message:s}={}){let c="Unknown Server Error",h="Unknown @remix-run/router error";return e===400?(c="Bad Request",i&&t&&r?h=`You made a ${i} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:u==="invalid-body"&&(h="Unable to encode submission body")):e===403?(c="Forbidden",h=`Route "${r}" does not match URL "${t}"`):e===404?(c="Not Found",h=`No route matches URL "${t}"`):e===405&&(c="Method Not Allowed",i&&t&&r?h=`You made a ${i.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:i&&(h=`Invalid request method "${i.toUpperCase()}"`)),new Hs(e||500,c,new Error(h),!0)}function _s(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[i,u]=t[r];if(Oi(u))return{key:i,result:u}}}function Sp(e){let t=typeof e=="string"?Qa(e):e;return Wa({...t,hash:""})}function Q_(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Z_(e){return wp(e.result)&&k_.has(e.result.status)}function $r(e){return e.type==="error"}function Oi(e){return(e&&e.type)==="redirect"}function ax(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function wp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function J_(e){return B_.has(e.toUpperCase())}function On(e){return M_.has(e.toUpperCase())}function Sh(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Iu(e,t){let r=typeof t=="string"?Qa(t).search:t.search;if(e[e.length-1].route.index&&Sh(r||""))return e[e.length-1];let i=gp(e);return i[i.length-1]}function ix(e){let{formMethod:t,formAction:r,formEncType:i,text:u,formData:s,json:c}=e;if(!(!t||!r||!i)){if(u!=null)return{formMethod:t,formAction:r,formEncType:i,formData:void 0,json:void 0,text:u};if(s!=null)return{formMethod:t,formAction:r,formEncType:i,formData:s,json:void 0,text:void 0};if(c!==void 0)return{formMethod:t,formAction:r,formEncType:i,formData:void 0,json:c,text:void 0}}}function Bo(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function eT(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ku(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function tT(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ja(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function rT(e,t){try{let r=e.sessionStorage.getItem(yp);if(r){let i=JSON.parse(r);for(let[u,s]of Object.entries(i||{}))s&&Array.isArray(s)&&t.set(u,new Set(s||[]))}}catch{}}function nT(e,t){if(t.size>0){let r={};for(let[i,u]of t)r[i]=[...u];try{e.sessionStorage.setItem(yp,JSON.stringify(r))}catch(i){fr(!1,`Failed to save applied view transitions in sessionStorage (${i}).`)}}}function aT(){let e,t,r=new Promise((i,u)=>{e=async s=>{i(s);try{await r}catch{}},t=async s=>{u(s);try{await r}catch{}}});return{promise:r,resolve:e,reject:t}}var Li=N.createContext(null);Li.displayName="DataRouter";var lf=N.createContext(null);lf.displayName="DataRouterState";var wh=N.createContext({isTransitioning:!1});wh.displayName="ViewTransition";var Ap=N.createContext(new Map);Ap.displayName="Fetchers";var iT=N.createContext(null);iT.displayName="Await";var Gn=N.createContext(null);Gn.displayName="Navigation";var uc=N.createContext(null);uc.displayName="Location";var Fn=N.createContext({outlet:null,matches:[],isDataRoute:!1});Fn.displayName="Route";var Ah=N.createContext(null);Ah.displayName="RouteError";function lT(e,{relative:t}={}){ot(uf(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=N.useContext(Gn),{hash:u,pathname:s,search:c}=ff(e,{relative:t}),h=s;return r!=="/"&&(h=s==="/"?r:zn([r,s])),i.createHref({pathname:h,search:c,hash:u})}function uf(){return N.useContext(uc)!=null}function va(){return ot(uf(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(uc).location}var Rp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Cp(e){N.useContext(Gn).static||N.useLayoutEffect(e)}function Op(){let{isDataRoute:e}=N.useContext(Fn);return e?yT():uT()}function uT(){ot(uf(),"useNavigate() may be used only in the context of a <Router> component.");let e=N.useContext(Li),{basename:t,navigator:r}=N.useContext(Gn),{matches:i}=N.useContext(Fn),{pathname:u}=va(),s=JSON.stringify(yh(i)),c=N.useRef(!1);return Cp(()=>{c.current=!0}),N.useCallback((m,d={})=>{if(fr(c.current,Rp),!c.current)return;if(typeof m=="number"){r.go(m);return}let x=_h(m,JSON.parse(s),u,d.relative==="path");e==null&&t!=="/"&&(x.pathname=x.pathname==="/"?t:zn([t,x.pathname])),(d.replace?r.replace:r.push)(x,d.state,d)},[t,r,s,u,e])}var fT=N.createContext(null);function sT(e){let t=N.useContext(Fn).outlet;return t&&N.createElement(fT.Provider,{value:e},t)}function d5(){let{matches:e}=N.useContext(Fn),t=e[e.length-1];return t?t.params:{}}function ff(e,{relative:t}={}){let{matches:r}=N.useContext(Fn),{pathname:i}=va(),u=JSON.stringify(yh(r));return N.useMemo(()=>_h(e,JSON.parse(u),i,t==="path"),[e,u,i,t])}function cT(e,t,r,i){ot(uf(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=N.useContext(Gn),{matches:s}=N.useContext(Fn),c=s[s.length-1],h=c?c.params:{},m=c?c.pathname:"/",d=c?c.pathnameBase:"/",x=c&&c.route;{let D=x&&x.path||"";bp(m,!x||D.endsWith("*")||D.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${D}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
-
-Please change the parent <Route path="${D}"> to <Route path="${D==="/"?"*":`${D}/*`}">.`)}let E=va(),p;p=E;let g=p.pathname||"/",S=g;if(d!=="/"){let D=d.replace(/^\//,"").split("/");S="/"+g.replace(/^\//,"").split("/").slice(D.length).join("/")}let y=Va(e,{pathname:S});return fr(x||y!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),fr(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),vT(y&&y.map(D=>Object.assign({},D,{params:Object.assign({},h,D.params),pathname:zn([d,u.encodeLocation?u.encodeLocation(D.pathname).pathname:D.pathname]),pathnameBase:D.pathnameBase==="/"?d:zn([d,u.encodeLocation?u.encodeLocation(D.pathnameBase).pathname:D.pathnameBase])})),s,r,i)}function oT(){let e=gT(),t=lc(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:i},s={padding:"2px 4px",backgroundColor:i},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:s},"ErrorBoundary")," or"," ",N.createElement("code",{style:s},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),r?N.createElement("pre",{style:u},r):null,c)}var hT=N.createElement(oT,null),dT=class extends N.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?N.createElement(Fn.Provider,{value:this.props.routeContext},N.createElement(Ah.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function mT({routeContext:e,match:t,children:r}){let i=N.useContext(Li);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),N.createElement(Fn.Provider,{value:e},r)}function vT(e,t=[],r=null,i=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let u=e,s=r==null?void 0:r.errors;if(s!=null){let m=u.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);ot(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),u=u.slice(0,Math.min(u.length,m+1))}let c=!1,h=-1;if(r)for(let m=0;m<u.length;m++){let d=u[m];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(h=m),d.route.id){let{loaderData:x,errors:E}=r,p=d.route.loader&&!x.hasOwnProperty(d.route.id)&&(!E||E[d.route.id]===void 0);if(d.route.lazy||p){c=!0,h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}return u.reduceRight((m,d,x)=>{let E,p=!1,g=null,S=null;r&&(E=s&&d.route.id?s[d.route.id]:void 0,g=d.route.errorElement||hT,c&&(h<0&&x===0?(bp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,S=null):h===x&&(p=!0,S=d.route.hydrateFallbackElement||null)));let y=t.concat(u.slice(0,x+1)),w=()=>{let D;return E?D=g:p?D=S:d.route.Component?D=N.createElement(d.route.Component,null):d.route.element?D=d.route.element:D=m,N.createElement(mT,{match:d,routeContext:{outlet:m,matches:y,isDataRoute:r!=null},children:D})};return r&&(d.route.ErrorBoundary||d.route.errorElement||x===0)?N.createElement(dT,{location:r.location,revalidation:r.revalidation,component:g,error:E,children:w(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):w()},null)}function Rh(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dp(e){let t=N.useContext(Li);return ot(t,Rh(e)),t}function Np(e){let t=N.useContext(lf);return ot(t,Rh(e)),t}function xT(e){let t=N.useContext(Fn);return ot(t,Rh(e)),t}function Ch(e){let t=xT(e),r=t.matches[t.matches.length-1];return ot(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function pT(){return Ch("useRouteId")}function gT(){var i;let e=N.useContext(Ah),t=Np("useRouteError"),r=Ch("useRouteError");return e!==void 0?e:(i=t.errors)==null?void 0:i[r]}var ET=0;function m5(e){let{router:t,basename:r}=Dp("useBlocker"),i=Np("useBlocker"),[u,s]=N.useState(""),c=N.useCallback(h=>{if(typeof e!="function")return!!e;if(r==="/")return e(h);let{currentLocation:m,nextLocation:d,historyAction:x}=h;return e({currentLocation:{...m,pathname:en(m.pathname,r)||m.pathname},nextLocation:{...d,pathname:en(d.pathname,r)||d.pathname},historyAction:x})},[r,e]);return N.useEffect(()=>{let h=String(++ET);return s(h),()=>t.deleteBlocker(h)},[t]),N.useEffect(()=>{u!==""&&t.getBlocker(u,c)},[t,u,c]),u&&i.blockers.has(u)?i.blockers.get(u):Al}function yT(){let{router:e}=Dp("useNavigate"),t=Ch("useNavigate"),r=N.useRef(!1);return Cp(()=>{r.current=!0}),N.useCallback(async(u,s={})=>{fr(r.current,Rp),r.current&&(typeof u=="number"?e.navigate(u):await e.navigate(u,{fromRouteId:t,...s}))},[e,t])}var lx={};function bp(e,t,r){!t&&!lx[e]&&(lx[e]=!0,fr(!1,r))}var ux={};function fx(e,t){!e&&!ux[t]&&(ux[t]=!0,console.warn(t))}function _T(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&fr(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:N.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&fr(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:N.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&fr(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:N.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var TT=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",t(r))}})}};function ST({router:e,flushSync:t}){let[r,i]=N.useState(e.state),[u,s]=N.useState(),[c,h]=N.useState({isTransitioning:!1}),[m,d]=N.useState(),[x,E]=N.useState(),[p,g]=N.useState(),S=N.useRef(new Map),y=N.useCallback((B,{deletedFetchers:X,flushSync:M,viewTransitionOpts:fe})=>{B.fetchers.forEach((Z,I)=>{Z.data!==void 0&&S.current.set(I,Z.data)}),X.forEach(Z=>S.current.delete(Z)),fx(M===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let G=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(fx(fe==null||G,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!fe||!G){t&&M?t(()=>i(B)):N.startTransition(()=>i(B));return}if(t&&M){t(()=>{x&&(m&&m.resolve(),x.skipTransition()),h({isTransitioning:!0,flushSync:!0,currentLocation:fe.currentLocation,nextLocation:fe.nextLocation})});let Z=e.window.document.startViewTransition(()=>{t(()=>i(B))});Z.finished.finally(()=>{t(()=>{d(void 0),E(void 0),s(void 0),h({isTransitioning:!1})})}),t(()=>E(Z));return}x?(m&&m.resolve(),x.skipTransition(),g({state:B,currentLocation:fe.currentLocation,nextLocation:fe.nextLocation})):(s(B),h({isTransitioning:!0,flushSync:!1,currentLocation:fe.currentLocation,nextLocation:fe.nextLocation}))},[e.window,t,x,m]);N.useLayoutEffect(()=>e.subscribe(y),[e,y]),N.useEffect(()=>{c.isTransitioning&&!c.flushSync&&d(new TT)},[c]),N.useEffect(()=>{if(m&&u&&e.window){let B=u,X=m.promise,M=e.window.document.startViewTransition(async()=>{N.startTransition(()=>i(B)),await X});M.finished.finally(()=>{d(void 0),E(void 0),s(void 0),h({isTransitioning:!1})}),E(M)}},[u,m,e.window]),N.useEffect(()=>{m&&u&&r.location.key===u.location.key&&m.resolve()},[m,x,r.location,u]),N.useEffect(()=>{!c.isTransitioning&&p&&(s(p.state),h({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),g(void 0))},[c.isTransitioning,p]);let w=N.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:B=>e.navigate(B),push:(B,X,M)=>e.navigate(B,{state:X,preventScrollReset:M==null?void 0:M.preventScrollReset}),replace:(B,X,M)=>e.navigate(B,{replace:!0,state:X,preventScrollReset:M==null?void 0:M.preventScrollReset})}),[e]),D=e.basename||"/",U=N.useMemo(()=>({router:e,navigator:w,static:!1,basename:D}),[e,w,D]);return N.createElement(N.Fragment,null,N.createElement(Li.Provider,{value:U},N.createElement(lf.Provider,{value:r},N.createElement(Ap.Provider,{value:S.current},N.createElement(wh.Provider,{value:c},N.createElement(RT,{basename:D,location:r.location,navigationType:r.historyAction,navigator:w},N.createElement(wT,{routes:e.routes,future:e.future,state:r})))))),null)}var wT=N.memo(AT);function AT({routes:e,future:t,state:r}){return cT(e,void 0,r,t)}function v5(e){return sT(e.context)}function RT({basename:e="/",children:t=null,location:r,navigationType:i="POP",navigator:u,static:s=!1}){ot(!uf(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),h=N.useMemo(()=>({basename:c,navigator:u,static:s,future:{}}),[c,u,s]);typeof r=="string"&&(r=Qa(r));let{pathname:m="/",search:d="",hash:x="",state:E=null,key:p="default"}=r,g=N.useMemo(()=>{let S=en(m,c);return S==null?null:{location:{pathname:S,search:d,hash:x,state:E,key:p},navigationType:i}},[c,m,d,x,E,p,i]);return fr(g!=null,`<Router basename="${c}"> is not able to match the URL "${m}${d}${x}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:N.createElement(Gn.Provider,{value:h},N.createElement(uc.Provider,{children:t,value:g}))}var Bs="get",ks="application/x-www-form-urlencoded";function fc(e){return e!=null&&typeof e.tagName=="string"}function CT(e){return fc(e)&&e.tagName.toLowerCase()==="button"}function OT(e){return fc(e)&&e.tagName.toLowerCase()==="form"}function DT(e){return fc(e)&&e.tagName.toLowerCase()==="input"}function NT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bT(e,t){return e.button===0&&(!t||t==="_self")&&!NT(e)}function lh(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let i=e[r];return t.concat(Array.isArray(i)?i.map(u=>[r,u]):[[r,i]])},[]))}function FT(e,t){let r=lh(e);return t&&t.forEach((i,u)=>{r.has(u)||t.getAll(u).forEach(s=>{r.append(u,s)})}),r}var Ts=null;function MT(){if(Ts===null)try{new FormData(document.createElement("form"),0),Ts=!1}catch{Ts=!0}return Ts}var LT=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ko(e){return e!=null&&!LT.has(e)?(fr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ks}"`),null):e}function BT(e,t){let r,i,u,s,c;if(OT(e)){let h=e.getAttribute("action");i=h?en(h,t):null,r=e.getAttribute("method")||Bs,u=ko(e.getAttribute("enctype"))||ks,s=new FormData(e)}else if(CT(e)||DT(e)&&(e.type==="submit"||e.type==="image")){let h=e.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=e.getAttribute("formaction")||h.getAttribute("action");if(i=m?en(m,t):null,r=e.getAttribute("formmethod")||h.getAttribute("method")||Bs,u=ko(e.getAttribute("formenctype"))||ko(h.getAttribute("enctype"))||ks,s=new FormData(h,e),!MT()){let{name:d,type:x,value:E}=e;if(x==="image"){let p=d?`${d}.`:"";s.append(`${p}x`,"0"),s.append(`${p}y`,"0")}else d&&s.append(d,E)}}else{if(fc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Bs,i=null,u=ks,c=e}return s&&u==="text/plain"&&(c=s,s=void 0),{action:i,method:r.toLowerCase(),encType:u,formData:s,body:c}}function Oh(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function kT(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function UT(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function PT(e,t,r){let i=await Promise.all(e.map(async u=>{let s=t.routes[u.route.id];if(s){let c=await kT(s,r);return c.links?c.links():[]}return[]}));return jT(i.flat(1).filter(UT).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function sx(e,t,r,i,u,s){let c=(m,d)=>r[d]?m.route.id!==r[d].route.id:!0,h=(m,d)=>{var x;return r[d].pathname!==m.pathname||((x=r[d].route.path)==null?void 0:x.endsWith("*"))&&r[d].params["*"]!==m.params["*"]};return s==="assets"?t.filter((m,d)=>c(m,d)||h(m,d)):s==="data"?t.filter((m,d)=>{var E;let x=i.routes[m.route.id];if(!x||!x.hasLoader)return!1;if(c(m,d)||h(m,d))return!0;if(m.route.shouldRevalidate){let p=m.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((E=r[0])==null?void 0:E.params)||{},nextUrl:new URL(e,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function HT(e,t){return IT(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let u=[i.module];return i.imports&&(u=u.concat(i.imports)),u}).flat(1))}function IT(e){return[...new Set(e)]}function zT(e){let t={},r=Object.keys(e).sort();for(let i of r)t[i]=e[i];return t}function jT(e,t){let r=new Set;return new Set(t),e.reduce((i,u)=>{let s=JSON.stringify(zT(u));return r.has(s)||(r.add(s),i.push({key:s,link:u})),i},[])}function GT(e){let t=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return t.pathname==="/"?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}function VT(){let e=N.useContext(Li);return Oh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function XT(){let e=N.useContext(lf);return Oh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Dh=N.createContext(void 0);Dh.displayName="FrameworkContext";function Fp(){let e=N.useContext(Dh);return Oh(e,"You must render this element inside a <HydratedRouter> element"),e}function YT(e,t){let r=N.useContext(Dh),[i,u]=N.useState(!1),[s,c]=N.useState(!1),{onFocus:h,onBlur:m,onMouseEnter:d,onMouseLeave:x,onTouchStart:E}=t,p=N.useRef(null);N.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let y=D=>{D.forEach(U=>{c(U.isIntersecting)})},w=new IntersectionObserver(y,{threshold:.5});return p.current&&w.observe(p.current),()=>{w.disconnect()}}},[e]),N.useEffect(()=>{if(i){let y=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(y)}}},[i]);let g=()=>{u(!0)},S=()=>{u(!1),c(!1)};return r?e!=="intent"?[s,p,{}]:[s,p,{onFocus:Uu(h,g),onBlur:Uu(m,S),onMouseEnter:Uu(d,g),onMouseLeave:Uu(x,S),onTouchStart:Uu(E,g)}]:[!1,p,{}]}function Uu(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function WT({page:e,...t}){let{router:r}=VT(),i=N.useMemo(()=>Va(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?N.createElement(KT,{page:e,matches:i,...t}):null}function qT(e){let{manifest:t,routeModules:r}=Fp(),[i,u]=N.useState([]);return N.useEffect(()=>{let s=!1;return PT(e,t,r).then(c=>{s||u(c)}),()=>{s=!0}},[e,t,r]),i}function KT({page:e,matches:t,...r}){let i=va(),{manifest:u,routeModules:s}=Fp(),{loaderData:c,matches:h}=XT(),m=N.useMemo(()=>sx(e,t,h,u,i,"data"),[e,t,h,u,i]),d=N.useMemo(()=>sx(e,t,h,u,i,"assets"),[e,t,h,u,i]),x=N.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let g=new Set,S=!1;if(t.forEach(w=>{var U;let D=u.routes[w.route.id];!D||!D.hasLoader||(!m.some(B=>B.route.id===w.route.id)&&w.route.id in c&&((U=s[w.route.id])!=null&&U.shouldRevalidate)||D.hasClientLoader?S=!0:g.add(w.route.id))}),g.size===0)return[];let y=GT(e);return S&&g.size>0&&y.searchParams.set("_routes",t.filter(w=>g.has(w.route.id)).map(w=>w.route.id).join(",")),[y.pathname+y.search]},[c,i,u,m,t,e,s]),E=N.useMemo(()=>HT(d,u),[d,u]),p=qT(d);return N.createElement(N.Fragment,null,x.map(g=>N.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})),E.map(g=>N.createElement("link",{key:g,rel:"modulepreload",href:g,...r})),p.map(({key:g,link:S})=>N.createElement("link",{key:g,...S})))}function $T(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Mp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Mp&&(window.__reactRouterVersion="7.1.3")}catch{}function x5(e,t){return I_({basename:t==null?void 0:t.basename,future:t==null?void 0:t.future,history:c_({window:t==null?void 0:t.window}),hydrationData:QT(),routes:e,mapRouteProperties:_T,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function QT(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:ZT(e.errors)}),e}function ZT(e){if(!e)return null;let t=Object.entries(e),r={};for(let[i,u]of t)if(u&&u.__type==="RouteErrorResponse")r[i]=new Hs(u.status,u.statusText,u.data,u.internal===!0);else if(u&&u.__type==="Error"){if(u.__subType){let s=window[u.__subType];if(typeof s=="function")try{let c=new s(u.message);c.stack="",r[i]=c}catch{}}if(r[i]==null){let s=new Error(u.message);s.stack="",r[i]=s}}else r[i]=u;return r}var Lp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$u=N.forwardRef(function({onClick:t,discover:r="render",prefetch:i="none",relative:u,reloadDocument:s,replace:c,state:h,target:m,to:d,preventScrollReset:x,viewTransition:E,...p},g){let{basename:S}=N.useContext(Gn),y=typeof d=="string"&&Lp.test(d),w,D=!1;if(typeof d=="string"&&y&&(w=d,Mp))try{let I=new URL(window.location.href),ee=d.startsWith("//")?new URL(I.protocol+d):new URL(d),ce=en(ee.pathname,S);ee.origin===I.origin&&ce!=null?d=ce+ee.search+ee.hash:D=!0}catch{fr(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let U=lT(d,{relative:u}),[B,X,M]=YT(i,p),fe=rS(d,{replace:c,state:h,target:m,preventScrollReset:x,relative:u,viewTransition:E});function G(I){t&&t(I),I.defaultPrevented||fe(I)}let Z=N.createElement("a",{...p,...M,href:w||U,onClick:D||s?t:G,ref:$T(g,X),target:m,"data-discover":!y&&r==="render"?"true":void 0});return B&&!y?N.createElement(N.Fragment,null,Z,N.createElement(WT,{page:U})):Z});$u.displayName="Link";var JT=N.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:i="",end:u=!1,style:s,to:c,viewTransition:h,children:m,...d},x){let E=ff(c,{relative:d.relative}),p=va(),g=N.useContext(lf),{navigator:S,basename:y}=N.useContext(Gn),w=g!=null&&uS(E)&&h===!0,D=S.encodeLocation?S.encodeLocation(E).pathname:E.pathname,U=p.pathname,B=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||(U=U.toLowerCase(),B=B?B.toLowerCase():null,D=D.toLowerCase()),B&&y&&(B=en(B,y)||B);const X=D!=="/"&&D.endsWith("/")?D.length-1:D.length;let M=U===D||!u&&U.startsWith(D)&&U.charAt(X)==="/",fe=B!=null&&(B===D||!u&&B.startsWith(D)&&B.charAt(D.length)==="/"),G={isActive:M,isPending:fe,isTransitioning:w},Z=M?t:void 0,I;typeof i=="function"?I=i(G):I=[i,M?"active":null,fe?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let ee=typeof s=="function"?s(G):s;return N.createElement($u,{...d,"aria-current":Z,className:I,ref:x,style:ee,to:c,viewTransition:h},typeof m=="function"?m(G):m)});JT.displayName="NavLink";var eS=N.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:i,replace:u,state:s,method:c=Bs,action:h,onSubmit:m,relative:d,preventScrollReset:x,viewTransition:E,...p},g)=>{let S=iS(),y=lS(h,{relative:d}),w=c.toLowerCase()==="get"?"get":"post",D=typeof h=="string"&&Lp.test(h),U=B=>{if(m&&m(B),B.defaultPrevented)return;B.preventDefault();let X=B.nativeEvent.submitter,M=(X==null?void 0:X.getAttribute("formmethod"))||c;S(X||B.currentTarget,{fetcherKey:t,method:M,navigate:r,replace:u,state:s,relative:d,preventScrollReset:x,viewTransition:E})};return N.createElement("form",{ref:g,method:w,action:y,onSubmit:i?m:U,...p,"data-discover":!D&&e==="render"?"true":void 0})});eS.displayName="Form";function tS(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bp(e){let t=N.useContext(Li);return ot(t,tS(e)),t}function rS(e,{target:t,replace:r,state:i,preventScrollReset:u,relative:s,viewTransition:c}={}){let h=Op(),m=va(),d=ff(e,{relative:s});return N.useCallback(x=>{if(bT(x,t)){x.preventDefault();let E=r!==void 0?r:Wa(m)===Wa(d);h(e,{replace:E,state:i,preventScrollReset:u,relative:s,viewTransition:c})}},[m,h,d,r,i,t,e,u,s,c])}function p5(e){fr(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=N.useRef(lh(e)),r=N.useRef(!1),i=va(),u=N.useMemo(()=>FT(i.search,r.current?null:t.current),[i.search]),s=Op(),c=N.useCallback((h,m)=>{const d=lh(typeof h=="function"?h(u):h);r.current=!0,s("?"+d,m)},[s,u]);return[u,c]}var nS=0,aS=()=>`__${String(++nS)}__`;function iS(){let{router:e}=Bp("useSubmit"),{basename:t}=N.useContext(Gn),r=pT();return N.useCallback(async(i,u={})=>{let{action:s,method:c,encType:h,formData:m,body:d}=BT(i,t);if(u.navigate===!1){let x=u.fetcherKey||aS();await e.fetch(x,r,u.action||s,{preventScrollReset:u.preventScrollReset,formData:m,body:d,formMethod:u.method||c,formEncType:u.encType||h,flushSync:u.flushSync})}else await e.navigate(u.action||s,{preventScrollReset:u.preventScrollReset,formData:m,body:d,formMethod:u.method||c,formEncType:u.encType||h,replace:u.replace,state:u.state,fromRouteId:r,flushSync:u.flushSync,viewTransition:u.viewTransition})},[e,t,r])}function lS(e,{relative:t}={}){let{basename:r}=N.useContext(Gn),i=N.useContext(Fn);ot(i,"useFormAction must be used inside a RouteContext");let[u]=i.matches.slice(-1),s={...ff(e||".",{relative:t})},c=va();if(e==null){s.search=c.search;let h=new URLSearchParams(s.search),m=h.getAll("index");if(m.some(x=>x==="")){h.delete("index"),m.filter(E=>E).forEach(E=>h.append("index",E));let x=h.toString();s.search=x?`?${x}`:""}}return(!e||e===".")&&u.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:zn([r,s.pathname])),Wa(s)}function uS(e,t={}){let r=N.useContext(wh);ot(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Bp("useViewTransitionState"),u=ff(e,{relative:t.relative});if(!r.isTransitioning)return!1;let s=en(r.currentLocation.pathname,i)||r.currentLocation.pathname,c=en(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Ps(u.pathname,c)!=null||Ps(u.pathname,s)!=null}new TextEncoder;var kp=vp();const Cl=af(kp);/**
- * react-router v7.1.3
- *
- * Copyright (c) Remix Software Inc.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE.md file in the root directory of this source tree.
- *
- * @license MIT
- */function g5(e){return N.createElement(ST,{flushSync:kp.flushSync,...e})}const fS=N.createContext({show:!1,toggle:()=>{}}),sS=e=>{const t=Rr.c(8),{children:r}=e,[i,u]=N.useState(!1);let s;t[0]!==i?(s=()=>{u(!i)},t[0]=i,t[1]=s):s=t[1];const c=s;let h;t[2]!==i||t[3]!==c?(h={show:i,toggle:c},t[2]=i,t[3]=c,t[4]=h):h=t[4];let m;return t[5]!==r||t[6]!==h?(m=ae.jsx(fS.Provider,{value:h,children:r}),t[5]=r,t[6]=h,t[7]=m):m=t[7],m};async function cS(){return await(await fetch("/api/user/")).json()}const uh={name:"",email:"",permissions:{admin:!1,active:!1},id:"",nrens:[],oidc_sub:"",role:""},Up=N.createContext({user:uh,logout:()=>{},setUser:()=>{}}),oS=e=>{const t=Rr.c(8),{children:r}=e,[i,u]=N.useState(uh);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=async function(){await fetch("/logout"),u(uh)},t[0]=s):s=t[0];const c=s;let h,m;t[1]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{cS().then(E=>{u(E)})},m=[],t[1]=h,t[2]=m):(h=t[1],m=t[2]),N.useEffect(h,m);let d;t[3]!==i?(d={user:i,logout:c,setUser:u},t[3]=i,t[4]=d):d=t[4];let x;return t[5]!==r||t[6]!==d?(x=ae.jsx(Up.Provider,{value:d,children:r}),t[5]=r,t[6]=d,t[7]=x):x=t[7],x},hS=N.createContext({filterSelection:{selectedYears:[],selectedNrens:[]},setFilterSelection:()=>{}}),dS=e=>{const t=Rr.c(6),{children:r}=e;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={selectedYears:[],selectedNrens:[]},t[0]=i):i=t[0];const[u,s]=N.useState(i);let c;t[1]!==u?(c={filterSelection:u,setFilterSelection:s},t[1]=u,t[2]=c):c=t[2];let h;return t[3]!==r||t[4]!==c?(h=ae.jsx(hS.Provider,{value:c,children:r}),t[3]=r,t[4]=c,t[5]=h):h=t[5],h},mS=N.createContext(null),vS=e=>{const t=Rr.c(2),{children:r}=e,i=N.useRef(null);let u;return t[0]!==r?(u=ae.jsx(mS.Provider,{value:i,children:r}),t[0]=r,t[1]=u):u=t[1],u},xS=N.createContext({preview:!1,setPreview:()=>{}}),pS=e=>{const t=Rr.c(5),{children:r}=e,[i,u]=N.useState(!1);let s;t[0]!==i?(s={preview:i,setPreview:u},t[0]=i,t[1]=s):s=t[1];let c;return t[2]!==r||t[3]!==s?(c=ae.jsx(xS.Provider,{value:s,children:r}),t[2]=r,t[3]=s,t[4]=c):c=t[4],c};async function gS(){try{return await(await fetch("/api/nren/list")).json()}catch{return[]}}const ES=N.createContext({nrens:[],setNrens:()=>{}}),yS=e=>{const t=Rr.c(8),{children:r}=e;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=[],t[0]=i):i=t[0];const[u,s]=N.useState(i);let c,h;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{gS().then(x=>s(x))},h=[],t[1]=c,t[2]=h):(c=t[1],h=t[2]),N.useEffect(c,h);let m;t[3]!==u?(m={nrens:u,setNrens:s},t[3]=u,t[4]=m):m=t[4];let d;return t[5]!==r||t[6]!==m?(d=ae.jsx(ES.Provider,{value:m,children:r}),t[5]=r,t[6]=m,t[7]=d):d=t[7],d},Uo={TRACK_EVENT:"trackEvent",TRACK_LINK:"trackLink",TRACK_VIEW:"trackPageView"};class _S{constructor(t){Nv(this,"mutationObserver");if(!t.urlBase)throw new Error("Matomo urlBase is required.");if(!t.siteId)throw new Error("Matomo siteId is required.");this.initialize(t)}initialize({urlBase:t,siteId:r,userId:i,trackerUrl:u,srcUrl:s,disabled:c,heartBeat:h,requireConsent:m=!1,configurations:d={}}){const x=t[t.length-1]!=="/"?`${t}/`:t;if(typeof window>"u"||(window._paq=window._paq||[],window._paq.length!==0)||c)return;m&&this.pushInstruction("requireConsent"),this.pushInstruction("setTrackerUrl",u??`${x}matomo.php`),this.pushInstruction("setSiteId",r),i&&this.pushInstruction("setUserId",i),Object.entries(d).forEach(([S,y])=>{y instanceof Array?this.pushInstruction(S,...y):this.pushInstruction(S,y)}),(!h||h&&h.active)&&this.enableHeartBeatTimer((h&&h.seconds)??15);const E=document,p=E.createElement("script"),g=E.getElementsByTagName("script")[0];p.type="text/javascript",p.async=!0,p.defer=!0,p.src=s||`${x}matomo.js`,g&&g.parentNode&&g.parentNode.insertBefore(p,g)}enableHeartBeatTimer(t){this.pushInstruction("enableHeartBeatTimer",t)}trackEventsForElements(t){t.length&&t.forEach(r=>{r.addEventListener("click",()=>{const{matomoCategory:i,matomoAction:u,matomoName:s,matomoValue:c}=r.dataset;if(i&&u)this.trackEvent({category:i,action:u,name:s,value:Number(c)});else throw new Error("Error: data-matomo-category and data-matomo-action are required.")})})}trackEvents(){const t='[data-matomo-event="click"]';let r=!1;if(this.mutationObserver||(r=!0,this.mutationObserver=new MutationObserver(i=>{i.forEach(u=>{u.addedNodes.forEach(s=>{if(!(s instanceof HTMLElement))return;s.matches(t)&&this.trackEventsForElements([s]);const c=Array.from(s.querySelectorAll(t));this.trackEventsForElements(c)})})})),this.mutationObserver.observe(document,{childList:!0,subtree:!0}),r){const i=Array.from(document.querySelectorAll(t));this.trackEventsForElements(i)}}stopObserving(){this.mutationObserver&&this.mutationObserver.disconnect()}trackEvent({category:t,action:r,name:i,value:u,...s}){if(t&&r)this.track({data:[Uo.TRACK_EVENT,t,r,i,u],...s});else throw new Error("Error: category and action are required.")}giveConsent(){this.pushInstruction("setConsentGiven")}trackLink({href:t,linkType:r="link"}){this.pushInstruction(Uo.TRACK_LINK,t,r)}trackPageView(t){this.track({data:[Uo.TRACK_VIEW],...t})}track({data:t=[],documentTitle:r=window.document.title,href:i,customDimensions:u=!1}){t.length&&(u&&Array.isArray(u)&&u.length&&u.map(s=>this.pushInstruction("setCustomDimension",s.id,s.value)),this.pushInstruction("setCustomUrl",i??window.location.href),this.pushInstruction("setDocumentTitle",r),this.pushInstruction(...t))}pushInstruction(t,...r){return typeof window<"u"&&window._paq.push([t,...r]),this}}function TS(e){return window.location.hostname==="localhost"&&(console.log("Matomo tracking disabled in development mode."),e.disabled=!0),new _S(e)}const Nh=N.createContext({consent:null,setConsent:()=>{}}),SS=e=>{const t=Rr.c(7),{children:r}=e,i=wS;let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=i(),t[0]=u):u=t[0];const[s,c]=N.useState(u);let h;t[1]===Symbol.for("react.memo_cache_sentinel")?(h=x=>c(x),t[1]=h):h=t[1];let m;t[2]!==s?(m={setConsent:h,consent:s},t[2]=s,t[3]=m):m=t[3];let d;return t[4]!==r||t[5]!==m?(d=ae.jsx(Nh.Provider,{value:m,children:r}),t[4]=r,t[5]=m,t[6]=d):d=t[6],d};function wS(){const e=localStorage.getItem("matomo_consent");if(e){const t=JSON.parse(e);if(new Date(t.expiry)>new Date)return t.consent}return null}const Pp=N.createContext(null),AS=function(e){const t=Rr.c(5),{children:r}=e,u=!N.useContext(Nh).consent;let s;t[0]!==u?(s=TS({urlBase:"https://prod-swd-webanalytics01.geant.org/",siteId:1,disabled:u}),t[0]=u,t[1]=s):s=t[1];const c=s;let h;return t[2]!==r||t[3]!==c?(h=ae.jsx(Pp.Provider,{value:c,children:r}),t[2]=r,t[3]=c,t[4]=h):h=t[4],h},RS=()=>{const e=JSON.parse(localStorage.getItem("config")??"{}"),t={};for(const r in e){const i=e[r];i.expireTime&&i.expireTime<Date.now()||i&&(t[r]=i)}return t},Po=e=>{localStorage.setItem("config",JSON.stringify(e))},CS=N.createContext({getConfig:()=>{},setConfig:()=>{}}),OS=e=>{const t=Rr.c(12),{children:r}=e;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=RS(),t[0]=i):i=t[0];const[u,s]=N.useState(i);let c;t[1]!==u?(c=(p,g,S)=>{var U;if(!p)throw new Error("Valid config key must be provided");if(g==null){const B={...u};delete B[p],s(B),Po(B);return}const y=JSON.stringify(g),w=JSON.stringify((U=u[p])==null?void 0:U.value);if(y===w)return;const D=S?S.getTime():null;if(D&&D<Date.now())throw new Error("Timeout must be in the future");D?(s({...u,[p]:{value:g,expireTime:D}}),Po({...u,[p]:{value:g,expireTime:D}})):(s({...u,[p]:{value:g}}),Po({...u,[p]:{value:g}}))},t[1]=u,t[2]=c):c=t[2];const h=c;let m;t[3]!==u||t[4]!==h?(m=p=>{const g=u[p];if(g!=null&&g.expireTime&&g.expireTime<Date.now()){h(p);return}if(g!=null)return g.value},t[3]=u,t[4]=h,t[5]=m):m=t[5];const d=m;let x;t[6]!==d||t[7]!==h?(x={getConfig:d,setConfig:h},t[6]=d,t[7]=h,t[8]=x):x=t[8];let E;return t[9]!==r||t[10]!==x?(E=ae.jsx(CS.Provider,{value:x,children:r}),t[9]=r,t[10]=x,t[11]=E):E=t[11],E};function E5(e){const t=Rr.c(2),{children:r}=e;let i;return t[0]!==r?(i=ae.jsx(OS,{children:ae.jsx(SS,{children:ae.jsx(AS,{children:ae.jsx(sS,{children:ae.jsx(oS,{children:ae.jsx(dS,{children:ae.jsx(vS,{children:ae.jsx(pS,{children:ae.jsx(yS,{children:r})})})})})})})})}),t[0]=r,t[1]=i):i=t[1],i}var Ho={exports:{}};/*!
-	Copyright (c) 2018 Jed Watson.
-	Licensed under the MIT License (MIT), see
-	http://jedwatson.github.io/classnames
-*/var cx;function DS(){return cx||(cx=1,function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",c=0;c<arguments.length;c++){var h=arguments[c];h&&(s=u(s,i(h)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var h in s)t.call(s,h)&&s[h]&&(c=u(c,h));return c}function u(s,c){return c?s?s+" "+c:s+c:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(Ho)),Ho.exports}var NS=DS();const _t=af(NS);function fh(){return fh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},fh.apply(null,arguments)}function Hp(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;r[i]=e[i]}return r}function ox(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function bS(e){var t=FS(e,"string");return typeof t=="symbol"?t:String(t)}function FS(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function MS(e,t,r){var i=N.useRef(e!==void 0),u=N.useState(t),s=u[0],c=u[1],h=e!==void 0,m=i.current;return i.current=h,!h&&m&&s!==t&&c(t),[h?e:s,N.useCallback(function(d){for(var x=arguments.length,E=new Array(x>1?x-1:0),p=1;p<x;p++)E[p-1]=arguments[p];r&&r.apply(void 0,[d].concat(E)),c(d)},[r])]}function y5(e,t){return Object.keys(t).reduce(function(r,i){var u,s=r,c=s[ox(i)],h=s[i],m=Hp(s,[ox(i),i].map(bS)),d=t[i],x=MS(h,c,e[d]),E=x[0],p=x[1];return fh({},m,(u={},u[i]=E,u[d]=p,u))},e)}function sh(e,t){return sh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sh(e,t)}function LS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sh(e,t)}const BS=["xxl","xl","lg","md","sm","xs"],kS="xs",sc=N.createContext({prefixes:{},breakpoints:BS,minBreakpoint:kS});function Ht(e,t){const{prefixes:r}=N.useContext(sc);return e||r[t]||t}function Ip(){const{breakpoints:e}=N.useContext(sc);return e}function zp(){const{minBreakpoint:e}=N.useContext(sc);return e}function US(){const{dir:e}=N.useContext(sc);return e==="rtl"}function cc(e){return e&&e.ownerDocument||document}function PS(e){var t=cc(e);return t&&t.defaultView||window}function HS(e,t){return PS(e).getComputedStyle(e,t)}var IS=/([A-Z])/g;function zS(e){return e.replace(IS,"-$1").toLowerCase()}var jS=/^ms-/;function Ss(e){return zS(e).replace(jS,"-ms-")}var GS=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function VS(e){return!!(e&&GS.test(e))}function Di(e,t){var r="",i="";if(typeof t=="string")return e.style.getPropertyValue(Ss(t))||HS(e).getPropertyValue(Ss(t));Object.keys(t).forEach(function(u){var s=t[u];!s&&s!==0?e.style.removeProperty(Ss(u)):VS(u)?i+=u+"("+s+") ":r+=Ss(u)+": "+s+";"}),i&&(r+="transform: "+i+";"),e.style.cssText+=";"+r}var Io={exports:{}},zo,hx;function XS(){if(hx)return zo;hx=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return zo=e,zo}var jo,dx;function YS(){if(dx)return jo;dx=1;var e=XS();function t(){}function r(){}return r.resetWarningCache=t,jo=function(){function i(c,h,m,d,x,E){if(E!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}i.isRequired=i;function u(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:u,element:i,elementType:i,instanceOf:u,node:i,objectOf:u,oneOf:u,oneOfType:u,shape:u,exact:u,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},jo}var mx;function WS(){return mx||(mx=1,Io.exports=YS()()),Io.exports}var qS=WS();const fa=af(qS),vx={disabled:!1},jp=Hr.createContext(null);var KS=function(t){return t.scrollTop},zu="unmounted",Si="exited",Ga="entering",Ai="entered",ch="exiting",xa=function(e){LS(t,e);function t(i,u){var s;s=e.call(this,i,u)||this;var c=u,h=c&&!c.isMounting?i.enter:i.appear,m;return s.appearStatus=null,i.in?h?(m=Si,s.appearStatus=Ga):m=Ai:i.unmountOnExit||i.mountOnEnter?m=zu:m=Si,s.state={status:m},s.nextCallback=null,s}t.getDerivedStateFromProps=function(u,s){var c=u.in;return c&&s.status===zu?{status:Si}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(u){var s=null;if(u!==this.props){var c=this.state.status;this.props.in?c!==Ga&&c!==Ai&&(s=Ga):(c===Ga||c===Ai)&&(s=ch)}this.updateStatus(!1,s)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var u=this.props.timeout,s,c,h;return s=c=h=u,u!=null&&typeof u!="number"&&(s=u.exit,c=u.enter,h=u.appear!==void 0?u.appear:c),{exit:s,enter:c,appear:h}},r.updateStatus=function(u,s){if(u===void 0&&(u=!1),s!==null)if(this.cancelNextCallback(),s===Ga){if(this.props.unmountOnExit||this.props.mountOnEnter){var c=this.props.nodeRef?this.props.nodeRef.current:Cl.findDOMNode(this);c&&KS(c)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Si&&this.setState({status:zu})},r.performEnter=function(u){var s=this,c=this.props.enter,h=this.context?this.context.isMounting:u,m=this.props.nodeRef?[h]:[Cl.findDOMNode(this),h],d=m[0],x=m[1],E=this.getTimeouts(),p=h?E.appear:E.enter;if(!u&&!c||vx.disabled){this.safeSetState({status:Ai},function(){s.props.onEntered(d)});return}this.props.onEnter(d,x),this.safeSetState({status:Ga},function(){s.props.onEntering(d,x),s.onTransitionEnd(p,function(){s.safeSetState({status:Ai},function(){s.props.onEntered(d,x)})})})},r.performExit=function(){var u=this,s=this.props.exit,c=this.getTimeouts(),h=this.props.nodeRef?void 0:Cl.findDOMNode(this);if(!s||vx.disabled){this.safeSetState({status:Si},function(){u.props.onExited(h)});return}this.props.onExit(h),this.safeSetState({status:ch},function(){u.props.onExiting(h),u.onTransitionEnd(c.exit,function(){u.safeSetState({status:Si},function(){u.props.onExited(h)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(u,s){s=this.setNextCallback(s),this.setState(u,s)},r.setNextCallback=function(u){var s=this,c=!0;return this.nextCallback=function(h){c&&(c=!1,s.nextCallback=null,u(h))},this.nextCallback.cancel=function(){c=!1},this.nextCallback},r.onTransitionEnd=function(u,s){this.setNextCallback(s);var c=this.props.nodeRef?this.props.nodeRef.current:Cl.findDOMNode(this),h=u==null&&!this.props.addEndListener;if(!c||h){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[c,this.nextCallback],d=m[0],x=m[1];this.props.addEndListener(d,x)}u!=null&&setTimeout(this.nextCallback,u)},r.render=function(){var u=this.state.status;if(u===zu)return null;var s=this.props,c=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var h=Hp(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Hr.createElement(jp.Provider,{value:null},typeof c=="function"?c(u,h):Hr.cloneElement(Hr.Children.only(c),h))},t}(Hr.Component);xa.contextType=jp;xa.propTypes={};function El(){}xa.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:El,onEntering:El,onEntered:El,onExit:El,onExiting:El,onExited:El};xa.UNMOUNTED=zu;xa.EXITED=Si;xa.ENTERING=Ga;xa.ENTERED=Ai;xa.EXITING=ch;function $S(e){return e.code==="Escape"||e.keyCode===27}function QS(){const e=N.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function Gp(e){if(!e||typeof e=="function")return null;const{major:t}=QS();return t>=19?e.props.ref:e.ref}const Bl=!!(typeof window<"u"&&window.document&&window.document.createElement);var oh=!1,hh=!1;try{var Go={get passive(){return oh=!0},get once(){return hh=oh=!0}};Bl&&(window.addEventListener("test",Go,Go),window.removeEventListener("test",Go,!0))}catch{}function Vp(e,t,r,i){if(i&&typeof i!="boolean"&&!hh){var u=i.once,s=i.capture,c=r;!hh&&u&&(c=r.__once||function h(m){this.removeEventListener(t,h,s),r.call(this,m)},r.__once=c),e.addEventListener(t,c,oh?i:s)}e.addEventListener(t,r,i)}function dh(e,t,r,i){var u=i&&typeof i!="boolean"?i.capture:i;e.removeEventListener(t,r,u),r.__once&&e.removeEventListener(t,r.__once,u)}function Is(e,t,r,i){return Vp(e,t,r,i),function(){dh(e,t,r,i)}}function ZS(e,t,r,i){if(i===void 0&&(i=!0),e){var u=document.createEvent("HTMLEvents");u.initEvent(t,r,i),e.dispatchEvent(u)}}function JS(e){var t=Di(e,"transitionDuration")||"",r=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*r}function e4(e,t,r){r===void 0&&(r=5);var i=!1,u=setTimeout(function(){i||ZS(e,"transitionend",!0)},t+r),s=Is(e,"transitionend",function(){i=!0},{once:!0});return function(){clearTimeout(u),s()}}function Xp(e,t,r,i){r==null&&(r=JS(e)||0);var u=e4(e,r,i),s=Is(e,"transitionend",t);return function(){u(),s()}}function xx(e,t){const r=Di(e,t)||"",i=r.indexOf("ms")===-1?1e3:1;return parseFloat(r)*i}function t4(e,t){const r=xx(e,"transitionDuration"),i=xx(e,"transitionDelay"),u=Xp(e,s=>{s.target===e&&(u(),t(s))},r+i)}function r4(e){e.offsetHeight}const px=e=>!e||typeof e=="function"?e:t=>{e.current=t};function n4(e,t){const r=px(e),i=px(t);return u=>{r&&r(u),i&&i(u)}}function Yp(e,t){return N.useMemo(()=>n4(e,t),[e,t])}function a4(e){return e&&"setState"in e?Cl.findDOMNode(e):e??null}const i4=Hr.forwardRef(({onEnter:e,onEntering:t,onEntered:r,onExit:i,onExiting:u,onExited:s,addEndListener:c,children:h,childRef:m,...d},x)=>{const E=N.useRef(null),p=Yp(E,m),g=fe=>{p(a4(fe))},S=fe=>G=>{fe&&E.current&&fe(E.current,G)},y=N.useCallback(S(e),[e]),w=N.useCallback(S(t),[t]),D=N.useCallback(S(r),[r]),U=N.useCallback(S(i),[i]),B=N.useCallback(S(u),[u]),X=N.useCallback(S(s),[s]),M=N.useCallback(S(c),[c]);return ae.jsx(xa,{ref:x,...d,onEnter:y,onEntered:D,onEntering:w,onExit:U,onExited:X,onExiting:B,addEndListener:M,nodeRef:E,children:typeof h=="function"?(fe,G)=>h(fe,{...G,ref:g}):Hr.cloneElement(h,{ref:g})})});function l4(e){const t=N.useRef(e);return N.useEffect(()=>{t.current=e},[e]),t}function mh(e){const t=l4(e);return N.useCallback(function(...r){return t.current&&t.current(...r)},[t])}const u4=e=>N.forwardRef((t,r)=>ae.jsx("div",{...t,ref:r,className:_t(t.className,e)}));function f4(e){const t=N.useRef(e);return N.useEffect(()=>{t.current=e},[e]),t}function Ri(e){const t=f4(e);return N.useCallback(function(...r){return t.current&&t.current(...r)},[t])}function s4(){const e=N.useRef(!0),t=N.useRef(()=>e.current);return N.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function c4(e){const t=N.useRef(null);return N.useEffect(()=>{t.current=e}),t.current}const o4=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",h4=typeof document<"u",gx=h4||o4?N.useLayoutEffect:N.useEffect,d4=["as","disabled"];function m4(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function v4(e){return!e||e.trim()==="#"}function Wp({tagName:e,disabled:t,href:r,target:i,rel:u,role:s,onClick:c,tabIndex:h=0,type:m}){e||(r!=null||i!=null||u!=null?e="a":e="button");const d={tagName:e};if(e==="button")return[{type:m||"button",disabled:t},d];const x=p=>{if((t||e==="a"&&v4(r))&&p.preventDefault(),t){p.stopPropagation();return}c==null||c(p)},E=p=>{p.key===" "&&(p.preventDefault(),x(p))};return e==="a"&&(r||(r="#"),t&&(r=void 0)),[{role:s??"button",disabled:void 0,tabIndex:t?void 0:h,href:r,target:e==="a"?i:void 0,"aria-disabled":t||void 0,rel:e==="a"?u:void 0,onClick:x,onKeyDown:E},d]}const x4=N.forwardRef((e,t)=>{let{as:r,disabled:i}=e,u=m4(e,d4);const[s,{tagName:c}]=Wp(Object.assign({tagName:r,disabled:i},u));return ae.jsx(c,Object.assign({},u,s,{ref:t}))});x4.displayName="Button";const p4={[Ga]:"show",[Ai]:"show"},bh=N.forwardRef(({className:e,children:t,transitionClasses:r={},onEnter:i,...u},s)=>{const c={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...u},h=N.useCallback((m,d)=>{r4(m),i==null||i(m,d)},[i]);return ae.jsx(i4,{ref:s,addEndListener:t4,...c,onEnter:h,childRef:Gp(t),children:(m,d)=>N.cloneElement(t,{...d,className:_t("fade",e,t.props.className,p4[m],r[m])})})});bh.displayName="Fade";const g4={"aria-label":fa.string,onClick:fa.func,variant:fa.oneOf(["white"])},Fh=N.forwardRef(({className:e,variant:t,"aria-label":r="Close",...i},u)=>ae.jsx("button",{ref:u,type:"button",className:_t("btn-close",t&&`btn-close-${t}`,e),"aria-label":r,...i}));Fh.displayName="CloseButton";Fh.propTypes=g4;const vh=N.forwardRef(({as:e,bsPrefix:t,variant:r="primary",size:i,active:u=!1,disabled:s=!1,className:c,...h},m)=>{const d=Ht(t,"btn"),[x,{tagName:E}]=Wp({tagName:e,disabled:s,...h}),p=E;return ae.jsx(p,{...x,...h,ref:m,disabled:s,className:_t(c,d,u&&"active",r&&`${d}-${r}`,i&&`${d}-${i}`,h.href&&s&&"disabled")})});vh.displayName="Button";function E4(e){const t=N.useRef(e);return t.current=e,t}function y4(e){const t=E4(e);N.useEffect(()=>()=>t.current(),[])}function _4(e,t){return N.Children.toArray(e).some(r=>N.isValidElement(r)&&r.type===t)}function T4({as:e,bsPrefix:t,className:r,...i}){t=Ht(t,"col");const u=Ip(),s=zp(),c=[],h=[];return u.forEach(m=>{const d=i[m];delete i[m];let x,E,p;typeof d=="object"&&d!=null?{span:x,offset:E,order:p}=d:x=d;const g=m!==s?`-${m}`:"";x&&c.push(x===!0?`${t}${g}`:`${t}${g}-${x}`),p!=null&&h.push(`order${g}-${p}`),E!=null&&h.push(`offset${g}-${E}`)}),[{...i,className:_t(r,...c,...h)},{as:e,bsPrefix:t,spans:c}]}const Ml=N.forwardRef((e,t)=>{const[{className:r,...i},{as:u="div",bsPrefix:s,spans:c}]=T4(e);return ae.jsx(u,{...i,ref:t,className:_t(r,!c.length&&s)})});Ml.displayName="Col";const Mh=N.forwardRef(({bsPrefix:e,fluid:t=!1,as:r="div",className:i,...u},s)=>{const c=Ht(e,"container"),h=typeof t=="string"?`-${t}`:"-fluid";return ae.jsx(r,{ref:s,...u,className:_t(i,t?`${c}${h}`:c)})});Mh.displayName="Container";var S4=Function.prototype.bind.call(Function.prototype.call,[].slice);function yl(e,t){return S4(e.querySelectorAll(t))}function Ex(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}var Vo,yx;function w4(){if(yx)return Vo;yx=1;var e=function(){};return Vo=e,Vo}var A4=w4();const _5=af(A4),R4="data-rr-ui-";function C4(e){return`${R4}${e}`}const qp=N.createContext(Bl?window:void 0);qp.Provider;function Lh(){return N.useContext(qp)}const O4=N.createContext(null);O4.displayName="InputGroupContext";const D4={type:fa.string,tooltip:fa.bool,as:fa.elementType},oc=N.forwardRef(({as:e="div",className:t,type:r="valid",tooltip:i=!1,...u},s)=>ae.jsx(e,{...u,ref:s,className:_t(t,`${r}-${i?"tooltip":"feedback"}`)}));oc.displayName="Feedback";oc.propTypes=D4;const ha=N.createContext({}),Bh=N.forwardRef(({id:e,bsPrefix:t,className:r,type:i="checkbox",isValid:u=!1,isInvalid:s=!1,as:c="input",...h},m)=>{const{controlId:d}=N.useContext(ha);return t=Ht(t,"form-check-input"),ae.jsx(c,{...h,ref:m,type:i,id:e||d,className:_t(r,t,u&&"is-valid",s&&"is-invalid")})});Bh.displayName="FormCheckInput";const zs=N.forwardRef(({bsPrefix:e,className:t,htmlFor:r,...i},u)=>{const{controlId:s}=N.useContext(ha);return e=Ht(e,"form-check-label"),ae.jsx("label",{...i,ref:u,htmlFor:r||s,className:_t(t,e)})});zs.displayName="FormCheckLabel";const Kp=N.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:r,inline:i=!1,reverse:u=!1,disabled:s=!1,isValid:c=!1,isInvalid:h=!1,feedbackTooltip:m=!1,feedback:d,feedbackType:x,className:E,style:p,title:g="",type:S="checkbox",label:y,children:w,as:D="input",...U},B)=>{t=Ht(t,"form-check"),r=Ht(r,"form-switch");const{controlId:X}=N.useContext(ha),M=N.useMemo(()=>({controlId:e||X}),[X,e]),fe=!w&&y!=null&&y!==!1||_4(w,zs),G=ae.jsx(Bh,{...U,type:S==="switch"?"checkbox":S,ref:B,isValid:c,isInvalid:h,disabled:s,as:D});return ae.jsx(ha.Provider,{value:M,children:ae.jsx("div",{style:p,className:_t(E,fe&&t,i&&`${t}-inline`,u&&`${t}-reverse`,S==="switch"&&r),children:w||ae.jsxs(ae.Fragment,{children:[G,fe&&ae.jsx(zs,{title:g,children:y}),d&&ae.jsx(oc,{type:x,tooltip:m,children:d})]})})})});Kp.displayName="FormCheck";const js=Object.assign(Kp,{Input:Bh,Label:zs}),$p=N.forwardRef(({bsPrefix:e,type:t,size:r,htmlSize:i,id:u,className:s,isValid:c=!1,isInvalid:h=!1,plaintext:m,readOnly:d,as:x="input",...E},p)=>{const{controlId:g}=N.useContext(ha);return e=Ht(e,"form-control"),ae.jsx(x,{...E,type:t,size:i,ref:p,readOnly:d,id:u||g,className:_t(s,m?`${e}-plaintext`:e,r&&`${e}-${r}`,t==="color"&&`${e}-color`,c&&"is-valid",h&&"is-invalid")})});$p.displayName="FormControl";const N4=Object.assign($p,{Feedback:oc}),Qp=N.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},u)=>(t=Ht(t,"form-floating"),ae.jsx(r,{ref:u,className:_t(e,t),...i})));Qp.displayName="FormFloating";const kh=N.forwardRef(({controlId:e,as:t="div",...r},i)=>{const u=N.useMemo(()=>({controlId:e}),[e]);return ae.jsx(ha.Provider,{value:u,children:ae.jsx(t,{...r,ref:i})})});kh.displayName="FormGroup";const Zp=N.forwardRef(({as:e="label",bsPrefix:t,column:r=!1,visuallyHidden:i=!1,className:u,htmlFor:s,...c},h)=>{const{controlId:m}=N.useContext(ha);t=Ht(t,"form-label");let d="col-form-label";typeof r=="string"&&(d=`${d} ${d}-${r}`);const x=_t(u,t,i&&"visually-hidden",r&&d);return s=s||m,r?ae.jsx(Ml,{ref:h,as:"label",className:x,htmlFor:s,...c}):ae.jsx(e,{ref:h,className:x,htmlFor:s,...c})});Zp.displayName="FormLabel";const Jp=N.forwardRef(({bsPrefix:e,className:t,id:r,...i},u)=>{const{controlId:s}=N.useContext(ha);return e=Ht(e,"form-range"),ae.jsx("input",{...i,type:"range",ref:u,className:_t(t,e),id:r||s})});Jp.displayName="FormRange";const eg=N.forwardRef(({bsPrefix:e,size:t,htmlSize:r,className:i,isValid:u=!1,isInvalid:s=!1,id:c,...h},m)=>{const{controlId:d}=N.useContext(ha);return e=Ht(e,"form-select"),ae.jsx("select",{...h,size:r,ref:m,className:_t(i,e,t&&`${e}-${t}`,u&&"is-valid",s&&"is-invalid"),id:c||d})});eg.displayName="FormSelect";const tg=N.forwardRef(({bsPrefix:e,className:t,as:r="small",muted:i,...u},s)=>(e=Ht(e,"form-text"),ae.jsx(r,{...u,ref:s,className:_t(t,e,i&&"text-muted")})));tg.displayName="FormText";const rg=N.forwardRef((e,t)=>ae.jsx(js,{...e,ref:t,type:"switch"}));rg.displayName="Switch";const b4=Object.assign(rg,{Input:js.Input,Label:js.Label}),ng=N.forwardRef(({bsPrefix:e,className:t,children:r,controlId:i,label:u,...s},c)=>(e=Ht(e,"form-floating"),ae.jsxs(kh,{ref:c,className:_t(t,e),controlId:i,...s,children:[r,ae.jsx("label",{htmlFor:i,children:u})]})));ng.displayName="FloatingLabel";const F4={_ref:fa.any,validated:fa.bool,as:fa.elementType},Uh=N.forwardRef(({className:e,validated:t,as:r="form",...i},u)=>ae.jsx(r,{...i,ref:u,className:_t(e,t&&"was-validated")}));Uh.displayName="Form";Uh.propTypes=F4;const ws=Object.assign(Uh,{Group:kh,Control:N4,Floating:Qp,Check:js,Switch:b4,Label:Zp,Text:tg,Range:Jp,Select:eg,FloatingLabel:ng}),_x=e=>!e||typeof e=="function"?e:t=>{e.current=t};function M4(e,t){const r=_x(e),i=_x(t);return u=>{r&&r(u),i&&i(u)}}function Ph(e,t){return N.useMemo(()=>M4(e,t),[e,t])}var As;function Tx(e){if((!As&&As!==0||e)&&Bl){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),As=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return As}function L4(){return N.useState(null)}function Xo(e){e===void 0&&(e=cc());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function B4(e){const t=N.useRef(e);return t.current=e,t}function k4(e){const t=B4(e);N.useEffect(()=>()=>t.current(),[])}function U4(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const Sx=C4("modal-open");class Hh{constructor({ownerDocument:t,handleContainerOverflow:r=!0,isRTL:i=!1}={}){this.handleContainerOverflow=r,this.isRTL=i,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return U4(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const r={overflow:"hidden"},i=this.isRTL?"paddingLeft":"paddingRight",u=this.getElement();t.style={overflow:u.style.overflow,[i]:u.style[i]},t.scrollBarWidth&&(r[i]=`${parseInt(Di(u,i)||"0",10)+t.scrollBarWidth}px`),u.setAttribute(Sx,""),Di(u,r)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const r=this.getElement();r.removeAttribute(Sx),Object.assign(r.style,t.style)}add(t){let r=this.modals.indexOf(t);return r!==-1||(r=this.modals.length,this.modals.push(t),this.setModalAttributes(t),r!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),r}remove(t){const r=this.modals.indexOf(t);r!==-1&&(this.modals.splice(r,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const Yo=(e,t)=>Bl?e==null?(t||cc()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function P4(e,t){const r=Lh(),[i,u]=N.useState(()=>Yo(e,r==null?void 0:r.document));if(!i){const s=Yo(e);s&&u(s)}return N.useEffect(()=>{},[t,i]),N.useEffect(()=>{const s=Yo(e);s!==i&&u(s)},[e,i]),i}function H4({children:e,in:t,onExited:r,mountOnEnter:i,unmountOnExit:u}){const s=N.useRef(null),c=N.useRef(t),h=Ri(r);N.useEffect(()=>{t?c.current=!0:h(s.current)},[t,h]);const m=Ph(s,e.ref),d=N.cloneElement(e,{ref:m});return t?d:u||!c.current&&i?null:d}const I4=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function z4(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function j4(e){let{onEnter:t,onEntering:r,onEntered:i,onExit:u,onExiting:s,onExited:c,addEndListener:h,children:m}=e,d=z4(e,I4);const x=N.useRef(null),E=Ph(x,Gp(m)),p=X=>M=>{X&&x.current&&X(x.current,M)},g=N.useCallback(p(t),[t]),S=N.useCallback(p(r),[r]),y=N.useCallback(p(i),[i]),w=N.useCallback(p(u),[u]),D=N.useCallback(p(s),[s]),U=N.useCallback(p(c),[c]),B=N.useCallback(p(h),[h]);return Object.assign({},d,{nodeRef:x},t&&{onEnter:g},r&&{onEntering:S},i&&{onEntered:y},u&&{onExit:w},s&&{onExiting:D},c&&{onExited:U},h&&{addEndListener:B},{children:typeof m=="function"?(X,M)=>m(X,Object.assign({},M,{ref:E})):N.cloneElement(m,{ref:E})})}const G4=["component"];function V4(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}const X4=N.forwardRef((e,t)=>{let{component:r}=e,i=V4(e,G4);const u=j4(i);return ae.jsx(r,Object.assign({ref:t},u))});function Y4({in:e,onTransition:t}){const r=N.useRef(null),i=N.useRef(!0),u=Ri(t);return gx(()=>{if(!r.current)return;let s=!1;return u({in:e,element:r.current,initial:i.current,isStale:()=>s}),()=>{s=!0}},[e,u]),gx(()=>(i.current=!1,()=>{i.current=!0}),[]),r}function W4({children:e,in:t,onExited:r,onEntered:i,transition:u}){const[s,c]=N.useState(!t);t&&s&&c(!1);const h=Y4({in:!!t,onTransition:d=>{const x=()=>{d.isStale()||(d.in?i==null||i(d.element,d.initial):(c(!0),r==null||r(d.element)))};Promise.resolve(u(d)).then(x,E=>{throw d.in||c(!0),E})}}),m=Ph(h,e.ref);return s&&!t?null:N.cloneElement(e,{ref:m})}function wx(e,t,r){return e?ae.jsx(X4,Object.assign({},r,{component:e})):t?ae.jsx(W4,Object.assign({},r,{transition:t})):ae.jsx(H4,Object.assign({},r))}const q4=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function K4(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}let Wo;function $4(e){return Wo||(Wo=new Hh({ownerDocument:e==null?void 0:e.document})),Wo}function Q4(e){const t=Lh(),r=e||$4(t),i=N.useRef({dialog:null,backdrop:null});return Object.assign(i.current,{add:()=>r.add(i.current),remove:()=>r.remove(i.current),isTopModal:()=>r.isTopModal(i.current),setDialogRef:N.useCallback(u=>{i.current.dialog=u},[]),setBackdropRef:N.useCallback(u=>{i.current.backdrop=u},[])})}const ag=N.forwardRef((e,t)=>{let{show:r=!1,role:i="dialog",className:u,style:s,children:c,backdrop:h=!0,keyboard:m=!0,onBackdropClick:d,onEscapeKeyDown:x,transition:E,runTransition:p,backdropTransition:g,runBackdropTransition:S,autoFocus:y=!0,enforceFocus:w=!0,restoreFocus:D=!0,restoreFocusOptions:U,renderDialog:B,renderBackdrop:X=rt=>ae.jsx("div",Object.assign({},rt)),manager:M,container:fe,onShow:G,onHide:Z=()=>{},onExit:I,onExited:ee,onExiting:ce,onEnter:ve,onEntering:Re,onEntered:Ke}=e,Me=K4(e,q4);const ye=Lh(),Be=P4(fe),De=Q4(M),je=s4(),z=c4(r),[me,L]=N.useState(!r),j=N.useRef(null);N.useImperativeHandle(t,()=>De,[De]),Bl&&!z&&r&&(j.current=Xo(ye==null?void 0:ye.document)),r&&me&&L(!1);const k=Ri(()=>{if(De.add(),xe.current=Is(document,"keydown",Ce),_e.current=Is(document,"focus",()=>setTimeout(ie),!0),G&&G(),y){var rt,ft;const ke=Xo((rt=(ft=De.dialog)==null?void 0:ft.ownerDocument)!=null?rt:ye==null?void 0:ye.document);De.dialog&&ke&&!Ex(De.dialog,ke)&&(j.current=ke,De.dialog.focus())}}),H=Ri(()=>{if(De.remove(),xe.current==null||xe.current(),_e.current==null||_e.current(),D){var rt;(rt=j.current)==null||rt.focus==null||rt.focus(U),j.current=null}});N.useEffect(()=>{!r||!Be||k()},[r,Be,k]),N.useEffect(()=>{me&&H()},[me,H]),k4(()=>{H()});const ie=Ri(()=>{if(!w||!je()||!De.isTopModal())return;const rt=Xo(ye==null?void 0:ye.document);De.dialog&&rt&&!Ex(De.dialog,rt)&&De.dialog.focus()}),Fe=Ri(rt=>{rt.target===rt.currentTarget&&(d==null||d(rt),h===!0&&Z())}),Ce=Ri(rt=>{m&&$S(rt)&&De.isTopModal()&&(x==null||x(rt),rt.defaultPrevented||Z())}),_e=N.useRef(),xe=N.useRef(),Je=(...rt)=>{L(!0),ee==null||ee(...rt)};if(!Be)return null;const $e=Object.assign({role:i,ref:De.setDialogRef,"aria-modal":i==="dialog"?!0:void 0},Me,{style:s,className:u,tabIndex:-1});let lt=B?B($e):ae.jsx("div",Object.assign({},$e,{children:N.cloneElement(c,{role:"document"})}));lt=wx(E,p,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!r,onExit:I,onExiting:ce,onExited:Je,onEnter:ve,onEntering:Re,onEntered:Ke,children:lt});let et=null;return h&&(et=X({ref:De.setBackdropRef,onClick:Fe}),et=wx(g,S,{in:!!r,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:et})),ae.jsx(ae.Fragment,{children:Cl.createPortal(ae.jsxs(ae.Fragment,{children:[et,lt]}),Be)})});ag.displayName="Modal";const Z4=Object.assign(ag,{Manager:Hh});function J4(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function ew(e,t){e.classList?e.classList.add(t):J4(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Ax(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function tw(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Ax(e.className,t):e.setAttribute("class",Ax(e.className&&e.className.baseVal||"",t))}const _l={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class rw extends Hh{adjustAndStore(t,r,i){const u=r.style[t];r.dataset[t]=u,Di(r,{[t]:`${parseFloat(Di(r,t))+i}px`})}restore(t,r){const i=r.dataset[t];i!==void 0&&(delete r.dataset[t],Di(r,{[t]:i}))}setContainerStyle(t){super.setContainerStyle(t);const r=this.getElement();if(ew(r,"modal-open"),!t.scrollBarWidth)return;const i=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";yl(r,_l.FIXED_CONTENT).forEach(s=>this.adjustAndStore(i,s,t.scrollBarWidth)),yl(r,_l.STICKY_CONTENT).forEach(s=>this.adjustAndStore(u,s,-t.scrollBarWidth)),yl(r,_l.NAVBAR_TOGGLER).forEach(s=>this.adjustAndStore(u,s,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const r=this.getElement();tw(r,"modal-open");const i=this.isRTL?"paddingLeft":"paddingRight",u=this.isRTL?"marginLeft":"marginRight";yl(r,_l.FIXED_CONTENT).forEach(s=>this.restore(i,s)),yl(r,_l.STICKY_CONTENT).forEach(s=>this.restore(u,s)),yl(r,_l.NAVBAR_TOGGLER).forEach(s=>this.restore(u,s))}}let qo;function nw(e){return qo||(qo=new rw(e)),qo}const ig=N.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},u)=>(t=Ht(t,"modal-body"),ae.jsx(r,{ref:u,className:_t(e,t),...i})));ig.displayName="ModalBody";const lg=N.createContext({onHide(){}}),Ih=N.forwardRef(({bsPrefix:e,className:t,contentClassName:r,centered:i,size:u,fullscreen:s,children:c,scrollable:h,...m},d)=>{e=Ht(e,"modal");const x=`${e}-dialog`,E=typeof s=="string"?`${e}-fullscreen-${s}`:`${e}-fullscreen`;return ae.jsx("div",{...m,ref:d,className:_t(x,t,u&&`${e}-${u}`,i&&`${x}-centered`,h&&`${x}-scrollable`,s&&E),children:ae.jsx("div",{className:_t(`${e}-content`,r),children:c})})});Ih.displayName="ModalDialog";const ug=N.forwardRef(({className:e,bsPrefix:t,as:r="div",...i},u)=>(t=Ht(t,"modal-footer"),ae.jsx(r,{ref:u,className:_t(e,t),...i})));ug.displayName="ModalFooter";const aw=N.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:r=!1,onHide:i,children:u,...s},c)=>{const h=N.useContext(lg),m=mh(()=>{h==null||h.onHide(),i==null||i()});return ae.jsxs("div",{ref:c,...s,children:[u,r&&ae.jsx(Fh,{"aria-label":e,variant:t,onClick:m})]})}),fg=N.forwardRef(({bsPrefix:e,className:t,closeLabel:r="Close",closeButton:i=!1,...u},s)=>(e=Ht(e,"modal-header"),ae.jsx(aw,{ref:s,...u,className:_t(t,e),closeLabel:r,closeButton:i})));fg.displayName="ModalHeader";const iw=u4("h4"),sg=N.forwardRef(({className:e,bsPrefix:t,as:r=iw,...i},u)=>(t=Ht(t,"modal-title"),ae.jsx(r,{ref:u,className:_t(e,t),...i})));sg.displayName="ModalTitle";function lw(e){return ae.jsx(bh,{...e,timeout:null})}function uw(e){return ae.jsx(bh,{...e,timeout:null})}const cg=N.forwardRef(({bsPrefix:e,className:t,style:r,dialogClassName:i,contentClassName:u,children:s,dialogAs:c=Ih,"data-bs-theme":h,"aria-labelledby":m,"aria-describedby":d,"aria-label":x,show:E=!1,animation:p=!0,backdrop:g=!0,keyboard:S=!0,onEscapeKeyDown:y,onShow:w,onHide:D,container:U,autoFocus:B=!0,enforceFocus:X=!0,restoreFocus:M=!0,restoreFocusOptions:fe,onEntered:G,onExit:Z,onExiting:I,onEnter:ee,onEntering:ce,onExited:ve,backdropClassName:Re,manager:Ke,...Me},ye)=>{const[Be,De]=N.useState({}),[je,z]=N.useState(!1),me=N.useRef(!1),L=N.useRef(!1),j=N.useRef(null),[k,H]=L4(),ie=Yp(ye,H),Fe=mh(D),Ce=US();e=Ht(e,"modal");const _e=N.useMemo(()=>({onHide:Fe}),[Fe]);function xe(){return Ke||nw({isRTL:Ce})}function Je(Ze){if(!Bl)return;const _r=xe().getScrollbarWidth()>0,$t=Ze.scrollHeight>cc(Ze).documentElement.clientHeight;De({paddingRight:_r&&!$t?Tx():void 0,paddingLeft:!_r&&$t?Tx():void 0})}const $e=mh(()=>{k&&Je(k.dialog)});y4(()=>{dh(window,"resize",$e),j.current==null||j.current()});const lt=()=>{me.current=!0},et=Ze=>{me.current&&k&&Ze.target===k.dialog&&(L.current=!0),me.current=!1},rt=()=>{z(!0),j.current=Xp(k.dialog,()=>{z(!1)})},ft=Ze=>{Ze.target===Ze.currentTarget&&rt()},ke=Ze=>{if(g==="static"){ft(Ze);return}if(L.current||Ze.target!==Ze.currentTarget){L.current=!1;return}D==null||D()},It=Ze=>{S?y==null||y(Ze):(Ze.preventDefault(),g==="static"&&rt())},sr=(Ze,_r)=>{Ze&&Je(Ze),ee==null||ee(Ze,_r)},Cr=Ze=>{j.current==null||j.current(),Z==null||Z(Ze)},Gt=(Ze,_r)=>{ce==null||ce(Ze,_r),Vp(window,"resize",$e)},rn=Ze=>{Ze&&(Ze.style.display=""),ve==null||ve(Ze),dh(window,"resize",$e)},Mn=N.useCallback(Ze=>ae.jsx("div",{...Ze,className:_t(`${e}-backdrop`,Re,!p&&"show")}),[p,Re,e]),Tt={...r,...Be};Tt.display="block";const cr=Ze=>ae.jsx("div",{role:"dialog",...Ze,style:Tt,className:_t(t,e,je&&`${e}-static`,!p&&"show"),onClick:g?ke:void 0,onMouseUp:et,"data-bs-theme":h,"aria-label":x,"aria-labelledby":m,"aria-describedby":d,children:ae.jsx(c,{...Me,onMouseDown:lt,className:i,contentClassName:u,children:s})});return ae.jsx(lg.Provider,{value:_e,children:ae.jsx(Z4,{show:E,ref:ie,backdrop:g,container:U,keyboard:!0,autoFocus:B,enforceFocus:X,restoreFocus:M,restoreFocusOptions:fe,onEscapeKeyDown:It,onShow:w,onHide:D,onEnter:sr,onEntering:Gt,onEntered:G,onExit:Cr,onExiting:I,onExited:rn,manager:xe(),transition:p?lw:void 0,backdropTransition:p?uw:void 0,renderBackdrop:Mn,renderDialog:cr})})});cg.displayName="Modal";const Pu=Object.assign(cg,{Body:ig,Header:fg,Title:sg,Footer:ug,Dialog:Ih,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),hc=N.forwardRef(({bsPrefix:e,className:t,as:r="div",...i},u)=>{const s=Ht(e,"row"),c=Ip(),h=zp(),m=`${s}-cols`,d=[];return c.forEach(x=>{const E=i[x];delete i[x];let p;E!=null&&typeof E=="object"?{cols:p}=E:p=E;const g=x!==h?`-${x}`:"";p!=null&&d.push(`${m}${g}-${p}`)}),ae.jsx(r,{ref:u,...i,className:_t(t,s,...d)})});hc.displayName="Row";const T5=N.forwardRef(({bsPrefix:e,className:t,striped:r,bordered:i,borderless:u,hover:s,size:c,variant:h,responsive:m,...d},x)=>{const E=Ht(e,"table"),p=_t(t,E,h&&`${E}-${h}`,c&&`${E}-${c}`,r&&`${E}-${typeof r=="string"?`striped-${r}`:"striped"}`,i&&`${E}-bordered`,u&&`${E}-borderless`,s&&`${E}-hover`),g=ae.jsx("table",{...d,className:p,ref:x});if(m){let S=`${E}-responsive`;return typeof m=="string"&&(S=`${S}-${m}`),ae.jsx("div",{className:S,children:g})}return g}),fw="/static/DY3vaYXT.svg";function S5(){const e=Rr.c(6),{user:t}=N.useContext(Up),{pathname:r}=va();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=ae.jsx(Ml,{xs:10,children:ae.jsx("div",{className:"nav-wrapper",children:ae.jsxs("nav",{className:"header-nav",children:[ae.jsx("a",{href:"https://geant.org/",children:ae.jsx("img",{src:fw})}),ae.jsxs("ul",{children:[ae.jsx("li",{children:ae.jsx("a",{className:"nav-link-entry",href:"https://network.geant.org/",children:"NETWORK"})}),ae.jsx("li",{children:ae.jsx("a",{className:"nav-link-entry",href:"https://geant.org/services/",children:"SERVICES"})}),ae.jsx("li",{children:ae.jsx("a",{className:"nav-link-entry",href:"https://community.geant.org/",children:"COMMUNITY"})}),ae.jsx("li",{children:ae.jsx("a",{className:"nav-link-entry",href:"https://tnc23.geant.org/",children:"TNC"})}),ae.jsx("li",{children:ae.jsx("a",{className:"nav-link-entry",href:"https://geant.org/projects/",children:"PROJECTS"})}),ae.jsx("li",{children:ae.jsx("a",{className:"nav-link-entry",href:"https://connect.geant.org/",children:"CONNECT"})}),ae.jsx("li",{children:ae.jsx("a",{className:"nav-link-entry",href:"https://impact.geant.org/",children:"IMPACT"})}),ae.jsx("li",{children:ae.jsx("a",{className:"nav-link-entry",href:"https://careers.geant.org/",children:"CAREERS"})}),ae.jsx("li",{children:ae.jsx("a",{className:"nav-link-entry",href:"https://about.geant.org/",children:"ABOUT"})}),ae.jsx("li",{children:ae.jsx("a",{className:"nav-link-entry",href:"https://connect.geant.org/community-news",children:"NEWS"})}),ae.jsx("li",{children:ae.jsx("a",{className:"nav-link-entry",href:"https://resources.geant.org/",children:"RESOURCES"})}),ae.jsx("li",{children:ae.jsx($u,{className:"nav-link-entry",to:"/",children:"COMPENDIUM"})})]})]})})}),e[0]=i):i=e[0];let u;e[1]!==r||e[2]!==t.permissions.admin?(u=t.permissions.admin&&!r.includes("survey")&&ae.jsx("div",{className:"nav-link",style:{float:"right"},children:ae.jsx($u,{className:"nav-link-entry",to:"/survey",children:ae.jsx("span",{children:"Go to Survey"})})}),e[1]=r,e[2]=t.permissions.admin,e[3]=u):u=e[3];let s;return e[4]!==u?(s=ae.jsx("div",{className:"external-page-nav-bar",children:ae.jsx(Mh,{children:ae.jsxs(hc,{children:[i,ae.jsx(Ml,{xs:2,children:u})]})})}),e[4]=u,e[5]=s):s=e[5],s}const sw="/static/A3T3A-a_.svg",cw="/static/DOOiIGTs.png";function w5(){const e=Rr.c(9);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=ae.jsx("a",{href:"https://geant.org",children:ae.jsx("img",{src:sw,className:"m-3",style:{maxWidth:"100px"}})}),e[0]=t):t=e[0];let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=ae.jsxs(Ml,{children:[t,ae.jsx("img",{src:cw,className:"m-3",style:{maxWidth:"200px"}})]}),e[1]=r):r=e[1];let i,u;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=ae.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/Disclaimer/",children:"Disclaimer"}),u=ae.jsx("wbr",{}),e[2]=i,e[3]=u):(i=e[2],u=e[3]);let s,c;e[4]===Symbol.for("react.memo_cache_sentinel")?(s=ae.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/geant-anti-slavery-policy/",children:"GEANT Anti‑Slavery Policy"}),c=ae.jsx("wbr",{}),e[4]=s,e[5]=c):(s=e[4],c=e[5]);let h,m;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=ae.jsx("a",{className:"mx-3 footer-link",href:"https://geant.org/Privacy-Notice/",children:"Privacy Policy"}),m=ae.jsx("wbr",{}),e[6]=h,e[7]=m):(h=e[6],m=e[7]);let d;return e[8]===Symbol.for("react.memo_cache_sentinel")?(d=ae.jsx("footer",{className:"page-footer pt-3",children:ae.jsx(Mh,{children:ae.jsxs(hc,{children:[r,ae.jsx(Ml,{className:"mt-4 text-end",children:ae.jsxs("span",{children:[i,u,"|",s,c,"|",h,m,"|",ae.jsx("a",{className:"mx-3 footer-link",style:{cursor:"pointer"},onClick:ow,children:"Analytics Consent"})]})})]})})}),e[8]=d):d=e[8],d}function ow(){localStorage.removeItem("matomo_consent"),window.location.reload()}function A5(){const e=Rr.c(16),t=N.useContext(Pp);let r;e[0]!==t?(r=S=>t==null?void 0:t.trackPageView(S),e[0]=t,e[1]=r):r=e[1];const i=r;let u;e[2]!==t?(u=S=>t==null?void 0:t.trackEvent(S),e[2]=t,e[3]=u):u=e[3];const s=u;let c;e[4]!==t?(c=()=>t==null?void 0:t.trackEvents(),e[4]=t,e[5]=c):c=e[5];const h=c;let m;e[6]!==t?(m=S=>t==null?void 0:t.trackLink(S),e[6]=t,e[7]=m):m=e[7];const d=m,x=hw;let E;e[8]!==t?(E=(S,...y)=>{const w=y;t==null||t.pushInstruction(S,...w)},e[8]=t,e[9]=E):E=e[9];const p=E;let g;return e[10]!==p||e[11]!==s||e[12]!==h||e[13]!==d||e[14]!==i?(g={trackEvent:s,trackEvents:h,trackPageView:i,trackLink:d,enableLinkTracking:x,pushInstruction:p},e[10]=p,e[11]=s,e[12]=h,e[13]=d,e[14]=i,e[15]=g):g=e[15],g}function hw(){}var og={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Rx=Hr.createContext&&Hr.createContext(og),dw=["attr","size","title"];function mw(e,t){if(e==null)return{};var r=vw(e,t),i,u;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(u=0;u<s.length;u++)i=s[u],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}function vw(e,t){if(e==null)return{};var r={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;r[i]=e[i]}return r}function Gs(){return Gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Gs.apply(this,arguments)}function Cx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,i)}return r}function Vs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cx(Object(r),!0).forEach(function(i){xw(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cx(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function xw(e,t,r){return t=pw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pw(e){var t=gw(e,"string");return typeof t=="symbol"?t:t+""}function gw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hg(e){return e&&e.map((t,r)=>Hr.createElement(t.tag,Vs({key:r},t.attr),hg(t.child)))}function dc(e){return t=>Hr.createElement(Ew,Gs({attr:Vs({},e.attr)},t),hg(e.child))}function Ew(e){var t=r=>{var{attr:i,size:u,title:s}=e,c=mw(e,dw),h=u||r.size||"1em",m;return r.className&&(m=r.className),e.className&&(m=(m?m+" ":"")+e.className),Hr.createElement("svg",Gs({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,i,c,{className:m,style:Vs(Vs({color:e.color||r.color},r.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),s&&Hr.createElement("title",null,s),e.children)};return Rx!==void 0?Hr.createElement(Rx.Consumer,null,r=>t(r)):t(og)}function yw(e){return dc({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"},child:[]}]})(e)}function _w(e){return dc({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z"},child:[]},{tag:"path",attr:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8Z"},child:[]}]})(e)}const R5=()=>{const e=Rr.c(26),{consent:t,setConsent:r}=N.useContext(Nh),[i,u]=N.useState(t===null);let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{u(!1),window.location.reload()},e[0]=s):s=e[0];const c=s,[h,m]=N.useState(!0);let d;e[1]!==r?(d=fe=>{const G=new Date;G.setDate(G.getDate()+30),localStorage.setItem("matomo_consent",JSON.stringify({consent:fe,expiry:G})),r(fe)},e[1]=r,e[2]=d):d=e[2];const x=d;let E;e[3]===Symbol.for("react.memo_cache_sentinel")?(E=ae.jsx(Pu.Header,{closeButton:!0,children:ae.jsx(Pu.Title,{children:"Privacy on this site"})}),e[3]=E):E=e[3];let p;e[4]===Symbol.for("react.memo_cache_sentinel")?(p=ae.jsx("a",{href:"https://geant.org/Privacy-Notice/",children:"Privacy Policy"}),e[4]=p):p=e[4];let g;e[5]===Symbol.for("react.memo_cache_sentinel")?(g=ae.jsxs("p",{children:["On our site we use Matomo to collect and process data about your visit to better understand how it is used. For more information, see our ",p,".",ae.jsx("br",{}),"Below, you can choose to accept or decline to have this data collected."]}),e[5]=g):g=e[5];let S;e[6]!==h?(S=()=>m(!h),e[6]=h,e[7]=S):S=e[7];let y;e[8]!==h||e[9]!==S?(y=ae.jsx(ws.Check,{type:"checkbox",label:"Analytics",checked:h,onChange:S}),e[8]=h,e[9]=S,e[10]=y):y=e[10];let w;e[11]===Symbol.for("react.memo_cache_sentinel")?(w=ae.jsx(ws.Text,{className:"text-muted",children:"We collect information about your visit on the compendium site — this helps us understand how the site is used, and how we can improve it."}),e[11]=w):w=e[11];let D;e[12]!==y?(D=ae.jsxs(Pu.Body,{children:[g,ae.jsx(ws,{children:ae.jsxs(ws.Group,{className:"mb-3",children:[y,w]})})]}),e[12]=y,e[13]=D):D=e[13];let U;e[14]!==x?(U=ae.jsx(vh,{variant:"secondary",onClick:()=>{x(!1),c()},children:"Decline all"}),e[14]=x,e[15]=U):U=e[15];let B;e[16]!==h||e[17]!==x?(B=ae.jsx(vh,{variant:"primary",onClick:()=>{x(h),c()},children:"Save consent for 30 days"}),e[16]=h,e[17]=x,e[18]=B):B=e[18];let X;e[19]!==B||e[20]!==U?(X=ae.jsxs(Pu.Footer,{children:[U,B]}),e[19]=B,e[20]=U,e[21]=X):X=e[21];let M;return e[22]!==i||e[23]!==X||e[24]!==D?(M=ae.jsxs(Pu,{show:i,centered:!0,children:[E,D,X]}),e[22]=i,e[23]=X,e[24]=D,e[25]=M):M=e[25],M};function C5(e){const t=Rr.c(9),{to:r,children:i}=e,u=window.location.pathname===r,s=N.useRef(null);let c,h;t[0]!==u?(c=()=>{u&&s.current&&s.current.scrollIntoView({behavior:"smooth",block:"center"})},h=[u],t[0]=u,t[1]=c,t[2]=h):(c=t[1],h=t[2]),N.useEffect(c,h);let m;t[3]!==i||t[4]!==u?(m=u?ae.jsx("b",{children:i}):i,t[3]=i,t[4]=u,t[5]=m):m=t[5];let d;return t[6]!==m||t[7]!==r?(d=ae.jsx(hc,{children:ae.jsx($u,{to:r,className:"link-text-underline",ref:s,children:m})}),t[6]=m,t[7]=r,t[8]=d):d=t[8],d}const O5=e=>{const t=Rr.c(23),{children:r,survey:i}=e,[u,s]=N.useState(!1);let c;t[0]!==u?(c=X=>{X.stopPropagation(),X.preventDefault(),s(!u)},t[0]=u,t[1]=c):c=t[1];const h=c;let m;t[2]===Symbol.for("react.memo_cache_sentinel")?(m=X=>{X.target.closest("#sidebar")||X.target.closest(".toggle-btn")||s(!1)},t[2]=m):m=t[2];const d=m;let x;t[3]===Symbol.for("react.memo_cache_sentinel")?(x=()=>(document.addEventListener("click",d),()=>{document.removeEventListener("click",d)}),t[3]=x):x=t[3],N.useEffect(x);let E;t[4]!==u||t[5]!==i?(E=[],u||E.push("no-sidebar"),i&&E.push("survey"),t[4]=u,t[5]=i,t[6]=E):E=t[6];const p=E.join(" ");let g;t[7]!==r?(g=ae.jsx("div",{className:"menu-items",children:r}),t[7]=r,t[8]=g):g=t[8];let S;t[9]!==p||t[10]!==g?(S=ae.jsx("nav",{className:p,id:"sidebar",children:g}),t[9]=p,t[10]=g,t[11]=S):S=t[11];const y=`toggle-btn${i?"-survey":""}`;let w;t[12]===Symbol.for("react.memo_cache_sentinel")?(w=ae.jsx("span",{children:"MENU"}),t[12]=w):w=t[12];let D;t[13]!==u||t[14]!==h?(D=ae.jsxs("div",{className:"toggle-btn-wrapper",children:[w," ",u?ae.jsx(yw,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:h}):ae.jsx(_w,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:h})]}),t[13]=u,t[14]=h,t[15]=D):D=t[15];let U;t[16]!==y||t[17]!==D||t[18]!==h?(U=ae.jsx("div",{className:y,onClick:h,children:D}),t[16]=y,t[17]=D,t[18]=h,t[19]=U):U=t[19];let B;return t[20]!==U||t[21]!==S?(B=ae.jsxs("div",{className:"sidebar-wrapper",children:[S,U]}),t[20]=U,t[21]=S,t[22]=B):B=t[22],B};/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Xs={};Xs.version="0.18.5";var dg=1252,Tw=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],mg=function(e){Tw.indexOf(e)!=-1&&(dg=e)};function Sw(){mg(1252)}var Qu=function(e){mg(e)};function ww(){Qu(1200),Sw()}var Rs=function(t){return String.fromCharCode(t)},Ox=function(t){return String.fromCharCode(t)},Dx,Xa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Zu(e){for(var t="",r=0,i=0,u=0,s=0,c=0,h=0,m=0,d=0;d<e.length;)r=e.charCodeAt(d++),s=r>>2,i=e.charCodeAt(d++),c=(r&3)<<4|i>>4,u=e.charCodeAt(d++),h=(i&15)<<2|u>>6,m=u&63,isNaN(i)?h=m=64:isNaN(u)&&(m=64),t+=Xa.charAt(s)+Xa.charAt(c)+Xa.charAt(h)+Xa.charAt(m);return t}function da(e){var t="",r=0,i=0,u=0,s=0,c=0,h=0,m=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var d=0;d<e.length;)s=Xa.indexOf(e.charAt(d++)),c=Xa.indexOf(e.charAt(d++)),r=s<<2|c>>4,t+=String.fromCharCode(r),h=Xa.indexOf(e.charAt(d++)),i=(c&15)<<4|h>>2,h!==64&&(t+=String.fromCharCode(i)),m=Xa.indexOf(e.charAt(d++)),u=(h&3)<<6|m,m!==64&&(t+=String.fromCharCode(u));return t}var xt=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),pa=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function bi(e){return xt?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Nx(e){return xt?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Dn=function(t){return xt?pa(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function mc(e){if(typeof ArrayBuffer>"u")return Dn(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),i=0;i!=e.length;++i)r[i]=e.charCodeAt(i)&255;return t}function sf(e){if(Array.isArray(e))return e.map(function(i){return String.fromCharCode(i)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function Aw(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var pr=xt?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:pa(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var i=new Uint8Array(r),u=0;for(t=0,r=0;t<e.length;r+=u,++t)if(u=e[t].length,e[t]instanceof Uint8Array)i.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";i.set(new Uint8Array(e[t]),r)}return i}return[].concat.apply([],e.map(function(s){return Array.isArray(s)?s:[].slice.call(s)}))};function Rw(e){for(var t=[],r=0,i=e.length+250,u=bi(e.length+255),s=0;s<e.length;++s){var c=e.charCodeAt(s);if(c<128)u[r++]=c;else if(c<2048)u[r++]=192|c>>6&31,u[r++]=128|c&63;else if(c>=55296&&c<57344){c=(c&1023)+64;var h=e.charCodeAt(++s)&1023;u[r++]=240|c>>8&7,u[r++]=128|c>>2&63,u[r++]=128|h>>6&15|(c&3)<<4,u[r++]=128|h&63}else u[r++]=224|c>>12&15,u[r++]=128|c>>6&63,u[r++]=128|c&63;r>i&&(t.push(u.slice(0,r)),r=0,u=bi(65535),i=65530)}return t.push(u.slice(0,r)),pr(t)}var Gu=/\u0000/g,Cs=/[\u0001-\u0006]/g;function Dl(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function Nn(e,t){var r=""+e;return r.length>=t?r:Ut("0",t-r.length)+r}function zh(e,t){var r=""+e;return r.length>=t?r:Ut(" ",t-r.length)+r}function Ys(e,t){var r=""+e;return r.length>=t?r:r+Ut(" ",t-r.length)}function Cw(e,t){var r=""+Math.round(e);return r.length>=t?r:Ut("0",t-r.length)+r}function Ow(e,t){var r=""+e;return r.length>=t?r:Ut("0",t-r.length)+r}var bx=Math.pow(2,32);function Tl(e,t){if(e>bx||e<-bx)return Cw(e,t);var r=Math.round(e);return Ow(r,t)}function Ws(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var Fx=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Ko=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Dw(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var Pt={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Mx={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Nw={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function qs(e,t,r){for(var i=e<0?-1:1,u=e*i,s=0,c=1,h=0,m=1,d=0,x=0,E=Math.floor(u);d<t&&(E=Math.floor(u),h=E*c+s,x=E*d+m,!(u-E<5e-8));)u=1/(u-E),s=c,c=h,m=d,d=x;if(x>t&&(d>t?(x=m,h=s):(x=d,h=c)),!r)return[0,i*h,x];var p=Math.floor(i*h/x);return[p,i*h-p*x,x]}function Os(e,t,r){if(e>2958465||e<0)return null;var i=e|0,u=Math.floor(86400*(e-i)),s=0,c=[],h={D:i,T:u,u:86400*(e-i)-u,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(h.u)<1e-6&&(h.u=0),t&&t.date1904&&(i+=1462),h.u>.9999&&(h.u=0,++u==86400&&(h.T=u=0,++i,++h.D)),i===60)c=r?[1317,10,29]:[1900,2,29],s=3;else if(i===0)c=r?[1317,8,29]:[1900,1,0],s=6;else{i>60&&--i;var m=new Date(1900,0,1);m.setDate(m.getDate()+i-1),c=[m.getFullYear(),m.getMonth()+1,m.getDate()],s=m.getDay(),i<60&&(s=(s+6)%7),r&&(s=Uw(m,c))}return h.y=c[0],h.m=c[1],h.d=c[2],h.S=u%60,u=Math.floor(u/60),h.M=u%60,u=Math.floor(u/60),h.H=u,h.q=s,h}var vg=new Date(1899,11,31,0,0,0),bw=vg.getTime(),Fw=new Date(1900,2,1,0,0,0);function xg(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=Fw&&(r+=24*60*60*1e3),(r-(bw+(e.getTimezoneOffset()-vg.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function jh(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Mw(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function Lw(e){var t=e<0?12:11,r=jh(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function Bw(e){var t=jh(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function kw(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=Lw(e):t===10?r=e.toFixed(10).substr(0,12):r=Bw(e),jh(Mw(r.toUpperCase()))}function xh(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):kw(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return qa(14,xg(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function Uw(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function Pw(e,t,r,i){var u="",s=0,c=0,h=r.y,m,d=0;switch(e){case 98:h=r.y+543;case 121:switch(t.length){case 1:case 2:m=h%100,d=2;break;default:m=h%1e4,d=4;break}break;case 109:switch(t.length){case 1:case 2:m=r.m,d=t.length;break;case 3:return Ko[r.m-1][1];case 5:return Ko[r.m-1][0];default:return Ko[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:m=r.d,d=t.length;break;case 3:return Fx[r.q][0];default:return Fx[r.q][1]}break;case 104:switch(t.length){case 1:case 2:m=1+(r.H+11)%12,d=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:m=r.H,d=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:m=r.M,d=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?Nn(r.S,t.length):(i>=2?c=i===3?1e3:100:c=i===1?10:1,s=Math.round(c*(r.S+r.u)),s>=60*c&&(s=0),t==="s"?s===0?"0":""+s/c:(u=Nn(s,2+i),t==="ss"?u.substr(0,2):"."+u.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":m=r.D*24+r.H;break;case"[m]":case"[mm]":m=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":m=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}d=t.length===3?1:2;break;case 101:m=h,d=1;break}var x=d>0?Nn(m,d):"";return x}function Ya(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,i=e.substr(0,r);r!=e.length;r+=t)i+=(i.length>0?",":"")+e.substr(r,t);return i}var pg=/%/g;function Hw(e,t,r){var i=t.replace(pg,""),u=t.length-i.length;return sa(e,i,r*Math.pow(10,2*u))+Ut("%",u)}function Iw(e,t,r){for(var i=t.length-1;t.charCodeAt(i-1)===44;)--i;return sa(e,t.substr(0,i),r/Math.pow(10,3*(t.length-i)))}function gg(e,t){var r,i=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+gg(e,-t);var u=e.indexOf(".");u===-1&&(u=e.indexOf("E"));var s=Math.floor(Math.log(t)*Math.LOG10E)%u;if(s<0&&(s+=u),r=(t/Math.pow(10,s)).toPrecision(i+1+(u+s)%u),r.indexOf("e")===-1){var c=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(c-r.length+s):r+="E+"+(c-s);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,u)+"."+r.substr(2+u),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(h,m,d,x){return m+d+x.substr(0,(u+s)%u)+"."+x.substr(s)+"E"})}else r=t.toExponential(i);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var Eg=/# (\?+)( ?)\/( ?)(\d+)/;function zw(e,t,r){var i=parseInt(e[4],10),u=Math.round(t*i),s=Math.floor(u/i),c=u-s*i,h=i;return r+(s===0?"":""+s)+" "+(c===0?Ut(" ",e[1].length+1+e[4].length):zh(c,e[1].length)+e[2]+"/"+e[3]+Nn(h,e[4].length))}function jw(e,t,r){return r+(t===0?"":""+t)+Ut(" ",e[1].length+2+e[4].length)}var yg=/^#*0*\.([0#]+)/,_g=/\).*[0#]/,Tg=/\(###\) ###\\?-####/;function Fr(e){for(var t="",r,i=0;i!=e.length;++i)switch(r=e.charCodeAt(i)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function Lx(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function Bx(e,t){var r=e-Math.floor(e),i=Math.pow(10,t);return t<(""+Math.round(r*i)).length?0:Math.round(r*i)}function Gw(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function Vw(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function xn(e,t,r){if(e.charCodeAt(0)===40&&!t.match(_g)){var i=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?xn("n",i,r):"("+xn("n",i,-r)+")"}if(t.charCodeAt(t.length-1)===44)return Iw(e,t,r);if(t.indexOf("%")!==-1)return Hw(e,t,r);if(t.indexOf("E")!==-1)return gg(t,r);if(t.charCodeAt(0)===36)return"$"+xn(e,t.substr(t.charAt(1)==" "?2:1),r);var u,s,c,h,m=Math.abs(r),d=r<0?"-":"";if(t.match(/^00+$/))return d+Tl(m,t.length);if(t.match(/^[#?]+$/))return u=Tl(r,0),u==="0"&&(u=""),u.length>t.length?u:Fr(t.substr(0,t.length-u.length))+u;if(s=t.match(Eg))return zw(s,m,d);if(t.match(/^#+0+$/))return d+Tl(m,t.length-t.indexOf("0"));if(s=t.match(yg))return u=Lx(r,s[1].length).replace(/^([^\.]+)$/,"$1."+Fr(s[1])).replace(/\.$/,"."+Fr(s[1])).replace(/\.(\d*)$/,function(S,y){return"."+y+Ut("0",Fr(s[1]).length-y.length)}),t.indexOf("0.")!==-1?u:u.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),s=t.match(/^(0*)\.(#*)$/))return d+Lx(m,s[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=t.match(/^#{1,3},##0(\.?)$/))return d+Ya(Tl(m,0));if(s=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+xn(e,t,-r):Ya(""+(Math.floor(r)+Gw(r,s[1].length)))+"."+Nn(Bx(r,s[1].length),s[1].length);if(s=t.match(/^#,#*,#0/))return xn(e,t.replace(/^#,#*,/,""),r);if(s=t.match(/^([0#]+)(\\?-([0#]+))+$/))return u=Dl(xn(e,t.replace(/[\\-]/g,""),r)),c=0,Dl(Dl(t.replace(/\\/g,"")).replace(/[0#]/g,function(S){return c<u.length?u.charAt(c++):S==="0"?"0":""}));if(t.match(Tg))return u=xn(e,"##########",r),"("+u.substr(0,3)+") "+u.substr(3,3)+"-"+u.substr(6);var x="";if(s=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return c=Math.min(s[4].length,7),h=qs(m,Math.pow(10,c)-1,!1),u=""+d,x=sa("n",s[1],h[1]),x.charAt(x.length-1)==" "&&(x=x.substr(0,x.length-1)+"0"),u+=x+s[2]+"/"+s[3],x=Ys(h[2],c),x.length<s[4].length&&(x=Fr(s[4].substr(s[4].length-x.length))+x),u+=x,u;if(s=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return c=Math.min(Math.max(s[1].length,s[4].length),7),h=qs(m,Math.pow(10,c)-1,!0),d+(h[0]||(h[1]?"":"0"))+" "+(h[1]?zh(h[1],c)+s[2]+"/"+s[3]+Ys(h[2],c):Ut(" ",2*c+1+s[2].length+s[3].length));if(s=t.match(/^[#0?]+$/))return u=Tl(r,0),t.length<=u.length?u:Fr(t.substr(0,t.length-u.length))+u;if(s=t.match(/^([#0?]+)\.([#0]+)$/)){u=""+r.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),c=u.indexOf(".");var E=t.indexOf(".")-c,p=t.length-u.length-E;return Fr(t.substr(0,E)+u+t.substr(t.length-p))}if(s=t.match(/^00,000\.([#0]*0)$/))return c=Bx(r,s[1].length),r<0?"-"+xn(e,t,-r):Ya(Vw(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(S){return"00,"+(S.length<3?Nn(0,3-S.length):"")+S})+"."+Nn(c,s[1].length);switch(t){case"###,##0.00":return xn(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var g=Ya(Tl(m,0));return g!=="0"?d+g:"";case"###,###.00":return xn(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return xn(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function Xw(e,t,r){for(var i=t.length-1;t.charCodeAt(i-1)===44;)--i;return sa(e,t.substr(0,i),r/Math.pow(10,3*(t.length-i)))}function Yw(e,t,r){var i=t.replace(pg,""),u=t.length-i.length;return sa(e,i,r*Math.pow(10,2*u))+Ut("%",u)}function Sg(e,t){var r,i=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+Sg(e,-t);var u=e.indexOf(".");u===-1&&(u=e.indexOf("E"));var s=Math.floor(Math.log(t)*Math.LOG10E)%u;if(s<0&&(s+=u),r=(t/Math.pow(10,s)).toPrecision(i+1+(u+s)%u),!r.match(/[Ee]/)){var c=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(c-r.length+s):r+="E+"+(c-s),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(h,m,d,x){return m+d+x.substr(0,(u+s)%u)+"."+x.substr(s)+"E"})}else r=t.toExponential(i);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function Hn(e,t,r){if(e.charCodeAt(0)===40&&!t.match(_g)){var i=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Hn("n",i,r):"("+Hn("n",i,-r)+")"}if(t.charCodeAt(t.length-1)===44)return Xw(e,t,r);if(t.indexOf("%")!==-1)return Yw(e,t,r);if(t.indexOf("E")!==-1)return Sg(t,r);if(t.charCodeAt(0)===36)return"$"+Hn(e,t.substr(t.charAt(1)==" "?2:1),r);var u,s,c,h,m=Math.abs(r),d=r<0?"-":"";if(t.match(/^00+$/))return d+Nn(m,t.length);if(t.match(/^[#?]+$/))return u=""+r,r===0&&(u=""),u.length>t.length?u:Fr(t.substr(0,t.length-u.length))+u;if(s=t.match(Eg))return jw(s,m,d);if(t.match(/^#+0+$/))return d+Nn(m,t.length-t.indexOf("0"));if(s=t.match(yg))return u=(""+r).replace(/^([^\.]+)$/,"$1."+Fr(s[1])).replace(/\.$/,"."+Fr(s[1])),u=u.replace(/\.(\d*)$/,function(S,y){return"."+y+Ut("0",Fr(s[1]).length-y.length)}),t.indexOf("0.")!==-1?u:u.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),s=t.match(/^(0*)\.(#*)$/))return d+(""+m).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=t.match(/^#{1,3},##0(\.?)$/))return d+Ya(""+m);if(s=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Hn(e,t,-r):Ya(""+r)+"."+Ut("0",s[1].length);if(s=t.match(/^#,#*,#0/))return Hn(e,t.replace(/^#,#*,/,""),r);if(s=t.match(/^([0#]+)(\\?-([0#]+))+$/))return u=Dl(Hn(e,t.replace(/[\\-]/g,""),r)),c=0,Dl(Dl(t.replace(/\\/g,"")).replace(/[0#]/g,function(S){return c<u.length?u.charAt(c++):S==="0"?"0":""}));if(t.match(Tg))return u=Hn(e,"##########",r),"("+u.substr(0,3)+") "+u.substr(3,3)+"-"+u.substr(6);var x="";if(s=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return c=Math.min(s[4].length,7),h=qs(m,Math.pow(10,c)-1,!1),u=""+d,x=sa("n",s[1],h[1]),x.charAt(x.length-1)==" "&&(x=x.substr(0,x.length-1)+"0"),u+=x+s[2]+"/"+s[3],x=Ys(h[2],c),x.length<s[4].length&&(x=Fr(s[4].substr(s[4].length-x.length))+x),u+=x,u;if(s=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return c=Math.min(Math.max(s[1].length,s[4].length),7),h=qs(m,Math.pow(10,c)-1,!0),d+(h[0]||(h[1]?"":"0"))+" "+(h[1]?zh(h[1],c)+s[2]+"/"+s[3]+Ys(h[2],c):Ut(" ",2*c+1+s[2].length+s[3].length));if(s=t.match(/^[#0?]+$/))return u=""+r,t.length<=u.length?u:Fr(t.substr(0,t.length-u.length))+u;if(s=t.match(/^([#0]+)\.([#0]+)$/)){u=""+r.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),c=u.indexOf(".");var E=t.indexOf(".")-c,p=t.length-u.length-E;return Fr(t.substr(0,E)+u+t.substr(t.length-p))}if(s=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+Hn(e,t,-r):Ya(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(S){return"00,"+(S.length<3?Nn(0,3-S.length):"")+S})+"."+Nn(0,s[1].length);switch(t){case"###,###":case"##,###":case"#,###":var g=Ya(""+m);return g!=="0"?d+g:"";default:if(t.match(/\.[0#?]*$/))return Hn(e,t.slice(0,t.lastIndexOf(".")),r)+Fr(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function sa(e,t,r){return(r|0)===r?Hn(e,t,r):xn(e,t,r)}function Ww(e){for(var t=[],r=!1,i=0,u=0;i<e.length;++i)switch(e.charCodeAt(i)){case 34:r=!r;break;case 95:case 42:case 92:++i;break;case 59:t[t.length]=e.substr(u,i-u),u=i+1}if(t[t.length]=e.substr(u),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var wg=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Ag(e){for(var t=0,r="",i="";t<e.length;)switch(r=e.charAt(t)){case"G":Ws(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(i=r;e.charAt(t++)!=="]"&&t<e.length;)i+=e.charAt(t);if(i.match(wg))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function qw(e,t,r,i){for(var u=[],s="",c=0,h="",m="t",d,x,E,p="H";c<e.length;)switch(h=e.charAt(c)){case"G":if(!Ws(e,c))throw new Error("unrecognized character "+h+" in "+e);u[u.length]={t:"G",v:"General"},c+=7;break;case'"':for(s="";(E=e.charCodeAt(++c))!==34&&c<e.length;)s+=String.fromCharCode(E);u[u.length]={t:"t",v:s},++c;break;case"\\":var g=e.charAt(++c),S=g==="("||g===")"?g:"t";u[u.length]={t:S,v:g},++c;break;case"_":u[u.length]={t:"t",v:" "},c+=2;break;case"@":u[u.length]={t:"T",v:t},++c;break;case"B":case"b":if(e.charAt(c+1)==="1"||e.charAt(c+1)==="2"){if(d==null&&(d=Os(t,r,e.charAt(c+1)==="2"),d==null))return"";u[u.length]={t:"X",v:e.substr(c,2)},m=h,c+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":h=h.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||d==null&&(d=Os(t,r),d==null))return"";for(s=h;++c<e.length&&e.charAt(c).toLowerCase()===h;)s+=h;h==="m"&&m.toLowerCase()==="h"&&(h="M"),h==="h"&&(h=p),u[u.length]={t:h,v:s},m=h;break;case"A":case"a":case"上":var y={t:h,v:h};if(d==null&&(d=Os(t,r)),e.substr(c,3).toUpperCase()==="A/P"?(d!=null&&(y.v=d.H>=12?"P":"A"),y.t="T",p="h",c+=3):e.substr(c,5).toUpperCase()==="AM/PM"?(d!=null&&(y.v=d.H>=12?"PM":"AM"),y.t="T",c+=5,p="h"):e.substr(c,5).toUpperCase()==="上午/下午"?(d!=null&&(y.v=d.H>=12?"下午":"上午"),y.t="T",c+=5,p="h"):(y.t="t",++c),d==null&&y.t==="T")return"";u[u.length]=y,m=h;break;case"[":for(s=h;e.charAt(c++)!=="]"&&c<e.length;)s+=e.charAt(c);if(s.slice(-1)!=="]")throw'unterminated "[" block: |'+s+"|";if(s.match(wg)){if(d==null&&(d=Os(t,r),d==null))return"";u[u.length]={t:"Z",v:s.toLowerCase()},m=s.charAt(1)}else s.indexOf("$")>-1&&(s=(s.match(/\$([^-\[\]]*)/)||[])[1]||"$",Ag(e)||(u[u.length]={t:"t",v:s}));break;case".":if(d!=null){for(s=h;++c<e.length&&(h=e.charAt(c))==="0";)s+=h;u[u.length]={t:"s",v:s};break}case"0":case"#":for(s=h;++c<e.length&&"0#?.,E+-%".indexOf(h=e.charAt(c))>-1;)s+=h;u[u.length]={t:"n",v:s};break;case"?":for(s=h;e.charAt(++c)===h;)s+=h;u[u.length]={t:h,v:s},m=h;break;case"*":++c,(e.charAt(c)==" "||e.charAt(c)=="*")&&++c;break;case"(":case")":u[u.length]={t:i===1?"t":h,v:h},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(s=h;c<e.length&&"0123456789".indexOf(e.charAt(++c))>-1;)s+=e.charAt(c);u[u.length]={t:"D",v:s};break;case" ":u[u.length]={t:h,v:h},++c;break;case"$":u[u.length]={t:"t",v:"$"},++c;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(h)===-1)throw new Error("unrecognized character "+h+" in "+e);u[u.length]={t:"t",v:h},++c;break}var w=0,D=0,U;for(c=u.length-1,m="t";c>=0;--c)switch(u[c].t){case"h":case"H":u[c].t=p,m="h",w<1&&(w=1);break;case"s":(U=u[c].v.match(/\.0+$/))&&(D=Math.max(D,U[0].length-1)),w<3&&(w=3);case"d":case"y":case"M":case"e":m=u[c].t;break;case"m":m==="s"&&(u[c].t="M",w<2&&(w=2));break;case"X":break;case"Z":w<1&&u[c].v.match(/[Hh]/)&&(w=1),w<2&&u[c].v.match(/[Mm]/)&&(w=2),w<3&&u[c].v.match(/[Ss]/)&&(w=3)}switch(w){case 0:break;case 1:d.u>=.5&&(d.u=0,++d.S),d.S>=60&&(d.S=0,++d.M),d.M>=60&&(d.M=0,++d.H);break;case 2:d.u>=.5&&(d.u=0,++d.S),d.S>=60&&(d.S=0,++d.M);break}var B="",X;for(c=0;c<u.length;++c)switch(u[c].t){case"t":case"T":case" ":case"D":break;case"X":u[c].v="",u[c].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":u[c].v=Pw(u[c].t.charCodeAt(0),u[c].v,d,D),u[c].t="t";break;case"n":case"?":for(X=c+1;u[X]!=null&&((h=u[X].t)==="?"||h==="D"||(h===" "||h==="t")&&u[X+1]!=null&&(u[X+1].t==="?"||u[X+1].t==="t"&&u[X+1].v==="/")||u[c].t==="("&&(h===" "||h==="n"||h===")")||h==="t"&&(u[X].v==="/"||u[X].v===" "&&u[X+1]!=null&&u[X+1].t=="?"));)u[c].v+=u[X].v,u[X]={v:"",t:";"},++X;B+=u[c].v,c=X-1;break;case"G":u[c].t="t",u[c].v=xh(t,r);break}var M="",fe,G;if(B.length>0){B.charCodeAt(0)==40?(fe=t<0&&B.charCodeAt(0)===45?-t:t,G=sa("n",B,fe)):(fe=t<0&&i>1?-t:t,G=sa("n",B,fe),fe<0&&u[0]&&u[0].t=="t"&&(G=G.substr(1),u[0].v="-"+u[0].v)),X=G.length-1;var Z=u.length;for(c=0;c<u.length;++c)if(u[c]!=null&&u[c].t!="t"&&u[c].v.indexOf(".")>-1){Z=c;break}var I=u.length;if(Z===u.length&&G.indexOf("E")===-1){for(c=u.length-1;c>=0;--c)u[c]==null||"n?".indexOf(u[c].t)===-1||(X>=u[c].v.length-1?(X-=u[c].v.length,u[c].v=G.substr(X+1,u[c].v.length)):X<0?u[c].v="":(u[c].v=G.substr(0,X+1),X=-1),u[c].t="t",I=c);X>=0&&I<u.length&&(u[I].v=G.substr(0,X+1)+u[I].v)}else if(Z!==u.length&&G.indexOf("E")===-1){for(X=G.indexOf(".")-1,c=Z;c>=0;--c)if(!(u[c]==null||"n?".indexOf(u[c].t)===-1)){for(x=u[c].v.indexOf(".")>-1&&c===Z?u[c].v.indexOf(".")-1:u[c].v.length-1,M=u[c].v.substr(x+1);x>=0;--x)X>=0&&(u[c].v.charAt(x)==="0"||u[c].v.charAt(x)==="#")&&(M=G.charAt(X--)+M);u[c].v=M,u[c].t="t",I=c}for(X>=0&&I<u.length&&(u[I].v=G.substr(0,X+1)+u[I].v),X=G.indexOf(".")+1,c=Z;c<u.length;++c)if(!(u[c]==null||"n?(".indexOf(u[c].t)===-1&&c!==Z)){for(x=u[c].v.indexOf(".")>-1&&c===Z?u[c].v.indexOf(".")+1:0,M=u[c].v.substr(0,x);x<u[c].v.length;++x)X<G.length&&(M+=G.charAt(X++));u[c].v=M,u[c].t="t",I=c}}}for(c=0;c<u.length;++c)u[c]!=null&&"n?".indexOf(u[c].t)>-1&&(fe=i>1&&t<0&&c>0&&u[c-1].v==="-"?-t:t,u[c].v=sa(u[c].t,u[c].v,fe),u[c].t="t");var ee="";for(c=0;c!==u.length;++c)u[c]!=null&&(ee+=u[c].v);return ee}var kx=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Ux(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function Kw(e,t){var r=Ww(e),i=r.length,u=r[i-1].indexOf("@");if(i<4&&u>-1&&--i,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||u>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=u>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=u>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=u>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var s=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[i,s];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var c=r[0].match(kx),h=r[1].match(kx);return Ux(t,c)?[i,r[0]]:Ux(t,h)?[i,r[1]]:[i,r[c!=null&&h!=null?2:1]]}return[i,s]}function qa(e,t,r){r==null&&(r={});var i="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?i=r.dateNF:i=e;break;case"number":e==14&&r.dateNF?i=r.dateNF:i=(r.table!=null?r.table:Pt)[e],i==null&&(i=r.table&&r.table[Mx[e]]||Pt[Mx[e]]),i==null&&(i=Nw[e]||"General");break}if(Ws(i,0))return xh(t,r);t instanceof Date&&(t=xg(t,r.date1904));var u=Kw(i,t);if(Ws(u[1]))return xh(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return qw(u[1],t,r,u[0])}function Rg(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Pt[r]==null){t<0&&(t=r);continue}if(Pt[r]==e){t=r;break}}t<0&&(t=391)}return Pt[t]=e,t}function vc(e){for(var t=0;t!=392;++t)e[t]!==void 0&&Rg(e[t],t)}function xc(){Pt=Dw()}var Cg=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function $w(e){var t=typeof e=="number"?Pt[e]:e;return t=t.replace(Cg,"(\\d+)"),new RegExp("^"+t+"$")}function Qw(e,t,r){var i=-1,u=-1,s=-1,c=-1,h=-1,m=-1;(t.match(Cg)||[]).forEach(function(E,p){var g=parseInt(r[p+1],10);switch(E.toLowerCase().charAt(0)){case"y":i=g;break;case"d":s=g;break;case"h":c=g;break;case"s":m=g;break;case"m":c>=0?h=g:u=g;break}}),m>=0&&h==-1&&u>=0&&(h=u,u=-1);var d=(""+(i>=0?i:new Date().getFullYear())).slice(-4)+"-"+("00"+(u>=1?u:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);d.length==7&&(d="0"+d),d.length==8&&(d="20"+d);var x=("00"+(c>=0?c:0)).slice(-2)+":"+("00"+(h>=0?h:0)).slice(-2)+":"+("00"+(m>=0?m:0)).slice(-2);return c==-1&&h==-1&&m==-1?d:i==-1&&u==-1&&s==-1?x:d+"T"+x}var Zw=function(){var e={};e.version="1.2.0";function t(){for(var G=0,Z=new Array(256),I=0;I!=256;++I)G=I,G=G&1?-306674912^G>>>1:G>>>1,G=G&1?-306674912^G>>>1:G>>>1,G=G&1?-306674912^G>>>1:G>>>1,G=G&1?-306674912^G>>>1:G>>>1,G=G&1?-306674912^G>>>1:G>>>1,G=G&1?-306674912^G>>>1:G>>>1,G=G&1?-306674912^G>>>1:G>>>1,G=G&1?-306674912^G>>>1:G>>>1,Z[I]=G;return typeof Int32Array<"u"?new Int32Array(Z):Z}var r=t();function i(G){var Z=0,I=0,ee=0,ce=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(ee=0;ee!=256;++ee)ce[ee]=G[ee];for(ee=0;ee!=256;++ee)for(I=G[ee],Z=256+ee;Z<4096;Z+=256)I=ce[Z]=I>>>8^G[I&255];var ve=[];for(ee=1;ee!=16;++ee)ve[ee-1]=typeof Int32Array<"u"?ce.subarray(ee*256,ee*256+256):ce.slice(ee*256,ee*256+256);return ve}var u=i(r),s=u[0],c=u[1],h=u[2],m=u[3],d=u[4],x=u[5],E=u[6],p=u[7],g=u[8],S=u[9],y=u[10],w=u[11],D=u[12],U=u[13],B=u[14];function X(G,Z){for(var I=Z^-1,ee=0,ce=G.length;ee<ce;)I=I>>>8^r[(I^G.charCodeAt(ee++))&255];return~I}function M(G,Z){for(var I=Z^-1,ee=G.length-15,ce=0;ce<ee;)I=B[G[ce++]^I&255]^U[G[ce++]^I>>8&255]^D[G[ce++]^I>>16&255]^w[G[ce++]^I>>>24]^y[G[ce++]]^S[G[ce++]]^g[G[ce++]]^p[G[ce++]]^E[G[ce++]]^x[G[ce++]]^d[G[ce++]]^m[G[ce++]]^h[G[ce++]]^c[G[ce++]]^s[G[ce++]]^r[G[ce++]];for(ee+=15;ce<ee;)I=I>>>8^r[(I^G[ce++])&255];return~I}function fe(G,Z){for(var I=Z^-1,ee=0,ce=G.length,ve=0,Re=0;ee<ce;)ve=G.charCodeAt(ee++),ve<128?I=I>>>8^r[(I^ve)&255]:ve<2048?(I=I>>>8^r[(I^(192|ve>>6&31))&255],I=I>>>8^r[(I^(128|ve&63))&255]):ve>=55296&&ve<57344?(ve=(ve&1023)+64,Re=G.charCodeAt(ee++)&1023,I=I>>>8^r[(I^(240|ve>>8&7))&255],I=I>>>8^r[(I^(128|ve>>2&63))&255],I=I>>>8^r[(I^(128|Re>>6&15|(ve&3)<<4))&255],I=I>>>8^r[(I^(128|Re&63))&255]):(I=I>>>8^r[(I^(224|ve>>12&15))&255],I=I>>>8^r[(I^(128|ve>>6&63))&255],I=I>>>8^r[(I^(128|ve&63))&255]);return~I}return e.table=r,e.bstr=X,e.buf=M,e.str=fe,e}(),Ct=function(){var t={};t.version="1.2.1";function r(T,O){for(var A=T.split("/"),C=O.split("/"),b=0,F=0,q=Math.min(A.length,C.length);b<q;++b){if(F=A[b].length-C[b].length)return F;if(A[b]!=C[b])return A[b]<C[b]?-1:1}return A.length-C.length}function i(T){if(T.charAt(T.length-1)=="/")return T.slice(0,-1).indexOf("/")===-1?T:i(T.slice(0,-1));var O=T.lastIndexOf("/");return O===-1?T:T.slice(0,O+1)}function u(T){if(T.charAt(T.length-1)=="/")return u(T.slice(0,-1));var O=T.lastIndexOf("/");return O===-1?T:T.slice(O+1)}function s(T,O){typeof O=="string"&&(O=new Date(O));var A=O.getHours();A=A<<6|O.getMinutes(),A=A<<5|O.getSeconds()>>>1,T.write_shift(2,A);var C=O.getFullYear()-1980;C=C<<4|O.getMonth()+1,C=C<<5|O.getDate(),T.write_shift(2,C)}function c(T){var O=T.read_shift(2)&65535,A=T.read_shift(2)&65535,C=new Date,b=A&31;A>>>=5;var F=A&15;A>>>=4,C.setMilliseconds(0),C.setFullYear(A+1980),C.setMonth(F-1),C.setDate(b);var q=O&31;O>>>=5;var ue=O&63;return O>>>=6,C.setHours(O),C.setMinutes(ue),C.setSeconds(q<<1),C}function h(T){Qr(T,0);for(var O={},A=0;T.l<=T.length-4;){var C=T.read_shift(2),b=T.read_shift(2),F=T.l+b,q={};switch(C){case 21589:A=T.read_shift(1),A&1&&(q.mtime=T.read_shift(4)),b>5&&(A&2&&(q.atime=T.read_shift(4)),A&4&&(q.ctime=T.read_shift(4))),q.mtime&&(q.mt=new Date(q.mtime*1e3));break}T.l=F,O[C]=q}return O}var m;function d(){return m||(m={})}function x(T,O){if(T[0]==80&&T[1]==75)return ri(T,O);if((T[0]|32)==109&&(T[1]|32)==105)return se(T,O);if(T.length<512)throw new Error("CFB file size "+T.length+" < 512");var A=3,C=512,b=0,F=0,q=0,ue=0,J=0,te=[],re=T.slice(0,512);Qr(re,0);var pe=E(re);switch(A=pe[0],A){case 3:C=512;break;case 4:C=4096;break;case 0:if(pe[1]==0)return ri(T,O);default:throw new Error("Major Version: Expected 3 or 4 saw "+A)}C!==512&&(re=T.slice(0,C),Qr(re,28));var Oe=T.slice(0,C);p(re,A);var Le=re.read_shift(4,"i");if(A===3&&Le!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Le);re.l+=4,q=re.read_shift(4,"i"),re.l+=4,re.chk("00100000","Mini Stream Cutoff Size: "),ue=re.read_shift(4,"i"),b=re.read_shift(4,"i"),J=re.read_shift(4,"i"),F=re.read_shift(4,"i");for(var we=-1,Ae=0;Ae<109&&(we=re.read_shift(4,"i"),!(we<0));++Ae)te[Ae]=we;var Ye=g(T,C);w(J,F,Ye,C,te);var Xe=U(Ye,q,te,C);Xe[q].name="!Directory",b>0&&ue!==Re&&(Xe[ue].name="!MiniFAT"),Xe[te[0]].name="!FAT",Xe.fat_addrs=te,Xe.ssz=C;var Qe={},St=[],zt=[],wt=[];B(q,Xe,Ye,St,b,Qe,zt,ue),S(zt,wt,St),St.shift();var Dr={FileIndex:zt,FullPaths:wt};return O&&O.raw&&(Dr.raw={header:Oe,sectors:Ye}),Dr}function E(T){if(T[T.l]==80&&T[T.l+1]==75)return[0,0];T.chk(Ke,"Header Signature: "),T.l+=16;var O=T.read_shift(2,"u");return[T.read_shift(2,"u"),O]}function p(T,O){var A=9;switch(T.l+=2,A=T.read_shift(2)){case 9:if(O!=3)throw new Error("Sector Shift: Expected 9 saw "+A);break;case 12:if(O!=4)throw new Error("Sector Shift: Expected 12 saw "+A);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+A)}T.chk("0600","Mini Sector Shift: "),T.chk("000000000000","Reserved: ")}function g(T,O){for(var A=Math.ceil(T.length/O)-1,C=[],b=1;b<A;++b)C[b-1]=T.slice(b*O,(b+1)*O);return C[A-1]=T.slice(A*O),C}function S(T,O,A){for(var C=0,b=0,F=0,q=0,ue=0,J=A.length,te=[],re=[];C<J;++C)te[C]=re[C]=C,O[C]=A[C];for(;ue<re.length;++ue)C=re[ue],b=T[C].L,F=T[C].R,q=T[C].C,te[C]===C&&(b!==-1&&te[b]!==b&&(te[C]=te[b]),F!==-1&&te[F]!==F&&(te[C]=te[F])),q!==-1&&(te[q]=C),b!==-1&&C!=te[C]&&(te[b]=te[C],re.lastIndexOf(b)<ue&&re.push(b)),F!==-1&&C!=te[C]&&(te[F]=te[C],re.lastIndexOf(F)<ue&&re.push(F));for(C=1;C<J;++C)te[C]===C&&(F!==-1&&te[F]!==F?te[C]=te[F]:b!==-1&&te[b]!==b&&(te[C]=te[b]));for(C=1;C<J;++C)if(T[C].type!==0){if(ue=C,ue!=te[ue])do ue=te[ue],O[C]=O[ue]+"/"+O[C];while(ue!==0&&te[ue]!==-1&&ue!=te[ue]);te[C]=-1}for(O[0]+="/",C=1;C<J;++C)T[C].type!==2&&(O[C]+="/")}function y(T,O,A){for(var C=T.start,b=T.size,F=[],q=C;A&&b>0&&q>=0;)F.push(O.slice(q*ve,q*ve+ve)),b-=ve,q=Ci(A,q*4);return F.length===0?oe(0):pr(F).slice(0,T.size)}function w(T,O,A,C,b){var F=Re;if(T===Re){if(O!==0)throw new Error("DIFAT chain shorter than expected")}else if(T!==-1){var q=A[T],ue=(C>>>2)-1;if(!q)return;for(var J=0;J<ue&&(F=Ci(q,J*4))!==Re;++J)b.push(F);w(Ci(q,C-4),O-1,A,C,b)}}function D(T,O,A,C,b){var F=[],q=[];b||(b=[]);var ue=C-1,J=0,te=0;for(J=O;J>=0;){b[J]=!0,F[F.length]=J,q.push(T[J]);var re=A[Math.floor(J*4/C)];if(te=J*4&ue,C<4+te)throw new Error("FAT boundary crossed: "+J+" 4 "+C);if(!T[re])break;J=Ci(T[re],te)}return{nodes:F,data:Xx([q])}}function U(T,O,A,C){var b=T.length,F=[],q=[],ue=[],J=[],te=C-1,re=0,pe=0,Oe=0,Le=0;for(re=0;re<b;++re)if(ue=[],Oe=re+O,Oe>=b&&(Oe-=b),!q[Oe]){J=[];var we=[];for(pe=Oe;pe>=0;){we[pe]=!0,q[pe]=!0,ue[ue.length]=pe,J.push(T[pe]);var Ae=A[Math.floor(pe*4/C)];if(Le=pe*4&te,C<4+Le)throw new Error("FAT boundary crossed: "+pe+" 4 "+C);if(!T[Ae]||(pe=Ci(T[Ae],Le),we[pe]))break}F[Oe]={nodes:ue,data:Xx([J])}}return F}function B(T,O,A,C,b,F,q,ue){for(var J=0,te=C.length?2:0,re=O[T].data,pe=0,Oe=0,Le;pe<re.length;pe+=128){var we=re.slice(pe,pe+128);Qr(we,64),Oe=we.read_shift(2),Le=Wh(we,0,Oe-te),C.push(Le);var Ae={name:Le,type:we.read_shift(1),color:we.read_shift(1),L:we.read_shift(4,"i"),R:we.read_shift(4,"i"),C:we.read_shift(4,"i"),clsid:we.read_shift(16),state:we.read_shift(4,"i"),start:0,size:0},Ye=we.read_shift(2)+we.read_shift(2)+we.read_shift(2)+we.read_shift(2);Ye!==0&&(Ae.ct=X(we,we.l-8));var Xe=we.read_shift(2)+we.read_shift(2)+we.read_shift(2)+we.read_shift(2);Xe!==0&&(Ae.mt=X(we,we.l-8)),Ae.start=we.read_shift(4,"i"),Ae.size=we.read_shift(4,"i"),Ae.size<0&&Ae.start<0&&(Ae.size=Ae.type=0,Ae.start=Re,Ae.name=""),Ae.type===5?(J=Ae.start,b>0&&J!==Re&&(O[J].name="!StreamData")):Ae.size>=4096?(Ae.storage="fat",O[Ae.start]===void 0&&(O[Ae.start]=D(A,Ae.start,O.fat_addrs,O.ssz)),O[Ae.start].name=Ae.name,Ae.content=O[Ae.start].data.slice(0,Ae.size)):(Ae.storage="minifat",Ae.size<0?Ae.size=0:J!==Re&&Ae.start!==Re&&O[J]&&(Ae.content=y(Ae,O[J].data,(O[ue]||{}).data))),Ae.content&&Qr(Ae.content,0),F[Le]=Ae,q.push(Ae)}}function X(T,O){return new Date((Jr(T,O+4)/1e7*Math.pow(2,32)+Jr(T,O)/1e7-11644473600)*1e3)}function M(T,O){return d(),x(m.readFileSync(T),O)}function fe(T,O){var A=O&&O.type;switch(A||xt&&Buffer.isBuffer(T)&&(A="buffer"),A||"base64"){case"file":return M(T,O);case"base64":return x(Dn(da(T)),O);case"binary":return x(Dn(T),O)}return x(T,O)}function G(T,O){var A=O||{},C=A.root||"Root Entry";if(T.FullPaths||(T.FullPaths=[]),T.FileIndex||(T.FileIndex=[]),T.FullPaths.length!==T.FileIndex.length)throw new Error("inconsistent CFB structure");T.FullPaths.length===0&&(T.FullPaths[0]=C+"/",T.FileIndex[0]={name:C,type:5}),A.CLSID&&(T.FileIndex[0].clsid=A.CLSID),Z(T)}function Z(T){var O="Sh33tJ5";if(!Ct.find(T,"/"+O)){var A=oe(4);A[0]=55,A[1]=A[3]=50,A[2]=54,T.FileIndex.push({name:O,type:2,content:A,size:4,L:69,R:69,C:69}),T.FullPaths.push(T.FullPaths[0]+O),I(T)}}function I(T,O){G(T);for(var A=!1,C=!1,b=T.FullPaths.length-1;b>=0;--b){var F=T.FileIndex[b];switch(F.type){case 0:C?A=!0:(T.FileIndex.pop(),T.FullPaths.pop());break;case 1:case 2:case 5:C=!0,isNaN(F.R*F.L*F.C)&&(A=!0),F.R>-1&&F.L>-1&&F.R==F.L&&(A=!0);break;default:A=!0;break}}if(!(!A&&!O)){var q=new Date(1987,1,19),ue=0,J=Object.create?Object.create(null):{},te=[];for(b=0;b<T.FullPaths.length;++b)J[T.FullPaths[b]]=!0,T.FileIndex[b].type!==0&&te.push([T.FullPaths[b],T.FileIndex[b]]);for(b=0;b<te.length;++b){var re=i(te[b][0]);C=J[re],C||(te.push([re,{name:u(re).replace("/",""),type:1,clsid:ye,ct:q,mt:q,content:null}]),J[re]=!0)}for(te.sort(function(Le,we){return r(Le[0],we[0])}),T.FullPaths=[],T.FileIndex=[],b=0;b<te.length;++b)T.FullPaths[b]=te[b][0],T.FileIndex[b]=te[b][1];for(b=0;b<te.length;++b){var pe=T.FileIndex[b],Oe=T.FullPaths[b];if(pe.name=u(Oe).replace("/",""),pe.L=pe.R=pe.C=-(pe.color=1),pe.size=pe.content?pe.content.length:0,pe.start=0,pe.clsid=pe.clsid||ye,b===0)pe.C=te.length>1?1:-1,pe.size=0,pe.type=5;else if(Oe.slice(-1)=="/"){for(ue=b+1;ue<te.length&&i(T.FullPaths[ue])!=Oe;++ue);for(pe.C=ue>=te.length?-1:ue,ue=b+1;ue<te.length&&i(T.FullPaths[ue])!=i(Oe);++ue);pe.R=ue>=te.length?-1:ue,pe.type=1}else i(T.FullPaths[b+1]||"")==i(Oe)&&(pe.R=b+1),pe.type=2}}}function ee(T,O){var A=O||{};if(A.fileType=="mad")return Te(T,A);switch(I(T),A.fileType){case"zip":return Vn(T,A)}var C=function(Le){for(var we=0,Ae=0,Ye=0;Ye<Le.FileIndex.length;++Ye){var Xe=Le.FileIndex[Ye];if(Xe.content){var Qe=Xe.content.length;Qe>0&&(Qe<4096?we+=Qe+63>>6:Ae+=Qe+511>>9)}}for(var St=Le.FullPaths.length+3>>2,zt=we+7>>3,wt=we+127>>7,Dr=zt+Ae+St+wt,Gr=Dr+127>>7,ni=Gr<=109?0:Math.ceil((Gr-109)/127);Dr+Gr+ni+127>>7>Gr;)ni=++Gr<=109?0:Math.ceil((Gr-109)/127);var kr=[1,ni,Gr,wt,St,Ae,we,0];return Le.FileIndex[0].size=we<<6,kr[7]=(Le.FileIndex[0].start=kr[0]+kr[1]+kr[2]+kr[3]+kr[4]+kr[5])+(kr[6]+7>>3),kr}(T),b=oe(C[7]<<9),F=0,q=0;{for(F=0;F<8;++F)b.write_shift(1,Me[F]);for(F=0;F<8;++F)b.write_shift(2,0);for(b.write_shift(2,62),b.write_shift(2,3),b.write_shift(2,65534),b.write_shift(2,9),b.write_shift(2,6),F=0;F<3;++F)b.write_shift(2,0);for(b.write_shift(4,0),b.write_shift(4,C[2]),b.write_shift(4,C[0]+C[1]+C[2]+C[3]-1),b.write_shift(4,0),b.write_shift(4,4096),b.write_shift(4,C[3]?C[0]+C[1]+C[2]-1:Re),b.write_shift(4,C[3]),b.write_shift(-4,C[1]?C[0]-1:Re),b.write_shift(4,C[1]),F=0;F<109;++F)b.write_shift(-4,F<C[2]?C[1]+F:-1)}if(C[1])for(q=0;q<C[1];++q){for(;F<236+q*127;++F)b.write_shift(-4,F<C[2]?C[1]+F:-1);b.write_shift(-4,q===C[1]-1?Re:q+1)}var ue=function(Le){for(q+=Le;F<q-1;++F)b.write_shift(-4,F+1);Le&&(++F,b.write_shift(-4,Re))};for(q=F=0,q+=C[1];F<q;++F)b.write_shift(-4,Be.DIFSECT);for(q+=C[2];F<q;++F)b.write_shift(-4,Be.FATSECT);ue(C[3]),ue(C[4]);for(var J=0,te=0,re=T.FileIndex[0];J<T.FileIndex.length;++J)re=T.FileIndex[J],re.content&&(te=re.content.length,!(te<4096)&&(re.start=q,ue(te+511>>9)));for(ue(C[6]+7>>3);b.l&511;)b.write_shift(-4,Be.ENDOFCHAIN);for(q=F=0,J=0;J<T.FileIndex.length;++J)re=T.FileIndex[J],re.content&&(te=re.content.length,!(!te||te>=4096)&&(re.start=q,ue(te+63>>6)));for(;b.l&511;)b.write_shift(-4,Be.ENDOFCHAIN);for(F=0;F<C[4]<<2;++F){var pe=T.FullPaths[F];if(!pe||pe.length===0){for(J=0;J<17;++J)b.write_shift(4,0);for(J=0;J<3;++J)b.write_shift(4,-1);for(J=0;J<12;++J)b.write_shift(4,0);continue}re=T.FileIndex[F],F===0&&(re.start=re.size?re.start-1:Re);var Oe=F===0&&A.root||re.name;if(te=2*(Oe.length+1),b.write_shift(64,Oe,"utf16le"),b.write_shift(2,te),b.write_shift(1,re.type),b.write_shift(1,re.color),b.write_shift(-4,re.L),b.write_shift(-4,re.R),b.write_shift(-4,re.C),re.clsid)b.write_shift(16,re.clsid,"hex");else for(J=0;J<4;++J)b.write_shift(4,0);b.write_shift(4,re.state||0),b.write_shift(4,0),b.write_shift(4,0),b.write_shift(4,0),b.write_shift(4,0),b.write_shift(4,re.start),b.write_shift(4,re.size),b.write_shift(4,0)}for(F=1;F<T.FileIndex.length;++F)if(re=T.FileIndex[F],re.size>=4096)if(b.l=re.start+1<<9,xt&&Buffer.isBuffer(re.content))re.content.copy(b,b.l,0,re.size),b.l+=re.size+511&-512;else{for(J=0;J<re.size;++J)b.write_shift(1,re.content[J]);for(;J&511;++J)b.write_shift(1,0)}for(F=1;F<T.FileIndex.length;++F)if(re=T.FileIndex[F],re.size>0&&re.size<4096)if(xt&&Buffer.isBuffer(re.content))re.content.copy(b,b.l,0,re.size),b.l+=re.size+63&-64;else{for(J=0;J<re.size;++J)b.write_shift(1,re.content[J]);for(;J&63;++J)b.write_shift(1,0)}if(xt)b.l=b.length;else for(;b.l<b.length;)b.write_shift(1,0);return b}function ce(T,O){var A=T.FullPaths.map(function(J){return J.toUpperCase()}),C=A.map(function(J){var te=J.split("/");return te[te.length-(J.slice(-1)=="/"?2:1)]}),b=!1;O.charCodeAt(0)===47?(b=!0,O=A[0].slice(0,-1)+O):b=O.indexOf("/")!==-1;var F=O.toUpperCase(),q=b===!0?A.indexOf(F):C.indexOf(F);if(q!==-1)return T.FileIndex[q];var ue=!F.match(Cs);for(F=F.replace(Gu,""),ue&&(F=F.replace(Cs,"!")),q=0;q<A.length;++q)if((ue?A[q].replace(Cs,"!"):A[q]).replace(Gu,"")==F||(ue?C[q].replace(Cs,"!"):C[q]).replace(Gu,"")==F)return T.FileIndex[q];return null}var ve=64,Re=-2,Ke="d0cf11e0a1b11ae1",Me=[208,207,17,224,161,177,26,225],ye="00000000000000000000000000000000",Be={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:Re,FREESECT:-1,HEADER_SIGNATURE:Ke,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:ye,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function De(T,O,A){d();var C=ee(T,A);m.writeFileSync(O,C)}function je(T){for(var O=new Array(T.length),A=0;A<T.length;++A)O[A]=String.fromCharCode(T[A]);return O.join("")}function z(T,O){var A=ee(T,O);switch(O&&O.type||"buffer"){case"file":return d(),m.writeFileSync(O.filename,A),A;case"binary":return typeof A=="string"?A:je(A);case"base64":return Zu(typeof A=="string"?A:je(A));case"buffer":if(xt)return Buffer.isBuffer(A)?A:pa(A);case"array":return typeof A=="string"?Dn(A):A}return A}var me;function L(T){try{var O=T.InflateRaw,A=new O;if(A._processChunk(new Uint8Array([3,0]),A._finishFlushFlag),A.bytesRead)me=T;else throw new Error("zlib does not expose bytesRead")}catch(C){console.error("cannot use native zlib: "+(C.message||C))}}function j(T,O){if(!me)return ga(T,O);var A=me.InflateRaw,C=new A,b=C._processChunk(T.slice(T.l),C._finishFlushFlag);return T.l+=C.bytesRead,b}function k(T){return me?me.deflateRawSync(T):Br(T)}var H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ie=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],Fe=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function Ce(T){var O=(T<<1|T<<11)&139536|(T<<5|T<<15)&558144;return(O>>16|O>>8|O)&255}for(var _e=typeof Uint8Array<"u",xe=_e?new Uint8Array(256):[],Je=0;Je<256;++Je)xe[Je]=Ce(Je);function $e(T,O){var A=xe[T&255];return O<=8?A>>>8-O:(A=A<<8|xe[T>>8&255],O<=16?A>>>16-O:(A=A<<8|xe[T>>16&255],A>>>24-O))}function lt(T,O){var A=O&7,C=O>>>3;return(T[C]|(A<=6?0:T[C+1]<<8))>>>A&3}function et(T,O){var A=O&7,C=O>>>3;return(T[C]|(A<=5?0:T[C+1]<<8))>>>A&7}function rt(T,O){var A=O&7,C=O>>>3;return(T[C]|(A<=4?0:T[C+1]<<8))>>>A&15}function ft(T,O){var A=O&7,C=O>>>3;return(T[C]|(A<=3?0:T[C+1]<<8))>>>A&31}function ke(T,O){var A=O&7,C=O>>>3;return(T[C]|(A<=1?0:T[C+1]<<8))>>>A&127}function It(T,O,A){var C=O&7,b=O>>>3,F=(1<<A)-1,q=T[b]>>>C;return A<8-C||(q|=T[b+1]<<8-C,A<16-C)||(q|=T[b+2]<<16-C,A<24-C)||(q|=T[b+3]<<24-C),q&F}function sr(T,O,A){var C=O&7,b=O>>>3;return C<=5?T[b]|=(A&7)<<C:(T[b]|=A<<C&255,T[b+1]=(A&7)>>8-C),O+3}function Cr(T,O,A){var C=O&7,b=O>>>3;return A=(A&1)<<C,T[b]|=A,O+1}function Gt(T,O,A){var C=O&7,b=O>>>3;return A<<=C,T[b]|=A&255,A>>>=8,T[b+1]=A,O+8}function rn(T,O,A){var C=O&7,b=O>>>3;return A<<=C,T[b]|=A&255,A>>>=8,T[b+1]=A&255,T[b+2]=A>>>8,O+16}function Mn(T,O){var A=T.length,C=2*A>O?2*A:O+5,b=0;if(A>=O)return T;if(xt){var F=Nx(C);if(T.copy)T.copy(F);else for(;b<T.length;++b)F[b]=T[b];return F}else if(_e){var q=new Uint8Array(C);if(q.set)q.set(T);else for(;b<A;++b)q[b]=T[b];return q}return T.length=C,T}function Tt(T){for(var O=new Array(T),A=0;A<T;++A)O[A]=0;return O}function cr(T,O,A){var C=1,b=0,F=0,q=0,ue=0,J=T.length,te=_e?new Uint16Array(32):Tt(32);for(F=0;F<32;++F)te[F]=0;for(F=J;F<A;++F)T[F]=0;J=T.length;var re=_e?new Uint16Array(J):Tt(J);for(F=0;F<J;++F)te[b=T[F]]++,C<b&&(C=b),re[F]=0;for(te[0]=0,F=1;F<=C;++F)te[F+16]=ue=ue+te[F-1]<<1;for(F=0;F<J;++F)ue=T[F],ue!=0&&(re[F]=te[ue+16]++);var pe=0;for(F=0;F<J;++F)if(pe=T[F],pe!=0)for(ue=$e(re[F],C)>>C-pe,q=(1<<C+4-pe)-1;q>=0;--q)O[ue|q<<pe]=pe&15|F<<4;return C}var Ze=_e?new Uint16Array(512):Tt(512),_r=_e?new Uint16Array(32):Tt(32);if(!_e){for(var $t=0;$t<512;++$t)Ze[$t]=0;for($t=0;$t<32;++$t)_r[$t]=0}(function(){for(var T=[],O=0;O<32;O++)T.push(5);cr(T,_r,32);var A=[];for(O=0;O<=143;O++)A.push(8);for(;O<=255;O++)A.push(9);for(;O<=279;O++)A.push(7);for(;O<=287;O++)A.push(8);cr(A,Ze,288)})();var Il=function(){for(var O=_e?new Uint8Array(32768):[],A=0,C=0;A<Fe.length-1;++A)for(;C<Fe[A+1];++C)O[C]=A;for(;C<32768;++C)O[C]=29;var b=_e?new Uint8Array(259):[];for(A=0,C=0;A<ie.length-1;++A)for(;C<ie[A+1];++C)b[C]=A;function F(ue,J){for(var te=0;te<ue.length;){var re=Math.min(65535,ue.length-te),pe=te+re==ue.length;for(J.write_shift(1,+pe),J.write_shift(2,re),J.write_shift(2,~re&65535);re-- >0;)J[J.l++]=ue[te++]}return J.l}function q(ue,J){for(var te=0,re=0,pe=_e?new Uint16Array(32768):[];re<ue.length;){var Oe=Math.min(65535,ue.length-re);if(Oe<10){for(te=sr(J,te,+(re+Oe==ue.length)),te&7&&(te+=8-(te&7)),J.l=te/8|0,J.write_shift(2,Oe),J.write_shift(2,~Oe&65535);Oe-- >0;)J[J.l++]=ue[re++];te=J.l*8;continue}te=sr(J,te,+(re+Oe==ue.length)+2);for(var Le=0;Oe-- >0;){var we=ue[re];Le=(Le<<5^we)&32767;var Ae=-1,Ye=0;if((Ae=pe[Le])&&(Ae|=re&-32768,Ae>re&&(Ae-=32768),Ae<re))for(;ue[Ae+Ye]==ue[re+Ye]&&Ye<250;)++Ye;if(Ye>2){we=b[Ye],we<=22?te=Gt(J,te,xe[we+1]>>1)-1:(Gt(J,te,3),te+=5,Gt(J,te,xe[we-23]>>5),te+=3);var Xe=we<8?0:we-4>>2;Xe>0&&(rn(J,te,Ye-ie[we]),te+=Xe),we=O[re-Ae],te=Gt(J,te,xe[we]>>3),te-=3;var Qe=we<4?0:we-2>>1;Qe>0&&(rn(J,te,re-Ae-Fe[we]),te+=Qe);for(var St=0;St<Ye;++St)pe[Le]=re&32767,Le=(Le<<5^ue[re])&32767,++re;Oe-=Ye-1}else we<=143?we=we+48:te=Cr(J,te,1),te=Gt(J,te,xe[we]),pe[Le]=re&32767,++re}te=Gt(J,te,0)-1}return J.l=(te+7)/8|0,J.l}return function(J,te){return J.length<8?F(J,te):q(J,te)}}();function Br(T){var O=oe(50+Math.floor(T.length*1.1)),A=Il(T,O);return O.slice(0,A)}var Ja=_e?new Uint16Array(32768):Tt(32768),ei=_e?new Uint16Array(32768):Tt(32768),yn=_e?new Uint16Array(128):Tt(128),er=1,ti=1;function Or(T,O){var A=ft(T,O)+257;O+=5;var C=ft(T,O)+1;O+=5;var b=rt(T,O)+4;O+=4;for(var F=0,q=_e?new Uint8Array(19):Tt(19),ue=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],J=1,te=_e?new Uint8Array(8):Tt(8),re=_e?new Uint8Array(8):Tt(8),pe=q.length,Oe=0;Oe<b;++Oe)q[H[Oe]]=F=et(T,O),J<F&&(J=F),te[F]++,O+=3;var Le=0;for(te[0]=0,Oe=1;Oe<=J;++Oe)re[Oe]=Le=Le+te[Oe-1]<<1;for(Oe=0;Oe<pe;++Oe)(Le=q[Oe])!=0&&(ue[Oe]=re[Le]++);var we=0;for(Oe=0;Oe<pe;++Oe)if(we=q[Oe],we!=0){Le=xe[ue[Oe]]>>8-we;for(var Ae=(1<<7-we)-1;Ae>=0;--Ae)yn[Le|Ae<<we]=we&7|Oe<<3}var Ye=[];for(J=1;Ye.length<A+C;)switch(Le=yn[ke(T,O)],O+=Le&7,Le>>>=3){case 16:for(F=3+lt(T,O),O+=2,Le=Ye[Ye.length-1];F-- >0;)Ye.push(Le);break;case 17:for(F=3+et(T,O),O+=3;F-- >0;)Ye.push(0);break;case 18:for(F=11+ke(T,O),O+=7;F-- >0;)Ye.push(0);break;default:Ye.push(Le),J<Le&&(J=Le);break}var Xe=Ye.slice(0,A),Qe=Ye.slice(A);for(Oe=A;Oe<286;++Oe)Xe[Oe]=0;for(Oe=C;Oe<30;++Oe)Qe[Oe]=0;return er=cr(Xe,Ja,286),ti=cr(Qe,ei,30),O}function tr(T,O){if(T[0]==3&&!(T[1]&3))return[bi(O),2];for(var A=0,C=0,b=Nx(O||1<<18),F=0,q=b.length>>>0,ue=0,J=0;!(C&1);){if(C=et(T,A),A+=3,C>>>1)C>>1==1?(ue=9,J=5):(A=Or(T,A),ue=er,J=ti);else{A&7&&(A+=8-(A&7));var te=T[A>>>3]|T[(A>>>3)+1]<<8;if(A+=32,te>0)for(!O&&q<F+te&&(b=Mn(b,F+te),q=b.length);te-- >0;)b[F++]=T[A>>>3],A+=8;continue}for(;;){!O&&q<F+32767&&(b=Mn(b,F+32767),q=b.length);var re=It(T,A,ue),pe=C>>>1==1?Ze[re]:Ja[re];if(A+=pe&15,pe>>>=4,!(pe>>>8&255))b[F++]=pe;else{if(pe==256)break;pe-=257;var Oe=pe<8?0:pe-4>>2;Oe>5&&(Oe=0);var Le=F+ie[pe];Oe>0&&(Le+=It(T,A,Oe),A+=Oe),re=It(T,A,J),pe=C>>>1==1?_r[re]:ei[re],A+=pe&15,pe>>>=4;var we=pe<4?0:pe-2>>1,Ae=Fe[pe];for(we>0&&(Ae+=It(T,A,we),A+=we),!O&&q<Le&&(b=Mn(b,Le+100),q=b.length);F<Le;)b[F]=b[F-Ae],++F}}}return O?[b,A+7>>>3]:[b.slice(0,F),A+7>>>3]}function ga(T,O){var A=T.slice(T.l||0),C=tr(A,O);return T.l+=C[1],C[0]}function Ii(T,O){if(T)typeof console<"u"&&console.error(O);else throw new Error(O)}function ri(T,O){var A=T;Qr(A,0);var C=[],b=[],F={FileIndex:C,FullPaths:b};G(F,{root:O.root});for(var q=A.length-4;(A[q]!=80||A[q+1]!=75||A[q+2]!=5||A[q+3]!=6)&&q>=0;)--q;A.l=q+4,A.l+=4;var ue=A.read_shift(2);A.l+=6;var J=A.read_shift(4);for(A.l=J,q=0;q<ue;++q){A.l+=20;var te=A.read_shift(4),re=A.read_shift(4),pe=A.read_shift(2),Oe=A.read_shift(2),Le=A.read_shift(2);A.l+=8;var we=A.read_shift(4),Ae=h(A.slice(A.l+pe,A.l+pe+Oe));A.l+=pe+Oe+Le;var Ye=A.l;A.l=we+4,Ea(A,te,re,F,Ae),A.l=Ye}return F}function Ea(T,O,A,C,b){T.l+=2;var F=T.read_shift(2),q=T.read_shift(2),ue=c(T);if(F&8257)throw new Error("Unsupported ZIP encryption");for(var J=T.read_shift(4),te=T.read_shift(4),re=T.read_shift(4),pe=T.read_shift(2),Oe=T.read_shift(2),Le="",we=0;we<pe;++we)Le+=String.fromCharCode(T[T.l++]);if(Oe){var Ae=h(T.slice(T.l,T.l+Oe));(Ae[21589]||{}).mt&&(ue=Ae[21589].mt),((b||{})[21589]||{}).mt&&(ue=b[21589].mt)}T.l+=Oe;var Ye=T.slice(T.l,T.l+te);switch(q){case 8:Ye=j(T,re);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+q)}var Xe=!1;F&8&&(J=T.read_shift(4),J==134695760&&(J=T.read_shift(4),Xe=!0),te=T.read_shift(4),re=T.read_shift(4)),te!=O&&Ii(Xe,"Bad compressed size: "+O+" != "+te),re!=A&&Ii(Xe,"Bad uncompressed size: "+A+" != "+re),ze(C,Le,Ye,{unsafe:!0,mt:ue})}function Vn(T,O){var A=O||{},C=[],b=[],F=oe(1),q=A.compression?8:0,ue=0,J=0,te=0,re=0,pe=0,Oe=T.FullPaths[0],Le=Oe,we=T.FileIndex[0],Ae=[],Ye=0;for(J=1;J<T.FullPaths.length;++J)if(Le=T.FullPaths[J].slice(Oe.length),we=T.FileIndex[J],!(!we.size||!we.content||Le=="Sh33tJ5")){var Xe=re,Qe=oe(Le.length);for(te=0;te<Le.length;++te)Qe.write_shift(1,Le.charCodeAt(te)&127);Qe=Qe.slice(0,Qe.l),Ae[pe]=Zw.buf(we.content,0);var St=we.content;q==8&&(St=k(St)),F=oe(30),F.write_shift(4,67324752),F.write_shift(2,20),F.write_shift(2,ue),F.write_shift(2,q),we.mt?s(F,we.mt):F.write_shift(4,0),F.write_shift(-4,Ae[pe]),F.write_shift(4,St.length),F.write_shift(4,we.content.length),F.write_shift(2,Qe.length),F.write_shift(2,0),re+=F.length,C.push(F),re+=Qe.length,C.push(Qe),re+=St.length,C.push(St),F=oe(46),F.write_shift(4,33639248),F.write_shift(2,0),F.write_shift(2,20),F.write_shift(2,ue),F.write_shift(2,q),F.write_shift(4,0),F.write_shift(-4,Ae[pe]),F.write_shift(4,St.length),F.write_shift(4,we.content.length),F.write_shift(2,Qe.length),F.write_shift(2,0),F.write_shift(2,0),F.write_shift(2,0),F.write_shift(2,0),F.write_shift(4,0),F.write_shift(4,Xe),Ye+=F.l,b.push(F),Ye+=Qe.length,b.push(Qe),++pe}return F=oe(22),F.write_shift(4,101010256),F.write_shift(2,0),F.write_shift(2,0),F.write_shift(2,pe),F.write_shift(2,pe),F.write_shift(4,Ye),F.write_shift(4,re),F.write_shift(2,0),pr([pr(C),pr(b),F])}var or={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function _n(T,O){if(T.ctype)return T.ctype;var A=T.name||"",C=A.match(/\.([^\.]+)$/);return C&&or[C[1]]||O&&(C=(A=O).match(/[\.\\]([^\.\\])+$/),C&&or[C[1]])?or[C[1]]:"application/octet-stream"}function Xn(T){for(var O=Zu(T),A=[],C=0;C<O.length;C+=76)A.push(O.slice(C,C+76));return A.join(`\r
-`)+`\r
-`}function zl(T){var O=T.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(te){var re=te.charCodeAt(0).toString(16).toUpperCase();return"="+(re.length==1?"0"+re:re)});O=O.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),O.charAt(0)==`
-`&&(O="=0D"+O.slice(1)),O=O.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
-=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var A=[],C=O.split(`\r
-`),b=0;b<C.length;++b){var F=C[b];if(F.length==0){A.push("");continue}for(var q=0;q<F.length;){var ue=76,J=F.slice(q,q+ue);J.charAt(ue-1)=="="?ue--:J.charAt(ue-2)=="="?ue-=2:J.charAt(ue-3)=="="&&(ue-=3),J=F.slice(q,q+ue),q+=ue,q<F.length&&(J+="="),A.push(J)}}return A.join(`\r
-`)}function V(T){for(var O=[],A=0;A<T.length;++A){for(var C=T[A];A<=T.length&&C.charAt(C.length-1)=="=";)C=C.slice(0,C.length-1)+T[++A];O.push(C)}for(var b=0;b<O.length;++b)O[b]=O[b].replace(/[=][0-9A-Fa-f]{2}/g,function(F){return String.fromCharCode(parseInt(F.slice(1),16))});return Dn(O.join(`\r
-`))}function Q(T,O,A){for(var C="",b="",F="",q,ue=0;ue<10;++ue){var J=O[ue];if(!J||J.match(/^\s*$/))break;var te=J.match(/^(.*?):\s*([^\s].*)$/);if(te)switch(te[1].toLowerCase()){case"content-location":C=te[2].trim();break;case"content-type":F=te[2].trim();break;case"content-transfer-encoding":b=te[2].trim();break}}switch(++ue,b.toLowerCase()){case"base64":q=Dn(da(O.slice(ue).join("")));break;case"quoted-printable":q=V(O.slice(ue));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+b)}var re=ze(T,C.slice(A.length),q,{unsafe:!0});F&&(re.ctype=F)}function se(T,O){if(je(T.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var A=O&&O.root||"",C=(xt&&Buffer.isBuffer(T)?T.toString("binary"):je(T)).split(`\r
-`),b=0,F="";for(b=0;b<C.length;++b)if(F=C[b],!!/^Content-Location:/i.test(F)&&(F=F.slice(F.indexOf("file")),A||(A=F.slice(0,F.lastIndexOf("/")+1)),F.slice(0,A.length)!=A))for(;A.length>0&&(A=A.slice(0,A.length-1),A=A.slice(0,A.lastIndexOf("/")+1),F.slice(0,A.length)!=A););var q=(C[1]||"").match(/boundary="(.*?)"/);if(!q)throw new Error("MAD cannot find boundary");var ue="--"+(q[1]||""),J=[],te=[],re={FileIndex:J,FullPaths:te};G(re);var pe,Oe=0;for(b=0;b<C.length;++b){var Le=C[b];Le!==ue&&Le!==ue+"--"||(Oe++&&Q(re,C.slice(pe,b),A),pe=b)}return re}function Te(T,O){var A=O||{},C=A.boundary||"SheetJS";C="------="+C;for(var b=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+C.slice(2)+'"',"","",""],F=T.FullPaths[0],q=F,ue=T.FileIndex[0],J=1;J<T.FullPaths.length;++J)if(q=T.FullPaths[J].slice(F.length),ue=T.FileIndex[J],!(!ue.size||!ue.content||q=="Sh33tJ5")){q=q.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Ye){return"_x"+Ye.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Ye){return"_u"+Ye.charCodeAt(0).toString(16)+"_"});for(var te=ue.content,re=xt&&Buffer.isBuffer(te)?te.toString("binary"):je(te),pe=0,Oe=Math.min(1024,re.length),Le=0,we=0;we<=Oe;++we)(Le=re.charCodeAt(we))>=32&&Le<128&&++pe;var Ae=pe>=Oe*4/5;b.push(C),b.push("Content-Location: "+(A.root||"file:///C:/SheetJS/")+q),b.push("Content-Transfer-Encoding: "+(Ae?"quoted-printable":"base64")),b.push("Content-Type: "+_n(ue,q)),b.push(""),b.push(Ae?zl(re):Xn(re))}return b.push(C+`--\r
-`),b.join(`\r
-`)}function Ue(T){var O={};return G(O,T),O}function ze(T,O,A,C){var b=C&&C.unsafe;b||G(T);var F=!b&&Ct.find(T,O);if(!F){var q=T.FullPaths[0];O.slice(0,q.length)==q?q=O:(q.slice(-1)!="/"&&(q+="/"),q=(q+O).replace("//","/")),F={name:u(O),type:2},T.FileIndex.push(F),T.FullPaths.push(q),b||Ct.utils.cfb_gc(T)}return F.content=A,F.size=A?A.length:0,C&&(C.CLSID&&(F.clsid=C.CLSID),C.mt&&(F.mt=C.mt),C.ct&&(F.ct=C.ct)),F}function We(T,O){G(T);var A=Ct.find(T,O);if(A){for(var C=0;C<T.FileIndex.length;++C)if(T.FileIndex[C]==A)return T.FileIndex.splice(C,1),T.FullPaths.splice(C,1),!0}return!1}function Pe(T,O,A){G(T);var C=Ct.find(T,O);if(C){for(var b=0;b<T.FileIndex.length;++b)if(T.FileIndex[b]==C)return T.FileIndex[b].name=u(A),T.FullPaths[b]=A,!0}return!1}function Ie(T){I(T,!0)}return t.find=ce,t.read=fe,t.parse=x,t.write=z,t.writeFile=De,t.utils={cfb_new:Ue,cfb_add:ze,cfb_del:We,cfb_mov:Pe,cfb_gc:Ie,ReadShift:Xu,CheckField:Xg,prep_blob:Qr,bconcat:pr,use_zlib:L,_deflateRaw:Br,_inflateRaw:ga,consts:Be},t}();function Jw(e){return typeof e=="string"?mc(e):Array.isArray(e)?Aw(e):e}function cf(e,t,r){if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=mc(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var i=r=="utf8"?ef(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(i,e);if(typeof Blob<"u"){var u=new Blob([Jw(i)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(u,e);if(typeof saveAs<"u")return saveAs(u,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var s=URL.createObjectURL(u);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(s)},6e4),chrome.downloads.download({url:s,filename:e,saveAs:!0});var c=document.createElement("a");if(c.download!=null)return c.download=e,c.href=s,document.body.appendChild(c),c.click(),document.body.removeChild(c),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(s)},6e4),s}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var h=File(e);return h.open("w"),h.encoding="binary",Array.isArray(t)&&(t=sf(t)),h.write(t),h.close(),t}catch(m){if(!m.message||!m.message.match(/onstruct/))throw m}throw new Error("cannot save file "+e)}function yr(e){for(var t=Object.keys(e),r=[],i=0;i<t.length;++i)Object.prototype.hasOwnProperty.call(e,t[i])&&r.push(t[i]);return r}function Px(e,t){for(var r=[],i=yr(e),u=0;u!==i.length;++u)r[e[i[u]][t]]==null&&(r[e[i[u]][t]]=i[u]);return r}function Gh(e){for(var t=[],r=yr(e),i=0;i!==r.length;++i)t[e[r[i]]]=r[i];return t}function pc(e){for(var t=[],r=yr(e),i=0;i!==r.length;++i)t[e[r[i]]]=parseInt(r[i],10);return t}function e3(e){for(var t=[],r=yr(e),i=0;i!==r.length;++i)t[e[r[i]]]==null&&(t[e[r[i]]]=[]),t[e[r[i]]].push(r[i]);return t}var Ks=new Date(1899,11,30,0,0,0);function zr(e,t){var r=e.getTime(),i=Ks.getTime()+(e.getTimezoneOffset()-Ks.getTimezoneOffset())*6e4;return(r-i)/(24*60*60*1e3)}var Og=new Date,t3=Ks.getTime()+(Og.getTimezoneOffset()-Ks.getTimezoneOffset())*6e4,Hx=Og.getTimezoneOffset();function Dg(e){var t=new Date;return t.setTime(e*24*60*60*1e3+t3),t.getTimezoneOffset()!==Hx&&t.setTime(t.getTime()+(t.getTimezoneOffset()-Hx)*6e4),t}var Ix=new Date("2017-02-19T19:06:09.000Z"),Ng=isNaN(Ix.getFullYear())?new Date("2/19/17"):Ix,r3=Ng.getFullYear()==2017;function Lr(e,t){var r=new Date(e);if(r3)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(Ng.getFullYear()==1917&&!isNaN(r.getFullYear())){var i=r.getFullYear();return e.indexOf(""+i)>-1||r.setFullYear(r.getFullYear()+100),r}var u=e.match(/\d+/g)||["2017","2","19","0","0","0"],s=new Date(+u[0],+u[1]-1,+u[2],+u[3]||0,+u[4]||0,+u[5]||0);return e.indexOf("Z")>-1&&(s=new Date(s.getTime()-s.getTimezoneOffset()*60*1e3)),s}function gc(e,t){if(xt&&Buffer.isBuffer(e))return e.toString("binary");if(typeof TextDecoder<"u")try{var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(s){return r[s]||s})}catch{}for(var i=[],u=0;u!=e.length;++u)i.push(String.fromCharCode(e[u]));return i.join("")}function jr(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=jr(e[r]));return t}function Ut(e,t){for(var r="";r.length<t;)r+=e;return r}function ca(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,i=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(t=Number(i))||(i=i.replace(/[(](.*)[)]/,function(u,s){return r=-r,s}),!isNaN(t=Number(i)))?t/r:t}var n3=["january","february","march","april","may","june","july","august","september","october","november","december"];function Ju(e){var t=new Date(e),r=new Date(NaN),i=t.getYear(),u=t.getMonth(),s=t.getDate();if(isNaN(s))return r;var c=e.toLowerCase();if(c.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(c=c.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),c.length>3&&n3.indexOf(c)==-1)return r}else if(c.match(/[a-z]/))return r;return i<0||i>8099?r:(u>0||s>1)&&i!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}function at(e,t,r){if(e.FullPaths){if(typeof r=="string"){var i;return xt?i=pa(r):i=Rw(r),Ct.utils.cfb_add(e,t,i)}Ct.utils.cfb_add(e,t,r)}else e.file(t,r)}function Vh(){return Ct.utils.cfb_new()}var Kt=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
-`,a3={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},Xh=Gh(a3),Yh=/[&<>'"]/g,i3=/[\u0000-\u0008\u000b-\u001f]/g;function Et(e){var t=e+"";return t.replace(Yh,function(r){return Xh[r]}).replace(i3,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function zx(e){return Et(e).replace(/ /g,"_x0020_")}var bg=/[\u0000-\u001f]/g;function l3(e){var t=e+"";return t.replace(Yh,function(r){return Xh[r]}).replace(/\n/g,"<br/>").replace(bg,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function u3(e){var t=e+"";return t.replace(Yh,function(r){return Xh[r]}).replace(bg,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function f3(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function s3(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function $o(e){for(var t="",r=0,i=0,u=0,s=0,c=0,h=0;r<e.length;){if(i=e.charCodeAt(r++),i<128){t+=String.fromCharCode(i);continue}if(u=e.charCodeAt(r++),i>191&&i<224){c=(i&31)<<6,c|=u&63,t+=String.fromCharCode(c);continue}if(s=e.charCodeAt(r++),i<240){t+=String.fromCharCode((i&15)<<12|(u&63)<<6|s&63);continue}c=e.charCodeAt(r++),h=((i&7)<<18|(u&63)<<12|(s&63)<<6|c&63)-65536,t+=String.fromCharCode(55296+(h>>>10&1023)),t+=String.fromCharCode(56320+(h&1023))}return t}function jx(e){var t=bi(2*e.length),r,i,u=1,s=0,c=0,h;for(i=0;i<e.length;i+=u)u=1,(h=e.charCodeAt(i))<128?r=h:h<224?(r=(h&31)*64+(e.charCodeAt(i+1)&63),u=2):h<240?(r=(h&15)*4096+(e.charCodeAt(i+1)&63)*64+(e.charCodeAt(i+2)&63),u=3):(u=4,r=(h&7)*262144+(e.charCodeAt(i+1)&63)*4096+(e.charCodeAt(i+2)&63)*64+(e.charCodeAt(i+3)&63),r-=65536,c=55296+(r>>>10&1023),r=56320+(r&1023)),c!==0&&(t[s++]=c&255,t[s++]=c>>>8,c=0),t[s++]=r%256,t[s++]=r>>>8;return t.slice(0,s).toString("ucs2")}function Gx(e){return pa(e,"binary").toString("utf8")}var Ds="foo bar baz☃🍣",Vu=xt&&(Gx(Ds)==$o(Ds)&&Gx||jx(Ds)==$o(Ds)&&jx)||$o,ef=xt?function(e){return pa(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,i=0,u=0;r<e.length;)switch(i=e.charCodeAt(r++),!0){case i<128:t.push(String.fromCharCode(i));break;case i<2048:t.push(String.fromCharCode(192+(i>>6))),t.push(String.fromCharCode(128+(i&63)));break;case(i>=55296&&i<57344):i-=55296,u=e.charCodeAt(r++)-56320+(i<<10),t.push(String.fromCharCode(240+(u>>18&7))),t.push(String.fromCharCode(144+(u>>12&63))),t.push(String.fromCharCode(128+(u>>6&63))),t.push(String.fromCharCode(128+(u&63)));break;default:t.push(String.fromCharCode(224+(i>>12))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(i&63)))}return t.join("")},c3=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var i=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
-`).replace(/<[^>]*>/g,""),u=0;u<e.length;++u)i=i.replace(e[u][0],e[u][1]);return i}}(),Fg=/(^\s|\s$|\n)/;function gr(e,t){return"<"+e+(t.match(Fg)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function tf(e){return yr(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function Ne(e,t,r){return"<"+e+(r!=null?tf(r):"")+(t!=null?(t.match(Fg)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function ph(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function o3(e,t){switch(typeof e){case"string":var r=Ne("vt:lpwstr",Et(e));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return Ne((e|0)==e?"vt:i4":"vt:r8",Et(String(e)));case"boolean":return Ne("vt:bool",e?"true":"false")}if(e instanceof Date)return Ne("vt:filetime",ph(e));throw new Error("Unable to serialize "+e)}var ir={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},kl=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Zr={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function h3(e,t){for(var r=1-2*(e[t+7]>>>7),i=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),u=e[t+6]&15,s=5;s>=0;--s)u=u*256+e[t+s];return i==2047?u==0?r*(1/0):NaN:(i==0?i=-1022:(i-=1023,u+=Math.pow(2,52)),r*Math.pow(2,i-52)*u)}function d3(e,t,r){var i=(t<0||1/t==-1/0?1:0)<<7,u=0,s=0,c=i?-t:t;isFinite(c)?c==0?u=s=0:(u=Math.floor(Math.log(c)/Math.LN2),s=c*Math.pow(2,52-u),u<=-1023&&(!isFinite(s)||s<Math.pow(2,52))?u=-1022:(s-=Math.pow(2,52),u+=1023)):(u=2047,s=isNaN(t)?26985:0);for(var h=0;h<=5;++h,s/=256)e[r+h]=s&255;e[r+6]=(u&15)<<4|s&15,e[r+7]=u>>4|i}var Vx=function(e){for(var t=[],r=10240,i=0;i<e[0].length;++i)if(e[0][i])for(var u=0,s=e[0][i].length;u<s;u+=r)t.push.apply(t,e[0][i].slice(u,u+r));return t},Xx=xt?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:pa(t)})):Vx(e)}:Vx,Yx=function(e,t,r){for(var i=[],u=t;u<r;u+=2)i.push(String.fromCharCode(ju(e,u)));return i.join("").replace(Gu,"")},Wh=xt?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(Gu,""):Yx(e,t,r)}:Yx,Wx=function(e,t,r){for(var i=[],u=t;u<t+r;++u)i.push(("0"+e[u].toString(16)).slice(-2));return i.join("")},Mg=xt?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):Wx(e,t,r)}:Wx,qx=function(e,t,r){for(var i=[],u=t;u<r;u++)i.push(String.fromCharCode(Rl(e,u)));return i.join("")},of=xt?function(t,r,i){return Buffer.isBuffer(t)?t.toString("utf8",r,i):qx(t,r,i)}:qx,Lg=function(e,t){var r=Jr(e,t);return r>0?of(e,t+4,t+4+r-1):""},Bg=Lg,kg=function(e,t){var r=Jr(e,t);return r>0?of(e,t+4,t+4+r-1):""},Ug=kg,Pg=function(e,t){var r=2*Jr(e,t);return r>0?of(e,t+4,t+4+r-1):""},Hg=Pg,Ig=function(t,r){var i=Jr(t,r);return i>0?Wh(t,r+4,r+4+i):""},zg=Ig,jg=function(e,t){var r=Jr(e,t);return r>0?of(e,t+4,t+4+r):""},Gg=jg,Vg=function(e,t){return h3(e,t)},$s=Vg,qh=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};xt&&(Bg=function(t,r){if(!Buffer.isBuffer(t))return Lg(t,r);var i=t.readUInt32LE(r);return i>0?t.toString("utf8",r+4,r+4+i-1):""},Ug=function(t,r){if(!Buffer.isBuffer(t))return kg(t,r);var i=t.readUInt32LE(r);return i>0?t.toString("utf8",r+4,r+4+i-1):""},Hg=function(t,r){if(!Buffer.isBuffer(t))return Pg(t,r);var i=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+i-1)},zg=function(t,r){if(!Buffer.isBuffer(t))return Ig(t,r);var i=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+i)},Gg=function(t,r){if(!Buffer.isBuffer(t))return jg(t,r);var i=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+i)},$s=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):Vg(t,r)},qh=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Rl=function(e,t){return e[t]},ju=function(e,t){return e[t+1]*256+e[t]},m3=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},Jr=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Ci=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},v3=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Xu(e,t){var r="",i,u,s=[],c,h,m,d;switch(t){case"dbcs":if(d=this.l,xt&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(m=0;m<e;++m)r+=String.fromCharCode(ju(this,d)),d+=2;e*=2;break;case"utf8":r=of(this,this.l,this.l+e);break;case"utf16le":e*=2,r=Wh(this,this.l,this.l+e);break;case"wstr":return Xu.call(this,e,"dbcs");case"lpstr-ansi":r=Bg(this,this.l),e=4+Jr(this,this.l);break;case"lpstr-cp":r=Ug(this,this.l),e=4+Jr(this,this.l);break;case"lpwstr":r=Hg(this,this.l),e=4+2*Jr(this,this.l);break;case"lpp4":e=4+Jr(this,this.l),r=zg(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+Jr(this,this.l),r=Gg(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(c=Rl(this,this.l+e++))!==0;)s.push(Rs(c));r=s.join("");break;case"_wstr":for(e=0,r="";(c=ju(this,this.l+e))!==0;)s.push(Rs(c)),e+=2;e+=2,r=s.join("");break;case"dbcs-cont":for(r="",d=this.l,m=0;m<e;++m){if(this.lens&&this.lens.indexOf(d)!==-1)return c=Rl(this,d),this.l=d+1,h=Xu.call(this,e-m,c?"dbcs-cont":"sbcs-cont"),s.join("")+h;s.push(Rs(ju(this,d))),d+=2}r=s.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",d=this.l,m=0;m!=e;++m){if(this.lens&&this.lens.indexOf(d)!==-1)return c=Rl(this,d),this.l=d+1,h=Xu.call(this,e-m,c?"dbcs-cont":"sbcs-cont"),s.join("")+h;s.push(Rs(Rl(this,d))),d+=1}r=s.join("");break;default:switch(e){case 1:return i=Rl(this,this.l),this.l++,i;case 2:return i=(t==="i"?m3:ju)(this,this.l),this.l+=2,i;case 4:case-4:return t==="i"||!(this[this.l+3]&128)?(i=(e>0?Ci:v3)(this,this.l),this.l+=4,i):(u=Jr(this,this.l),this.l+=4,u);case 8:case-8:if(t==="f")return e==8?u=$s(this,this.l):u=$s([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,u;e=8;case 16:r=Mg(this,this.l,e);break}}return this.l+=e,r}var x3=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},p3=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},g3=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function E3(e,t,r){var i=0,u=0;if(r==="dbcs"){for(u=0;u!=t.length;++u)g3(this,t.charCodeAt(u),this.l+2*u);i=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),u=0;u!=t.length;++u)this[this.l+u]=t.charCodeAt(u)&255;i=t.length}else if(r==="hex"){for(;u<e;++u)this[this.l++]=parseInt(t.slice(2*u,2*u+2),16)||0;return this}else if(r==="utf16le"){var s=Math.min(this.l+e,this.length);for(u=0;u<Math.min(t.length,e);++u){var c=t.charCodeAt(u);this[this.l++]=c&255,this[this.l++]=c>>8}for(;this.l<s;)this[this.l++]=0;return this}else switch(e){case 1:i=1,this[this.l]=t&255;break;case 2:i=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:i=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:i=4,x3(this,t,this.l);break;case 8:if(i=8,r==="f"){d3(this,t,this.l);break}case 16:break;case-4:i=4,p3(this,t,this.l);break}return this.l+=i,this}function Xg(e,t){var r=Mg(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Qr(e,t){e.l=t,e.read_shift=Xu,e.chk=Xg,e.write_shift=E3}function jn(e,t){e.l+=t}function oe(e){var t=bi(e);return Qr(t,0),t}function Ir(){var e=[],t=xt?256:2048,r=function(d){var x=oe(d);return Qr(x,0),x},i=r(t),u=function(){i&&(i.length>i.l&&(i=i.slice(0,i.l),i.l=i.length),i.length>0&&e.push(i),i=null)},s=function(d){return i&&d<i.length-i.l?i:(u(),i=r(Math.max(d+1,t)))},c=function(){return u(),pr(e)},h=function(d){u(),i=d,i.l==null&&(i.l=i.length),s(t)};return{next:s,push:h,end:c,_bufs:e}}function Ee(e,t,r,i){var u=+t,s;if(!isNaN(u)){i||(i=hO[u].p||(r||[]).length||0),s=1+(u>=128?1:0)+1,i>=128&&++s,i>=16384&&++s,i>=2097152&&++s;var c=e.next(s);u<=127?c.write_shift(1,u):(c.write_shift(1,(u&127)+128),c.write_shift(1,u>>7));for(var h=0;h!=4;++h)if(i>=128)c.write_shift(1,(i&127)+128),i>>=7;else{c.write_shift(1,i);break}i>0&&qh(r)&&e.push(r)}}function Yu(e,t,r){var i=jr(e);if(t.s?(i.cRel&&(i.c+=t.s.c),i.rRel&&(i.r+=t.s.r)):(i.cRel&&(i.c+=t.c),i.rRel&&(i.r+=t.r)),!r||r.biff<12){for(;i.c>=256;)i.c-=256;for(;i.r>=65536;)i.r-=65536}return i}function Kx(e,t,r){var i=jr(e);return i.s=Yu(i.s,t.s,r),i.e=Yu(i.e,t.s,r),i}function Wu(e,t){if(e.cRel&&e.c<0)for(e=jr(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=jr(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=yt(e);return!e.cRel&&e.cRel!=null&&(r=T3(r)),!e.rRel&&e.rRel!=null&&(r=y3(r)),r}function Qo(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+wr(e.s.c)+":"+(e.e.cRel?"":"$")+wr(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+Er(e.s.r)+":"+(e.e.rRel?"":"$")+Er(e.e.r):Wu(e.s,t.biff)+":"+Wu(e.e,t.biff)}function Kh(e){return parseInt(_3(e),10)-1}function Er(e){return""+(e+1)}function y3(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function _3(e){return e.replace(/\$(\d+)$/,"$1")}function $h(e){for(var t=S3(e),r=0,i=0;i!==t.length;++i)r=26*r+t.charCodeAt(i)-64;return r-1}function wr(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function T3(e){return e.replace(/^([A-Z])/,"$$$1")}function S3(e){return e.replace(/^\$([A-Z])/,"$1")}function w3(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function lr(e){for(var t=0,r=0,i=0;i<e.length;++i){var u=e.charCodeAt(i);u>=48&&u<=57?t=10*t+(u-48):u>=65&&u<=90&&(r=26*r+(u-64))}return{c:r-1,r:t-1}}function yt(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function tn(e){var t=e.indexOf(":");return t==-1?{s:lr(e),e:lr(e)}:{s:lr(e.slice(0,t)),e:lr(e.slice(t+1))}}function qt(e,t){return typeof t>"u"||typeof t=="number"?qt(e.s,e.e):(typeof e!="string"&&(e=yt(e)),typeof t!="string"&&(t=yt(t)),e==t?e:e+":"+t)}function bt(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,i=0,u=0,s=e.length;for(r=0;i<s&&!((u=e.charCodeAt(i)-64)<1||u>26);++i)r=26*r+u;for(t.s.c=--r,r=0;i<s&&!((u=e.charCodeAt(i)-48)<0||u>9);++i)r=10*r+u;if(t.s.r=--r,i===s||u!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++i,r=0;i!=s&&!((u=e.charCodeAt(i)-64)<1||u>26);++i)r=26*r+u;for(t.e.c=--r,r=0;i!=s&&!((u=e.charCodeAt(i)-48)<0||u>9);++i)r=10*r+u;return t.e.r=--r,t}function $x(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=qa(e.z,r?zr(t):t)}catch{}try{return e.w=qa((e.XF||{}).numFmtId||(r?14:0),r?zr(t):t)}catch{return""+t}}function ma(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?hf[e.v]||e.v:t==null?$x(e,e.v):$x(e,t))}function Bi(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",i={};return i[r]=e,{SheetNames:[r],Sheets:i}}function Yg(e,t,r){var i=r||{},u=e?Array.isArray(e):i.dense,s=e||(u?[]:{}),c=0,h=0;if(s&&i.origin!=null){if(typeof i.origin=="number")c=i.origin;else{var m=typeof i.origin=="string"?lr(i.origin):i.origin;c=m.r,h=m.c}s["!ref"]||(s["!ref"]="A1:A1")}var d={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(s["!ref"]){var x=bt(s["!ref"]);d.s.c=x.s.c,d.s.r=x.s.r,d.e.c=Math.max(d.e.c,x.e.c),d.e.r=Math.max(d.e.r,x.e.r),c==-1&&(d.e.r=c=x.e.r+1)}for(var E=0;E!=t.length;++E)if(t[E]){if(!Array.isArray(t[E]))throw new Error("aoa_to_sheet expects an array of arrays");for(var p=0;p!=t[E].length;++p)if(!(typeof t[E][p]>"u")){var g={v:t[E][p]},S=c+E,y=h+p;if(d.s.r>S&&(d.s.r=S),d.s.c>y&&(d.s.c=y),d.e.r<S&&(d.e.r=S),d.e.c<y&&(d.e.c=y),t[E][p]&&typeof t[E][p]=="object"&&!Array.isArray(t[E][p])&&!(t[E][p]instanceof Date))g=t[E][p];else if(Array.isArray(g.v)&&(g.f=t[E][p][1],g.v=g.v[0]),g.v===null)if(g.f)g.t="n";else if(i.nullError)g.t="e",g.v=0;else if(i.sheetStubs)g.t="z";else continue;else typeof g.v=="number"?g.t="n":typeof g.v=="boolean"?g.t="b":g.v instanceof Date?(g.z=i.dateNF||Pt[14],i.cellDates?(g.t="d",g.w=qa(g.z,zr(g.v))):(g.t="n",g.v=zr(g.v),g.w=qa(g.z,g.v))):g.t="s";if(u)s[S]||(s[S]=[]),s[S][y]&&s[S][y].z&&(g.z=s[S][y].z),s[S][y]=g;else{var w=yt({c:y,r:S});s[w]&&s[w].z&&(g.z=s[w].z),s[w]=g}}}return d.s.c<1e7&&(s["!ref"]=qt(d)),s}function Ul(e,t){return Yg(null,e,t)}function A3(e){return e.read_shift(4,"i")}function bn(e,t){return t||(t=oe(4)),t.write_shift(4,e),t}function Ar(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function ur(e,t){var r=!1;return t==null&&(r=!0,t=oe(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function R3(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function C3(e,t){return t||(t=oe(4)),t.write_shift(2,0),t.write_shift(2,0),t}function Qh(e,t){var r=e.l,i=e.read_shift(1),u=Ar(e),s=[],c={t:u,h:u};if(i&1){for(var h=e.read_shift(4),m=0;m!=h;++m)s.push(R3(e));c.r=s}else c.r=[{ich:0,ifnt:0}];return e.l=r+t,c}function O3(e,t){var r=!1;return t==null&&(r=!0,t=oe(15+4*e.t.length)),t.write_shift(1,0),ur(e.t,t),r?t.slice(0,t.l):t}var D3=Qh;function N3(e,t){var r=!1;return t==null&&(r=!0,t=oe(23+4*e.t.length)),t.write_shift(1,1),ur(e.t,t),t.write_shift(4,1),C3({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function En(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function ki(e,t){return t==null&&(t=oe(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function Ui(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function Pi(e,t){return t==null&&(t=oe(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var b3=Ar,Wg=ur;function Zh(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function Qs(e,t){var r=!1;return t==null&&(r=!0,t=oe(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var F3=Ar,gh=Zh,Jh=Qs;function qg(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,i=t[0]&2;e.l+=4;var u=i===0?$s([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):Ci(t,0)>>2;return r?u/100:u}function Kg(e,t){t==null&&(t=oe(4));var r=0,i=0,u=e*100;if(e==(e|0)&&e>=-536870912&&e<1<<29?i=1:u==(u|0)&&u>=-536870912&&u<1<<29&&(i=1,r=1),i)t.write_shift(-4,((r?u:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function $g(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function M3(e,t){return t||(t=oe(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var Hi=$g,Pl=M3;function Hl(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Fi(e,t){return(t||oe(8)).write_shift(8,e,"f")}function L3(e){var t={},r=e.read_shift(1),i=r>>>1,u=e.read_shift(1),s=e.read_shift(2,"i"),c=e.read_shift(1),h=e.read_shift(1),m=e.read_shift(1);switch(e.l++,i){case 0:t.auto=1;break;case 1:t.index=u;var d=G3[u];d&&(t.rgb=up(d));break;case 2:t.rgb=up([c,h,m]);break;case 3:t.theme=u;break}return s!=0&&(t.tint=s>0?s/32767:s/32768),t}function Zs(e,t){if(t||(t=oe(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var i=e.rgb||"FFFFFF";typeof i=="number"&&(i=("000000"+i.toString(16)).slice(-6)),t.write_shift(1,parseInt(i.slice(0,2),16)),t.write_shift(1,parseInt(i.slice(2,4),16)),t.write_shift(1,parseInt(i.slice(4,6),16)),t.write_shift(1,255)}return t}function B3(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function k3(e,t){t||(t=oe(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}var Qg=2,Kr=3,Ns=11,Js=19,bs=64,U3=65,P3=71,H3=4108,I3=4126,xr=80,Qx={1:{n:"CodePage",t:Qg},2:{n:"Category",t:xr},3:{n:"PresentationFormat",t:xr},4:{n:"ByteCount",t:Kr},5:{n:"LineCount",t:Kr},6:{n:"ParagraphCount",t:Kr},7:{n:"SlideCount",t:Kr},8:{n:"NoteCount",t:Kr},9:{n:"HiddenCount",t:Kr},10:{n:"MultimediaClipCount",t:Kr},11:{n:"ScaleCrop",t:Ns},12:{n:"HeadingPairs",t:H3},13:{n:"TitlesOfParts",t:I3},14:{n:"Manager",t:xr},15:{n:"Company",t:xr},16:{n:"LinksUpToDate",t:Ns},17:{n:"CharacterCount",t:Kr},19:{n:"SharedDoc",t:Ns},22:{n:"HyperlinksChanged",t:Ns},23:{n:"AppVersion",t:Kr,p:"version"},24:{n:"DigSig",t:U3},26:{n:"ContentType",t:xr},27:{n:"ContentStatus",t:xr},28:{n:"Language",t:xr},29:{n:"Version",t:xr},255:{},2147483648:{n:"Locale",t:Js},2147483651:{n:"Behavior",t:Js},1919054434:{}},Zx={1:{n:"CodePage",t:Qg},2:{n:"Title",t:xr},3:{n:"Subject",t:xr},4:{n:"Author",t:xr},5:{n:"Keywords",t:xr},6:{n:"Comments",t:xr},7:{n:"Template",t:xr},8:{n:"LastAuthor",t:xr},9:{n:"RevNumber",t:xr},10:{n:"EditTime",t:bs},11:{n:"LastPrinted",t:bs},12:{n:"CreatedDate",t:bs},13:{n:"ModifiedDate",t:bs},14:{n:"PageCount",t:Kr},15:{n:"WordCount",t:Kr},16:{n:"CharCount",t:Kr},17:{n:"Thumbnail",t:P3},18:{n:"Application",t:xr},19:{n:"DocSecurity",t:Kr},255:{},2147483648:{n:"Locale",t:Js},2147483651:{n:"Behavior",t:Js},1919054434:{}};function z3(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var j3=z3([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),G3=jr(j3),hf={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},V3={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Fs={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Zg(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Jg(e,t){var r=e3(V3),i=[],u;i[i.length]=Kt,i[i.length]=Ne("Types",null,{xmlns:ir.CT,"xmlns:xsd":ir.xsd,"xmlns:xsi":ir.xsi}),i=i.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(m){return Ne("Default",null,{Extension:m[0],ContentType:m[1]})}));var s=function(m){e[m]&&e[m].length>0&&(u=e[m][0],i[i.length]=Ne("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:Fs[m][t.bookType]||Fs[m].xlsx}))},c=function(m){(e[m]||[]).forEach(function(d){i[i.length]=Ne("Override",null,{PartName:(d[0]=="/"?"":"/")+d,ContentType:Fs[m][t.bookType]||Fs[m].xlsx})})},h=function(m){(e[m]||[]).forEach(function(d){i[i.length]=Ne("Override",null,{PartName:(d[0]=="/"?"":"/")+d,ContentType:r[m][0]})})};return s("workbooks"),c("sheets"),c("charts"),h("themes"),["strs","styles"].forEach(s),["coreprops","extprops","custprops"].forEach(h),h("vba"),h("comments"),h("threadedcomments"),h("drawings"),c("metadata"),h("people"),i.length>2&&(i[i.length]="</Types>",i[1]=i[1].replace("/>",">")),i.join("")}var vt={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function e2(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Nl(e){var t=[Kt,Ne("Relationships",null,{xmlns:ir.RELS})];return yr(e["!id"]).forEach(function(r){t[t.length]=Ne("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function gt(e,t,r,i,u,s){if(u||(u={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,u.Id="rId"+t,u.Type=i,u.Target=r,[vt.HLINK,vt.XPATH,vt.XMISS].indexOf(u.Type)>-1&&(u.TargetMode="External"),e["!id"][u.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][u.Id]=u,e[("/"+u.Target).replace("//","/")]=u,t}function X3(e){var t=[Kt];t.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
-`),t.push(`  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
-`);for(var r=0;r<e.length;++r)t.push('  <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+`"/>
-`);return t.push("</manifest:manifest>"),t.join("")}function Jx(e,t,r){return['  <rdf:Description rdf:about="'+e+`">
-`,'    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+`"/>
-`,`  </rdf:Description>
-`].join("")}function Y3(e,t){return['  <rdf:Description rdf:about="'+e+`">
-`,'    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/>
-`,`  </rdf:Description>
-`].join("")}function W3(e){var t=[Kt];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
-`);for(var r=0;r!=e.length;++r)t.push(Jx(e[r][0],e[r][1])),t.push(Y3("",e[r][0]));return t.push(Jx("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function t2(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Xs.version+"</meta:generator></office:meta></office:document-meta>"}var Ni=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Zo(e,t,r,i,u){u[e]!=null||t==null||t===""||(u[e]=t,t=Et(t),i[i.length]=r?Ne(e,t,r):gr(e,t))}function r2(e,t){var r=t||{},i=[Kt,Ne("cp:coreProperties",null,{"xmlns:cp":ir.CORE_PROPS,"xmlns:dc":ir.dc,"xmlns:dcterms":ir.dcterms,"xmlns:dcmitype":ir.dcmitype,"xmlns:xsi":ir.xsi})],u={};if(!e&&!r.Props)return i.join("");e&&(e.CreatedDate!=null&&Zo("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:ph(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},i,u),e.ModifiedDate!=null&&Zo("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:ph(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},i,u));for(var s=0;s!=Ni.length;++s){var c=Ni[s],h=r.Props&&r.Props[c[1]]!=null?r.Props[c[1]]:e?e[c[1]]:null;h===!0?h="1":h===!1?h="0":typeof h=="number"&&(h=String(h)),h!=null&&Zo(c[0],h,null,i,u)}return i.length>2&&(i[i.length]="</cp:coreProperties>",i[1]=i[1].replace("/>",">")),i.join("")}var bl=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],n2=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function a2(e){var t=[],r=Ne;return e||(e={}),e.Application="SheetJS",t[t.length]=Kt,t[t.length]=Ne("Properties",null,{xmlns:ir.EXT_PROPS,"xmlns:vt":ir.vt}),bl.forEach(function(i){if(e[i[1]]!==void 0){var u;switch(i[2]){case"string":u=Et(String(e[i[1]]));break;case"bool":u=e[i[1]]?"true":"false";break}u!==void 0&&(t[t.length]=r(i[0],u))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(i){return"<vt:lpstr>"+Et(i)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function i2(e){var t=[Kt,Ne("Properties",null,{xmlns:ir.CUST_PROPS,"xmlns:vt":ir.vt})];if(!e)return t.join("");var r=1;return yr(e).forEach(function(u){++r,t[t.length]=Ne("property",o3(e[u]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:Et(u)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var ep={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function q3(e,t){var r=[];return yr(ep).map(function(i){for(var u=0;u<Ni.length;++u)if(Ni[u][1]==i)return Ni[u];for(u=0;u<bl.length;++u)if(bl[u][1]==i)return bl[u];throw i}).forEach(function(i){if(e[i[1]]!=null){var u=t&&t.Props&&t.Props[i[1]]!=null?t.Props[i[1]]:e[i[1]];switch(i[2]){case"date":u=new Date(u).toISOString().replace(/\.\d*Z/,"Z");break}typeof u=="number"?u=String(u):u===!0||u===!1?u=u?"1":"0":u instanceof Date&&(u=new Date(u).toISOString().replace(/\.\d*Z/,"")),r.push(gr(ep[i[1]]||i[1],u))}}),Ne("DocumentProperties",r.join(""),{xmlns:Zr.o})}function K3(e,t){var r=["Worksheets","SheetNames"],i="CustomDocumentProperties",u=[];return e&&yr(e).forEach(function(s){if(Object.prototype.hasOwnProperty.call(e,s)){for(var c=0;c<Ni.length;++c)if(s==Ni[c][1])return;for(c=0;c<bl.length;++c)if(s==bl[c][1])return;for(c=0;c<r.length;++c)if(s==r[c])return;var h=e[s],m="string";typeof h=="number"?(m="float",h=String(h)):h===!0||h===!1?(m="boolean",h=h?"1":"0"):h=String(h),u.push(Ne(zx(s),h,{"dt:dt":m}))}}),t&&yr(t).forEach(function(s){if(Object.prototype.hasOwnProperty.call(t,s)&&!(e&&Object.prototype.hasOwnProperty.call(e,s))){var c=t[s],h="string";typeof c=="number"?(h="float",c=String(c)):c===!0||c===!1?(h="boolean",c=c?"1":"0"):c instanceof Date?(h="dateTime.tz",c=c.toISOString()):c=String(c),u.push(Ne(zx(s),c,{"dt:dt":h}))}}),"<"+i+' xmlns="'+Zr.o+'">'+u.join("")+"</"+i+">"}function $3(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,i=r%Math.pow(2,32),u=(r-i)/Math.pow(2,32);i*=1e7,u*=1e7;var s=i/Math.pow(2,32)|0;s>0&&(i=i%Math.pow(2,32),u+=s);var c=oe(8);return c.write_shift(4,i),c.write_shift(4,u),c}function tp(e,t){var r=oe(4),i=oe(4);switch(r.write_shift(4,e==80?31:e),e){case 3:i.write_shift(-4,t);break;case 5:i=oe(8),i.write_shift(8,t,"f");break;case 11:i.write_shift(4,t?1:0);break;case 64:i=$3(t);break;case 31:case 80:for(i=oe(4+2*(t.length+1)+(t.length%2?0:2)),i.write_shift(4,t.length+1),i.write_shift(0,t,"dbcs");i.l!=i.length;)i.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return pr([r,i])}var l2=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Q3(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function rp(e,t,r){var i=oe(8),u=[],s=[],c=8,h=0,m=oe(8),d=oe(8);if(m.write_shift(4,2),m.write_shift(4,1200),d.write_shift(4,1),s.push(m),u.push(d),c+=8+m.length,!t){d=oe(8),d.write_shift(4,0),u.unshift(d);var x=[oe(4)];for(x[0].write_shift(4,e.length),h=0;h<e.length;++h){var E=e[h][0];for(m=oe(8+2*(E.length+1)+(E.length%2?0:2)),m.write_shift(4,h+2),m.write_shift(4,E.length+1),m.write_shift(0,E,"dbcs");m.l!=m.length;)m.write_shift(1,0);x.push(m)}m=pr(x),s.unshift(m),c+=8+m.length}for(h=0;h<e.length;++h)if(!(t&&!t[e[h][0]])&&!(l2.indexOf(e[h][0])>-1||n2.indexOf(e[h][0])>-1)&&e[h][1]!=null){var p=e[h][1],g=0;if(t){g=+t[e[h][0]];var S=r[g];if(S.p=="version"&&typeof p=="string"){var y=p.split(".");p=(+y[0]<<16)+(+y[1]||0)}m=tp(S.t,p)}else{var w=Q3(p);w==-1&&(w=31,p=String(p)),m=tp(w,p)}s.push(m),d=oe(8),d.write_shift(4,t?g:2+h),u.push(d),c+=8+m.length}var D=8*(s.length+1);for(h=0;h<s.length;++h)u[h].write_shift(4,D),D+=s[h].length;return i.write_shift(4,c),i.write_shift(4,s.length),pr([i].concat(u).concat(s))}function np(e,t,r,i,u,s){var c=oe(u?68:48),h=[c];c.write_shift(2,65534),c.write_shift(2,0),c.write_shift(4,842412599),c.write_shift(16,Ct.utils.consts.HEADER_CLSID,"hex"),c.write_shift(4,u?2:1),c.write_shift(16,t,"hex"),c.write_shift(4,u?68:48);var m=rp(e,r,i);if(h.push(m),u){var d=rp(u,null,null);c.write_shift(16,s,"hex"),c.write_shift(4,68+m.length),h.push(d)}return pr(h)}function Z3(e,t){t||(t=oe(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function J3(e,t){return e.read_shift(t)===1}function Mr(e,t){return t||(t=oe(2)),t.write_shift(2,+!!e),t}function u2(e){return e.read_shift(2,"u")}function gn(e,t){return t||(t=oe(2)),t.write_shift(2,e),t}function f2(e,t,r){return r||(r=oe(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function s2(e,t,r){var i=e.read_shift(r&&r.biff>=12?2:1),u="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var s=e.read_shift(1);s&&(u="dbcs-cont")}else r.biff==12&&(u="wstr");r.biff>=2&&r.biff<=5&&(u="cpstr");var c=i?e.read_shift(i,u):"";return c}function eA(e){var t=e.t||"",r=oe(3);r.write_shift(2,t.length),r.write_shift(1,1);var i=oe(2*t.length);i.write_shift(2*t.length,t,"utf16le");var u=[r,i];return pr(u)}function tA(e,t,r){var i;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var u=e.read_shift(1);return u===0?i=e.read_shift(t,"sbcs-cont"):i=e.read_shift(t,"dbcs-cont"),i}function rA(e,t,r){var i=e.read_shift(r&&r.biff==2?1:2);return i===0?(e.l++,""):tA(e,i,r)}function nA(e,t,r){if(r.biff>5)return rA(e,t,r);var i=e.read_shift(1);return i===0?(e.l++,""):e.read_shift(i,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function c2(e,t,r){return r||(r=oe(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function ap(e,t){t||(t=oe(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function aA(e){var t=oe(512),r=0,i=e.Target;i.slice(0,7)=="file://"&&(i=i.slice(7));var u=i.indexOf("#"),s=u>-1?31:23;switch(i.charAt(0)){case"#":s=28;break;case".":s&=-3;break}t.write_shift(4,2),t.write_shift(4,s);var c=[8,6815827,6619237,4849780,83];for(r=0;r<c.length;++r)t.write_shift(4,c[r]);if(s==28)i=i.slice(1),ap(i,t);else if(s&2){for(c="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<c.length;++r)t.write_shift(1,parseInt(c[r],16));var h=u>-1?i.slice(0,u):i;for(t.write_shift(4,2*(h.length+1)),r=0;r<h.length;++r)t.write_shift(2,h.charCodeAt(r));t.write_shift(2,0),s&8&&ap(u>-1?i.slice(u+1):"",t)}else{for(c="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<c.length;++r)t.write_shift(1,parseInt(c[r],16));for(var m=0;i.slice(m*3,m*3+3)=="../"||i.slice(m*3,m*3+3)=="..\\";)++m;for(t.write_shift(2,m),t.write_shift(4,i.length-3*m+1),r=0;r<i.length-3*m;++r)t.write_shift(1,i.charCodeAt(r+3*m)&255);for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function Mi(e,t,r,i){return i||(i=oe(6)),i.write_shift(2,e),i.write_shift(2,t),i.write_shift(2,r||0),i}function iA(e,t,r){var i=r.biff>8?4:2,u=e.read_shift(i),s=e.read_shift(i,"i"),c=e.read_shift(i,"i");return[u,s,c]}function lA(e){var t=e.read_shift(2),r=e.read_shift(2),i=e.read_shift(2),u=e.read_shift(2);return{s:{c:i,r:t},e:{c:u,r}}}function o2(e,t){return t||(t=oe(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function ed(e,t,r){var i=1536,u=16;switch(r.bookType){case"biff8":break;case"biff5":i=1280,u=8;break;case"biff4":i=4,u=6;break;case"biff3":i=3,u=6;break;case"biff2":i=2,u=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var s=oe(u);return s.write_shift(2,i),s.write_shift(2,t),u>4&&s.write_shift(2,29282),u>6&&s.write_shift(2,1997),u>8&&(s.write_shift(2,49161),s.write_shift(2,1),s.write_shift(2,1798),s.write_shift(2,0)),s}function uA(e,t){var r=!t||t.biff==8,i=oe(r?112:54);for(i.write_shift(t.biff==8?2:1,7),r&&i.write_shift(1,0),i.write_shift(4,859007059),i.write_shift(4,5458548|(r?0:536870912));i.l<i.length;)i.write_shift(1,r?0:32);return i}function fA(e,t){var r=!t||t.biff>=8?2:1,i=oe(8+r*e.name.length);i.write_shift(4,e.pos),i.write_shift(1,e.hs||0),i.write_shift(1,e.dt),i.write_shift(1,e.name.length),t.biff>=8&&i.write_shift(1,1),i.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var u=i.slice(0,i.l);return u.l=i.l,u}function sA(e,t){var r=oe(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var i=[],u=0;u<e.length;++u)i[u]=eA(e[u]);var s=pr([r].concat(i));return s.parts=[r.length].concat(i.map(function(c){return c.length})),s}function cA(){var e=oe(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function oA(e){var t=oe(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function hA(e,t){var r=e.name||"Arial",i=t.biff==5,u=i?15+r.length:16+2*r.length,s=oe(u);return s.write_shift(2,(e.sz||12)*20),s.write_shift(4,0),s.write_shift(2,400),s.write_shift(4,0),s.write_shift(2,0),s.write_shift(1,r.length),i||s.write_shift(1,1),s.write_shift((i?1:2)*r.length,r,i?"sbcs":"utf16le"),s}function dA(e,t,r,i){var u=oe(10);return Mi(e,t,i,u),u.write_shift(4,r),u}function mA(e,t,r,i,u){var s=!u||u.biff==8,c=oe(8+ +s+(1+s)*r.length);return Mi(e,t,i,c),c.write_shift(2,r.length),s&&c.write_shift(1,1),c.write_shift((1+s)*r.length,r,s?"utf16le":"sbcs"),c}function vA(e,t,r,i){var u=r.biff==5;i||(i=oe(u?3+t.length:5+2*t.length)),i.write_shift(2,e),i.write_shift(u?1:2,t.length),u||i.write_shift(1,1),i.write_shift((u?1:2)*t.length,t,u?"sbcs":"utf16le");var s=i.length>i.l?i.slice(0,i.l):i;return s.l==null&&(s.l=s.length),s}function xA(e,t){var r=t.biff==8||!t.biff?4:2,i=oe(2*r+6);return i.write_shift(r,e.s.r),i.write_shift(r,e.e.r+1),i.write_shift(2,e.s.c),i.write_shift(2,e.e.c+1),i.write_shift(2,0),i}function ip(e,t,r,i){var u=r.biff==5;i||(i=oe(u?16:20)),i.write_shift(2,0),e.style?(i.write_shift(2,e.numFmtId||0),i.write_shift(2,65524)):(i.write_shift(2,e.numFmtId||0),i.write_shift(2,t<<4));var s=0;return e.numFmtId>0&&u&&(s|=1024),i.write_shift(4,s),i.write_shift(4,0),u||i.write_shift(4,0),i.write_shift(2,0),i}function pA(e){var t=oe(8);return t.write_shift(4,0),t.write_shift(2,0),t.write_shift(2,0),t}function gA(e,t,r,i,u,s){var c=oe(8);return Mi(e,t,i,c),f2(r,s,c),c}function EA(e,t,r,i){var u=oe(14);return Mi(e,t,i,u),Fi(r,u),u}function yA(e,t,r){if(r.biff<8)return _A(e,t,r);for(var i=[],u=e.l+t,s=e.read_shift(r.biff>8?4:2);s--!==0;)i.push(iA(e,r.biff>8?12:6,r));if(e.l!=u)throw new Error("Bad ExternSheet: "+e.l+" != "+u);return i}function _A(e,t,r){e[e.l+1]==3&&e[e.l]++;var i=s2(e,t,r);return i.charCodeAt(0)==3?i.slice(1):i}function TA(e){var t=oe(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)o2(e[r],t);return t}function SA(e){var t=oe(24),r=lr(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var i="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),u=0;u<16;++u)t.write_shift(1,parseInt(i[u],16));return pr([t,aA(e[1])])}function wA(e){var t=e[1].Tooltip,r=oe(10+2*(t.length+1));r.write_shift(2,2048);var i=lr(e[0]);r.write_shift(2,i.r),r.write_shift(2,i.r),r.write_shift(2,i.c),r.write_shift(2,i.c);for(var u=0;u<t.length;++u)r.write_shift(2,t.charCodeAt(u));return r.write_shift(2,0),r}function AA(e){return e||(e=oe(4)),e.write_shift(2,1),e.write_shift(2,1),e}function RA(e,t,r){if(!r.cellStyles)return jn(e,t);var i=r&&r.biff>=12?4:2,u=e.read_shift(i),s=e.read_shift(i),c=e.read_shift(i),h=e.read_shift(i),m=e.read_shift(2);i==2&&(e.l+=2);var d={s:u,e:s,w:c,ixfe:h,flags:m};return(r.biff>=5||!r.biff)&&(d.level=m>>8&7),d}function CA(e,t){var r=oe(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var i=0;return e.hidden&&(i|=1),r.write_shift(1,i),i=e.level||0,r.write_shift(1,i),r.write_shift(2,0),r}function OA(e){for(var t=oe(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}function DA(e,t,r){var i=oe(15);return mf(i,e,t),i.write_shift(8,r,"f"),i}function NA(e,t,r){var i=oe(9);return mf(i,e,t),i.write_shift(2,r),i}var bA=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=Gh({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(h,m){var d=[],x=bi(1);switch(m.type){case"base64":x=Dn(da(h));break;case"binary":x=Dn(h);break;case"buffer":case"array":x=h;break}Qr(x,0);var E=x.read_shift(1),p=!!(E&136),g=!1,S=!1;switch(E){case 2:break;case 3:break;case 48:g=!0,p=!0;break;case 49:g=!0,p=!0;break;case 131:break;case 139:break;case 140:S=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+E.toString(16))}var y=0,w=521;E==2&&(y=x.read_shift(2)),x.l+=3,E!=2&&(y=x.read_shift(4)),y>1048576&&(y=1e6),E!=2&&(w=x.read_shift(2));var D=x.read_shift(2),U=m.codepage||1252;E!=2&&(x.l+=16,x.read_shift(1),x[x.l]!==0&&(U=e[x[x.l]]),x.l+=1,x.l+=2),S&&(x.l+=36);for(var B=[],X={},M=Math.min(x.length,E==2?521:w-10-(g?264:0)),fe=S?32:11;x.l<M&&x[x.l]!=13;)switch(X={},X.name=Dx.utils.decode(U,x.slice(x.l,x.l+fe)).replace(/[\u0000\r\n].*$/g,""),x.l+=fe,X.type=String.fromCharCode(x.read_shift(1)),E!=2&&!S&&(X.offset=x.read_shift(4)),X.len=x.read_shift(1),E==2&&(X.offset=x.read_shift(2)),X.dec=x.read_shift(1),X.name.length&&B.push(X),E!=2&&(x.l+=S?13:14),X.type){case"B":(!g||X.len!=8)&&m.WTF&&console.log("Skipping "+X.name+":"+X.type);break;case"G":case"P":m.WTF&&console.log("Skipping "+X.name+":"+X.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+X.type)}if(x[x.l]!==13&&(x.l=w-1),x.read_shift(1)!==13)throw new Error("DBF Terminator not found "+x.l+" "+x[x.l]);x.l=w;var G=0,Z=0;for(d[0]=[],Z=0;Z!=B.length;++Z)d[0][Z]=B[Z].name;for(;y-- >0;){if(x[x.l]===42){x.l+=D;continue}for(++x.l,d[++G]=[],Z=0,Z=0;Z!=B.length;++Z){var I=x.slice(x.l,x.l+B[Z].len);x.l+=B[Z].len,Qr(I,0);var ee=Dx.utils.decode(U,I);switch(B[Z].type){case"C":ee.trim().length&&(d[G][Z]=ee.replace(/\s+$/,""));break;case"D":ee.length===8?d[G][Z]=new Date(+ee.slice(0,4),+ee.slice(4,6)-1,+ee.slice(6,8)):d[G][Z]=ee;break;case"F":d[G][Z]=parseFloat(ee.trim());break;case"+":case"I":d[G][Z]=S?I.read_shift(-4,"i")^2147483648:I.read_shift(4,"i");break;case"L":switch(ee.trim().toUpperCase()){case"Y":case"T":d[G][Z]=!0;break;case"N":case"F":d[G][Z]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+ee+"|")}break;case"M":if(!p)throw new Error("DBF Unexpected MEMO for type "+E.toString(16));d[G][Z]="##MEMO##"+(S?parseInt(ee.trim(),10):I.read_shift(4));break;case"N":ee=ee.replace(/\u0000/g,"").trim(),ee&&ee!="."&&(d[G][Z]=+ee||0);break;case"@":d[G][Z]=new Date(I.read_shift(-8,"f")-621356832e5);break;case"T":d[G][Z]=new Date((I.read_shift(4)-2440588)*864e5+I.read_shift(4));break;case"Y":d[G][Z]=I.read_shift(4,"i")/1e4+I.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":d[G][Z]=-I.read_shift(-8,"f");break;case"B":if(g&&B[Z].len==8){d[G][Z]=I.read_shift(8,"f");break}case"G":case"P":I.l+=B[Z].len;break;case"0":if(B[Z].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+B[Z].type)}}}if(E!=2&&x.l<x.length&&x[x.l++]!=26)throw new Error("DBF EOF Marker missing "+(x.l-1)+" of "+x.length+" "+x[x.l-1].toString(16));return m.sheetRows&&(d=d.slice(0,m.sheetRows)),m.DBF=B,d}function i(h,m){var d=m||{};d.dateNF||(d.dateNF="yyyymmdd");var x=Ul(r(h,d),d);return x["!cols"]=d.DBF.map(function(E){return{wch:E.len,DBF:E}}),delete d.DBF,x}function u(h,m){try{return Bi(i(h,m),m)}catch(d){if(m&&m.WTF)throw d}return{SheetNames:[],Sheets:{}}}var s={B:8,C:250,L:1,D:8,"?":0,"":0};function c(h,m){var d=m||{};if(+d.codepage>=0&&Qu(+d.codepage),d.type=="string")throw new Error("Cannot write DBF to JS string");var x=Ir(),E=ac(h,{header:1,raw:!0,cellDates:!0}),p=E[0],g=E.slice(1),S=h["!cols"]||[],y=0,w=0,D=0,U=1;for(y=0;y<p.length;++y){if(((S[y]||{}).DBF||{}).name){p[y]=S[y].DBF.name,++D;continue}if(p[y]!=null){if(++D,typeof p[y]=="number"&&(p[y]=p[y].toString(10)),typeof p[y]!="string")throw new Error("DBF Invalid column name "+p[y]+" |"+typeof p[y]+"|");if(p.indexOf(p[y])!==y){for(w=0;w<1024;++w)if(p.indexOf(p[y]+"_"+w)==-1){p[y]+="_"+w;break}}}}var B=bt(h["!ref"]),X=[],M=[],fe=[];for(y=0;y<=B.e.c-B.s.c;++y){var G="",Z="",I=0,ee=[];for(w=0;w<g.length;++w)g[w][y]!=null&&ee.push(g[w][y]);if(ee.length==0||p[y]==null){X[y]="?";continue}for(w=0;w<ee.length;++w){switch(typeof ee[w]){case"number":Z="B";break;case"string":Z="C";break;case"boolean":Z="L";break;case"object":Z=ee[w]instanceof Date?"D":"C";break;default:Z="C"}I=Math.max(I,String(ee[w]).length),G=G&&G!=Z?"C":Z}I>250&&(I=250),Z=((S[y]||{}).DBF||{}).type,Z=="C"&&S[y].DBF.len>I&&(I=S[y].DBF.len),G=="B"&&Z=="N"&&(G="N",fe[y]=S[y].DBF.dec,I=S[y].DBF.len),M[y]=G=="C"||Z=="N"?I:s[G]||0,U+=M[y],X[y]=G}var ce=x.next(32);for(ce.write_shift(4,318902576),ce.write_shift(4,g.length),ce.write_shift(2,296+32*D),ce.write_shift(2,U),y=0;y<4;++y)ce.write_shift(4,0);for(ce.write_shift(4,0|(+t[dg]||3)<<8),y=0,w=0;y<p.length;++y)if(p[y]!=null){var ve=x.next(32),Re=(p[y].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);ve.write_shift(1,Re,"sbcs"),ve.write_shift(1,X[y]=="?"?"C":X[y],"sbcs"),ve.write_shift(4,w),ve.write_shift(1,M[y]||s[X[y]]||0),ve.write_shift(1,fe[y]||0),ve.write_shift(1,2),ve.write_shift(4,0),ve.write_shift(1,0),ve.write_shift(4,0),ve.write_shift(4,0),w+=M[y]||s[X[y]]||0}var Ke=x.next(264);for(Ke.write_shift(4,13),y=0;y<65;++y)Ke.write_shift(4,0);for(y=0;y<g.length;++y){var Me=x.next(U);for(Me.write_shift(1,0),w=0;w<p.length;++w)if(p[w]!=null)switch(X[w]){case"L":Me.write_shift(1,g[y][w]==null?63:g[y][w]?84:70);break;case"B":Me.write_shift(8,g[y][w]||0,"f");break;case"N":var ye="0";for(typeof g[y][w]=="number"&&(ye=g[y][w].toFixed(fe[w]||0)),D=0;D<M[w]-ye.length;++D)Me.write_shift(1,32);Me.write_shift(1,ye,"sbcs");break;case"D":g[y][w]?(Me.write_shift(4,("0000"+g[y][w].getFullYear()).slice(-4),"sbcs"),Me.write_shift(2,("00"+(g[y][w].getMonth()+1)).slice(-2),"sbcs"),Me.write_shift(2,("00"+g[y][w].getDate()).slice(-2),"sbcs")):Me.write_shift(8,"00000000","sbcs");break;case"C":var Be=String(g[y][w]!=null?g[y][w]:"").slice(0,M[w]);for(Me.write_shift(1,Be,"sbcs"),D=0;D<M[w]-Be.length;++D)Me.write_shift(1,32);break}}return x.next(1).write_shift(1,26),x.end()}return{to_workbook:u,to_sheet:i,from_sheet:c}}(),FA=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1BN("+yr(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(p,g){var S=e[g];return typeof S=="number"?Ox(S):S},i=function(p,g,S){var y=g.charCodeAt(0)-32<<4|S.charCodeAt(0)-48;return y==59?p:Ox(y)};e["|"]=254;function u(p,g){switch(g.type){case"base64":return s(da(p),g);case"binary":return s(p,g);case"buffer":return s(xt&&Buffer.isBuffer(p)?p.toString("binary"):sf(p),g);case"array":return s(gc(p),g)}throw new Error("Unrecognized type "+g.type)}function s(p,g){var S=p.split(/[\n\r]+/),y=-1,w=-1,D=0,U=0,B=[],X=[],M=null,fe={},G=[],Z=[],I=[],ee=0,ce;for(+g.codepage>=0&&Qu(+g.codepage);D!==S.length;++D){ee=0;var ve=S[D].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(t,r),Re=ve.replace(/;;/g,"\0").split(";").map(function(H){return H.replace(/\u0000/g,";")}),Ke=Re[0],Me;if(ve.length>0)switch(Ke){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":Re[1].charAt(0)=="P"&&X.push(ve.slice(3).replace(/;;/g,";"));break;case"C":var ye=!1,Be=!1,De=!1,je=!1,z=-1,me=-1;for(U=1;U<Re.length;++U)switch(Re[U].charAt(0)){case"A":break;case"X":w=parseInt(Re[U].slice(1))-1,Be=!0;break;case"Y":for(y=parseInt(Re[U].slice(1))-1,Be||(w=0),ce=B.length;ce<=y;++ce)B[ce]=[];break;case"K":Me=Re[U].slice(1),Me.charAt(0)==='"'?Me=Me.slice(1,Me.length-1):Me==="TRUE"?Me=!0:Me==="FALSE"?Me=!1:isNaN(ca(Me))?isNaN(Ju(Me).getDate())||(Me=Lr(Me)):(Me=ca(Me),M!==null&&Ag(M)&&(Me=Dg(Me))),ye=!0;break;case"E":je=!0;var L=N8(Re[U].slice(1),{r:y,c:w});B[y][w]=[B[y][w],L];break;case"S":De=!0,B[y][w]=[B[y][w],"S5S"];break;case"G":break;case"R":z=parseInt(Re[U].slice(1))-1;break;case"C":me=parseInt(Re[U].slice(1))-1;break;default:if(g&&g.WTF)throw new Error("SYLK bad record "+ve)}if(ye&&(B[y][w]&&B[y][w].length==2?B[y][w][0]=Me:B[y][w]=Me,M=null),De){if(je)throw new Error("SYLK shared formula cannot have own formula");var j=z>-1&&B[z][me];if(!j||!j[1])throw new Error("SYLK shared formula cannot find base");B[y][w][1]=b8(j[1],{r:y-z,c:w-me})}break;case"F":var k=0;for(U=1;U<Re.length;++U)switch(Re[U].charAt(0)){case"X":w=parseInt(Re[U].slice(1))-1,++k;break;case"Y":for(y=parseInt(Re[U].slice(1))-1,ce=B.length;ce<=y;++ce)B[ce]=[];break;case"M":ee=parseInt(Re[U].slice(1))/20;break;case"F":break;case"G":break;case"P":M=X[parseInt(Re[U].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(I=Re[U].slice(1).split(" "),ce=parseInt(I[0],10);ce<=parseInt(I[1],10);++ce)ee=parseInt(I[2],10),Z[ce-1]=ee===0?{hidden:!0}:{wch:ee},td(Z[ce-1]);break;case"C":w=parseInt(Re[U].slice(1))-1,Z[w]||(Z[w]={});break;case"R":y=parseInt(Re[U].slice(1))-1,G[y]||(G[y]={}),ee>0?(G[y].hpt=ee,G[y].hpx=x2(ee)):ee===0&&(G[y].hidden=!0);break;default:if(g&&g.WTF)throw new Error("SYLK bad record "+ve)}k<1&&(M=null);break;default:if(g&&g.WTF)throw new Error("SYLK bad record "+ve)}}return G.length>0&&(fe["!rows"]=G),Z.length>0&&(fe["!cols"]=Z),g&&g.sheetRows&&(B=B.slice(0,g.sheetRows)),[B,fe]}function c(p,g){var S=u(p,g),y=S[0],w=S[1],D=Ul(y,g);return yr(w).forEach(function(U){D[U]=w[U]}),D}function h(p,g){return Bi(c(p,g),g)}function m(p,g,S,y){var w="C;Y"+(S+1)+";X"+(y+1)+";K";switch(p.t){case"n":w+=p.v||0,p.f&&!p.F&&(w+=";E"+nd(p.f,{r:S,c:y}));break;case"b":w+=p.v?"TRUE":"FALSE";break;case"e":w+=p.w||p.v;break;case"d":w+='"'+(p.w||p.v)+'"';break;case"s":w+='"'+p.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return w}function d(p,g){g.forEach(function(S,y){var w="F;W"+(y+1)+" "+(y+1)+" ";S.hidden?w+="0":(typeof S.width=="number"&&!S.wpx&&(S.wpx=ec(S.width)),typeof S.wpx=="number"&&!S.wch&&(S.wch=tc(S.wpx)),typeof S.wch=="number"&&(w+=Math.round(S.wch))),w.charAt(w.length-1)!=" "&&p.push(w)})}function x(p,g){g.forEach(function(S,y){var w="F;";S.hidden?w+="M0;":S.hpt?w+="M"+20*S.hpt+";":S.hpx&&(w+="M"+20*rc(S.hpx)+";"),w.length>2&&p.push(w+"R"+(y+1))})}function E(p,g){var S=["ID;PWXL;N;E"],y=[],w=bt(p["!ref"]),D,U=Array.isArray(p),B=`\r
-`;S.push("P;PGeneral"),S.push("F;P0;DG0G8;M255"),p["!cols"]&&d(S,p["!cols"]),p["!rows"]&&x(S,p["!rows"]),S.push("B;Y"+(w.e.r-w.s.r+1)+";X"+(w.e.c-w.s.c+1)+";D"+[w.s.c,w.s.r,w.e.c,w.e.r].join(" "));for(var X=w.s.r;X<=w.e.r;++X)for(var M=w.s.c;M<=w.e.c;++M){var fe=yt({r:X,c:M});D=U?(p[X]||[])[M]:p[fe],!(!D||D.v==null&&(!D.f||D.F))&&y.push(m(D,p,X,M))}return S.join(B)+B+y.join(B)+B+"E"+B}return{to_workbook:h,to_sheet:c,from_sheet:E}}(),MA=function(){function e(s,c){switch(c.type){case"base64":return t(da(s),c);case"binary":return t(s,c);case"buffer":return t(xt&&Buffer.isBuffer(s)?s.toString("binary"):sf(s),c);case"array":return t(gc(s),c)}throw new Error("Unrecognized type "+c.type)}function t(s,c){for(var h=s.split(`
-`),m=-1,d=-1,x=0,E=[];x!==h.length;++x){if(h[x].trim()==="BOT"){E[++m]=[],d=0;continue}if(!(m<0)){var p=h[x].trim().split(","),g=p[0],S=p[1];++x;for(var y=h[x]||"";(y.match(/["]/g)||[]).length&1&&x<h.length-1;)y+=`
-`+h[++x];switch(y=y.trim(),+g){case-1:if(y==="BOT"){E[++m]=[],d=0;continue}else if(y!=="EOD")throw new Error("Unrecognized DIF special command "+y);break;case 0:y==="TRUE"?E[m][d]=!0:y==="FALSE"?E[m][d]=!1:isNaN(ca(S))?isNaN(Ju(S).getDate())?E[m][d]=S:E[m][d]=Lr(S):E[m][d]=ca(S),++d;break;case 1:y=y.slice(1,y.length-1),y=y.replace(/""/g,'"'),y&&y.match(/^=".*"$/)&&(y=y.slice(2,-1)),E[m][d++]=y!==""?y:null;break}if(y==="EOD")break}}return c&&c.sheetRows&&(E=E.slice(0,c.sheetRows)),E}function r(s,c){return Ul(e(s,c),c)}function i(s,c){return Bi(r(s,c),c)}var u=function(){var s=function(m,d,x,E,p){m.push(d),m.push(x+","+E),m.push('"'+p.replace(/"/g,'""')+'"')},c=function(m,d,x,E){m.push(d+","+x),m.push(d==1?'"'+E.replace(/"/g,'""')+'"':E)};return function(m){var d=[],x=bt(m["!ref"]),E,p=Array.isArray(m);s(d,"TABLE",0,1,"sheetjs"),s(d,"VECTORS",0,x.e.r-x.s.r+1,""),s(d,"TUPLES",0,x.e.c-x.s.c+1,""),s(d,"DATA",0,0,"");for(var g=x.s.r;g<=x.e.r;++g){c(d,-1,0,"BOT");for(var S=x.s.c;S<=x.e.c;++S){var y=yt({r:g,c:S});if(E=p?(m[g]||[])[S]:m[y],!E){c(d,1,0,"");continue}switch(E.t){case"n":var w=E.w;!w&&E.v!=null&&(w=E.v),w==null?E.f&&!E.F?c(d,1,0,"="+E.f):c(d,1,0,""):c(d,0,w,"V");break;case"b":c(d,0,E.v?1:0,E.v?"TRUE":"FALSE");break;case"s":c(d,1,0,isNaN(E.v)?E.v:'="'+E.v+'"');break;case"d":E.w||(E.w=qa(E.z||Pt[14],zr(Lr(E.v)))),c(d,0,E.w,"V");break;default:c(d,1,0,"")}}}c(d,-1,0,"EOD");var D=`\r
-`,U=d.join(D);return U}}();return{to_workbook:i,to_sheet:r,from_sheet:u}}(),h2=function(){function e(E){return E.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
-`)}function t(E){return E.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(E,p){for(var g=E.split(`
-`),S=-1,y=-1,w=0,D=[];w!==g.length;++w){var U=g[w].trim().split(":");if(U[0]==="cell"){var B=lr(U[1]);if(D.length<=B.r)for(S=D.length;S<=B.r;++S)D[S]||(D[S]=[]);switch(S=B.r,y=B.c,U[2]){case"t":D[S][y]=e(U[3]);break;case"v":D[S][y]=+U[3];break;case"vtf":var X=U[U.length-1];case"vtc":switch(U[3]){case"nl":D[S][y]=!!+U[4];break;default:D[S][y]=+U[4];break}U[2]=="vtf"&&(D[S][y]=[D[S][y],X])}}}return p&&p.sheetRows&&(D=D.slice(0,p.sheetRows)),D}function i(E,p){return Ul(r(E,p),p)}function u(E,p){return Bi(i(E,p),p)}var s=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
-`),c=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
-`)+`
-`,h=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
-`),m="--SocialCalcSpreadsheetControlSave--";function d(E){if(!E||!E["!ref"])return"";for(var p=[],g=[],S,y="",w=tn(E["!ref"]),D=Array.isArray(E),U=w.s.r;U<=w.e.r;++U)for(var B=w.s.c;B<=w.e.c;++B)if(y=yt({r:U,c:B}),S=D?(E[U]||[])[B]:E[y],!(!S||S.v==null||S.t==="z")){switch(g=["cell",y,"t"],S.t){case"s":case"str":g.push(t(S.v));break;case"n":S.f?(g[2]="vtf",g[3]="n",g[4]=S.v,g[5]=t(S.f)):(g[2]="v",g[3]=S.v);break;case"b":g[2]="vt"+(S.f?"f":"c"),g[3]="nl",g[4]=S.v?"1":"0",g[5]=t(S.f||(S.v?"TRUE":"FALSE"));break;case"d":var X=zr(Lr(S.v));g[2]="vtc",g[3]="nd",g[4]=""+X,g[5]=S.w||qa(S.z||Pt[14],X);break;case"e":continue}p.push(g.join(":"))}return p.push("sheet:c:"+(w.e.c-w.s.c+1)+":r:"+(w.e.r-w.s.r+1)+":tvf:1"),p.push("valueformat:1:text-wiki"),p.join(`
-`)}function x(E){return[s,c,h,c,d(E),m].join(`
-`)}return{to_workbook:u,to_sheet:i,from_sheet:x}}(),LA=function(){function e(x,E,p,g,S){S.raw?E[p][g]=x:x===""||(x==="TRUE"?E[p][g]=!0:x==="FALSE"?E[p][g]=!1:isNaN(ca(x))?isNaN(Ju(x).getDate())?E[p][g]=x:E[p][g]=Lr(x):E[p][g]=ca(x))}function t(x,E){var p=E||{},g=[];if(!x||x.length===0)return g;for(var S=x.split(/[\r\n]/),y=S.length-1;y>=0&&S[y].length===0;)--y;for(var w=10,D=0,U=0;U<=y;++U)D=S[U].indexOf(" "),D==-1?D=S[U].length:D++,w=Math.max(w,D);for(U=0;U<=y;++U){g[U]=[];var B=0;for(e(S[U].slice(0,w).trim(),g,U,B,p),B=1;B<=(S[U].length-w)/10+1;++B)e(S[U].slice(w+(B-1)*10,w+B*10).trim(),g,U,B,p)}return p.sheetRows&&(g=g.slice(0,p.sheetRows)),g}var r={44:",",9:"	",59:";",124:"|"},i={44:3,9:2,59:1,124:0};function u(x){for(var E={},p=!1,g=0,S=0;g<x.length;++g)(S=x.charCodeAt(g))==34?p=!p:!p&&S in r&&(E[S]=(E[S]||0)+1);S=[];for(g in E)Object.prototype.hasOwnProperty.call(E,g)&&S.push([E[g],g]);if(!S.length){E=i;for(g in E)Object.prototype.hasOwnProperty.call(E,g)&&S.push([E[g],g])}return S.sort(function(y,w){return y[0]-w[0]||i[y[1]]-i[w[1]]}),r[S.pop()[1]]||44}function s(x,E){var p=E||{},g="",S=p.dense?[]:{},y={s:{c:0,r:0},e:{c:0,r:0}};x.slice(0,4)=="sep="?x.charCodeAt(5)==13&&x.charCodeAt(6)==10?(g=x.charAt(4),x=x.slice(7)):x.charCodeAt(5)==13||x.charCodeAt(5)==10?(g=x.charAt(4),x=x.slice(6)):g=u(x.slice(0,1024)):p.FS?g=p.FS:g=u(x.slice(0,1024));var w=0,D=0,U=0,B=0,X=0,M=g.charCodeAt(0),fe=!1,G=0,Z=x.charCodeAt(0);x=x.replace(/\r\n/mg,`
-`);var I=p.dateNF!=null?$w(p.dateNF):null;function ee(){var ce=x.slice(B,X),ve={};if(ce.charAt(0)=='"'&&ce.charAt(ce.length-1)=='"'&&(ce=ce.slice(1,-1).replace(/""/g,'"')),ce.length===0)ve.t="z";else if(p.raw)ve.t="s",ve.v=ce;else if(ce.trim().length===0)ve.t="s",ve.v=ce;else if(ce.charCodeAt(0)==61)ce.charCodeAt(1)==34&&ce.charCodeAt(ce.length-1)==34?(ve.t="s",ve.v=ce.slice(2,-1).replace(/""/g,'"')):F8(ce)?(ve.t="n",ve.f=ce.slice(1)):(ve.t="s",ve.v=ce);else if(ce=="TRUE")ve.t="b",ve.v=!0;else if(ce=="FALSE")ve.t="b",ve.v=!1;else if(!isNaN(U=ca(ce)))ve.t="n",p.cellText!==!1&&(ve.w=ce),ve.v=U;else if(!isNaN(Ju(ce).getDate())||I&&ce.match(I)){ve.z=p.dateNF||Pt[14];var Re=0;I&&ce.match(I)&&(ce=Qw(ce,p.dateNF,ce.match(I)||[]),Re=1),p.cellDates?(ve.t="d",ve.v=Lr(ce,Re)):(ve.t="n",ve.v=zr(Lr(ce,Re))),p.cellText!==!1&&(ve.w=qa(ve.z,ve.v instanceof Date?zr(ve.v):ve.v)),p.cellNF||delete ve.z}else ve.t="s",ve.v=ce;if(ve.t=="z"||(p.dense?(S[w]||(S[w]=[]),S[w][D]=ve):S[yt({c:D,r:w})]=ve),B=X+1,Z=x.charCodeAt(B),y.e.c<D&&(y.e.c=D),y.e.r<w&&(y.e.r=w),G==M)++D;else if(D=0,++w,p.sheetRows&&p.sheetRows<=w)return!0}e:for(;X<x.length;++X)switch(G=x.charCodeAt(X)){case 34:Z===34&&(fe=!fe);break;case M:case 10:case 13:if(!fe&&ee())break e;break}return X-B>0&&ee(),S["!ref"]=qt(y),S}function c(x,E){return!(E&&E.PRN)||E.FS||x.slice(0,4)=="sep="||x.indexOf("	")>=0||x.indexOf(",")>=0||x.indexOf(";")>=0?s(x,E):Ul(t(x,E),E)}function h(x,E){var p="",g=E.type=="string"?[0,0,0,0]:YO(x,E);switch(E.type){case"base64":p=da(x);break;case"binary":p=x;break;case"buffer":E.codepage==65001?p=x.toString("utf8"):(E.codepage,p=xt&&Buffer.isBuffer(x)?x.toString("binary"):sf(x));break;case"array":p=gc(x);break;case"string":p=x;break;default:throw new Error("Unrecognized type "+E.type)}return g[0]==239&&g[1]==187&&g[2]==191?p=Vu(p.slice(3)):E.type!="string"&&E.type!="buffer"&&E.codepage==65001?p=Vu(p):E.type=="binary",p.slice(0,19)=="socialcalc:version:"?h2.to_sheet(E.type=="string"?p:Vu(p),E):c(p,E)}function m(x,E){return Bi(h(x,E),E)}function d(x){for(var E=[],p=bt(x["!ref"]),g,S=Array.isArray(x),y=p.s.r;y<=p.e.r;++y){for(var w=[],D=p.s.c;D<=p.e.c;++D){var U=yt({r:y,c:D});if(g=S?(x[y]||[])[D]:x[U],!g||g.v==null){w.push("          ");continue}for(var B=(g.w||(ma(g),g.w)||"").slice(0,10);B.length<10;)B+=" ";w.push(B+(D===0?" ":""))}E.push(w.join(""))}return E.join(`
-`)}return{to_workbook:m,to_sheet:h,from_sheet:d}}(),lp=function(){function e(L,j,k){if(L){Qr(L,L.l||0);for(var H=k.Enum||z;L.l<L.length;){var ie=L.read_shift(2),Fe=H[ie]||H[65535],Ce=L.read_shift(2),_e=L.l+Ce,xe=Fe.f&&Fe.f(L,Ce,k);if(L.l=_e,j(xe,Fe,ie))return}}}function t(L,j){switch(j.type){case"base64":return r(Dn(da(L)),j);case"binary":return r(Dn(L),j);case"buffer":case"array":return r(L,j)}throw"Unsupported type "+j.type}function r(L,j){if(!L)return L;var k=j||{},H=k.dense?[]:{},ie="Sheet1",Fe="",Ce=0,_e={},xe=[],Je=[],$e={s:{r:0,c:0},e:{r:0,c:0}},lt=k.sheetRows||0;if(L[2]==0&&(L[3]==8||L[3]==9)&&L.length>=16&&L[14]==5&&L[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(L[2]==2)k.Enum=z,e(L,function(ke,It,sr){switch(sr){case 0:k.vers=ke,ke>=4096&&(k.qpro=!0);break;case 6:$e=ke;break;case 204:ke&&(Fe=ke);break;case 222:Fe=ke;break;case 15:case 51:k.qpro||(ke[1].v=ke[1].v.slice(1));case 13:case 14:case 16:sr==14&&(ke[2]&112)==112&&(ke[2]&15)>1&&(ke[2]&15)<15&&(ke[1].z=k.dateNF||Pt[14],k.cellDates&&(ke[1].t="d",ke[1].v=Dg(ke[1].v))),k.qpro&&ke[3]>Ce&&(H["!ref"]=qt($e),_e[ie]=H,xe.push(ie),H=k.dense?[]:{},$e={s:{r:0,c:0},e:{r:0,c:0}},Ce=ke[3],ie=Fe||"Sheet"+(Ce+1),Fe="");var Cr=k.dense?(H[ke[0].r]||[])[ke[0].c]:H[yt(ke[0])];if(Cr){Cr.t=ke[1].t,Cr.v=ke[1].v,ke[1].z!=null&&(Cr.z=ke[1].z),ke[1].f!=null&&(Cr.f=ke[1].f);break}k.dense?(H[ke[0].r]||(H[ke[0].r]=[]),H[ke[0].r][ke[0].c]=ke[1]):H[yt(ke[0])]=ke[1];break}},k);else if(L[2]==26||L[2]==14)k.Enum=me,L[2]==14&&(k.qpro=!0,L.l=0),e(L,function(ke,It,sr){switch(sr){case 204:ie=ke;break;case 22:ke[1].v=ke[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ke[3]>Ce&&(H["!ref"]=qt($e),_e[ie]=H,xe.push(ie),H=k.dense?[]:{},$e={s:{r:0,c:0},e:{r:0,c:0}},Ce=ke[3],ie="Sheet"+(Ce+1)),lt>0&&ke[0].r>=lt)break;k.dense?(H[ke[0].r]||(H[ke[0].r]=[]),H[ke[0].r][ke[0].c]=ke[1]):H[yt(ke[0])]=ke[1],$e.e.c<ke[0].c&&($e.e.c=ke[0].c),$e.e.r<ke[0].r&&($e.e.r=ke[0].r);break;case 27:ke[14e3]&&(Je[ke[14e3][0]]=ke[14e3][1]);break;case 1537:Je[ke[0]]=ke[1],ke[0]==Ce&&(ie=ke[1]);break}},k);else throw new Error("Unrecognized LOTUS BOF "+L[2]);if(H["!ref"]=qt($e),_e[Fe||ie]=H,xe.push(Fe||ie),!Je.length)return{SheetNames:xe,Sheets:_e};for(var et={},rt=[],ft=0;ft<Je.length;++ft)_e[xe[ft]]?(rt.push(Je[ft]||xe[ft]),et[Je[ft]]=_e[Je[ft]]||_e[xe[ft]]):(rt.push(Je[ft]),et[Je[ft]]={"!ref":"A1"});return{SheetNames:rt,Sheets:et}}function i(L,j){var k=j||{};if(+k.codepage>=0&&Qu(+k.codepage),k.type=="string")throw new Error("Cannot write WK1 to JS string");var H=Ir(),ie=bt(L["!ref"]),Fe=Array.isArray(L),Ce=[];be(H,0,s(1030)),be(H,6,m(ie));for(var _e=Math.min(ie.e.r,8191),xe=ie.s.r;xe<=_e;++xe)for(var Je=Er(xe),$e=ie.s.c;$e<=ie.e.c;++$e){xe===ie.s.r&&(Ce[$e]=wr($e));var lt=Ce[$e]+Je,et=Fe?(L[xe]||[])[$e]:L[lt];if(!(!et||et.t=="z"))if(et.t=="n")(et.v|0)==et.v&&et.v>=-32768&&et.v<=32767?be(H,13,g(xe,$e,et.v)):be(H,14,y(xe,$e,et.v));else{var rt=ma(et);be(H,15,E(xe,$e,rt.slice(0,239)))}}return be(H,1),H.end()}function u(L,j){var k=j||{};if(+k.codepage>=0&&Qu(+k.codepage),k.type=="string")throw new Error("Cannot write WK3 to JS string");var H=Ir();be(H,0,c(L));for(var ie=0,Fe=0;ie<L.SheetNames.length;++ie)(L.Sheets[L.SheetNames[ie]]||{})["!ref"]&&be(H,27,je(L.SheetNames[ie],Fe++));var Ce=0;for(ie=0;ie<L.SheetNames.length;++ie){var _e=L.Sheets[L.SheetNames[ie]];if(!(!_e||!_e["!ref"])){for(var xe=bt(_e["!ref"]),Je=Array.isArray(_e),$e=[],lt=Math.min(xe.e.r,8191),et=xe.s.r;et<=lt;++et)for(var rt=Er(et),ft=xe.s.c;ft<=xe.e.c;++ft){et===xe.s.r&&($e[ft]=wr(ft));var ke=$e[ft]+rt,It=Je?(_e[et]||[])[ft]:_e[ke];if(!(!It||It.t=="z"))if(It.t=="n")be(H,23,ee(et,ft,Ce,It.v));else{var sr=ma(It);be(H,22,G(et,ft,Ce,sr.slice(0,239)))}}++Ce}}return be(H,1),H.end()}function s(L){var j=oe(2);return j.write_shift(2,L),j}function c(L){var j=oe(26);j.write_shift(2,4096),j.write_shift(2,4),j.write_shift(4,0);for(var k=0,H=0,ie=0,Fe=0;Fe<L.SheetNames.length;++Fe){var Ce=L.SheetNames[Fe],_e=L.Sheets[Ce];if(!(!_e||!_e["!ref"])){++ie;var xe=tn(_e["!ref"]);k<xe.e.r&&(k=xe.e.r),H<xe.e.c&&(H=xe.e.c)}}return k>8191&&(k=8191),j.write_shift(2,k),j.write_shift(1,ie),j.write_shift(1,H),j.write_shift(2,0),j.write_shift(2,0),j.write_shift(1,1),j.write_shift(1,2),j.write_shift(4,0),j.write_shift(4,0),j}function h(L,j,k){var H={s:{c:0,r:0},e:{c:0,r:0}};return j==8&&k.qpro?(H.s.c=L.read_shift(1),L.l++,H.s.r=L.read_shift(2),H.e.c=L.read_shift(1),L.l++,H.e.r=L.read_shift(2),H):(H.s.c=L.read_shift(2),H.s.r=L.read_shift(2),j==12&&k.qpro&&(L.l+=2),H.e.c=L.read_shift(2),H.e.r=L.read_shift(2),j==12&&k.qpro&&(L.l+=2),H.s.c==65535&&(H.s.c=H.e.c=H.s.r=H.e.r=0),H)}function m(L){var j=oe(8);return j.write_shift(2,L.s.c),j.write_shift(2,L.s.r),j.write_shift(2,L.e.c),j.write_shift(2,L.e.r),j}function d(L,j,k){var H=[{c:0,r:0},{t:"n",v:0},0,0];return k.qpro&&k.vers!=20768?(H[0].c=L.read_shift(1),H[3]=L.read_shift(1),H[0].r=L.read_shift(2),L.l+=2):(H[2]=L.read_shift(1),H[0].c=L.read_shift(2),H[0].r=L.read_shift(2)),H}function x(L,j,k){var H=L.l+j,ie=d(L,j,k);if(ie[1].t="s",k.vers==20768){L.l++;var Fe=L.read_shift(1);return ie[1].v=L.read_shift(Fe,"utf8"),ie}return k.qpro&&L.l++,ie[1].v=L.read_shift(H-L.l,"cstr"),ie}function E(L,j,k){var H=oe(7+k.length);H.write_shift(1,255),H.write_shift(2,j),H.write_shift(2,L),H.write_shift(1,39);for(var ie=0;ie<H.length;++ie){var Fe=k.charCodeAt(ie);H.write_shift(1,Fe>=128?95:Fe)}return H.write_shift(1,0),H}function p(L,j,k){var H=d(L,j,k);return H[1].v=L.read_shift(2,"i"),H}function g(L,j,k){var H=oe(7);return H.write_shift(1,255),H.write_shift(2,j),H.write_shift(2,L),H.write_shift(2,k,"i"),H}function S(L,j,k){var H=d(L,j,k);return H[1].v=L.read_shift(8,"f"),H}function y(L,j,k){var H=oe(13);return H.write_shift(1,255),H.write_shift(2,j),H.write_shift(2,L),H.write_shift(8,k,"f"),H}function w(L,j,k){var H=L.l+j,ie=d(L,j,k);if(ie[1].v=L.read_shift(8,"f"),k.qpro)L.l=H;else{var Fe=L.read_shift(2);X(L.slice(L.l,L.l+Fe),ie),L.l+=Fe}return ie}function D(L,j,k){var H=j&32768;return j&=-32769,j=(H?L:0)+(j>=8192?j-16384:j),(H?"":"$")+(k?wr(j):Er(j))}var U={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},B=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function X(L,j){Qr(L,0);for(var k=[],H=0,ie="",Fe="",Ce="",_e="";L.l<L.length;){var xe=L[L.l++];switch(xe){case 0:k.push(L.read_shift(8,"f"));break;case 1:Fe=D(j[0].c,L.read_shift(2),!0),ie=D(j[0].r,L.read_shift(2),!1),k.push(Fe+ie);break;case 2:{var Je=D(j[0].c,L.read_shift(2),!0),$e=D(j[0].r,L.read_shift(2),!1);Fe=D(j[0].c,L.read_shift(2),!0),ie=D(j[0].r,L.read_shift(2),!1),k.push(Je+$e+":"+Fe+ie)}break;case 3:if(L.l<L.length){console.error("WK1 premature formula end");return}break;case 4:k.push("("+k.pop()+")");break;case 5:k.push(L.read_shift(2));break;case 6:{for(var lt="";xe=L[L.l++];)lt+=String.fromCharCode(xe);k.push('"'+lt.replace(/"/g,'""')+'"')}break;case 8:k.push("-"+k.pop());break;case 23:k.push("+"+k.pop());break;case 22:k.push("NOT("+k.pop()+")");break;case 20:case 21:_e=k.pop(),Ce=k.pop(),k.push(["AND","OR"][xe-20]+"("+Ce+","+_e+")");break;default:if(xe<32&&B[xe])_e=k.pop(),Ce=k.pop(),k.push(Ce+B[xe]+_e);else if(U[xe]){if(H=U[xe][1],H==69&&(H=L[L.l++]),H>k.length){console.error("WK1 bad formula parse 0x"+xe.toString(16)+":|"+k.join("|")+"|");return}var et=k.slice(-H);k.length-=H,k.push(U[xe][0]+"("+et.join(",")+")")}else return xe<=7?console.error("WK1 invalid opcode "+xe.toString(16)):xe<=24?console.error("WK1 unsupported op "+xe.toString(16)):xe<=30?console.error("WK1 invalid opcode "+xe.toString(16)):xe<=115?console.error("WK1 unsupported function opcode "+xe.toString(16)):console.error("WK1 unrecognized opcode "+xe.toString(16))}}k.length==1?j[1].f=""+k[0]:console.error("WK1 bad formula parse |"+k.join("|")+"|")}function M(L){var j=[{c:0,r:0},{t:"n",v:0},0];return j[0].r=L.read_shift(2),j[3]=L[L.l++],j[0].c=L[L.l++],j}function fe(L,j){var k=M(L);return k[1].t="s",k[1].v=L.read_shift(j-4,"cstr"),k}function G(L,j,k,H){var ie=oe(6+H.length);ie.write_shift(2,L),ie.write_shift(1,k),ie.write_shift(1,j),ie.write_shift(1,39);for(var Fe=0;Fe<H.length;++Fe){var Ce=H.charCodeAt(Fe);ie.write_shift(1,Ce>=128?95:Ce)}return ie.write_shift(1,0),ie}function Z(L,j){var k=M(L);k[1].v=L.read_shift(2);var H=k[1].v>>1;if(k[1].v&1)switch(H&7){case 0:H=(H>>3)*5e3;break;case 1:H=(H>>3)*500;break;case 2:H=(H>>3)/20;break;case 3:H=(H>>3)/200;break;case 4:H=(H>>3)/2e3;break;case 5:H=(H>>3)/2e4;break;case 6:H=(H>>3)/16;break;case 7:H=(H>>3)/64;break}return k[1].v=H,k}function I(L,j){var k=M(L),H=L.read_shift(4),ie=L.read_shift(4),Fe=L.read_shift(2);if(Fe==65535)return H===0&&ie===3221225472?(k[1].t="e",k[1].v=15):H===0&&ie===3489660928?(k[1].t="e",k[1].v=42):k[1].v=0,k;var Ce=Fe&32768;return Fe=(Fe&32767)-16446,k[1].v=(1-Ce*2)*(ie*Math.pow(2,Fe+32)+H*Math.pow(2,Fe)),k}function ee(L,j,k,H){var ie=oe(14);if(ie.write_shift(2,L),ie.write_shift(1,k),ie.write_shift(1,j),H==0)return ie.write_shift(4,0),ie.write_shift(4,0),ie.write_shift(2,65535),ie;var Fe=0,Ce=0,_e=0,xe=0;return H<0&&(Fe=1,H=-H),Ce=Math.log2(H)|0,H/=Math.pow(2,Ce-31),xe=H>>>0,xe&2147483648||(H/=2,++Ce,xe=H>>>0),H-=xe,xe|=2147483648,xe>>>=0,H*=Math.pow(2,32),_e=H>>>0,ie.write_shift(4,_e),ie.write_shift(4,xe),Ce+=16383+(Fe?32768:0),ie.write_shift(2,Ce),ie}function ce(L,j){var k=I(L);return L.l+=j-14,k}function ve(L,j){var k=M(L),H=L.read_shift(4);return k[1].v=H>>6,k}function Re(L,j){var k=M(L),H=L.read_shift(8,"f");return k[1].v=H,k}function Ke(L,j){var k=Re(L);return L.l+=j-10,k}function Me(L,j){return L[L.l+j-1]==0?L.read_shift(j,"cstr"):""}function ye(L,j){var k=L[L.l++];k>j-1&&(k=j-1);for(var H="";H.length<k;)H+=String.fromCharCode(L[L.l++]);return H}function Be(L,j,k){if(!(!k.qpro||j<21)){var H=L.read_shift(1);L.l+=17,L.l+=1,L.l+=2;var ie=L.read_shift(j-21,"cstr");return[H,ie]}}function De(L,j){for(var k={},H=L.l+j;L.l<H;){var ie=L.read_shift(2);if(ie==14e3){for(k[ie]=[0,""],k[ie][0]=L.read_shift(2);L[L.l];)k[ie][1]+=String.fromCharCode(L[L.l]),L.l++;L.l++}}return k}function je(L,j){var k=oe(5+L.length);k.write_shift(2,14e3),k.write_shift(2,j);for(var H=0;H<L.length;++H){var ie=L.charCodeAt(H);k[k.l++]=ie>127?95:ie}return k[k.l++]=0,k}var z={0:{n:"BOF",f:u2},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:h},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:p},14:{n:"NUMBER",f:S},15:{n:"LABEL",f:x},16:{n:"FORMULA",f:w},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:x},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:Me},222:{n:"SHEETNAMELP",f:ye},65535:{n:""}},me={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:fe},23:{n:"NUMBER17",f:I},24:{n:"NUMBER18",f:Z},25:{n:"FORMULA19",f:ce},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:De},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:ve},38:{n:"??"},39:{n:"NUMBER27",f:Re},40:{n:"FORMULA28",f:Ke},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:Me},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:Be},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:i,book_to_wk3:u,to_workbook:t}}(),BA=/^\s|\s$|[\t\n\r]/;function d2(e,t){if(!t.bookSST)return"";var r=[Kt];r[r.length]=Ne("sst",null,{xmlns:kl[0],count:e.Count,uniqueCount:e.Unique});for(var i=0;i!=e.length;++i)if(e[i]!=null){var u=e[i],s="<si>";u.r?s+=u.r:(s+="<t",u.t||(u.t=""),u.t.match(BA)&&(s+=' xml:space="preserve"'),s+=">"+Et(u.t)+"</t>"),s+="</si>",r[r.length]=s}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function kA(e){return[e.read_shift(4),e.read_shift(4)]}function UA(e,t){return t||(t=oe(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var PA=O3;function HA(e){var t=Ir();Ee(t,159,UA(e));for(var r=0;r<e.length;++r)Ee(t,19,PA(e[r]));return Ee(t,160),t.end()}function IA(e){for(var t=[],r=e.split(""),i=0;i<r.length;++i)t[i]=r[i].charCodeAt(0);return t}function m2(e){var t=0,r,i=IA(e),u=i.length+1,s,c,h,m,d;for(r=bi(u),r[0]=i.length,s=1;s!=u;++s)r[s]=i[s-1];for(s=u-1;s>=0;--s)c=r[s],h=t&16384?1:0,m=t<<1&32767,d=h|m,t=d^c;return t^52811}var zA=function(){function e(u,s){switch(s.type){case"base64":return t(da(u),s);case"binary":return t(u,s);case"buffer":return t(xt&&Buffer.isBuffer(u)?u.toString("binary"):sf(u),s);case"array":return t(gc(u),s)}throw new Error("Unrecognized type "+s.type)}function t(u,s){var c=s||{},h=c.dense?[]:{},m=u.match(/\\trowd.*?\\row\b/g);if(!m.length)throw new Error("RTF missing table");var d={s:{c:0,r:0},e:{c:0,r:m.length-1}};return m.forEach(function(x,E){Array.isArray(h)&&(h[E]=[]);for(var p=/\\\w+\b/g,g=0,S,y=-1;S=p.exec(x);){switch(S[0]){case"\\cell":var w=x.slice(g,p.lastIndex-S[0].length);if(w[0]==" "&&(w=w.slice(1)),++y,w.length){var D={v:w,t:"s"};Array.isArray(h)?h[E][y]=D:h[yt({r:E,c:y})]=D}break}g=p.lastIndex}y>d.e.c&&(d.e.c=y)}),h["!ref"]=qt(d),h}function r(u,s){return Bi(e(u,s),s)}function i(u){for(var s=["{\\rtf1\\ansi"],c=bt(u["!ref"]),h,m=Array.isArray(u),d=c.s.r;d<=c.e.r;++d){s.push("\\trowd\\trautofit1");for(var x=c.s.c;x<=c.e.c;++x)s.push("\\cellx"+(x+1));for(s.push("\\pard\\intbl"),x=c.s.c;x<=c.e.c;++x){var E=yt({r:d,c:x});h=m?(u[d]||[])[x]:u[E],!(!h||h.v==null&&(!h.f||h.F))&&(s.push(" "+(h.w||(ma(h),h.w))),s.push("\\cell"))}s.push("\\pard\\intbl\\row")}return s.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:i}}();function up(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}var jA=6,oa=jA;function ec(e){return Math.floor((e+Math.round(128/oa)/256)*oa)}function tc(e){return Math.floor((e-5)/oa*100+.5)/100}function Eh(e){return Math.round((e*oa+5)/oa*256)/256}function td(e){e.width?(e.wpx=ec(e.width),e.wch=tc(e.wpx),e.MDW=oa):e.wpx?(e.wch=tc(e.wpx),e.width=Eh(e.wch),e.MDW=oa):typeof e.wch=="number"&&(e.width=Eh(e.wch),e.wpx=ec(e.width),e.MDW=oa),e.customWidth&&delete e.customWidth}var GA=96,v2=GA;function rc(e){return e*96/v2}function x2(e){return e*v2/96}function VA(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var i=r[0];i<=r[1];++i)e[i]!=null&&(t[t.length]=Ne("numFmt",null,{numFmtId:i,formatCode:Et(e[i])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=Ne("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function XA(e){var t=[];return t[t.length]=Ne("cellXfs",null),e.forEach(function(r){t[t.length]=Ne("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=Ne("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function p2(e,t){var r=[Kt,Ne("styleSheet",null,{xmlns:kl[0],"xmlns:vt":ir.vt})],i;return e.SSF&&(i=VA(e.SSF))!=null&&(r[r.length]=i),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(i=XA(t.cellXfs))&&(r[r.length]=i),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function YA(e,t){var r=e.read_shift(2),i=Ar(e);return[r,i]}function WA(e,t,r){r||(r=oe(6+4*t.length)),r.write_shift(2,e),ur(t,r);var i=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),i}function qA(e,t,r){var i={};i.sz=e.read_shift(2)/20;var u=B3(e);u.fItalic&&(i.italic=1),u.fCondense&&(i.condense=1),u.fExtend&&(i.extend=1),u.fShadow&&(i.shadow=1),u.fOutline&&(i.outline=1),u.fStrikeout&&(i.strike=1);var s=e.read_shift(2);switch(s===700&&(i.bold=1),e.read_shift(2)){case 1:i.vertAlign="superscript";break;case 2:i.vertAlign="subscript";break}var c=e.read_shift(1);c!=0&&(i.underline=c);var h=e.read_shift(1);h>0&&(i.family=h);var m=e.read_shift(1);switch(m>0&&(i.charset=m),e.l++,i.color=L3(e),e.read_shift(1)){case 1:i.scheme="major";break;case 2:i.scheme="minor";break}return i.name=Ar(e),i}function KA(e,t){t||(t=oe(25+4*32)),t.write_shift(2,e.sz*20),k3(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Zs(e.color,t);var i=0;return e.scheme=="major"&&(i=1),e.scheme=="minor"&&(i=2),t.write_shift(1,i),ur(e.name,t),t.length>t.l?t.slice(0,t.l):t}var $A=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Jo,QA=jn;function fp(e,t){t||(t=oe(4*3+8*7+16*1)),Jo||(Jo=Gh($A));var r=Jo[e.patternType];r==null&&(r=40),t.write_shift(4,r);var i=0;if(r!=40)for(Zs({auto:1},t),Zs({auto:1},t);i<12;++i)t.write_shift(4,0);else{for(;i<4;++i)t.write_shift(4,0);for(;i<12;++i)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function ZA(e,t){var r=e.l+t,i=e.read_shift(2),u=e.read_shift(2);return e.l=r,{ixfe:i,numFmtId:u}}function g2(e,t,r){r||(r=oe(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var i=0;return r.write_shift(1,i),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Hu(e,t){return t||(t=oe(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var JA=jn;function e8(e,t){return t||(t=oe(51)),t.write_shift(1,0),Hu(null,t),Hu(null,t),Hu(null,t),Hu(null,t),Hu(null,t),t.length>t.l?t.slice(0,t.l):t}function t8(e,t){return t||(t=oe(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,0),t.write_shift(1,0),Qs(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function r8(e,t,r){var i=oe(2052);return i.write_shift(4,e),Qs(t,i),Qs(r,i),i.length>i.l?i.slice(0,i.l):i}function n8(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var u=i[0];u<=i[1];++u)t[u]!=null&&++r}),r!=0&&(Ee(e,615,bn(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var u=i[0];u<=i[1];++u)t[u]!=null&&Ee(e,44,WA(u,t[u]))}),Ee(e,616))}}function a8(e){var t=1;Ee(e,611,bn(t)),Ee(e,43,KA({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Ee(e,612)}function i8(e){var t=2;Ee(e,603,bn(t)),Ee(e,45,fp({patternType:"none"})),Ee(e,45,fp({patternType:"gray125"})),Ee(e,604)}function l8(e){var t=1;Ee(e,613,bn(t)),Ee(e,46,e8()),Ee(e,614)}function u8(e){var t=1;Ee(e,626,bn(t)),Ee(e,47,g2({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Ee(e,627)}function f8(e,t){Ee(e,617,bn(t.length)),t.forEach(function(r){Ee(e,47,g2(r,0))}),Ee(e,618)}function s8(e){var t=1;Ee(e,619,bn(t)),Ee(e,48,t8({xfId:0,builtinId:0,name:"Normal"})),Ee(e,620)}function c8(e){var t=0;Ee(e,505,bn(t)),Ee(e,506)}function o8(e){var t=0;Ee(e,508,r8(t,"TableStyleMedium9","PivotStyleMedium4")),Ee(e,509)}function h8(e,t){var r=Ir();return Ee(r,278),n8(r,e.SSF),a8(r),i8(r),l8(r),u8(r),f8(r,t.cellXfs),s8(r),c8(r),o8(r),Ee(r,279),r.end()}function E2(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[Kt];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function d8(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Ar(e)}}function m8(e){var t=oe(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),ur(e.name,t),t.slice(0,t.l)}function v8(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function x8(e){var t=oe(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}function p8(e,t){var r=oe(8+2*t.length);return r.write_shift(4,e),ur(t,r),r.slice(0,r.l)}function g8(e){return e.l+=4,e.read_shift(4)!=0}function E8(e,t){var r=oe(8);return r.write_shift(4,e),r.write_shift(4,1),r}function y8(){var e=Ir();return Ee(e,332),Ee(e,334,bn(1)),Ee(e,335,m8({name:"XLDAPR",version:12e4,flags:3496657072})),Ee(e,336),Ee(e,339,p8(1,"XLDAPR")),Ee(e,52),Ee(e,35,bn(514)),Ee(e,4096,bn(0)),Ee(e,4097,gn(1)),Ee(e,36),Ee(e,53),Ee(e,340),Ee(e,337,E8(1)),Ee(e,51,x8([[1,0]])),Ee(e,338),Ee(e,333),e.end()}function y2(){var e=[Kt];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
-  <metadataTypes count="1">
-    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
-  </metadataTypes>
-  <futureMetadata name="XLDAPR" count="1">
-    <bk>
-      <extLst>
-        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
-          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
-        </ext>
-      </extLst>
-    </bk>
-  </futureMetadata>
-  <cellMetadata count="1">
-    <bk>
-      <rc t="1" v="0"/>
-    </bk>
-  </cellMetadata>
-</metadata>`),e.join("")}function _8(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=yt(r);var i=e.read_shift(1);return i&2&&(t.l="1"),i&8&&(t.a="1"),t}var Ol=1024;function _2(e,t){for(var r=[21600,21600],i=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),u=[Ne("xml",null,{"xmlns:v":Zr.v,"xmlns:o":Zr.o,"xmlns:x":Zr.x,"xmlns:mv":Zr.mv}).replace(/\/>/,">"),Ne("o:shapelayout",Ne("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Ne("v:shapetype",[Ne("v:stroke",null,{joinstyle:"miter"}),Ne("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:i})];Ol<e*1e3;)Ol+=1e3;return t.forEach(function(s){var c=lr(s[0]),h={color2:"#BEFF82",type:"gradient"};h.type=="gradient"&&(h.angle="-180");var m=h.type=="gradient"?Ne("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,d=Ne("v:fill",m,h),x={on:"t",obscured:"t"};++Ol,u=u.concat(["<v:shape"+tf({id:"_x0000_s"+Ol,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(s[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",d,Ne("v:shadow",null,x),Ne("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",gr("x:Anchor",[c.c+1,0,c.r+1,0,c.c+3,20,c.r+5,20].join(",")),gr("x:AutoFill","False"),gr("x:Row",String(c.r)),gr("x:Column",String(c.c)),s[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),u.push("</xml>"),u.join("")}function T2(e){var t=[Kt,Ne("comments",null,{xmlns:kl[0]})],r=[];return t.push("<authors>"),e.forEach(function(i){i[1].forEach(function(u){var s=Et(u.a);r.indexOf(s)==-1&&(r.push(s),t.push("<author>"+s+"</author>")),u.T&&u.ID&&r.indexOf("tc="+u.ID)==-1&&(r.push("tc="+u.ID),t.push("<author>tc="+u.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(i){var u=0,s=[];if(i[1][0]&&i[1][0].T&&i[1][0].ID?u=r.indexOf("tc="+i[1][0].ID):i[1].forEach(function(m){m.a&&(u=r.indexOf(Et(m.a))),s.push(m.t||"")}),t.push('<comment ref="'+i[0]+'" authorId="'+u+'"><text>'),s.length<=1)t.push(gr("t",Et(s[0]||"")));else{for(var c=`Comment:
-    `+s[0]+`
-`,h=1;h<s.length;++h)c+=`Reply:
-    `+s[h]+`
-`;t.push(gr("t",Et(c)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function T8(e,t,r){var i=[Kt,Ne("ThreadedComments",null,{xmlns:ir.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(u){var s="";(u[1]||[]).forEach(function(c,h){if(!c.T){delete c.ID;return}c.a&&t.indexOf(c.a)==-1&&t.push(c.a);var m={ref:u[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};h==0?s=m.id:m.parentId=s,c.ID=m.id,c.a&&(m.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(c.a)).slice(-12)+"}"),i.push(Ne("threadedComment",gr("text",c.t||""),m))})}),i.push("</ThreadedComments>"),i.join("")}function S8(e){var t=[Kt,Ne("personList",null,{xmlns:ir.TCMNT,"xmlns:x":kl[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,i){t.push(Ne("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+i).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function w8(e){var t={};t.iauthor=e.read_shift(4);var r=Hi(e);return t.rfx=r.s,t.ref=yt(r.s),e.l+=16,t}function A8(e,t){return t==null&&(t=oe(36)),t.write_shift(4,e[1].iauthor),Pl(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var R8=Ar;function C8(e){return ur(e.slice(0,54))}function O8(e){var t=Ir(),r=[];return Ee(t,628),Ee(t,630),e.forEach(function(i){i[1].forEach(function(u){r.indexOf(u.a)>-1||(r.push(u.a.slice(0,54)),Ee(t,632,C8(u.a)))})}),Ee(t,631),Ee(t,633),e.forEach(function(i){i[1].forEach(function(u){u.iauthor=r.indexOf(u.a);var s={s:lr(i[0]),e:lr(i[0])};Ee(t,635,A8([s,u])),u.t&&u.t.length>0&&Ee(t,637,N3(u)),Ee(t,636),delete u.iauthor})}),Ee(t,634),Ee(t,629),t.end()}function D8(e,t){t.FullPaths.forEach(function(r,i){if(i!=0){var u=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");u.slice(-1)!=="/"&&Ct.utils.cfb_add(e,u,t.FileIndex[i].content)}})}var S2=["xlsb","xlsm","xlam","biff8","xla"],N8=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(i,u,s,c){var h=!1,m=!1;s.length==0?m=!0:s.charAt(0)=="["&&(m=!0,s=s.slice(1,-1)),c.length==0?h=!0:c.charAt(0)=="["&&(h=!0,c=c.slice(1,-1));var d=s.length>0?parseInt(s,10)|0:0,x=c.length>0?parseInt(c,10)|0:0;return h?x+=t.c:--x,m?d+=t.r:--d,u+(h?"":"$")+wr(x)+(m?"":"$")+Er(d)}return function(u,s){return t=s,u.replace(e,r)}}(),rd=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,nd=function(){return function(t,r){return t.replace(rd,function(i,u,s,c,h,m){var d=$h(c)-(s?0:r.c),x=Kh(m)-(h?0:r.r),E=x==0?"":h?x+1:"["+x+"]",p=d==0?"":s?d+1:"["+d+"]";return u+"R"+E+"C"+p})}}();function b8(e,t){return e.replace(rd,function(r,i,u,s,c,h){return i+(u=="$"?u+s:wr($h(s)+t.c))+(c=="$"?c+h:Er(Kh(h)+t.r))})}function F8(e){return e.length!=1}function Wt(e){e.l+=1}function Ka(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function w2(e,t,r){var i=2;if(r){if(r.biff>=2&&r.biff<=5)return A2(e);r.biff==12&&(i=4)}var u=e.read_shift(i),s=e.read_shift(i),c=Ka(e),h=Ka(e);return{s:{r:u,c:c[0],cRel:c[1],rRel:c[2]},e:{r:s,c:h[0],cRel:h[1],rRel:h[2]}}}function A2(e){var t=Ka(e),r=Ka(e),i=e.read_shift(1),u=e.read_shift(1);return{s:{r:t[0],c:i,cRel:t[1],rRel:t[2]},e:{r:r[0],c:u,cRel:r[1],rRel:r[2]}}}function M8(e,t,r){if(r.biff<8)return A2(e);var i=e.read_shift(r.biff==12?4:2),u=e.read_shift(r.biff==12?4:2),s=Ka(e),c=Ka(e);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:u,c:c[0],cRel:c[1],rRel:c[2]}}}function R2(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return L8(e);var i=e.read_shift(r&&r.biff==12?4:2),u=Ka(e);return{r:i,c:u[0],cRel:u[1],rRel:u[2]}}function L8(e){var t=Ka(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function B8(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function k8(e,t,r){var i=r&&r.biff?r.biff:8;if(i>=2&&i<=5)return U8(e);var u=e.read_shift(i>=12?4:2),s=e.read_shift(2),c=(s&16384)>>14,h=(s&32768)>>15;if(s&=16383,h==1)for(;u>524287;)u-=1048576;if(c==1)for(;s>8191;)s=s-16384;return{r:u,c:s,cRel:c,rRel:h}}function U8(e){var t=e.read_shift(2),r=e.read_shift(1),i=(t&32768)>>15,u=(t&16384)>>14;return t&=16383,i==1&&t>=8192&&(t=t-16384),u==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:u,rRel:i}}function P8(e,t,r){var i=(e[e.l++]&96)>>5,u=w2(e,r.biff>=2&&r.biff<=5?6:8,r);return[i,u]}function H8(e,t,r){var i=(e[e.l++]&96)>>5,u=e.read_shift(2,"i"),s=8;if(r)switch(r.biff){case 5:e.l+=12,s=6;break;case 12:s=12;break}var c=w2(e,s,r);return[i,u,c]}function I8(e,t,r){var i=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[i]}function z8(e,t,r){var i=(e[e.l++]&96)>>5,u=e.read_shift(2),s=8;if(r)switch(r.biff){case 5:e.l+=12,s=6;break;case 12:s=12;break}return e.l+=s,[i,u]}function j8(e,t,r){var i=(e[e.l++]&96)>>5,u=M8(e,t-1,r);return[i,u]}function G8(e,t,r){var i=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[i]}function sp(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function V8(e,t,r){e.l+=2;for(var i=e.read_shift(r&&r.biff==2?1:2),u=[],s=0;s<=i;++s)u.push(e.read_shift(r&&r.biff==2?1:2));return u}function X8(e,t,r){var i=e[e.l+1]&255?1:0;return e.l+=2,[i,e.read_shift(r&&r.biff==2?1:2)]}function Y8(e,t,r){var i=e[e.l+1]&255?1:0;return e.l+=2,[i,e.read_shift(r&&r.biff==2?1:2)]}function W8(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function q8(e,t,r){var i=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[i]}function C2(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function K8(e){return e.read_shift(2),C2(e)}function $8(e){return e.read_shift(2),C2(e)}function Q8(e,t,r){var i=(e[e.l]&96)>>5;e.l+=1;var u=R2(e,0,r);return[i,u]}function Z8(e,t,r){var i=(e[e.l]&96)>>5;e.l+=1;var u=k8(e,0,r);return[i,u]}function J8(e,t,r){var i=(e[e.l]&96)>>5;e.l+=1;var u=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var s=R2(e,0,r);return[i,u,s]}function e6(e,t,r){var i=(e[e.l]&96)>>5;e.l+=1;var u=e.read_shift(r&&r.biff<=3?1:2);return[eR[u],N2[u],i]}function t6(e,t,r){var i=e[e.l++],u=e.read_shift(1),s=r&&r.biff<=3?[i==88?-1:0,e.read_shift(1)]:r6(e);return[u,(s[0]===0?N2:J6)[s[1]]]}function r6(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function n6(e,t,r){e.l+=r&&r.biff==2?3:4}function a6(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var i=e.read_shift(2),u=e.read_shift(r&&r.biff==2?1:2);return[i,u]}function i6(e){return e.l++,hf[e.read_shift(1)]}function l6(e){return e.l++,e.read_shift(2)}function u6(e){return e.l++,e.read_shift(1)!==0}function f6(e){return e.l++,Hl(e)}function s6(e,t,r){return e.l++,s2(e,t-1,r)}function c6(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=J3(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=hf[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=Hl(e);break;case 2:r[1]=nA(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function o6(e,t,r){for(var i=e.read_shift(r.biff==12?4:2),u=[],s=0;s!=i;++s)u.push((r.biff==12?Hi:lA)(e));return u}function h6(e,t,r){var i=0,u=0;r.biff==12?(i=e.read_shift(4),u=e.read_shift(4)):(u=1+e.read_shift(1),i=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--i,--u==0&&(u=256));for(var s=0,c=[];s!=i&&(c[s]=[]);++s)for(var h=0;h!=u;++h)c[s][h]=c6(e,r.biff);return c}function d6(e,t,r){var i=e.read_shift(1)>>>5&3,u=!r||r.biff>=8?4:2,s=e.read_shift(u);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[i,0,s]}function m6(e,t,r){if(r.biff==5)return v6(e);var i=e.read_shift(1)>>>5&3,u=e.read_shift(2),s=e.read_shift(4);return[i,u,s]}function v6(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var i=e.read_shift(2);return e.l+=12,[t,r,i]}function x6(e,t,r){var i=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var u=e.read_shift(r&&r.biff==2?1:2);return[i,u]}function p6(e,t,r){var i=e.read_shift(1)>>>5&3,u=e.read_shift(r&&r.biff==2?1:2);return[i,u]}function g6(e,t,r){var i=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[i]}function E6(e,t,r){var i=(e[e.l++]&96)>>5,u=e.read_shift(2),s=4;if(r)switch(r.biff){case 5:s=15;break;case 12:s=6;break}return e.l+=s,[i,u]}var y6=jn,_6=jn,T6=jn;function df(e,t,r){return e.l+=2,[B8(e)]}function ad(e){return e.l+=6,[]}var S6=df,w6=ad,A6=ad,R6=df;function O2(e){return e.l+=2,[u2(e),e.read_shift(2)&1]}var C6=df,O6=O2,D6=ad,N6=df,b6=df,F6=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function M6(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),i=e.read_shift(4),u=e.read_shift(2),s=e.read_shift(2),c=F6[r>>2&31];return{ixti:t,coltype:r&3,rt:c,idx:i,c:u,C:s}}function L6(e){return e.l+=2,[e.read_shift(4)]}function B6(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function k6(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function U6(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function P6(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function H6(e){return e.l+=4,[0,0]}var cp={1:{n:"PtgExp",f:a6},2:{n:"PtgTbl",f:T6},3:{n:"PtgAdd",f:Wt},4:{n:"PtgSub",f:Wt},5:{n:"PtgMul",f:Wt},6:{n:"PtgDiv",f:Wt},7:{n:"PtgPower",f:Wt},8:{n:"PtgConcat",f:Wt},9:{n:"PtgLt",f:Wt},10:{n:"PtgLe",f:Wt},11:{n:"PtgEq",f:Wt},12:{n:"PtgGe",f:Wt},13:{n:"PtgGt",f:Wt},14:{n:"PtgNe",f:Wt},15:{n:"PtgIsect",f:Wt},16:{n:"PtgUnion",f:Wt},17:{n:"PtgRange",f:Wt},18:{n:"PtgUplus",f:Wt},19:{n:"PtgUminus",f:Wt},20:{n:"PtgPercent",f:Wt},21:{n:"PtgParen",f:Wt},22:{n:"PtgMissArg",f:Wt},23:{n:"PtgStr",f:s6},26:{n:"PtgSheet",f:B6},27:{n:"PtgEndSheet",f:k6},28:{n:"PtgErr",f:i6},29:{n:"PtgBool",f:u6},30:{n:"PtgInt",f:l6},31:{n:"PtgNum",f:f6},32:{n:"PtgArray",f:G8},33:{n:"PtgFunc",f:e6},34:{n:"PtgFuncVar",f:t6},35:{n:"PtgName",f:d6},36:{n:"PtgRef",f:Q8},37:{n:"PtgArea",f:P8},38:{n:"PtgMemArea",f:x6},39:{n:"PtgMemErr",f:y6},40:{n:"PtgMemNoMem",f:_6},41:{n:"PtgMemFunc",f:p6},42:{n:"PtgRefErr",f:g6},43:{n:"PtgAreaErr",f:I8},44:{n:"PtgRefN",f:Z8},45:{n:"PtgAreaN",f:j8},46:{n:"PtgMemAreaN",f:U6},47:{n:"PtgMemNoMemN",f:P6},57:{n:"PtgNameX",f:m6},58:{n:"PtgRef3d",f:J8},59:{n:"PtgArea3d",f:H8},60:{n:"PtgRefErr3d",f:E6},61:{n:"PtgAreaErr3d",f:z8},255:{}},I6={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},z6={1:{n:"PtgElfLel",f:O2},2:{n:"PtgElfRw",f:N6},3:{n:"PtgElfCol",f:S6},6:{n:"PtgElfRwV",f:b6},7:{n:"PtgElfColV",f:R6},10:{n:"PtgElfRadical",f:C6},11:{n:"PtgElfRadicalS",f:D6},13:{n:"PtgElfColS",f:w6},15:{n:"PtgElfColSV",f:A6},16:{n:"PtgElfRadicalLel",f:O6},25:{n:"PtgList",f:M6},29:{n:"PtgSxName",f:L6},255:{}},j6={0:{n:"PtgAttrNoop",f:H6},1:{n:"PtgAttrSemi",f:q8},2:{n:"PtgAttrIf",f:Y8},4:{n:"PtgAttrChoose",f:V8},8:{n:"PtgAttrGoto",f:X8},16:{n:"PtgAttrSum",f:n6},32:{n:"PtgAttrBaxcel",f:sp},33:{n:"PtgAttrBaxcel",f:sp},64:{n:"PtgAttrSpace",f:K8},65:{n:"PtgAttrSpaceSemi",f:$8},128:{n:"PtgAttrIfError",f:W8},255:{}};function G6(e,t,r,i){if(i.biff<8)return jn(e,t);for(var u=e.l+t,s=[],c=0;c!==r.length;++c)switch(r[c][0]){case"PtgArray":r[c][1]=h6(e,0,i),s.push(r[c][1]);break;case"PtgMemArea":r[c][2]=o6(e,r[c][1],i),s.push(r[c][2]);break;case"PtgExp":i&&i.biff==12&&(r[c][1][1]=e.read_shift(4),s.push(r[c][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[c][0]}return t=u-e.l,t!==0&&s.push(jn(e,t)),s}function V6(e,t,r){for(var i=e.l+t,u,s,c=[];i!=e.l;)t=i-e.l,s=e[e.l],u=cp[s]||cp[I6[s]],(s===24||s===25)&&(u=(s===24?z6:j6)[e[e.l+1]]),!u||!u.f?jn(e,t):c.push([u.n,u.f(e,t,r)]);return c}function X6(e){for(var t=[],r=0;r<e.length;++r){for(var i=e[r],u=[],s=0;s<i.length;++s){var c=i[s];if(c)switch(c[0]){case 2:u.push('"'+c[1].replace(/"/g,'""')+'"');break;default:u.push(c[1])}else u.push("")}t.push(u.join(","))}return t.join(";")}var Y6={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function W6(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function D2(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var i=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!i)return"SH33TJSERR1";var u="";if(r.biff>8)switch(e[i[0]][0]){case 357:return u=i[1]==-1?"#REF":e.SheetNames[i[1]],i[1]==i[2]?u:u+":"+e.SheetNames[i[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[i[0]][0];case 355:default:return"SH33TJSSRC"+e[i[0]][0]}switch(e[i[0]][0][0]){case 1025:return u=i[1]==-1?"#REF":e.SheetNames[i[1]]||"SH33TJSERR3",i[1]==i[2]?u:u+":"+e.SheetNames[i[2]];case 14849:return e[i[0]].slice(1).map(function(s){return s.Name}).join(";;");default:return e[i[0]][0][3]?(u=i[1]==-1?"#REF":e[i[0]][0][3][i[1]]||"SH33TJSERR4",i[1]==i[2]?u:u+":"+e[i[0]][0][3][i[2]]):"SH33TJSERR2"}}function op(e,t,r){var i=D2(e,t,r);return i=="#REF"?i:W6(i,r)}function Ll(e,t,r,i,u){var s=u&&u.biff||8,c={s:{c:0,r:0},e:{c:0,r:0}},h=[],m,d,x,E=0,p=0,g,S="";if(!e[0]||!e[0][0])return"";for(var y=-1,w="",D=0,U=e[0].length;D<U;++D){var B=e[0][D];switch(B[0]){case"PtgUminus":h.push("-"+h.pop());break;case"PtgUplus":h.push("+"+h.pop());break;case"PtgPercent":h.push(h.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(m=h.pop(),d=h.pop(),y>=0){switch(e[0][y][1][0]){case 0:w=Ut(" ",e[0][y][1][1]);break;case 1:w=Ut("\r",e[0][y][1][1]);break;default:if(w="",u.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][y][1][0])}d=d+w,y=-1}h.push(d+Y6[B[0]]+m);break;case"PtgIsect":m=h.pop(),d=h.pop(),h.push(d+" "+m);break;case"PtgUnion":m=h.pop(),d=h.pop(),h.push(d+","+m);break;case"PtgRange":m=h.pop(),d=h.pop(),h.push(d+":"+m);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":x=Yu(B[1][1],c,u),h.push(Wu(x,s));break;case"PtgRefN":x=r?Yu(B[1][1],r,u):B[1][1],h.push(Wu(x,s));break;case"PtgRef3d":E=B[1][1],x=Yu(B[1][2],c,u),S=op(i,E,u),h.push(S+"!"+Wu(x,s));break;case"PtgFunc":case"PtgFuncVar":var X=B[1][0],M=B[1][1];X||(X=0),X&=127;var fe=X==0?[]:h.slice(-X);h.length-=X,M==="User"&&(M=fe.shift()),h.push(M+"("+fe.join(",")+")");break;case"PtgBool":h.push(B[1]?"TRUE":"FALSE");break;case"PtgInt":h.push(B[1]);break;case"PtgNum":h.push(String(B[1]));break;case"PtgStr":h.push('"'+B[1].replace(/"/g,'""')+'"');break;case"PtgErr":h.push(B[1]);break;case"PtgAreaN":g=Kx(B[1][1],r?{s:r}:c,u),h.push(Qo(g,u));break;case"PtgArea":g=Kx(B[1][1],c,u),h.push(Qo(g,u));break;case"PtgArea3d":E=B[1][1],g=B[1][2],S=op(i,E,u),h.push(S+"!"+Qo(g,u));break;case"PtgAttrSum":h.push("SUM("+h.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":p=B[1][2];var G=(i.names||[])[p-1]||(i[0]||[])[p],Z=G?G.Name:"SH33TJSNAME"+String(p);Z&&Z.slice(0,6)=="_xlfn."&&!u.xlfn&&(Z=Z.slice(6)),h.push(Z);break;case"PtgNameX":var I=B[1][1];p=B[1][2];var ee;if(u.biff<=5)I<0&&(I=-I),i[I]&&(ee=i[I][p]);else{var ce="";if(((i[I]||[])[0]||[])[0]==14849||(((i[I]||[])[0]||[])[0]==1025?i[I][p]&&i[I][p].itab>0&&(ce=i.SheetNames[i[I][p].itab-1]+"!"):ce=i.SheetNames[p-1]+"!"),i[I]&&i[I][p])ce+=i[I][p].Name;else if(i[0]&&i[0][p])ce+=i[0][p].Name;else{var ve=(D2(i,I,u)||"").split(";;");ve[p-1]?ce=ve[p-1]:ce+="SH33TJSERRX"}h.push(ce);break}ee||(ee={Name:"SH33TJSERRY"}),h.push(ee.Name);break;case"PtgParen":var Re="(",Ke=")";if(y>=0){switch(w="",e[0][y][1][0]){case 2:Re=Ut(" ",e[0][y][1][1])+Re;break;case 3:Re=Ut("\r",e[0][y][1][1])+Re;break;case 4:Ke=Ut(" ",e[0][y][1][1])+Ke;break;case 5:Ke=Ut("\r",e[0][y][1][1])+Ke;break;default:if(u.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][y][1][0])}y=-1}h.push(Re+h.pop()+Ke);break;case"PtgRefErr":h.push("#REF!");break;case"PtgRefErr3d":h.push("#REF!");break;case"PtgExp":x={c:B[1][1],r:B[1][0]};var Me={c:r.c,r:r.r};if(i.sharedf[yt(x)]){var ye=i.sharedf[yt(x)];h.push(Ll(ye,c,Me,i,u))}else{var Be=!1;for(m=0;m!=i.arrayf.length;++m)if(d=i.arrayf[m],!(x.c<d[0].s.c||x.c>d[0].e.c)&&!(x.r<d[0].s.r||x.r>d[0].e.r)){h.push(Ll(d[1],c,Me,i,u)),Be=!0;break}Be||h.push(B[1])}break;case"PtgArray":h.push("{"+X6(B[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":y=D;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":h.push("");break;case"PtgAreaErr":h.push("#REF!");break;case"PtgAreaErr3d":h.push("#REF!");break;case"PtgList":h.push("Table"+B[1].idx+"[#"+B[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(B));default:throw new Error("Unrecognized Formula Token: "+String(B))}var De=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(u.biff!=3&&y>=0&&De.indexOf(e[0][D][0])==-1){B=e[0][y];var je=!0;switch(B[1][0]){case 4:je=!1;case 0:w=Ut(" ",B[1][1]);break;case 5:je=!1;case 1:w=Ut("\r",B[1][1]);break;default:if(w="",u.WTF)throw new Error("Unexpected PtgAttrSpaceType "+B[1][0])}h.push((je?w:"")+h.pop()+(je?"":w)),y=-1}}if(h.length>1&&u.WTF)throw new Error("bad formula stack");return h[0]}function q6(e){if(e==null){var t=oe(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return Fi(e);return Fi(0)}function K6(e,t,r,i,u){var s=Mi(t,r,u),c=q6(e.v),h=oe(6),m=33;h.write_shift(2,m),h.write_shift(4,0);for(var d=oe(e.bf.length),x=0;x<e.bf.length;++x)d[x]=e.bf[x];var E=pr([s,c,h,d]);return E}function Ec(e,t,r){var i=e.read_shift(4),u=V6(e,i,r),s=e.read_shift(4),c=s>0?G6(e,s,u,r):null;return[u,c]}var $6=Ec,yc=Ec,Q6=Ec,Z6=Ec,J6={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},N2={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},eR={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function tR(e){var t="of:="+e.replace(rd,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function rR(e){return e.replace(/\./,"!")}var qu=typeof Map<"u";function id(e,t,r){var i=0,u=e.length;if(r){if(qu?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var s=qu?r.get(t):r[t];i<s.length;++i)if(e[s[i]].t===t)return e.Count++,s[i]}}else for(;i<u;++i)if(e[i].t===t)return e.Count++,i;return e[u]={t},e.Count++,e.Unique++,r&&(qu?(r.has(t)||r.set(t,[]),r.get(t).push(u)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(u))),u}function _c(e,t){var r={min:e+1,max:e+1},i=-1;return t.MDW&&(oa=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?i=tc(t.wpx):t.wch!=null&&(i=t.wch),i>-1?(r.width=Eh(i),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function b2(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function Za(e,t,r){var i=r.revssf[t.z!=null?t.z:"General"],u=60,s=e.length;if(i==null&&r.ssf){for(;u<392;++u)if(r.ssf[u]==null){Rg(t.z,u),r.ssf[u]=t.z,r.revssf[t.z]=i=u;break}}for(u=0;u!=s;++u)if(e[u].numFmtId===i)return u;return e[s]={numFmtId:i,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},s}function nR(e,t,r){if(e&&e["!ref"]){var i=bt(e["!ref"]);if(i.e.c<i.s.c||i.e.r<i.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}function aR(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+qt(e[r])+'"/>';return t+"</mergeCells>"}function iR(e,t,r,i,u){var s=!1,c={},h=null;if(i.bookType!=="xlsx"&&t.vbaraw){var m=t.SheetNames[r];try{t.Workbook&&(m=t.Workbook.Sheets[r].CodeName||m)}catch{}s=!0,c.codeName=ef(Et(m))}if(e&&e["!outline"]){var d={summaryBelow:1,summaryRight:1};e["!outline"].above&&(d.summaryBelow=0),e["!outline"].left&&(d.summaryRight=0),h=(h||"")+Ne("outlinePr",null,d)}!s&&!h||(u[u.length]=Ne("sheetPr",h,c))}var lR=["objects","scenarios","selectLockedCells","selectUnlockedCells"],uR=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function fR(e){var t={sheet:1};return lR.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),uR.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=m2(e.password).toString(16).toUpperCase()),Ne("sheetProtection",null,t)}function sR(e){return b2(e),Ne("pageMargins",null,e)}function cR(e,t){for(var r=["<cols>"],i,u=0;u!=t.length;++u)(i=t[u])&&(r[r.length]=Ne("col",null,_c(u,i)));return r[r.length]="</cols>",r.join("")}function oR(e,t,r,i){var u=typeof e.ref=="string"?e.ref:qt(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,c=tn(u);c.s.r==c.e.r&&(c.e.r=tn(t["!ref"]).e.r,u=qt(c));for(var h=0;h<s.length;++h){var m=s[h];if(m.Name=="_xlnm._FilterDatabase"&&m.Sheet==i){m.Ref="'"+r.SheetNames[i]+"'!"+u;break}}return h==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:i,Ref:"'"+r.SheetNames[i]+"'!"+u}),Ne("autoFilter",null,{ref:u})}function hR(e,t,r,i){var u={workbookViewId:"0"};return(((i||{}).Workbook||{}).Views||[])[0]&&(u.rightToLeft=i.Workbook.Views[0].RTL?"1":"0"),Ne("sheetViews",Ne("sheetView",null,u),{})}function dR(e,t,r,i){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var u="",s=e.t,c=e.v;if(e.t!=="z")switch(e.t){case"b":u=e.v?"1":"0";break;case"n":u=""+e.v;break;case"e":u=hf[e.v];break;case"d":i&&i.cellDates?u=Lr(e.v,-1).toISOString():(e=jr(e),e.t="n",u=""+(e.v=zr(Lr(e.v)))),typeof e.z>"u"&&(e.z=Pt[14]);break;default:u=e.v;break}var h=gr("v",Et(u)),m={r:t},d=Za(i.cellXfs,e,i);switch(d!==0&&(m.s=d),e.t){case"n":break;case"d":m.t="d";break;case"b":m.t="b";break;case"e":m.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(i&&i.bookSST){h=gr("v",""+id(i.Strings,e.v,i.revStrings)),m.t="s";break}m.t="str";break}if(e.t!=s&&(e.t=s,e.v=c),typeof e.f=="string"&&e.f){var x=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;h=Ne("f",Et(e.f),x)+(e.v!=null?h:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(m.cm=1),Ne("c",h,m)}function mR(e,t,r,i){var u=[],s=[],c=bt(e["!ref"]),h="",m,d="",x=[],E=0,p=0,g=e["!rows"],S=Array.isArray(e),y={r:d},w,D=-1;for(p=c.s.c;p<=c.e.c;++p)x[p]=wr(p);for(E=c.s.r;E<=c.e.r;++E){for(s=[],d=Er(E),p=c.s.c;p<=c.e.c;++p){m=x[p]+d;var U=S?(e[E]||[])[p]:e[m];U!==void 0&&(h=dR(U,m,e,t))!=null&&s.push(h)}(s.length>0||g&&g[E])&&(y={r:d},g&&g[E]&&(w=g[E],w.hidden&&(y.hidden=1),D=-1,w.hpx?D=rc(w.hpx):w.hpt&&(D=w.hpt),D>-1&&(y.ht=D,y.customHeight=1),w.level&&(y.outlineLevel=w.level)),u[u.length]=Ne("row",s.join(""),y))}if(g)for(;E<g.length;++E)g&&g[E]&&(y={r:E+1},w=g[E],w.hidden&&(y.hidden=1),D=-1,w.hpx?D=rc(w.hpx):w.hpt&&(D=w.hpt),D>-1&&(y.ht=D,y.customHeight=1),w.level&&(y.outlineLevel=w.level),u[u.length]=Ne("row","",y));return u.join("")}function F2(e,t,r,i){var u=[Kt,Ne("worksheet",null,{xmlns:kl[0],"xmlns:r":ir.r})],s=r.SheetNames[e],c=0,h="",m=r.Sheets[s];m==null&&(m={});var d=m["!ref"]||"A1",x=bt(d);if(x.e.c>16383||x.e.r>1048575){if(t.WTF)throw new Error("Range "+d+" exceeds format limit A1:XFD1048576");x.e.c=Math.min(x.e.c,16383),x.e.r=Math.min(x.e.c,1048575),d=qt(x)}i||(i={}),m["!comments"]=[];var E=[];iR(m,r,e,t,u),u[u.length]=Ne("dimension",null,{ref:d}),u[u.length]=hR(m,t,e,r),t.sheetFormat&&(u[u.length]=Ne("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),m["!cols"]!=null&&m["!cols"].length>0&&(u[u.length]=cR(m,m["!cols"])),u[c=u.length]="<sheetData/>",m["!links"]=[],m["!ref"]!=null&&(h=mR(m,t),h.length>0&&(u[u.length]=h)),u.length>c+1&&(u[u.length]="</sheetData>",u[c]=u[c].replace("/>",">")),m["!protect"]&&(u[u.length]=fR(m["!protect"])),m["!autofilter"]!=null&&(u[u.length]=oR(m["!autofilter"],m,r,e)),m["!merges"]!=null&&m["!merges"].length>0&&(u[u.length]=aR(m["!merges"]));var p=-1,g,S=-1;return m["!links"].length>0&&(u[u.length]="<hyperlinks>",m["!links"].forEach(function(y){y[1].Target&&(g={ref:y[0]},y[1].Target.charAt(0)!="#"&&(S=gt(i,-1,Et(y[1].Target).replace(/#.*$/,""),vt.HLINK),g["r:id"]="rId"+S),(p=y[1].Target.indexOf("#"))>-1&&(g.location=Et(y[1].Target.slice(p+1))),y[1].Tooltip&&(g.tooltip=Et(y[1].Tooltip)),u[u.length]=Ne("hyperlink",null,g))}),u[u.length]="</hyperlinks>"),delete m["!links"],m["!margins"]!=null&&(u[u.length]=sR(m["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(u[u.length]=gr("ignoredErrors",Ne("ignoredError",null,{numberStoredAsText:1,sqref:d}))),E.length>0&&(S=gt(i,-1,"../drawings/drawing"+(e+1)+".xml",vt.DRAW),u[u.length]=Ne("drawing",null,{"r:id":"rId"+S}),m["!drawing"]=E),m["!comments"].length>0&&(S=gt(i,-1,"../drawings/vmlDrawing"+(e+1)+".vml",vt.VML),u[u.length]=Ne("legacyDrawing",null,{"r:id":"rId"+S}),m["!legacy"]=S),u.length>1&&(u[u.length]="</worksheet>",u[1]=u[1].replace("/>",">")),u.join("")}function vR(e,t){var r={},i=e.l+t;r.r=e.read_shift(4),e.l+=4;var u=e.read_shift(2);e.l+=1;var s=e.read_shift(1);return e.l=i,s&7&&(r.level=s&7),s&16&&(r.hidden=!0),s&32&&(r.hpt=u/20),r}function xR(e,t,r){var i=oe(145),u=(r["!rows"]||[])[e]||{};i.write_shift(4,e),i.write_shift(4,0);var s=320;u.hpx?s=rc(u.hpx)*20:u.hpt&&(s=u.hpt*20),i.write_shift(2,s),i.write_shift(1,0);var c=0;u.level&&(c|=u.level),u.hidden&&(c|=16),(u.hpx||u.hpt)&&(c|=32),i.write_shift(1,c),i.write_shift(1,0);var h=0,m=i.l;i.l+=4;for(var d={r:e,c:0},x=0;x<16;++x)if(!(t.s.c>x+1<<10||t.e.c<x<<10)){for(var E=-1,p=-1,g=x<<10;g<x+1<<10;++g){d.c=g;var S=Array.isArray(r)?(r[d.r]||[])[d.c]:r[yt(d)];S&&(E<0&&(E=g),p=g)}E<0||(++h,i.write_shift(4,E),i.write_shift(4,p))}var y=i.l;return i.l=m,i.write_shift(4,h),i.l=y,i.length>i.l?i.slice(0,i.l):i}function pR(e,t,r,i){var u=xR(i,r,t);(u.length>17||(t["!rows"]||[])[i])&&Ee(e,0,u)}var gR=Hi,ER=Pl;function yR(){}function _R(e,t){var r={},i=e[e.l];return++e.l,r.above=!(i&64),r.left=!(i&128),e.l+=18,r.name=b3(e),r}function TR(e,t,r){r==null&&(r=oe(84+4*e.length));var i=192;t&&(t.above&&(i&=-65),t.left&&(i&=-129)),r.write_shift(1,i);for(var u=1;u<3;++u)r.write_shift(1,0);return Zs({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),Wg(e,r),r.slice(0,r.l)}function SR(e){var t=En(e);return[t]}function wR(e,t,r){return r==null&&(r=oe(8)),ki(t,r)}function AR(e){var t=Ui(e);return[t]}function RR(e,t,r){return r==null&&(r=oe(4)),Pi(t,r)}function CR(e){var t=En(e),r=e.read_shift(1);return[t,r,"b"]}function OR(e,t,r){return r==null&&(r=oe(9)),ki(t,r),r.write_shift(1,e.v?1:0),r}function DR(e){var t=Ui(e),r=e.read_shift(1);return[t,r,"b"]}function NR(e,t,r){return r==null&&(r=oe(5)),Pi(t,r),r.write_shift(1,e.v?1:0),r}function bR(e){var t=En(e),r=e.read_shift(1);return[t,r,"e"]}function FR(e,t,r){return r==null&&(r=oe(9)),ki(t,r),r.write_shift(1,e.v),r}function MR(e){var t=Ui(e),r=e.read_shift(1);return[t,r,"e"]}function LR(e,t,r){return r==null&&(r=oe(8)),Pi(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function BR(e){var t=En(e),r=e.read_shift(4);return[t,r,"s"]}function kR(e,t,r){return r==null&&(r=oe(12)),ki(t,r),r.write_shift(4,t.v),r}function UR(e){var t=Ui(e),r=e.read_shift(4);return[t,r,"s"]}function PR(e,t,r){return r==null&&(r=oe(8)),Pi(t,r),r.write_shift(4,t.v),r}function HR(e){var t=En(e),r=Hl(e);return[t,r,"n"]}function IR(e,t,r){return r==null&&(r=oe(16)),ki(t,r),Fi(e.v,r),r}function zR(e){var t=Ui(e),r=Hl(e);return[t,r,"n"]}function jR(e,t,r){return r==null&&(r=oe(12)),Pi(t,r),Fi(e.v,r),r}function GR(e){var t=En(e),r=qg(e);return[t,r,"n"]}function VR(e,t,r){return r==null&&(r=oe(12)),ki(t,r),Kg(e.v,r),r}function XR(e){var t=Ui(e),r=qg(e);return[t,r,"n"]}function YR(e,t,r){return r==null&&(r=oe(8)),Pi(t,r),Kg(e.v,r),r}function WR(e){var t=En(e),r=Qh(e);return[t,r,"is"]}function qR(e){var t=En(e),r=Ar(e);return[t,r,"str"]}function KR(e,t,r){return r==null&&(r=oe(12+4*e.v.length)),ki(t,r),ur(e.v,r),r.length>r.l?r.slice(0,r.l):r}function $R(e){var t=Ui(e),r=Ar(e);return[t,r,"str"]}function QR(e,t,r){return r==null&&(r=oe(8+4*e.v.length)),Pi(t,r),ur(e.v,r),r.length>r.l?r.slice(0,r.l):r}function ZR(e,t,r){var i=e.l+t,u=En(e);u.r=r["!row"];var s=e.read_shift(1),c=[u,s,"b"];if(r.cellFormula){e.l+=2;var h=yc(e,i-e.l,r);c[3]=Ll(h,null,u,r.supbooks,r)}else e.l=i;return c}function JR(e,t,r){var i=e.l+t,u=En(e);u.r=r["!row"];var s=e.read_shift(1),c=[u,s,"e"];if(r.cellFormula){e.l+=2;var h=yc(e,i-e.l,r);c[3]=Ll(h,null,u,r.supbooks,r)}else e.l=i;return c}function eC(e,t,r){var i=e.l+t,u=En(e);u.r=r["!row"];var s=Hl(e),c=[u,s,"n"];if(r.cellFormula){e.l+=2;var h=yc(e,i-e.l,r);c[3]=Ll(h,null,u,r.supbooks,r)}else e.l=i;return c}function tC(e,t,r){var i=e.l+t,u=En(e);u.r=r["!row"];var s=Ar(e),c=[u,s,"str"];if(r.cellFormula){e.l+=2;var h=yc(e,i-e.l,r);c[3]=Ll(h,null,u,r.supbooks,r)}else e.l=i;return c}var rC=Hi,nC=Pl;function aC(e,t){return t==null&&(t=oe(4)),t.write_shift(4,e),t}function iC(e,t){var r=e.l+t,i=Hi(e),u=Zh(e),s=Ar(e),c=Ar(e),h=Ar(e);e.l=r;var m={rfx:i,relId:u,loc:s,display:h};return c&&(m.Tooltip=c),m}function lC(e,t){var r=oe(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Pl({s:lr(e[0]),e:lr(e[0])},r),Jh("rId"+t,r);var i=e[1].Target.indexOf("#"),u=i==-1?"":e[1].Target.slice(i+1);return ur(u||"",r),ur(e[1].Tooltip||"",r),ur("",r),r.slice(0,r.l)}function uC(){}function fC(e,t,r){var i=e.l+t,u=$g(e),s=e.read_shift(1),c=[u];if(c[2]=s,r.cellFormula){var h=$6(e,i-e.l,r);c[1]=h}else e.l=i;return c}function sC(e,t,r){var i=e.l+t,u=Hi(e),s=[u];if(r.cellFormula){var c=Z6(e,i-e.l,r);s[1]=c,e.l=i}else e.l=i;return s}function cC(e,t,r){r==null&&(r=oe(18));var i=_c(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(i.width||10)*256),r.write_shift(4,0);var u=0;return t.hidden&&(u|=1),typeof i.width=="number"&&(u|=2),t.level&&(u|=t.level<<8),r.write_shift(2,u),r}var M2=["left","right","top","bottom","header","footer"];function oC(e){var t={};return M2.forEach(function(r){t[r]=Hl(e)}),t}function hC(e,t){return t==null&&(t=oe(6*8)),b2(e),M2.forEach(function(r){Fi(e[r],t)}),t}function dC(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function mC(e,t,r){r==null&&(r=oe(30));var i=924;return(((t||{}).Views||[])[0]||{}).RTL&&(i|=32),r.write_shift(2,i),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function vC(e){var t=oe(24);return t.write_shift(4,4),t.write_shift(4,1),Pl(e,t),t}function xC(e,t){return t==null&&(t=oe(16*4+2)),t.write_shift(2,e.password?m2(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function pC(){}function gC(){}function EC(e,t,r,i,u,s,c){if(t.v===void 0)return!1;var h="";switch(t.t){case"b":h=t.v?"1":"0";break;case"d":t=jr(t),t.z=t.z||Pt[14],t.v=zr(Lr(t.v)),t.t="n";break;case"n":case"e":h=""+t.v;break;default:h=t.v;break}var m={r,c:i};switch(m.s=Za(u.cellXfs,t,u),t.l&&s["!links"].push([yt(m),t.l]),t.c&&s["!comments"].push([yt(m),t.c]),t.t){case"s":case"str":return u.bookSST?(h=id(u.Strings,t.v,u.revStrings),m.t="s",m.v=h,c?Ee(e,18,PR(t,m)):Ee(e,7,kR(t,m))):(m.t="str",c?Ee(e,17,QR(t,m)):Ee(e,6,KR(t,m))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?c?Ee(e,13,YR(t,m)):Ee(e,2,VR(t,m)):c?Ee(e,16,jR(t,m)):Ee(e,5,IR(t,m)),!0;case"b":return m.t="b",c?Ee(e,15,NR(t,m)):Ee(e,4,OR(t,m)),!0;case"e":return m.t="e",c?Ee(e,14,LR(t,m)):Ee(e,3,FR(t,m)),!0}return c?Ee(e,12,RR(t,m)):Ee(e,1,wR(t,m)),!0}function yC(e,t,r,i){var u=bt(t["!ref"]||"A1"),s,c="",h=[];Ee(e,145);var m=Array.isArray(t),d=u.e.r;t["!rows"]&&(d=Math.max(u.e.r,t["!rows"].length-1));for(var x=u.s.r;x<=d;++x){c=Er(x),pR(e,t,u,x);var E=!1;if(x<=u.e.r)for(var p=u.s.c;p<=u.e.c;++p){x===u.s.r&&(h[p]=wr(p)),s=h[p]+c;var g=m?(t[x]||[])[p]:t[s];if(!g){E=!1;continue}E=EC(e,g,x,p,i,t,E)}}Ee(e,146)}function _C(e,t){!t||!t["!merges"]||(Ee(e,177,aC(t["!merges"].length)),t["!merges"].forEach(function(r){Ee(e,176,nC(r))}),Ee(e,178))}function TC(e,t){!t||!t["!cols"]||(Ee(e,390),t["!cols"].forEach(function(r,i){r&&Ee(e,60,cC(i,r))}),Ee(e,391))}function SC(e,t){!t||!t["!ref"]||(Ee(e,648),Ee(e,649,vC(bt(t["!ref"]))),Ee(e,650))}function wC(e,t,r){t["!links"].forEach(function(i){if(i[1].Target){var u=gt(r,-1,i[1].Target.replace(/#.*$/,""),vt.HLINK);Ee(e,494,lC(i,u))}}),delete t["!links"]}function AC(e,t,r,i){if(t["!comments"].length>0){var u=gt(i,-1,"../drawings/vmlDrawing"+(r+1)+".vml",vt.VML);Ee(e,551,Jh("rId"+u)),t["!legacy"]=u}}function RC(e,t,r,i){if(t["!autofilter"]){var u=t["!autofilter"],s=typeof u.ref=="string"?u.ref:qt(u.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var c=r.Workbook.Names,h=tn(s);h.s.r==h.e.r&&(h.e.r=tn(t["!ref"]).e.r,s=qt(h));for(var m=0;m<c.length;++m){var d=c[m];if(d.Name=="_xlnm._FilterDatabase"&&d.Sheet==i){d.Ref="'"+r.SheetNames[i]+"'!"+s;break}}m==c.length&&c.push({Name:"_xlnm._FilterDatabase",Sheet:i,Ref:"'"+r.SheetNames[i]+"'!"+s}),Ee(e,161,Pl(bt(s))),Ee(e,162)}}function CC(e,t,r){Ee(e,133),Ee(e,137,mC(t,r)),Ee(e,138),Ee(e,134)}function OC(e,t){t["!protect"]&&Ee(e,535,xC(t["!protect"]))}function DC(e,t,r,i){var u=Ir(),s=r.SheetNames[e],c=r.Sheets[s]||{},h=s;try{r&&r.Workbook&&(h=r.Workbook.Sheets[e].CodeName||h)}catch{}var m=bt(c["!ref"]||"A1");if(m.e.c>16383||m.e.r>1048575){if(t.WTF)throw new Error("Range "+(c["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");m.e.c=Math.min(m.e.c,16383),m.e.r=Math.min(m.e.c,1048575)}return c["!links"]=[],c["!comments"]=[],Ee(u,129),(r.vbaraw||c["!outline"])&&Ee(u,147,TR(h,c["!outline"])),Ee(u,148,ER(m)),CC(u,c,r.Workbook),TC(u,c),yC(u,c,e,t),OC(u,c),RC(u,c,r,e),_C(u,c),wC(u,c,i),c["!margins"]&&Ee(u,476,hC(c["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&SC(u,c),AC(u,c,e,i),Ee(u,130),u.end()}function NC(e,t){e.l+=10;var r=Ar(e);return{name:r}}var bC=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function FC(e){return!e.Workbook||!e.Workbook.WBProps?"false":s3(e.Workbook.WBProps.date1904)?"true":"false"}var MC="][*?/\\".split("");function L2(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return MC.forEach(function(i){if(e.indexOf(i)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function LC(e,t,r){e.forEach(function(i,u){L2(i);for(var s=0;s<u;++s)if(i==e[s])throw new Error("Duplicate Sheet Name: "+i);if(r){var c=t[u]&&t[u].CodeName||i;if(c.charCodeAt(0)==95&&c.length>22)throw new Error("Bad Code Name: Worksheet"+c)}})}function BC(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];LC(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)nR(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}function B2(e){var t=[Kt];t[t.length]=Ne("workbook",null,{xmlns:kl[0],"xmlns:r":ir.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,i={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(bC.forEach(function(h){e.Workbook.WBProps[h[0]]!=null&&e.Workbook.WBProps[h[0]]!=h[1]&&(i[h[0]]=e.Workbook.WBProps[h[0]])}),e.Workbook.WBProps.CodeName&&(i.codeName=e.Workbook.WBProps.CodeName,delete i.CodeName)),t[t.length]=Ne("workbookPr",null,i);var u=e.Workbook&&e.Workbook.Sheets||[],s=0;if(u[0]&&u[0].Hidden){for(t[t.length]="<bookViews>",s=0;s!=e.SheetNames.length&&!(!u[s]||!u[s].Hidden);++s);s==e.SheetNames.length&&(s=0),t[t.length]='<workbookView firstSheet="'+s+'" activeTab="'+s+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",s=0;s!=e.SheetNames.length;++s){var c={name:Et(e.SheetNames[s].slice(0,31))};if(c.sheetId=""+(s+1),c["r:id"]="rId"+(s+1),u[s])switch(u[s].Hidden){case 1:c.state="hidden";break;case 2:c.state="veryHidden";break}t[t.length]=Ne("sheet",null,c)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(h){var m={name:h.Name};h.Comment&&(m.comment=h.Comment),h.Sheet!=null&&(m.localSheetId=""+h.Sheet),h.Hidden&&(m.hidden="1"),h.Ref&&(t[t.length]=Ne("definedName",Et(h.Ref),m))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function kC(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=gh(e),r.name=Ar(e),r}function UC(e,t){return t||(t=oe(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),Jh(e.strRelID,t),ur(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function PC(e,t){var r={},i=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var u=t>8?Ar(e):"";return u.length>0&&(r.CodeName=u),r.autoCompressPictures=!!(i&65536),r.backupFile=!!(i&64),r.checkCompatibility=!!(i&4096),r.date1904=!!(i&1),r.filterPrivacy=!!(i&8),r.hidePivotFieldList=!!(i&1024),r.promptedSolutions=!!(i&16),r.publishItems=!!(i&2048),r.refreshAllConnections=!!(i&262144),r.saveExternalLinkValues=!!(i&128),r.showBorderUnselectedTables=!!(i&4),r.showInkAnnotation=!!(i&32),r.showObjects=["all","placeholders","none"][i>>13&3],r.showPivotChartFilter=!!(i&32768),r.updateLinks=["userSet","never","always"][i>>8&3],r}function HC(e,t){t||(t=oe(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),Wg(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function IC(e,t,r){var i=e.l+t;e.l+=4,e.l+=1;var u=e.read_shift(4),s=F3(e),c=Q6(e,0,r),h=Zh(e);e.l=i;var m={Name:s,Ptg:c};return u<268435455&&(m.Sheet=u),h&&(m.Comment=h),m}function zC(e,t){Ee(e,143);for(var r=0;r!=t.SheetNames.length;++r){var i=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,u={Hidden:i,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};Ee(e,156,UC(u))}Ee(e,144)}function jC(e,t){t||(t=oe(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return ur("SheetJS",t),ur(Xs.version,t),ur(Xs.version,t),ur("7262",t),t.length>t.l?t.slice(0,t.l):t}function GC(e,t){t||(t=oe(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function VC(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,i=0,u=-1,s=-1;i<r.length;++i)!r[i]||!r[i].Hidden&&u==-1?u=i:r[i].Hidden==1&&s==-1&&(s=i);s>u||(Ee(e,135),Ee(e,158,GC(u)),Ee(e,136))}}function XC(e,t){var r=Ir();return Ee(r,131),Ee(r,128,jC()),Ee(r,153,HC(e.Workbook&&e.Workbook.WBProps||null)),VC(r,e),zC(r,e),Ee(r,132),r.end()}function YC(e,t,r){return(t.slice(-4)===".bin"?XC:B2)(e)}function WC(e,t,r,i,u){return(t.slice(-4)===".bin"?DC:F2)(e,r,i,u)}function qC(e,t,r){return(t.slice(-4)===".bin"?h8:p2)(e,r)}function KC(e,t,r){return(t.slice(-4)===".bin"?HA:d2)(e,r)}function $C(e,t,r){return(t.slice(-4)===".bin"?O8:T2)(e)}function QC(e){return(e.slice(-4)===".bin"?y8:y2)()}function ZC(e,t){var r=[];return e.Props&&r.push(q3(e.Props,t)),e.Custprops&&r.push(K3(e.Props,e.Custprops)),r.join("")}function JC(){return""}function eO(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(i,u){var s=[];s.push(Ne("NumberFormat",null,{"ss:Format":Et(Pt[i.numFmtId])}));var c={"ss:ID":"s"+(21+u)};r.push(Ne("Style",s.join(""),c))}),Ne("Styles",r.join(""))}function k2(e){return Ne("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+nd(e.Ref,{r:0,c:0})})}function tO(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],i=0;i<t.length;++i){var u=t[i];u.Sheet==null&&(u.Name.match(/^_xlfn\./)||r.push(k2(u)))}return Ne("Names",r.join(""))}function rO(e,t,r,i){if(!e||!((i||{}).Workbook||{}).Names)return"";for(var u=i.Workbook.Names,s=[],c=0;c<u.length;++c){var h=u[c];h.Sheet==r&&(h.Name.match(/^_xlfn\./)||s.push(k2(h)))}return s.join("")}function nO(e,t,r,i){if(!e)return"";var u=[];if(e["!margins"]&&(u.push("<PageSetup>"),e["!margins"].header&&u.push(Ne("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&u.push(Ne("Footer",null,{"x:Margin":e["!margins"].footer})),u.push(Ne("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),u.push("</PageSetup>")),i&&i.Workbook&&i.Workbook.Sheets&&i.Workbook.Sheets[r])if(i.Workbook.Sheets[r].Hidden)u.push(Ne("Visible",i.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var s=0;s<r&&!(i.Workbook.Sheets[s]&&!i.Workbook.Sheets[s].Hidden);++s);s==r&&u.push("<Selected/>")}return((((i||{}).Workbook||{}).Views||[])[0]||{}).RTL&&u.push("<DisplayRightToLeft/>"),e["!protect"]&&(u.push(gr("ProtectContents","True")),e["!protect"].objects&&u.push(gr("ProtectObjects","True")),e["!protect"].scenarios&&u.push(gr("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?u.push(gr("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&u.push(gr("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(c){e["!protect"][c[0]]&&u.push("<"+c[1]+"/>")})),u.length==0?"":Ne("WorksheetOptions",u.join(""),{xmlns:Zr.x})}function aO(e){return e.map(function(t){var r=f3(t.t||""),i=Ne("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return Ne("Comment",i,{"ss:Author":t.a})}).join("")}function iO(e,t,r,i,u,s,c){if(!e||e.v==null&&e.f==null)return"";var h={};if(e.f&&(h["ss:Formula"]="="+Et(nd(e.f,c))),e.F&&e.F.slice(0,t.length)==t){var m=lr(e.F.slice(t.length+1));h["ss:ArrayRange"]="RC:R"+(m.r==c.r?"":"["+(m.r-c.r)+"]")+"C"+(m.c==c.c?"":"["+(m.c-c.c)+"]")}if(e.l&&e.l.Target&&(h["ss:HRef"]=Et(e.l.Target),e.l.Tooltip&&(h["x:HRefScreenTip"]=Et(e.l.Tooltip))),r["!merges"])for(var d=r["!merges"],x=0;x!=d.length;++x)d[x].s.c!=c.c||d[x].s.r!=c.r||(d[x].e.c>d[x].s.c&&(h["ss:MergeAcross"]=d[x].e.c-d[x].s.c),d[x].e.r>d[x].s.r&&(h["ss:MergeDown"]=d[x].e.r-d[x].s.r));var E="",p="";switch(e.t){case"z":if(!i.sheetStubs)return"";break;case"n":E="Number",p=String(e.v);break;case"b":E="Boolean",p=e.v?"1":"0";break;case"e":E="Error",p=hf[e.v];break;case"d":E="DateTime",p=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Pt[14]);break;case"s":E="String",p=u3(e.v||"");break}var g=Za(i.cellXfs,e,i);h["ss:StyleID"]="s"+(21+g),h["ss:Index"]=c.c+1;var S=e.v!=null?p:"",y=e.t=="z"?"":'<Data ss:Type="'+E+'">'+S+"</Data>";return(e.c||[]).length>0&&(y+=aO(e.c)),Ne("Cell",y,h)}function lO(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=x2(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function uO(e,t,r,i){if(!e["!ref"])return"";var u=bt(e["!ref"]),s=e["!merges"]||[],c=0,h=[];e["!cols"]&&e["!cols"].forEach(function(w,D){td(w);var U=!!w.width,B=_c(D,w),X={"ss:Index":D+1};U&&(X["ss:Width"]=ec(B.width)),w.hidden&&(X["ss:Hidden"]="1"),h.push(Ne("Column",null,X))});for(var m=Array.isArray(e),d=u.s.r;d<=u.e.r;++d){for(var x=[lO(d,(e["!rows"]||[])[d])],E=u.s.c;E<=u.e.c;++E){var p=!1;for(c=0;c!=s.length;++c)if(!(s[c].s.c>E)&&!(s[c].s.r>d)&&!(s[c].e.c<E)&&!(s[c].e.r<d)){(s[c].s.c!=E||s[c].s.r!=d)&&(p=!0);break}if(!p){var g={r:d,c:E},S=yt(g),y=m?(e[d]||[])[E]:e[S];x.push(iO(y,S,e,t,r,i,g))}}x.push("</Row>"),x.length>2&&h.push(x.join(""))}return h.join("")}function fO(e,t,r){var i=[],u=r.SheetNames[e],s=r.Sheets[u],c=s?rO(s,t,e,r):"";return c.length>0&&i.push("<Names>"+c+"</Names>"),c=s?uO(s,t,e,r):"",c.length>0&&i.push("<Table>"+c+"</Table>"),i.push(nO(s,t,e,r)),i.join("")}function sO(e,t){t||(t={}),e.SSF||(e.SSF=jr(Pt)),e.SSF&&(xc(),vc(e.SSF),t.revssf=pc(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Za(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(ZC(e,t)),r.push(JC()),r.push(""),r.push("");for(var i=0;i<e.SheetNames.length;++i)r.push(Ne("Worksheet",fO(i,t,e),{"ss:Name":Et(e.SheetNames[i])}));return r[2]=eO(e,t),r[3]=tO(e),Kt+Ne("Workbook",r.join(""),{xmlns:Zr.ss,"xmlns:o":Zr.o,"xmlns:x":Zr.x,"xmlns:ss":Zr.ss,"xmlns:dt":Zr.dt,"xmlns:html":Zr.html})}var eh={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function cO(e,t){var r=[],i=[],u=[],s=0,c,h=Px(Qx,"n"),m=Px(Zx,"n");if(e.Props)for(c=yr(e.Props),s=0;s<c.length;++s)(Object.prototype.hasOwnProperty.call(h,c[s])?r:Object.prototype.hasOwnProperty.call(m,c[s])?i:u).push([c[s],e.Props[c[s]]]);if(e.Custprops)for(c=yr(e.Custprops),s=0;s<c.length;++s)Object.prototype.hasOwnProperty.call(e.Props||{},c[s])||(Object.prototype.hasOwnProperty.call(h,c[s])?r:Object.prototype.hasOwnProperty.call(m,c[s])?i:u).push([c[s],e.Custprops[c[s]]]);var d=[];for(s=0;s<u.length;++s)l2.indexOf(u[s][0])>-1||n2.indexOf(u[s][0])>-1||u[s][1]!=null&&d.push(u[s]);i.length&&Ct.utils.cfb_add(t,"/SummaryInformation",np(i,eh.SI,m,Zx)),(r.length||d.length)&&Ct.utils.cfb_add(t,"/DocumentSummaryInformation",np(r,eh.DSI,h,Qx,d.length?d:null,eh.UDI))}function oO(e,t){var r=t,i=Ct.utils.cfb_new({root:"R"}),u="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":u="/Workbook",r.biff=8;break;case"biff5":u="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return Ct.utils.cfb_add(i,u,U2(e,r)),r.biff==8&&(e.Props||e.Custprops)&&cO(e,i),r.biff==8&&e.vbaraw&&D8(i,Ct.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),i}var hO={0:{f:vR},1:{f:SR},2:{f:GR},3:{f:bR},4:{f:CR},5:{f:HR},6:{f:qR},7:{f:BR},8:{f:tC},9:{f:eC},10:{f:ZR},11:{f:JR},12:{f:AR},13:{f:XR},14:{f:MR},15:{f:DR},16:{f:zR},17:{f:$R},18:{f:UR},19:{f:Qh},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:IC},40:{},42:{},43:{f:qA},44:{f:YA},45:{f:QA},46:{f:JA},47:{f:ZA},48:{},49:{f:A3},50:{},51:{f:v8},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:RA},62:{f:WR},63:{f:_8},64:{f:pC},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:jn,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:dC},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:_R},148:{f:gR,p:16},151:{f:uC},152:{},153:{f:PC},154:{},155:{},156:{f:kC},157:{},158:{},159:{T:1,f:kA},160:{T:-1},161:{T:1,f:Hi},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:rC},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:d8},336:{T:-1},337:{f:g8,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:gh},357:{},358:{},359:{},360:{T:1},361:{},362:{f:yA},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:fC},427:{f:sC},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:oC},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:yR},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:iC},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:gh},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:R8},633:{T:1},634:{T:-1},635:{T:1,f:w8},636:{T:-1},637:{f:D3},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:NC},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:gC},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function be(e,t,r,i){var u=t;if(!isNaN(u)){var s=i||(r||[]).length||0,c=e.next(4);c.write_shift(2,u),c.write_shift(2,s),s>0&&qh(r)&&e.push(r)}}function dO(e,t,r,i){var u=(r||[]).length||0;if(u<=8224)return be(e,t,r,u);var s=t;if(!isNaN(s)){for(var c=r.parts||[],h=0,m=0,d=0;d+(c[h]||8224)<=8224;)d+=c[h]||8224,h++;var x=e.next(4);for(x.write_shift(2,s),x.write_shift(2,d),e.push(r.slice(m,m+d)),m+=d;m<u;){for(x=e.next(4),x.write_shift(2,60),d=0;d+(c[h]||8224)<=8224;)d+=c[h]||8224,h++;x.write_shift(2,d),e.push(r.slice(m,m+d)),m+=d}}}function mf(e,t,r){return e||(e=oe(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function mO(e,t,r,i){var u=oe(9);return mf(u,e,t),f2(r,i||"b",u),u}function vO(e,t,r){var i=oe(8+2*r.length);return mf(i,e,t),i.write_shift(1,r.length),i.write_shift(r.length,r,"sbcs"),i.l<i.length?i.slice(0,i.l):i}function xO(e,t,r,i){if(t.v!=null)switch(t.t){case"d":case"n":var u=t.t=="d"?zr(Lr(t.v)):t.v;u==(u|0)&&u>=0&&u<65536?be(e,2,NA(r,i,u)):be(e,3,DA(r,i,u));return;case"b":case"e":be(e,5,mO(r,i,t.v,t.t));return;case"s":case"str":be(e,4,vO(r,i,(t.v||"").slice(0,255)));return}be(e,1,mf(null,r,i))}function pO(e,t,r,i){var u=Array.isArray(t),s=bt(t["!ref"]||"A1"),c,h="",m=[];if(s.e.c>255||s.e.r>16383){if(i.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");s.e.c=Math.min(s.e.c,255),s.e.r=Math.min(s.e.c,16383),c=qt(s)}for(var d=s.s.r;d<=s.e.r;++d){h=Er(d);for(var x=s.s.c;x<=s.e.c;++x){d===s.s.r&&(m[x]=wr(x)),c=m[x]+h;var E=u?(t[d]||[])[x]:t[c];E&&xO(e,E,d,x)}}}function gO(e,t){for(var r=t||{},i=Ir(),u=0,s=0;s<e.SheetNames.length;++s)e.SheetNames[s]==r.sheet&&(u=s);if(u==0&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return be(i,r.biff==4?1033:r.biff==3?521:9,ed(e,16,r)),pO(i,e.Sheets[e.SheetNames[u]],u,r),be(i,10),i.end()}function EO(e,t,r){be(e,49,hA({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},r))}function yO(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(i){for(var u=i[0];u<=i[1];++u)t[u]!=null&&be(e,1054,vA(u,t[u],r))})}function _O(e,t){var r=oe(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),be(e,2151,r),r=oe(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),o2(bt(t["!ref"]||"A1"),r),r.write_shift(4,4),be(e,2152,r)}function TO(e,t){for(var r=0;r<16;++r)be(e,224,ip({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(i){be(e,224,ip(i,0,t))})}function SO(e,t){for(var r=0;r<t["!links"].length;++r){var i=t["!links"][r];be(e,440,SA(i)),i[1].Tooltip&&be(e,2048,wA(i))}delete t["!links"]}function wO(e,t){if(t){var r=0;t.forEach(function(i,u){++r<=256&&i&&be(e,125,CA(_c(u,i),u))})}}function AO(e,t,r,i,u){var s=16+Za(u.cellXfs,t,u);if(t.v==null&&!t.bf){be(e,513,Mi(r,i,s));return}if(t.bf)be(e,6,K6(t,r,i,u,s));else switch(t.t){case"d":case"n":var c=t.t=="d"?zr(Lr(t.v)):t.v;be(e,515,EA(r,i,c,s));break;case"b":case"e":be(e,517,gA(r,i,t.v,s,u,t.t));break;case"s":case"str":if(u.bookSST){var h=id(u.Strings,t.v,u.revStrings);be(e,253,dA(r,i,h,s))}else be(e,516,mA(r,i,(t.v||"").slice(0,255),s,u));break;default:be(e,513,Mi(r,i,s))}}function RO(e,t,r){var i=Ir(),u=r.SheetNames[e],s=r.Sheets[u]||{},c=(r||{}).Workbook||{},h=(c.Sheets||[])[e]||{},m=Array.isArray(s),d=t.biff==8,x,E="",p=[],g=bt(s["!ref"]||"A1"),S=d?65536:16384;if(g.e.c>255||g.e.r>=S){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:IV16384");g.e.c=Math.min(g.e.c,255),g.e.r=Math.min(g.e.c,S-1)}be(i,2057,ed(r,16,t)),be(i,13,gn(1)),be(i,12,gn(100)),be(i,15,Mr(!0)),be(i,17,Mr(!1)),be(i,16,Fi(.001)),be(i,95,Mr(!0)),be(i,42,Mr(!1)),be(i,43,Mr(!1)),be(i,130,gn(1)),be(i,128,pA()),be(i,131,Mr(!1)),be(i,132,Mr(!1)),d&&wO(i,s["!cols"]),be(i,512,xA(g,t)),d&&(s["!links"]=[]);for(var y=g.s.r;y<=g.e.r;++y){E=Er(y);for(var w=g.s.c;w<=g.e.c;++w){y===g.s.r&&(p[w]=wr(w)),x=p[w]+E;var D=m?(s[y]||[])[w]:s[x];D&&(AO(i,D,y,w,t),d&&D.l&&s["!links"].push([x,D.l]))}}var U=h.CodeName||h.name||u;return d&&be(i,574,oA((c.Views||[])[0])),d&&(s["!merges"]||[]).length&&be(i,229,TA(s["!merges"])),d&&SO(i,s),be(i,442,c2(U)),d&&_O(i,s),be(i,10),i.end()}function CO(e,t,r){var i=Ir(),u=(e||{}).Workbook||{},s=u.Sheets||[],c=u.WBProps||{},h=r.biff==8,m=r.biff==5;if(be(i,2057,ed(e,5,r)),r.bookType=="xla"&&be(i,135),be(i,225,h?gn(1200):null),be(i,193,Z3(2)),m&&be(i,191),m&&be(i,192),be(i,226),be(i,92,uA("SheetJS",r)),be(i,66,gn(h?1200:1252)),h&&be(i,353,gn(0)),h&&be(i,448),be(i,317,OA(e.SheetNames.length)),h&&e.vbaraw&&be(i,211),h&&e.vbaraw){var d=c.CodeName||"ThisWorkbook";be(i,442,c2(d))}be(i,156,gn(17)),be(i,25,Mr(!1)),be(i,18,Mr(!1)),be(i,19,gn(0)),h&&be(i,431,Mr(!1)),h&&be(i,444,gn(0)),be(i,61,cA()),be(i,64,Mr(!1)),be(i,141,gn(0)),be(i,34,Mr(FC(e)=="true")),be(i,14,Mr(!0)),h&&be(i,439,Mr(!1)),be(i,218,gn(0)),EO(i,e,r),yO(i,e.SSF,r),TO(i,r),h&&be(i,352,Mr(!1));var x=i.end(),E=Ir();h&&be(E,140,AA()),h&&r.Strings&&dO(E,252,sA(r.Strings)),be(E,10);var p=E.end(),g=Ir(),S=0,y=0;for(y=0;y<e.SheetNames.length;++y)S+=(h?12:11)+(h?2:1)*e.SheetNames[y].length;var w=x.length+S+p.length;for(y=0;y<e.SheetNames.length;++y){var D=s[y]||{};be(g,133,fA({pos:w,hs:D.Hidden||0,dt:0,name:e.SheetNames[y]},r)),w+=t[y].length}var U=g.end();if(S!=U.length)throw new Error("BS8 "+S+" != "+U.length);var B=[];return x.length&&B.push(x),U.length&&B.push(U),p.length&&B.push(p),pr(B)}function OO(e,t){var r=t||{},i=[];e&&!e.SSF&&(e.SSF=jr(Pt)),e&&e.SSF&&(xc(),vc(e.SSF),r.revssf=pc(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,ld(r),r.cellXfs=[],Za(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var u=0;u<e.SheetNames.length;++u)i[i.length]=RO(u,r,e);return i.unshift(CO(e,i,r)),pr(i)}function U2(e,t){for(var r=0;r<=e.SheetNames.length;++r){var i=e.Sheets[e.SheetNames[r]];if(!(!i||!i["!ref"])){var u=tn(i["!ref"]);u.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255).  Data may be lost.")}}var s=t||{};switch(s.biff||2){case 8:case 5:return OO(e,t);case 4:case 3:case 2:return gO(e,t)}throw new Error("invalid type "+s.bookType+" for BIFF")}function DO(e,t,r,i){for(var u=e["!merges"]||[],s=[],c=t.s.c;c<=t.e.c;++c){for(var h=0,m=0,d=0;d<u.length;++d)if(!(u[d].s.r>r||u[d].s.c>c)&&!(u[d].e.r<r||u[d].e.c<c)){if(u[d].s.r<r||u[d].s.c<c){h=-1;break}h=u[d].e.r-u[d].s.r+1,m=u[d].e.c-u[d].s.c+1;break}if(!(h<0)){var x=yt({r,c}),E=i.dense?(e[r]||[])[c]:e[x],p=E&&E.v!=null&&(E.h||l3(E.w||(ma(E),E.w)||""))||"",g={};h>1&&(g.rowspan=h),m>1&&(g.colspan=m),i.editable?p='<span contenteditable="true">'+p+"</span>":E&&(g["data-t"]=E&&E.t||"z",E.v!=null&&(g["data-v"]=E.v),E.z!=null&&(g["data-z"]=E.z),E.l&&(E.l.Target||"#").charAt(0)!="#"&&(p='<a href="'+E.l.Target+'">'+p+"</a>")),g.id=(i.id||"sjs")+"-"+x,s.push(Ne("td",p,g))}}var S="<tr>";return S+s.join("")+"</tr>"}var NO='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',bO="</body></html>";function FO(e,t,r){var i=[];return i.join("")+"<table"+(r.id?' id="'+r.id+'"':"")+">"}function P2(e,t){var r=t||{},i=r.header!=null?r.header:NO,u=r.footer!=null?r.footer:bO,s=[i],c=tn(e["!ref"]);r.dense=Array.isArray(e),s.push(FO(e,c,r));for(var h=c.s.r;h<=c.e.r;++h)s.push(DO(e,c,h,r));return s.push("</table>"+u),s.join("")}function H2(e,t,r){var i=r||{},u=0,s=0;if(i.origin!=null)if(typeof i.origin=="number")u=i.origin;else{var c=typeof i.origin=="string"?lr(i.origin):i.origin;u=c.r,s=c.c}var h=t.getElementsByTagName("tr"),m=Math.min(i.sheetRows||1e7,h.length),d={s:{r:0,c:0},e:{r:u,c:s}};if(e["!ref"]){var x=tn(e["!ref"]);d.s.r=Math.min(d.s.r,x.s.r),d.s.c=Math.min(d.s.c,x.s.c),d.e.r=Math.max(d.e.r,x.e.r),d.e.c=Math.max(d.e.c,x.e.c),u==-1&&(d.e.r=u=x.e.r+1)}var E=[],p=0,g=e["!rows"]||(e["!rows"]=[]),S=0,y=0,w=0,D=0,U=0,B=0;for(e["!cols"]||(e["!cols"]=[]);S<h.length&&y<m;++S){var X=h[S];if(hp(X)){if(i.display)continue;g[y]={hidden:!0}}var M=X.children;for(w=D=0;w<M.length;++w){var fe=M[w];if(!(i.display&&hp(fe))){var G=fe.hasAttribute("data-v")?fe.getAttribute("data-v"):fe.hasAttribute("v")?fe.getAttribute("v"):c3(fe.innerHTML),Z=fe.getAttribute("data-z")||fe.getAttribute("z");for(p=0;p<E.length;++p){var I=E[p];I.s.c==D+s&&I.s.r<y+u&&y+u<=I.e.r&&(D=I.e.c+1-s,p=-1)}B=+fe.getAttribute("colspan")||1,((U=+fe.getAttribute("rowspan")||1)>1||B>1)&&E.push({s:{r:y+u,c:D+s},e:{r:y+u+(U||1)-1,c:D+s+(B||1)-1}});var ee={t:"s",v:G},ce=fe.getAttribute("data-t")||fe.getAttribute("t")||"";G!=null&&(G.length==0?ee.t=ce||"z":i.raw||G.trim().length==0||ce=="s"||(G==="TRUE"?ee={t:"b",v:!0}:G==="FALSE"?ee={t:"b",v:!1}:isNaN(ca(G))?isNaN(Ju(G).getDate())||(ee={t:"d",v:Lr(G)},i.cellDates||(ee={t:"n",v:zr(ee.v)}),ee.z=i.dateNF||Pt[14]):ee={t:"n",v:ca(G)})),ee.z===void 0&&Z!=null&&(ee.z=Z);var ve="",Re=fe.getElementsByTagName("A");if(Re&&Re.length)for(var Ke=0;Ke<Re.length&&!(Re[Ke].hasAttribute("href")&&(ve=Re[Ke].getAttribute("href"),ve.charAt(0)!="#"));++Ke);ve&&ve.charAt(0)!="#"&&(ee.l={Target:ve}),i.dense?(e[y+u]||(e[y+u]=[]),e[y+u][D+s]=ee):e[yt({c:D+s,r:y+u})]=ee,d.e.c<D+s&&(d.e.c=D+s),D+=B}}++y}return E.length&&(e["!merges"]=(e["!merges"]||[]).concat(E)),d.e.r=Math.max(d.e.r,y-1+u),e["!ref"]=qt(d),y>=m&&(e["!fullref"]=qt((d.e.r=h.length-S+y-1+u,d))),e}function I2(e,t){var r=t||{},i=r.dense?[]:{};return H2(i,e,t)}function MO(e,t){return Bi(I2(e,t),t)}function hp(e){var t="",r=LO(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function LO(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var BO=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+tf({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return Kt+t}}(),dp=function(){var e=function(s){return Et(s).replace(/  +/g,function(c){return'<text:s text:c="'+c.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=`          <table:table-cell />
-`,r=`          <table:covered-table-cell/>
-`,i=function(s,c,h){var m=[];m.push('      <table:table table:name="'+Et(c.SheetNames[h])+`" table:style-name="ta1">
-`);var d=0,x=0,E=tn(s["!ref"]||"A1"),p=s["!merges"]||[],g=0,S=Array.isArray(s);if(s["!cols"])for(x=0;x<=E.e.c;++x)m.push("        <table:table-column"+(s["!cols"][x]?' table:style-name="co'+s["!cols"][x].ods+'"':"")+`></table:table-column>
-`);var y="",w=s["!rows"]||[];for(d=0;d<E.s.r;++d)y=w[d]?' table:style-name="ro'+w[d].ods+'"':"",m.push("        <table:table-row"+y+`></table:table-row>
-`);for(;d<=E.e.r;++d){for(y=w[d]?' table:style-name="ro'+w[d].ods+'"':"",m.push("        <table:table-row"+y+`>
-`),x=0;x<E.s.c;++x)m.push(t);for(;x<=E.e.c;++x){var D=!1,U={},B="";for(g=0;g!=p.length;++g)if(!(p[g].s.c>x)&&!(p[g].s.r>d)&&!(p[g].e.c<x)&&!(p[g].e.r<d)){(p[g].s.c!=x||p[g].s.r!=d)&&(D=!0),U["table:number-columns-spanned"]=p[g].e.c-p[g].s.c+1,U["table:number-rows-spanned"]=p[g].e.r-p[g].s.r+1;break}if(D){m.push(r);continue}var X=yt({r:d,c:x}),M=S?(s[d]||[])[x]:s[X];if(M&&M.f&&(U["table:formula"]=Et(tR(M.f)),M.F&&M.F.slice(0,X.length)==X)){var fe=tn(M.F);U["table:number-matrix-columns-spanned"]=fe.e.c-fe.s.c+1,U["table:number-matrix-rows-spanned"]=fe.e.r-fe.s.r+1}if(!M){m.push(t);continue}switch(M.t){case"b":B=M.v?"TRUE":"FALSE",U["office:value-type"]="boolean",U["office:boolean-value"]=M.v?"true":"false";break;case"n":B=M.w||String(M.v||0),U["office:value-type"]="float",U["office:value"]=M.v||0;break;case"s":case"str":B=M.v==null?"":M.v,U["office:value-type"]="string";break;case"d":B=M.w||Lr(M.v).toISOString(),U["office:value-type"]="date",U["office:date-value"]=Lr(M.v).toISOString(),U["table:style-name"]="ce1";break;default:m.push(t);continue}var G=e(B);if(M.l&&M.l.Target){var Z=M.l.Target;Z=Z.charAt(0)=="#"?"#"+rR(Z.slice(1)):Z,Z.charAt(0)!="#"&&!Z.match(/^\w+:/)&&(Z="../"+Z),G=Ne("text:a",G,{"xlink:href":Z.replace(/&/g,"&amp;")})}m.push("          "+Ne("table:table-cell",Ne("text:p",G,{}),U)+`
-`)}m.push(`        </table:table-row>
-`)}return m.push(`      </table:table>
-`),m.join("")},u=function(s,c){s.push(` <office:automatic-styles>
-`),s.push(`  <number:date-style style:name="N37" number:automatic-order="true">
-`),s.push(`   <number:month number:style="long"/>
-`),s.push(`   <number:text>/</number:text>
-`),s.push(`   <number:day number:style="long"/>
-`),s.push(`   <number:text>/</number:text>
-`),s.push(`   <number:year/>
-`),s.push(`  </number:date-style>
-`);var h=0;c.SheetNames.map(function(d){return c.Sheets[d]}).forEach(function(d){if(d&&d["!cols"]){for(var x=0;x<d["!cols"].length;++x)if(d["!cols"][x]){var E=d["!cols"][x];if(E.width==null&&E.wpx==null&&E.wch==null)continue;td(E),E.ods=h;var p=d["!cols"][x].wpx+"px";s.push('  <style:style style:name="co'+h+`" style:family="table-column">
-`),s.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+p+`"/>
-`),s.push(`  </style:style>
-`),++h}}});var m=0;c.SheetNames.map(function(d){return c.Sheets[d]}).forEach(function(d){if(d&&d["!rows"]){for(var x=0;x<d["!rows"].length;++x)if(d["!rows"][x]){d["!rows"][x].ods=m;var E=d["!rows"][x].hpx+"px";s.push('  <style:style style:name="ro'+m+`" style:family="table-row">
-`),s.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+E+`"/>
-`),s.push(`  </style:style>
-`),++m}}}),s.push(`  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
-`),s.push(`   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
-`),s.push(`  </style:style>
-`),s.push(`  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
-`),s.push(` </office:automatic-styles>
-`)};return function(c,h){var m=[Kt],d=tf({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),x=tf({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});h.bookType=="fods"?(m.push("<office:document"+d+x+`>
-`),m.push(t2().replace(/office:document-meta/g,"office:meta"))):m.push("<office:document-content"+d+`>
-`),u(m,c),m.push(`  <office:body>
-`),m.push(`    <office:spreadsheet>
-`);for(var E=0;E!=c.SheetNames.length;++E)m.push(i(c.Sheets[c.SheetNames[E]],c,E));return m.push(`    </office:spreadsheet>
-`),m.push(`  </office:body>
-`),h.bookType=="fods"?m.push("</office:document>"):m.push("</office:document-content>"),m.join("")}}();function z2(e,t){if(t.bookType=="fods")return dp(e,t);var r=Vh(),i="",u=[],s=[];return i="mimetype",at(r,i,"application/vnd.oasis.opendocument.spreadsheet"),i="content.xml",at(r,i,dp(e,t)),u.push([i,"text/xml"]),s.push([i,"ContentFile"]),i="styles.xml",at(r,i,BO(e,t)),u.push([i,"text/xml"]),s.push([i,"StylesFile"]),i="meta.xml",at(r,i,Kt+t2()),u.push([i,"text/xml"]),s.push([i,"MetadataFile"]),i="manifest.rdf",at(r,i,W3(s)),u.push([i,"application/rdf+xml"]),i="META-INF/manifest.xml",at(r,i,X3(u)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function nc(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function kO(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):Dn(ef(e))}function UO(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var i=0;i<t.length;++i)if(e[r+i]!=t[i])continue e;return!0}return!1}function $a(e){var t=e.reduce(function(u,s){return u+s.length},0),r=new Uint8Array(t),i=0;return e.forEach(function(u){r.set(u,i),i+=u.length}),r}function PO(e,t,r){var i=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,u=r/Math.pow(10,i-6176);e[t+15]|=i>>7,e[t+14]|=(i&127)<<1;for(var s=0;u>=1;++s,u/=256)e[t+s]=u&255;e[t+15]|=r>=0?0:128}function rf(e,t){var r=t?t[0]:0,i=e[r]&127;e:if(e[r++]>=128&&(i|=(e[r]&127)<<7,e[r++]<128||(i|=(e[r]&127)<<14,e[r++]<128)||(i|=(e[r]&127)<<21,e[r++]<128)||(i+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(i+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(i+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),i}function pt(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function Fl(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function Jt(e){for(var t=[],r=[0];r[0]<e.length;){var i=r[0],u=rf(e,r),s=u&7;u=Math.floor(u/8);var c=0,h;if(u==0)break;switch(s){case 0:{for(var m=r[0];e[r[0]++]>=128;);h=e.slice(m,r[0])}break;case 5:c=4,h=e.slice(r[0],r[0]+c),r[0]+=c;break;case 1:c=8,h=e.slice(r[0],r[0]+c),r[0]+=c;break;case 2:c=rf(e,r),h=e.slice(r[0],r[0]+c),r[0]+=c;break;case 3:case 4:default:throw new Error("PB Type ".concat(s," for Field ").concat(u," at offset ").concat(i))}var d={data:h,type:s};t[u]==null?t[u]=[d]:t[u].push(d)}return t}function vr(e){var t=[];return e.forEach(function(r,i){r.forEach(function(u){u.data&&(t.push(pt(i*8+u.type)),u.type==2&&t.push(pt(u.data.length)),t.push(u.data))})}),$a(t)}function Rn(e){for(var t,r=[],i=[0];i[0]<e.length;){var u=rf(e,i),s=Jt(e.slice(i[0],i[0]+u));i[0]+=u;var c={id:Fl(s[1][0].data),messages:[]};s[2].forEach(function(h){var m=Jt(h.data),d=Fl(m[3][0].data);c.messages.push({meta:m,data:e.slice(i[0],i[0]+d)}),i[0]+=d}),(t=s[3])!=null&&t[0]&&(c.merge=Fl(s[3][0].data)>>>0>0),r.push(c)}return r}function Sl(e){var t=[];return e.forEach(function(r){var i=[];i[1]=[{data:pt(r.id),type:0}],i[2]=[],r.merge!=null&&(i[3]=[{data:pt(+!!r.merge),type:0}]);var u=[];r.messages.forEach(function(c){u.push(c.data),c.meta[3]=[{type:0,data:pt(c.data.length)}],i[2].push({data:vr(c.meta),type:2})});var s=vr(i);t.push(pt(s.length)),t.push(s),u.forEach(function(c){return t.push(c)})}),$a(t)}function HO(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],i=rf(t,r),u=[];r[0]<t.length;){var s=t[r[0]]&3;if(s==0){var c=t[r[0]++]>>2;if(c<60)++c;else{var h=c-59;c=t[r[0]],h>1&&(c|=t[r[0]+1]<<8),h>2&&(c|=t[r[0]+2]<<16),h>3&&(c|=t[r[0]+3]<<24),c>>>=0,c++,r[0]+=h}u.push(t.slice(r[0],r[0]+c)),r[0]+=c;continue}else{var m=0,d=0;if(s==1?(d=(t[r[0]]>>2&7)+4,m=(t[r[0]++]&224)<<3,m|=t[r[0]++]):(d=(t[r[0]++]>>2)+1,s==2?(m=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(m=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),u=[$a(u)],m==0)throw new Error("Invalid offset 0");if(m>u[0].length)throw new Error("Invalid offset beyond length");if(d>=m)for(u.push(u[0].slice(-m)),d-=m;d>=u[u.length-1].length;)u.push(u[u.length-1]),d-=u[u.length-1].length;u.push(u[0].slice(-m,-m+d))}}var x=$a(u);if(x.length!=i)throw new Error("Unexpected length: ".concat(x.length," != ").concat(i));return x}function Cn(e){for(var t=[],r=0;r<e.length;){var i=e[r++],u=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(HO(i,e.slice(r,r+u))),r+=u}if(r!==e.length)throw new Error("data is not a valid framed stream!");return $a(t)}function wl(e){for(var t=[],r=0;r<e.length;){var i=Math.min(e.length-r,268435455),u=new Uint8Array(4);t.push(u);var s=pt(i),c=s.length;t.push(s),i<=60?(c++,t.push(new Uint8Array([i-1<<2]))):i<=256?(c+=2,t.push(new Uint8Array([240,i-1&255]))):i<=65536?(c+=3,t.push(new Uint8Array([244,i-1&255,i-1>>8&255]))):i<=16777216?(c+=4,t.push(new Uint8Array([248,i-1&255,i-1>>8&255,i-1>>16&255]))):i<=4294967296&&(c+=5,t.push(new Uint8Array([252,i-1&255,i-1>>8&255,i-1>>16&255,i-1>>>24&255]))),t.push(e.slice(r,r+i)),c+=i,u[0]=0,u[1]=c&255,u[2]=c>>8&255,u[3]=c>>16&255,r+=i}return $a(t)}function th(e,t){var r=new Uint8Array(32),i=nc(r),u=12,s=0;switch(r[0]=5,e.t){case"n":r[1]=2,PO(r,u,e.v),s|=1,u+=16;break;case"b":r[1]=6,i.setFloat64(u,e.v?1:0,!0),s|=2,u+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,i.setUint32(u,t.indexOf(e.v),!0),s|=8,u+=4;break;default:throw"unsupported cell type "+e.t}return i.setUint32(8,s,!0),r.slice(0,u)}function rh(e,t){var r=new Uint8Array(32),i=nc(r),u=12,s=0;switch(r[0]=3,e.t){case"n":r[2]=2,i.setFloat64(u,e.v,!0),s|=32,u+=8;break;case"b":r[2]=6,i.setFloat64(u,e.v?1:0,!0),s|=32,u+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,i.setUint32(u,t.indexOf(e.v),!0),s|=16,u+=4;break;default:throw"unsupported cell type "+e.t}return i.setUint32(4,s,!0),r.slice(0,u)}function za(e){var t=Jt(e);return rf(t[1][0].data)}function IO(e,t,r){var i,u,s,c;if(!((i=e[6])!=null&&i[0])||!((u=e[7])!=null&&u[0]))throw"Mutation only works on post-BNC storages!";var h=((c=(s=e[8])==null?void 0:s[0])==null?void 0:c.data)&&Fl(e[8][0].data)>0||!1;if(h)throw"Math only works with normal offsets";for(var m=0,d=nc(e[7][0].data),x=0,E=[],p=nc(e[4][0].data),g=0,S=[],y=0;y<t.length;++y){if(t[y]==null){d.setUint16(y*2,65535,!0),p.setUint16(y*2,65535);continue}d.setUint16(y*2,x,!0),p.setUint16(y*2,g,!0);var w,D;switch(typeof t[y]){case"string":w=th({t:"s",v:t[y]},r),D=rh({t:"s",v:t[y]},r);break;case"number":w=th({t:"n",v:t[y]},r),D=rh({t:"n",v:t[y]},r);break;case"boolean":w=th({t:"b",v:t[y]},r),D=rh({t:"b",v:t[y]},r);break;default:throw new Error("Unsupported value "+t[y])}E.push(w),x+=w.length,S.push(D),g+=D.length,++m}for(e[2][0].data=pt(m);y<e[7][0].data.length/2;++y)d.setUint16(y*2,65535,!0),p.setUint16(y*2,65535,!0);return e[6][0].data=$a(E),e[3][0].data=$a(S),m}function zO(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var i=tn(r["!ref"]);i.s.r=i.s.c=0;var u=!1;i.e.c>9&&(u=!0,i.e.c=9),i.e.r>49&&(u=!0,i.e.r=49),u&&console.error("The Numbers writer is currently limited to ".concat(qt(i)));var s=ac(r,{range:i,header:1}),c=["~Sh33tJ5~"];s.forEach(function(j){return j.forEach(function(k){typeof k=="string"&&c.push(k)})});var h={},m=[],d=Ct.read(t.numbers,{type:"base64"});d.FileIndex.map(function(j,k){return[j,d.FullPaths[k]]}).forEach(function(j){var k=j[0],H=j[1];if(k.type==2&&k.name.match(/\.iwa/)){var ie=k.content,Fe=Cn(ie),Ce=Rn(Fe);Ce.forEach(function(_e){m.push(_e.id),h[_e.id]={deps:[],location:H,type:Fl(_e.messages[0].meta[1][0].data)}})}}),m.sort(function(j,k){return j-k});var x=m.filter(function(j){return j>1}).map(function(j){return[j,pt(j)]});d.FileIndex.map(function(j,k){return[j,d.FullPaths[k]]}).forEach(function(j){var k=j[0];if(j[1],!!k.name.match(/\.iwa/)){var H=Rn(Cn(k.content));H.forEach(function(ie){ie.messages.forEach(function(Fe){x.forEach(function(Ce){ie.messages.some(function(_e){return Fl(_e.meta[1][0].data)!=11006&&UO(_e.data,Ce[1])})&&h[Ce[0]].deps.push(ie.id)})})})}});for(var E=Ct.find(d,h[1].location),p=Rn(Cn(E.content)),g,S=0;S<p.length;++S){var y=p[S];y.id==1&&(g=y)}var w=za(Jt(g.messages[0].data)[1][0].data);for(E=Ct.find(d,h[w].location),p=Rn(Cn(E.content)),S=0;S<p.length;++S)y=p[S],y.id==w&&(g=y);for(w=za(Jt(g.messages[0].data)[2][0].data),E=Ct.find(d,h[w].location),p=Rn(Cn(E.content)),S=0;S<p.length;++S)y=p[S],y.id==w&&(g=y);for(w=za(Jt(g.messages[0].data)[2][0].data),E=Ct.find(d,h[w].location),p=Rn(Cn(E.content)),S=0;S<p.length;++S)y=p[S],y.id==w&&(g=y);var D=Jt(g.messages[0].data);{D[6][0].data=pt(i.e.r+1),D[7][0].data=pt(i.e.c+1);var U=za(D[46][0].data),B=Ct.find(d,h[U].location),X=Rn(Cn(B.content));{for(var M=0;M<X.length&&X[M].id!=U;++M);if(X[M].id!=U)throw"Bad ColumnRowUIDMapArchive";var fe=Jt(X[M].messages[0].data);fe[1]=[],fe[2]=[],fe[3]=[];for(var G=0;G<=i.e.c;++G){var Z=[];Z[1]=Z[2]=[{type:0,data:pt(G+420690)}],fe[1].push({type:2,data:vr(Z)}),fe[2].push({type:0,data:pt(G)}),fe[3].push({type:0,data:pt(G)})}fe[4]=[],fe[5]=[],fe[6]=[];for(var I=0;I<=i.e.r;++I)Z=[],Z[1]=Z[2]=[{type:0,data:pt(I+726270)}],fe[4].push({type:2,data:vr(Z)}),fe[5].push({type:0,data:pt(I)}),fe[6].push({type:0,data:pt(I)});X[M].messages[0].data=vr(fe)}B.content=wl(Sl(X)),B.size=B.content.length,delete D[46];var ee=Jt(D[4][0].data);{ee[7][0].data=pt(i.e.r+1);var ce=Jt(ee[1][0].data),ve=za(ce[2][0].data);B=Ct.find(d,h[ve].location),X=Rn(Cn(B.content));{if(X[0].id!=ve)throw"Bad HeaderStorageBucket";var Re=Jt(X[0].messages[0].data);for(I=0;I<s.length;++I){var Ke=Jt(Re[2][0].data);Ke[1][0].data=pt(I),Ke[4][0].data=pt(s[I].length),Re[2][I]={type:Re[2][0].type,data:vr(Ke)}}X[0].messages[0].data=vr(Re)}B.content=wl(Sl(X)),B.size=B.content.length;var Me=za(ee[2][0].data);B=Ct.find(d,h[Me].location),X=Rn(Cn(B.content));{if(X[0].id!=Me)throw"Bad HeaderStorageBucket";for(Re=Jt(X[0].messages[0].data),G=0;G<=i.e.c;++G)Ke=Jt(Re[2][0].data),Ke[1][0].data=pt(G),Ke[4][0].data=pt(i.e.r+1),Re[2][G]={type:Re[2][0].type,data:vr(Ke)};X[0].messages[0].data=vr(Re)}B.content=wl(Sl(X)),B.size=B.content.length;var ye=za(ee[4][0].data);(function(){for(var j=Ct.find(d,h[ye].location),k=Rn(Cn(j.content)),H,ie=0;ie<k.length;++ie){var Fe=k[ie];Fe.id==ye&&(H=Fe)}var Ce=Jt(H.messages[0].data);{Ce[3]=[];var _e=[];c.forEach(function($e,lt){_e[1]=[{type:0,data:pt(lt)}],_e[2]=[{type:0,data:pt(1)}],_e[3]=[{type:2,data:kO($e)}],Ce[3].push({type:2,data:vr(_e)})})}H.messages[0].data=vr(Ce);var xe=Sl(k),Je=wl(xe);j.content=Je,j.size=j.content.length})();var Be=Jt(ee[3][0].data);{var De=Be[1][0];delete Be[2];var je=Jt(De.data);{var z=za(je[2][0].data);(function(){for(var j=Ct.find(d,h[z].location),k=Rn(Cn(j.content)),H,ie=0;ie<k.length;++ie){var Fe=k[ie];Fe.id==z&&(H=Fe)}var Ce=Jt(H.messages[0].data);{delete Ce[6],delete Be[7];var _e=new Uint8Array(Ce[5][0].data);Ce[5]=[];for(var xe=0,Je=0;Je<=i.e.r;++Je){var $e=Jt(_e);xe+=IO($e,s[Je],c),$e[1][0].data=pt(Je),Ce[5].push({data:vr($e),type:2})}Ce[1]=[{type:0,data:pt(i.e.c+1)}],Ce[2]=[{type:0,data:pt(i.e.r+1)}],Ce[3]=[{type:0,data:pt(xe)}],Ce[4]=[{type:0,data:pt(i.e.r+1)}]}H.messages[0].data=vr(Ce);var lt=Sl(k),et=wl(lt);j.content=et,j.size=j.content.length})()}De.data=vr(je)}ee[3][0].data=vr(Be)}D[4][0].data=vr(ee)}g.messages[0].data=vr(D);var me=Sl(p),L=wl(me);return E.content=L,E.size=E.content.length,d}function jO(e){return function(r){for(var i=0;i!=e.length;++i){var u=e[i];r[u[0]]===void 0&&(r[u[0]]=u[1]),u[2]==="n"&&(r[u[0]]=Number(r[u[0]]))}}}function ld(e){jO([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function GO(e,t){return t.bookType=="ods"?z2(e,t):t.bookType=="numbers"?zO(e,t):t.bookType=="xlsb"?VO(e,t):XO(e,t)}function VO(e,t){Ol=1024,e&&!e.SSF&&(e.SSF=jr(Pt)),e&&e.SSF&&(xc(),vc(e.SSF),t.revssf=pc(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,qu?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",i=S2.indexOf(t.bookType)>-1,u=Zg();ld(t=t||{});var s=Vh(),c="",h=0;if(t.cellXfs=[],Za(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),c="docProps/core.xml",at(s,c,r2(e.Props,t)),u.coreprops.push(c),gt(t.rels,2,c,vt.CORE_PROPS),c="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var m=[],d=0;d<e.SheetNames.length;++d)(e.Workbook.Sheets[d]||{}).Hidden!=2&&m.push(e.SheetNames[d]);e.Props.SheetNames=m}for(e.Props.Worksheets=e.Props.SheetNames.length,at(s,c,a2(e.Props)),u.extprops.push(c),gt(t.rels,3,c,vt.EXT_PROPS),e.Custprops!==e.Props&&yr(e.Custprops||{}).length>0&&(c="docProps/custom.xml",at(s,c,i2(e.Custprops)),u.custprops.push(c),gt(t.rels,4,c,vt.CUST_PROPS)),h=1;h<=e.SheetNames.length;++h){var x={"!id":{}},E=e.Sheets[e.SheetNames[h-1]],p=(E||{})["!type"]||"sheet";switch(p){case"chart":default:c="xl/worksheets/sheet"+h+"."+r,at(s,c,WC(h-1,c,t,e,x)),u.sheets.push(c),gt(t.wbrels,-1,"worksheets/sheet"+h+"."+r,vt.WS[0])}if(E){var g=E["!comments"],S=!1,y="";g&&g.length>0&&(y="xl/comments"+h+"."+r,at(s,y,$C(g,y)),u.comments.push(y),gt(x,-1,"../comments"+h+"."+r,vt.CMNT),S=!0),E["!legacy"]&&S&&at(s,"xl/drawings/vmlDrawing"+h+".vml",_2(h,E["!comments"])),delete E["!comments"],delete E["!legacy"]}x["!id"].rId1&&at(s,e2(c),Nl(x))}return t.Strings!=null&&t.Strings.length>0&&(c="xl/sharedStrings."+r,at(s,c,KC(t.Strings,c,t)),u.strs.push(c),gt(t.wbrels,-1,"sharedStrings."+r,vt.SST)),c="xl/workbook."+r,at(s,c,YC(e,c)),u.workbooks.push(c),gt(t.rels,1,c,vt.WB),c="xl/theme/theme1.xml",at(s,c,E2(e.Themes,t)),u.themes.push(c),gt(t.wbrels,-1,"theme/theme1.xml",vt.THEME),c="xl/styles."+r,at(s,c,qC(e,c,t)),u.styles.push(c),gt(t.wbrels,-1,"styles."+r,vt.STY),e.vbaraw&&i&&(c="xl/vbaProject.bin",at(s,c,e.vbaraw),u.vba.push(c),gt(t.wbrels,-1,"vbaProject.bin",vt.VBA)),c="xl/metadata."+r,at(s,c,QC(c)),u.metadata.push(c),gt(t.wbrels,-1,"metadata."+r,vt.XLMETA),at(s,"[Content_Types].xml",Jg(u,t)),at(s,"_rels/.rels",Nl(t.rels)),at(s,"xl/_rels/workbook."+r+".rels",Nl(t.wbrels)),delete t.revssf,delete t.ssf,s}function XO(e,t){Ol=1024,e&&!e.SSF&&(e.SSF=jr(Pt)),e&&e.SSF&&(xc(),vc(e.SSF),t.revssf=pc(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,qu?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",i=S2.indexOf(t.bookType)>-1,u=Zg();ld(t=t||{});var s=Vh(),c="",h=0;if(t.cellXfs=[],Za(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),c="docProps/core.xml",at(s,c,r2(e.Props,t)),u.coreprops.push(c),gt(t.rels,2,c,vt.CORE_PROPS),c="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var m=[],d=0;d<e.SheetNames.length;++d)(e.Workbook.Sheets[d]||{}).Hidden!=2&&m.push(e.SheetNames[d]);e.Props.SheetNames=m}e.Props.Worksheets=e.Props.SheetNames.length,at(s,c,a2(e.Props)),u.extprops.push(c),gt(t.rels,3,c,vt.EXT_PROPS),e.Custprops!==e.Props&&yr(e.Custprops||{}).length>0&&(c="docProps/custom.xml",at(s,c,i2(e.Custprops)),u.custprops.push(c),gt(t.rels,4,c,vt.CUST_PROPS));var x=["SheetJ5"];for(t.tcid=0,h=1;h<=e.SheetNames.length;++h){var E={"!id":{}},p=e.Sheets[e.SheetNames[h-1]],g=(p||{})["!type"]||"sheet";switch(g){case"chart":default:c="xl/worksheets/sheet"+h+"."+r,at(s,c,F2(h-1,t,e,E)),u.sheets.push(c),gt(t.wbrels,-1,"worksheets/sheet"+h+"."+r,vt.WS[0])}if(p){var S=p["!comments"],y=!1,w="";if(S&&S.length>0){var D=!1;S.forEach(function(U){U[1].forEach(function(B){B.T==!0&&(D=!0)})}),D&&(w="xl/threadedComments/threadedComment"+h+"."+r,at(s,w,T8(S,x,t)),u.threadedcomments.push(w),gt(E,-1,"../threadedComments/threadedComment"+h+"."+r,vt.TCMNT)),w="xl/comments"+h+"."+r,at(s,w,T2(S)),u.comments.push(w),gt(E,-1,"../comments"+h+"."+r,vt.CMNT),y=!0}p["!legacy"]&&y&&at(s,"xl/drawings/vmlDrawing"+h+".vml",_2(h,p["!comments"])),delete p["!comments"],delete p["!legacy"]}E["!id"].rId1&&at(s,e2(c),Nl(E))}return t.Strings!=null&&t.Strings.length>0&&(c="xl/sharedStrings."+r,at(s,c,d2(t.Strings,t)),u.strs.push(c),gt(t.wbrels,-1,"sharedStrings."+r,vt.SST)),c="xl/workbook."+r,at(s,c,B2(e)),u.workbooks.push(c),gt(t.rels,1,c,vt.WB),c="xl/theme/theme1.xml",at(s,c,E2(e.Themes,t)),u.themes.push(c),gt(t.wbrels,-1,"theme/theme1.xml",vt.THEME),c="xl/styles."+r,at(s,c,p2(e,t)),u.styles.push(c),gt(t.wbrels,-1,"styles."+r,vt.STY),e.vbaraw&&i&&(c="xl/vbaProject.bin",at(s,c,e.vbaraw),u.vba.push(c),gt(t.wbrels,-1,"vbaProject.bin",vt.VBA)),c="xl/metadata."+r,at(s,c,y2()),u.metadata.push(c),gt(t.wbrels,-1,"metadata."+r,vt.XLMETA),x.length>1&&(c="xl/persons/person.xml",at(s,c,S8(x)),u.people.push(c),gt(t.wbrels,-1,"persons/person.xml",vt.PEOPLE)),at(s,"[Content_Types].xml",Jg(u,t)),at(s,"_rels/.rels",Nl(t.rels)),at(s,"xl/_rels/workbook."+r+".rels",Nl(t.wbrels)),delete t.revssf,delete t.ssf,s}function YO(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=da(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function j2(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return cf(t.file,Ct.write(e,{type:xt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Ct.write(e,t)}function WO(e,t){var r=jr(t||{}),i=GO(e,r);return qO(i,r)}function qO(e,t){var r={},i=xt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=i;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=i;break;default:throw new Error("Unrecognized type "+t.type)}var u=e.FullPaths?Ct.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof u=="string"){if(t.type=="binary"||t.type=="base64")return u;u=new Uint8Array(mc(u))}return t.password&&typeof encrypt_agile<"u"?j2(encrypt_agile(u,t.password),t):t.type==="file"?cf(t.file,u):t.type=="string"?Vu(u):u}function KO(e,t){var r=t||{},i=oO(e,r);return j2(i,r)}function In(e,t,r){r||(r="");var i=r+e;switch(t.type){case"base64":return Zu(ef(i));case"binary":return ef(i);case"string":return e;case"file":return cf(t.file,i,"utf8");case"buffer":return xt?pa(i,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(i):In(i,{type:"binary"}).split("").map(function(u){return u.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function $O(e,t){switch(t.type){case"base64":return Zu(e);case"binary":return e;case"string":return e;case"file":return cf(t.file,e,"binary");case"buffer":return xt?pa(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function Ms(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",i=0;i<e.length;++i)r+=String.fromCharCode(e[i]);return t.type=="base64"?Zu(r):t.type=="string"?Vu(r):r;case"file":return cf(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function QO(e,t){ww(),BC(e);var r=jr(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var i=QO(e,r);return r.type="array",mc(i)}var u=0;if(r.sheet&&(typeof r.sheet=="number"?u=r.sheet:u=e.SheetNames.indexOf(r.sheet),!e.SheetNames[u]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return In(sO(e,r),r);case"slk":case"sylk":return In(FA.from_sheet(e.Sheets[e.SheetNames[u]],r),r);case"htm":case"html":return In(P2(e.Sheets[e.SheetNames[u]],r),r);case"txt":return $O(G2(e.Sheets[e.SheetNames[u]],r),r);case"csv":return In(ud(e.Sheets[e.SheetNames[u]],r),r,"\uFEFF");case"dif":return In(MA.from_sheet(e.Sheets[e.SheetNames[u]],r),r);case"dbf":return Ms(bA.from_sheet(e.Sheets[e.SheetNames[u]],r),r);case"prn":return In(LA.from_sheet(e.Sheets[e.SheetNames[u]],r),r);case"rtf":return In(zA.from_sheet(e.Sheets[e.SheetNames[u]],r),r);case"eth":return In(h2.from_sheet(e.Sheets[e.SheetNames[u]],r),r);case"fods":return In(z2(e,r),r);case"wk1":return Ms(lp.sheet_to_wk1(e.Sheets[e.SheetNames[u]],r),r);case"wk3":return Ms(lp.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),Ms(U2(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),KO(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return WO(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function ZO(e,t,r,i,u,s,c,h){var m=Er(r),d=h.defval,x=h.raw||!Object.prototype.hasOwnProperty.call(h,"raw"),E=!0,p=u===1?[]:{};if(u!==1)if(Object.defineProperty)try{Object.defineProperty(p,"__rowNum__",{value:r,enumerable:!1})}catch{p.__rowNum__=r}else p.__rowNum__=r;if(!c||e[r])for(var g=t.s.c;g<=t.e.c;++g){var S=c?e[r][g]:e[i[g]+m];if(S===void 0||S.t===void 0){if(d===void 0)continue;s[g]!=null&&(p[s[g]]=d);continue}var y=S.v;switch(S.t){case"z":if(y==null)break;continue;case"e":y=y==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+S.t)}if(s[g]!=null){if(y==null)if(S.t=="e"&&y===null)p[s[g]]=null;else if(d!==void 0)p[s[g]]=d;else if(x&&y===null)p[s[g]]=null;else continue;else p[s[g]]=x&&(S.t!=="n"||S.t==="n"&&h.rawNumbers!==!1)?y:ma(S,y,h);y!=null&&(E=!1)}}return{row:p,isempty:E}}function ac(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},i=0,u=1,s=[],c=0,h="",m={s:{r:0,c:0},e:{r:0,c:0}},d=t||{},x=d.range!=null?d.range:e["!ref"];switch(d.header===1?i=1:d.header==="A"?i=2:Array.isArray(d.header)?i=3:d.header==null&&(i=0),typeof x){case"string":m=bt(x);break;case"number":m=bt(e["!ref"]),m.s.r=x;break;default:m=x}i>0&&(u=0);var E=Er(m.s.r),p=[],g=[],S=0,y=0,w=Array.isArray(e),D=m.s.r,U=0,B={};w&&!e[D]&&(e[D]=[]);var X=d.skipHidden&&e["!cols"]||[],M=d.skipHidden&&e["!rows"]||[];for(U=m.s.c;U<=m.e.c;++U)if(!(X[U]||{}).hidden)switch(p[U]=wr(U),r=w?e[D][U]:e[p[U]+E],i){case 1:s[U]=U-m.s.c;break;case 2:s[U]=p[U];break;case 3:s[U]=d.header[U-m.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),h=c=ma(r,null,d),y=B[c]||0,!y)B[c]=1;else{do h=c+"_"+y++;while(B[h]);B[c]=y,B[h]=1}s[U]=h}for(D=m.s.r+u;D<=m.e.r;++D)if(!(M[D]||{}).hidden){var fe=ZO(e,m,D,p,i,s,w,d);(fe.isempty===!1||(i===1?d.blankrows!==!1:d.blankrows))&&(g[S++]=fe.row)}return g.length=S,g}var mp=/"/g;function JO(e,t,r,i,u,s,c,h){for(var m=!0,d=[],x="",E=Er(r),p=t.s.c;p<=t.e.c;++p)if(i[p]){var g=h.dense?(e[r]||[])[p]:e[i[p]+E];if(g==null)x="";else if(g.v!=null){m=!1,x=""+(h.rawNumbers&&g.t=="n"?g.v:ma(g,null,h));for(var S=0,y=0;S!==x.length;++S)if((y=x.charCodeAt(S))===u||y===s||y===34||h.forceQuotes){x='"'+x.replace(mp,'""')+'"';break}x=="ID"&&(x='"ID"')}else g.f!=null&&!g.F?(m=!1,x="="+g.f,x.indexOf(",")>=0&&(x='"'+x.replace(mp,'""')+'"')):x="";d.push(x)}return h.blankrows===!1&&m?null:d.join(c)}function ud(e,t){var r=[],i=t??{};if(e==null||e["!ref"]==null)return"";var u=bt(e["!ref"]),s=i.FS!==void 0?i.FS:",",c=s.charCodeAt(0),h=i.RS!==void 0?i.RS:`
-`,m=h.charCodeAt(0),d=new RegExp((s=="|"?"\\|":s)+"+$"),x="",E=[];i.dense=Array.isArray(e);for(var p=i.skipHidden&&e["!cols"]||[],g=i.skipHidden&&e["!rows"]||[],S=u.s.c;S<=u.e.c;++S)(p[S]||{}).hidden||(E[S]=wr(S));for(var y=0,w=u.s.r;w<=u.e.r;++w)(g[w]||{}).hidden||(x=JO(e,u,w,E,c,m,s,i),x!=null&&(i.strip&&(x=x.replace(d,"")),(x||i.blankrows!==!1)&&r.push((y++?h:"")+x)));return delete i.dense,r.join("")}function G2(e,t){t||(t={}),t.FS="	",t.RS=`
-`;var r=ud(e,t);return r}function e5(e){var t="",r,i="";if(e==null||e["!ref"]==null)return[];var u=bt(e["!ref"]),s="",c=[],h,m=[],d=Array.isArray(e);for(h=u.s.c;h<=u.e.c;++h)c[h]=wr(h);for(var x=u.s.r;x<=u.e.r;++x)for(s=Er(x),h=u.s.c;h<=u.e.c;++h)if(t=c[h]+s,r=d?(e[x]||[])[h]:e[t],i="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;i=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)i=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)i=""+r.v;else if(r.t=="b")i=r.v?"TRUE":"FALSE";else if(r.w!==void 0)i="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?i="'"+r.v:i=""+r.v}}m[m.length]=t+"="+i}return m}function V2(e,t,r){var i=r||{},u=+!i.skipHeader,s=e||{},c=0,h=0;if(s&&i.origin!=null)if(typeof i.origin=="number")c=i.origin;else{var m=typeof i.origin=="string"?lr(i.origin):i.origin;c=m.r,h=m.c}var d,x={s:{c:0,r:0},e:{c:h,r:c+t.length-1+u}};if(s["!ref"]){var E=bt(s["!ref"]);x.e.c=Math.max(x.e.c,E.e.c),x.e.r=Math.max(x.e.r,E.e.r),c==-1&&(c=E.e.r+1,x.e.r=c+t.length-1+u)}else c==-1&&(c=0,x.e.r=t.length-1+u);var p=i.header||[],g=0;t.forEach(function(y,w){yr(y).forEach(function(D){(g=p.indexOf(D))==-1&&(p[g=p.length]=D);var U=y[D],B="z",X="",M=yt({c:h+g,r:c+w+u});d=nf(s,M),U&&typeof U=="object"&&!(U instanceof Date)?s[M]=U:(typeof U=="number"?B="n":typeof U=="boolean"?B="b":typeof U=="string"?B="s":U instanceof Date?(B="d",i.cellDates||(B="n",U=zr(U)),X=i.dateNF||Pt[14]):U===null&&i.nullError&&(B="e",U=0),d?(d.t=B,d.v=U,delete d.w,delete d.R,X&&(d.z=X)):s[M]=d={t:B,v:U},X&&(d.z=X))})}),x.e.c=Math.max(x.e.c,h+p.length-1);var S=Er(c);if(u)for(g=0;g<p.length;++g)s[wr(g+h)+S]={t:"s",v:p[g]};return s["!ref"]=qt(x),s}function t5(e,t){return V2(null,e,t)}function nf(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var i=lr(t);return e[i.r]||(e[i.r]=[]),e[i.r][i.c]||(e[i.r][i.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?nf(e,yt(t)):nf(e,yt({r:t,c:r||0}))}function r5(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function n5(){return{SheetNames:[],Sheets:{}}}function a5(e,t,r,i){var u=1;if(!r)for(;u<=65535&&e.SheetNames.indexOf(r="Sheet"+u)!=-1;++u,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(i&&e.SheetNames.indexOf(r)>=0){var s=r.match(/(^.*?)(\d+)$/);u=s&&+s[2]||0;var c=s&&s[1]||r;for(++u;u<=65535&&e.SheetNames.indexOf(r=c+u)!=-1;++u);}if(L2(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function i5(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var i=r5(e,t);switch(e.Workbook.Sheets[i]||(e.Workbook.Sheets[i]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[i].Hidden=r}function l5(e,t){return e.z=t,e}function X2(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function u5(e,t,r){return X2(e,"#"+t,r)}function f5(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function s5(e,t,r,i){for(var u=typeof t!="string"?t:bt(t),s=typeof t=="string"?t:qt(t),c=u.s.r;c<=u.e.r;++c)for(var h=u.s.c;h<=u.e.c;++h){var m=nf(e,c,h);m.t="n",m.F=s,delete m.v,c==u.s.r&&h==u.s.c&&(m.f=r,i&&(m.D=!0))}return e}var D5={encode_col:wr,encode_row:Er,encode_cell:yt,encode_range:qt,decode_col:$h,decode_row:Kh,split_cell:w3,decode_cell:lr,decode_range:tn,format_cell:ma,sheet_add_aoa:Yg,sheet_add_json:V2,sheet_add_dom:H2,aoa_to_sheet:Ul,json_to_sheet:t5,table_to_sheet:I2,table_to_book:MO,sheet_to_csv:ud,sheet_to_txt:G2,sheet_to_json:ac,sheet_to_html:P2,sheet_to_formulae:e5,sheet_to_row_object_array:ac,sheet_get_cell:nf,book_new:n5,book_append_sheet:a5,book_set_sheet_visibility:i5,cell_set_number_format:l5,cell_set_hyperlink:X2,cell_set_internal_link:u5,cell_add_comment:f5,sheet_set_array_formula:s5,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function N5(e){return dc({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(e)}function b5(e){return dc({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},child:[]}]})(e)}export{E5 as $,hc as A,x4 as B,Ml as C,_w as D,yw as E,Up as F,p5 as G,C5 as H,Op as I,b5 as J,D5 as K,$u as L,QO as M,mS as N,ES as O,xS as P,ws as Q,Hr as R,O5 as S,hS as T,T5 as U,dc as V,x5 as W,va as X,S5 as Y,v5 as Z,R5 as _,Wp as a,w5 as a0,g5 as a1,h5 as a2,i4 as a3,t4 as a4,Gp as a5,Di as a6,Si as a7,ch as a8,Ga as a9,Ai as aa,r4 as ab,Bh as ac,ic as ad,vp as ae,m5 as af,d5 as ag,o5 as ah,CS as ai,N5 as aj,Ht as b,_t as c,u4 as d,s4 as e,Ex as f,C4 as g,Lh as h,c4 as i,ae as j,Vp as k,Is as l,O4 as m,Yp as n,cc as o,vh as p,yl as q,N as r,y5 as s,US as t,Ri as u,mh as v,_5 as w,Rr as x,A5 as y,Mh as z};
diff --git a/compendium_v2/static/report.js b/compendium_v2/static/report.js
index ae41cb9d889b186a9e9a16d0a8c12b41e0c37f90..9643bd22b7fcdec1546821564824408db38c2c46 100644
--- a/compendium_v2/static/report.js
+++ b/compendium_v2/static/report.js
@@ -1,79 +1,2 @@
-var Vc=Object.defineProperty;var Hc=(e,t,n)=>t in e?Vc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var z=(e,t,n)=>Hc(e,typeof t!="symbol"?t+"":t,n);import{r as R,u as At,a as Uc,j as f,b as Se,c as ke,d as Ia,e as Gc,w as Xc,f as Yr,o as qc,l as Ls,R as tt,g as $a,B as Kc,h as Jc,i as Zc,q as Br,k as Qc,m as Fa,n as Ya,p as xt,s as ed,t as td,v as nd,x as A,y as or,C as Ne,L as $,z as fn,A as we,D as sd,E as id,P as Ba,F as rd,G as od,H as F,S as ls,I as ad,J as za,K as ji,M as ld,N as Wa,O as cd,Q as Ci,T as X,U as Ft,V as dd,W as fd,X as Va,Y as hd,Z as ud,_ as pd,$ as md,a0 as gd,a1 as bd,a2 as xd}from"./main-BfdqwKKW.js";var ee=(e=>(e.ConnectedProportion="proportion",e.ConnectivityLevel="level",e.ConnectionCarrier="carrier",e.ConnectivityLoad="load",e.ConnectivityGrowth="growth",e.CommercialConnectivity="commercial",e.CommercialChargingLevel="charging",e))(ee||{}),ge=(e=>(e.network_services="network_services",e.isp_support="isp_support",e.security="security",e.identity="identity",e.collaboration="collaboration",e.multimedia="multimedia",e.storage_and_hosting="storage_and_hosting",e.professional_services="professional_services",e))(ge||{});function yd(){return R.useState(null)}function vd(e,t,n,s=!1){const i=At(n);R.useEffect(()=>{const r=typeof e=="function"?e():e;return r.addEventListener(t,i,s),()=>r.removeEventListener(t,i,s)},[e])}const _d=["onKeyDown"];function wd(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function Nd(e){return!e||e.trim()==="#"}const Ha=R.forwardRef((e,t)=>{let{onKeyDown:n}=e,s=wd(e,_d);const[i]=Uc(Object.assign({tagName:"a"},s)),r=At(o=>{i.onKeyDown(o),n==null||n(o)});return Nd(s.href)||s.role==="button"?f.jsx("a",Object.assign({ref:t},s,i,{onKeyDown:r})):f.jsx("a",Object.assign({ref:t},s,{onKeyDown:n}))});Ha.displayName="Anchor";const ar=R.forwardRef(({bsPrefix:e,className:t,role:n="toolbar",...s},i)=>{const r=Se(e,"btn-toolbar");return f.jsx("div",{...s,ref:i,className:ke(t,r),role:n})});ar.displayName="ButtonToolbar";const lr=R.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},i)=>(t=Se(t,"card-body"),f.jsx(n,{ref:i,className:ke(e,t),...s})));lr.displayName="CardBody";const Ua=R.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},i)=>(t=Se(t,"card-footer"),f.jsx(n,{ref:i,className:ke(e,t),...s})));Ua.displayName="CardFooter";const Ga=R.createContext(null);Ga.displayName="CardHeaderContext";const Xa=R.forwardRef(({bsPrefix:e,className:t,as:n="div",...s},i)=>{const r=Se(e,"card-header"),o=R.useMemo(()=>({cardHeaderBsPrefix:r}),[r]);return f.jsx(Ga.Provider,{value:o,children:f.jsx(n,{ref:i,...s,className:ke(t,r)})})});Xa.displayName="CardHeader";const qa=R.forwardRef(({bsPrefix:e,className:t,variant:n,as:s="img",...i},r)=>{const o=Se(e,"card-img");return f.jsx(s,{ref:r,className:ke(n?`${o}-${n}`:o,t),...i})});qa.displayName="CardImg";const Ka=R.forwardRef(({className:e,bsPrefix:t,as:n="div",...s},i)=>(t=Se(t,"card-img-overlay"),f.jsx(n,{ref:i,className:ke(e,t),...s})));Ka.displayName="CardImgOverlay";const Ja=R.forwardRef(({className:e,bsPrefix:t,as:n="a",...s},i)=>(t=Se(t,"card-link"),f.jsx(n,{ref:i,className:ke(e,t),...s})));Ja.displayName="CardLink";const Sd=Ia("h6"),Za=R.forwardRef(({className:e,bsPrefix:t,as:n=Sd,...s},i)=>(t=Se(t,"card-subtitle"),f.jsx(n,{ref:i,className:ke(e,t),...s})));Za.displayName="CardSubtitle";const Qa=R.forwardRef(({className:e,bsPrefix:t,as:n="p",...s},i)=>(t=Se(t,"card-text"),f.jsx(n,{ref:i,className:ke(e,t),...s})));Qa.displayName="CardText";const kd=Ia("h5"),el=R.forwardRef(({className:e,bsPrefix:t,as:n=kd,...s},i)=>(t=Se(t,"card-title"),f.jsx(n,{ref:i,className:ke(e,t),...s})));el.displayName="CardTitle";const tl=R.forwardRef(({bsPrefix:e,className:t,bg:n,text:s,border:i,body:r=!1,children:o,as:a="div",...l},c)=>{const d=Se(e,"card");return f.jsx(a,{ref:c,...l,className:ke(t,d,n&&`bg-${n}`,s&&`text-${s}`,i&&`border-${i}`),children:r?f.jsx(lr,{children:o}):o})});tl.displayName="Card";const st=Object.assign(tl,{Img:qa,Title:el,Subtitle:Za,Body:lr,Link:Ja,Text:Qa,Header:Xa,Footer:Ua,ImgOverlay:Ka});function jd(e,t,n){const s=R.useRef(e!==void 0),[i,r]=R.useState(t),o=e!==void 0,a=s.current;return s.current=o,!o&&a&&i!==t&&r(t),[o?e:i,R.useCallback((...l)=>{const[c,...d]=l;let h=n==null?void 0:n(c,...d);return r(c),h},[n])]}function Cd(){const[,e]=R.useReducer(t=>t+1,0);return e}const vi=R.createContext(null);var zr=Object.prototype.hasOwnProperty;function Wr(e,t,n){for(n of e.keys())if(Hn(n,t))return n}function Hn(e,t){var n,s,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((s=e.length)===t.length)for(;s--&&Hn(e[s],t[s]););return s===-1}if(n===Set){if(e.size!==t.size)return!1;for(s of e)if(i=s,i&&typeof i=="object"&&(i=Wr(t,i),!i)||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(s of e)if(i=s[0],i&&typeof i=="object"&&(i=Wr(t,i),!i)||!Hn(s[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((s=e.byteLength)===t.byteLength)for(;s--&&e.getInt8(s)===t.getInt8(s););return s===-1}if(ArrayBuffer.isView(e)){if((s=e.byteLength)===t.byteLength)for(;s--&&e[s]===t[s];);return s===-1}if(!n||typeof e=="object"){s=0;for(n in e)if(zr.call(e,n)&&++s&&!zr.call(t,n)||!(n in t)||!Hn(e[n],t[n]))return!1;return Object.keys(t).length===s}}return e!==e&&t!==t}function Ed(e){const t=Gc();return[e[0],R.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var Ae="top",qe="bottom",Ke="right",Le="left",cr="auto",cs=[Ae,qe,Ke,Le],Nn="start",es="end",Md="clippingParents",nl="viewport",On="popper",Rd="reference",Vr=cs.reduce(function(e,t){return e.concat([t+"-"+Nn,t+"-"+es])},[]),sl=[].concat(cs,[cr]).reduce(function(e,t){return e.concat([t,t+"-"+Nn,t+"-"+es])},[]),Pd="beforeRead",Td="read",Od="afterRead",Dd="beforeMain",Ad="main",Ld="afterMain",Id="beforeWrite",$d="write",Fd="afterWrite",Yd=[Pd,Td,Od,Dd,Ad,Ld,Id,$d,Fd];function lt(e){return e.split("-")[0]}function Be(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function hn(e){var t=Be(e).Element;return e instanceof t||e instanceof Element}function ct(e){var t=Be(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function dr(e){if(typeof ShadowRoot>"u")return!1;var t=Be(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var cn=Math.max,ci=Math.min,Sn=Math.round;function Ui(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function il(){return!/^((?!chrome|android).)*safari/i.test(Ui())}function kn(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var s=e.getBoundingClientRect(),i=1,r=1;t&&ct(e)&&(i=e.offsetWidth>0&&Sn(s.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Sn(s.height)/e.offsetHeight||1);var o=hn(e)?Be(e):window,a=o.visualViewport,l=!il()&&n,c=(s.left+(l&&a?a.offsetLeft:0))/i,d=(s.top+(l&&a?a.offsetTop:0))/r,h=s.width/i,u=s.height/r;return{width:h,height:u,top:d,right:c+h,bottom:d+u,left:c,x:c,y:d}}function fr(e){var t=kn(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function rl(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&dr(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function It(e){return e?(e.nodeName||"").toLowerCase():null}function Nt(e){return Be(e).getComputedStyle(e)}function Bd(e){return["table","td","th"].indexOf(It(e))>=0}function Yt(e){return((hn(e)?e.ownerDocument:e.document)||window.document).documentElement}function _i(e){return It(e)==="html"?e:e.assignedSlot||e.parentNode||(dr(e)?e.host:null)||Yt(e)}function Hr(e){return!ct(e)||Nt(e).position==="fixed"?null:e.offsetParent}function zd(e){var t=/firefox/i.test(Ui()),n=/Trident/i.test(Ui());if(n&&ct(e)){var s=Nt(e);if(s.position==="fixed")return null}var i=_i(e);for(dr(i)&&(i=i.host);ct(i)&&["html","body"].indexOf(It(i))<0;){var r=Nt(i);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return i;i=i.parentNode}return null}function ds(e){for(var t=Be(e),n=Hr(e);n&&Bd(n)&&Nt(n).position==="static";)n=Hr(n);return n&&(It(n)==="html"||It(n)==="body"&&Nt(n).position==="static")?t:n||zd(e)||t}function hr(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Un(e,t,n){return cn(e,ci(t,n))}function Wd(e,t,n){var s=Un(e,t,n);return s>n?n:s}function ol(){return{top:0,right:0,bottom:0,left:0}}function al(e){return Object.assign({},ol(),e)}function ll(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var Vd=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,al(typeof t!="number"?t:ll(t,cs))};function Hd(e){var t,n=e.state,s=e.name,i=e.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,a=lt(n.placement),l=hr(a),c=[Le,Ke].indexOf(a)>=0,d=c?"height":"width";if(!(!r||!o)){var h=Vd(i.padding,n),u=fr(r),p=l==="y"?Ae:Le,b=l==="y"?qe:Ke,m=n.rects.reference[d]+n.rects.reference[l]-o[l]-n.rects.popper[d],g=o[l]-n.rects.reference[l],x=ds(r),y=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,v=m/2-g/2,_=h[p],w=y-u[d]-h[b],N=y/2-u[d]/2+v,S=Un(_,N,w),k=l;n.modifiersData[s]=(t={},t[k]=S,t.centerOffset=S-N,t)}}function Ud(e){var t=e.state,n=e.options,s=n.element,i=s===void 0?"[data-popper-arrow]":s;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||rl(t.elements.popper,i)&&(t.elements.arrow=i))}const Gd={name:"arrow",enabled:!0,phase:"main",fn:Hd,effect:Ud,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jn(e){return e.split("-")[1]}var Xd={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qd(e,t){var n=e.x,s=e.y,i=t.devicePixelRatio||1;return{x:Sn(n*i)/i||0,y:Sn(s*i)/i||0}}function Ur(e){var t,n=e.popper,s=e.popperRect,i=e.placement,r=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=e.isFixed,u=o.x,p=u===void 0?0:u,b=o.y,m=b===void 0?0:b,g=typeof d=="function"?d({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var x=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),v=Le,_=Ae,w=window;if(c){var N=ds(n),S="clientHeight",k="clientWidth";if(N===Be(n)&&(N=Yt(n),Nt(N).position!=="static"&&a==="absolute"&&(S="scrollHeight",k="scrollWidth")),N=N,i===Ae||(i===Le||i===Ke)&&r===es){_=qe;var j=h&&N===w&&w.visualViewport?w.visualViewport.height:N[S];m-=j-s.height,m*=l?1:-1}if(i===Le||(i===Ae||i===qe)&&r===es){v=Ke;var C=h&&N===w&&w.visualViewport?w.visualViewport.width:N[k];p-=C-s.width,p*=l?1:-1}}var E=Object.assign({position:a},c&&Xd),M=d===!0?qd({x:p,y:m},Be(n)):{x:p,y:m};if(p=M.x,m=M.y,l){var P;return Object.assign({},E,(P={},P[_]=y?"0":"",P[v]=x?"0":"",P.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",P))}return Object.assign({},E,(t={},t[_]=y?m+"px":"",t[v]=x?p+"px":"",t.transform="",t))}function Kd(e){var t=e.state,n=e.options,s=n.gpuAcceleration,i=s===void 0?!0:s,r=n.adaptive,o=r===void 0?!0:r,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:lt(t.placement),variation:jn(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Ur(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ur(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Jd={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Kd,data:{}};var Is={passive:!0};function Zd(e){var t=e.state,n=e.instance,s=e.options,i=s.scroll,r=i===void 0?!0:i,o=s.resize,a=o===void 0?!0:o,l=Be(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(d){d.addEventListener("scroll",n.update,Is)}),a&&l.addEventListener("resize",n.update,Is),function(){r&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Is)}),a&&l.removeEventListener("resize",n.update,Is)}}const Qd={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Zd,data:{}};var ef={left:"right",right:"left",bottom:"top",top:"bottom"};function si(e){return e.replace(/left|right|bottom|top/g,function(t){return ef[t]})}var tf={start:"end",end:"start"};function Gr(e){return e.replace(/start|end/g,function(t){return tf[t]})}function ur(e){var t=Be(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function pr(e){return kn(Yt(e)).left+ur(e).scrollLeft}function nf(e,t){var n=Be(e),s=Yt(e),i=n.visualViewport,r=s.clientWidth,o=s.clientHeight,a=0,l=0;if(i){r=i.width,o=i.height;var c=il();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:r,height:o,x:a+pr(e),y:l}}function sf(e){var t,n=Yt(e),s=ur(e),i=(t=e.ownerDocument)==null?void 0:t.body,r=cn(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=cn(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-s.scrollLeft+pr(e),l=-s.scrollTop;return Nt(i||n).direction==="rtl"&&(a+=cn(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}function mr(e){var t=Nt(e),n=t.overflow,s=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+s)}function cl(e){return["html","body","#document"].indexOf(It(e))>=0?e.ownerDocument.body:ct(e)&&mr(e)?e:cl(_i(e))}function Gn(e,t){var n;t===void 0&&(t=[]);var s=cl(e),i=s===((n=e.ownerDocument)==null?void 0:n.body),r=Be(s),o=i?[r].concat(r.visualViewport||[],mr(s)?s:[]):s,a=t.concat(o);return i?a:a.concat(Gn(_i(o)))}function Gi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function rf(e,t){var n=kn(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Xr(e,t,n){return t===nl?Gi(nf(e,n)):hn(t)?rf(t,n):Gi(sf(Yt(e)))}function of(e){var t=Gn(_i(e)),n=["absolute","fixed"].indexOf(Nt(e).position)>=0,s=n&&ct(e)?ds(e):e;return hn(s)?t.filter(function(i){return hn(i)&&rl(i,s)&&It(i)!=="body"}):[]}function af(e,t,n,s){var i=t==="clippingParents"?of(e):[].concat(t),r=[].concat(i,[n]),o=r[0],a=r.reduce(function(l,c){var d=Xr(e,c,s);return l.top=cn(d.top,l.top),l.right=ci(d.right,l.right),l.bottom=ci(d.bottom,l.bottom),l.left=cn(d.left,l.left),l},Xr(e,o,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function dl(e){var t=e.reference,n=e.element,s=e.placement,i=s?lt(s):null,r=s?jn(s):null,o=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(i){case Ae:l={x:o,y:t.y-n.height};break;case qe:l={x:o,y:t.y+t.height};break;case Ke:l={x:t.x+t.width,y:a};break;case Le:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=i?hr(i):null;if(c!=null){var d=c==="y"?"height":"width";switch(r){case Nn:l[c]=l[c]-(t[d]/2-n[d]/2);break;case es:l[c]=l[c]+(t[d]/2-n[d]/2);break}}return l}function ts(e,t){t===void 0&&(t={});var n=t,s=n.placement,i=s===void 0?e.placement:s,r=n.strategy,o=r===void 0?e.strategy:r,a=n.boundary,l=a===void 0?Md:a,c=n.rootBoundary,d=c===void 0?nl:c,h=n.elementContext,u=h===void 0?On:h,p=n.altBoundary,b=p===void 0?!1:p,m=n.padding,g=m===void 0?0:m,x=al(typeof g!="number"?g:ll(g,cs)),y=u===On?Rd:On,v=e.rects.popper,_=e.elements[b?y:u],w=af(hn(_)?_:_.contextElement||Yt(e.elements.popper),l,d,o),N=kn(e.elements.reference),S=dl({reference:N,element:v,strategy:"absolute",placement:i}),k=Gi(Object.assign({},v,S)),j=u===On?k:N,C={top:w.top-j.top+x.top,bottom:j.bottom-w.bottom+x.bottom,left:w.left-j.left+x.left,right:j.right-w.right+x.right},E=e.modifiersData.offset;if(u===On&&E){var M=E[i];Object.keys(C).forEach(function(P){var T=[Ke,qe].indexOf(P)>=0?1:-1,O=[Ae,qe].indexOf(P)>=0?"y":"x";C[P]+=M[O]*T})}return C}function lf(e,t){t===void 0&&(t={});var n=t,s=n.placement,i=n.boundary,r=n.rootBoundary,o=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?sl:l,d=jn(s),h=d?a?Vr:Vr.filter(function(b){return jn(b)===d}):cs,u=h.filter(function(b){return c.indexOf(b)>=0});u.length===0&&(u=h);var p=u.reduce(function(b,m){return b[m]=ts(e,{placement:m,boundary:i,rootBoundary:r,padding:o})[lt(m)],b},{});return Object.keys(p).sort(function(b,m){return p[b]-p[m]})}function cf(e){if(lt(e)===cr)return[];var t=si(e);return[Gr(e),t,Gr(t)]}function df(e){var t=e.state,n=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var i=n.mainAxis,r=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!0:o,l=n.fallbackPlacements,c=n.padding,d=n.boundary,h=n.rootBoundary,u=n.altBoundary,p=n.flipVariations,b=p===void 0?!0:p,m=n.allowedAutoPlacements,g=t.options.placement,x=lt(g),y=x===g,v=l||(y||!b?[si(g)]:cf(g)),_=[g].concat(v).reduce(function(te,U){return te.concat(lt(U)===cr?lf(t,{placement:U,boundary:d,rootBoundary:h,padding:c,flipVariations:b,allowedAutoPlacements:m}):U)},[]),w=t.rects.reference,N=t.rects.popper,S=new Map,k=!0,j=_[0],C=0;C<_.length;C++){var E=_[C],M=lt(E),P=jn(E)===Nn,T=[Ae,qe].indexOf(M)>=0,O=T?"width":"height",D=ts(t,{placement:E,boundary:d,rootBoundary:h,altBoundary:u,padding:c}),I=T?P?Ke:Le:P?qe:Ae;w[O]>N[O]&&(I=si(I));var V=si(I),W=[];if(r&&W.push(D[M]<=0),a&&W.push(D[I]<=0,D[V]<=0),W.every(function(te){return te})){j=E,k=!1;break}S.set(E,W)}if(k)for(var G=b?3:1,ne=function(U){var se=_.find(function(le){var Y=S.get(le);if(Y)return Y.slice(0,U).every(function(B){return B})});if(se)return j=se,"break"},ae=G;ae>0;ae--){var re=ne(ae);if(re==="break")break}t.placement!==j&&(t.modifiersData[s]._skip=!0,t.placement=j,t.reset=!0)}}const ff={name:"flip",enabled:!0,phase:"main",fn:df,requiresIfExists:["offset"],data:{_skip:!1}};function qr(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Kr(e){return[Ae,Ke,qe,Le].some(function(t){return e[t]>=0})}function hf(e){var t=e.state,n=e.name,s=t.rects.reference,i=t.rects.popper,r=t.modifiersData.preventOverflow,o=ts(t,{elementContext:"reference"}),a=ts(t,{altBoundary:!0}),l=qr(o,s),c=qr(a,i,r),d=Kr(l),h=Kr(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}const uf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hf};function pf(e,t,n){var s=lt(e),i=[Le,Ae].indexOf(s)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=r[0],a=r[1];return o=o||0,a=(a||0)*i,[Le,Ke].indexOf(s)>=0?{x:a,y:o}:{x:o,y:a}}function mf(e){var t=e.state,n=e.options,s=e.name,i=n.offset,r=i===void 0?[0,0]:i,o=sl.reduce(function(d,h){return d[h]=pf(h,t.rects,r),d},{}),a=o[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[s]=o}const gf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mf};function bf(e){var t=e.state,n=e.name;t.modifiersData[n]=dl({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const xf={name:"popperOffsets",enabled:!0,phase:"read",fn:bf,data:{}};function yf(e){return e==="x"?"y":"x"}function vf(e){var t=e.state,n=e.options,s=e.name,i=n.mainAxis,r=i===void 0?!0:i,o=n.altAxis,a=o===void 0?!1:o,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,h=n.padding,u=n.tether,p=u===void 0?!0:u,b=n.tetherOffset,m=b===void 0?0:b,g=ts(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),x=lt(t.placement),y=jn(t.placement),v=!y,_=hr(x),w=yf(_),N=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,j=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,C=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(N){if(r){var P,T=_==="y"?Ae:Le,O=_==="y"?qe:Ke,D=_==="y"?"height":"width",I=N[_],V=I+g[T],W=I-g[O],G=p?-k[D]/2:0,ne=y===Nn?S[D]:k[D],ae=y===Nn?-k[D]:-S[D],re=t.elements.arrow,te=p&&re?fr(re):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ol(),se=U[T],le=U[O],Y=Un(0,S[D],te[D]),B=v?S[D]/2-G-Y-se-C.mainAxis:ne-Y-se-C.mainAxis,Q=v?-S[D]/2+G+Y+le+C.mainAxis:ae+Y+le+C.mainAxis,H=t.elements.arrow&&ds(t.elements.arrow),ue=H?_==="y"?H.clientTop||0:H.clientLeft||0:0,me=(P=E==null?void 0:E[_])!=null?P:0,de=I+B-me-ue,He=I+Q-me,zt=Un(p?ci(V,de):V,I,p?cn(W,He):W);N[_]=zt,M[_]=zt-I}if(a){var Wt,mn=_==="x"?Ae:Le,gn=_==="x"?qe:Ke,Ue=N[w],ut=w==="y"?"height":"width",Vt=Ue+g[mn],Ht=Ue-g[gn],jt=[Ae,Le].indexOf(x)!==-1,Ut=(Wt=E==null?void 0:E[w])!=null?Wt:0,Gt=jt?Vt:Ue-S[ut]-k[ut]-Ut+C.altAxis,Xt=jt?Ue+S[ut]+k[ut]-Ut-C.altAxis:Ht,qt=p&&jt?Wd(Gt,Ue,Xt):Un(p?Gt:Vt,Ue,p?Xt:Ht);N[w]=qt,M[w]=qt-Ue}t.modifiersData[s]=M}}const _f={name:"preventOverflow",enabled:!0,phase:"main",fn:vf,requiresIfExists:["offset"]};function wf(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Nf(e){return e===Be(e)||!ct(e)?ur(e):wf(e)}function Sf(e){var t=e.getBoundingClientRect(),n=Sn(t.width)/e.offsetWidth||1,s=Sn(t.height)/e.offsetHeight||1;return n!==1||s!==1}function kf(e,t,n){n===void 0&&(n=!1);var s=ct(t),i=ct(t)&&Sf(t),r=Yt(t),o=kn(e,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((It(t)!=="body"||mr(r))&&(a=Nf(t)),ct(t)?(l=kn(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=pr(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function jf(e){var t=new Map,n=new Set,s=[];e.forEach(function(r){t.set(r.name,r)});function i(r){n.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&i(l)}}),s.push(r)}return e.forEach(function(r){n.has(r.name)||i(r)}),s}function Cf(e){var t=jf(e);return Yd.reduce(function(n,s){return n.concat(t.filter(function(i){return i.phase===s}))},[])}function Ef(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Mf(e){var t=e.reduce(function(n,s){var i=n[s.name];return n[s.name]=i?Object.assign({},i,s,{options:Object.assign({},i.options,s.options),data:Object.assign({},i.data,s.data)}):s,n},{});return Object.keys(t).map(function(n){return t[n]})}var Jr={placement:"bottom",modifiers:[],strategy:"absolute"};function Zr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function Rf(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,s=n===void 0?[]:n,i=t.defaultOptions,r=i===void 0?Jr:i;return function(a,l,c){c===void 0&&(c=r);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Jr,r),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},h=[],u=!1,p={state:d,setOptions:function(x){var y=typeof x=="function"?x(d.options):x;m(),d.options=Object.assign({},r,d.options,y),d.scrollParents={reference:hn(a)?Gn(a):a.contextElement?Gn(a.contextElement):[],popper:Gn(l)};var v=Cf(Mf([].concat(s,d.options.modifiers)));return d.orderedModifiers=v.filter(function(_){return _.enabled}),b(),p.update()},forceUpdate:function(){if(!u){var x=d.elements,y=x.reference,v=x.popper;if(Zr(y,v)){d.rects={reference:kf(y,ds(v),d.options.strategy==="fixed"),popper:fr(v)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(C){return d.modifiersData[C.name]=Object.assign({},C.data)});for(var _=0;_<d.orderedModifiers.length;_++){if(d.reset===!0){d.reset=!1,_=-1;continue}var w=d.orderedModifiers[_],N=w.fn,S=w.options,k=S===void 0?{}:S,j=w.name;typeof N=="function"&&(d=N({state:d,options:k,name:j,instance:p})||d)}}}},update:Ef(function(){return new Promise(function(g){p.forceUpdate(),g(d)})}),destroy:function(){m(),u=!0}};if(!Zr(a,l))return p;p.setOptions(c).then(function(g){!u&&c.onFirstUpdate&&c.onFirstUpdate(g)});function b(){d.orderedModifiers.forEach(function(g){var x=g.name,y=g.options,v=y===void 0?{}:y,_=g.effect;if(typeof _=="function"){var w=_({state:d,name:x,instance:p,options:v}),N=function(){};h.push(w||N)}})}function m(){h.forEach(function(g){return g()}),h=[]}return p}}const Pf=Rf({defaultModifiers:[uf,xf,Jd,Qd,gf,ff,_f,Gd]}),Tf=["enabled","placement","strategy","modifiers"];function Of(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}const Df={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Af={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const s=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==n.id);s.length?t.setAttribute("aria-describedby",s.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:s}=e.elements,i=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&i==="tooltip"&&"setAttribute"in s){const r=s.getAttribute("aria-describedby");if(r&&r.split(",").indexOf(n.id)!==-1)return;s.setAttribute("aria-describedby",r?`${r},${n.id}`:n.id)}}},Lf=[];function If(e,t,n={}){let{enabled:s=!0,placement:i="bottom",strategy:r="absolute",modifiers:o=Lf}=n,a=Of(n,Tf);const l=R.useRef(o),c=R.useRef(),d=R.useCallback(()=>{var g;(g=c.current)==null||g.update()},[]),h=R.useCallback(()=>{var g;(g=c.current)==null||g.forceUpdate()},[]),[u,p]=Ed(R.useState({placement:i,update:d,forceUpdate:h,attributes:{},styles:{popper:{},arrow:{}}})),b=R.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:g})=>{const x={},y={};Object.keys(g.elements).forEach(v=>{x[v]=g.styles[v],y[v]=g.attributes[v]}),p({state:g,styles:x,attributes:y,update:d,forceUpdate:h,placement:g.placement})}}),[d,h,p]),m=R.useMemo(()=>(Hn(l.current,o)||(l.current=o),l.current),[o]);return R.useEffect(()=>{!c.current||!s||c.current.setOptions({placement:i,strategy:r,modifiers:[...m,b,Df]})},[r,i,b,s,m]),R.useEffect(()=>{if(!(!s||e==null||t==null))return c.current=Pf(e,t,Object.assign({},a,{placement:i,strategy:r,modifiers:[...m,Af,b]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,p(g=>Object.assign({},g,{attributes:{},styles:{popper:{}}})))}},[s,e,t]),u}const Qr=()=>{};function $f(e){return e.button===0}function Ff(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ei=e=>e&&("current"in e?e.current:e),eo={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Yf(e,t=Qr,{disabled:n,clickTrigger:s="click"}={}){const i=R.useRef(!1),r=R.useRef(!1),o=R.useCallback(c=>{const d=Ei(e);Xc(!!d,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!d||Ff(c)||!$f(c)||!!Yr(d,c.target)||r.current,r.current=!1},[e]),a=At(c=>{const d=Ei(e);d&&Yr(d,c.target)?r.current=!0:r.current=!1}),l=At(c=>{i.current||t(c)});R.useEffect(()=>{var c,d;if(n||e==null)return;const h=qc(Ei(e)),u=h.defaultView||window;let p=(c=u.event)!=null?c:(d=u.parent)==null?void 0:d.event,b=null;eo[s]&&(b=Ls(h,eo[s],a,!0));const m=Ls(h,s,o,!0),g=Ls(h,s,y=>{if(y===p){p=void 0;return}l(y)});let x=[];return"ontouchstart"in h.documentElement&&(x=[].slice.call(h.body.children).map(y=>Ls(y,"mousemove",Qr))),()=>{b==null||b(),m(),g(),x.forEach(y=>y())}},[e,n,s,o,a,l])}function Bf(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function zf(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Wf({enabled:e,enableEvents:t,placement:n,flip:s,offset:i,fixed:r,containerPadding:o,arrowElement:a,popperConfig:l={}}){var c,d,h,u,p;const b=Bf(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:r?"fixed":l.strategy,modifiers:zf(Object.assign({},b,{eventListeners:{enabled:t,options:(c=b.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},b.preventOverflow,{options:o?Object.assign({padding:o},(d=b.preventOverflow)==null?void 0:d.options):(h=b.preventOverflow)==null?void 0:h.options}),offset:{options:Object.assign({offset:i},(u=b.offset)==null?void 0:u.options)},arrow:Object.assign({},b.arrow,{enabled:!!a,options:Object.assign({},(p=b.arrow)==null?void 0:p.options,{element:a})}),flip:Object.assign({enabled:!!s},b.flip)}))})}const Vf=["children","usePopper"];function Hf(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}const Uf=()=>{};function fl(e={}){const t=R.useContext(vi),[n,s]=yd(),i=R.useRef(!1),{flip:r,offset:o,rootCloseEvent:a,fixed:l=!1,placement:c,popperConfig:d={},enableEventListeners:h=!0,usePopper:u=!!t}=e,p=(t==null?void 0:t.show)==null?!!e.show:t.show;p&&!i.current&&(i.current=!0);const b=N=>{t==null||t.toggle(!1,N)},{placement:m,setMenu:g,menuElement:x,toggleElement:y}=t||{},v=If(y,x,Wf({placement:c||m||"bottom-start",enabled:u,enableEvents:h??p,offset:o,flip:r,fixed:l,arrowElement:n,popperConfig:d})),_=Object.assign({ref:g||Uf,"aria-labelledby":y==null?void 0:y.id},v.attributes.popper,{style:v.styles.popper}),w={show:p,placement:m,hasShown:i.current,toggle:t==null?void 0:t.toggle,popper:u?v:null,arrowProps:u?Object.assign({ref:s},v.attributes.arrow,{style:v.styles.arrow}):{}};return Yf(x,b,{clickTrigger:a,disabled:!p}),[_,w]}function hl(e){let{children:t,usePopper:n=!0}=e,s=Hf(e,Vf);const[i,r]=fl(Object.assign({},s,{usePopper:n}));return f.jsx(f.Fragment,{children:t(i,r)})}hl.displayName="DropdownMenu";const gr={prefix:String(Math.round(Math.random()*1e10)),current:0},ul=tt.createContext(gr),Gf=tt.createContext(!1);let Xf=!!(typeof window<"u"&&window.document&&window.document.createElement),Mi=new WeakMap;function qf(e=!1){let t=R.useContext(ul),n=R.useRef(null);if(n.current===null&&!e){var s,i;let r=(i=tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(s=i.ReactCurrentOwner)===null||s===void 0?void 0:s.current;if(r){let o=Mi.get(r);o==null?Mi.set(r,{id:t.current,state:r.memoizedState}):r.memoizedState!==o.state&&(t.current=o.id,Mi.delete(r))}n.current=++t.current}return n.current}function Kf(e){let t=R.useContext(ul);t===gr&&!Xf&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=qf(!!e),s=`react-aria${t.prefix}`;return e||`${s}-${n}`}function Jf(e){let t=tt.useId(),[n]=R.useState(nh()),s=n?"react-aria":`react-aria${gr.prefix}`;return e||`${s}-${t}`}const Zf=typeof tt.useId=="function"?Jf:Kf;function Qf(){return!1}function eh(){return!0}function th(e){return()=>{}}function nh(){return typeof tt.useSyncExternalStore=="function"?tt.useSyncExternalStore(th,Qf,eh):R.useContext(Gf)}const pl=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},to=()=>{};function ml(){const e=Zf(),{show:t=!1,toggle:n=to,setToggle:s,menuElement:i}=R.useContext(vi)||{},r=R.useCallback(a=>{n(!t,a)},[t,n]),o={id:e,ref:s||to,onClick:r,"aria-expanded":!!t};return i&&pl(i)&&(o["aria-haspopup"]=!0),[o,{show:t,toggle:n}]}function gl({children:e}){const[t,n]=ml();return f.jsx(f.Fragment,{children:e(t,n)})}gl.displayName="DropdownToggle";const Xi=R.createContext(null),no=(e,t=null)=>e!=null?String(e):t||null,bl=R.createContext(null);bl.displayName="NavContext";const sh=["eventKey","disabled","onClick","active","as"];function ih(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)>=0)continue;n[s]=e[s]}return n}function xl({key:e,href:t,active:n,disabled:s,onClick:i}){const r=R.useContext(Xi),o=R.useContext(bl),{activeKey:a}=o||{},l=no(e,t),c=n==null&&e!=null?no(a)===l:n;return[{onClick:At(h=>{s||(i==null||i(h),r&&!h.isPropagationStopped()&&r(l,h))}),"aria-disabled":s||void 0,"aria-selected":c,[$a("dropdown-item")]:""},{isActive:c}]}const yl=R.forwardRef((e,t)=>{let{eventKey:n,disabled:s,onClick:i,active:r,as:o=Kc}=e,a=ih(e,sh);const[l]=xl({key:n,href:a.href,disabled:s,onClick:i,active:r});return f.jsx(o,Object.assign({},a,{ref:t},l))});yl.displayName="DropdownItem";function so(){const e=Cd(),t=R.useRef(null),n=R.useCallback(s=>{t.current=s,e()},[e]);return[t,n]}function fs({defaultShow:e,show:t,onSelect:n,onToggle:s,itemSelector:i=`* [${$a("dropdown-item")}]`,focusFirstItemOnShow:r,placement:o="bottom-start",children:a}){const l=Jc(),[c,d]=jd(t,e,s),[h,u]=so(),p=h.current,[b,m]=so(),g=b.current,x=Zc(c),y=R.useRef(null),v=R.useRef(!1),_=R.useContext(Xi),w=R.useCallback((E,M,P=M==null?void 0:M.type)=>{d(E,{originalEvent:M,source:P})},[d]),N=At((E,M)=>{n==null||n(E,M),w(!1,M,"select"),M.isPropagationStopped()||_==null||_(E,M)}),S=R.useMemo(()=>({toggle:w,placement:o,show:c,menuElement:p,toggleElement:g,setMenu:u,setToggle:m}),[w,o,c,p,g,u,m]);p&&x&&!c&&(v.current=p.contains(p.ownerDocument.activeElement));const k=At(()=>{g&&g.focus&&g.focus()}),j=At(()=>{const E=y.current;let M=r;if(M==null&&(M=h.current&&pl(h.current)?"keyboard":!1),M===!1||M==="keyboard"&&!/^key.+$/.test(E))return;const P=Br(h.current,i)[0];P&&P.focus&&P.focus()});R.useEffect(()=>{c?j():v.current&&(v.current=!1,k())},[c,v,k,j]),R.useEffect(()=>{y.current=null});const C=(E,M)=>{if(!h.current)return null;const P=Br(h.current,i);let T=P.indexOf(E)+M;return T=Math.max(0,Math.min(T,P.length)),P[T]};return vd(R.useCallback(()=>l.document,[l]),"keydown",E=>{var M,P;const{key:T}=E,O=E.target,D=(M=h.current)==null?void 0:M.contains(O),I=(P=b.current)==null?void 0:P.contains(O);if(/input|textarea/i.test(O.tagName)&&(T===" "||T!=="Escape"&&D||T==="Escape"&&O.type==="search")||!D&&!I||T==="Tab"&&(!h.current||!c))return;y.current=E.type;const W={originalEvent:E,source:E.type};switch(T){case"ArrowUp":{const G=C(O,-1);G&&G.focus&&G.focus(),E.preventDefault();return}case"ArrowDown":if(E.preventDefault(),!c)d(!0,W);else{const G=C(O,1);G&&G.focus&&G.focus()}return;case"Tab":Qc(O.ownerDocument,"keyup",G=>{var ne;(G.key==="Tab"&&!G.target||!((ne=h.current)!=null&&ne.contains(G.target)))&&d(!1,W)},{once:!0});break;case"Escape":T==="Escape"&&(E.preventDefault(),E.stopPropagation()),d(!1,W);break}}),f.jsx(Xi.Provider,{value:N,children:f.jsx(vi.Provider,{value:S,children:a})})}fs.displayName="Dropdown";fs.Menu=hl;fs.Toggle=gl;fs.Item=yl;const br=R.createContext({});br.displayName="DropdownContext";const vl=R.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:s="separator",...i},r)=>(t=Se(t,"dropdown-divider"),f.jsx(n,{ref:r,className:ke(e,t),role:s,...i})));vl.displayName="DropdownDivider";const _l=R.forwardRef(({className:e,bsPrefix:t,as:n="div",role:s="heading",...i},r)=>(t=Se(t,"dropdown-header"),f.jsx(n,{ref:r,className:ke(e,t),role:s,...i})));_l.displayName="DropdownHeader";const wl=R.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:s=!1,onClick:i,active:r,as:o=Ha,...a},l)=>{const c=Se(e,"dropdown-item"),[d,h]=xl({key:n,href:a.href,disabled:s,onClick:i,active:r});return f.jsx(o,{...a,...d,ref:l,className:ke(t,c,h.isActive&&"active",s&&"disabled")})});wl.displayName="DropdownItem";const Nl=R.forwardRef(({className:e,bsPrefix:t,as:n="span",...s},i)=>(t=Se(t,"dropdown-item-text"),f.jsx(n,{ref:i,className:ke(e,t),...s})));Nl.displayName="DropdownItemText";const rh=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",oh=typeof document<"u",ah=oh||rh?R.useLayoutEffect:R.useEffect,Sl=R.createContext(null);Sl.displayName="NavbarContext";function kl(e,t){return e}function jl(e,t,n){const s=n?"top-end":"top-start",i=n?"top-start":"top-end",r=n?"bottom-end":"bottom-start",o=n?"bottom-start":"bottom-end",a=n?"right-start":"left-start",l=n?"right-end":"left-end",c=n?"left-start":"right-start",d=n?"left-end":"right-end";let h=e?o:r;return t==="up"?h=e?i:s:t==="end"?h=e?d:c:t==="start"?h=e?l:a:t==="down-centered"?h="bottom":t==="up-centered"&&(h="top"),h}const Cl=R.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:s,flip:i=!0,show:r,renderOnMount:o,as:a="div",popperConfig:l,variant:c,...d},h)=>{let u=!1;const p=R.useContext(Sl),b=Se(e,"dropdown-menu"),{align:m,drop:g,isRTL:x}=R.useContext(br);n=n||m;const y=R.useContext(Fa),v=[];if(n)if(typeof n=="object"){const E=Object.keys(n);if(E.length){const M=E[0],P=n[M];u=P==="start",v.push(`${b}-${M}-${P}`)}}else n==="end"&&(u=!0);const _=jl(u,g,x),[w,{hasShown:N,popper:S,show:k,toggle:j}]=fl({flip:i,rootCloseEvent:s,show:r,usePopper:!p&&v.length===0,offset:[0,2],popperConfig:l,placement:_});if(w.ref=Ya(kl(h),w.ref),ah(()=>{k&&(S==null||S.update())},[k]),!N&&!o&&!y)return null;typeof a!="string"&&(w.show=k,w.close=()=>j==null?void 0:j(!1),w.align=n);let C=d.style;return S!=null&&S.placement&&(C={...d.style,...w.style},d["x-placement"]=S.placement),f.jsx(a,{...d,...w,style:C,...(v.length||p)&&{"data-bs-popper":"static"},className:ke(t,b,k&&"show",u&&`${b}-end`,c&&`${b}-${c}`,...v)})});Cl.displayName="DropdownMenu";const El=R.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:s,as:i=xt,...r},o)=>{const a=Se(e,"dropdown-toggle"),l=R.useContext(vi);s!==void 0&&(r.bsPrefix=s);const[c]=ml();return c.ref=Ya(c.ref,kl(o)),f.jsx(i,{className:ke(n,a,t&&`${a}-split`,(l==null?void 0:l.show)&&"show"),...c,...r})});El.displayName="DropdownToggle";const Ml=R.forwardRef((e,t)=>{const{bsPrefix:n,drop:s="down",show:i,className:r,align:o="start",onSelect:a,onToggle:l,focusFirstItemOnShow:c,as:d="div",navbar:h,autoClose:u=!0,...p}=ed(e,{show:"onToggle"}),b=R.useContext(Fa),m=Se(n,"dropdown"),g=td(),x=S=>u===!1?S==="click":u==="inside"?S!=="rootClose":u==="outside"?S!=="select":!0,y=nd((S,k)=>{var j;!((j=k.originalEvent)==null||(j=j.target)==null)&&j.classList.contains("dropdown-toggle")&&k.source==="mousedown"||(k.originalEvent.currentTarget===document&&(k.source!=="keydown"||k.originalEvent.key==="Escape")&&(k.source="rootClose"),x(k.source)&&(l==null||l(S,k)))}),_=jl(o==="end",s,g),w=R.useMemo(()=>({align:o,drop:s,isRTL:g}),[o,s,g]),N={down:m,"down-centered":`${m}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return f.jsx(br.Provider,{value:w,children:f.jsx(fs,{placement:_,show:i,onSelect:a,onToggle:y,focusFirstItemOnShow:c,itemSelector:`.${m}-item:not(.disabled):not(:disabled)`,children:b?p.children:f.jsx(d,{...p,ref:t,className:ke(r,i&&"show",N[s])})})})});Ml.displayName="Dropdown";const Ri=Object.assign(Ml,{Toggle:El,Menu:Cl,Item:wl,ItemText:Nl,Divider:vl,Header:_l}),Rl="/static/C4lsyu6A.svg",Pl="/static/DhA-EmEc.svg";function xr(){const e=A.c(13),{trackPageView:t}=or();let n,s;e[0]!==t?(n=()=>{t({documentTitle:"GEANT Compendium Landing Page"})},s=[t],e[0]=t,e[1]=n,e[2]=s):(n=e[1],s=e[2]),R.useEffect(n,s);let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=f.jsx("h1",{className:"geant-header",children:"THE GÉANT COMPENDIUM OF NRENS"}),e[3]=i):i=e[3];let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx(we,{children:f.jsxs("div",{className:"center-text",children:[i,f.jsxs("div",{className:"wordwrap pt-4",children:[f.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"Each year GÉANT invites European National Research and Eduction Networks to fill in a questionnaire asking about their network, their organisation, standards and policies, connected users, and the services they offer their users. This Compendium of responses is an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. No two NRENs are identical, with great diversity in their structures, funding, size, and focus."}),f.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"The GÉANT Compendium of NRENs Report is published annually, using both data from the Compendium from other sources, including surveys and studies carried out within different teams within GÉANT and the NREN community. The Report gives a broad overview of the European NREN landscape, identifying developments and trends."}),f.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"Compendium Data, the responses from the NRENs, are made available to be viewed and downloaded. Graphs, charts, and tables can be customised to show as many or few NRENs as required, across different years. These can be downloaded as images or in PDF form."})]})]})}),e[4]=r):r=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o={backgroundColor:"white"},e[5]=o):o=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a={width:"18rem"},e[6]=a):a=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=f.jsx(st.Img,{src:Rl}),e[7]=l):l=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=f.jsx(st.Title,{children:"Compendium Data"}),e[8]=c):c=e[8];let d;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=f.jsx(Ne,{align:"center",children:f.jsx(st,{border:"light",style:a,children:f.jsxs($,{to:"/data",className:"link-text",children:[l,f.jsxs(st.Body,{children:[c,f.jsx(st.Text,{children:f.jsx("span",{children:"Statistical representation of the annual Compendium Survey data is available here"})})]})]})})}),e[9]=d):d=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h={width:"18rem"},e[10]=h):h=e[10];let u;e[11]===Symbol.for("react.memo_cache_sentinel")?(u=f.jsx(st.Img,{src:Pl}),e[11]=u):u=e[11];let p;return e[12]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsxs(fn,{className:"py-5 grey-container",children:[r,f.jsx(we,{children:f.jsx(Ne,{children:f.jsx(fn,{style:o,className:"rounded-border",children:f.jsxs(we,{className:"justify-content-md-center",children:[d,f.jsx(Ne,{align:"center",children:f.jsx(st,{border:"light",style:h,children:f.jsxs("a",{href:"https://resources.geant.org/geant-compendia/",className:"link-text",target:"_blank",rel:"noreferrer",children:[u,f.jsxs(st.Body,{children:[f.jsx(st.Title,{children:"Compendium Reports"}),f.jsx(st.Text,{children:"A GÉANT Compendium Report is published annually, drawing on data from the Compendium Survey filled in by NRENs, complemented by information from other surveys"})]})]})})})]})})})})]}),e[12]=p):p=e[12],p}const rn=e=>{const t=A.c(23),{title:n,children:s,startCollapsed:i,theme:r}=e,o=r===void 0?"":r,[a,l]=R.useState(!!i);let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c={color:"white",paddingBottom:"3px",marginTop:"3px",marginLeft:"3px",scale:"1.3"},t[0]=c):c=t[0];let d=c;if(o){let w;t[1]===Symbol.for("react.memo_cache_sentinel")?(w={...d,color:"black",fontWeight:"bold"},t[1]=w):w=t[1],d=w}const h=`collapsible-box${o} p-0`;let u;t[2]!==n?(u=f.jsx(Ne,{children:f.jsx("h1",{className:"bold-caps-16pt dark-teal pt-3 ps-3",children:n})}),t[2]=n,t[3]=u):u=t[3];const p=`toggle-btn${o} p-${o?3:2}`;let b;t[4]!==a?(b=()=>l(!a),t[4]=a,t[5]=b):b=t[5];let m;t[6]!==a||t[7]!==d?(m=a?f.jsx(sd,{style:d}):f.jsx(id,{style:d}),t[6]=a,t[7]=d,t[8]=m):m=t[8];let g;t[9]!==p||t[10]!==b||t[11]!==m?(g=f.jsx(Ne,{className:"flex-grow-0 flex-shrink-1",children:f.jsx("div",{className:p,onClick:b,children:m})}),t[9]=p,t[10]=b,t[11]=m,t[12]=g):g=t[12];let x;t[13]!==u||t[14]!==g?(x=f.jsxs(we,{children:[u,g]}),t[13]=u,t[14]=g,t[15]=x):x=t[15];const y=`collapsible-content${a?" collapsed":""}`;let v;t[16]!==s||t[17]!==y?(v=f.jsx("div",{className:y,children:s}),t[16]=s,t[17]=y,t[18]=v):v=t[18];let _;return t[19]!==v||t[20]!==h||t[21]!==x?(_=f.jsxs("div",{className:h,children:[x,v]}),t[19]=v,t[20]=h,t[21]=x,t[22]=_):_=t[22],_};function lh(e){const t=A.c(8),{section:n}=e;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={display:"flex",alignSelf:"right",lineHeight:"1.5rem",marginTop:"0.5rem"},t[0]=s):s=t[0];let i,r;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=f.jsx("br",{}),r={float:"right"},t[1]=i,t[2]=r):(i=t[1],r=t[2]);let o;t[3]!==n?(o=f.jsx("div",{style:s,children:f.jsxs("span",{children:["Compendium ",i,f.jsx("span",{style:r,children:n})]})}),t[3]=n,t[4]=o):o=t[4];let a;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=f.jsx("img",{src:Pl,style:{maxWidth:"4rem"}}),t[5]=a):a=t[5];let l;return t[6]!==o?(l=f.jsxs("div",{className:"bold-caps-17pt section-container",children:[o,a]}),t[6]=o,t[7]=l):l=t[7],l}function Tl(e){const t=A.c(14),{type:n}=e;let s="";n=="data"?s=" compendium-data-header":n=="reports"&&(s=" compendium-reports-header");let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i={marginTop:"0.5rem"},t[0]=i):i=t[0];const r=n==="data"?"/data":"/";let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o={textDecoration:"none",color:"white"},t[1]=o):o=t[1];const a=n==="data"?"Data":"Reports";let l;t[2]!==a?(l=f.jsxs("span",{children:["Compendium ",a]}),t[2]=a,t[3]=l):l=t[3];let c;t[4]!==r||t[5]!==l?(c=f.jsx(Ne,{sm:8,children:f.jsx("h1",{className:"bold-caps-30pt",style:i,children:f.jsx($,{to:r,style:o,children:l})})}),t[4]=r,t[5]=l,t[6]=c):c=t[6];let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d={color:"inherit"},t[7]=d):d=t[7];let h;t[8]===Symbol.for("react.memo_cache_sentinel")?(h=f.jsx(Ne,{sm:4,children:f.jsx("a",{style:d,href:"https://resources.geant.org/geant-compendia/",target:"_blank",rel:"noreferrer",children:f.jsx(lh,{section:"Reports"})})}),t[8]=h):h=t[8];let u;t[9]!==c?(u=f.jsx(fn,{children:f.jsxs(we,{children:[c,h]})}),t[9]=c,t[10]=u):u=t[10];let p;return t[11]!==s||t[12]!==u?(p=f.jsx("div",{className:s,children:u}),t[11]=s,t[12]=u,t[13]=p):p=t[13],p}function ch(e){const t=A.c(8),{children:n,type:s}=e;let i="";s=="data"?i=" compendium-data-banner":s=="reports"&&(i=" compendium-reports-banner");let r,o;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("img",{src:Rl,style:{maxWidth:"7rem",marginBottom:"1rem"}}),o={display:"flex",alignSelf:"right"},t[0]=r,t[1]=o):(r=t[0],o=t[1]);let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a={paddingTop:"1rem"},t[2]=a):a=t[2];let l;t[3]!==n?(l=f.jsx(fn,{children:f.jsx(we,{children:f.jsx(we,{children:f.jsxs("div",{className:"section-container",children:[r,f.jsx("div",{style:o,children:f.jsx("div",{className:"center-text",style:a,children:n})})]})})})}),t[3]=n,t[4]=l):l=t[4];let c;return t[5]!==i||t[6]!==l?(c=f.jsx("div",{className:i,children:l}),t[5]=i,t[6]=l,t[7]=c):c=t[7],c}var L=(e=>(e.Organisation="ORGANISATION",e.Policy="STANDARDS AND POLICIES",e.ConnectedUsers="CONNECTED USERS",e.Network="NETWORK",e.Services="SERVICES",e))(L||{}),on=(e=>(e.CSV="CSV",e.EXCEL="EXCEL",e))(on||{}),tn=(e=>(e.PNG="png",e.JPEG="jpeg",e.SVG="svg",e))(tn||{});const ii={universities:"Universities & Other (ISCED 6-8)",further_education:"Further education (ISCED 4-5)",secondary_schools:"Secondary schools (ISCED 2-3)",primary_schools:"Primary schools (ISCED 1)",institutes:"Research Institutes",cultural:"Libraries, Museums, Archives, Cultural institutions",hospitals:"Non-university public Hospitals",government:"Government departments (national, regional, local)",iros:"International (virtual) research organisations",for_profit_orgs:"For-profit organisations"},io={commercial_r_and_e:"Commercial R&E traffic only",commercial_general:"Commercial general",commercial_collaboration:"Commercial for collaboration only (project/time limited)",commercial_service_provider:"Commercial Service Provider",university_spin_off:"University Spin Off/Incubator"},ro={collaboration:"Connection to your network for collaboration with R&E users",service_supplier:"Connection to your network for supplying services for R&E",direct_peering:"Direct peering (e.g. direct peering or cloud peering)"};function Ol(){const e=A.c(7),{preview:t,setPreview:n}=R.useContext(Ba),{user:s}=R.useContext(rd),[i]=od();let r;e[0]!==i?(r=i.get("preview"),e[0]=i,e[1]=r):r=e[1];const o=r;let a,l;return e[2]!==o||e[3]!==n||e[4]!==s?(a=()=>{o!==null&&(s.permissions.admin||s.role=="observer")&&n(!0)},l=[o,n,s],e[2]=o,e[3]=n,e[4]=s,e[5]=a,e[6]=l):(a=e[5],l=e[6]),R.useEffect(a,l),t}function dh(){const e=A.c(82);Ol();const{trackPageView:t}=or();let n,s;e[0]!==t?(n=()=>{t({documentTitle:"Compendium Data"})},s=[t],e[0]=t,e[1]=n,e[2]=s):(n=e[1],s=e[2]),tt.useEffect(n,s);let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=f.jsx(Tl,{type:"data"}),e[3]=i):i=e[3];let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx(ch,{type:"data",children:f.jsx("p",{className:"wordwrap",children:"The GÉANT Compendium provides an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. Published since 2001, the Compendium provides information on key areas such as users, services, traffic, budget and staffing."})}),e[4]=r):r=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=f.jsx("h6",{className:"section-title",children:"Budget, Income and Billing"}),e[5]=o):o=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=f.jsx($,{to:"/budget",className:"link-text-underline",children:f.jsx("span",{children:"Budget of NRENs per Year"})}),e[6]=a):a=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=f.jsx($,{to:"/funding",className:"link-text-underline",children:f.jsx("span",{children:"Income Source of NRENs"})}),e[7]=l):l=e[7];let c,d,h;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=f.jsx($,{to:"/charging",className:"link-text-underline",children:f.jsx("span",{children:"Charging Mechanism of NRENs"})}),d=f.jsx("hr",{className:"fake-divider"}),h=f.jsx("h6",{className:"section-title",children:"Staff and Projects"}),e[8]=c,e[9]=d,e[10]=h):(c=e[8],d=e[9],h=e[10]);let u;e[11]===Symbol.for("react.memo_cache_sentinel")?(u=f.jsx($,{to:"/employee-count",className:"link-text-underline",children:f.jsx("span",{children:"Number of NREN Employees"})}),e[11]=u):u=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsx($,{to:"/roles",className:"link-text-underline",children:f.jsx("span",{children:"Roles of NREN employees (Technical v. Non-Technical)"})}),e[12]=p):p=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=f.jsx($,{to:"/employment",className:"link-text-underline",children:f.jsx("span",{children:"Types of Employment within NRENs"})}),e[13]=b):b=e[13];let m;e[14]===Symbol.for("react.memo_cache_sentinel")?(m=f.jsx($,{to:"/suborganisations",className:"link-text-underline",children:f.jsx("span",{children:"NREN Sub-Organisations"})}),e[14]=m):m=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=f.jsx($,{to:"/parentorganisation",className:"link-text-underline",children:f.jsx("span",{children:"NREN Parent Organisations"})}),e[15]=g):g=e[15];let x;e[16]===Symbol.for("react.memo_cache_sentinel")?(x=f.jsxs(rn,{title:L.Organisation,children:[o,a,l,c,d,h,u,p,b,m,g,f.jsx($,{to:"/ec-projects",className:"link-text-underline",children:f.jsx("span",{children:"NREN Involvement in European Commission Projects"})})]}),e[16]=x):x=e[16];let y,v;e[17]===Symbol.for("react.memo_cache_sentinel")?(y=f.jsx($,{to:"/policy",className:"link-text-underline",children:f.jsx("span",{children:"NREN Policies"})}),v=f.jsx("h6",{className:"section-title",children:"Standards"}),e[17]=y,e[18]=v):(y=e[17],v=e[18]);let _;e[19]===Symbol.for("react.memo_cache_sentinel")?(_=f.jsx($,{to:"/audits",className:"link-text-underline",children:f.jsx("span",{children:"External and Internal Audits of Information Security Management Systems"})}),e[19]=_):_=e[19];let w;e[20]===Symbol.for("react.memo_cache_sentinel")?(w=f.jsx($,{to:"/business-continuity",className:"link-text-underline",children:f.jsx("span",{children:"NREN Business Continuity Planning"})}),e[20]=w):w=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=f.jsx($,{to:"/central-procurement",className:"link-text-underline",children:f.jsx("span",{children:"Central Procurement of Software"})}),e[21]=N):N=e[21];let S;e[22]===Symbol.for("react.memo_cache_sentinel")?(S=f.jsx($,{to:"/crisis-management",className:"link-text-underline",children:f.jsx("span",{children:"Crisis Management Procedures"})}),e[22]=S):S=e[22];let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k=f.jsx($,{to:"/crisis-exercise",className:"link-text-underline",children:f.jsx("span",{children:"Crisis Exercises - NREN Operation and Participation"})}),e[23]=k):k=e[23];let j;e[24]===Symbol.for("react.memo_cache_sentinel")?(j=f.jsx($,{to:"/security-control",className:"link-text-underline",children:f.jsx("span",{children:"Security Controls Used by NRENs"})}),e[24]=j):j=e[24];let C;e[25]===Symbol.for("react.memo_cache_sentinel")?(C=f.jsx($,{to:"/services-offered",className:"link-text-underline",children:f.jsx("span",{children:"Services Offered by NRENs by Types of Users"})}),e[25]=C):C=e[25];let E;e[26]===Symbol.for("react.memo_cache_sentinel")?(E=f.jsx($,{to:"/corporate-strategy",className:"link-text-underline",children:f.jsx("span",{children:"NREN Corporate Strategies "})}),e[26]=E):E=e[26];let M;e[27]===Symbol.for("react.memo_cache_sentinel")?(M=f.jsx($,{to:"/service-level-targets",className:"link-text-underline",children:f.jsx("span",{children:"NRENs Offering Service Level Targets"})}),e[27]=M):M=e[27];let P;e[28]===Symbol.for("react.memo_cache_sentinel")?(P=f.jsxs(rn,{title:L.Policy,startCollapsed:!0,children:[y,v,_,w,N,S,k,j,C,E,M,f.jsx($,{to:"/service-management-framework",className:"link-text-underline",children:f.jsx("span",{children:"NRENs Operating a Formal Service Management Framework"})})]}),e[28]=P):P=e[28];let T;e[29]===Symbol.for("react.memo_cache_sentinel")?(T=f.jsx("h6",{className:"section-title",children:"Connected Users"}),e[29]=T):T=e[29];let O;e[30]===Symbol.for("react.memo_cache_sentinel")?(O=f.jsx($,{to:"/institutions-urls",className:"link-text-underline",children:f.jsx("span",{children:"Webpages Listing Institutions and Organisations Connected to NREN Networks"})}),e[30]=O):O=e[30];let D;e[31]===Symbol.for("react.memo_cache_sentinel")?(D=f.jsx($,{to:"/connected-proportion",className:"link-text-underline",children:f.jsx("span",{children:"Proportion of Different Categories of Institutions Served by NRENs"})}),e[31]=D):D=e[31];let I;e[32]===Symbol.for("react.memo_cache_sentinel")?(I=f.jsx($,{to:"/connectivity-level",className:"link-text-underline",children:f.jsx("span",{children:"Level of IP Connectivity by Institution Type"})}),e[32]=I):I=e[32];let V;e[33]===Symbol.for("react.memo_cache_sentinel")?(V=f.jsx($,{to:"/connection-carrier",className:"link-text-underline",children:f.jsx("span",{children:"Methods of Carrying IP Traffic to Users"})}),e[33]=V):V=e[33];let W;e[34]===Symbol.for("react.memo_cache_sentinel")?(W=f.jsx($,{to:"/connectivity-load",className:"link-text-underline",children:f.jsx("span",{children:"Connectivity Load"})}),e[34]=W):W=e[34];let G;e[35]===Symbol.for("react.memo_cache_sentinel")?(G=f.jsx($,{to:"/connectivity-growth",className:"link-text-underline",children:f.jsx("span",{children:"Connectivity Growth"})}),e[35]=G):G=e[35];let ne,ae,re;e[36]===Symbol.for("react.memo_cache_sentinel")?(ne=f.jsx($,{to:"/remote-campuses",className:"link-text-underline",children:f.jsx("span",{children:"NREN Connectivity to Remote Campuses in Other Countries"})}),ae=f.jsx("hr",{className:"fake-divider"}),re=f.jsx("h6",{className:"section-title",children:"Connected Users - Commercial"}),e[36]=ne,e[37]=ae,e[38]=re):(ne=e[36],ae=e[37],re=e[38]);let te;e[39]===Symbol.for("react.memo_cache_sentinel")?(te=f.jsx($,{to:"/commercial-charging-level",className:"link-text-underline",children:f.jsx("span",{children:"Commercial Charging Level"})}),e[39]=te):te=e[39];let U;e[40]===Symbol.for("react.memo_cache_sentinel")?(U=f.jsxs(rn,{title:L.ConnectedUsers,startCollapsed:!0,children:[T,O,D,I,V,W,G,ne,ae,re,te,f.jsx($,{to:"/commercial-connectivity",className:"link-text-underline",children:f.jsx("span",{children:"Commercial Connectivity"})})]}),e[40]=U):U=e[40];let se;e[41]===Symbol.for("react.memo_cache_sentinel")?(se=f.jsx("h6",{className:"section-title",children:"Connectivity"}),e[41]=se):se=e[41];let le;e[42]===Symbol.for("react.memo_cache_sentinel")?(le=f.jsx($,{to:"/traffic-volume",className:"link-text-underline",children:f.jsx("span",{children:"NREN Traffic - NREN Customers & External Networks"})}),e[42]=le):le=e[42];let Y;e[43]===Symbol.for("react.memo_cache_sentinel")?(Y=f.jsx($,{to:"/iru-duration",className:"link-text-underline",children:f.jsx("span",{children:"Average Duration of IRU leases of Fibre by NRENs"})}),e[43]=Y):Y=e[43];let B;e[44]===Symbol.for("react.memo_cache_sentinel")?(B=f.jsx($,{to:"/fibre-light",className:"link-text-underline",children:f.jsx("span",{children:"Approaches to lighting NREN fibre networks"})}),e[44]=B):B=e[44];let Q;e[45]===Symbol.for("react.memo_cache_sentinel")?(Q=f.jsx($,{to:"/dark-fibre-lease",className:"link-text-underline",children:f.jsx("span",{children:"Kilometres of Leased Dark Fibre (National)"})}),e[45]=Q):Q=e[45];let H;e[46]===Symbol.for("react.memo_cache_sentinel")?(H=f.jsx($,{to:"/dark-fibre-lease-international",className:"link-text-underline",children:f.jsx("span",{children:"Kilometres of Leased Dark Fibre (International)"})}),e[46]=H):H=e[46];let ue;e[47]===Symbol.for("react.memo_cache_sentinel")?(ue=f.jsx($,{to:"/dark-fibre-installed",className:"link-text-underline",children:f.jsx("span",{children:"Kilometres of Installed Dark Fibre"})}),e[47]=ue):ue=e[47];let me,de,He;e[48]===Symbol.for("react.memo_cache_sentinel")?(me=f.jsx($,{to:"/network-map",className:"link-text-underline",children:f.jsx("span",{children:"NREN Network Maps"})}),de=f.jsx("hr",{className:"fake-divider"}),He=f.jsx("h6",{className:"section-title",children:"Performance Monitoring & Management"}),e[48]=me,e[49]=de,e[50]=He):(me=e[48],de=e[49],He=e[50]);let zt;e[51]===Symbol.for("react.memo_cache_sentinel")?(zt=f.jsx($,{to:"/monitoring-tools",className:"link-text-underline",children:f.jsx("span",{children:"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions"})}),e[51]=zt):zt=e[51];let Wt;e[52]===Symbol.for("react.memo_cache_sentinel")?(Wt=f.jsx($,{to:"/pert-team",className:"link-text-underline",children:f.jsx("span",{children:"NRENs with Performance Enhancement Response Teams"})}),e[52]=Wt):Wt=e[52];let mn;e[53]===Symbol.for("react.memo_cache_sentinel")?(mn=f.jsx($,{to:"/passive-monitoring",className:"link-text-underline",children:f.jsx("span",{children:"Methods for Passively Monitoring International Traffic"})}),e[53]=mn):mn=e[53];let gn;e[54]===Symbol.for("react.memo_cache_sentinel")?(gn=f.jsx($,{to:"/traffic-stats",className:"link-text-underline",children:f.jsx("span",{children:"Traffic Statistics  "})}),e[54]=gn):gn=e[54];let Ue;e[55]===Symbol.for("react.memo_cache_sentinel")?(Ue=f.jsx($,{to:"/weather-map",className:"link-text-underline",children:f.jsx("span",{children:"NREN Online Network Weather Maps "})}),e[55]=Ue):Ue=e[55];let ut;e[56]===Symbol.for("react.memo_cache_sentinel")?(ut=f.jsx($,{to:"/certificate-provider",className:"link-text-underline",children:f.jsx("span",{children:"Certification Services used by NRENs"})}),e[56]=ut):ut=e[56];let Vt,Ht,jt;e[57]===Symbol.for("react.memo_cache_sentinel")?(Vt=f.jsx($,{to:"/siem-vendors",className:"link-text-underline",children:f.jsx("span",{children:"Vendors of SIEM/SOC systems used by NRENs"})}),Ht=f.jsx("hr",{className:"fake-divider"}),jt=f.jsx("h6",{className:"section-title",children:"Alienwave"}),e[57]=Vt,e[58]=Ht,e[59]=jt):(Vt=e[57],Ht=e[58],jt=e[59]);let Ut;e[60]===Symbol.for("react.memo_cache_sentinel")?(Ut=f.jsx($,{to:"/alien-wave",className:"link-text-underline",children:f.jsx("span",{children:"NREN Use of 3rd Party Alienwave/Lightpath Services"})}),e[60]=Ut):Ut=e[60];let Gt,Xt,qt;e[61]===Symbol.for("react.memo_cache_sentinel")?(Gt=f.jsx($,{to:"/alien-wave-internal",className:"link-text-underline",children:f.jsx("span",{children:"Internal NREN Use of Alien Waves"})}),Xt=f.jsx("hr",{className:"fake-divider"}),qt=f.jsx("h6",{className:"section-title",children:"Capacity"}),e[61]=Gt,e[62]=Xt,e[63]=qt):(Gt=e[61],Xt=e[62],qt=e[63]);let xs;e[64]===Symbol.for("react.memo_cache_sentinel")?(xs=f.jsx($,{to:"/capacity-largest-link",className:"link-text-underline",children:f.jsx("span",{children:"Capacity of the Largest Link in an NREN Network"})}),e[64]=xs):xs=e[64];let ys;e[65]===Symbol.for("react.memo_cache_sentinel")?(ys=f.jsx($,{to:"/external-connections",className:"link-text-underline",children:f.jsx("span",{children:"NREN External IP Connections"})}),e[65]=ys):ys=e[65];let vs;e[66]===Symbol.for("react.memo_cache_sentinel")?(vs=f.jsx($,{to:"/capacity-core-ip",className:"link-text-underline",children:f.jsx("span",{children:"NREN Core IP Capacity"})}),e[66]=vs):vs=e[66];let _s;e[67]===Symbol.for("react.memo_cache_sentinel")?(_s=f.jsx($,{to:"/non-rne-peers",className:"link-text-underline",children:f.jsx("span",{children:"Number of Non-R&E Networks NRENs Peer With"})}),e[67]=_s):_s=e[67];let ws,Ns,Ss;e[68]===Symbol.for("react.memo_cache_sentinel")?(ws=f.jsx($,{to:"/traffic-ratio",className:"link-text-underline",children:f.jsx("span",{children:"Types of traffic in NREN networks"})}),Ns=f.jsx("hr",{className:"fake-divider"}),Ss=f.jsx("h6",{className:"section-title",children:"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"}),e[68]=ws,e[69]=Ns,e[70]=Ss):(ws=e[68],Ns=e[69],Ss=e[70]);let ks;e[71]===Symbol.for("react.memo_cache_sentinel")?(ks=f.jsx($,{to:"/ops-automation",className:"link-text-underline",children:f.jsx("span",{children:"NREN Automation of Operational Processes"})}),e[71]=ks):ks=e[71];let js;e[72]===Symbol.for("react.memo_cache_sentinel")?(js=f.jsx($,{to:"/network-automation",className:"link-text-underline",children:f.jsx("span",{children:"Network Tasks for which NRENs Use Automation  "})}),e[72]=js):js=e[72];let Cs;e[73]===Symbol.for("react.memo_cache_sentinel")?(Cs=f.jsxs(rn,{title:L.Network,startCollapsed:!0,children:[se,le,Y,B,Q,H,ue,me,de,He,zt,Wt,mn,gn,Ue,ut,Vt,Ht,jt,Ut,Gt,Xt,qt,xs,ys,vs,_s,ws,Ns,Ss,ks,js,f.jsx($,{to:"/nfv",className:"link-text-underline",children:f.jsx("span",{children:"Kinds of Network Function Virtualisation used by NRENs"})})]}),e[73]=Cs):Cs=e[73];let Es;e[74]===Symbol.for("react.memo_cache_sentinel")?(Es=f.jsx($,{to:"/network-services",className:"link-text-underline",children:f.jsx("span",{children:"Network services"})}),e[74]=Es):Es=e[74];let Ms;e[75]===Symbol.for("react.memo_cache_sentinel")?(Ms=f.jsx($,{to:"/isp-support-services",className:"link-text-underline",children:f.jsx("span",{children:"ISP support services"})}),e[75]=Ms):Ms=e[75];let Rs;e[76]===Symbol.for("react.memo_cache_sentinel")?(Rs=f.jsx($,{to:"/security-services",className:"link-text-underline",children:f.jsx("span",{children:"Security services"})}),e[76]=Rs):Rs=e[76];let Ps;e[77]===Symbol.for("react.memo_cache_sentinel")?(Ps=f.jsx($,{to:"/identity-services",className:"link-text-underline",children:f.jsx("span",{children:"Identity services"})}),e[77]=Ps):Ps=e[77];let Ts;e[78]===Symbol.for("react.memo_cache_sentinel")?(Ts=f.jsx($,{to:"/collaboration-services",className:"link-text-underline",children:f.jsx("span",{children:"Collaboration services"})}),e[78]=Ts):Ts=e[78];let Os;e[79]===Symbol.for("react.memo_cache_sentinel")?(Os=f.jsx($,{to:"/multimedia-services",className:"link-text-underline",children:f.jsx("span",{children:"Multimedia services"})}),e[79]=Os):Os=e[79];let Ds;e[80]===Symbol.for("react.memo_cache_sentinel")?(Ds=f.jsx($,{to:"/storage-and-hosting-services",className:"link-text-underline",children:f.jsx("span",{children:"Storage and hosting services"})}),e[80]=Ds):Ds=e[80];let As;return e[81]===Symbol.for("react.memo_cache_sentinel")?(As=f.jsxs(f.Fragment,{children:[i,r,f.jsx(fn,{className:"mt-5 mb-5",children:f.jsxs(we,{children:[x,P,U,Cs,f.jsxs(rn,{title:L.Services,startCollapsed:!0,children:[Es,Ms,Rs,Ps,Ts,Os,Ds,f.jsx($,{to:"/professional-services",className:"link-text-underline",children:f.jsx("span",{children:"Professional services"})})]})]})})]}),e[81]=As):As=e[81],As}/*!
- * @kurkle/color v0.3.2
- * https://github.com/kurkle/color#readme
- * (c) 2023 Jukka Kurkela
- * Released under the MIT License
- */function hs(e){return e+.5|0}const Rt=(e,t,n)=>Math.max(Math.min(e,n),t);function Bn(e){return Rt(hs(e*2.55),0,255)}function Lt(e){return Rt(hs(e*255),0,255)}function bt(e){return Rt(hs(e/2.55)/100,0,1)}function oo(e){return Rt(hs(e*100),0,100)}const Ge={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},qi=[..."0123456789ABCDEF"],fh=e=>qi[e&15],hh=e=>qi[(e&240)>>4]+qi[e&15],$s=e=>(e&240)>>4===(e&15),uh=e=>$s(e.r)&&$s(e.g)&&$s(e.b)&&$s(e.a);function ph(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Ge[e[1]]*17,g:255&Ge[e[2]]*17,b:255&Ge[e[3]]*17,a:t===5?Ge[e[4]]*17:255}:(t===7||t===9)&&(n={r:Ge[e[1]]<<4|Ge[e[2]],g:Ge[e[3]]<<4|Ge[e[4]],b:Ge[e[5]]<<4|Ge[e[6]],a:t===9?Ge[e[7]]<<4|Ge[e[8]]:255})),n}const mh=(e,t)=>e<255?t(e):"";function gh(e){var t=uh(e)?fh:hh;return e?"#"+t(e.r)+t(e.g)+t(e.b)+mh(e.a,t):void 0}const bh=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Dl(e,t,n){const s=t*Math.min(n,1-n),i=(r,o=(r+e/30)%12)=>n-s*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function xh(e,t,n){const s=(i,r=(i+e/60)%6)=>n-n*t*Math.max(Math.min(r,4-r,1),0);return[s(5),s(3),s(1)]}function yh(e,t,n){const s=Dl(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)s[i]*=1-t-n,s[i]+=t;return s}function vh(e,t,n,s,i){return e===i?(t-n)/s+(t<n?6:0):t===i?(n-e)/s+2:(e-t)/s+4}function yr(e){const n=e.r/255,s=e.g/255,i=e.b/255,r=Math.max(n,s,i),o=Math.min(n,s,i),a=(r+o)/2;let l,c,d;return r!==o&&(d=r-o,c=a>.5?d/(2-r-o):d/(r+o),l=vh(n,s,i,d,r),l=l*60+.5),[l|0,c||0,a]}function vr(e,t,n,s){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,s)).map(Lt)}function _r(e,t,n){return vr(Dl,e,t,n)}function _h(e,t,n){return vr(yh,e,t,n)}function wh(e,t,n){return vr(xh,e,t,n)}function Al(e){return(e%360+360)%360}function Nh(e){const t=bh.exec(e);let n=255,s;if(!t)return;t[5]!==s&&(n=t[6]?Bn(+t[5]):Lt(+t[5]));const i=Al(+t[2]),r=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?s=_h(i,r,o):t[1]==="hsv"?s=wh(i,r,o):s=_r(i,r,o),{r:s[0],g:s[1],b:s[2],a:n}}function Sh(e,t){var n=yr(e);n[0]=Al(n[0]+t),n=_r(n),e.r=n[0],e.g=n[1],e.b=n[2]}function kh(e){if(!e)return;const t=yr(e),n=t[0],s=oo(t[1]),i=oo(t[2]);return e.a<255?`hsla(${n}, ${s}%, ${i}%, ${bt(e.a)})`:`hsl(${n}, ${s}%, ${i}%)`}const ao={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},lo={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function jh(){const e={},t=Object.keys(lo),n=Object.keys(ao);let s,i,r,o,a;for(s=0;s<t.length;s++){for(o=a=t[s],i=0;i<n.length;i++)r=n[i],a=a.replace(r,ao[r]);r=parseInt(lo[o],16),e[a]=[r>>16&255,r>>8&255,r&255]}return e}let Fs;function Ch(e){Fs||(Fs=jh(),Fs.transparent=[0,0,0,0]);const t=Fs[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Eh=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Mh(e){const t=Eh.exec(e);let n=255,s,i,r;if(t){if(t[7]!==s){const o=+t[7];n=t[8]?Bn(o):Rt(o*255,0,255)}return s=+t[1],i=+t[3],r=+t[5],s=255&(t[2]?Bn(s):Rt(s,0,255)),i=255&(t[4]?Bn(i):Rt(i,0,255)),r=255&(t[6]?Bn(r):Rt(r,0,255)),{r:s,g:i,b:r,a:n}}}function Rh(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${bt(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Pi=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,bn=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Ph(e,t,n){const s=bn(bt(e.r)),i=bn(bt(e.g)),r=bn(bt(e.b));return{r:Lt(Pi(s+n*(bn(bt(t.r))-s))),g:Lt(Pi(i+n*(bn(bt(t.g))-i))),b:Lt(Pi(r+n*(bn(bt(t.b))-r))),a:e.a+n*(t.a-e.a)}}function Ys(e,t,n){if(e){let s=yr(e);s[t]=Math.max(0,Math.min(s[t]+s[t]*n,t===0?360:1)),s=_r(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function Ll(e,t){return e&&Object.assign(t||{},e)}function co(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Lt(e[3]))):(t=Ll(e,{r:0,g:0,b:0,a:1}),t.a=Lt(t.a)),t}function Th(e){return e.charAt(0)==="r"?Mh(e):Nh(e)}class ns{constructor(t){if(t instanceof ns)return t;const n=typeof t;let s;n==="object"?s=co(t):n==="string"&&(s=ph(t)||Ch(t)||Th(t)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var t=Ll(this._rgb);return t&&(t.a=bt(t.a)),t}set rgb(t){this._rgb=co(t)}rgbString(){return this._valid?Rh(this._rgb):void 0}hexString(){return this._valid?gh(this._rgb):void 0}hslString(){return this._valid?kh(this._rgb):void 0}mix(t,n){if(t){const s=this.rgb,i=t.rgb;let r;const o=n===r?.5:n,a=2*o-1,l=s.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;r=1-c,s.r=255&c*s.r+r*i.r+.5,s.g=255&c*s.g+r*i.g+.5,s.b=255&c*s.b+r*i.b+.5,s.a=o*s.a+(1-o)*i.a,this.rgb=s}return this}interpolate(t,n){return t&&(this._rgb=Ph(this._rgb,t._rgb,n)),this}clone(){return new ns(this.rgb)}alpha(t){return this._rgb.a=Lt(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=hs(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Ys(this._rgb,2,t),this}darken(t){return Ys(this._rgb,2,-t),this}saturate(t){return Ys(this._rgb,1,t),this}desaturate(t){return Ys(this._rgb,1,-t),this}rotate(t){return Sh(this._rgb,t),this}}/*!
- * Chart.js v4.4.7
- * https://www.chartjs.org
- * (c) 2024 Chart.js Contributors
- * Released under the MIT License
- */function pt(){}const Oh=(()=>{let e=0;return()=>e++})();function fe(e){return e==null}function ye(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function ce(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Je(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function it(e,t){return Je(e)?e:t}function oe(e,t){return typeof e>"u"?t:e}const Dh=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function pe(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function he(e,t,n,s){let i,r,o;if(ye(e))for(r=e.length,i=0;i<r;i++)t.call(n,e[i],i);else if(ce(e))for(o=Object.keys(e),r=o.length,i=0;i<r;i++)t.call(n,e[o[i]],o[i])}function di(e,t){let n,s,i,r;if(!e||!t||e.length!==t.length)return!1;for(n=0,s=e.length;n<s;++n)if(i=e[n],r=t[n],i.datasetIndex!==r.datasetIndex||i.index!==r.index)return!1;return!0}function fi(e){if(ye(e))return e.map(fi);if(ce(e)){const t=Object.create(null),n=Object.keys(e),s=n.length;let i=0;for(;i<s;++i)t[n[i]]=fi(e[n[i]]);return t}return e}function Il(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Ah(e,t,n,s){if(!Il(e))return;const i=t[e],r=n[e];ce(i)&&ce(r)?ft(i,r,s):t[e]=fi(r)}function ft(e,t,n){const s=ye(t)?t:[t],i=s.length;if(!ce(e))return e;n=n||{};const r=n.merger||Ah;let o;for(let a=0;a<i;++a){if(o=s[a],!ce(o))continue;const l=Object.keys(o);for(let c=0,d=l.length;c<d;++c)r(l[c],e,o,n)}return e}function Xn(e,t){return ft(e,t,{merger:Lh})}function Lh(e,t,n){if(!Il(e))return;const s=t[e],i=n[e];ce(s)&&ce(i)?Xn(s,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=fi(i))}const fo={"":e=>e,x:e=>e.x,y:e=>e.y};function Ih(e){const t=e.split("."),n=[];let s="";for(const i of t)s+=i,s.endsWith("\\")?s=s.slice(0,-1)+".":(n.push(s),s="");return n}function $h(e){const t=Ih(e);return n=>{for(const s of t){if(s==="")break;n=n&&n[s]}return n}}function Cn(e,t){return(fo[t]||(fo[t]=$h(t)))(e)}function wr(e){return e.charAt(0).toUpperCase()+e.slice(1)}const ss=e=>typeof e<"u",$t=e=>typeof e=="function",ho=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Fh(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const ve=Math.PI,Ee=2*ve,Yh=Ee+ve,hi=Number.POSITIVE_INFINITY,Bh=ve/180,je=ve/2,Kt=ve/4,uo=ve*2/3,Ki=Math.log10,dt=Math.sign;function qn(e,t,n){return Math.abs(e-t)<n}function po(e){const t=Math.round(e);e=qn(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Ki(e))),s=e/n;return(s<=1?1:s<=2?2:s<=5?5:10)*n}function zh(e){const t=[],n=Math.sqrt(e);let s;for(s=1;s<n;s++)e%s===0&&(t.push(s),t.push(e/s));return n===(n|0)&&t.push(n),t.sort((i,r)=>i-r).pop(),t}function is(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Wh(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Vh(e,t,n){let s,i,r;for(s=0,i=e.length;s<i;s++)r=e[s][n],isNaN(r)||(t.min=Math.min(t.min,r),t.max=Math.max(t.max,r))}function an(e){return e*(ve/180)}function Hh(e){return e*(180/ve)}function mo(e){if(!Je(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function $l(e,t){const n=t.x-e.x,s=t.y-e.y,i=Math.sqrt(n*n+s*s);let r=Math.atan2(s,n);return r<-.5*ve&&(r+=Ee),{angle:r,distance:i}}function Ji(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Uh(e,t){return(e-t+Yh)%Ee-ve}function Mt(e){return(e%Ee+Ee)%Ee}function Nr(e,t,n,s){const i=Mt(e),r=Mt(t),o=Mt(n),a=Mt(r-i),l=Mt(o-i),c=Mt(i-r),d=Mt(i-o);return i===r||i===o||s&&r===o||a>l&&c<d}function Pe(e,t,n){return Math.max(t,Math.min(n,e))}function Gh(e){return Pe(e,-32768,32767)}function Pt(e,t,n,s=1e-6){return e>=Math.min(t,n)-s&&e<=Math.max(t,n)+s}function Sr(e,t,n){n=n||(o=>e[o]<t);let s=e.length-1,i=0,r;for(;s-i>1;)r=i+s>>1,n(r)?i=r:s=r;return{lo:i,hi:s}}const ln=(e,t,n,s)=>Sr(e,n,s?i=>{const r=e[i][t];return r<n||r===n&&e[i+1][t]===n}:i=>e[i][t]<n),Xh=(e,t,n)=>Sr(e,n,s=>e[s][t]>=n);function qh(e,t,n){let s=0,i=e.length;for(;s<i&&e[s]<t;)s++;for(;i>s&&e[i-1]>n;)i--;return s>0||i<e.length?e.slice(s,i):e}const Fl=["push","pop","shift","splice","unshift"];function Kh(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Fl.forEach(n=>{const s="_onData"+wr(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...r){const o=i.apply(this,r);return e._chartjs.listeners.forEach(a=>{typeof a[s]=="function"&&a[s](...r)}),o}})})}function go(e,t){const n=e._chartjs;if(!n)return;const s=n.listeners,i=s.indexOf(t);i!==-1&&s.splice(i,1),!(s.length>0)&&(Fl.forEach(r=>{delete e[r]}),delete e._chartjs)}function Yl(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Bl=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function zl(e,t){let n=[],s=!1;return function(...i){n=i,s||(s=!0,Bl.call(window,()=>{s=!1,e.apply(t,n)}))}}function Jh(e,t){let n;return function(...s){return t?(clearTimeout(n),n=setTimeout(e,t,s)):e.apply(this,s),t}}const kr=e=>e==="start"?"left":e==="end"?"right":"center",Re=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,Zh=(e,t,n,s)=>e===(s?"left":"right")?n:e==="center"?(t+n)/2:t;function Qh(e,t,n){const s=t.length;let i=0,r=s;if(e._sorted){const{iScale:o,_parsed:a}=e,l=o.axis,{min:c,max:d,minDefined:h,maxDefined:u}=o.getUserBounds();h&&(i=Pe(Math.min(ln(a,l,c).lo,n?s:ln(t,l,o.getPixelForValue(c)).lo),0,s-1)),u?r=Pe(Math.max(ln(a,o.axis,d,!0).hi+1,n?0:ln(t,l,o.getPixelForValue(d),!0).hi+1),i,s)-i:r=s-i}return{start:i,count:r}}function eu(e){const{xScale:t,yScale:n,_scaleRanges:s}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!s)return e._scaleRanges=i,!0;const r=s.xmin!==t.min||s.xmax!==t.max||s.ymin!==n.min||s.ymax!==n.max;return Object.assign(s,i),r}const Bs=e=>e===0||e===1,bo=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Ee/n)),xo=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*Ee/n)+1,Kn={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*je)+1,easeOutSine:e=>Math.sin(e*je),easeInOutSine:e=>-.5*(Math.cos(ve*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Bs(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Bs(e)?e:bo(e,.075,.3),easeOutElastic:e=>Bs(e)?e:xo(e,.075,.3),easeInOutElastic(e){return Bs(e)?e:e<.5?.5*bo(e*2,.1125,.45):.5+.5*xo(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Kn.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Kn.easeInBounce(e*2)*.5:Kn.easeOutBounce(e*2-1)*.5+.5};function jr(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function yo(e){return jr(e)?e:new ns(e)}function Ti(e){return jr(e)?e:new ns(e).saturate(.5).darken(.1).hexString()}const tu=["x","y","borderWidth","radius","tension"],nu=["color","borderColor","backgroundColor"];function su(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:nu},numbers:{type:"number",properties:tu}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function iu(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const vo=new Map;function ru(e,t){t=t||{};const n=e+JSON.stringify(t);let s=vo.get(n);return s||(s=new Intl.NumberFormat(e,t),vo.set(n,s)),s}function Wl(e,t,n){return ru(t,n).format(e)}const Vl={values(e){return ye(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const s=this.chart.options.locale;let i,r=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),r=ou(e,n)}const o=Ki(Math.abs(r)),a=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Wl(e,s,l)},logarithmic(e,t,n){if(e===0)return"0";const s=n[t].significand||e/Math.pow(10,Math.floor(Ki(e)));return[1,2,3,5,10,15].includes(s)||t>.8*n.length?Vl.numeric.call(this,e,t,n):""}};function ou(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var Hl={formatters:Vl};function au(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Hl.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const un=Object.create(null),Zi=Object.create(null);function Jn(e,t){if(!t)return e;const n=t.split(".");for(let s=0,i=n.length;s<i;++s){const r=n[s];e=e[r]||(e[r]=Object.create(null))}return e}function Oi(e,t,n){return typeof t=="string"?ft(Jn(e,t),n):ft(Jn(e,""),t)}class lu{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=s=>s.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(s,i)=>Ti(i.backgroundColor),this.hoverBorderColor=(s,i)=>Ti(i.borderColor),this.hoverColor=(s,i)=>Ti(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Oi(this,t,n)}get(t){return Jn(this,t)}describe(t,n){return Oi(Zi,t,n)}override(t,n){return Oi(un,t,n)}route(t,n,s,i){const r=Jn(this,t),o=Jn(this,s),a="_"+n;Object.defineProperties(r,{[a]:{value:r[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=o[i];return ce(l)?Object.assign({},c,l):oe(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var xe=new lu({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[su,iu,au]);function cu(e){return!e||fe(e.size)||fe(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function _o(e,t,n,s,i){let r=t[i];return r||(r=t[i]=e.measureText(i).width,n.push(i)),r>s&&(s=r),s}function Jt(e,t,n){const s=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*s)/s+i}function wo(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Qi(e,t,n,s){Ul(e,t,n,s,null)}function Ul(e,t,n,s,i){let r,o,a,l,c,d,h,u;const p=t.pointStyle,b=t.rotation,m=t.radius;let g=(b||0)*Bh;if(p&&typeof p=="object"&&(r=p.toString(),r==="[object HTMLImageElement]"||r==="[object HTMLCanvasElement]")){e.save(),e.translate(n,s),e.rotate(g),e.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),p){default:i?e.ellipse(n,s,i/2,m,0,0,Ee):e.arc(n,s,m,0,Ee),e.closePath();break;case"triangle":d=i?i/2:m,e.moveTo(n+Math.sin(g)*d,s-Math.cos(g)*m),g+=uo,e.lineTo(n+Math.sin(g)*d,s-Math.cos(g)*m),g+=uo,e.lineTo(n+Math.sin(g)*d,s-Math.cos(g)*m),e.closePath();break;case"rectRounded":c=m*.516,l=m-c,o=Math.cos(g+Kt)*l,h=Math.cos(g+Kt)*(i?i/2-c:l),a=Math.sin(g+Kt)*l,u=Math.sin(g+Kt)*(i?i/2-c:l),e.arc(n-h,s-a,c,g-ve,g-je),e.arc(n+u,s-o,c,g-je,g),e.arc(n+h,s+a,c,g,g+je),e.arc(n-u,s+o,c,g+je,g+ve),e.closePath();break;case"rect":if(!b){l=Math.SQRT1_2*m,d=i?i/2:l,e.rect(n-d,s-l,2*d,2*l);break}g+=Kt;case"rectRot":h=Math.cos(g)*(i?i/2:m),o=Math.cos(g)*m,a=Math.sin(g)*m,u=Math.sin(g)*(i?i/2:m),e.moveTo(n-h,s-a),e.lineTo(n+u,s-o),e.lineTo(n+h,s+a),e.lineTo(n-u,s+o),e.closePath();break;case"crossRot":g+=Kt;case"cross":h=Math.cos(g)*(i?i/2:m),o=Math.cos(g)*m,a=Math.sin(g)*m,u=Math.sin(g)*(i?i/2:m),e.moveTo(n-h,s-a),e.lineTo(n+h,s+a),e.moveTo(n+u,s-o),e.lineTo(n-u,s+o);break;case"star":h=Math.cos(g)*(i?i/2:m),o=Math.cos(g)*m,a=Math.sin(g)*m,u=Math.sin(g)*(i?i/2:m),e.moveTo(n-h,s-a),e.lineTo(n+h,s+a),e.moveTo(n+u,s-o),e.lineTo(n-u,s+o),g+=Kt,h=Math.cos(g)*(i?i/2:m),o=Math.cos(g)*m,a=Math.sin(g)*m,u=Math.sin(g)*(i?i/2:m),e.moveTo(n-h,s-a),e.lineTo(n+h,s+a),e.moveTo(n+u,s-o),e.lineTo(n-u,s+o);break;case"line":o=i?i/2:Math.cos(g)*m,a=Math.sin(g)*m,e.moveTo(n-o,s-a),e.lineTo(n+o,s+a);break;case"dash":e.moveTo(n,s),e.lineTo(n+Math.cos(g)*(i?i/2:m),s+Math.sin(g)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function rs(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Cr(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Er(e){e.restore()}function du(e,t,n,s,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const r=(t.x+n.x)/2;e.lineTo(r,t.y),e.lineTo(r,n.y)}else i==="after"!=!!s?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function fu(e,t,n,s){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(s?t.cp1x:t.cp2x,s?t.cp1y:t.cp2y,s?n.cp2x:n.cp1x,s?n.cp2y:n.cp1y,n.x,n.y)}function hu(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),fe(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function uu(e,t,n,s,i){if(i.strikethrough||i.underline){const r=e.measureText(s),o=t-r.actualBoundingBoxLeft,a=t+r.actualBoundingBoxRight,l=n-r.actualBoundingBoxAscent,c=n+r.actualBoundingBoxDescent,d=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,d),e.lineTo(a,d),e.stroke()}}function pu(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function os(e,t,n,s,i,r={}){const o=ye(t)?t:[t],a=r.strokeWidth>0&&r.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,hu(e,r),l=0;l<o.length;++l)c=o[l],r.backdrop&&pu(e,r.backdrop),a&&(r.strokeColor&&(e.strokeStyle=r.strokeColor),fe(r.strokeWidth)||(e.lineWidth=r.strokeWidth),e.strokeText(c,n,s,r.maxWidth)),e.fillText(c,n,s,r.maxWidth),uu(e,n,s,c,r),s+=Number(i.lineHeight);e.restore()}function ui(e,t){const{x:n,y:s,w:i,h:r,radius:o}=t;e.arc(n+o.topLeft,s+o.topLeft,o.topLeft,1.5*ve,ve,!0),e.lineTo(n,s+r-o.bottomLeft),e.arc(n+o.bottomLeft,s+r-o.bottomLeft,o.bottomLeft,ve,je,!0),e.lineTo(n+i-o.bottomRight,s+r),e.arc(n+i-o.bottomRight,s+r-o.bottomRight,o.bottomRight,je,0,!0),e.lineTo(n+i,s+o.topRight),e.arc(n+i-o.topRight,s+o.topRight,o.topRight,0,-je,!0),e.lineTo(n+o.topLeft,s)}const mu=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,gu=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function bu(e,t){const n=(""+e).match(mu);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const xu=e=>+e||0;function Mr(e,t){const n={},s=ce(t),i=s?Object.keys(t):t,r=ce(e)?s?o=>oe(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=xu(r(o));return n}function Gl(e){return Mr(e,{top:"y",right:"x",bottom:"y",left:"x"})}function vn(e){return Mr(e,["topLeft","topRight","bottomLeft","bottomRight"])}function ze(e){const t=Gl(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Ce(e,t){e=e||{},t=t||xe.font;let n=oe(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let s=oe(e.style,t.style);s&&!(""+s).match(gu)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const i={family:oe(e.family,t.family),lineHeight:bu(oe(e.lineHeight,t.lineHeight),n),size:n,style:s,weight:oe(e.weight,t.weight),string:""};return i.string=cu(i),i}function be(e,t,n,s){let i,r,o;for(i=0,r=e.length;i<r;++i)if(o=e[i],o!==void 0&&(t!==void 0&&typeof o=="function"&&(o=o(t)),n!==void 0&&ye(o)&&(o=o[n%o.length]),o!==void 0))return o}function yu(e,t,n){const{min:s,max:i}=e,r=Dh(t,(i-s)/2),o=(a,l)=>n&&a===0?0:a+l;return{min:o(s,-Math.abs(r)),max:o(i,r)}}function pn(e,t){return Object.assign(Object.create(e),t)}function Rr(e,t=[""],n,s,i=()=>e[0]){const r=n||e;typeof s>"u"&&(s=Jl("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:r,_fallback:s,_getTarget:i,override:a=>Rr([a,...e],t,r,s)};return new Proxy(o,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return ql(a,l,()=>Cu(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return So(a).includes(l)},ownKeys(a){return So(a)},set(a,l,c){const d=a._storage||(a._storage=i());return a[l]=d[l]=c,delete a._keys,!0}})}function En(e,t,n,s){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Xl(e,s),setContext:r=>En(e,r,n,s),override:r=>En(e.override(r),t,n,s)};return new Proxy(i,{deleteProperty(r,o){return delete r[o],delete e[o],!0},get(r,o,a){return ql(r,o,()=>_u(r,o,a))},getOwnPropertyDescriptor(r,o){return r._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(r,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(r,o,a){return e[o]=a,delete r[o],!0}})}function Xl(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:s=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:s,isScriptable:$t(n)?n:()=>n,isIndexable:$t(s)?s:()=>s}}const vu=(e,t)=>e?e+wr(t):t,Pr=(e,t)=>ce(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function ql(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const s=n();return e[t]=s,s}function _u(e,t,n){const{_proxy:s,_context:i,_subProxy:r,_descriptors:o}=e;let a=s[t];return $t(a)&&o.isScriptable(t)&&(a=wu(t,a,e,n)),ye(a)&&a.length&&(a=Nu(t,a,e,o.isIndexable)),Pr(t,a)&&(a=En(a,i,r&&r[t],o)),a}function wu(e,t,n,s){const{_proxy:i,_context:r,_subProxy:o,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(r,o||s);return a.delete(e),Pr(e,l)&&(l=Tr(i._scopes,i,e,l)),l}function Nu(e,t,n,s){const{_proxy:i,_context:r,_subProxy:o,_descriptors:a}=n;if(typeof r.index<"u"&&s(e))return t[r.index%t.length];if(ce(t[0])){const l=t,c=i._scopes.filter(d=>d!==l);t=[];for(const d of l){const h=Tr(c,i,e,d);t.push(En(h,r,o&&o[e],a))}}return t}function Kl(e,t,n){return $t(e)?e(t,n):e}const Su=(e,t)=>e===!0?t:typeof e=="string"?Cn(t,e):void 0;function ku(e,t,n,s,i){for(const r of t){const o=Su(n,r);if(o){e.add(o);const a=Kl(o._fallback,n,i);if(typeof a<"u"&&a!==n&&a!==s)return a}else if(o===!1&&typeof s<"u"&&n!==s)return null}return!1}function Tr(e,t,n,s){const i=t._rootScopes,r=Kl(t._fallback,n,s),o=[...e,...i],a=new Set;a.add(s);let l=No(a,o,n,r||n,s);return l===null||typeof r<"u"&&r!==n&&(l=No(a,o,r,l,s),l===null)?!1:Rr(Array.from(a),[""],i,r,()=>ju(t,n,s))}function No(e,t,n,s,i){for(;n;)n=ku(e,t,n,s,i);return n}function ju(e,t,n){const s=e._getTarget();t in s||(s[t]={});const i=s[t];return ye(i)&&ce(n)?n:i||{}}function Cu(e,t,n,s){let i;for(const r of t)if(i=Jl(vu(r,e),n),typeof i<"u")return Pr(e,i)?Tr(n,s,e,i):i}function Jl(e,t){for(const n of t){if(!n)continue;const s=n[e];if(typeof s<"u")return s}}function So(e){let t=e._keys;return t||(t=e._keys=Eu(e._scopes)),t}function Eu(e){const t=new Set;for(const n of e)for(const s of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(s);return Array.from(t)}const Mu=Number.EPSILON||1e-14,Mn=(e,t)=>t<e.length&&!e[t].skip&&e[t],Zl=e=>e==="x"?"y":"x";function Ru(e,t,n,s){const i=e.skip?t:e,r=t,o=n.skip?t:n,a=Ji(r,i),l=Ji(o,r);let c=a/(a+l),d=l/(a+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const h=s*c,u=s*d;return{previous:{x:r.x-h*(o.x-i.x),y:r.y-h*(o.y-i.y)},next:{x:r.x+u*(o.x-i.x),y:r.y+u*(o.y-i.y)}}}function Pu(e,t,n){const s=e.length;let i,r,o,a,l,c=Mn(e,0);for(let d=0;d<s-1;++d)if(l=c,c=Mn(e,d+1),!(!l||!c)){if(qn(t[d],0,Mu)){n[d]=n[d+1]=0;continue}i=n[d]/t[d],r=n[d+1]/t[d],a=Math.pow(i,2)+Math.pow(r,2),!(a<=9)&&(o=3/Math.sqrt(a),n[d]=i*o*t[d],n[d+1]=r*o*t[d])}}function Tu(e,t,n="x"){const s=Zl(n),i=e.length;let r,o,a,l=Mn(e,0);for(let c=0;c<i;++c){if(o=a,a=l,l=Mn(e,c+1),!a)continue;const d=a[n],h=a[s];o&&(r=(d-o[n])/3,a[`cp1${n}`]=d-r,a[`cp1${s}`]=h-r*t[c]),l&&(r=(l[n]-d)/3,a[`cp2${n}`]=d+r,a[`cp2${s}`]=h+r*t[c])}}function Ou(e,t="x"){const n=Zl(t),s=e.length,i=Array(s).fill(0),r=Array(s);let o,a,l,c=Mn(e,0);for(o=0;o<s;++o)if(a=l,l=c,c=Mn(e,o+1),!!l){if(c){const d=c[t]-l[t];i[o]=d!==0?(c[n]-l[n])/d:0}r[o]=a?c?dt(i[o-1])!==dt(i[o])?0:(i[o-1]+i[o])/2:i[o-1]:i[o]}Pu(e,i,r),Tu(e,r,t)}function zs(e,t,n){return Math.max(Math.min(e,n),t)}function Du(e,t){let n,s,i,r,o,a=rs(e[0],t);for(n=0,s=e.length;n<s;++n)o=r,r=a,a=n<s-1&&rs(e[n+1],t),r&&(i=e[n],o&&(i.cp1x=zs(i.cp1x,t.left,t.right),i.cp1y=zs(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=zs(i.cp2x,t.left,t.right),i.cp2y=zs(i.cp2y,t.top,t.bottom)))}function Au(e,t,n,s,i){let r,o,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")Ou(e,i);else{let c=s?e[e.length-1]:e[0];for(r=0,o=e.length;r<o;++r)a=e[r],l=Ru(c,a,e[Math.min(r+1,o-(s?0:1))%o],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&Du(e,n)}function Or(){return typeof window<"u"&&typeof document<"u"}function Dr(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function pi(e,t,n){let s;return typeof e=="string"?(s=parseInt(e,10),e.indexOf("%")!==-1&&(s=s/100*t.parentNode[n])):s=e,s}const wi=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function Lu(e,t){return wi(e).getPropertyValue(t)}const Iu=["top","right","bottom","left"];function dn(e,t,n){const s={};n=n?"-"+n:"";for(let i=0;i<4;i++){const r=Iu[i];s[r]=parseFloat(e[t+"-"+r+n])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const $u=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Fu(e,t){const n=e.touches,s=n&&n.length?n[0]:e,{offsetX:i,offsetY:r}=s;let o=!1,a,l;if($u(i,r,e.target))a=i,l=r;else{const c=t.getBoundingClientRect();a=s.clientX-c.left,l=s.clientY-c.top,o=!0}return{x:a,y:l,box:o}}function nn(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:s}=t,i=wi(n),r=i.boxSizing==="border-box",o=dn(i,"padding"),a=dn(i,"border","width"),{x:l,y:c,box:d}=Fu(e,n),h=o.left+(d&&a.left),u=o.top+(d&&a.top);let{width:p,height:b}=t;return r&&(p-=o.width+a.width,b-=o.height+a.height),{x:Math.round((l-h)/p*n.width/s),y:Math.round((c-u)/b*n.height/s)}}function Yu(e,t,n){let s,i;if(t===void 0||n===void 0){const r=e&&Dr(e);if(!r)t=e.clientWidth,n=e.clientHeight;else{const o=r.getBoundingClientRect(),a=wi(r),l=dn(a,"border","width"),c=dn(a,"padding");t=o.width-c.width-l.width,n=o.height-c.height-l.height,s=pi(a.maxWidth,r,"clientWidth"),i=pi(a.maxHeight,r,"clientHeight")}}return{width:t,height:n,maxWidth:s||hi,maxHeight:i||hi}}const Ws=e=>Math.round(e*10)/10;function Bu(e,t,n,s){const i=wi(e),r=dn(i,"margin"),o=pi(i.maxWidth,e,"clientWidth")||hi,a=pi(i.maxHeight,e,"clientHeight")||hi,l=Yu(e,t,n);let{width:c,height:d}=l;if(i.boxSizing==="content-box"){const u=dn(i,"border","width"),p=dn(i,"padding");c-=p.width+u.width,d-=p.height+u.height}return c=Math.max(0,c-r.width),d=Math.max(0,s?c/s:d-r.height),c=Ws(Math.min(c,o,l.maxWidth)),d=Ws(Math.min(d,a,l.maxHeight)),c&&!d&&(d=Ws(c/2)),(t!==void 0||n!==void 0)&&s&&l.height&&d>l.height&&(d=l.height,c=Ws(Math.floor(d*s))),{width:c,height:d}}function ko(e,t,n){const s=t||1,i=Math.floor(e.height*s),r=Math.floor(e.width*s);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==s||o.height!==i||o.width!==r?(e.currentDevicePixelRatio=s,o.height=i,o.width=r,e.ctx.setTransform(s,0,0,s,0,0),!0):!1}const zu=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Or()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function jo(e,t){const n=Lu(e,t),s=n&&n.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function sn(e,t,n,s){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Wu(e,t,n,s){return{x:e.x+n*(t.x-e.x),y:s==="middle"?n<.5?e.y:t.y:s==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function Vu(e,t,n,s){const i={x:e.cp2x,y:e.cp2y},r={x:t.cp1x,y:t.cp1y},o=sn(e,i,n),a=sn(i,r,n),l=sn(r,t,n),c=sn(o,a,n),d=sn(a,l,n);return sn(c,d,n)}const Hu=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,s){return n-s},leftForLtr(n,s){return n-s}}},Uu=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function _n(e,t,n){return e?Hu(t,n):Uu()}function Ql(e,t){let n,s;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,s=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=s)}function ec(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function tc(e){return e==="angle"?{between:Nr,compare:Uh,normalize:Mt}:{between:Pt,compare:(t,n)=>t-n,normalize:t=>t}}function Co({start:e,end:t,count:n,loop:s,style:i}){return{start:e%n,end:t%n,loop:s&&(t-e+1)%n===0,style:i}}function Gu(e,t,n){const{property:s,start:i,end:r}=n,{between:o,normalize:a}=tc(s),l=t.length;let{start:c,end:d,loop:h}=e,u,p;if(h){for(c+=l,d+=l,u=0,p=l;u<p&&o(a(t[c%l][s]),i,r);++u)c--,d--;c%=l,d%=l}return d<c&&(d+=l),{start:c,end:d,loop:h,style:e.style}}function Xu(e,t,n){if(!n)return[e];const{property:s,start:i,end:r}=n,o=t.length,{compare:a,between:l,normalize:c}=tc(s),{start:d,end:h,loop:u,style:p}=Gu(e,t,n),b=[];let m=!1,g=null,x,y,v;const _=()=>l(i,v,x)&&a(i,v)!==0,w=()=>a(r,x)===0||l(r,v,x),N=()=>m||_(),S=()=>!m||w();for(let k=d,j=d;k<=h;++k)y=t[k%o],!y.skip&&(x=c(y[s]),x!==v&&(m=l(x,i,r),g===null&&N()&&(g=a(x,i)===0?k:j),g!==null&&S()&&(b.push(Co({start:g,end:k,loop:u,count:o,style:p})),g=null),j=k,v=x));return g!==null&&b.push(Co({start:g,end:h,loop:u,count:o,style:p})),b}function qu(e,t){const n=[],s=e.segments;for(let i=0;i<s.length;i++){const r=Xu(s[i],e.points,t);r.length&&n.push(...r)}return n}function Ku(e,t,n,s){let i=0,r=t-1;if(n&&!s)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(r+=i);r>i&&e[r%t].skip;)r--;return r%=t,{start:i,end:r}}function Ju(e,t,n,s){const i=e.length,r=[];let o=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?a.skip||(s=!1,r.push({start:t%i,end:(l-1)%i,loop:s}),t=o=c.stop?l:null):(o=l,a.skip&&(t=l)),a=c}return o!==null&&r.push({start:t%i,end:o%i,loop:s}),r}function Zu(e,t){const n=e.points,s=e.options.spanGaps,i=n.length;if(!i)return[];const r=!!e._loop,{start:o,end:a}=Ku(n,i,r,s);if(s===!0)return Eo(e,[{start:o,end:a,loop:r}],n,t);const l=a<o?a+i:a,c=!!e._fullLoop&&o===0&&a===i-1;return Eo(e,Ju(n,o,l,c),n,t)}function Eo(e,t,n,s){return!s||!s.setContext||!n?t:Qu(e,t,n,s)}function Qu(e,t,n,s){const i=e._chart.getContext(),r=Mo(e.options),{_datasetIndex:o,options:{spanGaps:a}}=e,l=n.length,c=[];let d=r,h=t[0].start,u=h;function p(b,m,g,x){const y=a?-1:1;if(b!==m){for(b+=l;n[b%l].skip;)b-=y;for(;n[m%l].skip;)m+=y;b%l!==m%l&&(c.push({start:b%l,end:m%l,loop:g,style:x}),d=x,h=m%l)}}for(const b of t){h=a?h:b.start;let m=n[h%l],g;for(u=h+1;u<=b.end;u++){const x=n[u%l];g=Mo(s.setContext(pn(i,{type:"segment",p0:m,p1:x,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:o}))),ep(g,d)&&p(h,u-1,b.loop,d),m=x,d=g}h<u-1&&p(h,u-1,b.loop,d)}return c}function Mo(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function ep(e,t){if(!t)return!1;const n=[],s=function(i,r){return jr(r)?(n.includes(r)||n.push(r),n.indexOf(r)):r};return JSON.stringify(e,s)!==JSON.stringify(t,s)}/*!
- * Chart.js v4.4.7
- * https://www.chartjs.org
- * (c) 2024 Chart.js Contributors
- * Released under the MIT License
- */class tp{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,s,i){const r=n.listeners[i],o=n.duration;r.forEach(a=>a({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(s-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=Bl.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((s,i)=>{if(!s.running||!s.items.length)return;const r=s.items;let o=r.length-1,a=!1,l;for(;o>=0;--o)l=r[o],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(t),a=!0):(r[o]=r[r.length-1],r.pop());a&&(i.draw(),this._notify(i,s,t,"progress")),r.length||(s.running=!1,this._notify(i,s,t,"complete"),s.initial=!1),n+=r.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let s=n.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,s)),s}listen(t,n,s){this._getAnims(t).listeners[n].push(s)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((s,i)=>Math.max(s,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const s=n.items;let i=s.length-1;for(;i>=0;--i)s[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var mt=new tp;const Ro="transparent",np={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const s=yo(e||Ro),i=s.valid&&yo(t||Ro);return i&&i.valid?i.mix(s,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class sp{constructor(t,n,s,i){const r=n[s];i=be([t.to,i,r,t.from]);const o=be([t.from,r,i]);this._active=!0,this._fn=t.fn||np[t.type||typeof o],this._easing=Kn[t.easing]||Kn.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=s,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,s){if(this._active){this._notify(!1);const i=this._target[this._prop],r=s-this._start,o=this._duration-r;this._start=s,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=be([t.to,n,i,t.from]),this._from=be([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,s=this._duration,i=this._prop,r=this._from,o=this._loop,a=this._to;let l;if(this._active=r!==a&&(o||n<s),!this._active){this._target[i]=a,this._notify(!0);return}if(n<0){this._target[i]=r;return}l=n/s%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(r,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,s)=>{t.push({res:n,rej:s})})}_notify(t){const n=t?"res":"rej",s=this._promises||[];for(let i=0;i<s.length;i++)s[i][n]()}}class nc{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!ce(t))return;const n=Object.keys(xe.animation),s=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const r=t[i];if(!ce(r))return;const o={};for(const a of n)o[a]=r[a];(ye(r.properties)&&r.properties||[i]).forEach(a=>{(a===i||!s.has(a))&&s.set(a,o)})})}_animateOptions(t,n){const s=n.options,i=rp(t,s);if(!i)return[];const r=this._createAnimations(i,s);return s.$shared&&ip(t.options.$animations,s).then(()=>{t.options=s},()=>{}),r}_createAnimations(t,n){const s=this._properties,i=[],r=t.$animations||(t.$animations={}),o=Object.keys(n),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const d=n[c];let h=r[c];const u=s.get(c);if(h)if(u&&h.active()){h.update(u,d,a);continue}else h.cancel();if(!u||!u.duration){t[c]=d;continue}r[c]=h=new sp(u,t,c,d),i.push(h)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const s=this._createAnimations(t,n);if(s.length)return mt.add(this._chart,s),!0}}function ip(e,t){const n=[],s=Object.keys(t);for(let i=0;i<s.length;i++){const r=e[s[i]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}function rp(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function Po(e,t){const n=e&&e.options||{},s=n.reverse,i=n.min===void 0?t:0,r=n.max===void 0?t:0;return{start:s?r:i,end:s?i:r}}function op(e,t,n){if(n===!1)return!1;const s=Po(e,n),i=Po(t,n);return{top:i.end,right:s.end,bottom:i.start,left:s.start}}function ap(e){let t,n,s,i;return ce(e)?(t=e.top,n=e.right,s=e.bottom,i=e.left):t=n=s=i=e,{top:t,right:n,bottom:s,left:i,disabled:e===!1}}function sc(e,t){const n=[],s=e._getSortedDatasetMetas(t);let i,r;for(i=0,r=s.length;i<r;++i)n.push(s[i].index);return n}function To(e,t,n,s={}){const i=e.keys,r=s.mode==="single";let o,a,l,c;if(t===null)return;let d=!1;for(o=0,a=i.length;o<a;++o){if(l=+i[o],l===n){if(d=!0,s.all)continue;break}c=e.values[l],Je(c)&&(r||t===0||dt(t)===dt(c))&&(t+=c)}return!d&&!s.all?0:t}function lp(e,t){const{iScale:n,vScale:s}=t,i=n.axis==="x"?"x":"y",r=s.axis==="x"?"x":"y",o=Object.keys(e),a=new Array(o.length);let l,c,d;for(l=0,c=o.length;l<c;++l)d=o[l],a[l]={[i]:d,[r]:e[d]};return a}function Di(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function cp(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function dp(e){const{min:t,max:n,minDefined:s,maxDefined:i}=e.getUserBounds();return{min:s?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function fp(e,t,n){const s=e[t]||(e[t]={});return s[n]||(s[n]={})}function Oo(e,t,n,s){for(const i of t.getMatchingVisibleMetas(s).reverse()){const r=e[i.index];if(n&&r>0||!n&&r<0)return i.index}return null}function Do(e,t){const{chart:n,_cachedMeta:s}=e,i=n._stacks||(n._stacks={}),{iScale:r,vScale:o,index:a}=s,l=r.axis,c=o.axis,d=cp(r,o,s),h=t.length;let u;for(let p=0;p<h;++p){const b=t[p],{[l]:m,[c]:g}=b,x=b._stacks||(b._stacks={});u=x[c]=fp(i,d,m),u[a]=g,u._top=Oo(u,o,!0,s.type),u._bottom=Oo(u,o,!1,s.type);const y=u._visualValues||(u._visualValues={});y[a]=g}}function Ai(e,t){const n=e.scales;return Object.keys(n).filter(s=>n[s].axis===t).shift()}function hp(e,t){return pn(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function up(e,t,n){return pn(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Dn(e,t){const n=e.controller.index,s=e.vScale&&e.vScale.axis;if(s){t=t||e._parsed;for(const i of t){const r=i._stacks;if(!r||r[s]===void 0||r[s][n]===void 0)return;delete r[s][n],r[s]._visualValues!==void 0&&r[s]._visualValues[n]!==void 0&&delete r[s]._visualValues[n]}}}const Li=e=>e==="reset"||e==="none",Ao=(e,t)=>t?e:Object.assign({},e),pp=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:sc(n,!0),values:null};class wn{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Di(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Dn(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,s=this.getDataset(),i=(h,u,p,b)=>h==="x"?u:h==="r"?b:p,r=n.xAxisID=oe(s.xAxisID,Ai(t,"x")),o=n.yAxisID=oe(s.yAxisID,Ai(t,"y")),a=n.rAxisID=oe(s.rAxisID,Ai(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,r,o,a),d=n.vAxisID=i(l,o,r,a);n.xScale=this.getScaleForId(r),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&go(this._data,this),t._stacked&&Dn(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),s=this._data;if(ce(n)){const i=this._cachedMeta;this._data=lp(n,i)}else if(s!==n){if(s){go(s,this);const i=this._cachedMeta;Dn(i),i._parsed=[]}n&&Object.isExtensible(n)&&Kh(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,s=this.getDataset();let i=!1;this._dataCheck();const r=n._stacked;n._stacked=Di(n.vScale,n),n.stack!==s.stack&&(i=!0,Dn(n),n.stack=s.stack),this._resyncElements(t),(i||r!==n._stacked)&&(Do(this,n._parsed),n._stacked=Di(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:s,_data:i}=this,{iScale:r,_stacked:o}=s,a=r.axis;let l=t===0&&n===i.length?!0:s._sorted,c=t>0&&s._parsed[t-1],d,h,u;if(this._parsing===!1)s._parsed=i,s._sorted=!0,u=i;else{ye(i[t])?u=this.parseArrayData(s,i,t,n):ce(i[t])?u=this.parseObjectData(s,i,t,n):u=this.parsePrimitiveData(s,i,t,n);const p=()=>h[a]===null||c&&h[a]<c[a];for(d=0;d<n;++d)s._parsed[d+t]=h=u[d],l&&(p()&&(l=!1),c=h);s._sorted=l}o&&Do(this,u)}parsePrimitiveData(t,n,s,i){const{iScale:r,vScale:o}=t,a=r.axis,l=o.axis,c=r.getLabels(),d=r===o,h=new Array(i);let u,p,b;for(u=0,p=i;u<p;++u)b=u+s,h[u]={[a]:d||r.parse(c[b],b),[l]:o.parse(n[b],b)};return h}parseArrayData(t,n,s,i){const{xScale:r,yScale:o}=t,a=new Array(i);let l,c,d,h;for(l=0,c=i;l<c;++l)d=l+s,h=n[d],a[l]={x:r.parse(h[0],d),y:o.parse(h[1],d)};return a}parseObjectData(t,n,s,i){const{xScale:r,yScale:o}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let d,h,u,p;for(d=0,h=i;d<h;++d)u=d+s,p=n[u],c[d]={x:r.parse(Cn(p,a),u),y:o.parse(Cn(p,l),u)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,s){const i=this.chart,r=this._cachedMeta,o=n[t.axis],a={keys:sc(i,!0),values:n._stacks[t.axis]._visualValues};return To(a,o,r.index,{mode:s})}updateRangeFromParsed(t,n,s,i){const r=s[n.axis];let o=r===null?NaN:r;const a=i&&s._stacks[n.axis];i&&a&&(i.values=a,o=To(i,r,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,n){const s=this._cachedMeta,i=s._parsed,r=s._sorted&&t===s.iScale,o=i.length,a=this._getOtherScale(t),l=pp(n,s,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:h}=dp(a);let u,p;function b(){p=i[u];const m=p[a.axis];return!Je(p[t.axis])||d>m||h<m}for(u=0;u<o&&!(!b()&&(this.updateRangeFromParsed(c,t,p,l),r));++u);if(r){for(u=o-1;u>=0;--u)if(!b()){this.updateRangeFromParsed(c,t,p,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,s=[];let i,r,o;for(i=0,r=n.length;i<r;++i)o=n[i][t.axis],Je(o)&&s.push(o);return s}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,s=n.iScale,i=n.vScale,r=this.getParsed(t);return{label:s?""+s.getLabelForValue(r[s.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=ap(oe(this.options.clip,op(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,s=this._cachedMeta,i=s.data||[],r=n.chartArea,o=[],a=this._drawStart||0,l=this._drawCount||i.length-a,c=this.options.drawActiveElementsOnTop;let d;for(s.dataset&&s.dataset.draw(t,r,a,l),d=a;d<a+l;++d){const h=i[d];h.hidden||(h.active&&c?o.push(h):h.draw(t,r))}for(d=0;d<o.length;++d)o[d].draw(t,r)}getStyle(t,n){const s=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(s):this.resolveDataElementOptions(t||0,s)}getContext(t,n,s){const i=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];r=o.$context||(o.$context=up(this.getContext(),t,o)),r.parsed=this.getParsed(t),r.raw=i.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=hp(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!n,r.mode=s,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",s){const i=n==="active",r=this._cachedDataOpts,o=t+"-"+n,a=r[o],l=this.enableOptionSharing&&ss(s);if(a)return Ao(a,l);const c=this.chart.config,d=c.datasetElementScopeKeys(this._type,t),h=i?[`${t}Hover`,"hover",t,""]:[t,""],u=c.getOptionScopes(this.getDataset(),d),p=Object.keys(xe.elements[t]),b=()=>this.getContext(s,i,n),m=c.resolveNamedOptions(u,p,b,h);return m.$shared&&(m.$shared=l,r[o]=Object.freeze(Ao(m,l))),m}_resolveAnimations(t,n,s){const i=this.chart,r=this._cachedDataOpts,o=`animation-${n}`,a=r[o];if(a)return a;let l;if(i.options.animation!==!1){const d=this.chart.config,h=d.datasetAnimationScopeKeys(this._type,n),u=d.getOptionScopes(this.getDataset(),h);l=d.createResolver(u,this.getContext(t,s,n))}const c=new nc(i,l&&l.animations);return l&&l._cacheable&&(r[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Li(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const s=this.resolveDataElementOptions(t,n),i=this._sharedOptions,r=this.getSharedOptions(s),o=this.includeOptions(n,r)||r!==i;return this.updateSharedOptions(r,n,s),{sharedOptions:r,includeOptions:o}}updateElement(t,n,s,i){Li(i)?Object.assign(t,s):this._resolveAnimations(n,i).update(t,s)}updateSharedOptions(t,n,s){t&&!Li(n)&&this._resolveAnimations(void 0,n).update(t,s)}_setStyle(t,n,s,i){t.active=i;const r=this.getStyle(n,i);this._resolveAnimations(n,s,i).update(t,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(t,n,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,n,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,s=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=s.length,r=n.length,o=Math.min(r,i);o&&this.parse(0,o),r>i?this._insertElements(i,r-i,t):r<i&&this._removeElements(r,i-r)}_insertElements(t,n,s=!0){const i=this._cachedMeta,r=i.data,o=t+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=o;a--)c[a]=c[a-n]};for(l(r),a=t;a<o;++a)r[a]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),s&&this.updateElements(r,t,n,"reset")}updateElements(t,n,s,i){}_removeElements(t,n){const s=this._cachedMeta;if(this._parsing){const i=s._parsed.splice(t,n);s._stacked&&Dn(s,i)}s.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,s,i]=t;this[n](s,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const s=arguments.length-2;s&&this._sync(["_insertElements",t,s])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}z(wn,"defaults",{}),z(wn,"datasetElementType",null),z(wn,"dataElementType",null);function mp(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let s=[];for(let i=0,r=n.length;i<r;i++)s=s.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=Yl(s.sort((i,r)=>i-r))}return e._cache.$bar}function gp(e){const t=e.iScale,n=mp(t,e.type);let s=t._length,i,r,o,a;const l=()=>{o===32767||o===-32768||(ss(a)&&(s=Math.min(s,Math.abs(o-a)||s)),a=o)};for(i=0,r=n.length;i<r;++i)o=t.getPixelForValue(n[i]),l();for(a=void 0,i=0,r=t.ticks.length;i<r;++i)o=t.getPixelForTick(i),l();return s}function bp(e,t,n,s){const i=n.barThickness;let r,o;return fe(i)?(r=t.min*n.categoryPercentage,o=n.barPercentage):(r=i*s,o=1),{chunk:r/s,ratio:o,start:t.pixels[e]-r/2}}function xp(e,t,n,s){const i=t.pixels,r=i[e];let o=e>0?i[e-1]:null,a=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;o===null&&(o=r-(a===null?t.end-t.start:a-r)),a===null&&(a=r+r-o);const c=r-(r-Math.min(o,a))/2*l;return{chunk:Math.abs(a-o)/2*l/s,ratio:n.barPercentage,start:c}}function yp(e,t,n,s){const i=n.parse(e[0],s),r=n.parse(e[1],s),o=Math.min(i,r),a=Math.max(i,r);let l=o,c=a;Math.abs(o)>Math.abs(a)&&(l=a,c=o),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:r,min:o,max:a}}function ic(e,t,n,s){return ye(e)?yp(e,t,n,s):t[n.axis]=n.parse(e,s),t}function Lo(e,t,n,s){const i=e.iScale,r=e.vScale,o=i.getLabels(),a=i===r,l=[];let c,d,h,u;for(c=n,d=n+s;c<d;++c)u=t[c],h={},h[i.axis]=a||i.parse(o[c],c),l.push(ic(u,h,r,c));return l}function Ii(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function vp(e,t,n){return e!==0?dt(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function _p(e){let t,n,s,i,r;return e.horizontal?(t=e.base>e.x,n="left",s="right"):(t=e.base<e.y,n="bottom",s="top"),t?(i="end",r="start"):(i="start",r="end"),{start:n,end:s,reverse:t,top:i,bottom:r}}function wp(e,t,n,s){let i=t.borderSkipped;const r={};if(!i){e.borderSkipped=r;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:o,end:a,reverse:l,top:c,bottom:d}=_p(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===s?i=c:(n._bottom||0)===s?i=d:(r[Io(d,o,a,l)]=!0,i=c)),r[Io(i,o,a,l)]=!0,e.borderSkipped=r}function Io(e,t,n,s){return s?(e=Np(e,t,n),e=$o(e,n,t)):e=$o(e,t,n),e}function Np(e,t,n){return e===t?n:e===n?t:e}function $o(e,t,n){return e==="start"?t:e==="end"?n:e}function Sp(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class ri extends wn{parsePrimitiveData(t,n,s,i){return Lo(t,n,s,i)}parseArrayData(t,n,s,i){return Lo(t,n,s,i)}parseObjectData(t,n,s,i){const{iScale:r,vScale:o}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=r.axis==="x"?a:l,d=o.axis==="x"?a:l,h=[];let u,p,b,m;for(u=s,p=s+i;u<p;++u)m=n[u],b={},b[r.axis]=r.parse(Cn(m,c),u),h.push(ic(Cn(m,d),b,o,u));return h}updateRangeFromParsed(t,n,s,i){super.updateRangeFromParsed(t,n,s,i);const r=s._custom;r&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:s,vScale:i}=n,r=this.getParsed(t),o=r._custom,a=Ii(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+s.getLabelForValue(r[s.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,s,i){const r=i==="reset",{index:o,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),d=this._getRuler(),{sharedOptions:h,includeOptions:u}=this._getSharedOptions(n,i);for(let p=n;p<n+s;p++){const b=this.getParsed(p),m=r||fe(b[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(p),g=this._calculateBarIndexPixels(p,d),x=(b._stacks||{})[a.axis],y={horizontal:c,base:m.base,enableBorderRadius:!x||Ii(b._custom)||o===x._top||o===x._bottom,x:c?m.head:g.center,y:c?g.center:m.head,height:c?g.size:Math.abs(m.size),width:c?Math.abs(m.size):g.size};u&&(y.options=h||this.resolveDataElementOptions(p,t[p].active?"active":i));const v=y.options||t[p].options;wp(y,v,x,o),Sp(y,v,d.ratio),this.updateElement(t[p],p,y,i)}}_getStacks(t,n){const{iScale:s}=this._cachedMeta,i=s.getMatchingVisibleMetas(this._type).filter(d=>d.controller.options.grouped),r=s.options.stacked,o=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[s.axis],c=d=>{const h=d._parsed.find(p=>p[s.axis]===l),u=h&&h[d.vScale.axis];if(fe(u)||isNaN(u))return!0};for(const d of i)if(!(n!==void 0&&c(d))&&((r===!1||o.indexOf(d.stack)===-1||r===void 0&&d.stack===void 0)&&o.push(d.stack),d.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,s){const i=this._getStacks(t,s),r=n!==void 0?i.indexOf(n):-1;return r===-1?i.length-1:r}_getRuler(){const t=this.options,n=this._cachedMeta,s=n.iScale,i=[];let r,o;for(r=0,o=n.data.length;r<o;++r)i.push(s.getPixelForValue(this.getParsed(r)[s.axis],r));const a=t.barThickness;return{min:a||gp(n),pixels:i,start:s._startPixel,end:s._endPixel,stackCount:this._getStackCount(),scale:s,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:s,index:i},options:{base:r,minBarLength:o}}=this,a=r||0,l=this.getParsed(t),c=l._custom,d=Ii(c);let h=l[n.axis],u=0,p=s?this.applyStack(n,l,s):h,b,m;p!==h&&(u=p-h,p=h),d&&(h=c.barStart,p=c.barEnd-c.barStart,h!==0&&dt(h)!==dt(c.barEnd)&&(u=0),u+=h);const g=!fe(r)&&!d?r:u;let x=n.getPixelForValue(g);if(this.chart.getDataVisibility(t)?b=n.getPixelForValue(u+p):b=x,m=b-x,Math.abs(m)<o){m=vp(m,n,a)*o,h===a&&(x-=m/2);const y=n.getPixelForDecimal(0),v=n.getPixelForDecimal(1),_=Math.min(y,v),w=Math.max(y,v);x=Math.max(Math.min(x,w),_),b=x+m,s&&!d&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(b)-n.getValueForPixel(x))}if(x===n.getPixelForValue(a)){const y=dt(m)*n.getLineWidthForValue(a)/2;x+=y,m-=y}return{size:m,base:x,head:b,center:b+m/2}}_calculateBarIndexPixels(t,n){const s=n.scale,i=this.options,r=i.skipNull,o=oe(i.maxBarThickness,1/0);let a,l;if(n.grouped){const c=r?this._getStackCount(t):n.stackCount,d=i.barThickness==="flex"?xp(t,n,i,c):bp(t,n,i,c),h=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0);a=d.start+d.chunk*h+d.chunk/2,l=Math.min(o,d.chunk*d.ratio)}else a=s.getPixelForValue(this.getParsed(t)[s.axis],t),l=Math.min(o,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,s=t.data,i=s.length;let r=0;for(;r<i;++r)this.getParsed(r)[n.axis]!==null&&!s[r].hidden&&s[r].draw(this._ctx)}}z(ri,"id","bar"),z(ri,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),z(ri,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class oi extends wn{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:s,data:i=[],_dataset:r}=n,o=this.chart._animationsDisabled;let{start:a,count:l}=Qh(n,i,o);this._drawStart=a,this._drawCount=l,eu(n)&&(a=0,l=i.length),s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!r._decimated,s.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(s,void 0,{animated:!o,options:c},t),this.updateElements(i,a,l,t)}updateElements(t,n,s,i){const r=i==="reset",{iScale:o,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,i),u=o.axis,p=a.axis,{spanGaps:b,segment:m}=this.options,g=is(b)?b:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||r||i==="none",y=n+s,v=t.length;let _=n>0&&this.getParsed(n-1);for(let w=0;w<v;++w){const N=t[w],S=x?N:{};if(w<n||w>=y){S.skip=!0;continue}const k=this.getParsed(w),j=fe(k[p]),C=S[u]=o.getPixelForValue(k[u],w),E=S[p]=r||j?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,k,l):k[p],w);S.skip=isNaN(C)||isNaN(E)||j,S.stop=w>0&&Math.abs(k[u]-_[u])>g,m&&(S.parsed=k,S.raw=c.data[w]),h&&(S.options=d||this.resolveDataElementOptions(w,N.active?"active":i)),x||this.updateElement(N,w,S,i),_=k}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,s=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return s;const r=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(s,r,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}z(oi,"id","line"),z(oi,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),z(oi,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function Zt(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Ar{constructor(t){z(this,"options");this.options=t||{}}static override(t){Object.assign(Ar.prototype,t)}init(){}formats(){return Zt()}parse(){return Zt()}format(){return Zt()}add(){return Zt()}diff(){return Zt()}startOf(){return Zt()}endOf(){return Zt()}}var kp={_date:Ar};function jp(e,t,n,s){const{controller:i,data:r,_sorted:o}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&o&&r.length){const l=a._reversePixels?Xh:ln;if(s){if(i._sharedOptions){const c=r[0],d=typeof c.getRange=="function"&&c.getRange(t);if(d){const h=l(r,t,n-d),u=l(r,t,n+d);return{lo:h.lo,hi:u.hi}}}}else return l(r,t,n)}return{lo:0,hi:r.length-1}}function us(e,t,n,s,i){const r=e.getSortedVisibleDatasetMetas(),o=n[t];for(let a=0,l=r.length;a<l;++a){const{index:c,data:d}=r[a],{lo:h,hi:u}=jp(r[a],t,o,i);for(let p=h;p<=u;++p){const b=d[p];b.skip||s(b,c,p)}}}function Cp(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(s,i){const r=t?Math.abs(s.x-i.x):0,o=n?Math.abs(s.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}function $i(e,t,n,s,i){const r=[];return!i&&!e.isPointInArea(t)||us(e,n,t,function(a,l,c){!i&&!rs(a,e.chartArea,0)||a.inRange(t.x,t.y,s)&&r.push({element:a,datasetIndex:l,index:c})},!0),r}function Ep(e,t,n,s){let i=[];function r(o,a,l){const{startAngle:c,endAngle:d}=o.getProps(["startAngle","endAngle"],s),{angle:h}=$l(o,{x:t.x,y:t.y});Nr(h,c,d)&&i.push({element:o,datasetIndex:a,index:l})}return us(e,n,t,r),i}function Mp(e,t,n,s,i,r){let o=[];const a=Cp(n);let l=Number.POSITIVE_INFINITY;function c(d,h,u){const p=d.inRange(t.x,t.y,i);if(s&&!p)return;const b=d.getCenterPoint(i);if(!(!!r||e.isPointInArea(b))&&!p)return;const g=a(t,b);g<l?(o=[{element:d,datasetIndex:h,index:u}],l=g):g===l&&o.push({element:d,datasetIndex:h,index:u})}return us(e,n,t,c),o}function Fi(e,t,n,s,i,r){return!r&&!e.isPointInArea(t)?[]:n==="r"&&!s?Ep(e,t,n,i):Mp(e,t,n,s,i,r)}function Fo(e,t,n,s,i){const r=[],o=n==="x"?"inXRange":"inYRange";let a=!1;return us(e,n,t,(l,c,d)=>{l[o]&&l[o](t[n],i)&&(r.push({element:l,datasetIndex:c,index:d}),a=a||l.inRange(t.x,t.y,i))}),s&&!a?[]:r}var Rp={evaluateInteractionItems:us,modes:{index(e,t,n,s){const i=nn(t,e),r=n.axis||"x",o=n.includeInvisible||!1,a=n.intersect?$i(e,i,r,s,o):Fi(e,i,r,!1,s,o),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const d=a[0].index,h=c.data[d];h&&!h.skip&&l.push({element:h,datasetIndex:c.index,index:d})}),l):[]},dataset(e,t,n,s){const i=nn(t,e),r=n.axis||"xy",o=n.includeInvisible||!1;let a=n.intersect?$i(e,i,r,s,o):Fi(e,i,r,!1,s,o);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let d=0;d<c.length;++d)a.push({element:c[d],datasetIndex:l,index:d})}return a},point(e,t,n,s){const i=nn(t,e),r=n.axis||"xy",o=n.includeInvisible||!1;return $i(e,i,r,s,o)},nearest(e,t,n,s){const i=nn(t,e),r=n.axis||"xy",o=n.includeInvisible||!1;return Fi(e,i,r,n.intersect,s,o)},x(e,t,n,s){const i=nn(t,e);return Fo(e,i,"x",n.intersect,s)},y(e,t,n,s){const i=nn(t,e);return Fo(e,i,"y",n.intersect,s)}}};const rc=["left","top","right","bottom"];function An(e,t){return e.filter(n=>n.pos===t)}function Yo(e,t){return e.filter(n=>rc.indexOf(n.pos)===-1&&n.box.axis===t)}function Ln(e,t){return e.sort((n,s)=>{const i=t?s:n,r=t?n:s;return i.weight===r.weight?i.index-r.index:i.weight-r.weight})}function Pp(e){const t=[];let n,s,i,r,o,a;for(n=0,s=(e||[]).length;n<s;++n)i=e[n],{position:r,options:{stack:o,stackWeight:a=1}}=i,t.push({index:n,box:i,pos:r,horizontal:i.isHorizontal(),weight:i.weight,stack:o&&r+o,stackWeight:a});return t}function Tp(e){const t={};for(const n of e){const{stack:s,pos:i,stackWeight:r}=n;if(!s||!rc.includes(i))continue;const o=t[s]||(t[s]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return t}function Op(e,t){const n=Tp(e),{vBoxMaxWidth:s,hBoxMaxHeight:i}=t;let r,o,a;for(r=0,o=e.length;r<o;++r){a=e[r];const{fullSize:l}=a.box,c=n[a.stack],d=c&&a.stackWeight/c.weight;a.horizontal?(a.width=d?d*s:l&&t.availableWidth,a.height=i):(a.width=s,a.height=d?d*i:l&&t.availableHeight)}return n}function Dp(e){const t=Pp(e),n=Ln(t.filter(c=>c.box.fullSize),!0),s=Ln(An(t,"left"),!0),i=Ln(An(t,"right")),r=Ln(An(t,"top"),!0),o=Ln(An(t,"bottom")),a=Yo(t,"x"),l=Yo(t,"y");return{fullSize:n,leftAndTop:s.concat(r),rightAndBottom:i.concat(l).concat(o).concat(a),chartArea:An(t,"chartArea"),vertical:s.concat(i).concat(l),horizontal:r.concat(o).concat(a)}}function Bo(e,t,n,s){return Math.max(e[n],t[n])+Math.max(e[s],t[s])}function oc(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Ap(e,t,n,s){const{pos:i,box:r}=n,o=e.maxPadding;if(!ce(i)){n.size&&(e[i]-=n.size);const h=s[n.stack]||{size:0,count:1};h.size=Math.max(h.size,n.horizontal?r.height:r.width),n.size=h.size/h.count,e[i]+=n.size}r.getPadding&&oc(o,r.getPadding());const a=Math.max(0,t.outerWidth-Bo(o,e,"left","right")),l=Math.max(0,t.outerHeight-Bo(o,e,"top","bottom")),c=a!==e.w,d=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function Lp(e){const t=e.maxPadding;function n(s){const i=Math.max(t[s]-e[s],0);return e[s]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function Ip(e,t){const n=t.maxPadding;function s(i){const r={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{r[o]=Math.max(t[o],n[o])}),r}return s(e?["left","right"]:["top","bottom"])}function zn(e,t,n,s){const i=[];let r,o,a,l,c,d;for(r=0,o=e.length,c=0;r<o;++r){a=e[r],l=a.box,l.update(a.width||t.w,a.height||t.h,Ip(a.horizontal,t));const{same:h,other:u}=Ap(t,n,a,s);c|=h&&i.length,d=d||u,l.fullSize||i.push(a)}return c&&zn(i,t,n,s)||d}function Vs(e,t,n,s,i){e.top=n,e.left=t,e.right=t+s,e.bottom=n+i,e.width=s,e.height=i}function zo(e,t,n,s){const i=n.padding;let{x:r,y:o}=t;for(const a of e){const l=a.box,c=s[a.stack]||{count:1,placed:0,weight:1},d=a.stackWeight/c.weight||1;if(a.horizontal){const h=t.w*d,u=c.size||l.height;ss(c.start)&&(o=c.start),l.fullSize?Vs(l,i.left,o,n.outerWidth-i.right-i.left,u):Vs(l,t.left+c.placed,o,h,u),c.start=o,c.placed+=h,o=l.bottom}else{const h=t.h*d,u=c.size||l.width;ss(c.start)&&(r=c.start),l.fullSize?Vs(l,r,i.top,u,n.outerHeight-i.bottom-i.top):Vs(l,r,t.top+c.placed,u,h),c.start=r,c.placed+=h,r=l.right}}t.x=r,t.y=o}var Xe={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,s){if(!e)return;const i=ze(e.options.layout.padding),r=Math.max(t-i.width,0),o=Math.max(n-i.height,0),a=Dp(e.boxes),l=a.vertical,c=a.horizontal;he(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const d=l.reduce((m,g)=>g.box.options&&g.box.options.display===!1?m:m+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:r,availableHeight:o,vBoxMaxWidth:r/2/d,hBoxMaxHeight:o/2}),u=Object.assign({},i);oc(u,ze(s));const p=Object.assign({maxPadding:u,w:r,h:o,x:i.left,y:i.top},i),b=Op(l.concat(c),h);zn(a.fullSize,p,h,b),zn(l,p,h,b),zn(c,p,h,b)&&zn(l,p,h,b),Lp(p),zo(a.leftAndTop,p,h,b),p.x+=p.w,p.y+=p.h,zo(a.rightAndBottom,p,h,b),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},he(a.chartArea,m=>{const g=m.box;Object.assign(g,e.chartArea),g.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class ac{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,s){}removeEventListener(t,n,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,s,i){return n=Math.max(0,n||t.width),s=s||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):s)}}isAttached(t){return!0}updateConfig(t){}}class $p extends ac{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ai="$chartjs",Fp={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Wo=e=>e===null||e==="";function Yp(e,t){const n=e.style,s=e.getAttribute("height"),i=e.getAttribute("width");if(e[ai]={initial:{height:s,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Wo(i)){const r=jo(e,"width");r!==void 0&&(e.width=r)}if(Wo(s))if(e.style.height==="")e.height=e.width/(t||2);else{const r=jo(e,"height");r!==void 0&&(e.height=r)}return e}const lc=zu?{passive:!0}:!1;function Bp(e,t,n){e&&e.addEventListener(t,n,lc)}function zp(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,lc)}function Wp(e,t){const n=Fp[e.type]||e.type,{x:s,y:i}=nn(e,t);return{type:n,chart:t,native:e,x:s!==void 0?s:null,y:i!==void 0?i:null}}function mi(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Vp(e,t,n){const s=e.canvas,i=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||mi(a.addedNodes,s),o=o&&!mi(a.removedNodes,s);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function Hp(e,t,n){const s=e.canvas,i=new MutationObserver(r=>{let o=!1;for(const a of r)o=o||mi(a.removedNodes,s),o=o&&!mi(a.addedNodes,s);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const as=new Map;let Vo=0;function cc(){const e=window.devicePixelRatio;e!==Vo&&(Vo=e,as.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Up(e,t){as.size||window.addEventListener("resize",cc),as.set(e,t)}function Gp(e){as.delete(e),as.size||window.removeEventListener("resize",cc)}function Xp(e,t,n){const s=e.canvas,i=s&&Dr(s);if(!i)return;const r=zl((a,l)=>{const c=i.clientWidth;n(a,l),c<i.clientWidth&&n()},window),o=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,d=l.contentRect.height;c===0&&d===0||r(c,d)});return o.observe(i),Up(e,r),o}function Yi(e,t,n){n&&n.disconnect(),t==="resize"&&Gp(e)}function qp(e,t,n){const s=e.canvas,i=zl(r=>{e.ctx!==null&&n(Wp(r,e))},e);return Bp(s,t,i),i}class Kp extends ac{acquireContext(t,n){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(Yp(t,n),s):null}releaseContext(t){const n=t.canvas;if(!n[ai])return!1;const s=n[ai].initial;["height","width"].forEach(r=>{const o=s[r];fe(o)?n.removeAttribute(r):n.setAttribute(r,o)});const i=s.style||{};return Object.keys(i).forEach(r=>{n.style[r]=i[r]}),n.width=n.width,delete n[ai],!0}addEventListener(t,n,s){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:Vp,detach:Hp,resize:Xp}[n]||qp;i[n]=o(t,n,s)}removeEventListener(t,n){const s=t.$proxies||(t.$proxies={}),i=s[n];if(!i)return;({attach:Yi,detach:Yi,resize:Yi}[n]||zp)(t,n,i),s[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,s,i){return Bu(t,n,s,i)}isAttached(t){const n=t&&Dr(t);return!!(n&&n.isConnected)}}function Jp(e){return!Or()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?$p:Kp}var ni;let St=(ni=class{constructor(){z(this,"x");z(this,"y");z(this,"active",!1);z(this,"options");z(this,"$animations")}tooltipPosition(t){const{x:n,y:s}=this.getProps(["x","y"],t);return{x:n,y:s}}hasValue(){return is(this.x)&&is(this.y)}getProps(t,n){const s=this.$animations;if(!n||!s)return this;const i={};return t.forEach(r=>{i[r]=s[r]&&s[r].active()?s[r]._to:this[r]}),i}},z(ni,"defaults",{}),z(ni,"defaultRoutes"),ni);function Zp(e,t){const n=e.options.ticks,s=Qp(e),i=Math.min(n.maxTicksLimit||s,s),r=n.major.enabled?tm(t):[],o=r.length,a=r[0],l=r[o-1],c=[];if(o>i)return nm(t,c,r,o/i),c;const d=em(r,t,i);if(o>0){let h,u;const p=o>1?Math.round((l-a)/(o-1)):null;for(Hs(t,c,d,fe(p)?0:a-p,a),h=0,u=o-1;h<u;h++)Hs(t,c,d,r[h],r[h+1]);return Hs(t,c,d,l,fe(p)?t.length:l+p),c}return Hs(t,c,d),c}function Qp(e){const t=e.options.offset,n=e._tickSize(),s=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(s,i))}function em(e,t,n){const s=sm(e),i=t.length/n;if(!s)return Math.max(i,1);const r=zh(s);for(let o=0,a=r.length-1;o<a;o++){const l=r[o];if(l>i)return l}return Math.max(i,1)}function tm(e){const t=[];let n,s;for(n=0,s=e.length;n<s;n++)e[n].major&&t.push(n);return t}function nm(e,t,n,s){let i=0,r=n[0],o;for(s=Math.ceil(s),o=0;o<e.length;o++)o===r&&(t.push(e[o]),i++,r=n[i*s])}function Hs(e,t,n,s,i){const r=oe(s,0),o=Math.min(oe(i,e.length),e.length);let a=0,l,c,d;for(n=Math.ceil(n),i&&(l=i-s,n=l/Math.floor(l/n)),d=r;d<0;)a++,d=Math.round(r+a*n);for(c=Math.max(r,0);c<o;c++)c===d&&(t.push(e[c]),a++,d=Math.round(r+a*n))}function sm(e){const t=e.length;let n,s;if(t<2)return!1;for(s=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==s)return!1;return s}const im=e=>e==="left"?"right":e==="right"?"left":e,Ho=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Uo=(e,t)=>Math.min(t||e,e);function Go(e,t){const n=[],s=e.length/t,i=e.length;let r=0;for(;r<i;r+=s)n.push(e[Math.floor(r)]);return n}function rm(e,t,n){const s=e.ticks.length,i=Math.min(t,s-1),r=e._startPixel,o=e._endPixel,a=1e-6;let l=e.getPixelForTick(i),c;if(!(n&&(s===1?c=Math.max(l-r,o-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<r-a||l>o+a)))return l}function om(e,t){he(e,n=>{const s=n.gc,i=s.length/2;let r;if(i>t){for(r=0;r<i;++r)delete n.data[s[r]];s.splice(0,i)}})}function In(e){return e.drawTicks?e.tickLength:0}function Xo(e,t){if(!e.display)return 0;const n=Ce(e.font,t),s=ze(e.padding);return(ye(e.text)?e.text.length:1)*n.lineHeight+s.height}function am(e,t){return pn(e,{scale:t,type:"scale"})}function lm(e,t,n){return pn(e,{tick:n,index:t,type:"tick"})}function cm(e,t,n){let s=kr(e);return(n&&t!=="right"||!n&&t==="right")&&(s=im(s)),s}function dm(e,t,n,s){const{top:i,left:r,bottom:o,right:a,chart:l}=e,{chartArea:c,scales:d}=l;let h=0,u,p,b;const m=o-i,g=a-r;if(e.isHorizontal()){if(p=Re(s,r,a),ce(n)){const x=Object.keys(n)[0],y=n[x];b=d[x].getPixelForValue(y)+m-t}else n==="center"?b=(c.bottom+c.top)/2+m-t:b=Ho(e,n,t);u=a-r}else{if(ce(n)){const x=Object.keys(n)[0],y=n[x];p=d[x].getPixelForValue(y)-g+t}else n==="center"?p=(c.left+c.right)/2-g+t:p=Ho(e,n,t);b=Re(s,o,i),h=n==="left"?-je:je}return{titleX:p,titleY:b,maxWidth:u,rotation:h}}class Rn extends St{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:s,_suggestedMax:i}=this;return t=it(t,Number.POSITIVE_INFINITY),n=it(n,Number.NEGATIVE_INFINITY),s=it(s,Number.POSITIVE_INFINITY),i=it(i,Number.NEGATIVE_INFINITY),{min:it(t,s),max:it(n,i),minDefined:Je(t),maxDefined:Je(n)}}getMinMax(t){let{min:n,max:s,minDefined:i,maxDefined:r}=this.getUserBounds(),o;if(i&&r)return{min:n,max:s};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)o=a[l].controller.getMinMax(this,t),i||(n=Math.min(n,o.min)),r||(s=Math.max(s,o.max));return n=r&&n>s?s:n,s=i&&n>s?n:s,{min:it(n,it(s,n)),max:it(s,it(n,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){pe(this.options.beforeUpdate,[this])}update(t,n,s){const{beginAtZero:i,grace:r,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=yu(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?Go(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||o.source==="auto")&&(this.ticks=Zp(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,s;this.isHorizontal()?(n=this.left,s=this.right):(n=this.top,s=this.bottom,t=!t),this._startPixel=n,this._endPixel=s,this._reversePixels=t,this._length=s-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){pe(this.options.afterUpdate,[this])}beforeSetDimensions(){pe(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){pe(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),pe(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){pe(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let s,i,r;for(s=0,i=t.length;s<i;s++)r=t[s],r.label=pe(n.callback,[r.value,s,t],this)}afterTickToLabelConversion(){pe(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){pe(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,s=Uo(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,r=n.maxRotation;let o=i,a,l,c;if(!this._isVisible()||!n.display||i>=r||s<=1||!this.isHorizontal()){this.labelRotation=i;return}const d=this._getLabelSizes(),h=d.widest.width,u=d.highest.height,p=Pe(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/s:p/(s-1),h+6>a&&(a=p/(s-(t.offset?.5:1)),l=this.maxHeight-In(t.grid)-n.padding-Xo(t.title,this.chart.options.font),c=Math.sqrt(h*h+u*u),o=Hh(Math.min(Math.asin(Pe((d.highest.height+6)/a,-1,1)),Math.asin(Pe(l/c,-1,1))-Math.asin(Pe(u/c,-1,1)))),o=Math.max(i,Math.min(r,o))),this.labelRotation=o}afterCalculateLabelRotation(){pe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){pe(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:s,title:i,grid:r}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=Xo(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=In(r)+l):(t.height=this.maxHeight,t.width=In(r)+l),s.display&&this.ticks.length){const{first:c,last:d,widest:h,highest:u}=this._getLabelSizes(),p=s.padding*2,b=an(this.labelRotation),m=Math.cos(b),g=Math.sin(b);if(a){const x=s.mirror?0:g*h.width+m*u.height;t.height=Math.min(this.maxHeight,t.height+x+p)}else{const x=s.mirror?0:m*h.width+g*u.height;t.width=Math.min(this.maxWidth,t.width+x+p)}this._calculatePadding(c,d,g,m)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,s,i){const{ticks:{align:r,padding:o},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const d=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,p=0;l?c?(u=i*t.width,p=s*n.height):(u=s*t.height,p=i*n.width):r==="start"?p=n.width:r==="end"?u=t.width:r!=="inner"&&(u=t.width/2,p=n.width/2),this.paddingLeft=Math.max((u-d+o)*this.width/(this.width-d),0),this.paddingRight=Math.max((p-h+o)*this.width/(this.width-h),0)}else{let d=n.height/2,h=t.height/2;r==="start"?(d=0,h=t.height):r==="end"&&(d=n.height,h=0),this.paddingTop=d+o,this.paddingBottom=h+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){pe(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,s;for(n=0,s=t.length;n<s;n++)fe(t[n].label)&&(t.splice(n,1),s--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let s=this.ticks;n<s.length&&(s=Go(s,n)),this._labelSizes=t=this._computeLabelSizes(s,s.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,s){const{ctx:i,_longestTextCache:r}=this,o=[],a=[],l=Math.floor(n/Uo(n,s));let c=0,d=0,h,u,p,b,m,g,x,y,v,_,w;for(h=0;h<n;h+=l){if(b=t[h].label,m=this._resolveTickFontOptions(h),i.font=g=m.string,x=r[g]=r[g]||{data:{},gc:[]},y=m.lineHeight,v=_=0,!fe(b)&&!ye(b))v=_o(i,x.data,x.gc,v,b),_=y;else if(ye(b))for(u=0,p=b.length;u<p;++u)w=b[u],!fe(w)&&!ye(w)&&(v=_o(i,x.data,x.gc,v,w),_+=y);o.push(v),a.push(_),c=Math.max(v,c),d=Math.max(_,d)}om(r,n);const N=o.indexOf(c),S=a.indexOf(d),k=j=>({width:o[j]||0,height:a[j]||0});return{first:k(0),last:k(n-1),widest:k(N),highest:k(S),widths:o,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Gh(this._alignToPixels?Jt(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const s=n[t];return s.$context||(s.$context=lm(this.getContext(),t,s))}return this.$context||(this.$context=am(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=an(this.labelRotation),s=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),r=this._getLabelSizes(),o=t.autoSkipPadding||0,a=r?r.widest.width+o:0,l=r?r.highest.height+o:0;return this.isHorizontal()?l*s>a*i?a/s:l/i:l*i<a*s?l/s:a/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,s=this.chart,i=this.options,{grid:r,position:o,border:a}=i,l=r.offset,c=this.isHorizontal(),h=this.ticks.length+(l?1:0),u=In(r),p=[],b=a.setContext(this.getContext()),m=b.display?b.width:0,g=m/2,x=function(D){return Jt(s,D,m)};let y,v,_,w,N,S,k,j,C,E,M,P;if(o==="top")y=x(this.bottom),S=this.bottom-u,j=y-g,E=x(t.top)+g,P=t.bottom;else if(o==="bottom")y=x(this.top),E=t.top,P=x(t.bottom)-g,S=y+g,j=this.top+u;else if(o==="left")y=x(this.right),N=this.right-u,k=y-g,C=x(t.left)+g,M=t.right;else if(o==="right")y=x(this.left),C=t.left,M=x(t.right)-g,N=y+g,k=this.left+u;else if(n==="x"){if(o==="center")y=x((t.top+t.bottom)/2+.5);else if(ce(o)){const D=Object.keys(o)[0],I=o[D];y=x(this.chart.scales[D].getPixelForValue(I))}E=t.top,P=t.bottom,S=y+g,j=S+u}else if(n==="y"){if(o==="center")y=x((t.left+t.right)/2);else if(ce(o)){const D=Object.keys(o)[0],I=o[D];y=x(this.chart.scales[D].getPixelForValue(I))}N=y-g,k=N-u,C=t.left,M=t.right}const T=oe(i.ticks.maxTicksLimit,h),O=Math.max(1,Math.ceil(h/T));for(v=0;v<h;v+=O){const D=this.getContext(v),I=r.setContext(D),V=a.setContext(D),W=I.lineWidth,G=I.color,ne=V.dash||[],ae=V.dashOffset,re=I.tickWidth,te=I.tickColor,U=I.tickBorderDash||[],se=I.tickBorderDashOffset;_=rm(this,v,l),_!==void 0&&(w=Jt(s,_,W),c?N=k=C=M=w:S=j=E=P=w,p.push({tx1:N,ty1:S,tx2:k,ty2:j,x1:C,y1:E,x2:M,y2:P,width:W,color:G,borderDash:ne,borderDashOffset:ae,tickWidth:re,tickColor:te,tickBorderDash:U,tickBorderDashOffset:se}))}return this._ticksLength=h,this._borderValue=y,p}_computeLabelItems(t){const n=this.axis,s=this.options,{position:i,ticks:r}=s,o=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:d,mirror:h}=r,u=In(s.grid),p=u+d,b=h?-d:p,m=-an(this.labelRotation),g=[];let x,y,v,_,w,N,S,k,j,C,E,M,P="middle";if(i==="top")N=this.bottom-b,S=this._getXAxisLabelAlignment();else if(i==="bottom")N=this.top+b,S=this._getXAxisLabelAlignment();else if(i==="left"){const O=this._getYAxisLabelAlignment(u);S=O.textAlign,w=O.x}else if(i==="right"){const O=this._getYAxisLabelAlignment(u);S=O.textAlign,w=O.x}else if(n==="x"){if(i==="center")N=(t.top+t.bottom)/2+p;else if(ce(i)){const O=Object.keys(i)[0],D=i[O];N=this.chart.scales[O].getPixelForValue(D)+p}S=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")w=(t.left+t.right)/2-p;else if(ce(i)){const O=Object.keys(i)[0],D=i[O];w=this.chart.scales[O].getPixelForValue(D)}S=this._getYAxisLabelAlignment(u).textAlign}n==="y"&&(l==="start"?P="top":l==="end"&&(P="bottom"));const T=this._getLabelSizes();for(x=0,y=a.length;x<y;++x){v=a[x],_=v.label;const O=r.setContext(this.getContext(x));k=this.getPixelForTick(x)+r.labelOffset,j=this._resolveTickFontOptions(x),C=j.lineHeight,E=ye(_)?_.length:1;const D=E/2,I=O.color,V=O.textStrokeColor,W=O.textStrokeWidth;let G=S;o?(w=k,S==="inner"&&(x===y-1?G=this.options.reverse?"left":"right":x===0?G=this.options.reverse?"right":"left":G="center"),i==="top"?c==="near"||m!==0?M=-E*C+C/2:c==="center"?M=-T.highest.height/2-D*C+C:M=-T.highest.height+C/2:c==="near"||m!==0?M=C/2:c==="center"?M=T.highest.height/2-D*C:M=T.highest.height-E*C,h&&(M*=-1),m!==0&&!O.showLabelBackdrop&&(w+=C/2*Math.sin(m))):(N=k,M=(1-E)*C/2);let ne;if(O.showLabelBackdrop){const ae=ze(O.backdropPadding),re=T.heights[x],te=T.widths[x];let U=M-ae.top,se=0-ae.left;switch(P){case"middle":U-=re/2;break;case"bottom":U-=re;break}switch(S){case"center":se-=te/2;break;case"right":se-=te;break;case"inner":x===y-1?se-=te:x>0&&(se-=te/2);break}ne={left:se,top:U,width:te+ae.width,height:re+ae.height,color:O.backdropColor}}g.push({label:_,font:j,textOffset:M,options:{rotation:m,color:I,strokeColor:V,strokeWidth:W,textAlign:G,textBaseline:P,translation:[w,N],backdrop:ne}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-an(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:s,mirror:i,padding:r}}=this.options,o=this._getLabelSizes(),a=t+r,l=o.widest.width;let c,d;return n==="left"?i?(d=this.right+r,s==="near"?c="left":s==="center"?(c="center",d+=l/2):(c="right",d+=l)):(d=this.right-a,s==="near"?c="right":s==="center"?(c="center",d-=l/2):(c="left",d=this.left)):n==="right"?i?(d=this.left+r,s==="near"?c="right":s==="center"?(c="center",d-=l/2):(c="left",d-=l)):(d=this.left+a,s==="near"?c="left":s==="center"?(c="center",d+=l/2):(c="right",d=this.right)):c="right",{textAlign:c,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:s,top:i,width:r,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(s,i,r,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(r=>r.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,s=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,o;const a=(l,c,d)=>{!d.width||!d.color||(s.save(),s.lineWidth=d.width,s.strokeStyle=d.color,s.setLineDash(d.borderDash||[]),s.lineDashOffset=d.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(n.display)for(r=0,o=i.length;r<o;++r){const l=i[r];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:s,grid:i}}=this,r=s.setContext(this.getContext()),o=s.display?r.width:0;if(!o)return;const a=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,d,h,u;this.isHorizontal()?(c=Jt(t,this.left,o)-o/2,d=Jt(t,this.right,a)+a/2,h=u=l):(h=Jt(t,this.top,o)-o/2,u=Jt(t,this.bottom,a)+a/2,c=d=l),n.save(),n.lineWidth=r.width,n.strokeStyle=r.color,n.beginPath(),n.moveTo(c,h),n.lineTo(d,u),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const s=this.ctx,i=this._computeLabelArea();i&&Cr(s,i);const r=this.getLabelItems(t);for(const o of r){const a=o.options,l=o.font,c=o.label,d=o.textOffset;os(s,c,0,d,l,a)}i&&Er(s)}drawTitle(){const{ctx:t,options:{position:n,title:s,reverse:i}}=this;if(!s.display)return;const r=Ce(s.font),o=ze(s.padding),a=s.align;let l=r.lineHeight/2;n==="bottom"||n==="center"||ce(n)?(l+=o.bottom,ye(s.text)&&(l+=r.lineHeight*(s.text.length-1))):l+=o.top;const{titleX:c,titleY:d,maxWidth:h,rotation:u}=dm(this,l,n,a);os(t,s.text,0,0,r,{color:s.color,maxWidth:h,rotation:u,textAlign:cm(a,n,i),textBaseline:"middle",translation:[c,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,s=oe(t.grid&&t.grid.z,-1),i=oe(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Rn.prototype.draw?[{z:n,draw:r=>{this.draw(r)}}]:[{z:s,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",i=[];let r,o;for(r=0,o=n.length;r<o;++r){const a=n[r];a[s]===this.id&&(!t||a.type===t)&&i.push(a)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return Ce(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Us{constructor(t,n,s){this.type=t,this.scope=n,this.override=s,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let s;um(n)&&(s=this.register(n));const i=this.items,r=t.id,o=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in i||(i[r]=t,fm(t,o,s),this.override&&xe.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const n=this.items,s=t.id,i=this.scope;s in n&&delete n[s],i&&s in xe[i]&&(delete xe[i][s],this.override&&delete un[s])}}function fm(e,t,n){const s=ft(Object.create(null),[n?xe.get(n):{},xe.get(t),e.defaults]);xe.set(t,s),e.defaultRoutes&&hm(t,e.defaultRoutes),e.descriptors&&xe.describe(t,e.descriptors)}function hm(e,t){Object.keys(t).forEach(n=>{const s=n.split("."),i=s.pop(),r=[e].concat(s).join("."),o=t[n].split("."),a=o.pop(),l=o.join(".");xe.route(r,i,l,a)})}function um(e){return"id"in e&&"defaults"in e}class pm{constructor(){this.controllers=new Us(wn,"datasets",!0),this.elements=new Us(St,"elements"),this.plugins=new Us(Object,"plugins"),this.scales=new Us(Rn,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,s){[...n].forEach(i=>{const r=s||this._getRegistryForType(i);s||r.isForType(i)||r===this.plugins&&i.id?this._exec(t,r,i):he(i,o=>{const a=s||this._getRegistryForType(o);this._exec(t,a,o)})})}_exec(t,n,s){const i=wr(t);pe(s["before"+i],[],s),n[t](s),pe(s["after"+i],[],s)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const s=this._typedRegistries[n];if(s.isForType(t))return s}return this.plugins}_get(t,n,s){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+s+".");return i}}var ot=new pm;class mm{constructor(){this._init=[]}notify(t,n,s,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(r,t,n,s);return n==="afterDestroy"&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,n,s,i){i=i||{};for(const r of t){const o=r.plugin,a=o[s],l=[n,i,r.options];if(pe(a,l,o)===!1&&i.cancelable)return!1}return!0}invalidate(){fe(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const s=t&&t.config,i=oe(s.options&&s.options.plugins,{}),r=gm(s);return i===!1&&!n?[]:xm(t,r,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],s=this._cache,i=(r,o)=>r.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,s),t,"stop"),this._notify(i(s,n),t,"start")}}function gm(e){const t={},n=[],s=Object.keys(ot.plugins.items);for(let r=0;r<s.length;r++)n.push(ot.getPlugin(s[r]));const i=e.plugins||[];for(let r=0;r<i.length;r++){const o=i[r];n.indexOf(o)===-1&&(n.push(o),t[o.id]=!0)}return{plugins:n,localIds:t}}function bm(e,t){return!t&&e===!1?null:e===!0?{}:e}function xm(e,{plugins:t,localIds:n},s,i){const r=[],o=e.getContext();for(const a of t){const l=a.id,c=bm(s[l],i);c!==null&&r.push({plugin:a,options:ym(e.config,{plugin:a,local:n[l]},c,o)})}return r}function ym(e,{plugin:t,local:n},s,i){const r=e.pluginScopeKeys(t),o=e.getOptionScopes(s,r);return n&&t.defaults&&o.push(t.defaults),e.createResolver(o,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function er(e,t){const n=xe.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function vm(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function _m(e,t){return e===t?"_index_":"_value_"}function qo(e){if(e==="x"||e==="y"||e==="r")return e}function wm(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function tr(e,...t){if(qo(e))return e;for(const n of t){const s=n.axis||wm(n.position)||e.length>1&&qo(e[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Ko(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function Nm(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(s=>s.xAxisID===e||s.yAxisID===e);if(n.length)return Ko(e,"x",n[0])||Ko(e,"y",n[0])}return{}}function Sm(e,t){const n=un[e.type]||{scales:{}},s=t.scales||{},i=er(e.type,t),r=Object.create(null);return Object.keys(s).forEach(o=>{const a=s[o];if(!ce(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=tr(o,a,Nm(o,e),xe.scales[a.type]),c=_m(l,i),d=n.scales||{};r[o]=Xn(Object.create(null),[{axis:l},a,d[l],d[c]])}),e.data.datasets.forEach(o=>{const a=o.type||e.type,l=o.indexAxis||er(a,t),d=(un[a]||{}).scales||{};Object.keys(d).forEach(h=>{const u=vm(h,l),p=o[u+"AxisID"]||u;r[p]=r[p]||Object.create(null),Xn(r[p],[{axis:u},s[p],d[h]])})}),Object.keys(r).forEach(o=>{const a=r[o];Xn(a,[xe.scales[a.type],xe.scale])}),r}function dc(e){const t=e.options||(e.options={});t.plugins=oe(t.plugins,{}),t.scales=Sm(e,t)}function fc(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function km(e){return e=e||{},e.data=fc(e.data),dc(e),e}const Jo=new Map,hc=new Set;function Gs(e,t){let n=Jo.get(e);return n||(n=t(),Jo.set(e,n),hc.add(n)),n}const $n=(e,t,n)=>{const s=Cn(t,n);s!==void 0&&e.add(s)};class jm{constructor(t){this._config=km(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=fc(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),dc(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Gs(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Gs(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Gs(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,s=this.type;return Gs(`${s}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const s=this._scopeCache;let i=s.get(t);return(!i||n)&&(i=new Map,s.set(t,i)),i}getOptionScopes(t,n,s){const{options:i,type:r}=this,o=this._cachedScopes(t,s),a=o.get(n);if(a)return a;const l=new Set;n.forEach(d=>{t&&(l.add(t),d.forEach(h=>$n(l,t,h))),d.forEach(h=>$n(l,i,h)),d.forEach(h=>$n(l,un[r]||{},h)),d.forEach(h=>$n(l,xe,h)),d.forEach(h=>$n(l,Zi,h))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),hc.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,un[n]||{},xe.datasets[n]||{},{type:n},xe,Zi]}resolveNamedOptions(t,n,s,i=[""]){const r={$shared:!0},{resolver:o,subPrefixes:a}=Zo(this._resolverCache,t,i);let l=o;if(Em(o,n)){r.$shared=!1,s=$t(s)?s():s;const c=this.createResolver(t,s,a);l=En(o,s,c)}for(const c of n)r[c]=l[c];return r}createResolver(t,n,s=[""],i){const{resolver:r}=Zo(this._resolverCache,t,s);return ce(n)?En(r,n,void 0,i):r}}function Zo(e,t,n){let s=e.get(t);s||(s=new Map,e.set(t,s));const i=n.join();let r=s.get(i);return r||(r={resolver:Rr(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},s.set(i,r)),r}const Cm=e=>ce(e)&&Object.getOwnPropertyNames(e).some(t=>$t(e[t]));function Em(e,t){const{isScriptable:n,isIndexable:s}=Xl(e);for(const i of t){const r=n(i),o=s(i),a=(o||r)&&e[i];if(r&&($t(a)||Cm(a))||o&&ye(a))return!0}return!1}var Mm="4.4.7";const Rm=["top","bottom","left","right","chartArea"];function Qo(e,t){return e==="top"||e==="bottom"||Rm.indexOf(e)===-1&&t==="x"}function ea(e,t){return function(n,s){return n[e]===s[e]?n[t]-s[t]:n[e]-s[e]}}function ta(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),pe(n&&n.onComplete,[e],t)}function Pm(e){const t=e.chart,n=t.options.animation;pe(n&&n.onProgress,[e],t)}function uc(e){return Or()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const li={},na=e=>{const t=uc(e);return Object.values(li).filter(n=>n.canvas===t).pop()};function Tm(e,t,n){const s=Object.keys(e);for(const i of s){const r=+i;if(r>=t){const o=e[i];delete e[i],(n>0||r>t)&&(e[r+n]=o)}}}function Om(e,t,n,s){return!n||e.type==="mouseout"?null:s?t:e}function Xs(e,t,n){return e.options.clip?e[n]:t[n]}function Dm(e,t){const{xScale:n,yScale:s}=e;return n&&s?{left:Xs(n,t,"left"),right:Xs(n,t,"right"),top:Xs(s,t,"top"),bottom:Xs(s,t,"bottom")}:t}var Et;let ie=(Et=class{static register(...t){ot.add(...t),sa()}static unregister(...t){ot.remove(...t),sa()}constructor(t,n){const s=this.config=new jm(n),i=uc(t),r=na(i);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||Jp(i)),this.platform.updateConfig(s);const a=this.platform.acquireContext(i,o.aspectRatio),l=a&&a.canvas,c=l&&l.height,d=l&&l.width;if(this.id=Oh(),this.ctx=a,this.canvas=l,this.width=d,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new mm,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Jh(h=>this.update(h),o.resizeDelay||0),this._dataChanges=[],li[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}mt.listen(this,"complete",ta),mt.listen(this,"progress",Pm),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:s,height:i,_aspectRatio:r}=this;return fe(t)?n&&r?r:i?s/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return ot}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ko(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return wo(this.canvas,this.ctx),this}stop(){return mt.stop(this),this}resize(t,n){mt.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const s=this.options,i=this.canvas,r=s.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,n,r),a=s.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,ko(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),pe(s.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};he(n,(s,i)=>{s.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,s=this.scales,i=Object.keys(s).reduce((o,a)=>(o[a]=!1,o),{});let r=[];n&&(r=r.concat(Object.keys(n).map(o=>{const a=n[o],l=tr(o,a),c=l==="r",d=l==="x";return{options:a,dposition:c?"chartArea":d?"bottom":"left",dtype:c?"radialLinear":d?"category":"linear"}}))),he(r,o=>{const a=o.options,l=a.id,c=tr(l,a),d=oe(a.type,o.dtype);(a.position===void 0||Qo(a.position,c)!==Qo(o.dposition))&&(a.position=o.dposition),i[l]=!0;let h=null;if(l in s&&s[l].type===d)h=s[l];else{const u=ot.getScale(d);h=new u({id:l,type:d,ctx:this.ctx,chart:this}),s[h.id]=h}h.init(a,t)}),he(i,(o,a)=>{o||delete s[a]}),he(s,o=>{Xe.configure(this,o,o.options),Xe.addBox(this,o)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,s=t.length;if(t.sort((i,r)=>i.index-r.index),s>n){for(let i=n;i<s;++i)this._destroyDatasetMeta(i);t.splice(n,s-n)}this._sortedMetasets=t.slice(0).sort(ea("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((s,i)=>{n.filter(r=>r===s._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let s,i;for(this._removeUnreferencedMetasets(),s=0,i=n.length;s<i;s++){const r=n[s];let o=this.getDatasetMeta(s);const a=r.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(s),o=this.getDatasetMeta(s)),o.type=a,o.indexAxis=r.indexAxis||er(a,this.options),o.order=r.order||0,o.index=s,o.label=""+r.label,o.visible=this.isDatasetVisible(s),o.controller)o.controller.updateIndex(s),o.controller.linkScales();else{const l=ot.getController(a),{datasetElementType:c,dataElementType:d}=xe.datasets[a];Object.assign(l,{dataElementType:ot.getElement(d),datasetElementType:c&&ot.getElement(c)}),o.controller=new l(this,s),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){he(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const s=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,d=this.data.datasets.length;c<d;c++){const{controller:h}=this.getDatasetMeta(c),u=!i&&r.indexOf(h)===-1;h.buildOrUpdateElements(u),o=Math.max(+h.getMaxOverflow(),o)}o=this._minPadding=s.layout.autoPadding?o:0,this._updateLayout(o),i||he(r,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ea("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){he(this.scales,t=>{Xe.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!ho(n,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:s,start:i,count:r}of n){const o=s==="_removeElements"?-r:r;Tm(t,i,o)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,s=r=>new Set(t.filter(o=>o[0]===r).map((o,a)=>a+","+o.splice(1).join(","))),i=s(0);for(let r=1;r<n;r++)if(!ho(i,s(r)))return;return Array.from(i).map(r=>r.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Xe.update(this,this.width,this.height,t);const n=this.chartArea,s=n.width<=0||n.height<=0;this._layers=[],he(this.boxes,i=>{s&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,r)=>{i._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,s=this.data.datasets.length;n<s;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,s=this.data.datasets.length;n<s;++n)this._updateDataset(n,$t(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const s=this.getDatasetMeta(t),i={meta:s,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(s.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(mt.has(this)?this.attached&&!mt.running(this)&&mt.start(this):(this.draw(),ta({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:s,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(s,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,s=[];let i,r;for(i=0,r=n.length;i<r;++i){const o=n[i];(!t||o.visible)&&s.push(o)}return s}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,s=t._clip,i=!s.disabled,r=Dm(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",o)!==!1&&(i&&Cr(n,{left:s.left===!1?0:r.left-s.left,right:s.right===!1?this.width:r.right+s.right,top:s.top===!1?0:r.top-s.top,bottom:s.bottom===!1?this.height:r.bottom+s.bottom}),t.controller.draw(),i&&Er(n),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return rs(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,s,i){const r=Rp.modes[n];return typeof r=="function"?r(this,t,s,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],s=this._metasets;let i=s.filter(r=>r&&r._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},s.push(i)),i}getContext(){return this.$context||(this.$context=pn(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!n.hidden}setDatasetVisibility(t,n){const s=this.getDatasetMeta(t);s.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,s){const i=s?"show":"hide",r=this.getDatasetMeta(t),o=r.controller._resolveAnimations(void 0,i);ss(n)?(r.data[n].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),o.update(r,{visible:s}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),mt.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),wo(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete li[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,s=(r,o)=>{n.addEventListener(this,r,o),t[r]=o},i=(r,o,a)=>{r.offsetX=o,r.offsetY=a,this._eventHandler(r)};he(this.options.events,r=>s(r,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,s=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},r=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const a=()=>{i("attach",a),this.attached=!0,this.resize(),s("resize",r),s("detach",o)};o=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),s("attach",a)},n.isAttached(this.canvas)?a():o()}unbindEvents(){he(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},he(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,s){const i=s?"set":"remove";let r,o,a,l;for(n==="dataset"&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){o=t[a];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],s=t.map(({datasetIndex:r,index:o})=>{const a=this.getDatasetMeta(r);if(!a)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:a.data[o],index:o}});!di(s,n)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,n))}notifyPlugins(t,n,s){return this._plugins.notify(this,t,n,s)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,s){const i=this.options.hover,r=(l,c)=>l.filter(d=>!c.some(h=>d.datasetIndex===h.datasetIndex&&d.index===h.index)),o=r(n,t),a=s?t:r(t,n);o.length&&this.updateHoverStyle(o,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const s={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=o=>(o.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,i)===!1)return;const r=this._handleEvent(t,n,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,i),(r||s.changed)&&this.render(),this}_handleEvent(t,n,s){const{_active:i=[],options:r}=this,o=n,a=this._getActiveElements(t,i,s,o),l=Fh(t),c=Om(t,this._lastEvent,s,l);s&&(this._lastEvent=null,pe(r.onHover,[t,a,this],this),l&&pe(r.onClick,[t,a,this],this));const d=!di(a,i);return(d||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,d}_getActiveElements(t,n,s,i){if(t.type==="mouseout")return[];if(!s)return n;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,i)}},z(Et,"defaults",xe),z(Et,"instances",li),z(Et,"overrides",un),z(Et,"registry",ot),z(Et,"version",Mm),z(Et,"getChart",na),Et);function sa(){return he(ie.instances,e=>e._plugins.invalidate())}function Am(e,t,n){const{startAngle:s,pixelMargin:i,x:r,y:o,outerRadius:a,innerRadius:l}=t;let c=i/a;e.beginPath(),e.arc(r,o,a,s-c,n+c),l>i?(c=i/l,e.arc(r,o,l,n+c,s-c,!0)):e.arc(r,o,i,n+je,s-je),e.closePath(),e.clip()}function Lm(e){return Mr(e,["outerStart","outerEnd","innerStart","innerEnd"])}function Im(e,t,n,s){const i=Lm(e.options.borderRadius),r=(n-t)/2,o=Math.min(r,s*t/2),a=l=>{const c=(n-Math.min(r,l))*s/2;return Pe(l,0,Math.min(r,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:Pe(i.innerStart,0,o),innerEnd:Pe(i.innerEnd,0,o)}}function xn(e,t,n,s){return{x:n+e*Math.cos(t),y:s+e*Math.sin(t)}}function gi(e,t,n,s,i,r){const{x:o,y:a,startAngle:l,pixelMargin:c,innerRadius:d}=t,h=Math.max(t.outerRadius+s+n-c,0),u=d>0?d+s+n+c:0;let p=0;const b=i-l;if(s){const O=d>0?d-s:0,D=h>0?h-s:0,I=(O+D)/2,V=I!==0?b*I/(I+s):b;p=(b-V)/2}const m=Math.max(.001,b*h-n/ve)/h,g=(b-m)/2,x=l+g+p,y=i-g-p,{outerStart:v,outerEnd:_,innerStart:w,innerEnd:N}=Im(t,u,h,y-x),S=h-v,k=h-_,j=x+v/S,C=y-_/k,E=u+w,M=u+N,P=x+w/E,T=y-N/M;if(e.beginPath(),r){const O=(j+C)/2;if(e.arc(o,a,h,j,O),e.arc(o,a,h,O,C),_>0){const W=xn(k,C,o,a);e.arc(W.x,W.y,_,C,y+je)}const D=xn(M,y,o,a);if(e.lineTo(D.x,D.y),N>0){const W=xn(M,T,o,a);e.arc(W.x,W.y,N,y+je,T+Math.PI)}const I=(y-N/u+(x+w/u))/2;if(e.arc(o,a,u,y-N/u,I,!0),e.arc(o,a,u,I,x+w/u,!0),w>0){const W=xn(E,P,o,a);e.arc(W.x,W.y,w,P+Math.PI,x-je)}const V=xn(S,x,o,a);if(e.lineTo(V.x,V.y),v>0){const W=xn(S,j,o,a);e.arc(W.x,W.y,v,x-je,j)}}else{e.moveTo(o,a);const O=Math.cos(j)*h+o,D=Math.sin(j)*h+a;e.lineTo(O,D);const I=Math.cos(C)*h+o,V=Math.sin(C)*h+a;e.lineTo(I,V)}e.closePath()}function $m(e,t,n,s,i){const{fullCircles:r,startAngle:o,circumference:a}=t;let l=t.endAngle;if(r){gi(e,t,n,s,l,i);for(let c=0;c<r;++c)e.fill();isNaN(a)||(l=o+(a%Ee||Ee))}return gi(e,t,n,s,l,i),e.fill(),l}function Fm(e,t,n,s,i){const{fullCircles:r,startAngle:o,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:d,borderDash:h,borderDashOffset:u}=l,p=l.borderAlign==="inner";if(!c)return;e.setLineDash(h||[]),e.lineDashOffset=u,p?(e.lineWidth=c*2,e.lineJoin=d||"round"):(e.lineWidth=c,e.lineJoin=d||"bevel");let b=t.endAngle;if(r){gi(e,t,n,s,b,i);for(let m=0;m<r;++m)e.stroke();isNaN(a)||(b=o+(a%Ee||Ee))}p&&Am(e,t,b),r||(gi(e,t,n,s,b,i),e.stroke())}class Wn extends St{constructor(n){super();z(this,"circumference");z(this,"endAngle");z(this,"fullCircles");z(this,"innerRadius");z(this,"outerRadius");z(this,"pixelMargin");z(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,s,i){const r=this.getProps(["x","y"],i),{angle:o,distance:a}=$l(r,{x:n,y:s}),{startAngle:l,endAngle:c,innerRadius:d,outerRadius:h,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),p=(this.options.spacing+this.options.borderWidth)/2,b=oe(u,c-l),m=Nr(o,l,c)&&l!==c,g=b>=Ee||m,x=Pt(a,d+p,h+p);return g&&x}getCenterPoint(n){const{x:s,y:i,startAngle:r,endAngle:o,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:d}=this.options,h=(r+o)/2,u=(a+l+d+c)/2;return{x:s+Math.cos(h)*u,y:i+Math.sin(h)*u}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:s,circumference:i}=this,r=(s.offset||0)/4,o=(s.spacing||0)/2,a=s.circular;if(this.pixelMargin=s.borderAlign==="inner"?.33:0,this.fullCircles=i>Ee?Math.floor(i/Ee):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*r,Math.sin(l)*r);const c=1-Math.sin(Math.min(ve,i||0)),d=r*c;n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,$m(n,this,d,o,a),Fm(n,this,d,o,a),n.restore()}}z(Wn,"id","arc"),z(Wn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),z(Wn,"defaultRoutes",{backgroundColor:"backgroundColor"}),z(Wn,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function pc(e,t,n=t){e.lineCap=oe(n.borderCapStyle,t.borderCapStyle),e.setLineDash(oe(n.borderDash,t.borderDash)),e.lineDashOffset=oe(n.borderDashOffset,t.borderDashOffset),e.lineJoin=oe(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=oe(n.borderWidth,t.borderWidth),e.strokeStyle=oe(n.borderColor,t.borderColor)}function Ym(e,t,n){e.lineTo(n.x,n.y)}function Bm(e){return e.stepped?du:e.tension||e.cubicInterpolationMode==="monotone"?fu:Ym}function mc(e,t,n={}){const s=e.length,{start:i=0,end:r=s-1}=n,{start:o,end:a}=t,l=Math.max(i,o),c=Math.min(r,a),d=i<o&&r<o||i>a&&r>a;return{count:s,start:l,loop:t.loop,ilen:c<l&&!d?s+c-l:c-l}}function zm(e,t,n,s){const{points:i,options:r}=t,{count:o,start:a,loop:l,ilen:c}=mc(i,n,s),d=Bm(r);let{move:h=!0,reverse:u}=s||{},p,b,m;for(p=0;p<=c;++p)b=i[(a+(u?c-p:p))%o],!b.skip&&(h?(e.moveTo(b.x,b.y),h=!1):d(e,m,b,u,r.stepped),m=b);return l&&(b=i[(a+(u?c:0))%o],d(e,m,b,u,r.stepped)),!!l}function Wm(e,t,n,s){const i=t.points,{count:r,start:o,ilen:a}=mc(i,n,s),{move:l=!0,reverse:c}=s||{};let d=0,h=0,u,p,b,m,g,x;const y=_=>(o+(c?a-_:_))%r,v=()=>{m!==g&&(e.lineTo(d,g),e.lineTo(d,m),e.lineTo(d,x))};for(l&&(p=i[y(0)],e.moveTo(p.x,p.y)),u=0;u<=a;++u){if(p=i[y(u)],p.skip)continue;const _=p.x,w=p.y,N=_|0;N===b?(w<m?m=w:w>g&&(g=w),d=(h*d+_)/++h):(v(),e.lineTo(_,w),b=N,h=0,m=g=w),x=w}v()}function nr(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?Wm:zm}function Vm(e){return e.stepped?Wu:e.tension||e.cubicInterpolationMode==="monotone"?Vu:sn}function Hm(e,t,n,s){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,s)&&i.closePath()),pc(e,t.options),e.stroke(i)}function Um(e,t,n,s){const{segments:i,options:r}=t,o=nr(t);for(const a of i)pc(e,r,a.style),e.beginPath(),o(e,t,a,{start:n,end:n+s-1})&&e.closePath(),e.stroke()}const Gm=typeof Path2D=="function";function Xm(e,t,n,s){Gm&&!t.options.segment?Hm(e,t,n,s):Um(e,t,n,s)}class yt extends St{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){const i=s.spanGaps?this._loop:this._fullLoop;Au(this._points,s,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Zu(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,s=t.length;return s&&n[t[s-1].end]}interpolate(t,n){const s=this.options,i=t[n],r=this.points,o=qu(this,{property:n,start:i,end:i});if(!o.length)return;const a=[],l=Vm(s);let c,d;for(c=0,d=o.length;c<d;++c){const{start:h,end:u}=o[c],p=r[h],b=r[u];if(p===b){a.push(p);continue}const m=Math.abs((i-p[n])/(b[n]-p[n])),g=l(p,b,m,s.stepped);g[n]=t[n],a.push(g)}return a.length===1?a[0]:a}pathSegment(t,n,s){return nr(this)(t,this,n,s)}path(t,n,s){const i=this.segments,r=nr(this);let o=this._loop;n=n||0,s=s||this.points.length-n;for(const a of i)o&=r(t,this,a,{start:n,end:n+s-1});return!!o}draw(t,n,s,i){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),Xm(t,this,s,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}z(yt,"id","line"),z(yt,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),z(yt,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),z(yt,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function ia(e,t,n,s){const i=e.options,{[n]:r}=e.getProps([n],s);return Math.abs(t-r)<i.radius+i.hitRadius}class _t extends St{constructor(n){super();z(this,"parsed");z(this,"skip");z(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,s,i){const r=this.options,{x:o,y:a}=this.getProps(["x","y"],i);return Math.pow(n-o,2)+Math.pow(s-a,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(n,s){return ia(this,n,"x",s)}inYRange(n,s){return ia(this,n,"y",s)}getCenterPoint(n){const{x:s,y:i}=this.getProps(["x","y"],n);return{x:s,y:i}}size(n){n=n||this.options||{};let s=n.radius||0;s=Math.max(s,s&&n.hoverRadius||0);const i=s&&n.borderWidth||0;return(s+i)*2}draw(n,s){const i=this.options;this.skip||i.radius<.1||!rs(this,s,this.size(i)/2)||(n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.fillStyle=i.backgroundColor,Qi(n,i,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}z(_t,"id","point"),z(_t,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),z(_t,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function gc(e,t){const{x:n,y:s,base:i,width:r,height:o}=e.getProps(["x","y","base","width","height"],t);let a,l,c,d,h;return e.horizontal?(h=o/2,a=Math.min(n,i),l=Math.max(n,i),c=s-h,d=s+h):(h=r/2,a=n-h,l=n+h,c=Math.min(s,i),d=Math.max(s,i)),{left:a,top:c,right:l,bottom:d}}function Tt(e,t,n,s){return e?0:Pe(t,n,s)}function qm(e,t,n){const s=e.options.borderWidth,i=e.borderSkipped,r=Gl(s);return{t:Tt(i.top,r.top,0,n),r:Tt(i.right,r.right,0,t),b:Tt(i.bottom,r.bottom,0,n),l:Tt(i.left,r.left,0,t)}}function Km(e,t,n){const{enableBorderRadius:s}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,r=vn(i),o=Math.min(t,n),a=e.borderSkipped,l=s||ce(i);return{topLeft:Tt(!l||a.top||a.left,r.topLeft,0,o),topRight:Tt(!l||a.top||a.right,r.topRight,0,o),bottomLeft:Tt(!l||a.bottom||a.left,r.bottomLeft,0,o),bottomRight:Tt(!l||a.bottom||a.right,r.bottomRight,0,o)}}function Jm(e){const t=gc(e),n=t.right-t.left,s=t.bottom-t.top,i=qm(e,n/2,s/2),r=Km(e,n/2,s/2);return{outer:{x:t.left,y:t.top,w:n,h:s,radius:r},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:s-i.t-i.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,r.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(i.b,i.r))}}}}function Bi(e,t,n,s){const i=t===null,r=n===null,a=e&&!(i&&r)&&gc(e,s);return a&&(i||Pt(t,a.left,a.right))&&(r||Pt(n,a.top,a.bottom))}function Zm(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Qm(e,t){e.rect(t.x,t.y,t.w,t.h)}function zi(e,t,n={}){const s=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,r=(e.x+e.w!==n.x+n.w?t:0)-s,o=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+s,y:e.y+i,w:e.w+r,h:e.h+o,radius:e.radius}}class et extends St{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:s,backgroundColor:i}}=this,{inner:r,outer:o}=Jm(this),a=Zm(o.radius)?ui:Qm;t.save(),(o.w!==r.w||o.h!==r.h)&&(t.beginPath(),a(t,zi(o,n,r)),t.clip(),a(t,zi(r,-n,o)),t.fillStyle=s,t.fill("evenodd")),t.beginPath(),a(t,zi(r,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,s){return Bi(this,t,n,s)}inXRange(t,n){return Bi(this,t,null,n)}inYRange(t,n){return Bi(this,null,t,n)}getCenterPoint(t){const{x:n,y:s,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(n+i)/2:n,y:r?s:(s+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}z(et,"id","bar"),z(et,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),z(et,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const ra=(e,t)=>{let{boxHeight:n=t,boxWidth:s=t}=e;return e.usePointStyle&&(n=Math.min(n,t),s=e.pointStyleWidth||Math.min(s,t)),{boxWidth:s,boxHeight:n,itemHeight:Math.max(t,n)}},eg=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class oa extends St{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,s){this.maxWidth=t,this.maxHeight=n,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=pe(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(s=>t.filter(s,this.chart.data))),t.sort&&(n=n.sort((s,i)=>t.sort(s,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const s=t.labels,i=Ce(s.font),r=i.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=ra(s,r);let c,d;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,d=this._fitRows(o,r,a,l)+10):(d=this.maxHeight,c=this._fitCols(o,i,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,s,i){const{ctx:r,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],d=i+a;let h=t;r.textAlign="left",r.textBaseline="middle";let u=-1,p=-d;return this.legendItems.forEach((b,m)=>{const g=s+n/2+r.measureText(b.text).width;(m===0||c[c.length-1]+g+2*a>o)&&(h+=d,c[c.length-(m>0?0:1)]=0,p+=d,u++),l[m]={left:0,top:p,row:u,width:g,height:i},c[c.length-1]+=g+a}),h}_fitCols(t,n,s,i){const{ctx:r,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],d=o-t;let h=a,u=0,p=0,b=0,m=0;return this.legendItems.forEach((g,x)=>{const{itemWidth:y,itemHeight:v}=tg(s,n,r,g,i);x>0&&p+v+2*a>d&&(h+=u+a,c.push({width:u,height:p}),b+=u+a,m++,u=p=0),l[x]={left:b,top:p,col:m,width:y,height:v},u=Math.max(u,y),p+=v+a}),h+=u,c.push({width:u,height:p}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:s,labels:{padding:i},rtl:r}}=this,o=_n(r,this.left,this.width);if(this.isHorizontal()){let a=0,l=Re(s,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=Re(s,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+i}else{let a=0,l=Re(s,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=Re(s,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Cr(t,this),this._draw(),Er(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:s,ctx:i}=this,{align:r,labels:o}=t,a=xe.color,l=_n(t.rtl,this.left,this.width),c=Ce(o.font),{padding:d}=o,h=c.size,u=h/2;let p;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:b,boxHeight:m,itemHeight:g}=ra(o,h),x=function(N,S,k){if(isNaN(b)||b<=0||isNaN(m)||m<0)return;i.save();const j=oe(k.lineWidth,1);if(i.fillStyle=oe(k.fillStyle,a),i.lineCap=oe(k.lineCap,"butt"),i.lineDashOffset=oe(k.lineDashOffset,0),i.lineJoin=oe(k.lineJoin,"miter"),i.lineWidth=j,i.strokeStyle=oe(k.strokeStyle,a),i.setLineDash(oe(k.lineDash,[])),o.usePointStyle){const C={radius:m*Math.SQRT2/2,pointStyle:k.pointStyle,rotation:k.rotation,borderWidth:j},E=l.xPlus(N,b/2),M=S+u;Ul(i,C,E,M,o.pointStyleWidth&&b)}else{const C=S+Math.max((h-m)/2,0),E=l.leftForLtr(N,b),M=vn(k.borderRadius);i.beginPath(),Object.values(M).some(P=>P!==0)?ui(i,{x:E,y:C,w:b,h:m,radius:M}):i.rect(E,C,b,m),i.fill(),j!==0&&i.stroke()}i.restore()},y=function(N,S,k){os(i,k.text,N,S+g/2,c,{strikethrough:k.hidden,textAlign:l.textAlign(k.textAlign)})},v=this.isHorizontal(),_=this._computeTitleHeight();v?p={x:Re(r,this.left+d,this.right-s[0]),y:this.top+d+_,line:0}:p={x:this.left+d,y:Re(r,this.top+_+d,this.bottom-n[0].height),line:0},Ql(this.ctx,t.textDirection);const w=g+d;this.legendItems.forEach((N,S)=>{i.strokeStyle=N.fontColor,i.fillStyle=N.fontColor;const k=i.measureText(N.text).width,j=l.textAlign(N.textAlign||(N.textAlign=o.textAlign)),C=b+u+k;let E=p.x,M=p.y;l.setWidth(this.width),v?S>0&&E+C+d>this.right&&(M=p.y+=w,p.line++,E=p.x=Re(r,this.left+d,this.right-s[p.line])):S>0&&M+w>this.bottom&&(E=p.x=E+n[p.line].width+d,p.line++,M=p.y=Re(r,this.top+_+d,this.bottom-n[p.line].height));const P=l.x(E);if(x(P,M,N),E=Zh(j,E+b+u,v?E+C:this.right,t.rtl),y(l.x(E),M,N),v)p.x+=C+d;else if(typeof N.text!="string"){const T=c.lineHeight;p.y+=bc(N,T)+d}else p.y+=w}),ec(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,s=Ce(n.font),i=ze(n.padding);if(!n.display)return;const r=_n(t.rtl,this.left,this.width),o=this.ctx,a=n.position,l=s.size/2,c=i.top+l;let d,h=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),d=this.top+c,h=Re(t.align,h,this.right-u);else{const b=this.columnSizes.reduce((m,g)=>Math.max(m,g.height),0);d=c+Re(t.align,this.top,this.bottom-b-t.labels.padding-this._computeTitleHeight())}const p=Re(a,h,h+u);o.textAlign=r.textAlign(kr(a)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=s.string,os(o,n.text,p,d,s)}_computeTitleHeight(){const t=this.options.title,n=Ce(t.font),s=ze(t.padding);return t.display?n.lineHeight+s.height:0}_getLegendItemAt(t,n){let s,i,r;if(Pt(t,this.left,this.right)&&Pt(n,this.top,this.bottom)){for(r=this.legendHitBoxes,s=0;s<r.length;++s)if(i=r[s],Pt(t,i.left,i.left+i.width)&&Pt(n,i.top,i.top+i.height))return this.legendItems[s]}return null}handleEvent(t){const n=this.options;if(!ig(t.type,n))return;const s=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,r=eg(i,s);i&&!r&&pe(n.onLeave,[t,i,this],this),this._hoveredItem=s,s&&!r&&pe(n.onHover,[t,s,this],this)}else s&&pe(n.onClick,[t,s,this],this)}}function tg(e,t,n,s,i){const r=ng(s,e,t,n),o=sg(i,s,t.lineHeight);return{itemWidth:r,itemHeight:o}}function ng(e,t,n,s){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((r,o)=>r.length>o.length?r:o)),t+n.size/2+s.measureText(i).width}function sg(e,t,n){let s=e;return typeof t.text!="string"&&(s=bc(t,n)),s}function bc(e,t){const n=e.text?e.text.length:0;return t*n}function ig(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var Ze={id:"legend",_element:oa,start(e,t,n){const s=e.legend=new oa({ctx:e.ctx,options:n,chart:e});Xe.configure(e,s,n),Xe.addBox(e,s)},stop(e){Xe.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const s=e.legend;Xe.configure(e,s,n),s.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const s=t.datasetIndex,i=n.chart;i.isDatasetVisible(s)?(i.hide(s),t.hidden=!0):(i.show(s),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:s,textAlign:i,color:r,useBorderRadius:o,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),d=ze(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:r,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class xc extends St{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=ye(s.text)?s.text.length:1;this._padding=ze(s.padding);const r=i*Ce(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:s,bottom:i,right:r,options:o}=this,a=o.align;let l=0,c,d,h;return this.isHorizontal()?(d=Re(a,s,r),h=n+t,c=r-s):(o.position==="left"?(d=s+t,h=Re(a,i,n),l=ve*-.5):(d=r-t,h=Re(a,n,i),l=ve*.5),c=i-n),{titleX:d,titleY:h,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const s=Ce(n.font),r=s.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(r);os(t,n.text,0,0,s,{color:n.color,maxWidth:l,rotation:c,textAlign:kr(n.align),textBaseline:"middle",translation:[o,a]})}}function rg(e,t){const n=new xc({ctx:e.ctx,options:t,chart:e});Xe.configure(e,n,t),Xe.addBox(e,n),e.titleBlock=n}var Qe={id:"title",_element:xc,start(e,t,n){rg(e,n)},stop(e){const t=e.titleBlock;Xe.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const s=e.titleBlock;Xe.configure(e,s,n),s.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Vn={average(e){if(!e.length)return!1;let t,n,s=new Set,i=0,r=0;for(t=0,n=e.length;t<n;++t){const a=e[t].element;if(a&&a.hasValue()){const l=a.tooltipPosition();s.add(l.x),i+=l.y,++r}}return r===0||s.size===0?!1:{x:[...s].reduce((a,l)=>a+l)/s.size,y:i/r}},nearest(e,t){if(!e.length)return!1;let n=t.x,s=t.y,i=Number.POSITIVE_INFINITY,r,o,a;for(r=0,o=e.length;r<o;++r){const l=e[r].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),d=Ji(t,c);d<i&&(i=d,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,s=l.y}return{x:n,y:s}}};function rt(e,t){return t&&(ye(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function gt(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
-`)>-1?e.split(`
-`):e}function og(e,t){const{element:n,datasetIndex:s,index:i}=t,r=e.getDatasetMeta(s).controller,{label:o,value:a}=r.getLabelAndValue(i);return{chart:e,label:o,parsed:r.getParsed(i),raw:e.data.datasets[s].data[i],formattedValue:a,dataset:r.getDataset(),dataIndex:i,datasetIndex:s,element:n}}function aa(e,t){const n=e.chart.ctx,{body:s,footer:i,title:r}=e,{boxWidth:o,boxHeight:a}=t,l=Ce(t.bodyFont),c=Ce(t.titleFont),d=Ce(t.footerFont),h=r.length,u=i.length,p=s.length,b=ze(t.padding);let m=b.height,g=0,x=s.reduce((_,w)=>_+w.before.length+w.lines.length+w.after.length,0);if(x+=e.beforeBody.length+e.afterBody.length,h&&(m+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),x){const _=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=p*_+(x-p)*l.lineHeight+(x-1)*t.bodySpacing}u&&(m+=t.footerMarginTop+u*d.lineHeight+(u-1)*t.footerSpacing);let y=0;const v=function(_){g=Math.max(g,n.measureText(_).width+y)};return n.save(),n.font=c.string,he(e.title,v),n.font=l.string,he(e.beforeBody.concat(e.afterBody),v),y=t.displayColors?o+2+t.boxPadding:0,he(s,_=>{he(_.before,v),he(_.lines,v),he(_.after,v)}),y=0,n.font=d.string,he(e.footer,v),n.restore(),g+=b.width,{width:g,height:m}}function ag(e,t){const{y:n,height:s}=t;return n<s/2?"top":n>e.height-s/2?"bottom":"center"}function lg(e,t,n,s){const{x:i,width:r}=s,o=n.caretSize+n.caretPadding;if(e==="left"&&i+r+o>t.width||e==="right"&&i-r-o<0)return!0}function cg(e,t,n,s){const{x:i,width:r}=n,{width:o,chartArea:{left:a,right:l}}=e;let c="center";return s==="center"?c=i<=(a+l)/2?"left":"right":i<=r/2?c="left":i>=o-r/2&&(c="right"),lg(c,e,t,n)&&(c="center"),c}function la(e,t,n){const s=n.yAlign||t.yAlign||ag(e,n);return{xAlign:n.xAlign||t.xAlign||cg(e,t,n,s),yAlign:s}}function dg(e,t){let{x:n,width:s}=e;return t==="right"?n-=s:t==="center"&&(n-=s/2),n}function fg(e,t,n){let{y:s,height:i}=e;return t==="top"?s+=n:t==="bottom"?s-=i+n:s-=i/2,s}function ca(e,t,n,s){const{caretSize:i,caretPadding:r,cornerRadius:o}=e,{xAlign:a,yAlign:l}=n,c=i+r,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=vn(o);let b=dg(t,a);const m=fg(t,l,c);return l==="center"?a==="left"?b+=c:a==="right"&&(b-=c):a==="left"?b-=Math.max(d,u)+i:a==="right"&&(b+=Math.max(h,p)+i),{x:Pe(b,0,s.width-t.width),y:Pe(m,0,s.height-t.height)}}function qs(e,t,n){const s=ze(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-s.right:e.x+s.left}function da(e){return rt([],gt(e))}function hg(e,t,n){return pn(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function fa(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const yc={beforeTitle:pt,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,s=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex<s)return n[t.dataIndex]}return""},afterTitle:pt,beforeBody:pt,beforeLabel:pt,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return fe(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:pt,afterBody:pt,beforeFooter:pt,footer:pt,afterFooter:pt};function Te(e,t,n,s){const i=e[t].call(n,s);return typeof i>"u"?yc[t].call(n,s):i}class sr extends St{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,s=this.options.setContext(this.getContext()),i=s.enabled&&n.options.animation&&s.animations,r=new nc(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=hg(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:s}=n,i=Te(s,"beforeTitle",this,t),r=Te(s,"title",this,t),o=Te(s,"afterTitle",this,t);let a=[];return a=rt(a,gt(i)),a=rt(a,gt(r)),a=rt(a,gt(o)),a}getBeforeBody(t,n){return da(Te(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:s}=n,i=[];return he(t,r=>{const o={before:[],lines:[],after:[]},a=fa(s,r);rt(o.before,gt(Te(a,"beforeLabel",this,r))),rt(o.lines,Te(a,"label",this,r)),rt(o.after,gt(Te(a,"afterLabel",this,r))),i.push(o)}),i}getAfterBody(t,n){return da(Te(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:s}=n,i=Te(s,"beforeFooter",this,t),r=Te(s,"footer",this,t),o=Te(s,"afterFooter",this,t);let a=[];return a=rt(a,gt(i)),a=rt(a,gt(r)),a=rt(a,gt(o)),a}_createItems(t){const n=this._active,s=this.chart.data,i=[],r=[],o=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(og(this.chart,n[l]));return t.filter&&(a=a.filter((d,h,u)=>t.filter(d,h,u,s))),t.itemSort&&(a=a.sort((d,h)=>t.itemSort(d,h,s))),he(a,d=>{const h=fa(t.callbacks,d);i.push(Te(h,"labelColor",this,d)),r.push(Te(h,"labelPointStyle",this,d)),o.push(Te(h,"labelTextColor",this,d))}),this.labelColors=i,this.labelPointStyles=r,this.labelTextColors=o,this.dataPoints=a,a}update(t,n){const s=this.options.setContext(this.getContext()),i=this._active;let r,o=[];if(!i.length)this.opacity!==0&&(r={opacity:0});else{const a=Vn[s.position].call(this,i,this._eventPosition);o=this._createItems(s),this.title=this.getTitle(o,s),this.beforeBody=this.getBeforeBody(o,s),this.body=this.getBody(o,s),this.afterBody=this.getAfterBody(o,s),this.footer=this.getFooter(o,s);const l=this._size=aa(this,s),c=Object.assign({},a,l),d=la(this.chart,s,c),h=ca(s,c,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,r={opacity:1,x:h.x,y:h.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=o,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,s,i){const r=this.getCaretPosition(t,s,i);n.lineTo(r.x1,r.y1),n.lineTo(r.x2,r.y2),n.lineTo(r.x3,r.y3)}getCaretPosition(t,n,s){const{xAlign:i,yAlign:r}=this,{caretSize:o,cornerRadius:a}=s,{topLeft:l,topRight:c,bottomLeft:d,bottomRight:h}=vn(a),{x:u,y:p}=t,{width:b,height:m}=n;let g,x,y,v,_,w;return r==="center"?(_=p+m/2,i==="left"?(g=u,x=g-o,v=_+o,w=_-o):(g=u+b,x=g+o,v=_-o,w=_+o),y=g):(i==="left"?x=u+Math.max(l,d)+o:i==="right"?x=u+b-Math.max(c,h)-o:x=this.caretX,r==="top"?(v=p,_=v-o,g=x-o,y=x+o):(v=p+m,_=v+o,g=x+o,y=x-o),w=v),{x1:g,x2:x,x3:y,y1:v,y2:_,y3:w}}drawTitle(t,n,s){const i=this.title,r=i.length;let o,a,l;if(r){const c=_n(s.rtl,this.x,this.width);for(t.x=qs(this,s.titleAlign,s),n.textAlign=c.textAlign(s.titleAlign),n.textBaseline="middle",o=Ce(s.titleFont),a=s.titleSpacing,n.fillStyle=s.titleColor,n.font=o.string,l=0;l<r;++l)n.fillText(i[l],c.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,l+1===r&&(t.y+=s.titleMarginBottom-a)}}_drawColorBox(t,n,s,i,r){const o=this.labelColors[s],a=this.labelPointStyles[s],{boxHeight:l,boxWidth:c}=r,d=Ce(r.bodyFont),h=qs(this,"left",r),u=i.x(h),p=l<d.lineHeight?(d.lineHeight-l)/2:0,b=n.y+p;if(r.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},g=i.leftForLtr(u,c)+c/2,x=b+l/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,Qi(t,m,g,x),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,Qi(t,m,g,x)}else{t.lineWidth=ce(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const m=i.leftForLtr(u,c),g=i.leftForLtr(i.xPlus(u,1),c-2),x=vn(o.borderRadius);Object.values(x).some(y=>y!==0)?(t.beginPath(),t.fillStyle=r.multiKeyBackground,ui(t,{x:m,y:b,w:c,h:l,radius:x}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),ui(t,{x:g,y:b+1,w:c-2,h:l-2,radius:x}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(m,b,c,l),t.strokeRect(m,b,c,l),t.fillStyle=o.backgroundColor,t.fillRect(g,b+1,c-2,l-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,n,s){const{body:i}=this,{bodySpacing:r,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:d}=s,h=Ce(s.bodyFont);let u=h.lineHeight,p=0;const b=_n(s.rtl,this.x,this.width),m=function(k){n.fillText(k,b.x(t.x+p),t.y+u/2),t.y+=u+r},g=b.textAlign(o);let x,y,v,_,w,N,S;for(n.textAlign=o,n.textBaseline="middle",n.font=h.string,t.x=qs(this,g,s),n.fillStyle=s.bodyColor,he(this.beforeBody,m),p=a&&g!=="right"?o==="center"?c/2+d:c+2+d:0,_=0,N=i.length;_<N;++_){for(x=i[_],y=this.labelTextColors[_],n.fillStyle=y,he(x.before,m),v=x.lines,a&&v.length&&(this._drawColorBox(n,t,_,b,s),u=Math.max(h.lineHeight,l)),w=0,S=v.length;w<S;++w)m(v[w]),u=h.lineHeight;he(x.after,m)}p=0,u=h.lineHeight,he(this.afterBody,m),t.y-=r}drawFooter(t,n,s){const i=this.footer,r=i.length;let o,a;if(r){const l=_n(s.rtl,this.x,this.width);for(t.x=qs(this,s.footerAlign,s),t.y+=s.footerMarginTop,n.textAlign=l.textAlign(s.footerAlign),n.textBaseline="middle",o=Ce(s.footerFont),n.fillStyle=s.footerColor,n.font=o.string,a=0;a<r;++a)n.fillText(i[a],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+s.footerSpacing}}drawBackground(t,n,s,i){const{xAlign:r,yAlign:o}=this,{x:a,y:l}=t,{width:c,height:d}=s,{topLeft:h,topRight:u,bottomLeft:p,bottomRight:b}=vn(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(a+h,l),o==="top"&&this.drawCaret(t,n,s,i),n.lineTo(a+c-u,l),n.quadraticCurveTo(a+c,l,a+c,l+u),o==="center"&&r==="right"&&this.drawCaret(t,n,s,i),n.lineTo(a+c,l+d-b),n.quadraticCurveTo(a+c,l+d,a+c-b,l+d),o==="bottom"&&this.drawCaret(t,n,s,i),n.lineTo(a+p,l+d),n.quadraticCurveTo(a,l+d,a,l+d-p),o==="center"&&r==="left"&&this.drawCaret(t,n,s,i),n.lineTo(a,l+h),n.quadraticCurveTo(a,l,a+h,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,s=this.$animations,i=s&&s.x,r=s&&s.y;if(i||r){const o=Vn[t.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=aa(this,t),l=Object.assign({},o,this._size),c=la(n,t,l),d=ca(t,l,c,n);(i._to!==d.x||r._to!==d.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},r={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const o=ze(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=s,this.drawBackground(r,t,i,n),Ql(t,n.textDirection),r.y+=o.top,this.drawTitle(r,t,n),this.drawBody(r,t,n),this.drawFooter(r,t,n),ec(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const s=this._active,i=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),r=!di(s,i),o=this._positionChanged(i,n);(r||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,s=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,r=this._active||[],o=this._getActiveElements(t,r,n,s),a=this._positionChanged(o,t),l=n||!di(o,r)||a;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,s,i){const r=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,r.mode,r,s);return r.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:s,caretY:i,options:r}=this,o=Vn[r.position].call(this,t,n);return o!==!1&&(s!==o.x||i!==o.y)}}z(sr,"positioners",Vn);var We={id:"tooltip",_element:sr,positioners:Vn,afterInit(e,t,n){n&&(e.tooltip=new sr({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:yc},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const ug=(e,t,n,s)=>(typeof t=="string"?(n=e.push(t)-1,s.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function pg(e,t,n,s){const i=e.indexOf(t);if(i===-1)return ug(e,t,n,s);const r=e.lastIndexOf(t);return i!==r?n:i}const mg=(e,t)=>e===null?null:Pe(Math.round(e),0,t);function ha(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class $e extends Rn{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const s=this.getLabels();for(const{index:i,label:r}of n)s[i]===r&&s.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(fe(t))return null;const s=this.getLabels();return n=isFinite(n)&&s[n]===t?n:pg(s,t,oe(n,t),this._addedLabels),mg(n,s.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:s,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(s=0),n||(i=this.getLabels().length-1)),this.min=s,this.max=i}buildTicks(){const t=this.min,n=this.max,s=this.options.offset,i=[];let r=this.getLabels();r=t===0&&n===r.length-1?r:r.slice(t,n+1),this._valueRange=Math.max(r.length-(s?0:1),1),this._startValue=this.min-(s?.5:0);for(let o=t;o<=n;o++)i.push({value:o});return i}getLabelForValue(t){return ha.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}z($e,"id","category"),z($e,"defaults",{ticks:{callback:ha}});function gg(e,t){const n=[],{bounds:i,step:r,min:o,max:a,precision:l,count:c,maxTicks:d,maxDigits:h,includeBounds:u}=e,p=r||1,b=d-1,{min:m,max:g}=t,x=!fe(o),y=!fe(a),v=!fe(c),_=(g-m)/(h+1);let w=po((g-m)/b/p)*p,N,S,k,j;if(w<1e-14&&!x&&!y)return[{value:m},{value:g}];j=Math.ceil(g/w)-Math.floor(m/w),j>b&&(w=po(j*w/b/p)*p),fe(l)||(N=Math.pow(10,l),w=Math.ceil(w*N)/N),i==="ticks"?(S=Math.floor(m/w)*w,k=Math.ceil(g/w)*w):(S=m,k=g),x&&y&&r&&Wh((a-o)/r,w/1e3)?(j=Math.round(Math.min((a-o)/w,d)),w=(a-o)/j,S=o,k=a):v?(S=x?o:S,k=y?a:k,j=c-1,w=(k-S)/j):(j=(k-S)/w,qn(j,Math.round(j),w/1e3)?j=Math.round(j):j=Math.ceil(j));const C=Math.max(mo(w),mo(S));N=Math.pow(10,fe(l)?C:l),S=Math.round(S*N)/N,k=Math.round(k*N)/N;let E=0;for(x&&(u&&S!==o?(n.push({value:o}),S<o&&E++,qn(Math.round((S+E*w)*N)/N,o,ua(o,_,e))&&E++):S<o&&E++);E<j;++E){const M=Math.round((S+E*w)*N)/N;if(y&&M>a)break;n.push({value:M})}return y&&u&&k!==a?n.length&&qn(n[n.length-1].value,a,ua(a,_,e))?n[n.length-1].value=a:n.push({value:a}):(!y||k===a)&&n.push({value:k}),n}function ua(e,t,{horizontal:n,minRotation:s}){const i=an(s),r=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/r,o)}class bg extends Rn{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return fe(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:s}=this.getUserBounds();let{min:i,max:r}=this;const o=l=>i=n?i:l,a=l=>r=s?r:l;if(t){const l=dt(i),c=dt(r);l<0&&c<0?a(0):l>0&&c>0&&o(0)}if(i===r){let l=r===0?1:Math.abs(r*.05);a(r+l),t||o(i-l)}this.min=i,this.max=r}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:s}=t,i;return s?(i=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const i={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},r=this._range||this,o=gg(i,r);return t.bounds==="ticks"&&Vh(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const i=(s-n)/Math.max(t.length-1,1)/2;n-=i,s+=i}this._startValue=n,this._endValue=s,this._valueRange=s-n}getLabelForValue(t){return Wl(t,this.chart.options.locale,this.options.ticks.format)}}class Fe extends bg{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Je(t)?t:0,this.max=Je(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,s=an(this.options.ticks.minRotation),i=(t?Math.sin(s):Math.cos(s))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,r.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}z(Fe,"id","linear"),z(Fe,"defaults",{ticks:{callback:Hl.formatters.numeric}});const Ni={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},De=Object.keys(Ni);function pa(e,t){return e-t}function ma(e,t){if(fe(t))return null;const n=e._adapter,{parser:s,round:i,isoWeekday:r}=e._parseOpts;let o=t;return typeof s=="function"&&(o=s(o)),Je(o)||(o=typeof s=="string"?n.parse(o,s):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(is(r)||r===!0)?n.startOf(o,"isoWeek",r):n.startOf(o,i)),+o)}function ga(e,t,n,s){const i=De.length;for(let r=De.indexOf(e);r<i-1;++r){const o=Ni[De[r]],a=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(a*o.size))<=s)return De[r]}return De[i-1]}function xg(e,t,n,s,i){for(let r=De.length-1;r>=De.indexOf(n);r--){const o=De[r];if(Ni[o].common&&e._adapter.diff(i,s,o)>=t-1)return o}return De[n?De.indexOf(n):0]}function yg(e){for(let t=De.indexOf(e)+1,n=De.length;t<n;++t)if(Ni[De[t]].common)return De[t]}function ba(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:s,hi:i}=Sr(n,t),r=n[s]>=t?n[s]:n[i];e[r]=!0}}function vg(e,t,n,s){const i=e._adapter,r=+i.startOf(t[0].value,s),o=t[t.length-1].value;let a,l;for(a=r;a<=o;a=+i.add(a,1,s))l=n[a],l>=0&&(t[l].major=!0);return t}function xa(e,t,n){const s=[],i={},r=t.length;let o,a;for(o=0;o<r;++o)a=t[o],i[a]=o,s.push({value:a,major:!1});return r===0||!n?s:vg(e,s,i,n)}class bi extends Rn{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const s=t.time||(t.time={}),i=this._adapter=new kp._date(t.adapters.date);i.init(n),Xn(s.displayFormats,i.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:ma(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,s=t.time.unit||"day";let{min:i,max:r,minDefined:o,maxDefined:a}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!a&&!isNaN(c.max)&&(r=Math.max(r,c.max))}(!o||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=Je(i)&&!isNaN(i)?i:+n.startOf(Date.now(),s),r=Je(r)&&!isNaN(r)?r:+n.endOf(Date.now(),s)+1,this.min=Math.min(i,r-1),this.max=Math.max(i+1,r)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],s=t[t.length-1]),{min:n,max:s}}buildTicks(){const t=this.options,n=t.time,s=t.ticks,i=s.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const r=this.min,o=this.max,a=qh(i,r,o);return this._unit=n.unit||(s.autoSkip?ga(n.minUnit,this.min,this.max,this._getLabelCapacity(r)):xg(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:yg(this._unit),this.initOffsets(i),t.reverse&&a.reverse(),xa(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,s=0,i,r;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,r=this.getDecimalForValue(t[t.length-1]),t.length===1?s=r:s=(r-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=Pe(n,0,o),s=Pe(s,0,o),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){const t=this._adapter,n=this.min,s=this.max,i=this.options,r=i.time,o=r.unit||ga(r.minUnit,n,s,this._getLabelCapacity(n)),a=oe(i.ticks.stepSize,1),l=o==="week"?r.isoWeekday:!1,c=is(l)||l===!0,d={};let h=n,u,p;if(c&&(h=+t.startOf(h,"isoWeek",l)),h=+t.startOf(h,c?"day":o),t.diff(s,n,o)>1e5*a)throw new Error(n+" and "+s+" are too far apart with stepSize of "+a+" "+o);const b=i.ticks.source==="data"&&this.getDataTimestamps();for(u=h,p=0;u<s;u=+t.add(u,a,o),p++)ba(d,u,b);return(u===s||i.bounds==="ticks"||p===1)&&ba(d,u,b),Object.keys(d).sort(pa).map(m=>+m)}getLabelForValue(t){const n=this._adapter,s=this.options.time;return s.tooltipFormat?n.format(t,s.tooltipFormat):n.format(t,s.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,r=this._unit,o=n||i[r];return this._adapter.format(t,o)}_tickFormatFunction(t,n,s,i){const r=this.options,o=r.ticks.callback;if(o)return pe(o,[t,n,s],this);const a=r.time.displayFormats,l=this._unit,c=this._majorUnit,d=l&&a[l],h=c&&a[c],u=s[n],p=c&&h&&u&&u.major;return this._adapter.format(t,i||(p?h:d))}generateTickLabels(t){let n,s,i;for(n=0,s=t.length;n<s;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,s=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+s)*n.factor)}getValueForPixel(t){const n=this._offsets,s=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+s*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,s=this.ctx.measureText(t).width,i=an(this.isHorizontal()?n.maxRotation:n.minRotation),r=Math.cos(i),o=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:s*r+a*o,h:s*o+a*r}}_getLabelCapacity(t){const n=this.options.time,s=n.displayFormats,i=s[n.unit]||s.millisecond,r=this._tickFormatFunction(t,0,xa(this,[t],this._majorUnit),i),o=this._getLabelSize(r),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,s;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,s=i.length;n<s;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,s;if(t.length)return t;const i=this.getLabels();for(n=0,s=i.length;n<s;++n)t.push(ma(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Yl(t.sort(pa))}}z(bi,"id","time"),z(bi,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function Ks(e,t,n){let s=0,i=e.length-1,r,o,a,l;n?(t>=e[s].pos&&t<=e[i].pos&&({lo:s,hi:i}=ln(e,"pos",t)),{pos:r,time:a}=e[s],{pos:o,time:l}=e[i]):(t>=e[s].time&&t<=e[i].time&&({lo:s,hi:i}=ln(e,"time",t)),{time:r,pos:a}=e[s],{time:o,pos:l}=e[i]);const c=o-r;return c?a+(l-a)*(t-r)/c:a}class ya extends bi{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Ks(n,this.min),this._tableRange=Ks(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:s}=this,i=[],r=[];let o,a,l,c,d;for(o=0,a=t.length;o<a;++o)c=t[o],c>=n&&c<=s&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:s,pos:1}];for(o=0,a=i.length;o<a;++o)d=i[o+1],l=i[o-1],c=i[o],Math.round((d+l)/2)!==c&&r.push({time:c,pos:o/(a-1)});return r}_generate(){const t=this.min,n=this.max;let s=super.getDataTimestamps();return(!s.includes(t)||!s.length)&&s.splice(0,0,t),(!s.includes(n)||s.length===1)&&s.push(n),s.sort((i,r)=>i-r)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),s=this.getLabelTimestamps();return n.length&&s.length?t=this.normalize(n.concat(s)):t=n.length?n:s,t=this._cache.all=t,t}getDecimalForValue(t){return(Ks(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,s=this.getDecimalForPixel(t)/n.factor-n.end;return Ks(this._table,s*this._tableRange+this._minPos,!0)}}z(ya,"id","timeseries"),z(ya,"defaults",bi.defaults);const vc="label";function va(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function _g(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function _c(e,t){e.labels=t}function wc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:vc;const s=[];e.datasets=t.map(i=>{const r=e.datasets.find(o=>o[n]===i[n]);return!r||!i.data||s.includes(r)?{...i}:(s.push(r),Object.assign(r,i),r)})}function wg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vc;const n={labels:[],datasets:[]};return _c(n,e.labels),wc(n,e.datasets,t),n}function Ng(e,t){const{height:n=150,width:s=300,redraw:i=!1,datasetIdKey:r,type:o,data:a,options:l,plugins:c=[],fallbackContent:d,updateMode:h,...u}=e,p=R.useRef(null),b=R.useRef(null),m=()=>{p.current&&(b.current=new ie(p.current,{type:o,data:wg(a,r),options:l&&{...l},plugins:c}),va(t,b.current))},g=()=>{va(t,null),b.current&&(b.current.destroy(),b.current=null)};return R.useEffect(()=>{!i&&b.current&&l&&_g(b.current,l)},[i,l]),R.useEffect(()=>{!i&&b.current&&_c(b.current.config.data,a.labels)},[i,a.labels]),R.useEffect(()=>{!i&&b.current&&a.datasets&&wc(b.current.config.data,a.datasets,r)},[i,a.datasets]),R.useEffect(()=>{b.current&&(i?(g(),setTimeout(m)):b.current.update(h))},[i,l,a.labels,a.datasets,h]),R.useEffect(()=>{b.current&&(g(),setTimeout(m))},[o]),R.useEffect(()=>(m(),()=>g()),[]),tt.createElement("canvas",{ref:p,role:"img",height:n,width:s,...u},d)}const Sg=R.forwardRef(Ng);function Nc(e,t){return ie.register(t),R.forwardRef((n,s)=>tt.createElement(Sg,{...n,ref:s,type:e}))}const Ot=Nc("line",oi),Bt=Nc("bar",ri);var Qt={},_a;function kg(){if(_a)return Qt;_a=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.cartesianProductGenerator=Qt.cartesianProduct=void 0;function e(...s){if(!Array.isArray(s))throw new TypeError("Please, send an array.");const[i,r,...o]=s,a=n(i,r);return o.length?e(a,...o):a}Qt.cartesianProduct=e;function*t(...s){if(!Array.isArray(s))throw new TypeError("Please, send an array.");const[i,r,...o]=s,a=n(i,r);yield a,o.length&&(yield*t(a,...o))}Qt.cartesianProductGenerator=t;function n(s,i){const r=[];for(let o=0;o<s.length;o++){if(!i){r.push([s[o]]);continue}for(let a=0;a<i.length;a++)Array.isArray(s[o])?r.push([...s[o],i[a]]):r.push([s[o],i[a]])}return r}return Qt}var Lr=kg();const jg=function(e){let t=0;for(let s=0;s<e.length;s++)t=e.charCodeAt(s)+((t<<5)-t);let n="#";for(let s=0;s<3;s++){const r="00"+(t>>s*8&255).toString(16);n+=r.substring(r.length-2)}return n};function ps(e,t=(n,s)=>{}){const n=new Map;for(const[s,i]of e){const r=new Map;for(const[o,a]of i){const l=new Map;for(const[c,d]of a){const h=t(o,d);if(h){l.set(c,{tooltip:h});continue}l.set(c,{})}r.set(o,l)}n.set(s,r)}return n}function Pn(e){const t=new Map;return e.forEach(n=>{const s=t.get(n.nren);(!s||s.year<n.year)&&t.set(n.nren,n)}),Array.from(t.values())}function Cg(e){return e.match(/^[a-zA-Z]+:\/\//)?e:"https://"+e}const Ir=e=>{const t={};return!e.urls&&!e.url||(e.urls&&e.urls.forEach(n=>{t[n]=n}),e.url&&(t[e.url]=e.url)),t};function ms(e){const t=new Map;return e.forEach(n=>{let s=t.get(n.nren);s||(s=new Map);let i=s.get(n.year);i||(i=[]),i.push(n),s.set(n.year,i),t.set(n.nren,s)}),t}function Ve(e){const t=new Map;return e.forEach(n=>{let s=t.get(n.nren);s||(s=new Map),s.set(n.year,n),t.set(n.nren,s)}),t}function nt(e,t){const n=new Map;return e.forEach((s,i)=>{const r=new Map;Array.from(s.keys()).sort((a,l)=>l-a).forEach(a=>{const l=s.get(a),c=r.get(a)||{};t(c,l),Object.keys(c).length>0&&r.set(a,c)}),n.set(i,r)}),n}function _e(e,t,n=!1){const s=new Map;return e.forEach(i=>{const r=a=>{let l=s.get(i.nren);l||(l=new Map);let c=l.get(a);c||(c=new Map),c.set(i.year,i),l.set(a,c),s.set(i.nren,l)};let o=i[t];typeof o=="boolean"&&(o=o?"True":"False"),n&&o==null&&(o=`${o}`),Array.isArray(o)?o.forEach(r):r(o)}),s}function yn(e,t,n,s=!0,i){const r=new Map,o=(a,l,c)=>{a.forEach(d=>{let h=l?d[l]:c;typeof h=="boolean"&&(h=h?"True":"False");const u=d.nren,p=d.year,b=r.get(u)||new Map,m=b.get(p)||new Map,g=m.get(h)||{},x=d[c];if(x==null)return;const y=s?x:c,v=g[y]||{};v[`${x}`]=x,g[y]=v,m.set(h,g),b.set(p,m),r.set(u,b)})};if(n)for(const a of t)o(e,n,a);else for(const a of t)o(e,void 0,a);return r}const Eg=e=>{function t(){const h=(p,b,m)=>"#"+[p,b,m].map(g=>{const x=g.toString(16);return x.length===1?"0"+x:x}).join(""),u=new Map;return u.set("client_institutions",h(157,40,114)),u.set("commercial",h(241,224,79)),u.set("european_funding",h(219,42,76)),u.set("gov_public_bodies",h(237,141,24)),u.set("other",h(137,166,121)),u}const n=Ve(e),s=t(),i=[...new Set(e.map(h=>h.year))].sort(),r=[...new Set(e.map(h=>h.nren))].sort(),o={client_institutions:"Client Institutions",commercial:"Commercial",european_funding:"European Funding",gov_public_bodies:"Government/Public Bodies",other:"Other"},a=Object.keys(o),l=Lr.cartesianProduct(Object.keys(o),i).reduce((h,[u,p])=>{const b=`${u},${p}`;return h[b]={},h},{});return n.forEach((h,u)=>{h.forEach((p,b)=>{const m=a.map(x=>p[x]||0);if(m.reduce((x,y)=>x+y,0)!==0)for(const x of a){const y=`${x},${b}`,v=a.indexOf(x);l[y][u]=m[v]}})}),{datasets:Array.from(Object.entries(l)).map(([h,u])=>{const[p,b]=h.split(",");return{backgroundColor:s.get(p)||"black",label:o[p]+" ("+b+")",data:r.map(g=>u[g]),stack:b,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:p==a[0],formatter:function(g,x){return x.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(g){return g.chart.chartArea.width}}}}),labels:r.map(h=>h.toString())}};function Dt(e,t){const n=[...new Set(e.map(o=>o.year))].sort(),s=[...new Set(e.map(o=>o.nren))].sort(),i=Ve(e);return{datasets:s.map(o=>{const a=jg(o);return{backgroundColor:a,borderColor:a,data:n.map(l=>{const c=i.get(o);if(!c)return null;const d=c.get(l);return d?d[t]:null}),label:o,hidden:!1}}),labels:n.map(o=>o.toString())}}const Mg=(e,t,n)=>{let s;t?s=["Technical FTE","Non-technical FTE"]:s=["Permanent FTE","Subcontracted FTE"];const i={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},[r,o]=s,[a,l]=[i[r],i[o]];function c(g){const x=g[a],y=g[l],v=x+y,_=(x/v||0)*100,w=(y/v||0)*100,N={};return N[r]=Math.round(Math.floor(_*100))/100,N[o]=Math.round(Math.floor(w*100))/100,N}const d=Ve(e),h=[n].sort(),u=[...new Set(e.map(g=>g.nren))].sort((g,x)=>g.localeCompare(x));return{datasets:Lr.cartesianProduct(s,h).map(function([g,x]){let y="";return g==="Technical FTE"?y="rgba(40, 40, 250, 0.8)":g==="Permanent FTE"?y="rgba(159, 129, 235, 1)":g==="Subcontracted FTE"?y="rgba(173, 216, 229, 1)":g==="Non-technical FTE"&&(y="rgba(116, 216, 242, 0.54)"),{backgroundColor:y,label:`${g} (${x})`,data:u.map(v=>{const _=d.get(v).get(x);return _?c(_)[g]:0}),stack:x,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}),labels:u}},Rg=(e,t)=>{const n=["Research & Education","Commodity"],s={"Research & Education":"r_and_e_percentage",Commodity:"commodity_percentage"},i=Ve(e),r=[t].sort(),o=[...new Set(e.map(d=>d.nren))].sort((d,h)=>d.localeCompare(h));return{datasets:Lr.cartesianProduct(n,r).map(function([d,h]){let u="";return d==="Research & Education"?u="rgba(40, 40, 250, 0.8)":d==="Commodity"&&(u="rgba(116, 216, 242, 0.54)"),{backgroundColor:u,label:`${d} (${h})`,data:o.map(p=>{const b=i.get(p).get(h);return b?b[s[d]]:0}),stack:h,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}),labels:o}},Pg=(e,t)=>{const n=["Permanent FTE","Subcontracted FTE"],s={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},[i,r]=n,[o,a]=[s[i],s[r]],l=Ve(e),c=[...new Set(e.map(p=>p.nren))].sort((p,b)=>p.localeCompare(b));function d(p,b){return{backgroundColor:"rgba(219, 42, 76, 1)",label:`Number of FTEs (${p})`,data:c.map(g=>{const x=l.get(g).get(p);return x?(x[o]??0)+(x[a]??0):0}),stack:`${p}`,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(g,x){return x.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(g){return g.chart.chartArea.width}}}}return{datasets:t.sort().map(d),labels:c}},Si=(e,t,n)=>{const s=Ve(e),i=[...new Set(e.map(l=>l.nren))].sort((l,c)=>l.localeCompare(c)),r=[...new Set(e.map(l=>l.year))].sort();function o(l,c){return{backgroundColor:"rgba(219, 42, 76, 1)",label:`${n} (${l})`,data:i.map(h=>{const u=s.get(h).get(l);return u?u[t]??0:0}),stack:`${l}`,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(h,u){return u.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(h){return h.chart.chartArea.width}}}}return{datasets:r.sort().map(o),labels:i}},Tg=()=>{const e=A.c(13);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=f.jsx("h5",{children:"Organisation"}),n=f.jsx("h6",{className:"section-title",children:"Budget, Income and Billing"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx(F,{to:"/budget",children:f.jsx("span",{children:"Budget of NRENs per Year"})}),e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=f.jsx(F,{to:"/funding",children:f.jsx("span",{children:"Income Source of NRENs"})}),e[3]=i):i=e[3];let r,o,a;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx(F,{to:"/charging",children:f.jsx("span",{children:"Charging Mechanism of NRENs"})}),o=f.jsx("hr",{className:"fake-divider"}),a=f.jsx("h6",{className:"section-title",children:"Staff and Projects"}),e[4]=r,e[5]=o,e[6]=a):(r=e[4],o=e[5],a=e[6]);let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=f.jsx(F,{to:"/employee-count",children:f.jsx("span",{children:"Number of NREN Employees"})}),e[7]=l):l=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=f.jsx(F,{to:"/roles",children:f.jsx("span",{children:"Roles of NREN employees (Technical v. Non-Technical)"})}),e[8]=c):c=e[8];let d;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=f.jsx(F,{to:"/employment",children:f.jsx("span",{children:"Types of Employment within NRENs"})}),e[9]=d):d=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=f.jsx(F,{to:"/suborganisations",children:f.jsx("span",{children:"NREN Sub-Organisations"})}),e[10]=h):h=e[10];let u;e[11]===Symbol.for("react.memo_cache_sentinel")?(u=f.jsx(F,{to:"/parentorganisation",children:f.jsx("span",{children:"NREN Parent Organisations"})}),e[11]=u):u=e[11];let p;return e[12]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsxs(ls,{children:[t,n,s,i,r,o,a,l,c,d,h,u,f.jsx(F,{to:"/ec-projects",children:f.jsx("span",{children:"NREN Involvement in European Commission Projects"})})]}),e[12]=p):p=e[12],p},Og=e=>{const t=A.c(41),{activeCategory:n}=e,s=ad();let i;t[0]!==n||t[1]!==s?(i=()=>s(n===L.Organisation?".":"/funding"),t[0]=n,t[1]=s,t[2]=i):i=t[2];const r=n===L.Organisation;let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=f.jsx("span",{children:L.Organisation}),t[3]=o):o=t[3];let a;t[4]!==i||t[5]!==r?(a=f.jsx(xt,{onClick:i,variant:"nav-box",active:r,children:o}),t[4]=i,t[5]=r,t[6]=a):a=t[6];let l;t[7]!==n||t[8]!==s?(l=()=>s(n===L.Policy?".":"/policy"),t[7]=n,t[8]=s,t[9]=l):l=t[9];const c=n===L.Policy;let d;t[10]===Symbol.for("react.memo_cache_sentinel")?(d=f.jsx("span",{children:L.Policy}),t[10]=d):d=t[10];let h;t[11]!==l||t[12]!==c?(h=f.jsx(xt,{onClick:l,variant:"nav-box",active:c,children:d}),t[11]=l,t[12]=c,t[13]=h):h=t[13];let u;t[14]!==n||t[15]!==s?(u=()=>s(n===L.ConnectedUsers?".":"/institutions-urls"),t[14]=n,t[15]=s,t[16]=u):u=t[16];const p=n===L.ConnectedUsers;let b;t[17]===Symbol.for("react.memo_cache_sentinel")?(b=f.jsx("span",{children:L.ConnectedUsers}),t[17]=b):b=t[17];let m;t[18]!==p||t[19]!==u?(m=f.jsx(xt,{onClick:u,variant:"nav-box",active:p,children:b}),t[18]=p,t[19]=u,t[20]=m):m=t[20];let g;t[21]!==n||t[22]!==s?(g=()=>s(n===L.Network?".":"/traffic-volume"),t[21]=n,t[22]=s,t[23]=g):g=t[23];const x=n===L.Network;let y;t[24]===Symbol.for("react.memo_cache_sentinel")?(y=f.jsx("span",{children:L.Network}),t[24]=y):y=t[24];let v;t[25]!==g||t[26]!==x?(v=f.jsx(xt,{onClick:g,variant:"nav-box",active:x,children:y}),t[25]=g,t[26]=x,t[27]=v):v=t[27];let _;t[28]!==n||t[29]!==s?(_=()=>s(n===L.Services?".":"/network-services"),t[28]=n,t[29]=s,t[30]=_):_=t[30];const w=n===L.Services;let N;t[31]===Symbol.for("react.memo_cache_sentinel")?(N=f.jsx("span",{children:L.Services}),t[31]=N):N=t[31];let S;t[32]!==_||t[33]!==w?(S=f.jsx(xt,{onClick:_,variant:"nav-box",active:w,children:N}),t[32]=_,t[33]=w,t[34]=S):S=t[34];let k;return t[35]!==m||t[36]!==v||t[37]!==S||t[38]!==a||t[39]!==h?(k=f.jsx(fn,{children:f.jsx(we,{children:f.jsxs(ar,{className:"navbox-bar gap-2 m-3",children:[a,h,m,v,S]})})}),t[35]=m,t[36]=v,t[37]=S,t[38]=a,t[39]=h,t[40]=k):k=t[40],k},Dg=()=>{const e=A.c(13);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=f.jsx("h5",{children:"Standards and Policies"}),e[0]=t):t=e[0];let n,s;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=f.jsx(F,{to:"/policy",children:f.jsx("span",{children:"NREN Policies"})}),s=f.jsx("h6",{className:"section-title",children:"Standards"}),e[1]=n,e[2]=s):(n=e[1],s=e[2]);let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=f.jsx(F,{to:"/audits",children:f.jsx("span",{children:"External and Internal Audits of Information Security Management Systems"})}),e[3]=i):i=e[3];let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx(F,{to:"/business-continuity",children:f.jsx("span",{children:"NREN Business Continuity Planning"})}),e[4]=r):r=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=f.jsx(F,{to:"/central-procurement",children:f.jsx("span",{children:"Central Procurement of Software"})}),e[5]=o):o=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=f.jsx(F,{to:"/crisis-management",children:f.jsx("span",{children:"Crisis Management Procedures"})}),e[6]=a):a=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=f.jsx(F,{to:"/crisis-exercise",children:f.jsx("span",{children:"Crisis Exercises - NREN Operation and Participation"})}),e[7]=l):l=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=f.jsx(F,{to:"/security-control",children:f.jsx("span",{children:"Security Controls Used by NRENs"})}),e[8]=c):c=e[8];let d;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=f.jsx(F,{to:"/services-offered",children:f.jsx("span",{children:"Services Offered by NRENs by Types of Users"})}),e[9]=d):d=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=f.jsx(F,{to:"/corporate-strategy",children:f.jsx("span",{children:"NREN Corporate Strategies "})}),e[10]=h):h=e[10];let u;e[11]===Symbol.for("react.memo_cache_sentinel")?(u=f.jsx(F,{to:"/service-level-targets",children:f.jsx("span",{children:"NRENs Offering Service Level Targets"})}),e[11]=u):u=e[11];let p;return e[12]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsxs(ls,{children:[t,n,s,i,r,o,a,l,c,d,h,u,f.jsx(F,{to:"/service-management-framework",children:f.jsx("span",{children:"NRENs Operating a Formal Service Management Framework"})})]}),e[12]=p):p=e[12],p},Ag=()=>{const e=A.c(34);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=f.jsx("h5",{children:"Network"}),n=f.jsx("h6",{className:"section-title",children:"Connectivity"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx(F,{to:"/traffic-volume",children:f.jsx("span",{children:"NREN Traffic - NREN Customers & External Networks"})}),e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=f.jsx(F,{to:"/iru-duration",children:f.jsx("span",{children:"Average Duration of IRU leases of Fibre by NRENs"})}),e[3]=i):i=e[3];let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx(F,{to:"/fibre-light",children:f.jsx("span",{children:"Approaches to lighting NREN fibre networks"})}),e[4]=r):r=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=f.jsx(F,{to:"/dark-fibre-lease",children:f.jsx("span",{children:"Kilometres of Leased Dark Fibre (National)"})}),e[5]=o):o=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=f.jsx(F,{to:"/dark-fibre-lease-international",children:f.jsx("span",{children:"Kilometres of Leased Dark Fibre (International)"})}),e[6]=a):a=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=f.jsx(F,{to:"/dark-fibre-installed",children:f.jsx("span",{children:"Kilometres of Installed Dark Fibre"})}),e[7]=l):l=e[7];let c,d,h;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=f.jsx(F,{to:"/network-map",children:f.jsx("span",{children:"NREN Network Maps"})}),h=f.jsx("hr",{className:"fake-divider"}),c=f.jsx("h6",{className:"section-title",children:"Performance Monitoring & Management"}),e[8]=c,e[9]=d,e[10]=h):(c=e[8],d=e[9],h=e[10]);let u;e[11]===Symbol.for("react.memo_cache_sentinel")?(u=f.jsx(F,{to:"/monitoring-tools",children:f.jsx("span",{children:"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions"})}),e[11]=u):u=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsx(F,{to:"/pert-team",children:f.jsx("span",{children:"NRENs with Performance Enhancement Response Teams"})}),e[12]=p):p=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=f.jsx(F,{to:"/passive-monitoring",children:f.jsx("span",{children:"Methods for Passively Monitoring International Traffic"})}),e[13]=b):b=e[13];let m;e[14]===Symbol.for("react.memo_cache_sentinel")?(m=f.jsx(F,{to:"/traffic-stats",children:f.jsx("span",{children:"Traffic Statistics  "})}),e[14]=m):m=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=f.jsx(F,{to:"/weather-map",children:f.jsx("span",{children:"NREN Online Network Weather Maps "})}),e[15]=g):g=e[15];let x;e[16]===Symbol.for("react.memo_cache_sentinel")?(x=f.jsx(F,{to:"/certificate-providers",children:f.jsx("span",{children:"Certification Services used by NRENs"})}),e[16]=x):x=e[16];let y,v,_;e[17]===Symbol.for("react.memo_cache_sentinel")?(y=f.jsx(F,{to:"/siem-vendors",children:f.jsx("span",{children:"Vendors of SIEM/SOC systems used by NRENs"})}),v=f.jsx("hr",{className:"fake-divider"}),_=f.jsx("h6",{className:"section-title",children:"Alienwave"}),e[17]=y,e[18]=v,e[19]=_):(y=e[17],v=e[18],_=e[19]);let w;e[20]===Symbol.for("react.memo_cache_sentinel")?(w=f.jsx(F,{to:"/alien-wave",children:f.jsx("span",{children:"NREN Use of 3rd Party Alienwave/Lightpath Services"})}),e[20]=w):w=e[20];let N,S,k;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=f.jsx(F,{to:"/alien-wave-internal",children:f.jsx("span",{children:"Internal NREN Use of Alien Waves"})}),S=f.jsx("hr",{className:"fake-divider"}),k=f.jsx("h6",{className:"section-title",children:"Capacity"}),e[21]=N,e[22]=S,e[23]=k):(N=e[21],S=e[22],k=e[23]);let j;e[24]===Symbol.for("react.memo_cache_sentinel")?(j=f.jsx(F,{to:"/capacity-largest-link",children:f.jsx("span",{children:"Capacity of the Largest Link in an NREN Network"})}),e[24]=j):j=e[24];let C;e[25]===Symbol.for("react.memo_cache_sentinel")?(C=f.jsx(F,{to:"/external-connections",children:f.jsx("span",{children:"NREN External IP Connections"})}),e[25]=C):C=e[25];let E;e[26]===Symbol.for("react.memo_cache_sentinel")?(E=f.jsx(F,{to:"/capacity-core-ip",children:f.jsx("span",{children:"NREN Core IP Capacity"})}),e[26]=E):E=e[26];let M;e[27]===Symbol.for("react.memo_cache_sentinel")?(M=f.jsx(F,{to:"/non-rne-peers",children:f.jsx("span",{children:"Number of Non-R&E Networks NRENs Peer With"})}),e[27]=M):M=e[27];let P,T,O;e[28]===Symbol.for("react.memo_cache_sentinel")?(P=f.jsx(F,{to:"/traffic-ratio",children:f.jsx("span",{children:"Types of traffic in NREN networks"})}),T=f.jsx("hr",{className:"fake-divider"}),O=f.jsx("h6",{className:"section-title",children:"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"}),e[28]=P,e[29]=T,e[30]=O):(P=e[28],T=e[29],O=e[30]);let D;e[31]===Symbol.for("react.memo_cache_sentinel")?(D=f.jsx(F,{to:"/ops-automation",children:f.jsx("span",{children:"NREN Automation of Operational Processes"})}),e[31]=D):D=e[31];let I;e[32]===Symbol.for("react.memo_cache_sentinel")?(I=f.jsx(F,{to:"/network-automation",children:f.jsx("span",{children:"Network Tasks for which NRENs Use Automation  "})}),e[32]=I):I=e[32];let V;return e[33]===Symbol.for("react.memo_cache_sentinel")?(V=f.jsxs(ls,{children:[t,n,s,i,r,o,a,l,d,h,c,u,p,b,m,g,x,y,v,_,w,N,S,k,j,C,E,M,P,T,O,D,I,f.jsx(F,{to:"/nfv",children:f.jsx("span",{children:"Kinds of Network Function Virtualisation used by NRENs"})})]}),e[33]=V):V=e[33],V},Lg=()=>{const e=A.c(11);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=f.jsx("h6",{className:"section-title",children:"Connected Users"}),e[0]=t):t=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=f.jsx(F,{to:"/institutions-urls",children:f.jsx("span",{children:"Webpages Listing Institutions and Organisations Connected to NREN Networks"})}),e[1]=n):n=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx(F,{to:"/connected-proportion",children:f.jsx("span",{children:"Proportion of Different Categories of Institutions Served by NRENs"})}),e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=f.jsx(F,{to:"/connectivity-level",children:f.jsx("span",{children:"Level of IP Connectivity by Institution Type"})}),e[3]=i):i=e[3];let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx(F,{to:"/connection-carrier",children:f.jsx("span",{children:"Methods of Carrying IP Traffic to Users"})}),e[4]=r):r=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=f.jsx(F,{to:"/connectivity-load",children:f.jsx("span",{children:"Connectivity Load"})}),e[5]=o):o=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=f.jsx(F,{to:"/connectivity-growth",children:f.jsx("span",{children:"Connectivity Growth"})}),e[6]=a):a=e[6];let l,c;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=f.jsx(F,{to:"/remote-campuses",children:f.jsx("span",{children:"NREN Connectivity to Remote Campuses in Other Countries"})}),c=f.jsx("h6",{className:"section-title",children:"Connected Users - Commercial"}),e[7]=l,e[8]=c):(l=e[7],c=e[8]);let d;e[9]===Symbol.for("react.memo_cache_sentinel")?(d=f.jsx(F,{to:"/commercial-charging-level",children:f.jsx("span",{children:"Commercial Charging Level"})}),e[9]=d):d=e[9];let h;return e[10]===Symbol.for("react.memo_cache_sentinel")?(h=f.jsxs(ls,{children:[t,n,s,i,r,o,a,l,c,d,f.jsx(F,{to:"/commercial-connectivity",children:f.jsx("span",{children:"Commercial Connectivity"})})]}),e[10]=h):h=e[10],h},Ig=()=>{const e=A.c(9);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=f.jsx("h5",{children:"Services"}),e[0]=t):t=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=f.jsx(F,{to:"/network-services",children:f.jsx("span",{children:"Network services"})}),e[1]=n):n=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx(F,{to:"/isp-support-services",children:f.jsx("span",{children:"ISP support services"})}),e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=f.jsx(F,{to:"/security-services",children:f.jsx("span",{children:"Security services"})}),e[3]=i):i=e[3];let r;e[4]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx(F,{to:"/identity-services",children:f.jsx("span",{children:"Identity services"})}),e[4]=r):r=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=f.jsx(F,{to:"/collaboration-services",children:f.jsx("span",{children:"Collaboration services"})}),e[5]=o):o=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=f.jsx(F,{to:"/multimedia-services",children:f.jsx("span",{children:"Multimedia services"})}),e[6]=a):a=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=f.jsx(F,{to:"/storage-and-hosting-services",children:f.jsx("span",{children:"Storage and hosting services"})}),e[7]=l):l=e[7];let c;return e[8]===Symbol.for("react.memo_cache_sentinel")?(c=f.jsxs(ls,{children:[t,n,s,i,r,o,a,l,f.jsx(F,{to:"/professional-services",children:f.jsx("span",{children:"Professional services"})})]}),e[8]=c):c=e[8],c};function $g(e,t){return e.map(n=>t.map(s=>{const i=n[s];return i===null?"":typeof i=="string"?`"${i.replace(/"/g,'""')}"`:i}).join(","))}function Fg(e){if(!e.length)return"";const t=Object.keys(e[0]),n=$g(e,t);return[t.join(","),...n].join(`\r
-`)}function Yg(e,t="Sheet1"){const n=ji.json_to_sheet(e),s=ji.book_new();ji.book_append_sheet(s,n,t);const i=ld(s,{bookType:"xlsx",type:"binary"}),r=new ArrayBuffer(i.length),o=new Uint8Array(r);for(let a=0;a<i.length;a++)o[a]=i.charCodeAt(a)&255;return new Blob([r],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})}const wa=({data:e,filename:t,exportType:n})=>{const s=()=>{let r,o,a;switch(n){case on.EXCEL:{r=Yg(e),o="xlsx",a="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8";break}case on.CSV:default:{r=Fg(e),o="csv",a="text/csv;charset=UTF-8";break}}const l=new Blob([r],{type:a});t=t.endsWith(o)?t:`${t}.${o}`;const c=document.createElement("a");c.href=URL.createObjectURL(l),c.download=t,document.body.appendChild(c),c.click(),document.body.removeChild(c)};let i="downloadbutton";return n===on.CSV?i+=" downloadcsv":n===on.EXCEL&&(i+=" downloadexcel"),f.jsxs("button",{className:i,onClick:s,children:[n," ",f.jsx(za,{})]})};function Bg(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),s=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(s),n.body.appendChild(i),t&&(s.href=t),i.href=e,i.href}const zg=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function wt(e){const t=[];for(let n=0,s=e.length;n<s;n++)t.push(e[n]);return t}function xi(e,t){const s=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return s?parseFloat(s.replace("px","")):0}function Wg(e){const t=xi(e,"border-left-width"),n=xi(e,"border-right-width");return e.clientWidth+t+n}function Vg(e){const t=xi(e,"border-top-width"),n=xi(e,"border-bottom-width");return e.clientHeight+t+n}function Sc(e,t={}){const n=t.width||Wg(e),s=t.height||Vg(e);return{width:n,height:s}}function Hg(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const Ye=16384;function Ug(e){(e.width>Ye||e.height>Ye)&&(e.width>Ye&&e.height>Ye?e.width>e.height?(e.height*=Ye/e.width,e.width=Ye):(e.width*=Ye/e.height,e.height=Ye):e.width>Ye?(e.height*=Ye/e.width,e.width=Ye):(e.width*=Ye/e.height,e.height=Ye))}function yi(e){return new Promise((t,n)=>{const s=new Image;s.decode=()=>t(s),s.onload=()=>t(s),s.onerror=n,s.crossOrigin="anonymous",s.decoding="async",s.src=e})}async function Gg(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function Xg(e,t,n){const s="http://www.w3.org/2000/svg",i=document.createElementNS(s,"svg"),r=document.createElementNS(s,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("x","0"),r.setAttribute("y","0"),r.setAttribute("externalResourcesRequired","true"),i.appendChild(r),r.appendChild(e),Gg(i)}const Ie=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||Ie(n,t)};function qg(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Kg(e){return wt(e).map(t=>{const n=e.getPropertyValue(t),s=e.getPropertyPriority(t);return`${t}: ${n}${s?" !important":""};`}).join(" ")}function Jg(e,t,n){const s=`.${e}:${t}`,i=n.cssText?qg(n):Kg(n);return document.createTextNode(`${s}{${i}}`)}function Na(e,t,n){const s=window.getComputedStyle(e,n),i=s.getPropertyValue("content");if(i===""||i==="none")return;const r=zg();try{t.className=`${t.className} ${r}`}catch{return}const o=document.createElement("style");o.appendChild(Jg(r,n,s)),t.appendChild(o)}function Zg(e,t){Na(e,t,":before"),Na(e,t,":after")}const Sa="application/font-woff",ka="image/jpeg",Qg={woff:Sa,woff2:Sa,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:ka,jpeg:ka,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function eb(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function $r(e){const t=eb(e).toLowerCase();return Qg[t]||""}function tb(e){return e.split(/,/)[1]}function ir(e){return e.search(/^(data:)/)!==-1}function nb(e,t){return`data:${t};base64,${e}`}async function kc(e,t,n){const s=await fetch(e,t);if(s.status===404)throw new Error(`Resource "${s.url}" not found`);const i=await s.blob();return new Promise((r,o)=>{const a=new FileReader;a.onerror=o,a.onloadend=()=>{try{r(n({res:s,result:a.result}))}catch(l){o(l)}},a.readAsDataURL(i)})}const Wi={};function sb(e,t,n){let s=e.replace(/\?.*/,"");return n&&(s=e),/ttf|otf|eot|woff2?/i.test(s)&&(s=s.replace(/.*\//,"")),t?`[${t}]${s}`:s}async function Fr(e,t,n){const s=sb(e,t,n.includeQueryParams);if(Wi[s]!=null)return Wi[s];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const r=await kc(e,n.fetchRequestInit,({res:o,result:a})=>(t||(t=o.headers.get("Content-Type")||""),tb(a)));i=nb(r,t)}catch(r){i=n.imagePlaceholder||"";let o=`Failed to fetch resource: ${e}`;r&&(o=typeof r=="string"?r:r.message),o&&console.warn(o)}return Wi[s]=i,i}async function ib(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):yi(t)}async function rb(e,t){if(e.currentSrc){const r=document.createElement("canvas"),o=r.getContext("2d");r.width=e.clientWidth,r.height=e.clientHeight,o==null||o.drawImage(e,0,0,r.width,r.height);const a=r.toDataURL();return yi(a)}const n=e.poster,s=$r(n),i=await Fr(n,s,t);return yi(i)}async function ob(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await ki(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function ab(e,t){return Ie(e,HTMLCanvasElement)?ib(e):Ie(e,HTMLVideoElement)?rb(e,t):Ie(e,HTMLIFrameElement)?ob(e):e.cloneNode(!1)}const lb=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function cb(e,t,n){var s,i;let r=[];return lb(e)&&e.assignedNodes?r=wt(e.assignedNodes()):Ie(e,HTMLIFrameElement)&&(!((s=e.contentDocument)===null||s===void 0)&&s.body)?r=wt(e.contentDocument.body.childNodes):r=wt(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),r.length===0||Ie(e,HTMLVideoElement)||await r.reduce((o,a)=>o.then(()=>ki(a,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function db(e,t){const n=t.style;if(!n)return;const s=window.getComputedStyle(e);s.cssText?(n.cssText=s.cssText,n.transformOrigin=s.transformOrigin):wt(s).forEach(i=>{let r=s.getPropertyValue(i);i==="font-size"&&r.endsWith("px")&&(r=`${Math.floor(parseFloat(r.substring(0,r.length-2)))-.1}px`),Ie(e,HTMLIFrameElement)&&i==="display"&&r==="inline"&&(r="block"),i==="d"&&t.getAttribute("d")&&(r=`path(${t.getAttribute("d")})`),n.setProperty(i,r,s.getPropertyPriority(i))})}function fb(e,t){Ie(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),Ie(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function hb(e,t){if(Ie(e,HTMLSelectElement)){const n=t,s=Array.from(n.children).find(i=>e.value===i.getAttribute("value"));s&&s.setAttribute("selected","")}}function ub(e,t){return Ie(t,Element)&&(db(e,t),Zg(e,t),fb(e,t),hb(e,t)),t}async function pb(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const s={};for(let r=0;r<n.length;r++){const a=n[r].getAttribute("xlink:href");if(a){const l=e.querySelector(a),c=document.querySelector(a);!l&&c&&!s[a]&&(s[a]=await ki(c,t,!0))}}const i=Object.values(s);if(i.length){const r="http://www.w3.org/1999/xhtml",o=document.createElementNS(r,"svg");o.setAttribute("xmlns",r),o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.overflow="hidden",o.style.display="none";const a=document.createElementNS(r,"defs");o.appendChild(a);for(let l=0;l<i.length;l++)a.appendChild(i[l]);e.appendChild(o)}return e}async function ki(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(s=>ab(s,t)).then(s=>cb(e,s,t)).then(s=>ub(e,s)).then(s=>pb(s,t))}const jc=/url\((['"]?)([^'"]+?)\1\)/g,mb=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,gb=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function bb(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function xb(e){const t=[];return e.replace(jc,(n,s,i)=>(t.push(i),n)),t.filter(n=>!ir(n))}async function yb(e,t,n,s,i){try{const r=n?Bg(t,n):t,o=$r(t);let a;return i||(a=await Fr(r,o,s)),e.replace(bb(t),`$1${a}$3`)}catch{}return e}function vb(e,{preferredFontFormat:t}){return t?e.replace(gb,n=>{for(;;){const[s,,i]=mb.exec(n)||[];if(!i)return"";if(i===t)return`src: ${s};`}}):e}function Cc(e){return e.search(jc)!==-1}async function Ec(e,t,n){if(!Cc(e))return e;const s=vb(e,n);return xb(s).reduce((r,o)=>r.then(a=>yb(a,o,t,n)),Promise.resolve(s))}async function Js(e,t,n){var s;const i=(s=t.style)===null||s===void 0?void 0:s.getPropertyValue(e);if(i){const r=await Ec(i,null,n);return t.style.setProperty(e,r,t.style.getPropertyPriority(e)),!0}return!1}async function _b(e,t){await Js("background",e,t)||await Js("background-image",e,t),await Js("mask",e,t)||await Js("mask-image",e,t)}async function wb(e,t){const n=Ie(e,HTMLImageElement);if(!(n&&!ir(e.src))&&!(Ie(e,SVGImageElement)&&!ir(e.href.baseVal)))return;const s=n?e.src:e.href.baseVal,i=await Fr(s,$r(s),t);await new Promise((r,o)=>{e.onload=r,e.onerror=o;const a=e;a.decode&&(a.decode=r),a.loading==="lazy"&&(a.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function Nb(e,t){const s=wt(e.childNodes).map(i=>Mc(i,t));await Promise.all(s).then(()=>e)}async function Mc(e,t){Ie(e,Element)&&(await _b(e,t),await wb(e,t),await Nb(e,t))}function Sb(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const s=t.style;return s!=null&&Object.keys(s).forEach(i=>{n[i]=s[i]}),e}const ja={};async function Ca(e){let t=ja[e];if(t!=null)return t;const s=await(await fetch(e)).text();return t={url:e,cssText:s},ja[e]=t,t}async function Ea(e,t){let n=e.cssText;const s=/url\(["']?([^"')]+)["']?\)/g,r=(n.match(/url\([^)]+\)/g)||[]).map(async o=>{let a=o.replace(s,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),kc(a,t.fetchRequestInit,({result:l})=>(n=n.replace(o,`url(${l})`),[o,l]))});return Promise.all(r).then(()=>n)}function Ma(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let s=e.replace(n,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=i.exec(s);if(l===null)break;t.push(l[0])}s=s.replace(i,"");const r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",a=new RegExp(o,"gi");for(;;){let l=r.exec(s);if(l===null){if(l=a.exec(s),l===null)break;r.lastIndex=a.lastIndex}else a.lastIndex=r.lastIndex;t.push(l[0])}return t}async function kb(e,t){const n=[],s=[];return e.forEach(i=>{if("cssRules"in i)try{wt(i.cssRules||[]).forEach((r,o)=>{if(r.type===CSSRule.IMPORT_RULE){let a=o+1;const l=r.href,c=Ca(l).then(d=>Ea(d,t)).then(d=>Ma(d).forEach(h=>{try{i.insertRule(h,h.startsWith("@import")?a+=1:i.cssRules.length)}catch(u){console.error("Error inserting rule from remote css",{rule:h,error:u})}})).catch(d=>{console.error("Error loading remote css",d.toString())});s.push(c)}})}catch(r){const o=e.find(a=>a.href==null)||document.styleSheets[0];i.href!=null&&s.push(Ca(i.href).then(a=>Ea(a,t)).then(a=>Ma(a).forEach(l=>{o.insertRule(l,i.cssRules.length)})).catch(a=>{console.error("Error loading remote stylesheet",a)})),console.error("Error inlining remote css file",r)}}),Promise.all(s).then(()=>(e.forEach(i=>{if("cssRules"in i)try{wt(i.cssRules||[]).forEach(r=>{n.push(r)})}catch(r){console.error(`Error while reading CSS rules from ${i.href}`,r)}}),n))}function jb(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Cc(t.style.getPropertyValue("src")))}async function Cb(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=wt(e.ownerDocument.styleSheets),s=await kb(n,t);return jb(s)}async function Eb(e,t){const n=await Cb(e,t);return(await Promise.all(n.map(i=>{const r=i.parentStyleSheet?i.parentStyleSheet.href:null;return Ec(i.cssText,r,t)}))).join(`
-`)}async function Mb(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await Eb(e,t);if(n){const s=document.createElement("style"),i=document.createTextNode(n);s.appendChild(i),e.firstChild?e.insertBefore(s,e.firstChild):e.appendChild(s)}}async function Rc(e,t={}){const{width:n,height:s}=Sc(e,t),i=await ki(e,t,!0);return await Mb(i,t),await Mc(i,t),Sb(i,t),await Xg(i,n,s)}async function Pc(e,t={}){const{width:n,height:s}=Sc(e,t),i=await Rc(e,t),r=await yi(i),o=document.createElement("canvas"),a=o.getContext("2d"),l=t.pixelRatio||Hg(),c=t.canvasWidth||n,d=t.canvasHeight||s;return o.width=c*l,o.height=d*l,t.skipAutoScale||Ug(o),o.style.width=`${c}`,o.style.height=`${d}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,o.width,o.height)),a.drawImage(r,0,0,o.width,o.height),o}async function Rb(e,t={}){return(await Pc(e,t)).toDataURL()}async function Pb(e,t={}){return(await Pc(e,t)).toDataURL("image/jpeg",t.quality||1)}const Tb=e=>{const t=A.c(17),{filename:n}=e,s=R.useContext(Wa),[i,r]=R.useState(!1),o=R.useRef(null);let a;t[0]!==s||t[1]!==n?(a=async v=>{if(s!=null&&s.current){r(!1);const _={transform:"scale(1)","transform-origin":"top left",background:"white"};let w;e:switch(v){case tn.JPEG:{w=await Pb(s.current,{quality:.95,style:_});break e}case tn.SVG:{w=await Rc(s.current,{style:_});break e}case tn.PNG:default:w=await Rb(s.current,{style:_})}const N=document.createElement("a");N.href=typeof w=="string"?w:URL.createObjectURL(w),N.download=`${n}.${v}`,document.body.appendChild(N),N.click(),document.body.removeChild(N)}},t[0]=s,t[1]=n,t[2]=a):a=t[2];const l=a;let c;t[3]!==i?(c=()=>{r(!i)},t[3]=i,t[4]=c):c=t[4];const d=c;let h;t[5]===Symbol.for("react.memo_cache_sentinel")?(h=v=>{o.current&&!o.current.contains(v.target)&&r(!1)},t[5]=h):h=t[5];const u=h;let p,b;t[6]===Symbol.for("react.memo_cache_sentinel")?(p=()=>(document.addEventListener("mousedown",u),()=>{document.removeEventListener("mousedown",u)}),b=[],t[6]=p,t[7]=b):(p=t[6],b=t[7]),R.useEffect(p,b);let m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m=f.jsx(za,{}),t[8]=m):m=t[8];let g;t[9]!==d?(g=f.jsxs("button",{className:"downloadbutton downloadimage",onClick:d,children:["IMAGE ",m]}),t[9]=d,t[10]=g):g=t[10];let x;t[11]!==l||t[12]!==i?(x=i&&f.jsxs("div",{className:"image-options",children:[f.jsx("div",{className:"imageoption downloadpng",onClick:()=>l(tn.PNG),children:f.jsx("span",{children:"PNG"})}),f.jsx("div",{className:"imageoption downloadjpeg",onClick:()=>l(tn.JPEG),children:f.jsx("span",{children:"JPEG"})}),f.jsx("div",{className:"imageoption downloadsvg",onClick:()=>l(tn.SVG),children:f.jsx("span",{children:"SVG"})})]}),t[11]=l,t[12]=i,t[13]=x):x=t[13];let y;return t[14]!==g||t[15]!==x?(y=f.jsxs("div",{className:"image-dropdown",ref:o,children:[g,x]}),t[14]=g,t[15]=x,t[16]=y):y=t[16],y},Ob=e=>{const t=A.c(12),{data:n,filename:s}=e,i=`${s}.csv`;let r;t[0]!==n||t[1]!==i?(r=f.jsx(wa,{data:n,filename:i,exportType:on.CSV}),t[0]=n,t[1]=i,t[2]=r):r=t[2];const o=`${s}.xlsx`;let a;t[3]!==n||t[4]!==o?(a=f.jsx(wa,{data:n,filename:o,exportType:on.EXCEL}),t[3]=n,t[4]=o,t[5]=a):a=t[5];let l;t[6]!==s?(l=f.jsx(Tb,{filename:s}),t[6]=s,t[7]=l):l=t[7];let c;return t[8]!==r||t[9]!==a||t[10]!==l?(c=f.jsxs("div",{className:"downloadcontainer",children:[r,a,l]}),t[8]=r,t[9]=a,t[10]=l,t[11]=c):c=t[11],c};ie.defaults.font.size=16;ie.defaults.font.family="Open Sans";ie.defaults.font.weight=700;function q(e){const t=A.c(47),{title:n,description:s,filter:i,children:r,category:o,data:a,filename:l}=e,{preview:c,setPreview:d}=R.useContext(Ba),h=window.location.origin+window.location.pathname,{trackPageView:u}=or();let p,b;t[0]!==n||t[1]!==u?(p=()=>{u({documentTitle:n})},b=[u,n],t[0]=n,t[1]=u,t[2]=p,t[3]=b):(p=t[2],b=t[3]),R.useEffect(p,b);let m;t[4]!==o?(m=o===L.Organisation&&f.jsx(Tg,{}),t[4]=o,t[5]=m):m=t[5];let g;t[6]!==o?(g=o===L.Policy&&f.jsx(Dg,{}),t[6]=o,t[7]=g):g=t[7];let x;t[8]!==o?(x=o===L.Network&&f.jsx(Ag,{}),t[8]=o,t[9]=x):x=t[9];let y;t[10]!==o?(y=o===L.ConnectedUsers&&f.jsx(Lg,{}),t[10]=o,t[11]=y):y=t[11];let v;t[12]!==o?(v=o===L.Services&&f.jsx(Ig,{}),t[12]=o,t[13]=v):v=t[13];let _;t[14]===Symbol.for("react.memo_cache_sentinel")?(_=f.jsx(Tl,{type:"data"}),t[14]=_):_=t[14];let w;t[15]!==c||t[16]!==d?(w=c&&f.jsx(we,{className:"preview-banner",children:f.jsxs("span",{children:["You are viewing a preview of the website which includes pre-published survey data. ",f.jsx($,{to:h,onClick:()=>d(!1),children:"Click here"})," to deactivate preview mode."]})}),t[15]=c,t[16]=d,t[17]=w):w=t[17];let N;t[18]!==o?(N=f.jsx(Og,{activeCategory:o}),t[18]=o,t[19]=N):N=t[19];let S;t[20]!==n?(S=f.jsx(we,{children:f.jsx("h3",{className:"m-1",children:n})}),t[20]=n,t[21]=S):S=t[21];let k;t[22]!==s?(k=f.jsx(we,{children:f.jsx("p",{className:"p-md-4",children:s})}),t[22]=s,t[23]=k):k=t[23];let j;t[24]===Symbol.for("react.memo_cache_sentinel")?(j={position:"relative"},t[24]=j):j=t[24];let C;t[25]!==a||t[26]!==l?(C=f.jsx(we,{align:"right",style:j,children:f.jsx(Ob,{data:a,filename:l})}),t[25]=a,t[26]=l,t[27]=C):C=t[27];let E;t[28]!==i?(E=f.jsx(we,{children:i}),t[28]=i,t[29]=E):E=t[29];let M;t[30]!==r?(M=f.jsx(we,{children:r}),t[30]=r,t[31]=M):M=t[31];let P;t[32]!==S||t[33]!==k||t[34]!==C||t[35]!==E||t[36]!==M?(P=f.jsxs(fn,{className:"mb-5 grow",children:[S,k,C,E,M]}),t[32]=S,t[33]=k,t[34]=C,t[35]=E,t[36]=M,t[37]=P):P=t[37];let T;return t[38]!==N||t[39]!==P||t[40]!==m||t[41]!==g||t[42]!==x||t[43]!==y||t[44]!==v||t[45]!==w?(T=f.jsxs(f.Fragment,{children:[m,g,x,y,v,_,w,N,P]}),t[38]=N,t[39]=P,t[40]=m,t[41]=g,t[42]=x,t[43]=y,t[44]=v,t[45]=w,t[46]=T):T=t[46],T}function K(e){const t=A.c(81),{filterOptions:n,filterSelection:s,setFilterSelection:i,max1year:r,coloredYears:o}=e,a=r===void 0?!1:r,l=o===void 0?!1:o,[c,d]=R.useState(!0),{nrens:h}=R.useContext(cd);let u,p;if(t[0]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{const Y=()=>d(window.innerWidth>=992);return window.addEventListener("resize",Y),()=>{window.removeEventListener("resize",Y)}},p=[],t[0]=u,t[1]=p):(u=t[0],p=t[1]),R.useEffect(u,p),a&&s.selectedYears.length>1){const Y=Math.max(...s.selectedYears);i({selectedYears:[Y],selectedNrens:[...s.selectedNrens]})}let b;t[2]!==s.selectedNrens||t[3]!==s.selectedYears||t[4]!==i?(b=Y=>{s.selectedNrens.includes(Y)?i({selectedYears:[...s.selectedYears],selectedNrens:s.selectedNrens.filter(B=>B!==Y)}):i({selectedYears:[...s.selectedYears],selectedNrens:[...s.selectedNrens,Y]})},t[2]=s.selectedNrens,t[3]=s.selectedYears,t[4]=i,t[5]=b):b=t[5];const m=b;let g;t[6]!==s.selectedNrens||t[7]!==s.selectedYears||t[8]!==a||t[9]!==i?(g=Y=>{s.selectedYears.includes(Y)?i({selectedYears:s.selectedYears.filter(B=>B!==Y),selectedNrens:[...s.selectedNrens]}):i({selectedYears:a?[Y]:[...s.selectedYears,Y],selectedNrens:[...s.selectedNrens]})},t[6]=s.selectedNrens,t[7]=s.selectedYears,t[8]=a,t[9]=i,t[10]=g):g=t[10];const x=g;let y;t[11]!==n.availableNrens||t[12]!==s.selectedYears||t[13]!==i?(y=()=>{i({selectedYears:[...s.selectedYears],selectedNrens:n.availableNrens.map(Lb)})},t[11]=n.availableNrens,t[12]=s.selectedYears,t[13]=i,t[14]=y):y=t[14];const v=y;let _;t[15]!==s.selectedYears||t[16]!==i?(_=()=>{i({selectedYears:[...s.selectedYears],selectedNrens:[]})},t[15]=s.selectedYears,t[16]=i,t[17]=_):_=t[17];const w=_,N=c?3:2,S=Math.ceil(h.length/N);let k,j,C,E,M,P,T,O,D,I;if(t[18]!==n.availableNrens||t[19]!==s.selectedNrens||t[20]!==m||t[21]!==N||t[22]!==S||t[23]!==h){const Y=Array.from(Array(N),Ab);h.sort(Db).forEach((ue,me)=>{const de=Math.floor(me/S);Y[de].push(ue)});let B;t[34]!==n.availableNrens?(B=ue=>n.availableNrens.find(de=>de.name===ue.name)!==void 0,t[34]=n.availableNrens,t[35]=B):B=t[35];const Q=B;C=Ne,D=3,j=Ri,P="outside",T="m-3",t[36]===Symbol.for("react.memo_cache_sentinel")?(O=f.jsx(Ri.Toggle,{id:"nren-dropdown-toggle",variant:"compendium",children:"Select NRENs    "}),t[36]=O):O=t[36],k=Ri.Menu,t[37]===Symbol.for("react.memo_cache_sentinel")?(M={borderRadius:0},t[37]=M):M=t[37],I="d-flex fit-max-content mt-4 mx-3";let H;t[38]!==s.selectedNrens||t[39]!==m||t[40]!==Q?(H=(ue,me)=>f.jsx("div",{className:"flex-fill",children:ue.map(de=>f.jsx("div",{className:"filter-dropdown-item flex-fill py-1 px-3",children:f.jsxs(Ci.Check,{type:"checkbox",children:[f.jsx(Ci.Check.Input,{id:de.name,readOnly:!0,type:"checkbox",onClick:()=>m(de.name),checked:s.selectedNrens.includes(de.name),className:"nren-checkbox",disabled:!Q(de)}),f.jsxs(Ci.Check.Label,{htmlFor:de.name,className:"nren-checkbox-label",children:[de.name," ",f.jsxs("span",{style:{fontWeight:"lighter"},children:["(",de.country,")"]})]})]})},de.name))},me),t[38]=s.selectedNrens,t[39]=m,t[40]=Q,t[41]=H):H=t[41],E=Y.map(H),t[18]=n.availableNrens,t[19]=s.selectedNrens,t[20]=m,t[21]=N,t[22]=S,t[23]=h,t[24]=k,t[25]=j,t[26]=C,t[27]=E,t[28]=M,t[29]=P,t[30]=T,t[31]=O,t[32]=D,t[33]=I}else k=t[24],j=t[25],C=t[26],E=t[27],M=t[28],P=t[29],T=t[30],O=t[31],D=t[32],I=t[33];let V;t[42]!==E||t[43]!==I?(V=f.jsx("div",{className:I,children:E}),t[42]=E,t[43]=I,t[44]=V):V=t[44];let W;t[45]!==v?(W=f.jsx(xt,{variant:"compendium",className:"flex-fill",onClick:v,children:"Select all NRENs"}),t[45]=v,t[46]=W):W=t[46];let G;t[47]!==w?(G=f.jsx(xt,{variant:"compendium",className:"flex-fill",onClick:w,children:"Unselect all NRENs"}),t[47]=w,t[48]=G):G=t[48];let ne;t[49]!==W||t[50]!==G?(ne=f.jsxs("div",{className:"d-flex fit-max-content gap-2 mx-4 my-3",children:[W,G]}),t[49]=W,t[50]=G,t[51]=ne):ne=t[51];let ae;t[52]!==k||t[53]!==M||t[54]!==V||t[55]!==ne?(ae=f.jsxs(k,{style:M,children:[V,ne]}),t[52]=k,t[53]=M,t[54]=V,t[55]=ne,t[56]=ae):ae=t[56];let re;t[57]!==j||t[58]!==P||t[59]!==T||t[60]!==O||t[61]!==ae?(re=f.jsxs(j,{autoClose:P,className:T,children:[O,ae]}),t[57]=j,t[58]=P,t[59]=T,t[60]=O,t[61]=ae,t[62]=re):re=t[62];let te;t[63]!==C||t[64]!==D||t[65]!==re?(te=f.jsx(C,{xs:D,children:re}),t[63]=C,t[64]=D,t[65]=re,t[66]=te):te=t[66];let U;if(t[67]!==l||t[68]!==n.availableYears||t[69]!==s.selectedYears||t[70]!==x){let Y;t[72]!==l||t[73]!==s.selectedYears||t[74]!==x?(Y=B=>f.jsx(xt,{variant:l?"compendium-year-"+B%9:"compendium-year",active:s.selectedYears.includes(B),onClick:()=>x(B),children:B},B),t[72]=l,t[73]=s.selectedYears,t[74]=x,t[75]=Y):Y=t[75],U=n.availableYears.sort().map(Y),t[67]=l,t[68]=n.availableYears,t[69]=s.selectedYears,t[70]=x,t[71]=U}else U=t[71];let se;t[76]!==U?(se=f.jsx(Ne,{children:f.jsx(ar,{className:"d-flex justify-content-end gap-2 m-3",children:U})}),t[76]=U,t[77]=se):se=t[77];let le;return t[78]!==te||t[79]!==se?(le=f.jsxs(f.Fragment,{children:[te,se]}),t[78]=te,t[79]=se,t[80]=le):le=t[80],le}function Db(e,t){return e.name.localeCompare(t.name)}function Ab(){return[]}function Lb(e){return e.name}const Z=e=>{const t=A.c(3),{children:n}=e,s=R.useContext(Wa);let i;return t[0]!==n||t[1]!==s?(i=f.jsx("div",{ref:s,children:n}),t[0]=n,t[1]=s,t[2]=i):i=t[2],i};function Ra(e){const t=new Set,n=new Map;return e.forEach(s=>{t.add(s.year),n.set(s.nren,{name:s.nren,country:s.nren_country})}),{years:t,nrens:n}}function J(e,t,n){const s=A.c(14),i=n===void 0?$b:n;let r;s[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],s[0]=r):r=s[0];const[o,a]=R.useState(r),l=Ol(),c=e+(l?"?preview":"");let d;s[1]!==c||s[2]!==t||s[3]!==i?(d=()=>{fetch(c).then(Ib).then(x=>{const y=x.filter(i);a(y);const{years:v,nrens:_}=Ra(y);t(w=>{const S=w.selectedYears.filter(C=>v.has(C)).length?w.selectedYears:[Math.max(...v)],j=w.selectedNrens.filter(C=>_.has(C)).length?w.selectedNrens:[..._.keys()];return{selectedYears:S,selectedNrens:j}})})},s[1]=c,s[2]=t,s[3]=i,s[4]=d):d=s[4];let h;s[5]!==c||s[6]!==t?(h=[c,t],s[5]=c,s[6]=t,s[7]=h):h=s[7],R.useEffect(d,h);let u,p;s[8]!==o?(p=Ra(o),s[8]=o,s[9]=p):p=s[9],u=p;const{years:b,nrens:m}=u;let g;return s[10]!==o||s[11]!==m||s[12]!==b?(g={data:o,years:b,nrens:m},s[10]=o,s[11]=m,s[12]=b,s[13]=g):g=s[13],g}function Ib(e){return e.json()}function $b(){return!0}const gs=({title:e,unit:t,tooltipPrefix:n,tooltipUnit:s,tickLimit:i,valueTransform:r})=>({responsive:!0,elements:{point:{pointStyle:"circle",pointRadius:4,pointBorderWidth:2,pointBackgroundColor:"white"}},animation:{duration:0},plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(o){let a=n??(o.dataset.label||"");const l=r?r(o.parsed.y):o.parsed.y;return o.parsed.y!==null&&(a+=`: ${l} ${s||""}`),a}}}},scales:{y:{title:{display:!!e,text:e||""},ticks:{autoSkip:!0,maxTicksLimit:i,callback:o=>`${typeof o=="string"?o:r?r(o):o} ${t||""}`}}}}),bs=({title:e,unit:t,tooltipPrefix:n,tooltipUnit:s,valueTransform:i})=>({maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1},chartDataLabels:{font:{family:'"Open Sans", sans-serif'}},tooltip:{callbacks:{label:function(r){let o=n??(r.dataset.label||"");const a=i?i(r.parsed.x):r.parsed.x;return r.parsed.y!==null&&(o+=`: ${a} ${s||""}`),o}}}},scales:{x:{title:{display:!!e,text:e||""},position:"top",ticks:{callback:r=>r&&`${i?i(r):r} ${t||""}`}},x2:{title:{display:!!e,text:e||""},ticks:{callback:r=>r&&`${i?i(r):r} ${t||""}`},grid:{drawOnChartArea:!1},afterDataLimits:function(r){const o=Object.keys(ie.instances);let a=-999999,l=999999;for(const c of o)ie.instances[c]&&r.chart.scales.x2&&(l=Math.min(ie.instances[c].scales.x.min,l),a=Math.max(ie.instances[c].scales.x.max,a));r.chart.scales.x2.options.min=l,r.chart.scales.x2.options.max=a,r.chart.scales.x2.min=l,r.chart.scales.x2.max=a}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"});ie.register($e,Fe,_t,yt,Qe,We,Ze);function Fb(){const e=A.c(24),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,nrens:i}=J("/api/budget",n);let r,o;if(e[0]!==s||e[1]!==t.selectedNrens){let v;e[4]!==t.selectedNrens?(v=_=>t.selectedNrens.includes(_.nren),e[4]=t.selectedNrens,e[5]=v):v=e[5],r=s.filter(v),o=Dt(r,"budget"),e[0]=s,e[1]=t.selectedNrens,e[2]=r,e[3]=o}else r=e[2],o=e[3];const a=o;let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[6]=l):l=e[6];let c;e[7]!==i?(c=i.values(),e[7]=i,e[8]=c):c=e[8];let d;e[9]!==c?(d={availableYears:l,availableNrens:[...c]},e[9]=c,e[10]=d):d=e[10];let h;e[11]!==t||e[12]!==n||e[13]!==d?(h=f.jsx(K,{filterOptions:d,filterSelection:t,setFilterSelection:n}),e[11]=t,e[12]=n,e[13]=d,e[14]=h):h=e[14];const u=h;let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p=gs({title:"Budget in M€",tooltipUnit:"M€",unit:"M€"}),e[15]=p):p=e[15];const b=p;let m;e[16]===Symbol.for("react.memo_cache_sentinel")?(m=f.jsx("br",{}),e[16]=m):m=e[16];let g;e[17]===Symbol.for("react.memo_cache_sentinel")?(g=f.jsxs("span",{children:["The graph shows NREN budgets per year (in millions Euro). When budgets are not per calendar year, the NREN is asked to provide figures of the budget that covers the largest part of the year, and to include any GÉANT subsidy they may receive.",m,"NRENs are free to decide how they define the part of their organisation dedicated to core NREN business, and the budget. The merging of different parts of a large NREN into a single organisation, with a single budget can lead to significant changes between years, as can receiving funding for specific time-bound projects.",f.jsx("br",{}),"Hovering over the graph data points shows the NREN budget for the year. Gaps indicate that the budget question was not filled in for a particular year."]}),e[17]=g):g=e[17];let x;e[18]!==a?(x=f.jsx(Z,{children:f.jsx(Ot,{data:a,options:b})}),e[18]=a,e[19]=x):x=e[19];let y;return e[20]!==u||e[21]!==r||e[22]!==x?(y=f.jsx(q,{title:"Budget of NRENs per Year",description:g,category:L.Organisation,filter:u,data:r,filename:"budget_data",children:x}),e[20]=u,e[21]=r,e[22]=x,e[23]=y):y=e[23],y}function at(e){const t=A.c(10),{year:n,active:s,tooltip:i,rounded:r}=e,a=(r===void 0?!1:r)?"30px":"75px";let l;t[0]!==a?(l={width:a,height:"30px",margin:"2px"},t[0]=a,t[1]=l):l=t[1];const c=l;let d;t[2]!==s||t[3]!==c||t[4]!==i||t[5]!==n?(d=s&&i?f.jsx("div",{className:`rounded-pill bg-color-of-the-year-${n%9} bottom-tooltip pill-shadow`,style:c,"data-description":`${n}: ${i}`}):s?f.jsx("div",{className:`rounded-pill bg-color-of-the-year-${n%9} bottom-tooltip-small`,style:c,"data-description":n}):f.jsx("div",{className:"rounded-pill bg-color-of-the-year-blank",style:c}),t[2]=s,t[3]=c,t[4]=i,t[5]=n,t[6]=d):d=t[6];let h;return t[7]!==d||t[8]!==n?(h=f.jsx("div",{className:"d-inline-block",children:d},n),t[7]=d,t[8]=n,t[9]=h):h=t[9],h}function Me({columns:e,dataLookup:t,circle:n=!1,columnLookup:s=new Map}){const i=Array.from(new Set(Array.from(t.values()).flatMap(l=>Array.from(l.keys())))),r=e.map(l=>s.get(l)||l),o=Array.from(new Set(Array.from(t.values()).flatMap(l=>Array.from(l.values()).flatMap(c=>Array.from(c.keys()))))),a=i.filter(l=>{const c=s.get(l);return c?!r.includes(c):!r.includes(l)}).map(l=>s.get(l)||l);return f.jsxs(Ft,{className:"charging-struct-table",striped:!0,bordered:!0,children:[f.jsx("colgroup",{children:f.jsx("col",{span:1,style:{width:"12rem"}})}),f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{}),e.map(l=>f.jsx("th",{colSpan:1,children:l},l)),a.length?f.jsx("th",{children:"Other"}):null]})}),f.jsx("tbody",{children:Array.from(t.entries()).map(([l,c])=>f.jsxs("tr",{children:[f.jsx("td",{children:l}),r.map(d=>{const h=c.get(d);return h?f.jsx("td",{children:o.map(u=>{const p=h.get(u)||{};return f.jsx(at,{year:u,active:h.has(u),tooltip:p.tooltip,rounded:n},u)})},d):f.jsx("td",{},d)}),!!a.length&&f.jsx("td",{children:a.map(d=>{const h=c.get(d);return h?Array.from(Array.from(h.entries())).map(([p,b])=>f.jsx(at,{year:p,active:!0,tooltip:b.tooltip||d,rounded:n},p)):void 0})},`${l}-other`)]},l))})]})}function Yb(){const e=A.c(29),t=Bb,{filterSelection:n,setFilterSelection:s}=R.useContext(X),{data:i,years:r,nrens:o}=J("/api/charging",s,t);let a,l;if(e[0]!==i||e[1]!==n.selectedNrens||e[2]!==n.selectedYears){let w;e[5]!==n.selectedNrens||e[6]!==n.selectedYears?(w=N=>n.selectedYears.includes(N.year)&&n.selectedNrens.includes(N.nren),e[5]=n.selectedNrens,e[6]=n.selectedYears,e[7]=w):w=e[7],a=i.filter(w),l=_e(a,"fee_type"),e[0]=i,e[1]=n.selectedNrens,e[2]=n.selectedYears,e[3]=a,e[4]=l}else a=e[3],l=e[4];const c=l;let d;e[8]!==r?(d=[...r],e[8]=r,e[9]=d):d=e[9];let h;e[10]!==o?(h=o.values(),e[10]=o,e[11]=h):h=e[11];let u;e[12]!==h?(u=[...h],e[12]=h,e[13]=u):u=e[13];let p;e[14]!==d||e[15]!==u?(p={availableYears:d,availableNrens:u},e[14]=d,e[15]=u,e[16]=p):p=e[16];let b;e[17]!==n||e[18]!==s||e[19]!==p?(b=f.jsx(K,{filterOptions:p,filterSelection:n,setFilterSelection:s,coloredYears:!0}),e[17]=n,e[18]=s,e[19]=p,e[20]=b):b=e[20];const m=b;let g,x;e[21]===Symbol.for("react.memo_cache_sentinel")?(g=["Flat fee based on bandwidth","Usage based fee","Combination flat fee & usage basedfee","No Direct Charge","Other"],x=new Map([[g[0],"flat_fee"],[g[1],"usage_based_fee"],[g[2],"combination"],[g[3],"no_charge"],[g[4],"other"]]),e[21]=g,e[22]=x):(g=e[21],x=e[22]);const y=x;let v;e[23]!==c?(v=f.jsx(Z,{children:f.jsx(Me,{columns:g,dataLookup:c,columnLookup:y})}),e[23]=c,e[24]=v):v=e[24];let _;return e[25]!==m||e[26]!==a||e[27]!==v?(_=f.jsx(q,{title:"Charging Mechanism of NRENs",description:`The charging structure is the way in which NRENs charge their customers for the services they provide.
-         The charging structure can be based on a flat fee, usage based fee, a combination of both, or no direct charge. 
-         By selecting multiple years and NRENs, the table can be used to compare the charging structure of NRENs.`,category:L.Organisation,filter:m,data:a,filename:"charging_mechanism_of_nrens_per_year",children:v}),e[25]=m,e[26]=a,e[27]=v,e[28]=_):_=e[28],_}function Bb(e){return e.fee_type!=null}function zb(e,t,n,s,i){return e?s.startsWith("http")?f.jsx("li",{children:f.jsx("a",{href:Cg(s),target:"_blank",rel:"noopener noreferrer",style:t,children:i})},n):f.jsx("li",{children:f.jsx("span",{children:i})},n):f.jsx("li",{children:f.jsx("span",{children:i})},n)}function Wb(e,{dottedBorder:t=!1,noDots:n=!1,keysAreURLs:s=!1,removeDecoration:i=!1}){return Array.from(e.entries()).map(([r,o])=>Array.from(o.entries()).map(([a,l],c)=>{const d={};return i&&(d.textDecoration="none"),f.jsxs("tr",{className:t?"dotted-border":"",children:[f.jsx("td",{className:"pt-3 nren-column text-nowrap",children:c===0&&r}),f.jsx("td",{className:"pt-3 year-column",children:a}),f.jsx("td",{className:"pt-3 blue-column",children:f.jsx("ul",{className:n?"no-list-style-type":"",children:Array.from(Object.entries(l)).map(([h,u],p)=>zb(s,d,p,u,h))})})]},r+a)}))}function ht(e){const t=A.c(15),{data:n,columnTitle:s,dottedBorder:i,noDots:r,keysAreURLs:o,removeDecoration:a}=e;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=f.jsx("th",{className:"nren-column",children:f.jsx("span",{children:"NREN"})}),t[0]=l):l=t[0];let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=f.jsx("th",{className:"year-column",children:f.jsx("span",{children:"Year"})}),t[1]=c):c=t[1];let d;t[2]!==s?(d=f.jsx("thead",{children:f.jsxs("tr",{children:[l,c,f.jsx("th",{className:"blue-column",children:f.jsx("span",{children:s})})]})}),t[2]=s,t[3]=d):d=t[3];let h;t[4]!==n||t[5]!==i||t[6]!==o||t[7]!==r||t[8]!==a?(h=Wb(n,{dottedBorder:i,noDots:r,keysAreURLs:o,removeDecoration:a}),t[4]=n,t[5]=i,t[6]=o,t[7]=r,t[8]=a,t[9]=h):h=t[9];let u;t[10]!==h?(u=f.jsx("tbody",{children:h}),t[10]=h,t[11]=u):u=t[11];let p;return t[12]!==d||t[13]!==u?(p=f.jsxs(Ft,{borderless:!0,className:"compendium-table",children:[d,u]}),t[12]=d,t[13]=u,t[14]=p):p=t[14],p}function Vb(){const e=A.c(27),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/ec-project",n);let o,a;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==s){let x;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(x=_=>t.selectedYears.includes(_.year)&&t.selectedNrens.includes(_.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=x):x=e[7],o=s.filter(x);const y=ms(o);a=nt(y,Hb),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=s,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c;e[8]!==i?(c=[...i],e[8]=i,e[9]=c):c=e[9];let d;e[10]!==r?(d=r.values(),e[10]=r,e[11]=d):d=e[11];let h;e[12]!==d?(h=[...d],e[12]=d,e[13]=h):h=e[13];let u;e[14]!==c||e[15]!==h?(u={availableYears:c,availableNrens:h},e[14]=c,e[15]=h,e[16]=u):u=e[16];let p;e[17]!==t||e[18]!==n||e[19]!==u?(p=f.jsx(K,{filterOptions:u,filterSelection:t,setFilterSelection:n}),e[17]=t,e[18]=n,e[19]=u,e[20]=p):p=e[20];const b=p;let m;e[21]!==l?(m=f.jsx(Z,{children:f.jsx(ht,{data:l,columnTitle:"EC Project Membership",dottedBorder:!0})}),e[21]=l,e[22]=m):m=e[22];let g;return e[23]!==b||e[24]!==o||e[25]!==m?(g=f.jsx(q,{title:"NREN Involvement in European Commission Projects",description:"Many NRENs are involved in a number of different European Commission project, besides GÉANT. The list of projects in the table below is not necessarily exhaustive, but does contain projects the NRENs consider important or worthy of mention.",category:L.Organisation,filter:b,data:o,filename:"nren_involvement_in_european_commission_projects",children:m}),e[23]=b,e[24]=o,e[25]=m,e[26]=g):g=e[26],g}function Hb(e,t){const n=t.map(Ub).sort();n.length&&n.forEach(s=>{e[s]=s})}function Ub(e){return e.project}/*!
- * chartjs-plugin-datalabels v2.2.0
- * https://chartjs-plugin-datalabels.netlify.app
- * (c) 2017-2022 chartjs-plugin-datalabels contributors
- * Released under the MIT license
- */var Pa=function(){if(typeof window<"u"){if(window.devicePixelRatio)return window.devicePixelRatio;var e=window.screen;if(e)return(e.deviceXDPI||1)/(e.logicalXDPI||1)}return 1}(),Zn={toTextLines:function(e){var t=[],n;for(e=[].concat(e);e.length;)n=e.pop(),typeof n=="string"?t.unshift.apply(t,n.split(`
-`)):Array.isArray(n)?e.push.apply(e,n):fe(e)||t.unshift(""+n);return t},textSize:function(e,t,n){var s=[].concat(t),i=s.length,r=e.font,o=0,a;for(e.font=n.string,a=0;a<i;++a)o=Math.max(e.measureText(s[a]).width,o);return e.font=r,{height:i*n.lineHeight,width:o}},bound:function(e,t,n){return Math.max(e,Math.min(t,n))},arrayDiff:function(e,t){var n=e.slice(),s=[],i,r,o,a;for(i=0,o=t.length;i<o;++i)a=t[i],r=n.indexOf(a),r===-1?s.push([a,1]):n.splice(r,1);for(i=0,o=n.length;i<o;++i)s.push([n[i],-1]);return s},rasterize:function(e){return Math.round(e*Pa)/Pa}};function Vi(e,t){var n=t.x,s=t.y;if(n===null)return{x:0,y:-1};if(s===null)return{x:1,y:0};var i=e.x-n,r=e.y-s,o=Math.sqrt(i*i+r*r);return{x:o?i/o:0,y:o?r/o:-1}}function Gb(e,t,n,s,i){switch(i){case"center":n=s=0;break;case"bottom":n=0,s=1;break;case"right":n=1,s=0;break;case"left":n=-1,s=0;break;case"top":n=0,s=-1;break;case"start":n=-n,s=-s;break;case"end":break;default:i*=Math.PI/180,n=Math.cos(i),s=Math.sin(i);break}return{x:e,y:t,vx:n,vy:s}}var Xb=0,Tc=1,Oc=2,Dc=4,Ac=8;function Zs(e,t,n){var s=Xb;return e<n.left?s|=Tc:e>n.right&&(s|=Oc),t<n.top?s|=Ac:t>n.bottom&&(s|=Dc),s}function qb(e,t){for(var n=e.x0,s=e.y0,i=e.x1,r=e.y1,o=Zs(n,s,t),a=Zs(i,r,t),l,c,d;!(!(o|a)||o&a);)l=o||a,l&Ac?(c=n+(i-n)*(t.top-s)/(r-s),d=t.top):l&Dc?(c=n+(i-n)*(t.bottom-s)/(r-s),d=t.bottom):l&Oc?(d=s+(r-s)*(t.right-n)/(i-n),c=t.right):l&Tc&&(d=s+(r-s)*(t.left-n)/(i-n),c=t.left),l===o?(n=c,s=d,o=Zs(n,s,t)):(i=c,r=d,a=Zs(i,r,t));return{x0:n,x1:i,y0:s,y1:r}}function Qs(e,t){var n=t.anchor,s=e,i,r;return t.clamp&&(s=qb(s,t.area)),n==="start"?(i=s.x0,r=s.y0):n==="end"?(i=s.x1,r=s.y1):(i=(s.x0+s.x1)/2,r=(s.y0+s.y1)/2),Gb(i,r,e.vx,e.vy,t.align)}var ei={arc:function(e,t){var n=(e.startAngle+e.endAngle)/2,s=Math.cos(n),i=Math.sin(n),r=e.innerRadius,o=e.outerRadius;return Qs({x0:e.x+s*r,y0:e.y+i*r,x1:e.x+s*o,y1:e.y+i*o,vx:s,vy:i},t)},point:function(e,t){var n=Vi(e,t.origin),s=n.x*e.options.radius,i=n.y*e.options.radius;return Qs({x0:e.x-s,y0:e.y-i,x1:e.x+s,y1:e.y+i,vx:n.x,vy:n.y},t)},bar:function(e,t){var n=Vi(e,t.origin),s=e.x,i=e.y,r=0,o=0;return e.horizontal?(s=Math.min(e.x,e.base),r=Math.abs(e.base-e.x)):(i=Math.min(e.y,e.base),o=Math.abs(e.base-e.y)),Qs({x0:s,y0:i+o,x1:s+r,y1:i,vx:n.x,vy:n.y},t)},fallback:function(e,t){var n=Vi(e,t.origin);return Qs({x0:e.x,y0:e.y,x1:e.x+(e.width||0),y1:e.y+(e.height||0),vx:n.x,vy:n.y},t)}},vt=Zn.rasterize;function Kb(e){var t=e.borderWidth||0,n=e.padding,s=e.size.height,i=e.size.width,r=-i/2,o=-s/2;return{frame:{x:r-n.left-t,y:o-n.top-t,w:i+n.width+t*2,h:s+n.height+t*2},text:{x:r,y:o,w:i,h:s}}}function Jb(e,t){var n=t.chart.getDatasetMeta(t.datasetIndex).vScale;if(!n)return null;if(n.xCenter!==void 0&&n.yCenter!==void 0)return{x:n.xCenter,y:n.yCenter};var s=n.getBasePixel();return e.horizontal?{x:s,y:null}:{x:null,y:s}}function Zb(e){return e instanceof Wn?ei.arc:e instanceof _t?ei.point:e instanceof et?ei.bar:ei.fallback}function Qb(e,t,n,s,i,r){var o=Math.PI/2;if(r){var a=Math.min(r,i/2,s/2),l=t+a,c=n+a,d=t+s-a,h=n+i-a;e.moveTo(t,c),l<d&&c<h?(e.arc(l,c,a,-Math.PI,-o),e.arc(d,c,a,-o,0),e.arc(d,h,a,0,o),e.arc(l,h,a,o,Math.PI)):l<d?(e.moveTo(l,n),e.arc(d,c,a,-o,o),e.arc(l,c,a,o,Math.PI+o)):c<h?(e.arc(l,c,a,-Math.PI,0),e.arc(l,h,a,0,Math.PI)):e.arc(l,c,a,-Math.PI,Math.PI),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,s,i)}function ex(e,t,n){var s=n.backgroundColor,i=n.borderColor,r=n.borderWidth;!s&&(!i||!r)||(e.beginPath(),Qb(e,vt(t.x)+r/2,vt(t.y)+r/2,vt(t.w)-r,vt(t.h)-r,n.borderRadius),e.closePath(),s&&(e.fillStyle=s,e.fill()),i&&r&&(e.strokeStyle=i,e.lineWidth=r,e.lineJoin="miter",e.stroke()))}function tx(e,t,n){var s=n.lineHeight,i=e.w,r=e.x,o=e.y+s/2;return t==="center"?r+=i/2:(t==="end"||t==="right")&&(r+=i),{h:s,w:i,x:r,y:o}}function nx(e,t,n){var s=e.shadowBlur,i=n.stroked,r=vt(n.x),o=vt(n.y),a=vt(n.w);i&&e.strokeText(t,r,o,a),n.filled&&(s&&i&&(e.shadowBlur=0),e.fillText(t,r,o,a),s&&i&&(e.shadowBlur=s))}function sx(e,t,n,s){var i=s.textAlign,r=s.color,o=!!r,a=s.font,l=t.length,c=s.textStrokeColor,d=s.textStrokeWidth,h=c&&d,u;if(!(!l||!o&&!h))for(n=tx(n,i,a),e.font=a.string,e.textAlign=i,e.textBaseline="middle",e.shadowBlur=s.textShadowBlur,e.shadowColor=s.textShadowColor,o&&(e.fillStyle=r),h&&(e.lineJoin="round",e.lineWidth=d,e.strokeStyle=c),u=0,l=t.length;u<l;++u)nx(e,t[u],{stroked:h,filled:o,w:n.w,x:n.x,y:n.y+n.h*u})}var Lc=function(e,t,n,s){var i=this;i._config=e,i._index=s,i._model=null,i._rects=null,i._ctx=t,i._el=n};ft(Lc.prototype,{_modelize:function(e,t,n,s){var i=this,r=i._index,o=Ce(be([n.font,{}],s,r)),a=be([n.color,xe.color],s,r);return{align:be([n.align,"center"],s,r),anchor:be([n.anchor,"center"],s,r),area:s.chart.chartArea,backgroundColor:be([n.backgroundColor,null],s,r),borderColor:be([n.borderColor,null],s,r),borderRadius:be([n.borderRadius,0],s,r),borderWidth:be([n.borderWidth,0],s,r),clamp:be([n.clamp,!1],s,r),clip:be([n.clip,!1],s,r),color:a,display:e,font:o,lines:t,offset:be([n.offset,4],s,r),opacity:be([n.opacity,1],s,r),origin:Jb(i._el,s),padding:ze(be([n.padding,4],s,r)),positioner:Zb(i._el),rotation:be([n.rotation,0],s,r)*(Math.PI/180),size:Zn.textSize(i._ctx,t,o),textAlign:be([n.textAlign,"start"],s,r),textShadowBlur:be([n.textShadowBlur,0],s,r),textShadowColor:be([n.textShadowColor,a],s,r),textStrokeColor:be([n.textStrokeColor,a],s,r),textStrokeWidth:be([n.textStrokeWidth,0],s,r)}},update:function(e){var t=this,n=null,s=null,i=t._index,r=t._config,o,a,l,c=be([r.display,!0],e,i);c&&(o=e.dataset.data[i],a=oe(pe(r.formatter,[o,e]),o),l=fe(a)?[]:Zn.toTextLines(a),l.length&&(n=t._modelize(c,l,r,e),s=Kb(n))),t._model=n,t._rects=s},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(e,t){var n=this,s=e.ctx,i=n._model,r=n._rects,o;this.visible()&&(s.save(),i.clip&&(o=i.area,s.beginPath(),s.rect(o.left,o.top,o.right-o.left,o.bottom-o.top),s.clip()),s.globalAlpha=Zn.bound(0,i.opacity,1),s.translate(vt(t.x),vt(t.y)),s.rotate(i.rotation),ex(s,r.frame,i),sx(s,i.lines,r.text,i),s.restore())}});var ix=Number.MIN_SAFE_INTEGER||-9007199254740991,rx=Number.MAX_SAFE_INTEGER||9007199254740991;function Fn(e,t,n){var s=Math.cos(n),i=Math.sin(n),r=t.x,o=t.y;return{x:r+s*(e.x-r)-i*(e.y-o),y:o+i*(e.x-r)+s*(e.y-o)}}function Ta(e,t){var n=rx,s=ix,i=t.origin,r,o,a,l,c;for(r=0;r<e.length;++r)o=e[r],a=o.x-i.x,l=o.y-i.y,c=t.vx*a+t.vy*l,n=Math.min(n,c),s=Math.max(s,c);return{min:n,max:s}}function ti(e,t){var n=t.x-e.x,s=t.y-e.y,i=Math.sqrt(n*n+s*s);return{vx:(t.x-e.x)/i,vy:(t.y-e.y)/i,origin:e,ln:i}}var Ic=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};ft(Ic.prototype,{center:function(){var e=this._rect;return{x:e.x+e.w/2,y:e.y+e.h/2}},update:function(e,t,n){this._rotation=n,this._rect={x:t.x+e.x,y:t.y+e.y,w:t.w,h:t.h}},contains:function(e){var t=this,n=1,s=t._rect;return e=Fn(e,t.center(),-t._rotation),!(e.x<s.x-n||e.y<s.y-n||e.x>s.x+s.w+n*2||e.y>s.y+s.h+n*2)},intersects:function(e){var t=this._points(),n=e._points(),s=[ti(t[0],t[1]),ti(t[0],t[3])],i,r,o;for(this._rotation!==e._rotation&&s.push(ti(n[0],n[1]),ti(n[0],n[3])),i=0;i<s.length;++i)if(r=Ta(t,s[i]),o=Ta(n,s[i]),r.max<o.min||o.max<r.min)return!1;return!0},_points:function(){var e=this,t=e._rect,n=e._rotation,s=e.center();return[Fn({x:t.x,y:t.y},s,n),Fn({x:t.x+t.w,y:t.y},s,n),Fn({x:t.x+t.w,y:t.y+t.h},s,n),Fn({x:t.x,y:t.y+t.h},s,n)]}});function $c(e,t,n){var s=t.positioner(e,t),i=s.vx,r=s.vy;if(!i&&!r)return{x:s.x,y:s.y};var o=n.w,a=n.h,l=t.rotation,c=Math.abs(o/2*Math.cos(l))+Math.abs(a/2*Math.sin(l)),d=Math.abs(o/2*Math.sin(l))+Math.abs(a/2*Math.cos(l)),h=1/Math.max(Math.abs(i),Math.abs(r));return c*=i*h,d*=r*h,c+=t.offset*i,d+=t.offset*r,{x:s.x+c,y:s.y+d}}function ox(e,t){var n,s,i,r;for(n=e.length-1;n>=0;--n)for(i=e[n].$layout,s=n-1;s>=0&&i._visible;--s)r=e[s].$layout,r._visible&&i._box.intersects(r._box)&&t(i,r);return e}function ax(e){var t,n,s,i,r,o,a;for(t=0,n=e.length;t<n;++t)s=e[t],i=s.$layout,i._visible&&(a=new Proxy(s._el,{get:(l,c)=>l.getProps([c],!0)[c]}),r=s.geometry(),o=$c(a,s.model(),r),i._box.update(o,r,s.rotation()));return ox(e,function(l,c){var d=l._hidable,h=c._hidable;d&&h||h?c._visible=!1:d&&(l._visible=!1)})}var Qn={prepare:function(e){var t=[],n,s,i,r,o;for(n=0,i=e.length;n<i;++n)for(s=0,r=e[n].length;s<r;++s)o=e[n][s],t.push(o),o.$layout={_box:new Ic,_hidable:!1,_visible:!0,_set:n,_idx:o._index};return t.sort(function(a,l){var c=a.$layout,d=l.$layout;return c._idx===d._idx?d._set-c._set:d._idx-c._idx}),this.update(t),t},update:function(e){var t=!1,n,s,i,r,o;for(n=0,s=e.length;n<s;++n)i=e[n],r=i.model(),o=i.$layout,o._hidable=r&&r.display==="auto",o._visible=i.visible(),t|=o._hidable;t&&ax(e)},lookup:function(e,t){var n,s;for(n=e.length-1;n>=0;--n)if(s=e[n].$layout,s&&s._visible&&s._box.contains(t))return e[n];return null},draw:function(e,t){var n,s,i,r,o,a;for(n=0,s=t.length;n<s;++n)i=t[n],r=i.$layout,r._visible&&(o=i.geometry(),a=$c(i._el,i.model(),o),r._box.update(a,o,i.rotation()),i.draw(e,a))}},lx=function(e){if(fe(e))return null;var t=e,n,s,i;if(ce(e))if(!fe(e.label))t=e.label;else if(!fe(e.r))t=e.r;else for(t="",n=Object.keys(e),i=0,s=n.length;i<s;++i)t+=(i!==0?", ":"")+n[i]+": "+e[n[i]];return""+t},cx={align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:lx,labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},Oe="$datalabels",Fc="$default";function dx(e,t){var n=e.datalabels,s={},i=[],r,o;return n===!1?null:(n===!0&&(n={}),t=ft({},[t,n]),r=t.labels||{},o=Object.keys(r),delete t.labels,o.length?o.forEach(function(a){r[a]&&i.push(ft({},[t,r[a],{_key:a}]))}):i.push(t),s=i.reduce(function(a,l){return he(l.listeners||{},function(c,d){a[d]=a[d]||{},a[d][l._key||Fc]=c}),delete l.listeners,a},{}),{labels:i,listeners:s})}function rr(e,t,n,s){if(t){var i=n.$context,r=n.$groups,o;t[r._set]&&(o=t[r._set][r._key],o&&pe(o,[i,s])===!0&&(e[Oe]._dirty=!0,n.update(i)))}}function fx(e,t,n,s,i){var r,o;!n&&!s||(n?s?n!==s&&(o=r=!0):o=!0:r=!0,o&&rr(e,t.leave,n,i),r&&rr(e,t.enter,s,i))}function hx(e,t){var n=e[Oe],s=n._listeners,i,r;if(!(!s.enter&&!s.leave)){if(t.type==="mousemove")r=Qn.lookup(n._labels,t);else if(t.type!=="mouseout")return;i=n._hovered,n._hovered=r,fx(e,s,i,r,t)}}function ux(e,t){var n=e[Oe],s=n._listeners.click,i=s&&Qn.lookup(n._labels,t);i&&rr(e,s,i,t)}var Tn={id:"datalabels",defaults:cx,beforeInit:function(e){e[Oe]={_actives:[]}},beforeUpdate:function(e){var t=e[Oe];t._listened=!1,t._listeners={},t._datasets=[],t._labels=[]},afterDatasetUpdate:function(e,t,n){var s=t.index,i=e[Oe],r=i._datasets[s]=[],o=e.isDatasetVisible(s),a=e.data.datasets[s],l=dx(a,n),c=t.meta.data||[],d=e.ctx,h,u,p,b,m,g,x,y;for(d.save(),h=0,p=c.length;h<p;++h)if(x=c[h],x[Oe]=[],o&&x&&e.getDataVisibility(h)&&!x.skip)for(u=0,b=l.labels.length;u<b;++u)m=l.labels[u],g=m._key,y=new Lc(m,d,x,h),y.$groups={_set:s,_key:g||Fc},y.$context={active:!1,chart:e,dataIndex:h,dataset:a,datasetIndex:s},y.update(y.$context),x[Oe].push(y),r.push(y);d.restore(),ft(i._listeners,l.listeners,{merger:function(v,_,w){_[v]=_[v]||{},_[v][t.index]=w[v],i._listened=!0}})},afterUpdate:function(e){e[Oe]._labels=Qn.prepare(e[Oe]._datasets)},afterDatasetsDraw:function(e){Qn.draw(e,e[Oe]._labels)},beforeEvent:function(e,t){if(e[Oe]._listened){var n=t.event;switch(n.type){case"mousemove":case"mouseout":hx(e,n);break;case"click":ux(e,n);break}}},afterEvent:function(e){var t=e[Oe],n=t._actives,s=t._actives=e.getActiveElements(),i=Zn.arrayDiff(n,s),r,o,a,l,c,d,h;for(r=0,o=i.length;r<o;++r)if(c=i[r],c[1])for(h=c[0].element[Oe]||[],a=0,l=h.length;a<l;++a)d=h[a],d.$context.active=c[1]===1,d.update(d.$context);(t._dirty||i.length)&&(Qn.update(t._labels),e.render()),delete t._dirty}};function Yn(e){const t=A.c(6),{index:n,active:s}=e,i=s===void 0?!0:s;let r;t[0]!==i||t[1]!==n?(r=i?f.jsx("div",{className:`color-of-badge-${n%5}`,style:{width:"20px",height:"35px",margin:"2px"}}):f.jsx("div",{className:"color-of-badge-blank",style:{width:"15px",height:"30px",margin:"2px"}}),t[0]=i,t[1]=n,t[2]=r):r=t[2];let o;return t[3]!==n||t[4]!==r?(o=f.jsx("div",{className:"d-inline-block m-2",children:r},n),t[3]=n,t[4]=r,t[5]=o):o=t[5],o}const px={maintainAspectRatio:!1,layout:{padding:{right:60}},animation:{duration:0},plugins:{legend:{display:!1},tooltip:{callbacks:{label:function(e){let t=e.dataset.label||"";return e.parsed.y!==null&&(t+=`: ${e.parsed.x}%`),t}}}},scales:{x:{position:"top",ticks:{callback:e=>`${e}%`,stepSize:10},max:100,min:0},xBottom:{ticks:{callback:e=>`${e}%`,stepSize:10},max:100,min:0,grid:{drawOnChartArea:!1},afterDataLimits:function(e){const t=Object.keys(ie.instances);let n=-999999,s=999999;for(const i of t)ie.instances[i]&&e.chart.scales.xBottom&&(s=Math.min(ie.instances[i].scales.x.min,s),n=Math.max(ie.instances[i].scales.x.max,n));e.chart.scales.xBottom.options.min=s,e.chart.scales.xBottom.options.max=n,e.chart.scales.xBottom.min=s,e.chart.scales.xBottom.max=n}},y:{ticks:{autoSkip:!1}}},indexAxis:"y"};function Oa(){const e=A.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=f.jsxs(Ne,{className:"d-flex align-items-center",children:[f.jsx(Yn,{index:0},0),"Client Institutions"]}),e[0]=t):t=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=f.jsxs(Ne,{className:"d-flex align-items-center",children:[f.jsx(Yn,{index:1},1),"Commercial"]}),e[1]=n):n=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsxs(Ne,{className:"d-flex align-items-center",children:[f.jsx(Yn,{index:2},2),"European Funding"]}),e[2]=s):s=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=f.jsxs(Ne,{className:"d-flex align-items-center",children:[f.jsx(Yn,{index:3},3),"Gov/Public Bodies"]}),e[3]=i):i=e[3];let r;return e[4]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("div",{className:"d-flex justify-content-center bold-grey-12pt",children:f.jsxs(we,{xs:"auto",className:"border rounded-3 border-1 my-5 justify-content-center",children:[t,n,s,i,f.jsxs(Ne,{className:"d-flex align-items-center",children:[f.jsx(Yn,{index:4},4),"Other"]})]})}),e[4]=r):r=e[4],r}ie.register(We);function mx(){const e=A.c(44),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/funding",n);let o,a,l,c;if(e[0]!==t||e[1]!==s||e[2]!==r||e[3]!==n||e[4]!==i){let S;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(S=T=>t.selectedYears.includes(T.year)&&t.selectedNrens.includes(T.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=S):S=e[11],l=s.filter(S),a=Eg(l),a.datasets.forEach(T=>{T.data=T.data.filter((O,D)=>t.selectedNrens.includes(a.labels[D]))});let k;e[12]!==t.selectedNrens?(k=T=>t.selectedNrens.includes(T),e[12]=t.selectedNrens,e[13]=k):k=e[13],a.labels=a.labels.filter(k);let j;e[14]!==i?(j=[...i],e[14]=i,e[15]=j):j=e[15];let C;e[16]!==r?(C=r.values(),e[16]=r,e[17]=C):C=e[17];let E;e[18]!==C?(E=[...C],e[18]=C,e[19]=E):E=e[19];let M;e[20]!==j||e[21]!==E?(M={availableYears:j,availableNrens:E},e[20]=j,e[21]=E,e[22]=M):M=e[22];let P;e[23]!==t||e[24]!==n||e[25]!==M?(P=f.jsx(K,{filterOptions:M,filterSelection:t,setFilterSelection:n}),e[23]=t,e[24]=n,e[25]=M,e[26]=P):P=e[26],o=P,c=Array.from(new Set(l.map(gx))),e[0]=t,e[1]=s,e[2]=r,e[3]=n,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c}else o=e[5],a=e[6],l=e[7],c=e[8];const d=c.length,h=t.selectedYears.length,u=d*h*2+5;let p;e[27]===Symbol.for("react.memo_cache_sentinel")?(p=f.jsxs("span",{children:['The graph shows the percentage share of their income that NRENs derive from different sources, with any funding and NREN may receive from GÉANT included within "European funding". By "Client institutions" NRENs may be referring to universities, schools, research institutes, commercial clients, or other types of organisation. "Commercial services" include services such as being a domain registry, or security support.',f.jsx("br",{}),"Hovering over the graph bars will show the exact figures, per source. When viewing multiple years, it is advisable to restrict the number of NRENs being compared."]}),e[27]=p):p=e[27];let b;e[28]===Symbol.for("react.memo_cache_sentinel")?(b=f.jsx(Oa,{}),e[28]=b):b=e[28];const m=`${u}rem`;let g;e[29]!==m?(g={height:m},e[29]=m,e[30]=g):g=e[30];let x;e[31]===Symbol.for("react.memo_cache_sentinel")?(x=[Tn],e[31]=x):x=e[31];let y;e[32]!==a?(y=f.jsx(Bt,{plugins:x,data:a,options:px}),e[32]=a,e[33]=y):y=e[33];let v;e[34]!==g||e[35]!==y?(v=f.jsx("div",{className:"chart-container",style:g,children:y}),e[34]=g,e[35]=y,e[36]=v):v=e[36];let _;e[37]===Symbol.for("react.memo_cache_sentinel")?(_=f.jsx(Oa,{}),e[37]=_):_=e[37];let w;e[38]!==v?(w=f.jsxs(Z,{children:[b,v,_]}),e[38]=v,e[39]=w):w=e[39];let N;return e[40]!==o||e[41]!==l||e[42]!==w?(N=f.jsx(q,{title:"Income Source Of NRENs",description:p,category:L.Organisation,filter:o,data:l,filename:"income_source_of_nren_per_year",children:w}),e[40]=o,e[41]=l,e[42]=w,e[43]=N):N=e[43],N}function gx(e){return e.nren}function bx(){const e=A.c(27),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/parent-organizations",n);let o,a;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==s){let x;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(x=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=x):x=e[7],o=s.filter(x);const y=Ve(o);a=nt(y,xx),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=s,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c;e[8]!==i?(c=[...i],e[8]=i,e[9]=c):c=e[9];let d;e[10]!==r?(d=r.values(),e[10]=r,e[11]=d):d=e[11];let h;e[12]!==d?(h=[...d],e[12]=d,e[13]=h):h=e[13];let u;e[14]!==c||e[15]!==h?(u={availableYears:c,availableNrens:h},e[14]=c,e[15]=h,e[16]=u):u=e[16];let p;e[17]!==t||e[18]!==n||e[19]!==u?(p=f.jsx(K,{filterOptions:u,filterSelection:t,setFilterSelection:n,max1year:!0}),e[17]=t,e[18]=n,e[19]=u,e[20]=p):p=e[20];const b=p;let m;e[21]!==l?(m=f.jsx(Z,{children:f.jsx(ht,{data:l,columnTitle:"Parent Organisation",dottedBorder:!0,noDots:!0})}),e[21]=l,e[22]=m):m=e[22];let g;return e[23]!==b||e[24]!==o||e[25]!==m?(g=f.jsx(q,{title:"NREN Parent Organisations",description:"Some NRENs are part of larger organisations, including Ministries or universities. These are shown in the table below. Only NRENs who are managed in this way are available to select.",category:L.Organisation,filter:b,data:o,filename:"nren_parent_organisations",children:m}),e[23]=b,e[24]=o,e[25]=m,e[26]=g):g=e[26],g}function xx(e,t){const n=t.name;e[n]=n}const Yc=e=>{const t=A.c(8);let{children:n,location:s}=e;s||(s="both");const i=s==="top"||s==="both",r=s==="bottom"||s==="both";let o;t[0]!==i?(o=i&&f.jsx("div",{style:{paddingLeft:"33%",paddingTop:"2.5rem",paddingBottom:"1.5rem"},id:"legendtop"}),t[0]=i,t[1]=o):o=t[1];let a;t[2]!==r?(a=r&&f.jsx("div",{style:{paddingLeft:"33%",paddingTop:"1.5rem"},id:"legendbottom"}),t[2]=r,t[3]=a):a=t[3];let l;return t[4]!==n||t[5]!==o||t[6]!==a?(l=f.jsxs(Z,{children:[o,n,a]}),t[4]=n,t[5]=o,t[6]=a,t[7]=l):l=t[7],l},yx=(e,t)=>{const n=document.getElementById(t);if(!n)return null;let s=n.querySelector("ul");return s||(s=document.createElement("ul"),s.style.display="flex",s.style.flexDirection="row",s.style.margin="0",s.style.padding="0",n.appendChild(s)),s},Bc={id:"htmlLegend",afterUpdate(e,t,n){for(const s of n.containerIDs){const i=yx(e,s);if(!i)return;for(;i.firstChild;)i.firstChild.remove();e.options.plugins.legend.labels.generateLabels(e).forEach(o=>{const a=document.createElement("li");a.style.alignItems="center",a.style.cursor="pointer",a.style.display="flex",a.style.flexDirection="row",a.style.marginLeft="10px",a.onclick=()=>{const{type:h}=e.config;h==="pie"||h==="doughnut"?e.toggleDataVisibility(o.index):e.setDatasetVisibility(o.datasetIndex,!e.isDatasetVisible(o.datasetIndex)),e.update()};const l=document.createElement("span");l.style.background=o.fillStyle,l.style.borderColor=o.strokeStyle,l.style.borderWidth=o.lineWidth+"px",l.style.display="inline-block",l.style.height="1rem",l.style.marginRight="10px",l.style.width="2.5rem";const c=document.createElement("p");c.style.color=o.fontColor,c.style.margin="0",c.style.padding="0",c.style.textDecoration=o.hidden?"line-through":"",c.style.fontSize=`${ie.defaults.font.size}px`,c.style.fontFamily=`${ie.defaults.font.family}`,c.style.fontWeight=`${ie.defaults.font.weight}`;const d=document.createTextNode(o.text);c.appendChild(d),a.appendChild(l),a.appendChild(c),i.appendChild(a)})}}};ie.register($e,Fe,et,Qe,We,Ze);const vx={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(e){let t=e.dataset.label||"";return e.parsed.x!==null&&(t+=`: ${e.parsed.x}%`),t}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:(e,t)=>`${t*10}%`}},x2:{ticks:{callback:e=>typeof e=="number"?`${e}%`:e},grid:{drawOnChartArea:!1},afterDataLimits:function(e){const t=Object.keys(ie.instances);let n=-999999,s=999999;for(const i of t)ie.instances[i]&&e.chart.scales.x2&&(s=Math.min(ie.instances[i].scales.x.min,s),n=Math.max(ie.instances[i].scales.x.max,n));e.chart.scales.x2.options.min=s,e.chart.scales.x2.options.max=n,e.chart.scales.x2.min=s,e.chart.scales.x2.max=n}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};function Da(e){const t=A.c(39),{roles:n}=e,s=n===void 0?!1:n;let i;t[0]!==s?(i=function(D){return s&&D.technical_fte>0&&D.non_technical_fte>0||!s&&D.permanent_fte>0&&D.subcontracted_fte>0},t[0]=s,t[1]=i):i=t[1];const r=i,{filterSelection:o,setFilterSelection:a}=R.useContext(X),{data:l,years:c,nrens:d}=J("/api/staff",a,r);let h,u;if(t[2]!==l||t[3]!==o.selectedNrens||t[4]!==o.selectedYears||t[5]!==s){let O;t[8]!==o.selectedNrens||t[9]!==o.selectedYears?(O=D=>o.selectedYears.includes(D.year)&&o.selectedNrens.includes(D.nren),t[8]=o.selectedNrens,t[9]=o.selectedYears,t[10]=O):O=t[10],h=l.filter(O),u=Mg(h,s,o.selectedYears[0]),t[2]=l,t[3]=o.selectedNrens,t[4]=o.selectedYears,t[5]=s,t[6]=h,t[7]=u}else h=t[6],u=t[7];const p=u;let b;t[11]!==c?(b=[...c],t[11]=c,t[12]=b):b=t[12];let m;t[13]!==d?(m=d.values(),t[13]=d,t[14]=m):m=t[14];let g;t[15]!==m?(g=[...m],t[15]=m,t[16]=g):g=t[16];let x;t[17]!==b||t[18]!==g?(x={availableYears:b,availableNrens:g},t[17]=b,t[18]=g,t[19]=x):x=t[19];let y;t[20]!==o||t[21]!==a||t[22]!==x?(y=f.jsx(K,{max1year:!0,filterOptions:x,filterSelection:o,setFilterSelection:a}),t[20]=o,t[21]=a,t[22]=x,t[23]=y):y=t[23];const v=y,_=h.length,w=Math.max(_*1.5,20),N=s?"Roles of NREN employees (Technical v. Non-Technical)":"Types of Employment within NRENs",S=s?"The graph shows division of staff FTEs (Full Time Equivalents) between technical and non-techical role per NREN. The exact figures of how many FTEs are dedicated to these two different functional areas can be accessed by downloading the data in either CSV or Excel format":"The graph shows the percentage of NREN staff who are permanent, and those who are subcontracted. The structures and models of NRENs differ across the community, which is reflected in the types of employment offered. The NRENs are asked to provide the Full Time Equivalents (FTEs) rather absolute numbers of staff.",k=s?"roles_of_nren_employees":"types_of_employment_for_nrens",j=`${w}rem`;let C;t[24]!==j?(C={height:j},t[24]=j,t[25]=C):C=t[25];let E;t[26]===Symbol.for("react.memo_cache_sentinel")?(E=[Bc],t[26]=E):E=t[26];let M;t[27]!==p?(M=f.jsx(Bt,{data:p,options:vx,plugins:E}),t[27]=p,t[28]=M):M=t[28];let P;t[29]!==C||t[30]!==M?(P=f.jsx(Yc,{children:f.jsx("div",{className:"chart-container",style:C,children:M})}),t[29]=C,t[30]=M,t[31]=P):P=t[31];let T;return t[32]!==S||t[33]!==k||t[34]!==v||t[35]!==h||t[36]!==P||t[37]!==N?(T=f.jsx(q,{title:N,description:S,category:L.Organisation,filter:v,data:h,filename:k,children:P}),t[32]=S,t[33]=k,t[34]=v,t[35]=h,t[36]=P,t[37]=N,t[38]=T):T=t[38],T}ie.register($e,Fe,et,Qe,We,Ze);function _x(){const e=A.c(38),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/staff",n);let o,a,l,c;if(e[0]!==s||e[1]!==t||e[2]!==r||e[3]!==n||e[4]!==i){let w;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(w=E=>t.selectedYears.includes(E.year)&&t.selectedNrens.includes(E.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=w):w=e[11],l=s.filter(w),a=Pg(l,t.selectedYears);let N;e[12]!==i?(N=[...i],e[12]=i,e[13]=N):N=e[13];let S;e[14]!==r?(S=r.values(),e[14]=r,e[15]=S):S=e[15];let k;e[16]!==S?(k=[...S],e[16]=S,e[17]=k):k=e[17];let j;e[18]!==N||e[19]!==k?(j={availableYears:N,availableNrens:k},e[18]=N,e[19]=k,e[20]=j):j=e[20];let C;e[21]!==t||e[22]!==n||e[23]!==j?(C=f.jsx(K,{filterOptions:j,filterSelection:t,setFilterSelection:n}),e[21]=t,e[22]=n,e[23]=j,e[24]=C):C=e[24],o=C,c=Array.from(new Set(l.map(wx))),e[0]=s,e[1]=t,e[2]=r,e[3]=n,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c}else o=e[5],a=e[6],l=e[7],c=e[8];const d=c.length,h=Math.max(d*t.selectedYears.length*1.5+5,50),u='The graph shows the total number of employees (in FTEs) at each NREN. When filling in the survey, NRENs are asked about the number of staff engaged (whether permanent or subcontracted) in NREN activities. Please note that diversity within the NREN community means that there is not one single definition of what constitutes "NREN activities". Therefore due to differences in how their organisations are arranged, and the relationship, in some cases, with parent organisations, there can be inconsistencies in how NRENs approach this question.';let p;e[25]===Symbol.for("react.memo_cache_sentinel")?(p=bs({tooltipPrefix:"FTEs",title:"Full-Time Equivalents"}),e[25]=p):p=e[25];const b=p,m=`${h}rem`;let g;e[26]!==m?(g={height:m},e[26]=m,e[27]=g):g=e[27];let x;e[28]===Symbol.for("react.memo_cache_sentinel")?(x=[Tn],e[28]=x):x=e[28];let y;e[29]!==a?(y=f.jsx(Bt,{data:a,options:b,plugins:x}),e[29]=a,e[30]=y):y=e[30];let v;e[31]!==g||e[32]!==y?(v=f.jsx(Z,{children:f.jsx("div",{className:"chart-container",style:g,children:y})}),e[31]=g,e[32]=y,e[33]=v):v=e[33];let _;return e[34]!==o||e[35]!==l||e[36]!==v?(_=f.jsx(q,{title:"Number of NREN Employees",description:u,category:L.Organisation,filter:o,data:l,filename:"number_of_nren_employees",children:v}),e[34]=o,e[35]=l,e[36]=v,e[37]=_):_=e[37],_}function wx(e){return e.nren}function Nx(){const e=A.c(27),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/sub-organizations",n);let o,a;if(e[0]!==s||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let x;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(x=v=>t.selectedYears.includes(v.year)&&t.selectedNrens.includes(v.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=x):x=e[7],o=s.filter(x);const y=ms(o);a=nt(y,Sx),e[0]=s,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c;e[8]!==i?(c=[...i],e[8]=i,e[9]=c):c=e[9];let d;e[10]!==r?(d=r.values(),e[10]=r,e[11]=d):d=e[11];let h;e[12]!==d?(h=[...d],e[12]=d,e[13]=h):h=e[13];let u;e[14]!==c||e[15]!==h?(u={availableYears:c,availableNrens:h},e[14]=c,e[15]=h,e[16]=u):u=e[16];let p;e[17]!==t||e[18]!==n||e[19]!==u?(p=f.jsx(K,{filterOptions:u,filterSelection:t,setFilterSelection:n}),e[17]=t,e[18]=n,e[19]=u,e[20]=p):p=e[20];const b=p;let m;e[21]!==l?(m=f.jsx(Z,{children:f.jsx(ht,{data:l,columnTitle:"Suborganisation and Role",dottedBorder:!0})}),e[21]=l,e[22]=m):m=e[22];let g;return e[23]!==b||e[24]!==o||e[25]!==m?(g=f.jsx(q,{title:"NREN Sub-Organisations",description:"NRENs are asked whether they have any sub-organisations, and to give the name and role of these organisations. These organisations can include HPC centres or IDC federations, amongst many others.",category:L.Organisation,filter:b,data:o,filename:"nren_suborganisations",children:m}),e[23]=b,e[24]=o,e[25]=m,e[26]=g):g=e[26],g}function Sx(e,t){for(const n of t.sort(kx)){const s=`${n.name} (${n.role})`;e[s]=s}}function kx(e,t){return e.name.localeCompare(t.name)}function jx(){const e=A.c(30);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=N=>N.audits!==null,e[0]=t):t=e[0];const n=t,{filterSelection:s,setFilterSelection:i}=R.useContext(X),{data:r,years:o,nrens:a}=J("/api/standards",i,n);let l,c;if(e[1]!==r||e[2]!==s.selectedNrens||e[3]!==s.selectedYears){let N;e[6]!==s.selectedNrens||e[7]!==s.selectedYears?(N=j=>s.selectedYears.includes(j.year)&&s.selectedNrens.includes(j.nren)&&j.audits!==null,e[6]=s.selectedNrens,e[7]=s.selectedYears,e[8]=N):N=e[8],l=r.filter(N);const S=_e(l,"audits");c=ps(S,Cx),e[1]=r,e[2]=s.selectedNrens,e[3]=s.selectedYears,e[4]=l,e[5]=c}else l=e[4],c=e[5];const d=c;let h,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=["Yes","No"],u=new Map([[h[0],"True"],[h[1],"False"]]),e[9]=h,e[10]=u):(h=e[9],u=e[10]);const p=u;let b;e[11]!==o?(b=[...o],e[11]=o,e[12]=b):b=e[12];let m;e[13]!==a?(m=a.values(),e[13]=a,e[14]=m):m=e[14];let g;e[15]!==m?(g=[...m],e[15]=m,e[16]=g):g=e[16];let x;e[17]!==b||e[18]!==g?(x={availableYears:b,availableNrens:g},e[17]=b,e[18]=g,e[19]=x):x=e[19];let y;e[20]!==s||e[21]!==i||e[22]!==x?(y=f.jsx(K,{filterOptions:x,filterSelection:s,setFilterSelection:i,coloredYears:!0}),e[20]=s,e[21]=i,e[22]=x,e[23]=y):y=e[23];const v=y;let _;e[24]!==d?(_=f.jsx(Z,{children:f.jsx(Me,{columns:h,columnLookup:p,dataLookup:d})}),e[24]=d,e[25]=_):_=e[25];let w;return e[26]!==v||e[27]!==l||e[28]!==_?(w=f.jsx(q,{title:"External and Internal Audits of Information Security Management Systems",description:`The table below shows whether NRENs have external and/or internal audits 
-            of the information security management systems (eg. risk management and policies). 
-            Where extra information has been provided, such as whether a certified security auditor 
-            on ISP 27001 is performing the audits, it can be viewed by hovering over the indicator 
-            mark ringed in black.`,category:L.Policy,filter:v,data:l,filename:"audits_nrens_per_year",children:_}),e[26]=v,e[27]=l,e[28]=_,e[29]=w):w=e[29],w}function Cx(e,t){if(t.audit_specifics)return t.audit_specifics}function Ex(){const e=A.c(30);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=N=>N.business_continuity_plans!==null,e[0]=t):t=e[0];const n=t,{filterSelection:s,setFilterSelection:i}=R.useContext(X),{data:r,years:o,nrens:a}=J("/api/standards",i,n);let l,c;if(e[1]!==r||e[2]!==s.selectedNrens||e[3]!==s.selectedYears){let N;e[6]!==s.selectedNrens||e[7]!==s.selectedYears?(N=j=>s.selectedYears.includes(j.year)&&s.selectedNrens.includes(j.nren)&&j.business_continuity_plans!==null,e[6]=s.selectedNrens,e[7]=s.selectedYears,e[8]=N):N=e[8],l=r.filter(N);const S=_e(l,"business_continuity_plans");c=ps(S,Mx),e[1]=r,e[2]=s.selectedNrens,e[3]=s.selectedYears,e[4]=l,e[5]=c}else l=e[4],c=e[5];const d=c;let h,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=["Yes","No"],u=new Map([[h[0],"True"],[h[1],"False"]]),e[9]=h,e[10]=u):(h=e[9],u=e[10]);const p=u;let b;e[11]!==o?(b=[...o],e[11]=o,e[12]=b):b=e[12];let m;e[13]!==a?(m=a.values(),e[13]=a,e[14]=m):m=e[14];let g;e[15]!==m?(g=[...m],e[15]=m,e[16]=g):g=e[16];let x;e[17]!==b||e[18]!==g?(x={availableYears:b,availableNrens:g},e[17]=b,e[18]=g,e[19]=x):x=e[19];let y;e[20]!==s||e[21]!==i||e[22]!==x?(y=f.jsx(K,{filterOptions:x,filterSelection:s,setFilterSelection:i,coloredYears:!0}),e[20]=s,e[21]=i,e[22]=x,e[23]=y):y=e[23];const v=y;let _;e[24]!==d?(_=f.jsx(Z,{children:f.jsx(Me,{columns:h,columnLookup:p,dataLookup:d})}),e[24]=d,e[25]=_):_=e[25];let w;return e[26]!==v||e[27]!==l||e[28]!==_?(w=f.jsx(q,{title:"NREN Business Continuity Planning",description:`The table below shows which NRENs have business continuity plans in place to 
-            ensure business continuation and operations. Extra details about whether the NREN 
-            complies with any international standards, and whether they test the continuity plans 
-            regularly can be seen by hovering over the marker. The presence of this extra information 
-            is denoted by a black ring around the marker.`,category:L.Policy,filter:v,data:l,filename:"business_continuity_nrens_per_year",children:_}),e[26]=v,e[27]=l,e[28]=_,e[29]=w):w=e[29],w}function Mx(e,t){if(t.business_continuity_plans_specifics)return t.business_continuity_plans_specifics}ie.register($e,Fe,et,Qe,We,Ze);function Rx(){const e=A.c(40);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=k=>k.amount!=null,e[0]=t):t=e[0];const n=t,{filterSelection:s,setFilterSelection:i}=R.useContext(X),{data:r,years:o,nrens:a}=J("/api/central-procurement",i,n);let l,c,d,h;if(e[1]!==r||e[2]!==s||e[3]!==a||e[4]!==i||e[5]!==o){let k;e[10]!==s.selectedNrens||e[11]!==s.selectedYears?(k=T=>s.selectedYears.includes(T.year)&&s.selectedNrens.includes(T.nren),e[10]=s.selectedNrens,e[11]=s.selectedYears,e[12]=k):k=e[12],d=r.filter(k),l=Si(d,"amount","Procurement Value");let j;e[13]!==o?(j=[...o],e[13]=o,e[14]=j):j=e[14];let C;e[15]!==a?(C=a.values(),e[15]=a,e[16]=C):C=e[16];let E;e[17]!==C?(E=[...C],e[17]=C,e[18]=E):E=e[18];let M;e[19]!==j||e[20]!==E?(M={availableYears:j,availableNrens:E},e[19]=j,e[20]=E,e[21]=M):M=e[21];let P;e[22]!==s||e[23]!==i||e[24]!==M?(P=f.jsx(K,{filterOptions:M,filterSelection:s,setFilterSelection:i}),e[22]=s,e[23]=i,e[24]=M,e[25]=P):P=e[25],c=P,h=Array.from(new Set(d.map(Px))),e[1]=r,e[2]=s,e[3]=a,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=d,e[9]=h}else l=e[6],c=e[7],d=e[8],h=e[9];const u=h.length,p=Math.max(u*s.selectedYears.length*1.5+5,50);let b;e[26]===Symbol.for("react.memo_cache_sentinel")?(b=f.jsx("span",{children:"Some NRENs centrally procure software for their customers. The graph below shows the total value (in Euro) of software procured in the previous year by the NRENs. Please note you can only see the select NRENs which carry out this type of procurement. Those who do not offer this are not selectable."}),e[26]=b):b=e[26];const m=b;let g;e[27]===Symbol.for("react.memo_cache_sentinel")?(g=bs({title:"Software Procurement Value",valueTransform(k){return`${new Intl.NumberFormat(void 0,{style:"currency",currency:"EUR",trailingZeroDisplay:"stripIfInteger"}).format(k)}`}}),e[27]=g):g=e[27];const x=g,y=`${p}rem`;let v;e[28]!==y?(v={height:y},e[28]=y,e[29]=v):v=e[29];let _;e[30]===Symbol.for("react.memo_cache_sentinel")?(_=[Tn],e[30]=_):_=e[30];let w;e[31]!==l?(w=f.jsx(Bt,{data:l,options:x,plugins:_}),e[31]=l,e[32]=w):w=e[32];let N;e[33]!==v||e[34]!==w?(N=f.jsx(Z,{children:f.jsx("div",{className:"chart-container",style:v,children:w})}),e[33]=v,e[34]=w,e[35]=N):N=e[35];let S;return e[36]!==c||e[37]!==d||e[38]!==N?(S=f.jsx(q,{title:"Value of Software Procured for Customers by NRENs",description:m,category:L.Policy,filter:c,data:d,filename:"central_procurement",children:N}),e[36]=c,e[37]=d,e[38]=N,e[39]=S):S=e[39],S}function Px(e){return e.nren}function Tx(){const e=A.c(23);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=x=>!!x.strategic_plan,e[0]=t):t=e[0];const n=t,{filterSelection:s,setFilterSelection:i}=R.useContext(X),{data:r,nrens:o}=J("/api/policy",i,n);let a,l;if(e[1]!==r||e[2]!==s.selectedNrens){const x=r?Pn(r):[];let y;e[5]!==s.selectedNrens?(y=w=>s.selectedNrens.includes(w.nren),e[5]=s.selectedNrens,e[6]=y):y=e[6],a=x.filter(y);const v=Ve(a);let _;e[7]===Symbol.for("react.memo_cache_sentinel")?(_=(w,N)=>{const S=N.strategic_plan;w[S]=S},e[7]=_):_=e[7],l=nt(v,_),e[1]=r,e[2]=s.selectedNrens,e[3]=a,e[4]=l}else a=e[3],l=e[4];const c=l;let d;e[8]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[8]=d):d=e[8];let h;e[9]!==o?(h=o.values(),e[9]=o,e[10]=h):h=e[10];let u;e[11]!==h?(u={availableYears:d,availableNrens:[...h]},e[11]=h,e[12]=u):u=e[12];let p;e[13]!==s||e[14]!==i||e[15]!==u?(p=f.jsx(K,{filterOptions:u,filterSelection:s,setFilterSelection:i}),e[13]=s,e[14]=i,e[15]=u,e[16]=p):p=e[16];const b=p;let m;e[17]!==c?(m=f.jsx(Z,{children:f.jsx(ht,{data:c,columnTitle:"Corporate Strategy",noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[17]=c,e[18]=m):m=e[18];let g;return e[19]!==b||e[20]!==a||e[21]!==m?(g=f.jsx(q,{title:"NREN Corporate Strategies",description:`The table below contains links to the NRENs most recent corporate strategic plans. 
-            NRENs are asked if updates have been made to their corporate strategy over the previous year. 
-            To avoid showing outdated links, only the most recent responses are shown.`,category:L.Policy,filter:b,data:a,filename:"nren_corporate_strategy",children:m}),e[19]=b,e[20]=a,e[21]=m,e[22]=g):g=e[22],g}function Ox(){const e=A.c(51),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/crisis-exercises",n);let o,a;if(e[0]!==s||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let P;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(P=T=>t.selectedYears.includes(T.year)&&t.selectedNrens.includes(T.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=P):P=e[7],o=s.filter(P),a=_e(o,"exercise_descriptions"),e[0]=s,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c;e[8]!==i?(c=[...i],e[8]=i,e[9]=c):c=e[9];let d;e[10]!==r?(d=r.values(),e[10]=r,e[11]=d):d=e[11];let h;e[12]!==d?(h=[...d],e[12]=d,e[13]=h):h=e[13];let u;e[14]!==c||e[15]!==h?(u={availableYears:c,availableNrens:h},e[14]=c,e[15]=h,e[16]=u):u=e[16];let p;e[17]!==t||e[18]!==n||e[19]!==u?(p=f.jsx(K,{filterOptions:u,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=u,e[20]=p):p=e[20];const b=p;let m,g,x,y,v,_,w,N,S,k,j;if(e[21]!==b||e[22]!==o){const P={geant_workshops:"We participate in GEANT Crisis workshops such as CLAW",national_excercises:"We participated in National crisis exercises ",tabletop_exercises:"We run our own tabletop exercises",simulation_excercises:"We run our own simulation exercises",other_excercises:"We have done/participated in other exercises or trainings",real_crisis:"We had a real crisis",internal_security_programme:"We run an internal security awareness programme",none:"No, we have not done any crisis exercises or trainings"};y=new Map(Object.entries(P).map(Dx)),x=q,S="Crisis Exercises - NREN Operation and Participation",k=`Many NRENs run or participate in crisis exercises to test procedures and train employees. 
-            The table below shows whether NRENs have run or participated in an exercise in the previous year. `,j=L.Policy,v=b,_=o,w="crisis_exercise_nrens_per_year",g=Z,m=Me,N=Object.values(P),e[21]=b,e[22]=o,e[23]=m,e[24]=g,e[25]=x,e[26]=y,e[27]=v,e[28]=_,e[29]=w,e[30]=N,e[31]=S,e[32]=k,e[33]=j}else m=e[23],g=e[24],x=e[25],y=e[26],v=e[27],_=e[28],w=e[29],N=e[30],S=e[31],k=e[32],j=e[33];let C;e[34]!==m||e[35]!==y||e[36]!==l||e[37]!==N?(C=f.jsx(m,{columns:N,dataLookup:l,circle:!0,columnLookup:y}),e[34]=m,e[35]=y,e[36]=l,e[37]=N,e[38]=C):C=e[38];let E;e[39]!==g||e[40]!==C?(E=f.jsx(g,{children:C}),e[39]=g,e[40]=C,e[41]=E):E=e[41];let M;return e[42]!==x||e[43]!==v||e[44]!==_||e[45]!==w||e[46]!==E||e[47]!==S||e[48]!==k||e[49]!==j?(M=f.jsx(x,{title:S,description:k,category:j,filter:v,data:_,filename:w,children:E}),e[42]=x,e[43]=v,e[44]=_,e[45]=w,e[46]=E,e[47]=S,e[48]=k,e[49]=j,e[50]=M):M=e[50],M}function Dx(e){const[t,n]=e;return[n,t]}function Ax(){const e=A.c(30);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=N=>N.crisis_management_procedure!==null,e[0]=t):t=e[0];const n=t,{filterSelection:s,setFilterSelection:i}=R.useContext(X),{data:r,years:o,nrens:a}=J("/api/standards",i,n);let l,c;if(e[1]!==r||e[2]!==s.selectedNrens||e[3]!==s.selectedYears){let N;e[6]!==s.selectedNrens||e[7]!==s.selectedYears?(N=S=>s.selectedYears.includes(S.year)&&s.selectedNrens.includes(S.nren)&&n(S),e[6]=s.selectedNrens,e[7]=s.selectedYears,e[8]=N):N=e[8],l=r.filter(N),c=_e(l,"crisis_management_procedure"),e[1]=r,e[2]=s.selectedNrens,e[3]=s.selectedYears,e[4]=l,e[5]=c}else l=e[4],c=e[5];const d=c;let h,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=["Yes","No"],u=new Map([[h[0],"True"],[h[1],"False"]]),e[9]=h,e[10]=u):(h=e[9],u=e[10]);const p=u;let b;e[11]!==o?(b=[...o],e[11]=o,e[12]=b):b=e[12];let m;e[13]!==a?(m=a.values(),e[13]=a,e[14]=m):m=e[14];let g;e[15]!==m?(g=[...m],e[15]=m,e[16]=g):g=e[16];let x;e[17]!==b||e[18]!==g?(x={availableYears:b,availableNrens:g},e[17]=b,e[18]=g,e[19]=x):x=e[19];let y;e[20]!==s||e[21]!==i||e[22]!==x?(y=f.jsx(K,{filterOptions:x,filterSelection:s,setFilterSelection:i,coloredYears:!0}),e[20]=s,e[21]=i,e[22]=x,e[23]=y):y=e[23];const v=y;let _;e[24]!==d?(_=f.jsx(Z,{children:f.jsx(Me,{columns:h,columnLookup:p,dataLookup:d})}),e[24]=d,e[25]=_):_=e[25];let w;return e[26]!==v||e[27]!==l||e[28]!==_?(w=f.jsx(q,{title:"Crisis Management Procedures",description:"The table below shows whether NRENs have a formal crisis management procedure.",category:L.Policy,filter:v,data:l,filename:"crisis_management_nrens_per_year",children:_}),e[26]=v,e[27]=l,e[28]=_,e[29]=w):w=e[29],w}function Lx(){const e=A.c(28),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/eosc-listings",n);let o,a;if(e[0]!==s||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let v;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(v=w=>t.selectedYears.includes(w.year)&&t.selectedNrens.includes(w.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=v):v=e[7],o=s.filter(v);const _=ms(o);a=nt(_,Ix),e[0]=s,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c;e[8]!==i?(c=[...i],e[8]=i,e[9]=c):c=e[9];let d;e[10]!==r?(d=r.values(),e[10]=r,e[11]=d):d=e[11];let h;e[12]!==d?(h=[...d],e[12]=d,e[13]=h):h=e[13];let u;e[14]!==c||e[15]!==h?(u={availableYears:c,availableNrens:h},e[14]=c,e[15]=h,e[16]=u):u=e[16];let p;e[17]!==t||e[18]!==n||e[19]!==u?(p=f.jsx(K,{filterOptions:u,filterSelection:t,setFilterSelection:n}),e[17]=t,e[18]=n,e[19]=u,e[20]=p):p=e[20];const b=p;let m;e[21]===Symbol.for("react.memo_cache_sentinel")?(m=f.jsx("span",{children:"Some NRENs choose to list services on the EOSC portal, these can be seen in the table below. Click on the name of the NREN to expand the detail and see the names of the services they list."}),e[21]=m):m=e[21];const g=m;let x;e[22]!==l?(x=f.jsx(Z,{children:f.jsx(ht,{data:l,columnTitle:"Service Name",dottedBorder:!0,keysAreURLs:!0,noDots:!0})}),e[22]=l,e[23]=x):x=e[23];let y;return e[24]!==b||e[25]!==o||e[26]!==x?(y=f.jsx(q,{title:"NREN Services Listed on the EOSC Portal",description:g,category:L.Policy,filter:b,data:o,filename:"nren_eosc_listings",children:x}),e[24]=b,e[25]=o,e[26]=x,e[27]=y):y=e[27],y}function Ix(e,t){for(const n of t)for(const s of n.service_names)e[s]=s}function $x(){const e=A.c(21),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,nrens:i}=J("/api/policy",n);let r,o;if(e[0]!==s||e[1]!==t.selectedNrens){const m=s?Pn(s):[];let g;e[4]!==t.selectedNrens?(g=y=>t.selectedNrens.includes(y.nren),e[4]=t.selectedNrens,e[5]=g):g=e[5],r=m.filter(g);const x=Ve(r);o=nt(x,Fx),e[0]=s,e[1]=t.selectedNrens,e[2]=r,e[3]=o}else r=e[2],o=e[3];const a=o;let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[6]=l):l=e[6];let c;e[7]!==i?(c=i.values(),e[7]=i,e[8]=c):c=e[8];let d;e[9]!==c?(d={availableYears:l,availableNrens:[...c]},e[9]=c,e[10]=d):d=e[10];let h;e[11]!==t||e[12]!==n||e[13]!==d?(h=f.jsx(K,{filterOptions:d,filterSelection:t,setFilterSelection:n}),e[11]=t,e[12]=n,e[13]=d,e[14]=h):h=e[14];const u=h;let p;e[15]!==a?(p=f.jsx(Z,{children:f.jsx(ht,{data:a,columnTitle:"Policies",noDots:!0,dottedBorder:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=a,e[16]=p):p=e[16];let b;return e[17]!==u||e[18]!==r||e[19]!==p?(b=f.jsx(q,{title:"NREN Policies",description:"The table shows links to the NRENs policies. We only include links from the most recent response from each NREN.",category:L.Policy,filter:u,data:r,filename:"nren_policies",children:p}),e[17]=u,e[18]=r,e[19]=p,e[20]=b):b=e[20],b}function Fx(e,t){[["acceptable_use","Acceptable Use Policy"],["connectivity","Connectivity Policy"],["data_protection","Data Protection Policy"],["environmental","Environmental Policy"],["equal_opportunity","Equal Opportunity Policy"],["gender_equality","Gender Equality Plan"],["privacy_notice","Privacy Notice"],["strategic_plan","Strategic Plan"]].forEach(s=>{const[i,r]=s,o=t[i];o&&(e[r]=o)})}function Yx(){const e=A.c(51),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/security-controls",n);let o,a;if(e[0]!==s||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let P;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(P=T=>t.selectedYears.includes(T.year)&&t.selectedNrens.includes(T.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=P):P=e[7],o=s.filter(P),a=_e(o,"security_control_descriptions"),e[0]=s,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c;e[8]!==i?(c=[...i],e[8]=i,e[9]=c):c=e[9];let d;e[10]!==r?(d=r.values(),e[10]=r,e[11]=d):d=e[11];let h;e[12]!==d?(h=[...d],e[12]=d,e[13]=h):h=e[13];let u;e[14]!==c||e[15]!==h?(u={availableYears:c,availableNrens:h},e[14]=c,e[15]=h,e[16]=u):u=e[16];let p;e[17]!==t||e[18]!==n||e[19]!==u?(p=f.jsx(K,{filterOptions:u,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=u,e[20]=p):p=e[20];const b=p;let m,g,x,y,v,_,w,N,S,k,j;if(e[21]!==b||e[22]!==o){const P={anti_virus:"Anti Virus",anti_spam:"Anti-Spam",firewall:"Firewall",ddos_mitigation:"DDoS mitigation",monitoring:"Network monitoring",ips_ids:"IPS/IDS",acl:"ACL",segmentation:"Network segmentation",integrity_checking:"Integrity checking"};y=new Map(Object.entries(P).map(Bx)),x=q,S="Security Controls Used by NRENs",k=`The table below shows the different security controls, such as anti-virus, integrity checkers, and systemic firewalls used by 
-            NRENs to protect their assets. Where 'other' controls are mentioned, hover over the marker for more information.`,j=L.Policy,v=b,_=o,w="security_control_nrens_per_year",g=Z,m=Me,N=Object.values(P),e[21]=b,e[22]=o,e[23]=m,e[24]=g,e[25]=x,e[26]=y,e[27]=v,e[28]=_,e[29]=w,e[30]=N,e[31]=S,e[32]=k,e[33]=j}else m=e[23],g=e[24],x=e[25],y=e[26],v=e[27],_=e[28],w=e[29],N=e[30],S=e[31],k=e[32],j=e[33];let C;e[34]!==m||e[35]!==y||e[36]!==l||e[37]!==N?(C=f.jsx(m,{columns:N,dataLookup:l,circle:!0,columnLookup:y}),e[34]=m,e[35]=y,e[36]=l,e[37]=N,e[38]=C):C=e[38];let E;e[39]!==g||e[40]!==C?(E=f.jsx(g,{children:C}),e[39]=g,e[40]=C,e[41]=E):E=e[41];let M;return e[42]!==x||e[43]!==v||e[44]!==_||e[45]!==w||e[46]!==E||e[47]!==S||e[48]!==k||e[49]!==j?(M=f.jsx(x,{title:S,description:k,category:j,filter:v,data:_,filename:w,children:E}),e[42]=x,e[43]=v,e[44]=_,e[45]=w,e[46]=E,e[47]=S,e[48]=k,e[49]=j,e[50]=M):M=e[50],M}function Bx(e){const[t,n]=e;return[n,t]}function zx(){const e=A.c(29),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/service-management",n);let o,a;if(e[0]!==s||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let _;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(_=w=>t.selectedYears.includes(w.year)&&t.selectedNrens.includes(w.nren)&&w.service_level_targets!==null,e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=_):_=e[7],o=s.filter(_),a=_e(o,"service_level_targets"),e[0]=s,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c,d;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=["Yes","No"],d=new Map([[c[0],"True"],[c[1],"False"]]),e[8]=c,e[9]=d):(c=e[8],d=e[9]);const h=d;let u;e[10]!==i?(u=[...i],e[10]=i,e[11]=u):u=e[11];let p;e[12]!==r?(p=r.values(),e[12]=r,e[13]=p):p=e[13];let b;e[14]!==p?(b=[...p],e[14]=p,e[15]=b):b=e[15];let m;e[16]!==u||e[17]!==b?(m={availableYears:u,availableNrens:b},e[16]=u,e[17]=b,e[18]=m):m=e[18];let g;e[19]!==t||e[20]!==n||e[21]!==m?(g=f.jsx(K,{filterOptions:m,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[19]=t,e[20]=n,e[21]=m,e[22]=g):g=e[22];const x=g;let y;e[23]!==l?(y=f.jsx(Z,{children:f.jsx(Me,{columns:c,columnLookup:h,dataLookup:l})}),e[23]=l,e[24]=y):y=e[24];let v;return e[25]!==x||e[26]!==o||e[27]!==y?(v=f.jsx(q,{title:"NRENs Offering Service Level Targets",description:`The table below shows which NRENs offer Service Levels Targets for their services. 
-            If NRENs have never responded to this question in the survey, they are excluded. `,category:L.Policy,filter:x,data:o,filename:"service_level_targets",children:y}),e[25]=x,e[26]=o,e[27]=y,e[28]=v):v=e[28],v}function Wx(){const e=A.c(29),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/service-management",n);let o,a;if(e[0]!==s||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let _;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(_=w=>t.selectedYears.includes(w.year)&&t.selectedNrens.includes(w.nren)&&w.service_management_framework!==null,e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=_):_=e[7],o=s.filter(_),a=_e(o,"service_management_framework"),e[0]=s,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c,d;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=["Yes","No"],d=new Map([[c[0],"True"],[c[1],"False"]]),e[8]=c,e[9]=d):(c=e[8],d=e[9]);const h=d;let u;e[10]!==i?(u=[...i],e[10]=i,e[11]=u):u=e[11];let p;e[12]!==r?(p=r.values(),e[12]=r,e[13]=p):p=e[13];let b;e[14]!==p?(b=[...p],e[14]=p,e[15]=b):b=e[15];let m;e[16]!==u||e[17]!==b?(m={availableYears:u,availableNrens:b},e[16]=u,e[17]=b,e[18]=m):m=e[18];let g;e[19]!==t||e[20]!==n||e[21]!==m?(g=f.jsx(K,{filterOptions:m,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[19]=t,e[20]=n,e[21]=m,e[22]=g):g=e[22];const x=g;let y;e[23]!==l?(y=f.jsx(Z,{children:f.jsx(Me,{columns:c,columnLookup:h,dataLookup:l})}),e[23]=l,e[24]=y):y=e[24];let v;return e[25]!==x||e[26]!==o||e[27]!==y?(v=f.jsx(q,{title:"NRENs Operating a Formal Service Management Framework",description:`The chart below shows which NRENs operate a formal service management framework 
-            for all of their services. NRENs which have never answered this question cannot be selected.`,category:L.Policy,filter:x,data:o,filename:"service_management_framework",children:y}),e[25]=x,e[26]=o,e[27]=y,e[28]=v):v=e[28],v}const Vx=f.jsx("span",{children:"✔"}),Hx=8;function zc(e){const t=A.c(12),{dataLookup:n,rowInfo:s,categoryLookup:i,isTickIcon:r}=e,o=r===void 0?!1:r;if(!n){let d;return t[0]===Symbol.for("react.memo_cache_sentinel")?(d=f.jsx("div",{className:"matrix-border"}),t[0]=d):d=t[0],d}let a;if(t[1]!==i||t[2]!==n||t[3]!==o||t[4]!==s){let d;t[6]!==n||t[7]!==o||t[8]!==s?(d=h=>{const[u,p]=h,b=Object.entries(s).map(x=>{const[y,v]=x,_=[];return Array.from(n.entries()).sort(Kx).forEach(w=>{const[,N]=w;N.forEach(S=>{const k=S.get(u);if(!k)return;let j=k[v];j!=null&&(j=Object.values(j)[0]);const C=j!=null&&o?Vx:j;_.push(C)})}),_.length?f.jsxs("tr",{children:[f.jsx("th",{className:"fixed-column",children:y}),_.map(qx)]},y):null}),m=Array.from(n.entries()).sort(Xx).reduce((x,y)=>{const[v,_]=y;return Array.from(_.entries()).forEach(w=>{const[N,S]=w;S.get(u)&&(x[v]||(x[v]=[]),x[v].push(N))}),x},{});return f.jsx(rn,{title:p,startCollapsed:!0,theme:"-matrix",children:b?f.jsx("div",{className:"table-responsive",children:f.jsxs(Ft,{className:"matrix-table",bordered:!0,children:[f.jsx("thead",{children:(()=>{const x=Object.entries(m);return f.jsxs(f.Fragment,{children:[f.jsxs("tr",{children:[f.jsx("th",{className:"fixed-column"}),x.map(Gx)]}),f.jsxs("tr",{children:[f.jsx("th",{className:"fixed-column"}),x.flatMap(Ux)]})]})})()}),f.jsx("tbody",{children:b})]})}):f.jsx("div",{style:{paddingLeft:"5%"},children:f.jsx("p",{children:"No data available for this section."})})},u)},t[6]=n,t[7]=o,t[8]=s,t[9]=d):d=t[9],a=Object.entries(i).map(d),t[1]=i,t[2]=n,t[3]=o,t[4]=s,t[5]=a}else a=t[5];const l=a;let c;return t[10]!==l?(c=f.jsx("div",{className:"matrix-border",children:l}),t[10]=l,t[11]=c):c=t[11],c}function Ux(e){const[t,n]=e;return n.map(s=>f.jsx("th",{children:s},`${t}-${s}`))}function Gx(e){const[t,n]=e;return f.jsx("th",{colSpan:n.length,style:{width:`${n.length*Hx}rem`},children:t},t)}function Xx(e,t){const[n]=e,[s]=t;return n.localeCompare(s)}function qx(e,t){return f.jsx("td",{children:e},t)}function Kx(e,t){const[n]=e,[s]=t;return n.localeCompare(s)}function Jx(){const e=A.c(29),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/services-offered",n);let o,a;if(e[0]!==t.selectedNrens||e[1]!==t.selectedYears||e[2]!==s){let _;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(_=w=>t.selectedYears.includes(w.year)&&t.selectedNrens.includes(w.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=_):_=e[7],o=s.filter(_),a=yn(o,["service_category"],"user_category"),e[0]=t.selectedNrens,e[1]=t.selectedYears,e[2]=s,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c;e[8]!==i?(c=[...i],e[8]=i,e[9]=c):c=e[9];let d;e[10]!==r?(d=r.values(),e[10]=r,e[11]=d):d=e[11];let h;e[12]!==d?(h=[...d],e[12]=d,e[13]=h):h=e[13];let u;e[14]!==c||e[15]!==h?(u={availableYears:c,availableNrens:h},e[14]=c,e[15]=h,e[16]=u):u=e[16];let p;e[17]!==t||e[18]!==n||e[19]!==u?(p=f.jsx(K,{filterOptions:u,filterSelection:t,setFilterSelection:n}),e[17]=t,e[18]=n,e[19]=u,e[20]=p):p=e[20];const b=p;let m;e[21]===Symbol.for("react.memo_cache_sentinel")?(m={"Identity/T&I":"identity",Multimedia:"multimedia","Professional services":"professional_services","Network services":"network_services",Collaboration:"collaboration",Security:"security","Storage and Hosting":"storage_and_hosting","ISP support":"isp_support"},e[21]=m):m=e[21];const g=m;let x;e[22]===Symbol.for("react.memo_cache_sentinel")?(x=f.jsx("span",{children:"The table below shows the different types of users served by NRENs. Selecting the institution type will expand the detail to show the categories of services offered by NRENs, with a tick indicating that the NREN offers a specific category of service to the type of user."}),e[22]=x):x=e[22];let y;e[23]!==l?(y=f.jsx(Z,{children:f.jsx(zc,{dataLookup:l,rowInfo:g,categoryLookup:ii,isTickIcon:!0})}),e[23]=l,e[24]=y):y=e[24];let v;return e[25]!==b||e[26]!==o||e[27]!==y?(v=f.jsx(q,{title:"Services Offered by NRENs by Types of Users",description:x,category:L.Policy,filter:b,data:o,filename:"nren_services_offered",children:y}),e[25]=b,e[26]=o,e[27]=y,e[28]=v):v=e[28],v}function Zx(){const e=A.c(24),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,nrens:i}=J("/api/institution-urls",n);let r,o,a;if(e[0]!==s||e[1]!==t||e[2]!==i||e[3]!==n){const h=s?Pn(s):[];let u;e[7]!==t.selectedNrens?(u=_=>t.selectedNrens.includes(_.nren),e[7]=t.selectedNrens,e[8]=u):u=e[8];const p=h.filter(u),b=Ve(p);r=nt(b,ey);let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=[],e[9]=g):g=e[9];let x;e[10]!==i?(x=i.values(),e[10]=i,e[11]=x):x=e[11];let y;e[12]!==x?(y={availableYears:g,availableNrens:[...x]},e[12]=x,e[13]=y):y=e[13];let v;e[14]!==t||e[15]!==n||e[16]!==y?(v=f.jsx(K,{filterOptions:y,filterSelection:t,setFilterSelection:n}),e[14]=t,e[15]=n,e[16]=y,e[17]=v):v=e[17],o=v,a=p.map(Qx),e[0]=s,e[1]=t,e[2]=i,e[3]=n,e[4]=r,e[5]=o,e[6]=a}else r=e[4],o=e[5],a=e[6];const l=a;let c;e[18]!==r?(c=f.jsx(Z,{children:f.jsx(ht,{data:r,columnTitle:"Institution URLs",keysAreURLs:!0,noDots:!0})}),e[18]=r,e[19]=c):c=e[19];let d;return e[20]!==l||e[21]!==o||e[22]!==c?(d=f.jsx(q,{title:"Webpages Listing Institutions and Organisations Connected to NREN Networks",description:"Many NRENs have a page on their website listing user institutions. Links to the pages are shown in the table below.",category:L.ConnectedUsers,filter:o,data:l,filename:"institution_urls",children:c}),e[20]=l,e[21]=o,e[22]=c,e[23]=d):d=e[23],d}function Qx(e){return{...e,urls:(e.urls??[]).join(", ")}}function ey(e,t){const n=Ir(t);if(n!=null)for(const[s,i]of Object.entries(n))e[s]=i}const Wc={[ee.ConnectedProportion]:"Proportion of Different Categories of Institutions Served by NRENs",[ee.ConnectivityLevel]:"Level of IP Connectivity by Institution Type",[ee.ConnectionCarrier]:"Methods of Carrying IP Traffic to Users",[ee.ConnectivityLoad]:"Connectivity Load",[ee.ConnectivityGrowth]:"Connectivity Growth",[ee.CommercialChargingLevel]:"Commercial Charging Level",[ee.CommercialConnectivity]:"Commercial Connectivity"},ty={[ee.ConnectedProportion]:f.jsxs("span",{children:["European NRENs all have different connectivity remits, as is shown in the table below. The categories of institutions make use of the ISCED 2011 classification system, the UNESCO scheme for International Standard Classification of Education.",f.jsx("br",{}),"The table shows whether a particular category of institution falls within the connectivity remit of the NREN, the actual number of such institutions connected, the % market share this represents, and the actual number of end users served in the category."]}),[ee.ConnectivityLevel]:f.jsxs("span",{children:["The table below shows the average level of connectivity for each category of institution. The connectivity remit of different NRENs is shown on a different page, and NRENs are asked, at a minimum, to provide information about the typical and highest capacities (in Mbit/s) at which Universities and Research Institutes are connected.",f.jsx("br",{}),"NRENs are also asked to show proportionally how many institutions are connected at the highest capacity they offer."]}),[ee.ConnectionCarrier]:f.jsxs("span",{children:["The table below shows the different mechanisms employed by NRENs to carry traffic to the different types of users they serve. Not all NRENs connect all of the types of institution listed below - details of connectivity remits can be found here: ",f.jsx($,{to:"/connected-proportion",className:"",children:f.jsx("span",{children:Wc[ee.ConnectedProportion]})})]}),[ee.ConnectivityLoad]:f.jsx("span",{children:"The table below shows the traffic load in Mbit/s to and from institutions served by NRENs; both the average load, and peak load, when given. The types of institutions are broken down using the ISCED 2011 classification system (the UNESCO scheme for International Standard Classification of Education), plus other types."}),[ee.ConnectivityGrowth]:f.jsx("span",{children:"The table below illustrates the anticipated traffic growth within NREN networks over the next three years."}),[ee.CommercialChargingLevel]:f.jsx("span",{children:"The table below outlines the typical charging levels for various types of commercial connections."}),[ee.CommercialConnectivity]:f.jsx("span",{children:"The table below outlines the types of commercial organizations NRENs connect."})},Hi={[ee.ConnectedProportion]:{"Remit cover connectivity":"coverage","Number of institutions connected":"number_connected","Percentage market share of institutions connected":"market_share","Number of users served":"users_served"},[ee.ConnectivityLevel]:{"Typical link speed (Mbit/s):":"typical_speed","Highest speed link (Mbit/s):":"highest_speed","Proportionally how many institutions in this category are connected at the highest capacity? (%):":"highest_speed_proportion"},[ee.ConnectionCarrier]:{"Commercial Provider Backbone":"commercial_provider_backbone","NREN Local Loops":"nren_local_loops","Regional NREN Backbone":"regional_nren_backbone",MAN:"man",Other:"other"},[ee.ConnectivityLoad]:{"Average Load From Institutions (Mbit/s)":"average_load_from_institutions","Average Load To Institutions (Mbit/s)":"average_load_to_institutions","Peak Load To Institution (Mbit/s)":"peak_load_to_institutions","Peak Load From Institution (Mbit/s)":"peak_load_from_institutions"},[ee.ConnectivityGrowth]:{"Percentage growth":"growth"},[ee.CommercialChargingLevel]:{"No charges applied if requested by R&E users":"no_charges_if_r_e_requested","Same charging model as for R&E users":"same_as_r_e_charges","Charges typically higher than for R&E users":"higher_than_r_e_charges","Charges typically lower than for R&E users":"lower_than_r_e_charges"},[ee.CommercialConnectivity]:{"No - but we offer a direct or IX peering":"no_but_direct_peering","No - not eligible for policy reasons":"no_policy","No - financial restrictions (NREN is unable to charge/recover costs)":"no_financial","No - other reason / unsure":"no_other","Yes - National NREN access only":"yes_national_nren","Yes - Including transit to other networks":"yes_incl_other","Yes - only if sponsored by a connected institution":"yes_if_sponsored"}};function en(e){const t=A.c(36),{page:n}=e,s=`/api/connected-${n.toString()}`,{filterSelection:i,setFilterSelection:r}=R.useContext(X),{data:o,years:a,nrens:l}=J(s,r);let c,d,h,u;if(t[0]!==o||t[1]!==i.selectedNrens||t[2]!==i.selectedYears||t[3]!==n){let j;t[8]!==i.selectedNrens||t[9]!==i.selectedYears?(j=C=>i.selectedYears.includes(C.year)&&i.selectedNrens.includes(C.nren),t[8]=i.selectedNrens,t[9]=i.selectedYears,t[10]=j):j=t[10],u=o.filter(j),h=!1,n==ee.CommercialConnectivity?(c=io,h=!0,d=yn(u,Object.keys(io),void 0)):n==ee.CommercialChargingLevel?(c=ro,h=!0,d=yn(u,Object.keys(ro),void 0)):n==ee.ConnectionCarrier?(c=ii,h=!0,d=yn(u,["carry_mechanism"],"user_category")):(n==ee.ConnectedProportion,c=ii,d=yn(u,Object.values(Hi[n]),"user_category",!1)),t[0]=o,t[1]=i.selectedNrens,t[2]=i.selectedYears,t[3]=n,t[4]=c,t[5]=d,t[6]=h,t[7]=u}else c=t[4],d=t[5],h=t[6],u=t[7];let p;t[11]!==a?(p=[...a],t[11]=a,t[12]=p):p=t[12];let b;t[13]!==l?(b=l.values(),t[13]=l,t[14]=b):b=t[14];let m;t[15]!==b?(m=[...b],t[15]=b,t[16]=m):m=t[16];let g;t[17]!==p||t[18]!==m?(g={availableYears:p,availableNrens:m},t[17]=p,t[18]=m,t[19]=g):g=t[19];let x;t[20]!==i||t[21]!==r||t[22]!==g?(x=f.jsx(K,{filterOptions:g,filterSelection:i,setFilterSelection:r}),t[20]=i,t[21]=r,t[22]=g,t[23]=x):x=t[23];const y=x,v=Hi[n],_=`nren_connected_${n.toString()}`,w=Wc[n],N=ty[n];let S;t[24]!==c||t[25]!==d||t[26]!==h||t[27]!==v?(S=f.jsx(Z,{children:f.jsx(zc,{dataLookup:d,rowInfo:v,isTickIcon:h,categoryLookup:c})}),t[24]=c,t[25]=d,t[26]=h,t[27]=v,t[28]=S):S=t[28];let k;return t[29]!==_||t[30]!==y||t[31]!==u||t[32]!==w||t[33]!==N||t[34]!==S?(k=f.jsx(q,{title:w,description:N,category:L.ConnectedUsers,filter:y,data:u,filename:_,children:S}),t[29]=_,t[30]=y,t[31]=u,t[32]=w,t[33]=N,t[34]=S,t[35]=k):k=t[35],k}function ny({data:e,dottedBorder:t=!1,columns:n}){return Array.from(e.entries()).map(([s,i])=>Array.from(i.entries()).map(([r,o],a)=>f.jsxs("tr",{className:t?"dotted-border":"",children:[f.jsx("td",{className:"pt-3 nren-column text-nowrap",children:a===0&&s}),f.jsx("td",{className:"pt-3 year-column",children:r}),Object.keys(n).map((l,c)=>f.jsx("td",{className:"pt-3 blue-column",children:o[l]},c))]},s+r)))}function sy(e){const t=A.c(15),{data:n,dottedBorder:s,columns:i}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx("th",{className:"nren-column",children:f.jsx("span",{children:"NREN"})}),t[0]=r):r=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=f.jsx("th",{className:"year-column",children:f.jsx("span",{children:"Year"})}),t[1]=o):o=t[1];let a;t[2]!==i?(a=Object.values(i).map(iy),t[2]=i,t[3]=a):a=t[3];let l;t[4]!==a?(l=f.jsx("thead",{children:f.jsxs("tr",{children:[r,o,a]})}),t[4]=a,t[5]=l):l=t[5];let c;t[6]!==i||t[7]!==n||t[8]!==s?(c=ny({data:n,dottedBorder:s,columns:i}),t[6]=i,t[7]=n,t[8]=s,t[9]=c):c=t[9];let d;t[10]!==c?(d=f.jsx("tbody",{children:c}),t[10]=c,t[11]=d):d=t[11];let h;return t[12]!==l||t[13]!==d?(h=f.jsxs(Ft,{borderless:!0,className:"compendium-table",children:[l,d]}),t[12]=l,t[13]=d,t[14]=h):h=t[14],h}function iy(e,t){return f.jsx("th",{className:"blue-column",children:f.jsx("span",{children:e})},t)}function ry(){const e=A.c(29);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=w=>!!w.remote_campus_connectivity,e[0]=t):t=e[0];const n=t,{filterSelection:s,setFilterSelection:i}=R.useContext(X),{data:r,years:o,nrens:a}=J("/api/remote-campuses",i,n);let l,c;if(e[1]!==r||e[2]!==s.selectedNrens||e[3]!==s.selectedYears){let w;e[6]!==s.selectedNrens||e[7]!==s.selectedYears?(w=S=>s.selectedYears.includes(S.year)&&s.selectedNrens.includes(S.nren),e[6]=s.selectedNrens,e[7]=s.selectedYears,e[8]=w):w=e[8],l=r.filter(w);const N=ms(l);c=nt(N,oy),e[1]=r,e[2]=s.selectedNrens,e[3]=s.selectedYears,e[4]=l,e[5]=c}else l=e[4],c=e[5];const d=c;let h;e[9]!==o?(h=[...o],e[9]=o,e[10]=h):h=e[10];let u;e[11]!==a?(u=a.values(),e[11]=a,e[12]=u):u=e[12];let p;e[13]!==u?(p=[...u],e[13]=u,e[14]=p):p=e[14];let b;e[15]!==h||e[16]!==p?(b={availableYears:h,availableNrens:p},e[15]=h,e[16]=p,e[17]=b):b=e[17];let m;e[18]!==s||e[19]!==i||e[20]!==b?(m=f.jsx(K,{filterOptions:b,filterSelection:s,setFilterSelection:i}),e[18]=s,e[19]=i,e[20]=b,e[21]=m):m=e[21];const g=m;let x;e[22]===Symbol.for("react.memo_cache_sentinel")?(x={countries:"Countries with Remote Campuses",local_r_and_e_connection:"Local R&E Connection"},e[22]=x):x=e[22];const y=x;let v;e[23]!==d?(v=f.jsx(Z,{children:f.jsx(sy,{data:d,columns:y,dottedBorder:!0})}),e[23]=d,e[24]=v):v=e[24];let _;return e[25]!==g||e[26]!==l||e[27]!==v?(_=f.jsx(q,{title:"NREN Connectivity to Remote Campuses in Other Countries",description:"NRENs are asked whether they have remote campuses in other countries, and if so, to list the countries where they have remote campuses and whether they are connected to the local R&E network.",category:L.ConnectedUsers,filter:g,data:l,filename:"nren_remote_campuses",children:v}),e[25]=g,e[26]=l,e[27]=v,e[28]=_):_=e[28],_}function oy(e,t){for(const n of t){if(!n.remote_campus_connectivity)continue;const s=n.connections.map(ly).join(", ");e.countries=s,e.local_r_and_e_connection=n.connections.map(ay).join(", ")}}function ay(e){return e.local_r_and_e_connection?"Yes":"No"}function ly(e){return e.country}function cy(){const e=A.c(30);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=N=>N.alien_wave_third_party!==null,e[0]=t):t=e[0];const n=t,{filterSelection:s,setFilterSelection:i}=R.useContext(X),{data:r,years:o,nrens:a}=J("/api/alien-wave",i,n);let l,c;if(e[1]!==r||e[2]!==s.selectedNrens||e[3]!==s.selectedYears){let N;e[6]!==s.selectedNrens||e[7]!==s.selectedYears?(N=j=>s.selectedYears.includes(j.year)&&s.selectedNrens.includes(j.nren),e[6]=s.selectedNrens,e[7]=s.selectedYears,e[8]=N):N=e[8],l=r.filter(N);const S=_e(l,"alien_wave_third_party");c=ps(S,dy),e[1]=r,e[2]=s.selectedNrens,e[3]=s.selectedYears,e[4]=l,e[5]=c}else l=e[4],c=e[5];const d=c;let h,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=["Yes","Planned","No"],u=new Map([[h[0],"yes"],[h[1],"planned"],[h[2],"no"]]),e[9]=h,e[10]=u):(h=e[9],u=e[10]);const p=u;let b;e[11]!==o?(b=[...o],e[11]=o,e[12]=b):b=e[12];let m;e[13]!==a?(m=a.values(),e[13]=a,e[14]=m):m=e[14];let g;e[15]!==m?(g=[...m],e[15]=m,e[16]=g):g=e[16];let x;e[17]!==b||e[18]!==g?(x={availableYears:b,availableNrens:g},e[17]=b,e[18]=g,e[19]=x):x=e[19];let y;e[20]!==s||e[21]!==i||e[22]!==x?(y=f.jsx(K,{filterOptions:x,filterSelection:s,setFilterSelection:i,coloredYears:!0}),e[20]=s,e[21]=i,e[22]=x,e[23]=y):y=e[23];const v=y;let _;e[24]!==d?(_=f.jsx(Z,{children:f.jsx(Me,{columns:h,columnLookup:p,dataLookup:d})}),e[24]=d,e[25]=_):_=e[25];let w;return e[26]!==v||e[27]!==l||e[28]!==_?(w=f.jsx(q,{title:"NREN Use of 3rd Party Alienwave/Lightpath Services",description:`The table below shows NREN usage of alien wavelength or lightpath services provided by third parties. 
-            It does not include alien waves used internally inside the NRENs own networks, as that is covered in another table. 
-            In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe wavelengths in a 
-            DWDM line system that pass through the network, i.e. they are not sourced/terminated by the line-system operator’s 
-            equipment (hence “alien”). This setup is in contrast to traditional DWDM systems, where the DWDM light source 
-            (transponder) operates in the same management domain as the amplifiers.
-
-            Where NRENs have given the number of individual alien wavelength services, the figure is available in a hover-over 
-            box. These are indicated by a black line around the coloured marker.`,category:L.Network,filter:v,data:l,filename:"alien_wave_nrens_per_year",children:_}),e[26]=v,e[27]=l,e[28]=_,e[29]=w):w=e[29],w}function dy(e,t){if(t.nr_of_alien_wave_third_party_services)return`No. of alien wavelength services: ${t.nr_of_alien_wave_third_party_services} `}function fy(){const e=A.c(30);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=N=>N.alien_wave_internal!==null,e[0]=t):t=e[0];const n=t,{filterSelection:s,setFilterSelection:i}=R.useContext(X),{data:r,years:o,nrens:a}=J("/api/alien-wave",i,n);let l,c;if(e[1]!==r||e[2]!==s.selectedNrens||e[3]!==s.selectedYears){let N;e[6]!==s.selectedNrens||e[7]!==s.selectedYears?(N=S=>s.selectedYears.includes(S.year)&&s.selectedNrens.includes(S.nren),e[6]=s.selectedNrens,e[7]=s.selectedYears,e[8]=N):N=e[8],l=r.filter(N),c=_e(l,"alien_wave_internal"),e[1]=r,e[2]=s.selectedNrens,e[3]=s.selectedYears,e[4]=l,e[5]=c}else l=e[4],c=e[5];const d=c;let h,u;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=["Yes","No"],u=new Map([[h[0],"True"],[h[1],"False"]]),e[9]=h,e[10]=u):(h=e[9],u=e[10]);const p=u;let b;e[11]!==o?(b=[...o],e[11]=o,e[12]=b):b=e[12];let m;e[13]!==a?(m=a.values(),e[13]=a,e[14]=m):m=e[14];let g;e[15]!==m?(g=[...m],e[15]=m,e[16]=g):g=e[16];let x;e[17]!==b||e[18]!==g?(x={availableYears:b,availableNrens:g},e[17]=b,e[18]=g,e[19]=x):x=e[19];let y;e[20]!==s||e[21]!==i||e[22]!==x?(y=f.jsx(K,{filterOptions:x,filterSelection:s,setFilterSelection:i,coloredYears:!0}),e[20]=s,e[21]=i,e[22]=x,e[23]=y):y=e[23];const v=y;let _;e[24]!==d?(_=f.jsx(Z,{children:f.jsx(Me,{columns:h,columnLookup:p,dataLookup:d})}),e[24]=d,e[25]=_):_=e[25];let w;return e[26]!==v||e[27]!==l||e[28]!==_?(w=f.jsx(q,{title:"Internal NREN Use of Alien Waves",description:`The table below shows NREN usage of alien waves internally within their own networks. 
-            This includes, for example, alien waves used between two equipment vendors, 
-            eg. coloured optics on routes carried over DWDM (dense wavelength division multiplexing) equipment.
-
-            In the optical network world, the term “alien wavelength” or “alien wave” (AW) is used to describe 
-            wavelengths in a DWDM line system that pass through the network, i.e. they are not sourced/terminated 
-            by the line-system operator’s equipment (hence “alien”). This setup is in contrast to traditional 
-            DWDM systems, where the DWDM light source (transponder) operates in the same management domain 
-            as the amplifiers.`,category:L.Network,filter:v,data:l,filename:"alien_wave_internal_nrens_per_year",children:_}),e[26]=v,e[27]=l,e[28]=_,e[29]=w):w=e[29],w}function hy(){const e=A.c(69),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/network-automation",n);let o,a,l,c,d,h,u,p,b,m,g,x,y,v,_;if(e[0]!==t||e[1]!==r||e[2]!==s||e[3]!==n||e[4]!==i){let j;e[20]!==t.selectedNrens||e[21]!==t.selectedYears?(j=le=>t.selectedYears.includes(le.year)&&t.selectedNrens.includes(le.nren),e[20]=t.selectedNrens,e[21]=t.selectedYears,e[22]=j):j=e[22];const C=s.filter(j),E=_e(C,"network_automation");let M;e[23]!==i?(M=[...i],e[23]=i,e[24]=M):M=e[24];let P;e[25]!==r?(P=r.values(),e[25]=r,e[26]=P):P=e[26];let T;e[27]!==P?(T=[...P],e[27]=P,e[28]=T):T=e[28];let O;e[29]!==M||e[30]!==T?(O={availableYears:M,availableNrens:T},e[29]=M,e[30]=T,e[31]=O):O=e[31];let D;e[32]!==t||e[33]!==n||e[34]!==O?(D=f.jsx(K,{filterOptions:O,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[32]=t,e[33]=n,e[34]=O,e[35]=D):D=e[35];const I=D;let V;e[36]!==i?(V=le=>i.has(le),e[36]=i,e[37]=V):V=e[37];const W=[...t.selectedYears.filter(V)].sort();l=q,x="Network Tasks for which NRENs Use Automation ",y=`The table below shows which NRENs have, or plan to, automate their 
-            operational processes, with specification of which processes, and the names of 
-            software and tools used for this given when appropriate. 
-            Where NRENs indicated that they are using automation for some network tasks, 
-            but did not specify which type of tasks, a marker has been placed in the 'other' column.`,v=L.Network,_=I,h=C,u="network_automation_nrens_per_year",a=Z,o=Ft,d="charging-struct-table",p=!0,b=!0;let G;e[38]===Symbol.for("react.memo_cache_sentinel")?(G=f.jsx("col",{span:1,style:{width:"16%"}}),e[38]=G):G=e[38];let ne;e[39]===Symbol.for("react.memo_cache_sentinel")?(ne=f.jsx("col",{span:2,style:{width:"12%"}}),e[39]=ne):ne=e[39];let ae;e[40]===Symbol.for("react.memo_cache_sentinel")?(ae=f.jsx("col",{span:2,style:{width:"12%"}}),e[40]=ae):ae=e[40];let re;e[41]===Symbol.for("react.memo_cache_sentinel")?(re=f.jsx("col",{span:2,style:{width:"12%"}}),e[41]=re):re=e[41];let te;e[42]===Symbol.for("react.memo_cache_sentinel")?(te=f.jsx("col",{span:2,style:{width:"12%"}}),e[42]=te):te=e[42];let U;e[43]===Symbol.for("react.memo_cache_sentinel")?(U=f.jsx("col",{span:2,style:{width:"12%"}}),e[43]=U):U=e[43];let se;e[44]===Symbol.for("react.memo_cache_sentinel")?(se=f.jsx("col",{span:2,style:{width:"12%"}}),e[44]=se):se=e[44],e[45]===Symbol.for("react.memo_cache_sentinel")?(m=f.jsxs("colgroup",{children:[G,ne,ae,re,te,U,se,f.jsx("col",{span:2,style:{width:"12%"}})]}),g=f.jsxs("thead",{children:[f.jsxs("tr",{children:[f.jsx("th",{}),f.jsx("th",{colSpan:2,children:"Device Provisioning"}),f.jsx("th",{colSpan:2,children:"Data Collection"}),f.jsx("th",{colSpan:2,children:"Configuration Management"}),f.jsx("th",{colSpan:2,children:"Compliance"}),f.jsx("th",{colSpan:2,children:"Reporting"}),f.jsx("th",{colSpan:2,children:"Troubleshooting"}),f.jsx("th",{colSpan:2,children:"Other"})]}),f.jsxs("tr",{children:[f.jsx("th",{}),f.jsx("th",{children:"Yes"}),f.jsx("th",{children:"Planned"}),f.jsx("th",{children:"Yes"}),f.jsx("th",{children:"Planned"}),f.jsx("th",{children:"Yes"}),f.jsx("th",{children:"Planned"}),f.jsx("th",{children:"Yes"}),f.jsx("th",{children:"Planned"}),f.jsx("th",{children:"Yes"}),f.jsx("th",{children:"Planned"}),f.jsx("th",{children:"Yes"}),f.jsx("th",{children:"Planned"}),f.jsx("th",{children:"Yes"}),f.jsx("th",{children:"Planned"})]})]}),e[45]=m,e[46]=g):(m=e[45],g=e[46]),c=Array.from(E.entries()).map(le=>{const[Y,B]=le;return f.jsxs("tr",{children:[f.jsx("td",{children:Y}),["provisioning","data_collection","config_management","compliance","reporting","troubleshooting"].map(Q=>f.jsxs(f.Fragment,{children:[f.jsx("td",{children:B.has("yes")&&W.map(H=>{var de,He;const ue=(de=B.get("yes"))==null?void 0:de.get(H),me=ue?ue.network_automation_specifics:null;return f.jsx(at,{year:H,active:!!((He=B.get("yes"))!=null&&He.has(H))&&!!(me&&me.indexOf(Q)>-1),tooltip:"",rounded:!0},H)})},`${Y}-${Q}-yes`),f.jsx("td",{children:B.has("planned")&&W.map(H=>{var de,He;const ue=(de=B.get("planned"))==null?void 0:de.get(H),me=ue?ue.network_automation_specifics:null;return f.jsx(at,{year:H,active:!!((He=B.get("planned"))!=null&&He.has(H))&&!!(me&&me.indexOf(Q)>-1),tooltip:"",rounded:!0},H)})},`${Y}-${Q}-planned`)]})),f.jsx("td",{children:B.has("yes")&&W.map(Q=>{var me,de;const H=(me=B.get("yes"))==null?void 0:me.get(Q),ue=H?H.network_automation_specifics:null;return f.jsx(at,{year:Q,active:!!((de=B.get("yes"))!=null&&de.has(Q))&&!!(ue&&ue.length==0),tooltip:"",rounded:!0},Q)})},`${Y}-other-yes`),f.jsx("td",{children:B.has("planned")&&W.map(Q=>{var me,de;const H=(me=B.get("planned"))==null?void 0:me.get(Q),ue=H?H.network_automation_specifics:null;return f.jsx(at,{year:Q,active:!!((de=B.get("planned"))!=null&&de.has(Q))&&!!(ue&&ue.length==0),tooltip:"",rounded:!0},Q)})},`${Y}-other-planned`)]},Y)}),e[0]=t,e[1]=r,e[2]=s,e[3]=n,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c,e[9]=d,e[10]=h,e[11]=u,e[12]=p,e[13]=b,e[14]=m,e[15]=g,e[16]=x,e[17]=y,e[18]=v,e[19]=_}else o=e[5],a=e[6],l=e[7],c=e[8],d=e[9],h=e[10],u=e[11],p=e[12],b=e[13],m=e[14],g=e[15],x=e[16],y=e[17],v=e[18],_=e[19];let w;e[47]!==c?(w=f.jsx("tbody",{children:c}),e[47]=c,e[48]=w):w=e[48];let N;e[49]!==o||e[50]!==d||e[51]!==w||e[52]!==p||e[53]!==b||e[54]!==m||e[55]!==g?(N=f.jsxs(o,{className:d,striped:p,bordered:b,children:[m,g,w]}),e[49]=o,e[50]=d,e[51]=w,e[52]=p,e[53]=b,e[54]=m,e[55]=g,e[56]=N):N=e[56];let S;e[57]!==a||e[58]!==N?(S=f.jsx(a,{children:N}),e[57]=a,e[58]=N,e[59]=S):S=e[59];let k;return e[60]!==l||e[61]!==h||e[62]!==u||e[63]!==S||e[64]!==x||e[65]!==y||e[66]!==v||e[67]!==_?(k=f.jsx(l,{title:x,description:y,category:v,filter:_,data:h,filename:u,children:S}),e[60]=l,e[61]=h,e[62]=u,e[63]=S,e[64]=x,e[65]=y,e[66]=v,e[67]=_,e[68]=k):k=e[68],k}ie.register($e,Fe,et,Qe,We,Ze);function uy(){const e=A.c(39);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=S=>S.typical_backbone_capacity!=null,e[0]=t):t=e[0];const n=t,{filterSelection:s,setFilterSelection:i}=R.useContext(X),{data:r,years:o,nrens:a}=J("/api/capacity",i,n);let l,c,d,h;if(e[1]!==r||e[2]!==s||e[3]!==a||e[4]!==i||e[5]!==o){let S;e[10]!==s.selectedNrens||e[11]!==s.selectedYears?(S=P=>s.selectedYears.includes(P.year)&&s.selectedNrens.includes(P.nren)&&n(P),e[10]=s.selectedNrens,e[11]=s.selectedYears,e[12]=S):S=e[12],d=r.filter(S),l=Si(d,"typical_backbone_capacity","Backbone IP Capacity");let k;e[13]!==o?(k=[...o],e[13]=o,e[14]=k):k=e[14];let j;e[15]!==a?(j=a.values(),e[15]=a,e[16]=j):j=e[16];let C;e[17]!==j?(C=[...j],e[17]=j,e[18]=C):C=e[18];let E;e[19]!==k||e[20]!==C?(E={availableYears:k,availableNrens:C},e[19]=k,e[20]=C,e[21]=E):E=e[21];let M;e[22]!==s||e[23]!==i||e[24]!==E?(M=f.jsx(K,{filterOptions:E,filterSelection:s,setFilterSelection:i}),e[22]=s,e[23]=i,e[24]=E,e[25]=M):M=e[25],c=M,h=Array.from(new Set(d.map(py))),e[1]=r,e[2]=s,e[3]=a,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=d,e[9]=h}else l=e[6],c=e[7],d=e[8],h=e[9];const u=h.length,p=Math.max(u*s.selectedYears.length*1.5+5,50),b=`The graph below shows the typical core usable backbone IP capacity of 
-    NREN networks, expressed in Gbit/s. It refers to the circuit capacity, not the traffic over 
-    the network.`;let m;e[26]===Symbol.for("react.memo_cache_sentinel")?(m=bs({title:"NREN Core IP Capacity",tooltipUnit:"Gbit/s",unit:"Gbit/s"}),e[26]=m):m=e[26];const g=m,x=`${p}rem`;let y;e[27]!==x?(y={height:x},e[27]=x,e[28]=y):y=e[28];let v;e[29]===Symbol.for("react.memo_cache_sentinel")?(v=[Tn],e[29]=v):v=e[29];let _;e[30]!==l?(_=f.jsx(Bt,{data:l,options:g,plugins:v}),e[30]=l,e[31]=_):_=e[31];let w;e[32]!==y||e[33]!==_?(w=f.jsx(Z,{children:f.jsx("div",{className:"chart-container",style:y,children:_})}),e[32]=y,e[33]=_,e[34]=w):w=e[34];let N;return e[35]!==c||e[36]!==d||e[37]!==w?(N=f.jsx(q,{title:"NREN Core IP Capacity",description:b,category:L.Network,filter:c,data:d,filename:"capacity_core_ip",children:w}),e[35]=c,e[36]=d,e[37]=w,e[38]=N):N=e[38],N}function py(e){return e.nren}ie.register($e,Fe,et,Qe,We,Ze);function my(){const e=A.c(39);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=S=>S.largest_link_capacity!=null,e[0]=t):t=e[0];const n=t,{filterSelection:s,setFilterSelection:i}=R.useContext(X),{data:r,years:o,nrens:a}=J("/api/capacity",i,n);let l,c,d,h;if(e[1]!==r||e[2]!==s||e[3]!==a||e[4]!==i||e[5]!==o){let S;e[10]!==s.selectedNrens||e[11]!==s.selectedYears?(S=P=>s.selectedYears.includes(P.year)&&s.selectedNrens.includes(P.nren)&&n(P),e[10]=s.selectedNrens,e[11]=s.selectedYears,e[12]=S):S=e[12],d=r.filter(S),l=Si(d,"largest_link_capacity","Link capacity");let k;e[13]!==o?(k=[...o],e[13]=o,e[14]=k):k=e[14];let j;e[15]!==a?(j=a.values(),e[15]=a,e[16]=j):j=e[16];let C;e[17]!==j?(C=[...j],e[17]=j,e[18]=C):C=e[18];let E;e[19]!==k||e[20]!==C?(E={availableYears:k,availableNrens:C},e[19]=k,e[20]=C,e[21]=E):E=e[21];let M;e[22]!==s||e[23]!==i||e[24]!==E?(M=f.jsx(K,{filterOptions:E,filterSelection:s,setFilterSelection:i}),e[22]=s,e[23]=i,e[24]=E,e[25]=M):M=e[25],c=M,h=Array.from(new Set(d.map(gy))),e[1]=r,e[2]=s,e[3]=a,e[4]=i,e[5]=o,e[6]=l,e[7]=c,e[8]=d,e[9]=h}else l=e[6],c=e[7],d=e[8],h=e[9];const u=h.length,p=Math.max(u*s.selectedYears.length*1.5+5,50),b=`NRENs were asked to give the capacity (in Gbits/s) of the largest link in 
-    their network used for internet traffic (either shared or dedicated). While they were invited to 
-    provide the sum of aggregated links, backup capacity was not to be included.`;let m;e[26]===Symbol.for("react.memo_cache_sentinel")?(m=bs({title:"Capacity of the Largest Link in an NREN Network",tooltipUnit:"Gbit/s",unit:"Gbit/s"}),e[26]=m):m=e[26];const g=m,x=`${p}rem`;let y;e[27]!==x?(y={height:x},e[27]=x,e[28]=y):y=e[28];let v;e[29]===Symbol.for("react.memo_cache_sentinel")?(v=[Tn],e[29]=v):v=e[29];let _;e[30]!==l?(_=f.jsx(Bt,{data:l,options:g,plugins:v}),e[30]=l,e[31]=_):_=e[31];let w;e[32]!==y||e[33]!==_?(w=f.jsx(Z,{children:f.jsx("div",{className:"chart-container",style:y,children:_})}),e[32]=y,e[33]=_,e[34]=w):w=e[34];let N;return e[35]!==c||e[36]!==d||e[37]!==w?(N=f.jsx(q,{title:"Capacity of the Largest Link in an NREN Network",description:b,category:L.Network,filter:c,data:d,filename:"capacity_largest_link",children:w}),e[35]=c,e[36]=d,e[37]=w,e[38]=N):N=e[38],N}function gy(e){return e.nren}function by(){const e=A.c(29),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/certificate-providers",n);let o,a;if(e[0]!==s||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let w;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(w=N=>t.selectedYears.includes(N.year)&&t.selectedNrens.includes(N.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=w):w=e[7],o=s.filter(w),a=_e(o,"provider_names"),e[0]=s,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c;e[8]!==i?(c=[...i],e[8]=i,e[9]=c):c=e[9];let d;e[10]!==r?(d=r.values(),e[10]=r,e[11]=d):d=e[11];let h;e[12]!==d?(h=[...d],e[12]=d,e[13]=h):h=e[13];let u;e[14]!==c||e[15]!==h?(u={availableYears:c,availableNrens:h},e[14]=c,e[15]=h,e[16]=u):u=e[16];let p;e[17]!==t||e[18]!==n||e[19]!==u?(p=f.jsx(K,{filterOptions:u,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=u,e[20]=p):p=e[20];const b=p;let m;e[21]===Symbol.for("react.memo_cache_sentinel")?(m=["TCS","Digicert","Sectigo (outside of TCS)","Let's Encrypt","Entrust Datacard"],e[21]=m):m=e[21];const g=m;let x;e[22]===Symbol.for("react.memo_cache_sentinel")?(x=new Map([["Sectigo (outside of TCS)","Sectigo"]]),e[22]=x):x=e[22];const y=x;let v;e[23]!==l?(v=f.jsx(Z,{children:f.jsx(Me,{columns:g,dataLookup:l,circle:!0,columnLookup:y})}),e[23]=l,e[24]=v):v=e[24];let _;return e[25]!==b||e[26]!==o||e[27]!==v?(_=f.jsx(q,{title:"Certification Services used by NRENs ",description:"The table below shows the kinds of Network Certificate Providers used by NRENs.",category:L.Network,filter:b,data:o,filename:"certificate_provider_nrens_per_year",children:v}),e[25]=b,e[26]=o,e[27]=v,e[28]=_):_=e[28],_}ie.register($e,Fe,_t,yt,Qe,We,Ze);function Aa(e){const t=A.c(32),{national:n}=e,s=n?"fibre_length_in_country":"fibre_length_outside_country";let i;t[0]!==s?(i=E=>E[s]!=null,t[0]=s,t[1]=i):i=t[1];const r=i,{filterSelection:o,setFilterSelection:a}=R.useContext(X),{data:l,nrens:c}=J("/api/dark-fibre-lease",a,r);let d,h;if(t[2]!==l||t[3]!==s||t[4]!==o.selectedNrens||t[5]!==r){let E;t[8]!==o.selectedNrens||t[9]!==r?(E=M=>o.selectedNrens.includes(M.nren)&&r(M),t[8]=o.selectedNrens,t[9]=r,t[10]=E):E=t[10],d=l.filter(E),h=Dt(d,s),t[2]=l,t[3]=s,t[4]=o.selectedNrens,t[5]=r,t[6]=d,t[7]=h}else d=t[6],h=t[7];const u=h;let p;t[11]===Symbol.for("react.memo_cache_sentinel")?(p=[],t[11]=p):p=t[11];let b;t[12]!==c?(b=c.values(),t[12]=c,t[13]=b):b=t[13];let m;t[14]!==b?(m={availableYears:p,availableNrens:[...b]},t[14]=b,t[15]=m):m=t[15];let g;t[16]!==o||t[17]!==a||t[18]!==m?(g=f.jsx(K,{filterOptions:m,filterSelection:o,setFilterSelection:a}),t[16]=o,t[17]=a,t[18]=m,t[19]=g):g=t[19];const x=g;let y;t[20]===Symbol.for("react.memo_cache_sentinel")?(y=gs({title:"Kilometres of Leased Dark Fibre",tooltipUnit:"km",unit:"km"}),t[20]=y):y=t[20];const v=y,_=n?"within":"outside";let w;t[21]!==_?(w=f.jsxs("span",{children:["This graph shows the number of Kilometres of dark fibre leased by NRENs ",_," their own countries. Also included is fibre leased via an IRU (Indefeasible Right of Use), a type of long-term lease of a portion of the capacity of a cable. It does not however, include fibre NRENs have installed, and own, themselves. The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair."]}),t[21]=_,t[22]=w):w=t[22];const N=w,S=`Kilometres of Leased Dark Fibre (${n?"National":"International"})`,k=`dark_fibre_lease_${n?"national":"international"}`;let j;t[23]!==u?(j=f.jsx(Z,{children:f.jsx(Ot,{data:u,options:v})}),t[23]=u,t[24]=j):j=t[24];let C;return t[25]!==N||t[26]!==x||t[27]!==d||t[28]!==S||t[29]!==k||t[30]!==j?(C=f.jsx(q,{title:S,description:N,category:L.Network,filter:x,data:d,filename:k,children:j}),t[25]=N,t[26]=x,t[27]=d,t[28]=S,t[29]=k,t[30]=j,t[31]=C):C=t[31],C}ie.register($e,Fe,_t,yt,Qe,We,Ze);function xy(){const e=A.c(24);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=w=>w.fibre_length_in_country!=null,e[0]=t):t=e[0];const n=t,{filterSelection:s,setFilterSelection:i}=R.useContext(X),{data:r,nrens:o}=J("/api/dark-fibre-installed",i,n);let a,l;if(e[1]!==r||e[2]!==s.selectedNrens){let w;e[5]!==s.selectedNrens?(w=N=>s.selectedNrens.includes(N.nren)&&n(N),e[5]=s.selectedNrens,e[6]=w):w=e[6],a=r.filter(w),l=Dt(a,"fibre_length_in_country"),e[1]=r,e[2]=s.selectedNrens,e[3]=a,e[4]=l}else a=e[3],l=e[4];const c=l;let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[7]=d):d=e[7];let h;e[8]!==o?(h=o.values(),e[8]=o,e[9]=h):h=e[9];let u;e[10]!==h?(u={availableYears:d,availableNrens:[...h]},e[10]=h,e[11]=u):u=e[11];let p;e[12]!==s||e[13]!==i||e[14]!==u?(p=f.jsx(K,{filterOptions:u,filterSelection:s,setFilterSelection:i}),e[12]=s,e[13]=i,e[14]=u,e[15]=p):p=e[15];const b=p;let m;e[16]===Symbol.for("react.memo_cache_sentinel")?(m=gs({title:"Kilometres of Installed Dark Fibre",tooltipUnit:"km",unit:"km"}),e[16]=m):m=e[16];const g=m;let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=f.jsx("span",{children:"This graph shows the number of Kilometres of dark fibre installed by NRENs within their own countries, which they own themselves. The distance is the number of kilometres of the fibre pairs, or if bidirectional traffic on a single fibre, it is treated as a fibre pair."}),e[17]=x):x=e[17];const y=x;let v;e[18]!==c?(v=f.jsx(Z,{children:f.jsx(Ot,{data:c,options:g})}),e[18]=c,e[19]=v):v=e[19];let _;return e[20]!==b||e[21]!==a||e[22]!==v?(_=f.jsx(q,{title:"Kilometres of Installed Dark Fibre",description:y,category:L.Network,filter:b,data:a,filename:"dark_fibre_lease_installed",children:v}),e[20]=b,e[21]=a,e[22]=v,e[23]=_):_=e[23],_}function yy(e){const t=A.c(8),{dataLookup:n,columnInfo:s}=e;if(!n){let a;return t[0]===Symbol.for("react.memo_cache_sentinel")?(a=f.jsx("div",{className:"matrix-border-round"}),t[0]=a):a=t[0],a}let i;if(t[1]!==s||t[2]!==n){let a;t[4]!==s?(a=l=>{const[c,d]=l;return f.jsx(rn,{title:c,theme:"-table",startCollapsed:!0,children:f.jsx("div",{className:"scrollable-horizontal",children:Array.from(d.entries()).map(h=>{const[u,p]=h,b={"--before-color":`var(--color-of-the-year-muted-${u%9})`};return f.jsxs("div",{children:[f.jsx("span",{className:`scrollable-table-year color-of-the-year-${u%9} bold-caps-16pt pt-3 ps-3`,style:b,children:u}),f.jsx("div",{className:`colored-table bg-muted-color-of-the-year-${u%9}`,children:f.jsxs(Ft,{children:[f.jsx("thead",{children:f.jsx("tr",{children:Object.keys(s).map(m=>f.jsx("th",{style:{position:"relative"},children:f.jsx("span",{style:b,children:m})},m))})}),f.jsx("tbody",{children:p.map((m,g)=>f.jsx("tr",{children:Object.entries(s).map(x=>{const[y,v]=x,_=m[v];return f.jsx("td",{children:_},y)})},g))})]})})]},u)})})},c)},t[4]=s,t[5]=a):a=t[5],i=Array.from(n.entries()).map(a),t[1]=s,t[2]=n,t[3]=i}else i=t[3];const r=i;let o;return t[6]!==r?(o=f.jsx("div",{className:"matrix-border-round",children:r}),t[6]=r,t[7]=o):o=t[7],o}function vy(){const e=A.c(29),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/external-connections",n);let o,a;if(e[0]!==s||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let w;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(w=N=>t.selectedYears.includes(N.year)&&t.selectedNrens.includes(N.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=w):w=e[7],o=s.filter(w),a=ms([...o]),e[0]=s,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c;e[8]!==i?(c=[...i],e[8]=i,e[9]=c):c=e[9];let d;e[10]!==r?(d=r.values(),e[10]=r,e[11]=d):d=e[11];let h;e[12]!==d?(h=[...d],e[12]=d,e[13]=h):h=e[13];let u;e[14]!==c||e[15]!==h?(u={availableYears:c,availableNrens:h},e[14]=c,e[15]=h,e[16]=u):u=e[16];let p;e[17]!==t||e[18]!==n||e[19]!==u?(p=f.jsx(K,{filterOptions:u,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=u,e[20]=p):p=e[20];const b=p;let m;e[21]===Symbol.for("react.memo_cache_sentinel")?(m={"Link Name":"link_name","Capacity (Gbit/s)":"capacity","From Organisation":"from_organization","To Organisation":"to_organization","Interconnection Method":"interconnection_method"},e[21]=m):m=e[21];const g=m;let x;e[22]===Symbol.for("react.memo_cache_sentinel")?(x=f.jsxs(f.Fragment,{children:[f.jsx("p",{children:"The table below shows the operational external IP connections of each NREN. These include links to their regional backbone (ie. GÉANT), to other research locations, to the commercial internet, peerings to internet exchanges, cross-border dark fibre links, and any other links they may have."}),f.jsx("p",{children:"NRENs are asked to state the capacity for production purposes, not any additional link that may be there solely for the purpose of giving resilience. Cross-border fibre links are meant as those links which have been commissioned or established by the NREN from a point on their network, which is near the border to another point near the border on the network of a neighbouring NREN."})]}),e[22]=x):x=e[22];const y=x;let v;e[23]!==l?(v=f.jsx(Z,{children:f.jsx(yy,{dataLookup:l,columnInfo:g})}),e[23]=l,e[24]=v):v=e[24];let _;return e[25]!==b||e[26]!==o||e[27]!==v?(_=f.jsx(q,{title:"NREN External IP Connections",description:y,category:L.Network,filter:b,data:o,filename:"nren_external_connections",children:v}),e[25]=b,e[26]=o,e[27]=v,e[28]=_):_=e[28],_}function _y(){const e=A.c(29),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/fibre-light",n);let o,a;if(e[0]!==s||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let _;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(_=w=>t.selectedYears.includes(w.year)&&t.selectedNrens.includes(w.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=_):_=e[7],o=s.filter(_),a=_e(o,"light_description"),e[0]=s,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c;e[8]!==i?(c=[...i],e[8]=i,e[9]=c):c=e[9];let d;e[10]!==r?(d=r.values(),e[10]=r,e[11]=d):d=e[11];let h;e[12]!==d?(h=[...d],e[12]=d,e[13]=h):h=e[13];let u;e[14]!==c||e[15]!==h?(u={availableYears:c,availableNrens:h},e[14]=c,e[15]=h,e[16]=u):u=e[16];let p;e[17]!==t||e[18]!==n||e[19]!==u?(p=f.jsx(K,{filterOptions:u,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=u,e[20]=p):p=e[20];const b=p;let m,g;e[21]===Symbol.for("react.memo_cache_sentinel")?(m=["NREN owns and operates equipment","NREN owns equipment and operation is outsourced","Ownership and management are out-sourced (turn-key model)"],g=new Map([[m[0],"nren_owns_and_operates"],[m[1],"nren_owns_outsourced_operation"],[m[2],"outsourced_ownership_and_operation"]]),e[21]=m,e[22]=g):(m=e[21],g=e[22]);const x=g;let y;e[23]!==l?(y=f.jsx(Z,{children:f.jsx(Me,{columns:m,dataLookup:l,columnLookup:x,circle:!0})}),e[23]=l,e[24]=y):y=e[24];let v;return e[25]!==b||e[26]!==o||e[27]!==y?(v=f.jsx(q,{title:"Approaches to lighting NREN fibre networks",description:`This graphic shows the different ways NRENs can light their fibre networks. 
-            The option 'Other' is given, with extra information if you hover over the icon.`,category:L.Network,filter:b,data:o,filename:"fibre_light_of_nrens_per_year",children:y}),e[25]=b,e[26]=o,e[27]=y,e[28]=v):v=e[28],v}ie.register($e,Fe,_t,yt,Qe,We,Ze);function wy(){const e=A.c(24);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=_=>_.iru_duration!=null,e[0]=t):t=e[0];const n=t,{filterSelection:s,setFilterSelection:i}=R.useContext(X),{data:r,nrens:o}=J("/api/dark-fibre-lease",i,n);let a,l;if(e[1]!==r||e[2]!==s.selectedNrens){let _;e[5]!==s.selectedNrens?(_=w=>s.selectedNrens.includes(w.nren),e[5]=s.selectedNrens,e[6]=_):_=e[6],a=r.filter(_),l=Dt(a,"iru_duration"),e[1]=r,e[2]=s.selectedNrens,e[3]=a,e[4]=l}else a=e[3],l=e[4];const c=l;let d;e[7]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[7]=d):d=e[7];let h;e[8]!==o?(h=o.values(),e[8]=o,e[9]=h):h=e[9];let u;e[10]!==h?(u={availableYears:d,availableNrens:[...h]},e[10]=h,e[11]=u):u=e[11];let p;e[12]!==s||e[13]!==i||e[14]!==u?(p=f.jsx(K,{filterOptions:u,filterSelection:s,setFilterSelection:i}),e[12]=s,e[13]=i,e[14]=u,e[15]=p):p=e[15];const b=p;let m;e[16]===Symbol.for("react.memo_cache_sentinel")?(m=gs({title:"Lease Duration In Years",tooltipUnit:"years",tickLimit:999}),e[16]=m):m=e[16];const g=m;let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=f.jsx("span",{children:"NRENs sometimes take out an IRU (Indefeasible Right of Use), which is essentially a long-term lease, on a portion of the capacity of a cable rather than laying cable themselves. This graph shows the average duration, in years, of the IRUs of NRENs."}),e[17]=x):x=e[17];let y;e[18]!==c?(y=f.jsx(Z,{children:f.jsx(Ot,{data:c,options:g})}),e[18]=c,e[19]=y):y=e[19];let v;return e[20]!==b||e[21]!==a||e[22]!==y?(v=f.jsx(q,{title:"Average Duration of IRU leases of Fibre by NRENs ",description:x,category:L.Network,filter:b,data:a,filename:"iru_duration_data",children:y}),e[20]=b,e[21]=a,e[22]=y,e[23]=v):v=e[23],v}function Ny(){const e=A.c(29),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/monitoring-tools",n);let o,a;if(e[0]!==s||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let _;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(_=S=>t.selectedYears.includes(S.year)&&t.selectedNrens.includes(S.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=_):_=e[7],o=s.filter(_);const w=_e(o,"tool_descriptions");a=ps(w,Sy),e[0]=s,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c,d;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=["Looking Glass","Network or Services Status Dashboard","Historical traffic volume information","Netflow analysis tool"],d=new Map([[c[0],"looking_glass"],[c[1],"status_dashboard"],[c[2],"historical_traffic_volumes"],[c[3],"netflow_analysis"]]),e[8]=c,e[9]=d):(c=e[8],d=e[9]);const h=d;let u;e[10]!==i?(u=[...i],e[10]=i,e[11]=u):u=e[11];let p;e[12]!==r?(p=r.values(),e[12]=r,e[13]=p):p=e[13];let b;e[14]!==p?(b=[...p],e[14]=p,e[15]=b):b=e[15];let m;e[16]!==u||e[17]!==b?(m={availableYears:u,availableNrens:b},e[16]=u,e[17]=b,e[18]=m):m=e[18];let g;e[19]!==t||e[20]!==n||e[21]!==m?(g=f.jsx(K,{filterOptions:m,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[19]=t,e[20]=n,e[21]=m,e[22]=g):g=e[22];const x=g;let y;e[23]!==l?(y=f.jsx(Z,{children:f.jsx(Me,{columns:c,columnLookup:h,dataLookup:l})}),e[23]=l,e[24]=y):y=e[24];let v;return e[25]!==x||e[26]!==o||e[27]!==y?(v=f.jsx(q,{title:"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions",description:`The table below shows which tools the NREN offers to client institutions to allow them to monitor the network and troubleshoot any issues which arise. 
-            Four common tools are named, however NRENs also have the opportunity to add their own tools to the table.`,category:L.Network,filter:x,data:o,filename:"monitoring_tools_nrens_per_year",children:y}),e[25]=x,e[26]=o,e[27]=y,e[28]=v):v=e[28],v}function Sy(e,t){if(e==="netflow_analysis"&&t.netflow_processing_description)return t.netflow_processing_description}function ky(){const e=A.c(67),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/nfv",n);let o,a,l,c,d,h,u,p,b,m,g,x,y,v,_;if(e[0]!==s||e[1]!==t||e[2]!==r||e[3]!==n||e[4]!==i){let j;e[20]!==t.selectedNrens||e[21]!==t.selectedYears?(j=U=>t.selectedYears.includes(U.year)&&t.selectedNrens.includes(U.nren),e[20]=t.selectedNrens,e[21]=t.selectedYears,e[22]=j):j=e[22];const C=s.filter(j),E=_e(C,"nfv_specifics");let M;e[23]!==i?(M=[...i],e[23]=i,e[24]=M):M=e[24];let P;e[25]!==r?(P=r.values(),e[25]=r,e[26]=P):P=e[26];let T;e[27]!==P?(T=[...P],e[27]=P,e[28]=T):T=e[28];let O;e[29]!==M||e[30]!==T?(O={availableYears:M,availableNrens:T},e[29]=M,e[30]=T,e[31]=O):O=e[31];let D;e[32]!==t||e[33]!==n||e[34]!==O?(D=f.jsx(K,{filterOptions:O,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[32]=t,e[33]=n,e[34]=O,e[35]=D):D=e[35];const I=D;let V;e[36]!==i?(V=U=>i.has(U),e[36]=i,e[37]=V):V=e[37];const W=[...t.selectedYears.filter(V)].sort();l=q,x="Kinds of Network Function Virtualisation used by NRENs ",y="The table below shows the kinds of Network Function Virtualisation (NFV) used by NRENs.",v=L.Network,_=I,h=C,u="network_function_virtualisation_nrens_per_year",a=Z,o=Ft,d="charging-struct-table",p=!0,b=!0;let G;e[38]===Symbol.for("react.memo_cache_sentinel")?(G=f.jsx("col",{span:1,style:{width:"20%"}}),e[38]=G):G=e[38];let ne;e[39]===Symbol.for("react.memo_cache_sentinel")?(ne=f.jsx("col",{span:2,style:{width:"16%"}}),e[39]=ne):ne=e[39];let ae;e[40]===Symbol.for("react.memo_cache_sentinel")?(ae=f.jsx("col",{span:2,style:{width:"16%"}}),e[40]=ae):ae=e[40];let re;e[41]===Symbol.for("react.memo_cache_sentinel")?(re=f.jsx("col",{span:2,style:{width:"16%"}}),e[41]=re):re=e[41];let te;e[42]===Symbol.for("react.memo_cache_sentinel")?(te=f.jsx("col",{span:2,style:{width:"16%"}}),e[42]=te):te=e[42],e[43]===Symbol.for("react.memo_cache_sentinel")?(m=f.jsxs("colgroup",{children:[G,ne,ae,re,te,f.jsx("col",{span:2,style:{width:"16%"}})]}),g=f.jsxs("thead",{children:[f.jsxs("tr",{children:[f.jsx("th",{}),f.jsx("th",{colSpan:2,children:"Routers/switches"}),f.jsx("th",{colSpan:2,children:"Firewalls"}),f.jsx("th",{colSpan:2,children:"Load balancers"}),f.jsx("th",{colSpan:2,children:"VPN Concentrator Services"}),f.jsx("th",{colSpan:2,children:"Other"})]}),f.jsxs("tr",{children:[f.jsx("th",{}),f.jsx("th",{children:"Yes"}),f.jsx("th",{children:"Planned"}),f.jsx("th",{children:"Yes"}),f.jsx("th",{children:"Planned"}),f.jsx("th",{children:"Yes"}),f.jsx("th",{children:"Planned"}),f.jsx("th",{children:"Yes"}),f.jsx("th",{children:"Planned"}),f.jsx("th",{children:"Yes"}),f.jsx("th",{children:"Planned"})]})]}),e[43]=m,e[44]=g):(m=e[43],g=e[44]),c=Array.from(E.entries()).map(U=>{const[se,le]=U;return f.jsxs("tr",{children:[f.jsx("td",{children:se}),["routers","firewalls","load_balancers","vpn_concentrators"].map(Y=>f.jsxs(f.Fragment,{children:[f.jsx("td",{children:le.has(Y)&&W.map(B=>{const Q=le.get(Y),H=Q.get(B);return f.jsx(at,{year:B,active:Q.has(B)&&!!(H&&H.nfv=="yes"),tooltip:"",rounded:!0},B)})},`${Y}-yes`),f.jsx("td",{children:le.has(Y)&&W.map(B=>{const Q=le.get(Y),H=Q.get(B);return f.jsx(at,{year:B,active:Q.has(B)&&!!(H&&H.nfv=="planned"),tooltip:"",rounded:!0},B)})},`${Y}-planned`)]})),f.jsx("td",{children:Array.from(le.keys()).filter(Cy).map(Y=>f.jsx("div",{children:le.has(Y)&&W.map(B=>{const Q=le.get(Y),H=Q.get(B);return f.jsx(at,{year:B,active:Q.has(B)&&!!(H&&(H==null?void 0:H.nfv)=="yes"),tooltip:Y,rounded:!0},B)})},`${Y}-yes`))},`${se}-other-yes`),f.jsx("td",{children:Array.from(le.keys()).filter(jy).map(Y=>f.jsx("div",{children:le.has(Y)&&W.map(B=>{const Q=le.get(Y),H=Q.get(B);return f.jsx(at,{year:B,active:Q.has(B)&&!!(H&&(H==null?void 0:H.nfv)=="planned"),tooltip:Y,rounded:!0},B)})},`${Y}-planned`))},`${se}-other-planned`)]},se)}),e[0]=s,e[1]=t,e[2]=r,e[3]=n,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c,e[9]=d,e[10]=h,e[11]=u,e[12]=p,e[13]=b,e[14]=m,e[15]=g,e[16]=x,e[17]=y,e[18]=v,e[19]=_}else o=e[5],a=e[6],l=e[7],c=e[8],d=e[9],h=e[10],u=e[11],p=e[12],b=e[13],m=e[14],g=e[15],x=e[16],y=e[17],v=e[18],_=e[19];let w;e[45]!==c?(w=f.jsx("tbody",{children:c}),e[45]=c,e[46]=w):w=e[46];let N;e[47]!==o||e[48]!==d||e[49]!==w||e[50]!==p||e[51]!==b||e[52]!==m||e[53]!==g?(N=f.jsxs(o,{className:d,striped:p,bordered:b,children:[m,g,w]}),e[47]=o,e[48]=d,e[49]=w,e[50]=p,e[51]=b,e[52]=m,e[53]=g,e[54]=N):N=e[54];let S;e[55]!==a||e[56]!==N?(S=f.jsx(a,{children:N}),e[55]=a,e[56]=N,e[57]=S):S=e[57];let k;return e[58]!==l||e[59]!==h||e[60]!==u||e[61]!==S||e[62]!==x||e[63]!==y||e[64]!==v||e[65]!==_?(k=f.jsx(l,{title:x,description:y,category:v,filter:_,data:h,filename:u,children:S}),e[58]=l,e[59]=h,e[60]=u,e[61]=S,e[62]=x,e[63]=y,e[64]=v,e[65]=_,e[66]=k):k=e[66],k}function jy(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)}function Cy(e){return!["routers","firewalls","load_balancers","vpn_concentrators"].includes(e)}function Ey(){const e=A.c(21),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,nrens:i}=J("/api/network-map-urls",n);let r,o;if(e[0]!==s||e[1]!==t.selectedNrens){const m=s?Pn(s):[];let g;e[4]!==t.selectedNrens?(g=y=>t.selectedNrens.includes(y.nren),e[4]=t.selectedNrens,e[5]=g):g=e[5],r=m.filter(g);const x=Ve(r);o=nt(x,My),e[0]=s,e[1]=t.selectedNrens,e[2]=r,e[3]=o}else r=e[2],o=e[3];const a=o;let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[6]=l):l=e[6];let c;e[7]!==i?(c=i.values(),e[7]=i,e[8]=c):c=e[8];let d;e[9]!==c?(d={availableYears:l,availableNrens:[...c]},e[9]=c,e[10]=d):d=e[10];let h;e[11]!==t||e[12]!==n||e[13]!==d?(h=f.jsx(K,{filterOptions:d,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[11]=t,e[12]=n,e[13]=d,e[14]=h):h=e[14];const u=h;let p;e[15]!==a?(p=f.jsx(Z,{children:f.jsx(ht,{data:a,columnTitle:"Network Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=a,e[16]=p):p=e[16];let b;return e[17]!==u||e[18]!==r||e[19]!==p?(b=f.jsx(q,{title:"NREN Network Maps",description:"This table provides links to NREN network maps, showing layers 1, 2, and 3 of their networks.",category:L.Network,filter:u,data:r,filename:"network_map_nrens_per_year",children:p}),e[17]=u,e[18]=r,e[19]=p,e[20]=b):b=e[20],b}function My(e,t){const n=Ir(t);if(n!=null)for(const[s,i]of Object.entries(n))e[s]=i}ie.register($e,Fe,et,Qe,We,Ze);function Ry(){const e=A.c(38),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/non-re-peers",n);let o,a,l,c;if(e[0]!==s||e[1]!==t||e[2]!==r||e[3]!==n||e[4]!==i){let w;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(w=E=>t.selectedYears.includes(E.year)&&t.selectedNrens.includes(E.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=w):w=e[11],l=s.filter(w),o=Si(l,"nr_of_non_r_and_e_peers","Number of Peers");let N;e[12]!==i?(N=[...i],e[12]=i,e[13]=N):N=e[13];let S;e[14]!==r?(S=r.values(),e[14]=r,e[15]=S):S=e[15];let k;e[16]!==S?(k=[...S],e[16]=S,e[17]=k):k=e[17];let j;e[18]!==N||e[19]!==k?(j={availableYears:N,availableNrens:k},e[18]=N,e[19]=k,e[20]=j):j=e[20];let C;e[21]!==t||e[22]!==n||e[23]!==j?(C=f.jsx(K,{filterOptions:j,filterSelection:t,setFilterSelection:n}),e[21]=t,e[22]=n,e[23]=j,e[24]=C):C=e[24],a=C,c=Array.from(new Set(l.map(Py))),e[0]=s,e[1]=t,e[2]=r,e[3]=n,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c}else o=e[5],a=e[6],l=e[7],c=e[8];const d=c.length,h=Math.max(d*t.selectedYears.length*1.5+5,50),u=`The graph below shows the number of non-Research and Education networks 
-    NRENs peer with. This includes all direct IP-peerings to commercial networks, eg. Google`;let p;e[25]===Symbol.for("react.memo_cache_sentinel")?(p=bs({title:"Number of Non-R&E Peers"}),e[25]=p):p=e[25];const b=p,m=`${h}rem`;let g;e[26]!==m?(g={height:m},e[26]=m,e[27]=g):g=e[27];let x;e[28]===Symbol.for("react.memo_cache_sentinel")?(x=[Tn],e[28]=x):x=e[28];let y;e[29]!==o?(y=f.jsx(Bt,{data:o,options:b,plugins:x}),e[29]=o,e[30]=y):y=e[30];let v;e[31]!==g||e[32]!==y?(v=f.jsx(Z,{children:f.jsx("div",{className:"chart-container",style:g,children:y})}),e[31]=g,e[32]=y,e[33]=v):v=e[33];let _;return e[34]!==a||e[35]!==l||e[36]!==v?(_=f.jsx(q,{title:"Number of Non-R&E Networks NRENs Peer With",description:u,category:L.Network,filter:a,data:l,filename:"non_r_and_e_peering",children:v}),e[34]=a,e[35]=l,e[36]=v,e[37]=_):_=e[37],_}function Py(e){return e.nren}function Ty(){const e=A.c(29),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/ops-automation",n);let o,a;if(e[0]!==s||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let _;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(_=S=>t.selectedYears.includes(S.year)&&t.selectedNrens.includes(S.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=_):_=e[7],o=s.filter(_);const w=_e(o,"ops_automation");a=ps(w,Oy),e[0]=s,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c,d;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=["Yes","Planned","No"],d=new Map([[c[0],"yes"],[c[1],"planned"],[c[2],"no"]]),e[8]=c,e[9]=d):(c=e[8],d=e[9]);const h=d;let u;e[10]!==i?(u=[...i],e[10]=i,e[11]=u):u=e[11];let p;e[12]!==r?(p=r.values(),e[12]=r,e[13]=p):p=e[13];let b;e[14]!==p?(b=[...p],e[14]=p,e[15]=b):b=e[15];let m;e[16]!==u||e[17]!==b?(m={availableYears:u,availableNrens:b},e[16]=u,e[17]=b,e[18]=m):m=e[18];let g;e[19]!==t||e[20]!==n||e[21]!==m?(g=f.jsx(K,{filterOptions:m,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[19]=t,e[20]=n,e[21]=m,e[22]=g):g=e[22];const x=g;let y;e[23]!==l?(y=f.jsx(Z,{children:f.jsx(Me,{columns:c,columnLookup:h,dataLookup:l})}),e[23]=l,e[24]=y):y=e[24];let v;return e[25]!==x||e[26]!==o||e[27]!==y?(v=f.jsx(q,{title:"NREN Automation of Operational Processes",description:`The table below shows which NRENs have, or plan to, automate their 
-            operational processes, with specification of which processes, and the names of 
-            software and tools used for this given when appropriate.`,category:L.Network,filter:x,data:o,filename:"ops_automation_nrens_per_year",children:y}),e[25]=x,e[26]=o,e[27]=y,e[28]=v):v=e[28],v}function Oy(e,t){if(t.ops_automation_specifics)return t.ops_automation_specifics}function Dy(){const e=A.c(29),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/passive-monitoring",n);let o,a;if(e[0]!==s||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let _;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(_=w=>t.selectedYears.includes(w.year)&&t.selectedNrens.includes(w.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=_):_=e[7],o=s.filter(_),a=_e(o,"method",!0),e[0]=s,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c;e[8]!==i?(c=[...i],e[8]=i,e[9]=c):c=e[9];let d;e[10]!==r?(d=r.values(),e[10]=r,e[11]=d):d=e[11];let h;e[12]!==d?(h=[...d],e[12]=d,e[13]=h):h=e[13];let u;e[14]!==c||e[15]!==h?(u={availableYears:c,availableNrens:h},e[14]=c,e[15]=h,e[16]=u):u=e[16];let p;e[17]!==t||e[18]!==n||e[19]!==u?(p=f.jsx(K,{filterOptions:u,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=u,e[20]=p):p=e[20];const b=p;let m,g;e[21]===Symbol.for("react.memo_cache_sentinel")?(m=["No monitoring occurs","SPAN ports","Passive optical TAPS","Both SPAN ports and passive optical TAPS"],g=new Map([[m[0],"null"],[m[1],"span_ports"],[m[2],"taps"],[m[3],"both"]]),e[21]=m,e[22]=g):(m=e[21],g=e[22]);const x=g;let y;e[23]!==l?(y=f.jsx(Z,{children:f.jsx(Me,{columns:m,dataLookup:l,columnLookup:x})}),e[23]=l,e[24]=y):y=e[24];let v;return e[25]!==b||e[26]!==o||e[27]!==y?(v=f.jsx(q,{title:"Methods for Passively Monitoring International Traffic",description:"The table below shows the methods NRENs use for the passive monitoring of international traffic.",category:L.Network,filter:b,data:o,filename:"passive_monitoring_nrens_per_year",children:y}),e[25]=b,e[26]=o,e[27]=y,e[28]=v):v=e[28],v}function Ay(){const e=A.c(29),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/pert-team",n);let o,a;if(e[0]!==s||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let _;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(_=w=>t.selectedYears.includes(w.year)&&t.selectedNrens.includes(w.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=_):_=e[7],o=s.filter(_),a=_e(o,"pert_team"),e[0]=s,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c,d;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=["Yes","Planned","No"],d=new Map([[c[0],"yes"],[c[1],"planned"],[c[2],"no"]]),e[8]=c,e[9]=d):(c=e[8],d=e[9]);const h=d;let u;e[10]!==i?(u=[...i],e[10]=i,e[11]=u):u=e[11];let p;e[12]!==r?(p=r.values(),e[12]=r,e[13]=p):p=e[13];let b;e[14]!==p?(b=[...p],e[14]=p,e[15]=b):b=e[15];let m;e[16]!==u||e[17]!==b?(m={availableYears:u,availableNrens:b},e[16]=u,e[17]=b,e[18]=m):m=e[18];let g;e[19]!==t||e[20]!==n||e[21]!==m?(g=f.jsx(K,{filterOptions:m,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[19]=t,e[20]=n,e[21]=m,e[22]=g):g=e[22];const x=g;let y;e[23]!==l?(y=f.jsx(Z,{children:f.jsx(Me,{columns:c,columnLookup:h,dataLookup:l})}),e[23]=l,e[24]=y):y=e[24];let v;return e[25]!==x||e[26]!==o||e[27]!==y?(v=f.jsx(q,{title:"NRENs with Performance Enhancement Response Teams",description:`Some NRENs have an in-house Performance Enhancement Response Team, 
-            or PERT, to investigate network performance issues.`,category:L.Network,filter:x,data:o,filename:"pert_team_nrens_per_year",children:y}),e[25]=x,e[26]=o,e[27]=y,e[28]=v):v=e[28],v}function Ly(){const e=A.c(28),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/siem-vendors",n);let o,a;if(e[0]!==s||e[1]!==t.selectedNrens||e[2]!==t.selectedYears){let v;e[5]!==t.selectedNrens||e[6]!==t.selectedYears?(v=_=>t.selectedYears.includes(_.year)&&t.selectedNrens.includes(_.nren),e[5]=t.selectedNrens,e[6]=t.selectedYears,e[7]=v):v=e[7],o=s.filter(v),a=_e(o,"vendor_names"),e[0]=s,e[1]=t.selectedNrens,e[2]=t.selectedYears,e[3]=o,e[4]=a}else o=e[3],a=e[4];const l=a;let c;e[8]!==i?(c=[...i],e[8]=i,e[9]=c):c=e[9];let d;e[10]!==r?(d=r.values(),e[10]=r,e[11]=d):d=e[11];let h;e[12]!==d?(h=[...d],e[12]=d,e[13]=h):h=e[13];let u;e[14]!==c||e[15]!==h?(u={availableYears:c,availableNrens:h},e[14]=c,e[15]=h,e[16]=u):u=e[16];let p;e[17]!==t||e[18]!==n||e[19]!==u?(p=f.jsx(K,{filterOptions:u,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[17]=t,e[18]=n,e[19]=u,e[20]=p):p=e[20];const b=p;let m;e[21]===Symbol.for("react.memo_cache_sentinel")?(m=["Splunk","IBM Qradar","Exabeam","LogRythm","Securonix"],e[21]=m):m=e[21];const g=m;let x;e[22]!==l?(x=f.jsx(Z,{children:f.jsx(Me,{columns:g,dataLookup:l,circle:!0})}),e[22]=l,e[23]=x):x=e[23];let y;return e[24]!==b||e[25]!==o||e[26]!==x?(y=f.jsx(q,{title:"Vendors of SIEM/SOC systems used by NRENs",description:"The table below shows the kinds of vendors of SIEM/SOC systems used by NRENs.",category:L.Network,filter:b,data:o,filename:"siem_vendor_nrens_per_year",children:x}),e[24]=b,e[25]=o,e[26]=x,e[27]=y):y=e[27],y}ie.register($e,Fe,et,Qe,We,Ze);const Iy={maintainAspectRatio:!1,animation:{duration:0},plugins:{htmlLegend:{containerIDs:["legendtop","legendbottom"]},legend:{display:!1},tooltip:{callbacks:{label:function(e){let t=e.dataset.label||"";return e.parsed.x!==null&&(t+=`: ${e.parsed.x}%`),t}}}},scales:{x:{position:"top",stacked:!0,ticks:{callback:(e,t)=>`${t*10}%`}},x2:{ticks:{callback:e=>typeof e=="number"?`${e}%`:e},grid:{drawOnChartArea:!1},afterDataLimits:function(e){const t=Object.keys(ie.instances);let n=-999999,s=999999;for(const i of t)ie.instances[i]&&e.chart.scales.x2&&(s=Math.min(ie.instances[i].scales.x.min,s),n=Math.max(ie.instances[i].scales.x.max,n));e.chart.scales.x2.options.min=s,e.chart.scales.x2.options.max=n,e.chart.scales.x2.min=s,e.chart.scales.x2.max=n}},y:{stacked:!0,ticks:{autoSkip:!1}}},indexAxis:"y"};function $y(){const e=A.c(37),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,years:i,nrens:r}=J("/api/traffic-ratio",n);let o,a,l,c;if(e[0]!==t||e[1]!==r||e[2]!==n||e[3]!==s||e[4]!==i){let v;e[9]!==t.selectedNrens||e[10]!==t.selectedYears?(v=j=>t.selectedYears.includes(j.year)&&t.selectedNrens.includes(j.nren),e[9]=t.selectedNrens,e[10]=t.selectedYears,e[11]=v):v=e[11],a=s.filter(v),c=Rg(a,t.selectedYears[0]);let _;e[12]!==i?(_=[...i],e[12]=i,e[13]=_):_=e[13];let w;e[14]!==r?(w=r.values(),e[14]=r,e[15]=w):w=e[15];let N;e[16]!==w?(N=[...w],e[16]=w,e[17]=N):N=e[17];let S;e[18]!==_||e[19]!==N?(S={availableYears:_,availableNrens:N},e[18]=_,e[19]=N,e[20]=S):S=e[20];let k;e[21]!==t||e[22]!==n||e[23]!==S?(k=f.jsx(K,{max1year:!0,filterOptions:S,filterSelection:t,setFilterSelection:n}),e[21]=t,e[22]=n,e[23]=S,e[24]=k):k=e[24],o=k,l=Array.from(new Set(a.map(Yy))).map(j=>r.get(j)).filter(Fy),e[0]=t,e[1]=r,e[2]=n,e[3]=s,e[4]=i,e[5]=o,e[6]=a,e[7]=l,e[8]=c}else o=e[5],a=e[6],l=e[7],c=e[8];const h=l.length,p=`${Math.max(h*1.5,20)}rem`;let b;e[25]!==p?(b={height:p},e[25]=p,e[26]=b):b=e[26];let m;e[27]===Symbol.for("react.memo_cache_sentinel")?(m=[Bc],e[27]=m):m=e[27];let g;e[28]!==c?(g=f.jsx(Bt,{data:c,options:Iy,plugins:m}),e[28]=c,e[29]=g):g=e[29];let x;e[30]!==b||e[31]!==g?(x=f.jsx(Yc,{children:f.jsx("div",{className:"chart-container",style:b,children:g})}),e[30]=b,e[31]=g,e[32]=x):x=e[32];let y;return e[33]!==o||e[34]!==a||e[35]!==x?(y=f.jsx(q,{title:"Types of traffic in NREN networks  (Commodity v. Research & Education)",description:"The graph shows the ratio of commodity versus research and education traffic in NREN networks",category:L.Network,filter:o,data:a,filename:"types_of_traffic_in_nren_networks",children:x}),e[33]=o,e[34]=a,e[35]=x,e[36]=y):y=e[36],y}function Fy(e){return!!e}function Yy(e){return e.nren}function By(){const e=A.c(21),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,nrens:i}=J("/api/traffic-stats",n);let r,o;if(e[0]!==s||e[1]!==t.selectedNrens){const m=s?Pn(s):[];let g;e[4]!==t.selectedNrens?(g=y=>t.selectedNrens.includes(y.nren),e[4]=t.selectedNrens,e[5]=g):g=e[5],r=m.filter(g);const x=Ve(r);o=nt(x,zy),e[0]=s,e[1]=t.selectedNrens,e[2]=r,e[3]=o}else r=e[2],o=e[3];const a=o;let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[6]=l):l=e[6];let c;e[7]!==i?(c=i.values(),e[7]=i,e[8]=c):c=e[8];let d;e[9]!==c?(d={availableYears:l,availableNrens:[...c]},e[9]=c,e[10]=d):d=e[10];let h;e[11]!==t||e[12]!==n||e[13]!==d?(h=f.jsx(K,{filterOptions:d,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[11]=t,e[12]=n,e[13]=d,e[14]=h):h=e[14];const u=h;let p;e[15]!==a?(p=f.jsx(Z,{children:f.jsx(ht,{data:a,columnTitle:"Traffic Statistics URL",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=a,e[16]=p):p=e[16];let b;return e[17]!==u||e[18]!==r||e[19]!==p?(b=f.jsx(q,{title:"Traffic Statistics",description:"This table shows the URL links to NREN websites showing traffic statistics, if available.",category:L.Network,filter:u,data:r,filename:"traffic_stats_nrens_per_year",children:p}),e[17]=u,e[18]=r,e[19]=p,e[20]=b):b=e[20],b}function zy(e,t){const n=Ir(t);if(n!=null)for(const[s,i]of Object.entries(n))e[s]=i}ie.register($e,Fe,_t,yt,Qe,We,Ze);function Wy(){const e=A.c(47),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,nrens:i}=J("/api/traffic-volume",n);let r,o,a,l,c;if(e[0]!==s||e[1]!==t.selectedNrens){let I;e[7]!==t.selectedNrens?(I=V=>t.selectedNrens.includes(V.nren),e[7]=t.selectedNrens,e[8]=I):I=e[8],a=s.filter(I),r=Dt(a,"from_customers"),c=Dt(a,"to_customers"),o=Dt(a,"from_external"),l=Dt(a,"to_external"),e[0]=s,e[1]=t.selectedNrens,e[2]=r,e[3]=o,e[4]=a,e[5]=l,e[6]=c}else r=e[2],o=e[3],a=e[4],l=e[5],c=e[6];const d=l;let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=gs({title:"Traffic Volume in PB",tooltipUnit:"PB",valueTransform(I){return I?I/1e3:0}}),e[9]=h):h=e[9];const u=h;let p;e[10]===Symbol.for("react.memo_cache_sentinel")?(p=[],e[10]=p):p=e[10];let b;e[11]!==i?(b=i.values(),e[11]=i,e[12]=b):b=e[12];let m;e[13]!==b?(m={availableYears:p,availableNrens:[...b]},e[13]=b,e[14]=m):m=e[14];let g;e[15]!==t||e[16]!==n||e[17]!==m?(g=f.jsx(K,{filterOptions:m,filterSelection:t,setFilterSelection:n}),e[15]=t,e[16]=n,e[17]=m,e[18]=g):g=e[18];const x=g;let y;e[19]===Symbol.for("react.memo_cache_sentinel")?(y=f.jsx("span",{children:"The four graphs below show the estimates of total annual traffic in PB (1000 TB) to & from NREN customers, and to & from external networks. NREN customers are taken to mean sources that are part of the NREN's connectivity remit, while external networks are understood as outside sources including GÉANT, the general/commercial internet, internet exchanges, peerings, other NRENs, etc."}),e[19]=y):y=e[19];let v;e[20]===Symbol.for("react.memo_cache_sentinel")?(v={marginBottom:"30px"},e[20]=v):v=e[20];let _;e[21]===Symbol.for("react.memo_cache_sentinel")?(_=f.jsx("span",{style:{fontSize:"20px",color:"rgb(85, 96, 156)",fontWeight:"bold"},children:"Traffic from NREN customer"}),e[21]=_):_=e[21];let w;e[22]!==r?(w=f.jsxs(Ne,{children:[_,f.jsx(Ot,{data:r,options:u})]}),e[22]=r,e[23]=w):w=e[23];let N;e[24]===Symbol.for("react.memo_cache_sentinel")?(N=f.jsx("span",{style:{fontSize:"20px",color:"rgb(221, 100, 57)",fontWeight:"bold"},children:"Traffic to NREN customer"}),e[24]=N):N=e[24];let S;e[25]!==c?(S=f.jsxs(Ne,{children:[N,f.jsx(Ot,{data:c,options:u})]}),e[25]=c,e[26]=S):S=e[26];let k;e[27]!==S||e[28]!==w?(k=f.jsxs(we,{style:v,children:[w,S]}),e[27]=S,e[28]=w,e[29]=k):k=e[29];let j;e[30]===Symbol.for("react.memo_cache_sentinel")?(j={marginTop:"30px"},e[30]=j):j=e[30];let C;e[31]===Symbol.for("react.memo_cache_sentinel")?(C=f.jsx("span",{style:{fontSize:"20px",color:"rgb(63, 143, 77)",fontWeight:"bold"},children:"Traffic from external network"}),e[31]=C):C=e[31];let E;e[32]!==o?(E=f.jsxs(Ne,{children:[C,f.jsx(Ot,{data:o,options:u})]}),e[32]=o,e[33]=E):E=e[33];let M;e[34]===Symbol.for("react.memo_cache_sentinel")?(M=f.jsx("span",{style:{fontSize:"20px",color:"rgb(173, 48, 51)",fontWeight:"bold"},children:"Traffic to external network"}),e[34]=M):M=e[34];let P;e[35]!==d?(P=f.jsxs(Ne,{children:[M,f.jsx(Ot,{data:d,options:u})]}),e[35]=d,e[36]=P):P=e[36];let T;e[37]!==E||e[38]!==P?(T=f.jsxs(we,{style:j,children:[E,P]}),e[37]=E,e[38]=P,e[39]=T):T=e[39];let O;e[40]!==k||e[41]!==T?(O=f.jsxs(Z,{children:[k,T]}),e[40]=k,e[41]=T,e[42]=O):O=e[42];let D;return e[43]!==x||e[44]!==a||e[45]!==O?(D=f.jsx(q,{title:"NREN Traffic - NREN Customers & External Networks",description:y,category:L.Network,filter:x,data:a,filename:"NREN_traffic_estimates_data",children:O}),e[43]=x,e[44]=a,e[45]=O,e[46]=D):D=e[46],D}function Vy(){const e=A.c(21),{filterSelection:t,setFilterSelection:n}=R.useContext(X),{data:s,nrens:i}=J("/api/weather-map",n);let r,o;if(e[0]!==s||e[1]!==t.selectedNrens){const m=s?Pn(s):[];let g;e[4]!==t.selectedNrens?(g=y=>t.selectedNrens.includes(y.nren),e[4]=t.selectedNrens,e[5]=g):g=e[5],r=m.filter(g);const x=Ve(r);o=nt(x,Hy),e[0]=s,e[1]=t.selectedNrens,e[2]=r,e[3]=o}else r=e[2],o=e[3];const a=o;let l;e[6]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[6]=l):l=e[6];let c;e[7]!==i?(c=i.values(),e[7]=i,e[8]=c):c=e[8];let d;e[9]!==c?(d={availableYears:l,availableNrens:[...c]},e[9]=c,e[10]=d):d=e[10];let h;e[11]!==t||e[12]!==n||e[13]!==d?(h=f.jsx(K,{filterOptions:d,filterSelection:t,setFilterSelection:n,coloredYears:!0}),e[11]=t,e[12]=n,e[13]=d,e[14]=h):h=e[14];const u=h;let p;e[15]!==a?(p=f.jsx(Z,{children:f.jsx(ht,{data:a,columnTitle:"Network Weather Map",dottedBorder:!0,noDots:!0,keysAreURLs:!0,removeDecoration:!0})}),e[15]=a,e[16]=p):p=e[16];let b;return e[17]!==u||e[18]!==r||e[19]!==p?(b=f.jsx(q,{title:"NREN Online Network Weather Maps ",description:"This table shows the URL links to NREN websites showing weather map, if available.",category:L.Network,filter:u,data:r,filename:"weather_map_nrens_per_year",children:p}),e[17]=u,e[18]=r,e[19]=p,e[20]=b):b=e[20],b}function Hy(e,t){!!t.url&&(e[t.url]=t.url)}function La(e){return dd({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m10 15.586-3.293-3.293-1.414 1.414L10 18.414l9.707-9.707-1.414-1.414z"},child:[]}]})(e)}function Uy(e){const t=A.c(9),{year:n,active:s,serviceInfo:i,tickServiceIndex:r,current:o}=e;let a="No additional information available";if(i!==void 0){const h=i.service_name,u=i.year;let p=i.product_name,b=i.official_description,m=i.additional_information;(p!=""||b!=""||m!="")&&(p=p||"N/A",b=b||"N/A",m=m||"N/A",a=h+" ("+u+`)
-`+p+`
-
-Description: `+b+`
-Information: `+m)}let l="";a!=="No additional information available"&&(l="pill-shadow");let c;t[0]!==s||t[1]!==o||t[2]!==l||t[3]!==r||t[4]!==a?(c=s&&o?f.jsx("div",{"data-description":a,className:" bottom-tooltip ",style:{width:"30px",height:"30px",margin:"2px"},children:f.jsx(La,{className:`rounded-pill color-of-the-current-service-${r%13} bottom-tooltip ${l}`})}):s&&!o?f.jsx("div",{"data-description":a,className:" bottom-tooltip ",style:{width:"30px",height:"30px",margin:"2px"},children:f.jsx(La,{className:`rounded-pill color-of-the-previous-service-${r%13} bottom-tooltip ${l}`})}):f.jsx("div",{className:"rounded-pill bg-color-of-the-year-blank",style:{width:"30px",height:"30px",margin:"2px"},children:" "}),t[0]=s,t[1]=o,t[2]=l,t[3]=r,t[4]=a,t[5]=c):c=t[5];let d;return t[6]!==c||t[7]!==n?(d=f.jsx("div",{className:"d-inline-block",children:c},n),t[6]=c,t[7]=n,t[8]=d):d=t[8],d}const kt={};kt[ge.network_services]="network";kt[ge.isp_support]="ISP support";kt[ge.security]="security";kt[ge.identity]="identity";kt[ge.collaboration]="collaboration";kt[ge.multimedia]="multimedia";kt[ge.storage_and_hosting]="storage and hosting";kt[ge.professional_services]="professional";function Ct(e){const t=A.c(62),{category:n}=e,{filterSelection:s,setFilterSelection:i}=R.useContext(X),{data:r,years:o,nrens:a}=J("/api/nren-services",i),l=Math.max(...s.selectedYears);let c,d,h,u,p,b,m,g,x,y,v,_,w;if(t[0]!==n||t[1]!==s||t[2]!==l||t[3]!==a||t[4]!==r||t[5]!==i||t[6]!==o){let C;t[20]!==n||t[21]!==s.selectedNrens||t[22]!==s.selectedYears?(C=U=>s.selectedYears.includes(U.year)&&s.selectedNrens.includes(U.nren)&&U.service_category==n,t[20]=n,t[21]=s.selectedNrens,t[22]=s.selectedYears,t[23]=C):C=t[23];const E=r.filter(C),M={};E.forEach(U=>{M[U.service_name]=U.service_description});const P=Object.entries(M).sort(Xy),T=_e(E,"service_name");let O;t[24]!==o?(O=[...o],t[24]=o,t[25]=O):O=t[25];let D;t[26]!==a?(D=a.values(),t[26]=a,t[27]=D):D=t[27];let I;t[28]!==D?(I=[...D],t[28]=D,t[29]=I):I=t[29];let V;t[30]!==O||t[31]!==I?(V={availableYears:O,availableNrens:I},t[30]=O,t[31]=I,t[32]=V):V=t[32];let W;t[33]!==s||t[34]!==i||t[35]!==V?(W=f.jsx(K,{filterOptions:V,filterSelection:s,setFilterSelection:i}),t[33]=s,t[34]=i,t[35]=V,t[36]=W):W=t[36];const G=W;let ne;t[37]!==o?(ne=U=>o.has(U),t[37]=o,t[38]=ne):ne=t[38];const ae=[...s.selectedYears.filter(ne)].sort();h=q,x="NREN "+kt[n]+" services matrix",y=`The service matrix shows the services NRENs offer to their users. These 
-            services are grouped thematically, with navigation possible via. the side menu. NRENs 
-            are invited to give extra information about their services; where this is provided, 
-            you will see a black circle around the marker. Hover over the marker to read more.`,v=L.Services,_=G,w=E,p="nren_services",d=Z,c=Ft,b="service-table",m=!0;let re;t[39]===Symbol.for("react.memo_cache_sentinel")?(re=f.jsx("th",{}),t[39]=re):re=t[39];const te=f.jsxs("tr",{children:[re,P.map(Gy)]});t[40]!==te?(g=f.jsx("thead",{children:te}),t[40]=te,t[41]=g):g=t[41],u=Array.from(T.entries()).map(U=>{const[se,le]=U;return f.jsxs("tr",{children:[f.jsx("td",{className:"bold-text",children:se}),P.map((Y,B)=>{const[Q]=Y;return f.jsx("td",{children:le.has(Q)&&ae.map(H=>{const ue=le.get(Q),me=ue.get(H);return f.jsx(Uy,{year:H,active:ue.has(H),serviceInfo:me,tickServiceIndex:B,current:H==l},H)})},Q)})]},se)}),t[0]=n,t[1]=s,t[2]=l,t[3]=a,t[4]=r,t[5]=i,t[6]=o,t[7]=c,t[8]=d,t[9]=h,t[10]=u,t[11]=p,t[12]=b,t[13]=m,t[14]=g,t[15]=x,t[16]=y,t[17]=v,t[18]=_,t[19]=w}else c=t[7],d=t[8],h=t[9],u=t[10],p=t[11],b=t[12],m=t[13],g=t[14],x=t[15],y=t[16],v=t[17],_=t[18],w=t[19];let N;t[42]!==u?(N=f.jsx("tbody",{children:u}),t[42]=u,t[43]=N):N=t[43];let S;t[44]!==c||t[45]!==N||t[46]!==b||t[47]!==m||t[48]!==g?(S=f.jsxs(c,{className:b,bordered:m,children:[g,N]}),t[44]=c,t[45]=N,t[46]=b,t[47]=m,t[48]=g,t[49]=S):S=t[49];let k;t[50]!==d||t[51]!==S?(k=f.jsx(d,{children:S}),t[50]=d,t[51]=S,t[52]=k):k=t[52];let j;return t[53]!==h||t[54]!==p||t[55]!==k||t[56]!==x||t[57]!==y||t[58]!==v||t[59]!==_||t[60]!==w?(j=f.jsx(h,{title:x,description:y,category:v,filter:_,data:w,filename:p,children:k}),t[53]=h,t[54]=p,t[55]=k,t[56]=x,t[57]=y,t[58]=v,t[59]=_,t[60]=w,t[61]=j):j=t[61],j}function Gy(e,t){const[n,s]=e;return f.jsx("th",{"data-description":s,className:`bottom-tooltip color-of-the-service-header-${t%13}`,children:n},n)}function Xy(e,t){return e[0].toLowerCase()<t[0].toLowerCase()?-1:1}const qy=()=>{const e=A.c(9),{pathname:t}=Va(),n=t!=="/";let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx(hd,{}),e[0]=s):s=e[0];let i;e[1]!==n?(i=f.jsx("main",{className:"grow",children:n?f.jsx(ud,{}):f.jsx(xr,{})}),e[1]=n,e[2]=i):i=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=f.jsx(pd,{}),e[3]=r):r=e[3];let o;e[4]!==i?(o=f.jsxs(md,{children:[s,i,r]}),e[4]=i,e[5]=o):o=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=f.jsx(gd,{}),e[6]=a):a=e[6];let l;return e[7]!==o?(l=f.jsxs(f.Fragment,{children:[o,a]}),e[7]=o,e[8]=l):l=e[8],l},Ky=()=>{const e=A.c(4),{pathname:t}=Va();let n,s;e[0]!==t?(n=()=>{t.startsWith("/survey")?window.location.replace(t):window.location.replace(`/survey${t}`)},s=[t],e[0]=t,e[1]=n,e[2]=s):(n=e[1],s=e[2]),R.useEffect(n,s);let i;return e[3]===Symbol.for("react.memo_cache_sentinel")?(i=f.jsx(xr,{}),e[3]=i):i=e[3],i},Jy=fd([{path:"",element:f.jsx(qy,{}),children:[{path:"/budget",element:f.jsx(Fb,{})},{path:"/funding",element:f.jsx(mx,{})},{path:"/employment",element:f.jsx(Da,{},"staffgraph")},{path:"/traffic-ratio",element:f.jsx($y,{})},{path:"/roles",element:f.jsx(Da,{roles:!0},"staffgraphroles")},{path:"/employee-count",element:f.jsx(_x,{})},{path:"/charging",element:f.jsx(Yb,{})},{path:"/suborganisations",element:f.jsx(Nx,{})},{path:"/parentorganisation",element:f.jsx(bx,{})},{path:"/ec-projects",element:f.jsx(Vb,{})},{path:"/policy",element:f.jsx($x,{})},{path:"/traffic-volume",element:f.jsx(Wy,{})},{path:"/data",element:f.jsx(dh,{})},{path:"/institutions-urls",element:f.jsx(Zx,{})},{path:"/connected-proportion",element:f.jsx(en,{page:ee.ConnectedProportion},ee.ConnectedProportion)},{path:"/connectivity-level",element:f.jsx(en,{page:ee.ConnectivityLevel},ee.ConnectivityLevel)},{path:"/connectivity-growth",element:f.jsx(en,{page:ee.ConnectivityGrowth},ee.ConnectivityGrowth)},{path:"/connection-carrier",element:f.jsx(en,{page:ee.ConnectionCarrier},ee.ConnectionCarrier)},{path:"/connectivity-load",element:f.jsx(en,{page:ee.ConnectivityLoad},ee.ConnectivityLoad)},{path:"/commercial-charging-level",element:f.jsx(en,{page:ee.CommercialChargingLevel},ee.CommercialChargingLevel)},{path:"/commercial-connectivity",element:f.jsx(en,{page:ee.CommercialConnectivity},ee.CommercialConnectivity)},{path:"/network-services",element:f.jsx(Ct,{category:ge.network_services},ge.network_services)},{path:"/isp-support-services",element:f.jsx(Ct,{category:ge.isp_support},ge.isp_support)},{path:"/security-services",element:f.jsx(Ct,{category:ge.security},ge.security)},{path:"/identity-services",element:f.jsx(Ct,{category:ge.identity},ge.identity)},{path:"/collaboration-services",element:f.jsx(Ct,{category:ge.collaboration},ge.collaboration)},{path:"/multimedia-services",element:f.jsx(Ct,{category:ge.multimedia},ge.multimedia)},{path:"/storage-and-hosting-services",element:f.jsx(Ct,{category:ge.storage_and_hosting},ge.storage_and_hosting)},{path:"/professional-services",element:f.jsx(Ct,{category:ge.professional_services},ge.professional_services)},{path:"/dark-fibre-lease",element:f.jsx(Aa,{national:!0},"darkfibrenational")},{path:"/dark-fibre-lease-international",element:f.jsx(Aa,{},"darkfibreinternational")},{path:"/dark-fibre-installed",element:f.jsx(xy,{})},{path:"/remote-campuses",element:f.jsx(ry,{})},{path:"/eosc-listings",element:f.jsx(Lx,{})},{path:"/fibre-light",element:f.jsx(_y,{})},{path:"/monitoring-tools",element:f.jsx(Ny,{})},{path:"/pert-team",element:f.jsx(Ay,{})},{path:"/passive-monitoring",element:f.jsx(Dy,{})},{path:"/alien-wave",element:f.jsx(cy,{})},{path:"/alien-wave-internal",element:f.jsx(fy,{})},{path:"/external-connections",element:f.jsx(vy,{})},{path:"/ops-automation",element:f.jsx(Ty,{})},{path:"/network-automation",element:f.jsx(hy,{})},{path:"/traffic-stats",element:f.jsx(By,{})},{path:"/weather-map",element:f.jsx(Vy,{})},{path:"/network-map",element:f.jsx(Ey,{})},{path:"/nfv",element:f.jsx(ky,{})},{path:"/certificate-providers",element:f.jsx(by,{})},{path:"/siem-vendors",element:f.jsx(Ly,{})},{path:"/capacity-largest-link",element:f.jsx(my,{})},{path:"/capacity-core-ip",element:f.jsx(uy,{})},{path:"/non-rne-peers",element:f.jsx(Ry,{})},{path:"/iru-duration",element:f.jsx(wy,{})},{path:"/audits",element:f.jsx(jx,{})},{path:"/business-continuity",element:f.jsx(Ex,{})},{path:"/crisis-management",element:f.jsx(Ax,{})},{path:"/crisis-exercise",element:f.jsx(Ox,{})},{path:"/central-procurement",element:f.jsx(Rx,{})},{path:"/security-control",element:f.jsx(Yx,{})},{path:"/services-offered",element:f.jsx(Jx,{})},{path:"/service-management-framework",element:f.jsx(Wx,{})},{path:"/service-level-targets",element:f.jsx(zx,{})},{path:"/corporate-strategy",element:f.jsx(Tx,{})},{path:"/survey/*",element:f.jsx(Ky,{})},{path:"*",element:f.jsx(xr,{})}]}]);function Zy(){const e=A.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=f.jsx("div",{className:"app",children:f.jsx(bd,{router:Jy})}),e[0]=t):t=e[0],t}const Qy=document.getElementById("root"),e1=xd.createRoot(Qy);e1.render(f.jsx(tt.StrictMode,{children:f.jsx(Zy,{})}));
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["Budget-BaNd2jtG.js","main-BIBsTO5W.js","main.css","index-BBrAyDR9.js","useData-BDYwoQEh.js","xlsx-CxqzP9DR.js","index-D6hre9Be.js","hook-DmuGcAOd.js","charthelpers-CCaYPWnR.js","ChargingStructure-UaYN2mUD.js","PillTable-5pkcg2T9.js","ColorPill-CqT_mR3a.js","Table-HH9WOnMU.js","ECProjects-C-HN1lwo.js","NrenYearTable-BuqomkXK.js","FundingSource-DRHIT4Ra.js","chartjs-plugin-datalabels.esm-D8EJYoxA.js","ParentOrganisation-DJLeH6g7.js","StaffGraph-CRnD7Dbf.js","HTMLLegendPlugin-BO0IHS_R.js","StaffGraphAbsolute-1_iTYcqR.js","SubOrganisation-D8wGO2zm.js","Audits-z541eU6T.js","BusinessContinuity-BhppOK3E.js","CentralProcurement-BK_KYdQw.js","CorporateStrategy-Doz2JleE.js","CrisisExercises-DIq1DMCc.js","CrisisManagement-B-4V900E.js","EOSCListings-DkHlXFjZ.js","Policy-rfVVQ2MG.js","SecurityControls-Ct-pN0fH.js","ServiceLevelTargets-DkcKRrX5.js","ServiceManagementFramework-0pFJ2GJW.js","ServicesOffered-DAgKmLaL.js","ScrollableMatrix-Cdgj4J9X.js","ConnectedInstitutionsURLs-BSMQXsFI.js","ConnectedUser-BEMGNK1Q.js","RemoteCampuses-B7LZiN42.js","AlienWave-BToV9QLE.js","AlienWaveInternal-CYmkCEA6.js","Automation-CrHhcUVx.js","CapacityCoreIP-BzYm9HBi.js","CapacityLargestLink-CchKWKUR.js","CertificateProvider-B2MBeNfh.js","DarkFibreLease-DpIHorYZ.js","DarkFibreInstalled-BG9k0mWY.js","ExternalConnections-CYJLiQ46.js","FibreLight-4Mgdokfs.js","IRUDuration-D50DEG35.js","MonitoringTools-BuTC_DRa.js","NetworkFunctionVirtualisation-DMaSWRo0.js","NetworkMapUrls-YVUXOiQm.js","NonRAndEPeer-BvFWiPrM.js","OPsAutomation-mleIxb9-.js","PassiveMonitoring-BQaZqq7o.js","PertTeam-Dk6-ebg9.js","SiemVendors-AspEWRsK.js","TrafficRatio-CEE7weoG.js","TrafficUrl-DFoUKOws.js","TrafficVolume-5iEpLgxK.js","WeatherMap-CR-KiYaJ.js","Services-TWQx7C9G.js"])))=>i.map(i=>d[i]);
+import{r as s,u as S,j as t,c as k,d as Je,a as R,b as Ye,C as O,L as a,e as z,R as L,A as ht,f as ft,P as _t,g as pt,h as ut,i as Qe,_ as c,k as xt,l as Ze,E as yt,O as jt,m as Nt,n as gt,G as vt,o as Et,p as bt}from"./main-BIBsTO5W.js";var j=(e=>(e.ConnectedProportion="proportion",e.ConnectivityLevel="level",e.ConnectionCarrier="carrier",e.ConnectivityLoad="load",e.ConnectivityGrowth="growth",e.CommercialConnectivity="commercial",e.CommercialChargingLevel="charging",e))(j||{}),y=(e=>(e.network_services="network_services",e.isp_support="isp_support",e.security="security",e.identity="identity",e.collaboration="collaboration",e.multimedia="multimedia",e.storage_and_hosting="storage_and_hosting",e.professional_services="professional_services",e))(y||{});const He=s.forwardRef(({className:e,bsPrefix:n,as:l="div",...i},r)=>(n=S(n,"card-body"),t.jsx(l,{ref:r,className:k(e,n),...i})));He.displayName="CardBody";const et=s.forwardRef(({className:e,bsPrefix:n,as:l="div",...i},r)=>(n=S(n,"card-footer"),t.jsx(l,{ref:r,className:k(e,n),...i})));et.displayName="CardFooter";const tt=s.createContext(null);tt.displayName="CardHeaderContext";const nt=s.forwardRef(({bsPrefix:e,className:n,as:l="div",...i},r)=>{const m=S(e,"card-header"),o=s.useMemo(()=>({cardHeaderBsPrefix:m}),[m]);return t.jsx(tt.Provider,{value:o,children:t.jsx(l,{ref:r,...i,className:k(n,m)})})});nt.displayName="CardHeader";const st=s.forwardRef(({bsPrefix:e,className:n,variant:l,as:i="img",...r},m)=>{const o=S(e,"card-img");return t.jsx(i,{ref:m,className:k(l?`${o}-${l}`:o,n),...r})});st.displayName="CardImg";const it=s.forwardRef(({className:e,bsPrefix:n,as:l="div",...i},r)=>(n=S(n,"card-img-overlay"),t.jsx(l,{ref:r,className:k(e,n),...i})));it.displayName="CardImgOverlay";const rt=s.forwardRef(({className:e,bsPrefix:n,as:l="a",...i},r)=>(n=S(n,"card-link"),t.jsx(l,{ref:r,className:k(e,n),...i})));rt.displayName="CardLink";const Ct=Je("h6"),at=s.forwardRef(({className:e,bsPrefix:n,as:l=Ct,...i},r)=>(n=S(n,"card-subtitle"),t.jsx(l,{ref:r,className:k(e,n),...i})));at.displayName="CardSubtitle";const lt=s.forwardRef(({className:e,bsPrefix:n,as:l="p",...i},r)=>(n=S(n,"card-text"),t.jsx(l,{ref:r,className:k(e,n),...i})));lt.displayName="CardText";const St=Je("h5"),ot=s.forwardRef(({className:e,bsPrefix:n,as:l=St,...i},r)=>(n=S(n,"card-title"),t.jsx(l,{ref:r,className:k(e,n),...i})));ot.displayName="CardTitle";const ct=s.forwardRef(({bsPrefix:e,className:n,bg:l,text:i,border:r,body:m=!1,children:o,as:d="div",...h},f)=>{const _=S(e,"card");return t.jsx(d,{ref:f,...h,className:k(n,_,l&&`bg-${l}`,i&&`text-${i}`,r&&`border-${r}`),children:m?t.jsx(He,{children:o}):o})});ct.displayName="Card";const C=Object.assign(ct,{Img:st,Title:ot,Subtitle:at,Body:He,Link:rt,Text:lt,Header:nt,Footer:et,ImgOverlay:it}),mt="/static/C4lsyu6A.svg",dt="/static/DhA-EmEc.svg";function Ke(){const e=R.c(13),{trackPageView:n}=Ye();let l,i;e[0]!==n?(l=()=>{n({documentTitle:"GEANT Compendium Landing Page"})},i=[n],e[0]=n,e[1]=l,e[2]=i):(l=e[1],i=e[2]),s.useEffect(l,i);let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("h1",{className:"geant-header",children:"THE GÉANT COMPENDIUM OF NRENS"}),e[3]=r):r=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(L,{children:t.jsxs("div",{className:"center-text",children:[r,t.jsxs("div",{className:"wordwrap pt-4",children:[t.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"Each year GÉANT invites European National Research and Eduction Networks to fill in a questionnaire asking about their network, their organisation, standards and policies, connected users, and the services they offer their users. This Compendium of responses is an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. No two NRENs are identical, with great diversity in their structures, funding, size, and focus."}),t.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"The GÉANT Compendium of NRENs Report is published annually, using both data from the Compendium from other sources, including surveys and studies carried out within different teams within GÉANT and the NREN community. The Report gives a broad overview of the European NREN landscape, identifying developments and trends."}),t.jsx("p",{style:{textAlign:"left",fontSize:"20px"},children:"Compendium Data, the responses from the NRENs, are made available to be viewed and downloaded. Graphs, charts, and tables can be customised to show as many or few NRENs as required, across different years. These can be downloaded as images or in PDF form."})]})]})}),e[4]=m):m=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o={backgroundColor:"white"},e[5]=o):o=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d={width:"18rem"},e[6]=d):d=e[6];let h;e[7]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(C.Img,{src:mt}),e[7]=h):h=e[7];let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(C.Title,{children:"Compendium Data"}),e[8]=f):f=e[8];let _;e[9]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(O,{align:"center",children:t.jsx(C,{border:"light",style:d,children:t.jsxs(a,{to:"/data",className:"link-text",children:[h,t.jsxs(C.Body,{children:[f,t.jsx(C.Text,{children:t.jsx("span",{children:"Statistical representation of the annual Compendium Survey data is available here"})})]})]})})}),e[9]=_):_=e[9];let u;e[10]===Symbol.for("react.memo_cache_sentinel")?(u={width:"18rem"},e[10]=u):u=e[10];let p;e[11]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(C.Img,{src:dt}),e[11]=p):p=e[11];let x;return e[12]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsxs(z,{className:"py-5 grey-container",children:[m,t.jsx(L,{children:t.jsx(O,{children:t.jsx(z,{style:o,className:"rounded-border",children:t.jsxs(L,{className:"justify-content-md-center",children:[_,t.jsx(O,{align:"center",children:t.jsx(C,{border:"light",style:u,children:t.jsxs("a",{href:"https://resources.geant.org/geant-compendia/",className:"link-text",target:"_blank",rel:"noreferrer",children:[p,t.jsxs(C.Body,{children:[t.jsx(C.Title,{children:"Compendium Reports"}),t.jsx(C.Text,{children:"A GÉANT Compendium Report is published annually, drawing on data from the Compendium Survey filled in by NRENs, complemented by information from other surveys"})]})]})})})]})})})})]}),e[12]=x):x=e[12],x}const V=e=>{const n=R.c(23),{title:l,children:i,startCollapsed:r,theme:m}=e,o=m===void 0?"":m,[d,h]=s.useState(!!r);let f;n[0]===Symbol.for("react.memo_cache_sentinel")?(f={color:"white",paddingBottom:"3px",marginTop:"3px",marginLeft:"3px",scale:"1.3"},n[0]=f):f=n[0];let _=f;if(o){let w;n[1]===Symbol.for("react.memo_cache_sentinel")?(w={..._,color:"black",fontWeight:"bold"},n[1]=w):w=n[1],_=w}const u=`collapsible-box${o} p-0`;let p;n[2]!==l?(p=t.jsx(O,{children:t.jsx("h1",{className:"bold-caps-16pt dark-teal pt-3 ps-3",children:l})}),n[2]=l,n[3]=p):p=n[3];const x=`toggle-btn${o} p-${o?3:2}`;let N;n[4]!==d?(N=()=>h(!d),n[4]=d,n[5]=N):N=n[5];let g;n[6]!==d||n[7]!==_?(g=d?t.jsx(ht,{style:_}):t.jsx(ft,{style:_}),n[6]=d,n[7]=_,n[8]=g):g=n[8];let v;n[9]!==x||n[10]!==N||n[11]!==g?(v=t.jsx(O,{className:"flex-grow-0 flex-shrink-1",children:t.jsx("div",{className:x,onClick:N,children:g})}),n[9]=x,n[10]=N,n[11]=g,n[12]=v):v=n[12];let E;n[13]!==p||n[14]!==v?(E=t.jsxs(L,{children:[p,v]}),n[13]=p,n[14]=v,n[15]=E):E=n[15];const T=`collapsible-content${d?" collapsed":""}`;let b;n[16]!==i||n[17]!==T?(b=t.jsx("div",{className:T,children:i}),n[16]=i,n[17]=T,n[18]=b):b=n[18];let P;return n[19]!==b||n[20]!==u||n[21]!==E?(P=t.jsxs("div",{className:u,children:[E,b]}),n[19]=b,n[20]=u,n[21]=E,n[22]=P):P=n[22],P};function kt(e){const n=R.c(8),{section:l}=e;let i;n[0]===Symbol.for("react.memo_cache_sentinel")?(i={display:"flex",alignSelf:"right",lineHeight:"1.5rem",marginTop:"0.5rem"},n[0]=i):i=n[0];let r,m;n[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("br",{}),m={float:"right"},n[1]=r,n[2]=m):(r=n[1],m=n[2]);let o;n[3]!==l?(o=t.jsx("div",{style:i,children:t.jsxs("span",{children:["Compendium ",r,t.jsx("span",{style:m,children:l})]})}),n[3]=l,n[4]=o):o=n[4];let d;n[5]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("img",{src:dt,style:{maxWidth:"4rem"}}),n[5]=d):d=n[5];let h;return n[6]!==o?(h=t.jsxs("div",{className:"bold-caps-17pt section-container",children:[o,d]}),n[6]=o,n[7]=h):h=n[7],h}function Rt(e){const n=R.c(14),{type:l}=e;let i="";l=="data"?i=" compendium-data-header":l=="reports"&&(i=" compendium-reports-header");let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r={marginTop:"0.5rem"},n[0]=r):r=n[0];const m=l==="data"?"/data":"/";let o;n[1]===Symbol.for("react.memo_cache_sentinel")?(o={textDecoration:"none",color:"white"},n[1]=o):o=n[1];const d=l==="data"?"Data":"Reports";let h;n[2]!==d?(h=t.jsxs("span",{children:["Compendium ",d]}),n[2]=d,n[3]=h):h=n[3];let f;n[4]!==m||n[5]!==h?(f=t.jsx(O,{sm:8,children:t.jsx("h1",{className:"bold-caps-30pt",style:r,children:t.jsx(a,{to:m,style:o,children:h})})}),n[4]=m,n[5]=h,n[6]=f):f=n[6];let _;n[7]===Symbol.for("react.memo_cache_sentinel")?(_={color:"inherit"},n[7]=_):_=n[7];let u;n[8]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(O,{sm:4,children:t.jsx("a",{style:_,href:"https://resources.geant.org/geant-compendia/",target:"_blank",rel:"noreferrer",children:t.jsx(kt,{section:"Reports"})})}),n[8]=u):u=n[8];let p;n[9]!==f?(p=t.jsx(z,{children:t.jsxs(L,{children:[f,u]})}),n[9]=f,n[10]=p):p=n[10];let x;return n[11]!==i||n[12]!==p?(x=t.jsx("div",{className:i,children:p}),n[11]=i,n[12]=p,n[13]=x):x=n[13],x}function Pt(e){const n=R.c(8),{children:l,type:i}=e;let r="";i=="data"?r=" compendium-data-banner":i=="reports"&&(r=" compendium-reports-banner");let m,o;n[0]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx("img",{src:mt,style:{maxWidth:"7rem",marginBottom:"1rem"}}),o={display:"flex",alignSelf:"right"},n[0]=m,n[1]=o):(m=n[0],o=n[1]);let d;n[2]===Symbol.for("react.memo_cache_sentinel")?(d={paddingTop:"1rem"},n[2]=d):d=n[2];let h;n[3]!==l?(h=t.jsx(z,{children:t.jsx(L,{children:t.jsx(L,{children:t.jsxs("div",{className:"section-container",children:[m,t.jsx("div",{style:o,children:t.jsx("div",{className:"center-text",style:d,children:l})})]})})})}),n[3]=l,n[4]=h):h=n[4];let f;return n[5]!==r||n[6]!==h?(f=t.jsx("div",{className:r,children:h}),n[5]=r,n[6]=h,n[7]=f):f=n[7],f}var D=(e=>(e.Organisation="ORGANISATION",e.Policy="STANDARDS AND POLICIES",e.ConnectedUsers="CONNECTED USERS",e.Network="NETWORK",e.Services="SERVICES",e))(D||{}),wt=(e=>(e.CSV="CSV",e.EXCEL="EXCEL",e))(wt||{}),Tt=(e=>(e.PNG="png",e.JPEG="jpeg",e.SVG="svg",e))(Tt||{});const Tn={universities:"Universities & Other (ISCED 6-8)",further_education:"Further education (ISCED 4-5)",secondary_schools:"Secondary schools (ISCED 2-3)",primary_schools:"Primary schools (ISCED 1)",institutes:"Research Institutes",cultural:"Libraries, Museums, Archives, Cultural institutions",hospitals:"Non-university public Hospitals",government:"Government departments (national, regional, local)",iros:"International (virtual) research organisations",for_profit_orgs:"For-profit organisations"},In={commercial_r_and_e:"Commercial R&E traffic only",commercial_general:"Commercial general",commercial_collaboration:"Commercial for collaboration only (project/time limited)",commercial_service_provider:"Commercial Service Provider",university_spin_off:"University Spin Off/Incubator"},Ln={collaboration:"Connection to your network for collaboration with R&E users",service_supplier:"Connection to your network for supplying services for R&E",direct_peering:"Direct peering (e.g. direct peering or cloud peering)"};function It(){const e=R.c(7),{preview:n,setPreview:l}=s.useContext(_t),{user:i}=s.useContext(pt),[r]=ut();let m;e[0]!==r?(m=r.get("preview"),e[0]=r,e[1]=m):m=e[1];const o=m;let d,h;return e[2]!==o||e[3]!==l||e[4]!==i?(d=()=>{o!==null&&(i.permissions.admin||i.role=="observer")&&l(!0)},h=[o,l,i],e[2]=o,e[3]=l,e[4]=i,e[5]=d,e[6]=h):(d=e[5],h=e[6]),s.useEffect(d,h),n}function Lt(){const e=R.c(82);It();const{trackPageView:n}=Ye();let l,i;e[0]!==n?(l=()=>{n({documentTitle:"Compendium Data"})},i=[n],e[0]=n,e[1]=l,e[2]=i):(l=e[1],i=e[2]),Qe.useEffect(l,i);let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Rt,{type:"data"}),e[3]=r):r=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(Pt,{type:"data",children:t.jsx("p",{className:"wordwrap",children:"The GÉANT Compendium provides an authoritative reference source for anyone with an interest in the development of research and education networking in Europe and beyond. Published since 2001, the Compendium provides information on key areas such as users, services, traffic, budget and staffing."})}),e[4]=m):m=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("h6",{className:"section-title",children:"Budget, Income and Billing"}),e[5]=o):o=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(a,{to:"/budget",className:"link-text-underline",children:t.jsx("span",{children:"Budget of NRENs per Year"})}),e[6]=d):d=e[6];let h;e[7]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(a,{to:"/funding",className:"link-text-underline",children:t.jsx("span",{children:"Income Source of NRENs"})}),e[7]=h):h=e[7];let f,_,u;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx(a,{to:"/charging",className:"link-text-underline",children:t.jsx("span",{children:"Charging Mechanism of NRENs"})}),_=t.jsx("hr",{className:"fake-divider"}),u=t.jsx("h6",{className:"section-title",children:"Staff and Projects"}),e[8]=f,e[9]=_,e[10]=u):(f=e[8],_=e[9],u=e[10]);let p;e[11]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(a,{to:"/employee-count",className:"link-text-underline",children:t.jsx("span",{children:"Number of NREN Employees"})}),e[11]=p):p=e[11];let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(a,{to:"/roles",className:"link-text-underline",children:t.jsx("span",{children:"Roles of NREN employees (Technical v. Non-Technical)"})}),e[12]=x):x=e[12];let N;e[13]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(a,{to:"/employment",className:"link-text-underline",children:t.jsx("span",{children:"Types of Employment within NRENs"})}),e[13]=N):N=e[13];let g;e[14]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(a,{to:"/suborganisations",className:"link-text-underline",children:t.jsx("span",{children:"NREN Sub-Organisations"})}),e[14]=g):g=e[14];let v;e[15]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(a,{to:"/parentorganisation",className:"link-text-underline",children:t.jsx("span",{children:"NREN Parent Organisations"})}),e[15]=v):v=e[15];let E;e[16]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsxs(V,{title:D.Organisation,children:[o,d,h,f,_,u,p,x,N,g,v,t.jsx(a,{to:"/ec-projects",className:"link-text-underline",children:t.jsx("span",{children:"NREN Involvement in European Commission Projects"})})]}),e[16]=E):E=e[16];let T,b;e[17]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(a,{to:"/policy",className:"link-text-underline",children:t.jsx("span",{children:"NREN Policies"})}),b=t.jsx("h6",{className:"section-title",children:"Standards"}),e[17]=T,e[18]=b):(T=e[17],b=e[18]);let P;e[19]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx(a,{to:"/audits",className:"link-text-underline",children:t.jsx("span",{children:"External and Internal Audits of Information Security Management Systems"})}),e[19]=P):P=e[19];let w;e[20]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx(a,{to:"/business-continuity",className:"link-text-underline",children:t.jsx("span",{children:"NREN Business Continuity Planning"})}),e[20]=w):w=e[20];let M;e[21]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx(a,{to:"/central-procurement",className:"link-text-underline",children:t.jsx("span",{children:"Central Procurement of Software"})}),e[21]=M):M=e[21];let F;e[22]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(a,{to:"/crisis-management",className:"link-text-underline",children:t.jsx("span",{children:"Crisis Management Procedures"})}),e[22]=F):F=e[22];let G;e[23]===Symbol.for("react.memo_cache_sentinel")?(G=t.jsx(a,{to:"/crisis-exercise",className:"link-text-underline",children:t.jsx("span",{children:"Crisis Exercises - NREN Operation and Participation"})}),e[23]=G):G=e[23];let U;e[24]===Symbol.for("react.memo_cache_sentinel")?(U=t.jsx(a,{to:"/security-control",className:"link-text-underline",children:t.jsx("span",{children:"Security Controls Used by NRENs"})}),e[24]=U):U=e[24];let $;e[25]===Symbol.for("react.memo_cache_sentinel")?($=t.jsx(a,{to:"/services-offered",className:"link-text-underline",children:t.jsx("span",{children:"Services Offered by NRENs by Types of Users"})}),e[25]=$):$=e[25];let B;e[26]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(a,{to:"/corporate-strategy",className:"link-text-underline",children:t.jsx("span",{children:"NREN Corporate Strategies "})}),e[26]=B):B=e[26];let W;e[27]===Symbol.for("react.memo_cache_sentinel")?(W=t.jsx(a,{to:"/service-level-targets",className:"link-text-underline",children:t.jsx("span",{children:"NRENs Offering Service Level Targets"})}),e[27]=W):W=e[27];let H;e[28]===Symbol.for("react.memo_cache_sentinel")?(H=t.jsxs(V,{title:D.Policy,startCollapsed:!0,children:[T,b,P,w,M,F,G,U,$,B,W,t.jsx(a,{to:"/service-management-framework",className:"link-text-underline",children:t.jsx("span",{children:"NRENs Operating a Formal Service Management Framework"})})]}),e[28]=H):H=e[28];let K;e[29]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx("h6",{className:"section-title",children:"Connected Users"}),e[29]=K):K=e[29];let q;e[30]===Symbol.for("react.memo_cache_sentinel")?(q=t.jsx(a,{to:"/institutions-urls",className:"link-text-underline",children:t.jsx("span",{children:"Webpages Listing Institutions and Organisations Connected to NREN Networks"})}),e[30]=q):q=e[30];let X;e[31]===Symbol.for("react.memo_cache_sentinel")?(X=t.jsx(a,{to:"/connected-proportion",className:"link-text-underline",children:t.jsx("span",{children:"Proportion of Different Categories of Institutions Served by NRENs"})}),e[31]=X):X=e[31];let J;e[32]===Symbol.for("react.memo_cache_sentinel")?(J=t.jsx(a,{to:"/connectivity-level",className:"link-text-underline",children:t.jsx("span",{children:"Level of IP Connectivity by Institution Type"})}),e[32]=J):J=e[32];let Y;e[33]===Symbol.for("react.memo_cache_sentinel")?(Y=t.jsx(a,{to:"/connection-carrier",className:"link-text-underline",children:t.jsx("span",{children:"Methods of Carrying IP Traffic to Users"})}),e[33]=Y):Y=e[33];let Q;e[34]===Symbol.for("react.memo_cache_sentinel")?(Q=t.jsx(a,{to:"/connectivity-load",className:"link-text-underline",children:t.jsx("span",{children:"Connectivity Load"})}),e[34]=Q):Q=e[34];let Z;e[35]===Symbol.for("react.memo_cache_sentinel")?(Z=t.jsx(a,{to:"/connectivity-growth",className:"link-text-underline",children:t.jsx("span",{children:"Connectivity Growth"})}),e[35]=Z):Z=e[35];let ee,te,ne;e[36]===Symbol.for("react.memo_cache_sentinel")?(ee=t.jsx(a,{to:"/remote-campuses",className:"link-text-underline",children:t.jsx("span",{children:"NREN Connectivity to Remote Campuses in Other Countries"})}),te=t.jsx("hr",{className:"fake-divider"}),ne=t.jsx("h6",{className:"section-title",children:"Connected Users - Commercial"}),e[36]=ee,e[37]=te,e[38]=ne):(ee=e[36],te=e[37],ne=e[38]);let se;e[39]===Symbol.for("react.memo_cache_sentinel")?(se=t.jsx(a,{to:"/commercial-charging-level",className:"link-text-underline",children:t.jsx("span",{children:"Commercial Charging Level"})}),e[39]=se):se=e[39];let ie;e[40]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsxs(V,{title:D.ConnectedUsers,startCollapsed:!0,children:[K,q,X,J,Y,Q,Z,ee,te,ne,se,t.jsx(a,{to:"/commercial-connectivity",className:"link-text-underline",children:t.jsx("span",{children:"Commercial Connectivity"})})]}),e[40]=ie):ie=e[40];let re;e[41]===Symbol.for("react.memo_cache_sentinel")?(re=t.jsx("h6",{className:"section-title",children:"Connectivity"}),e[41]=re):re=e[41];let ae;e[42]===Symbol.for("react.memo_cache_sentinel")?(ae=t.jsx(a,{to:"/traffic-volume",className:"link-text-underline",children:t.jsx("span",{children:"NREN Traffic - NREN Customers & External Networks"})}),e[42]=ae):ae=e[42];let le;e[43]===Symbol.for("react.memo_cache_sentinel")?(le=t.jsx(a,{to:"/iru-duration",className:"link-text-underline",children:t.jsx("span",{children:"Average Duration of IRU leases of Fibre by NRENs"})}),e[43]=le):le=e[43];let oe;e[44]===Symbol.for("react.memo_cache_sentinel")?(oe=t.jsx(a,{to:"/fibre-light",className:"link-text-underline",children:t.jsx("span",{children:"Approaches to lighting NREN fibre networks"})}),e[44]=oe):oe=e[44];let ce;e[45]===Symbol.for("react.memo_cache_sentinel")?(ce=t.jsx(a,{to:"/dark-fibre-lease",className:"link-text-underline",children:t.jsx("span",{children:"Kilometres of Leased Dark Fibre (National)"})}),e[45]=ce):ce=e[45];let me;e[46]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(a,{to:"/dark-fibre-lease-international",className:"link-text-underline",children:t.jsx("span",{children:"Kilometres of Leased Dark Fibre (International)"})}),e[46]=me):me=e[46];let de;e[47]===Symbol.for("react.memo_cache_sentinel")?(de=t.jsx(a,{to:"/dark-fibre-installed",className:"link-text-underline",children:t.jsx("span",{children:"Kilometres of Installed Dark Fibre"})}),e[47]=de):de=e[47];let he,fe,_e;e[48]===Symbol.for("react.memo_cache_sentinel")?(he=t.jsx(a,{to:"/network-map",className:"link-text-underline",children:t.jsx("span",{children:"NREN Network Maps"})}),fe=t.jsx("hr",{className:"fake-divider"}),_e=t.jsx("h6",{className:"section-title",children:"Performance Monitoring & Management"}),e[48]=he,e[49]=fe,e[50]=_e):(he=e[48],fe=e[49],_e=e[50]);let pe;e[51]===Symbol.for("react.memo_cache_sentinel")?(pe=t.jsx(a,{to:"/monitoring-tools",className:"link-text-underline",children:t.jsx("span",{children:"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions"})}),e[51]=pe):pe=e[51];let ue;e[52]===Symbol.for("react.memo_cache_sentinel")?(ue=t.jsx(a,{to:"/pert-team",className:"link-text-underline",children:t.jsx("span",{children:"NRENs with Performance Enhancement Response Teams"})}),e[52]=ue):ue=e[52];let xe;e[53]===Symbol.for("react.memo_cache_sentinel")?(xe=t.jsx(a,{to:"/passive-monitoring",className:"link-text-underline",children:t.jsx("span",{children:"Methods for Passively Monitoring International Traffic"})}),e[53]=xe):xe=e[53];let ye;e[54]===Symbol.for("react.memo_cache_sentinel")?(ye=t.jsx(a,{to:"/traffic-stats",className:"link-text-underline",children:t.jsx("span",{children:"Traffic Statistics  "})}),e[54]=ye):ye=e[54];let je;e[55]===Symbol.for("react.memo_cache_sentinel")?(je=t.jsx(a,{to:"/weather-map",className:"link-text-underline",children:t.jsx("span",{children:"NREN Online Network Weather Maps "})}),e[55]=je):je=e[55];let Ne;e[56]===Symbol.for("react.memo_cache_sentinel")?(Ne=t.jsx(a,{to:"/certificate-provider",className:"link-text-underline",children:t.jsx("span",{children:"Certification Services used by NRENs"})}),e[56]=Ne):Ne=e[56];let ge,ve,Ee;e[57]===Symbol.for("react.memo_cache_sentinel")?(ge=t.jsx(a,{to:"/siem-vendors",className:"link-text-underline",children:t.jsx("span",{children:"Vendors of SIEM/SOC systems used by NRENs"})}),ve=t.jsx("hr",{className:"fake-divider"}),Ee=t.jsx("h6",{className:"section-title",children:"Alienwave"}),e[57]=ge,e[58]=ve,e[59]=Ee):(ge=e[57],ve=e[58],Ee=e[59]);let be;e[60]===Symbol.for("react.memo_cache_sentinel")?(be=t.jsx(a,{to:"/alien-wave",className:"link-text-underline",children:t.jsx("span",{children:"NREN Use of 3rd Party Alienwave/Lightpath Services"})}),e[60]=be):be=e[60];let Ce,Se,ke;e[61]===Symbol.for("react.memo_cache_sentinel")?(Ce=t.jsx(a,{to:"/alien-wave-internal",className:"link-text-underline",children:t.jsx("span",{children:"Internal NREN Use of Alien Waves"})}),Se=t.jsx("hr",{className:"fake-divider"}),ke=t.jsx("h6",{className:"section-title",children:"Capacity"}),e[61]=Ce,e[62]=Se,e[63]=ke):(Ce=e[61],Se=e[62],ke=e[63]);let Re;e[64]===Symbol.for("react.memo_cache_sentinel")?(Re=t.jsx(a,{to:"/capacity-largest-link",className:"link-text-underline",children:t.jsx("span",{children:"Capacity of the Largest Link in an NREN Network"})}),e[64]=Re):Re=e[64];let Pe;e[65]===Symbol.for("react.memo_cache_sentinel")?(Pe=t.jsx(a,{to:"/external-connections",className:"link-text-underline",children:t.jsx("span",{children:"NREN External IP Connections"})}),e[65]=Pe):Pe=e[65];let we;e[66]===Symbol.for("react.memo_cache_sentinel")?(we=t.jsx(a,{to:"/capacity-core-ip",className:"link-text-underline",children:t.jsx("span",{children:"NREN Core IP Capacity"})}),e[66]=we):we=e[66];let Te;e[67]===Symbol.for("react.memo_cache_sentinel")?(Te=t.jsx(a,{to:"/non-rne-peers",className:"link-text-underline",children:t.jsx("span",{children:"Number of Non-R&E Networks NRENs Peer With"})}),e[67]=Te):Te=e[67];let Ie,Le,Ae;e[68]===Symbol.for("react.memo_cache_sentinel")?(Ie=t.jsx(a,{to:"/traffic-ratio",className:"link-text-underline",children:t.jsx("span",{children:"Types of traffic in NREN networks"})}),Le=t.jsx("hr",{className:"fake-divider"}),Ae=t.jsx("h6",{className:"section-title",children:"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"}),e[68]=Ie,e[69]=Le,e[70]=Ae):(Ie=e[68],Le=e[69],Ae=e[70]);let Oe;e[71]===Symbol.for("react.memo_cache_sentinel")?(Oe=t.jsx(a,{to:"/ops-automation",className:"link-text-underline",children:t.jsx("span",{children:"NREN Automation of Operational Processes"})}),e[71]=Oe):Oe=e[71];let De;e[72]===Symbol.for("react.memo_cache_sentinel")?(De=t.jsx(a,{to:"/network-automation",className:"link-text-underline",children:t.jsx("span",{children:"Network Tasks for which NRENs Use Automation  "})}),e[72]=De):De=e[72];let Ve;e[73]===Symbol.for("react.memo_cache_sentinel")?(Ve=t.jsxs(V,{title:D.Network,startCollapsed:!0,children:[re,ae,le,oe,ce,me,de,he,fe,_e,pe,ue,xe,ye,je,Ne,ge,ve,Ee,be,Ce,Se,ke,Re,Pe,we,Te,Ie,Le,Ae,Oe,De,t.jsx(a,{to:"/nfv",className:"link-text-underline",children:t.jsx("span",{children:"Kinds of Network Function Virtualisation used by NRENs"})})]}),e[73]=Ve):Ve=e[73];let ze;e[74]===Symbol.for("react.memo_cache_sentinel")?(ze=t.jsx(a,{to:"/network-services",className:"link-text-underline",children:t.jsx("span",{children:"Network services"})}),e[74]=ze):ze=e[74];let Me;e[75]===Symbol.for("react.memo_cache_sentinel")?(Me=t.jsx(a,{to:"/isp-support-services",className:"link-text-underline",children:t.jsx("span",{children:"ISP support services"})}),e[75]=Me):Me=e[75];let Fe;e[76]===Symbol.for("react.memo_cache_sentinel")?(Fe=t.jsx(a,{to:"/security-services",className:"link-text-underline",children:t.jsx("span",{children:"Security services"})}),e[76]=Fe):Fe=e[76];let Ge;e[77]===Symbol.for("react.memo_cache_sentinel")?(Ge=t.jsx(a,{to:"/identity-services",className:"link-text-underline",children:t.jsx("span",{children:"Identity services"})}),e[77]=Ge):Ge=e[77];let Ue;e[78]===Symbol.for("react.memo_cache_sentinel")?(Ue=t.jsx(a,{to:"/collaboration-services",className:"link-text-underline",children:t.jsx("span",{children:"Collaboration services"})}),e[78]=Ue):Ue=e[78];let $e;e[79]===Symbol.for("react.memo_cache_sentinel")?($e=t.jsx(a,{to:"/multimedia-services",className:"link-text-underline",children:t.jsx("span",{children:"Multimedia services"})}),e[79]=$e):$e=e[79];let Be;e[80]===Symbol.for("react.memo_cache_sentinel")?(Be=t.jsx(a,{to:"/storage-and-hosting-services",className:"link-text-underline",children:t.jsx("span",{children:"Storage and hosting services"})}),e[80]=Be):Be=e[80];let We;return e[81]===Symbol.for("react.memo_cache_sentinel")?(We=t.jsxs(t.Fragment,{children:[r,m,t.jsx(z,{className:"mt-5 mb-5",children:t.jsxs(L,{children:[E,H,ie,Ve,t.jsxs(V,{title:D.Services,startCollapsed:!0,children:[ze,Me,Fe,Ge,Ue,$e,Be,t.jsx(a,{to:"/professional-services",className:"link-text-underline",children:t.jsx("span",{children:"Professional services"})})]})]})})]}),e[81]=We):We=e[81],We}const At=s.lazy(()=>c(()=>import("./Budget-BaNd2jtG.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),Ot=s.lazy(()=>c(()=>import("./ChargingStructure-UaYN2mUD.js"),__vite__mapDeps([9,1,2,4,5,6,7,10,11,12]))),Dt=s.lazy(()=>c(()=>import("./ECProjects-C-HN1lwo.js"),__vite__mapDeps([13,1,2,4,5,6,7,14,12]))),Vt=s.lazy(()=>c(()=>import("./FundingSource-DRHIT4Ra.js"),__vite__mapDeps([15,1,2,3,4,5,6,7,16]))),zt=s.lazy(()=>c(()=>import("./ParentOrganisation-DJLeH6g7.js"),__vite__mapDeps([17,1,2,4,5,6,7,14,12]))),qe=s.lazy(()=>c(()=>import("./StaffGraph-CRnD7Dbf.js"),__vite__mapDeps([18,1,2,3,4,5,6,7,19]))),Mt=s.lazy(()=>c(()=>import("./StaffGraphAbsolute-1_iTYcqR.js"),__vite__mapDeps([20,1,2,3,4,5,6,7,16,8]))),Ft=s.lazy(()=>c(()=>import("./SubOrganisation-D8wGO2zm.js"),__vite__mapDeps([21,1,2,4,5,6,7,14,12]))),Gt=s.lazy(()=>c(()=>import("./Audits-z541eU6T.js"),__vite__mapDeps([22,1,2,4,5,6,7,10,11,12]))),Ut=s.lazy(()=>c(()=>import("./BusinessContinuity-BhppOK3E.js"),__vite__mapDeps([23,1,2,4,5,6,7,10,11,12]))),$t=s.lazy(()=>c(()=>import("./CentralProcurement-BK_KYdQw.js"),__vite__mapDeps([24,1,2,4,5,6,7,16,3,8]))),Bt=s.lazy(()=>c(()=>import("./CorporateStrategy-Doz2JleE.js"),__vite__mapDeps([25,1,2,4,5,6,7,14,12]))),Wt=s.lazy(()=>c(()=>import("./CrisisExercises-DIq1DMCc.js"),__vite__mapDeps([26,1,2,4,5,6,7,10,11,12]))),Ht=s.lazy(()=>c(()=>import("./CrisisManagement-B-4V900E.js"),__vite__mapDeps([27,1,2,4,5,6,7,10,11,12]))),Kt=s.lazy(()=>c(()=>import("./EOSCListings-DkHlXFjZ.js"),__vite__mapDeps([28,1,2,4,5,6,7,14,12]))),qt=s.lazy(()=>c(()=>import("./Policy-rfVVQ2MG.js"),__vite__mapDeps([29,1,2,4,5,6,7,14,12]))),Xt=s.lazy(()=>c(()=>import("./SecurityControls-Ct-pN0fH.js"),__vite__mapDeps([30,1,2,4,5,6,7,10,11,12]))),Jt=s.lazy(()=>c(()=>import("./ServiceLevelTargets-DkcKRrX5.js"),__vite__mapDeps([31,1,2,4,5,6,7,10,11,12]))),Yt=s.lazy(()=>c(()=>import("./ServiceManagementFramework-0pFJ2GJW.js"),__vite__mapDeps([32,1,2,4,5,6,7,10,11,12]))),Qt=s.lazy(()=>c(()=>import("./ServicesOffered-DAgKmLaL.js"),__vite__mapDeps([33,1,2,4,5,6,7,34,12]))),Zt=s.lazy(()=>c(()=>import("./ConnectedInstitutionsURLs-BSMQXsFI.js"),__vite__mapDeps([35,1,2,4,5,6,7,14,12]))),A=s.lazy(()=>c(()=>import("./ConnectedUser-BEMGNK1Q.js"),__vite__mapDeps([36,1,2,4,5,6,7,34,12]))),en=s.lazy(()=>c(()=>import("./RemoteCampuses-B7LZiN42.js"),__vite__mapDeps([37,1,2,4,5,6,7,12]))),tn=s.lazy(()=>c(()=>import("./AlienWave-BToV9QLE.js"),__vite__mapDeps([38,1,2,4,5,6,7,10,11,12]))),nn=s.lazy(()=>c(()=>import("./AlienWaveInternal-CYmkCEA6.js"),__vite__mapDeps([39,1,2,4,5,6,7,10,11,12]))),sn=s.lazy(()=>c(()=>import("./Automation-CrHhcUVx.js"),__vite__mapDeps([40,1,2,4,5,6,7,11,12]))),rn=s.lazy(()=>c(()=>import("./CapacityCoreIP-BzYm9HBi.js"),__vite__mapDeps([41,1,2,3,4,5,6,7,16,8]))),an=s.lazy(()=>c(()=>import("./CapacityLargestLink-CchKWKUR.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,16,8]))),ln=s.lazy(()=>c(()=>import("./CertificateProvider-B2MBeNfh.js"),__vite__mapDeps([43,1,2,4,5,6,7,10,11,12]))),Xe=s.lazy(()=>c(()=>import("./DarkFibreLease-DpIHorYZ.js"),__vite__mapDeps([44,1,2,3,4,5,6,7,8]))),on=s.lazy(()=>c(()=>import("./DarkFibreInstalled-BG9k0mWY.js"),__vite__mapDeps([45,1,2,3,4,5,6,7,8]))),cn=s.lazy(()=>c(()=>import("./ExternalConnections-CYJLiQ46.js"),__vite__mapDeps([46,1,2,4,5,6,7,12]))),mn=s.lazy(()=>c(()=>import("./FibreLight-4Mgdokfs.js"),__vite__mapDeps([47,1,2,4,5,6,7,10,11,12]))),dn=s.lazy(()=>c(()=>import("./IRUDuration-D50DEG35.js"),__vite__mapDeps([48,1,2,3,4,5,6,7,8]))),hn=s.lazy(()=>c(()=>import("./MonitoringTools-BuTC_DRa.js"),__vite__mapDeps([49,1,2,4,5,6,7,10,11,12]))),fn=s.lazy(()=>c(()=>import("./NetworkFunctionVirtualisation-DMaSWRo0.js"),__vite__mapDeps([50,1,2,4,5,6,7,11,12]))),_n=s.lazy(()=>c(()=>import("./NetworkMapUrls-YVUXOiQm.js"),__vite__mapDeps([51,1,2,4,5,6,7,14,12]))),pn=s.lazy(()=>c(()=>import("./NonRAndEPeer-BvFWiPrM.js"),__vite__mapDeps([52,1,2,3,4,5,6,7,16,8]))),un=s.lazy(()=>c(()=>import("./OPsAutomation-mleIxb9-.js"),__vite__mapDeps([53,1,2,4,5,6,7,10,11,12]))),xn=s.lazy(()=>c(()=>import("./PassiveMonitoring-BQaZqq7o.js"),__vite__mapDeps([54,1,2,4,5,6,7,10,11,12]))),yn=s.lazy(()=>c(()=>import("./PertTeam-Dk6-ebg9.js"),__vite__mapDeps([55,1,2,4,5,6,7,10,11,12]))),jn=s.lazy(()=>c(()=>import("./SiemVendors-AspEWRsK.js"),__vite__mapDeps([56,1,2,4,5,6,7,10,11,12]))),Nn=s.lazy(()=>c(()=>import("./TrafficRatio-CEE7weoG.js"),__vite__mapDeps([57,1,2,3,4,5,6,7,19]))),gn=s.lazy(()=>c(()=>import("./TrafficUrl-DFoUKOws.js"),__vite__mapDeps([58,1,2,4,5,6,7,14,12]))),vn=s.lazy(()=>c(()=>import("./TrafficVolume-5iEpLgxK.js"),__vite__mapDeps([59,1,2,3,4,5,6,7,8]))),En=s.lazy(()=>c(()=>import("./WeatherMap-CR-KiYaJ.js"),__vite__mapDeps([60,1,2,4,5,6,7,14,12]))),I=s.lazy(()=>c(()=>import("./Services-TWQx7C9G.js"),__vite__mapDeps([61,1,2,4,5,6,7,12]))),bn=()=>{const e=R.c(9),{pathname:n}=Ze(),l=n!=="/";let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(yt,{}),e[0]=i):i=e[0];let r;e[1]!==l?(r=t.jsx("main",{className:"grow",children:l?t.jsx(jt,{}):t.jsx(Ke,{})}),e[1]=l,e[2]=r):r=e[2];let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(Nt,{}),e[3]=m):m=e[3];let o;e[4]!==r?(o=t.jsxs(gt,{children:[i,r,m]}),e[4]=r,e[5]=o):o=e[5];let d;e[6]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(vt,{}),e[6]=d):d=e[6];let h;return e[7]!==o?(h=t.jsxs(t.Fragment,{children:[o,d]}),e[7]=o,e[8]=h):h=e[8],h},Cn=()=>{const e=R.c(4),{pathname:n}=Ze();let l,i;e[0]!==n?(l=()=>{n.startsWith("/survey")?window.location.replace(n):window.location.replace(`/survey${n}`)},i=[n],e[0]=n,e[1]=l,e[2]=i):(l=e[1],i=e[2]),s.useEffect(l,i);let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Ke,{}),e[3]=r):r=e[3],r},Sn=xt([{path:"",element:t.jsx(bn,{}),children:[{path:"/budget",element:t.jsx(At,{})},{path:"/funding",element:t.jsx(Vt,{})},{path:"/employment",element:t.jsx(qe,{},"staffgraph")},{path:"/traffic-ratio",element:t.jsx(Nn,{})},{path:"/roles",element:t.jsx(qe,{roles:!0},"staffgraphroles")},{path:"/employee-count",element:t.jsx(Mt,{})},{path:"/charging",element:t.jsx(Ot,{})},{path:"/suborganisations",element:t.jsx(Ft,{})},{path:"/parentorganisation",element:t.jsx(zt,{})},{path:"/ec-projects",element:t.jsx(Dt,{})},{path:"/policy",element:t.jsx(qt,{})},{path:"/traffic-volume",element:t.jsx(vn,{})},{path:"/data",element:t.jsx(Lt,{})},{path:"/institutions-urls",element:t.jsx(Zt,{})},{path:"/connected-proportion",element:t.jsx(A,{page:j.ConnectedProportion},j.ConnectedProportion)},{path:"/connectivity-level",element:t.jsx(A,{page:j.ConnectivityLevel},j.ConnectivityLevel)},{path:"/connectivity-growth",element:t.jsx(A,{page:j.ConnectivityGrowth},j.ConnectivityGrowth)},{path:"/connection-carrier",element:t.jsx(A,{page:j.ConnectionCarrier},j.ConnectionCarrier)},{path:"/connectivity-load",element:t.jsx(A,{page:j.ConnectivityLoad},j.ConnectivityLoad)},{path:"/commercial-charging-level",element:t.jsx(A,{page:j.CommercialChargingLevel},j.CommercialChargingLevel)},{path:"/commercial-connectivity",element:t.jsx(A,{page:j.CommercialConnectivity},j.CommercialConnectivity)},{path:"/network-services",element:t.jsx(I,{category:y.network_services},y.network_services)},{path:"/isp-support-services",element:t.jsx(I,{category:y.isp_support},y.isp_support)},{path:"/security-services",element:t.jsx(I,{category:y.security},y.security)},{path:"/identity-services",element:t.jsx(I,{category:y.identity},y.identity)},{path:"/collaboration-services",element:t.jsx(I,{category:y.collaboration},y.collaboration)},{path:"/multimedia-services",element:t.jsx(I,{category:y.multimedia},y.multimedia)},{path:"/storage-and-hosting-services",element:t.jsx(I,{category:y.storage_and_hosting},y.storage_and_hosting)},{path:"/professional-services",element:t.jsx(I,{category:y.professional_services},y.professional_services)},{path:"/dark-fibre-lease",element:t.jsx(Xe,{national:!0},"darkfibrenational")},{path:"/dark-fibre-lease-international",element:t.jsx(Xe,{},"darkfibreinternational")},{path:"/dark-fibre-installed",element:t.jsx(on,{})},{path:"/remote-campuses",element:t.jsx(en,{})},{path:"/eosc-listings",element:t.jsx(Kt,{})},{path:"/fibre-light",element:t.jsx(mn,{})},{path:"/monitoring-tools",element:t.jsx(hn,{})},{path:"/pert-team",element:t.jsx(yn,{})},{path:"/passive-monitoring",element:t.jsx(xn,{})},{path:"/alien-wave",element:t.jsx(tn,{})},{path:"/alien-wave-internal",element:t.jsx(nn,{})},{path:"/external-connections",element:t.jsx(cn,{})},{path:"/ops-automation",element:t.jsx(un,{})},{path:"/network-automation",element:t.jsx(sn,{})},{path:"/traffic-stats",element:t.jsx(gn,{})},{path:"/weather-map",element:t.jsx(En,{})},{path:"/network-map",element:t.jsx(_n,{})},{path:"/nfv",element:t.jsx(fn,{})},{path:"/certificate-providers",element:t.jsx(ln,{})},{path:"/siem-vendors",element:t.jsx(jn,{})},{path:"/capacity-largest-link",element:t.jsx(an,{})},{path:"/capacity-core-ip",element:t.jsx(rn,{})},{path:"/non-rne-peers",element:t.jsx(pn,{})},{path:"/iru-duration",element:t.jsx(dn,{})},{path:"/audits",element:t.jsx(Gt,{})},{path:"/business-continuity",element:t.jsx(Ut,{})},{path:"/crisis-management",element:t.jsx(Ht,{})},{path:"/crisis-exercise",element:t.jsx(Wt,{})},{path:"/central-procurement",element:t.jsx($t,{})},{path:"/security-control",element:t.jsx(Xt,{})},{path:"/services-offered",element:t.jsx(Qt,{})},{path:"/service-management-framework",element:t.jsx(Yt,{})},{path:"/service-level-targets",element:t.jsx(Jt,{})},{path:"/corporate-strategy",element:t.jsx(Bt,{})},{path:"/survey/*",element:t.jsx(Cn,{})},{path:"*",element:t.jsx(Ke,{})}]}]);function kn(){const e=R.c(1);let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"app",children:t.jsx(Et,{router:Sn})}),e[0]=n):n=e[0],n}const Rn=document.getElementById("root"),Pn=bt.createRoot(Rn);Pn.render(t.jsx(Qe.StrictMode,{children:t.jsx(kn,{})}));export{j as C,wt as E,Tt as I,D as S,Tn as U,In as a,Ln as b,V as c,Rt as d,y as e,It as u};
diff --git a/compendium_v2/static/survey.html b/compendium_v2/static/survey.html
index be92cdb1f83fbfb2de29e03cb5ed8e9f4418d59f..97c5d6719ae12b4638d93790bfa64b9e8ff3619f 100644
--- a/compendium_v2/static/survey.html
+++ b/compendium_v2/static/survey.html
@@ -4,9 +4,10 @@
   <meta charset="utf-8"/>
   <title>Compendium Survey</title>
   <script type="module" crossorigin src="/static/survey.js"></script>
-  <link rel="modulepreload" crossorigin href="/static/main-BfdqwKKW.js">
+  <link rel="modulepreload" crossorigin href="/static/main-BIBsTO5W.js">
+  <link rel="modulepreload" crossorigin href="/static/xlsx-CxqzP9DR.js">
+  <link rel="modulepreload" crossorigin href="/static/Table-HH9WOnMU.js">
   <link rel="stylesheet" crossorigin href="/static/main.css">
-  <link rel="stylesheet" crossorigin href="/static/survey.css">
 </head>
 <body>
   <div id="root"></div>
diff --git a/compendium_v2/static/survey.js b/compendium_v2/static/survey.js
index 745757505a94bcfcd7ebe12c553f6f36e7f46ebe..4fc87fd56d946da950205092bee4071f4d42b33a 100644
--- a/compendium_v2/static/survey.js
+++ b/compendium_v2/static/survey.js
@@ -1,250 +1,2 @@
-import{R as yg,r as ye,j as F,a3 as Sm,a4 as Em,a5 as Om,c as Ui,a6 as Tg,a7 as Tm,a8 as Im,a9 as Rm,aa as Am,ab as Dm,b as Ro,s as Lm,ac as Ng,m as Mm,x as lr,H as hg,S as _m,y as qg,F as Ip,I as jm,L as Uu,z as wa,A as To,K as zu,M as Nm,U as Pg,ad as qm,ae as Bm,C as Fm,af as km,ag as Qm,V as Rp,ah as Pp,p as Os,ai as Hm,Q as gg,aj as zm,W as Um,X as Wm,a1 as $m,Y as Gm,Z as Jm,_ as Zm,$ as Km,a0 as Ym,a2 as Xm}from"./main-BfdqwKKW.js";function bc(...v){return v.filter(P=>P!=null).reduce((P,V)=>{if(typeof V!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return P===null?V:function(...E){P.apply(this,E),V.apply(this,E)}},null)}const ey={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function ty(v,P){const V=`offset${v[0].toUpperCase()}${v.slice(1)}`,T=P[V],E=ey[v];return T+parseInt(Tg(P,E[0]),10)+parseInt(Tg(P,E[1]),10)}const ny={[Tm]:"collapse",[Im]:"collapsing",[Rm]:"collapsing",[Am]:"collapse show"},ry=yg.forwardRef(({onEnter:v,onEntering:P,onEntered:V,onExit:T,onExiting:E,className:B,children:M,dimension:j="height",in:O=!1,timeout:m=300,mountOnEnter:A=!1,unmountOnExit:H=!1,appear:ee=!1,getDimensionValue:he=ty,...se},ve)=>{const de=typeof j=="function"?j():j,nt=ye.useMemo(()=>bc(be=>{be.style[de]="0"},v),[de,v]),_e=ye.useMemo(()=>bc(be=>{const Ze=`scroll${de[0].toUpperCase()}${de.slice(1)}`;be.style[de]=`${be[Ze]}px`},P),[de,P]),pe=ye.useMemo(()=>bc(be=>{be.style[de]=null},V),[de,V]),D=ye.useMemo(()=>bc(be=>{be.style[de]=`${he(de,be)}px`,Dm(be)},T),[T,he,de]),Re=ye.useMemo(()=>bc(be=>{be.style[de]=null},E),[de,E]);return F.jsx(Sm,{ref:ve,addEndListener:Em,...se,"aria-expanded":se.role?O:null,onEnter:nt,onEntering:_e,onEntered:pe,onExit:D,onExiting:Re,childRef:Om(M),in:O,timeout:m,mountOnEnter:A,unmountOnExit:H,appear:ee,children:(be,Ze)=>yg.cloneElement(M,{...Ze,className:Ui(B,M.props.className,ny[be],de==="width"&&"collapse-horizontal")})})});function Bg(v,P){return Array.isArray(v)?v.includes(P):v===P}const Vc=ye.createContext({});Vc.displayName="AccordionContext";const xg=ye.forwardRef(({as:v="div",bsPrefix:P,className:V,children:T,eventKey:E,...B},M)=>{const{activeEventKey:j}=ye.useContext(Vc);return P=Ro(P,"accordion-collapse"),F.jsx(ry,{ref:M,in:Bg(j,E),...B,className:Ui(V,P),children:F.jsx(v,{children:ye.Children.only(T)})})});xg.displayName="AccordionCollapse";const Ap=ye.createContext({eventKey:""});Ap.displayName="AccordionItemContext";const Fg=ye.forwardRef(({as:v="div",bsPrefix:P,className:V,onEnter:T,onEntering:E,onEntered:B,onExit:M,onExiting:j,onExited:O,...m},A)=>{P=Ro(P,"accordion-body");const{eventKey:H}=ye.useContext(Ap);return F.jsx(xg,{eventKey:H,onEnter:T,onEntering:E,onEntered:B,onExit:M,onExiting:j,onExited:O,children:F.jsx(v,{ref:A,...m,className:Ui(V,P)})})});Fg.displayName="AccordionBody";function iy(v,P){const{activeEventKey:V,onSelect:T,alwaysOpen:E}=ye.useContext(Vc);return B=>{let M=v===V?null:v;E&&(Array.isArray(V)?V.includes(v)?M=V.filter(j=>j!==v):M=[...V,v]:M=[v]),T==null||T(M,B),P==null||P(B)}}const Vg=ye.forwardRef(({as:v="button",bsPrefix:P,className:V,onClick:T,...E},B)=>{P=Ro(P,"accordion-button");const{eventKey:M}=ye.useContext(Ap),j=iy(M,T),{activeEventKey:O}=ye.useContext(Vc);return v==="button"&&(E.type="button"),F.jsx(v,{ref:B,onClick:j,...E,"aria-expanded":Array.isArray(O)?O.includes(M):M===O,className:Ui(V,P,!Bg(O,M)&&"collapsed")})});Vg.displayName="AccordionButton";const kg=ye.forwardRef(({as:v="h2","aria-controls":P,bsPrefix:V,className:T,children:E,onClick:B,...M},j)=>(V=Ro(V,"accordion-header"),F.jsx(v,{ref:j,...M,className:Ui(T,V),children:F.jsx(Vg,{onClick:B,"aria-controls":P,children:E})})));kg.displayName="AccordionHeader";const Qg=ye.forwardRef(({as:v="div",bsPrefix:P,className:V,eventKey:T,...E},B)=>{P=Ro(P,"accordion-item");const M=ye.useMemo(()=>({eventKey:T}),[T]);return F.jsx(Ap.Provider,{value:M,children:F.jsx(v,{ref:B,...E,className:Ui(V,P)})})});Qg.displayName="AccordionItem";const Hg=ye.forwardRef((v,P)=>{const{as:V="div",activeKey:T,bsPrefix:E,className:B,onSelect:M,flush:j,alwaysOpen:O,...m}=Lm(v,{activeKey:"onSelect"}),A=Ro(E,"accordion"),H=ye.useMemo(()=>({activeEventKey:T,onSelect:M,alwaysOpen:O}),[T,M,O]);return F.jsx(Vc.Provider,{value:H,children:F.jsx(V,{ref:P,...m,className:Ui(B,A,j&&`${A}-flush`)})})});Hg.displayName="Accordion";const Is=Object.assign(Hg,{Button:Vg,Collapse:xg,Item:Qg,Header:kg,Body:Fg}),Dp=ye.forwardRef(({className:v,bsPrefix:P,as:V="span",...T},E)=>(P=Ro(P,"input-group-text"),F.jsx(V,{ref:E,className:Ui(v,P),...T})));Dp.displayName="InputGroupText";const oy=v=>F.jsx(Dp,{children:F.jsx(Ng,{type:"checkbox",...v})}),sy=v=>F.jsx(Dp,{children:F.jsx(Ng,{type:"radio",...v})}),zg=ye.forwardRef(({bsPrefix:v,size:P,hasValidation:V,className:T,as:E="div",...B},M)=>{v=Ro(v,"input-group");const j=ye.useMemo(()=>({}),[]);return F.jsx(Mm.Provider,{value:j,children:F.jsx(E,{ref:M,...B,className:Ui(T,v,P&&`${v}-${P}`,V&&"has-validation")})})});zg.displayName="InputGroup";const Ig=Object.assign(zg,{Text:Dp,Radio:sy,Checkbox:oy}),Ug=ye.forwardRef(({bsPrefix:v,variant:P,animation:V="border",size:T,as:E="div",className:B,...M},j)=>{v=Ro(v,"spinner");const O=`${v}-${V}`;return F.jsx(E,{ref:j,...M,className:Ui(B,O,T&&`${O}-${T}`,P&&`text-${P}`)})});Ug.displayName="Spinner";async function vg(){try{return await(await fetch("/api/survey/list")).json()}catch{return[]}}async function ay(){try{const P=await(await fetch("/api/survey/active/year")).json();return"year"in P?P.year.toString():(console.log("Invalid response format: Failed fetching active survey year."),"")}catch(v){return console.error("Failed fetching active survey year:",v),""}}const Lp=()=>{const v=lr.c(4);let P;v[0]===Symbol.for("react.memo_cache_sentinel")?(P=F.jsx("h5",{className:"section-title",children:"Management Links"}),v[0]=P):P=v[0];let V;v[1]===Symbol.for("react.memo_cache_sentinel")?(V=F.jsx(hg,{to:"/survey",children:F.jsx("span",{children:"Survey Home"})}),v[1]=V):V=v[1];let T;v[2]===Symbol.for("react.memo_cache_sentinel")?(T=F.jsx(hg,{to:"/survey/admin/users",children:F.jsx("span",{children:"Compendium User Management"})}),v[2]=T):T=v[2];let E;return v[3]===Symbol.for("react.memo_cache_sentinel")?(E=F.jsxs(_m,{survey:!0,children:[P,V,T,F.jsx(hg,{to:"/survey/admin/surveys",children:F.jsx("span",{children:"Compendium Survey Management"})})]}),v[3]=E):E=v[3],E},uy=()=>{const v=lr.c(7),[P,V]=ye.useState();let T,E;v[0]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{vg().then(O=>{V(O[0])})},E=[],v[0]=T,v[1]=E):(T=v[0],E=v[1]),ye.useEffect(T,E);let B;v[2]===Symbol.for("react.memo_cache_sentinel")?(B=F.jsx("thead",{children:F.jsxs("tr",{children:[F.jsx("th",{children:"(N)REN"}),F.jsx("th",{children:"Link"}),F.jsx("th",{children:"Survey Status"})]})}),v[2]=B):B=v[2];let M;v[3]!==P?(M=P&&P.responses.map(O=>F.jsxs("tr",{children:[F.jsx("td",{children:O.nren.name}),F.jsx("td",{children:F.jsx(Uu,{to:`/survey/response/${P.year}/${O.nren.name}`,children:F.jsx("span",{children:"Navigate to survey"})})}),F.jsx("td",{children:O.status})]},O.nren.id)),v[3]=P,v[4]=M):M=v[4];let j;return v[5]!==M?(j=F.jsxs(Pg,{striped:!0,bordered:!0,responsive:!0,children:[B,F.jsx("tbody",{children:M})]}),v[5]=M,v[6]=j):j=v[6],j};function Wg(){const v=lr.c(37),{trackPageView:P}=qg(),{user:V}=ye.useContext(Ip),T=jm(),E=!!V.id,B=E?!!V.nrens.length:!1,M=B?V.nrens[0]:"",j=E?V.permissions.admin:!1,O=E?V.role==="observer":!1,[m,A]=ye.useState(null);let H,ee;v[0]!==P?(H=()=>{(async()=>{const It=await ay();A(It)})(),P({documentTitle:"GEANT Survey Landing Page"})},ee=[P],v[0]=P,v[1]=H,v[2]=ee):(H=v[1],ee=v[2]),ye.useEffect(H,ee);let he;v[3]!==M||v[4]!==m||v[5]!==T?(he=()=>{try{return T(`/survey/response/${m}/${M}`),F.jsx("li",{children:"Redirecting to survey..."})}catch(gt){return console.error("Error navigating:",gt),null}},v[3]=M,v[4]=m,v[5]=T,v[6]=he):he=v[6];const se=he;let ve;if(v[7]===Symbol.for("react.memo_cache_sentinel")){const gt=function(G,yt,ke){const mt=zu.decode_range(G["!ref"]??"");let Ne=-1;for(let Ye=mt.s.c;Ye<=mt.e.c;Ye++){const ct=zu.encode_cell({r:mt.s.r,c:Ye}),on=G[ct];if(on&&typeof on.v=="string"&&on.v===yt){Ne=Ye;break}}if(Ne===-1){console.error(`Column '${yt}' not found.`);return}for(let Ye=mt.s.r+1;Ye<=mt.e.r;++Ye){const ct=zu.encode_cell({r:Ye,c:Ne});G[ct]&&G[ct].t==="n"&&(G[ct].z=ke)}},It=function(G){const yt=zu.book_new();G.forEach(Ye=>{const ct=zu.json_to_sheet(Ye.data);Ye.meta&&gt(ct,Ye.meta.columnName,Ye.meta.format),zu.book_append_sheet(yt,ct,Ye.name)});const ke=Nm(yt,{bookType:"xlsx",type:"binary"}),mt=new ArrayBuffer(ke.length),Ne=new Uint8Array(mt);for(let Ye=0;Ye<ke.length;Ye++)Ne[Ye]=ke.charCodeAt(Ye)&255;return new Blob([mt],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})};ve=function(){fetch("/api/data-download").then(cy).then(G=>{const yt=It(G),ke=document.createElement("a");ke.href=URL.createObjectURL(yt),ke.download="data.xlsx",document.body.appendChild(ke),ke.click(),document.body.removeChild(ke)}).catch(ly)},v[7]=ve}else ve=v[7];const de=ve;let nt;v[8]!==j?(nt=j&&F.jsx(Lp,{}),v[8]=j,v[9]=nt):nt=v[9];let _e;v[10]===Symbol.for("react.memo_cache_sentinel")?(_e=F.jsx("h1",{className:"geant-header",children:"THE GÉANT COMPENDIUM OF NRENS SURVEY"}),v[10]=_e):_e=v[10];let pe,D;v[11]===Symbol.for("react.memo_cache_sentinel")?(pe={maxWidth:"75rem"},D={textAlign:"left"},v[11]=pe,v[12]=D):(pe=v[11],D=v[12]);let Re;v[13]===Symbol.for("react.memo_cache_sentinel")?(Re=F.jsx("br",{}),v[13]=Re):Re=v[13];let be;v[14]===Symbol.for("react.memo_cache_sentinel")?(be=F.jsx("a",{href:"/login",children:"here"}),v[14]=be):be=v[14];let Ze;v[15]===Symbol.for("react.memo_cache_sentinel")?(Ze=F.jsx("br",{}),v[15]=Ze):Ze=v[15];let rt;v[16]===Symbol.for("react.memo_cache_sentinel")?(rt=F.jsx("br",{}),v[16]=rt):rt=v[16];let De,Bt,Ae,ot;v[17]===Symbol.for("react.memo_cache_sentinel")?(De=F.jsxs("p",{style:D,children:["Hello,",Re,"Welcome to the GÉANT Compendium Survey. (N)REN Compendium administrators can login via Single Sign On (SSO) ",be,", which will complete their registration to fill in the latest Compendium survey. This will send a notification to the Compendium administration team and they will assign you to your (N)REN.",Ze,"Once this step has been completed, you will receive an email from the administration team. We aim to get back to you the same working day, but sometimes may take a little longer.",rt,"If you are not sure whether you are a Compendium Administrator for your (N)REN, please contact your GÉANT Partner Relations relationship manager.",F.jsx("br",{}),"Thank you."]}),Bt=F.jsx("span",{children:"Current registration status:"}),Ae=F.jsx("br",{}),ot=F.jsx("br",{}),v[17]=De,v[18]=Bt,v[19]=Ae,v[20]=ot):(De=v[17],Bt=v[18],Ae=v[19],ot=v[20]);let $e;v[21]!==m||v[22]!==B||v[23]!==j||v[24]!==O||v[25]!==E||v[26]!==se?($e=j?F.jsxs("ul",{children:[F.jsx("li",{children:F.jsx("span",{children:"You are logged in as a Compendium Administrator"})}),F.jsx("li",{children:F.jsxs("span",{children:["Click ",F.jsx(Uu,{to:"/survey/admin/surveys",children:"here"})," to access the survey management page."]})}),F.jsx("li",{children:F.jsxs("span",{children:["Click ",F.jsx(Uu,{to:"/survey/admin/users",children:"here"})," to access the user management page."]})}),F.jsx("li",{children:F.jsxs("span",{children:["Click ",F.jsx("a",{href:"#",onClick:de,children:"here"})," to do the full data download."]})})]}):F.jsxs("ul",{children:[m&&!j&&!O&&B&&se(),E?F.jsx("li",{children:F.jsx("span",{children:"You are logged in"})}):F.jsx("li",{children:F.jsx("span",{children:"You are not logged in"})}),E&&!O&&!B&&F.jsx("li",{children:F.jsx("span",{children:"Your access to the survey has not yet been approved"})}),E&&!O&&!B&&F.jsx("li",{children:F.jsx("span",{children:"Once you have been approved, you will immediately be directed to the relevant survey upon visiting this page"})}),E&&O&&F.jsx("li",{children:F.jsx("span",{children:"You have read-only access to the following surveys:"})})]}),v[21]=m,v[22]=B,v[23]=j,v[24]=O,v[25]=E,v[26]=se,v[27]=$e):$e=v[27];let lt;v[28]!==O||v[29]!==E?(lt=E&&O&&F.jsx(uy,{}),v[28]=O,v[29]=E,v[30]=lt):lt=v[30];let xt;v[31]!==$e||v[32]!==lt?(xt=F.jsx(wa,{className:"py-5 grey-container",children:F.jsx(To,{children:F.jsxs("div",{className:"center-text",children:[_e,F.jsxs("div",{className:"wordwrap pt-4",style:pe,children:[De,Bt,Ae,ot,$e,lt]})]})})}),v[31]=$e,v[32]=lt,v[33]=xt):xt=v[33];let st;return v[34]!==xt||v[35]!==nt?(st=F.jsxs(F.Fragment,{children:[nt,xt]}),v[34]=xt,v[35]=nt,v[36]=st):st=v[36],st}function ly(v){console.error("Error fetching data:",v)}function cy(v){if(!v.ok)throw new Error("Network response was not ok");return v.json()}let fy={data:""},py=v=>typeof window=="object"?((v?v.querySelector("#_goober"):window._goober)||Object.assign((v||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:v||fy,dy=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,hy=/\/\*[^]*?\*\/|  +/g,Rg=/\n+/g,Ts=(v,P)=>{let V="",T="",E="";for(let B in v){let M=v[B];B[0]=="@"?B[1]=="i"?V=B+" "+M+";":T+=B[1]=="f"?Ts(M,B):B+"{"+Ts(M,B[1]=="k"?"":P)+"}":typeof M=="object"?T+=Ts(M,P?P.replace(/([^,])+/g,j=>B.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,O=>/&/.test(O)?O.replace(/&/g,j):j?j+" "+O:O)):B):M!=null&&(B=/^--/.test(B)?B:B.replace(/[A-Z]/g,"-$&").toLowerCase(),E+=Ts.p?Ts.p(B,M):B+":"+M+";")}return V+(P&&E?P+"{"+E+"}":E)+T},Oo={},$g=v=>{if(typeof v=="object"){let P="";for(let V in v)P+=V+$g(v[V]);return P}return v},gy=(v,P,V,T,E)=>{let B=$g(v),M=Oo[B]||(Oo[B]=(O=>{let m=0,A=11;for(;m<O.length;)A=101*A+O.charCodeAt(m++)>>>0;return"go"+A})(B));if(!Oo[M]){let O=B!==v?v:(m=>{let A,H,ee=[{}];for(;A=dy.exec(m.replace(hy,""));)A[4]?ee.shift():A[3]?(H=A[3].replace(Rg," ").trim(),ee.unshift(ee[0][H]=ee[0][H]||{})):ee[0][A[1]]=A[2].replace(Rg," ").trim();return ee[0]})(v);Oo[M]=Ts(E?{["@keyframes "+M]:O}:O,V?"":"."+M)}let j=V&&Oo.g?Oo.g:null;return V&&(Oo.g=Oo[M]),((O,m,A,H)=>{H?m.data=m.data.replace(H,O):m.data.indexOf(O)===-1&&(m.data=A?O+m.data:m.data+O)})(Oo[M],P,T,j),M},my=(v,P,V)=>v.reduce((T,E,B)=>{let M=P[B];if(M&&M.call){let j=M(V),O=j&&j.props&&j.props.className||/^go/.test(j)&&j;M=O?"."+O:j&&typeof j=="object"?j.props?"":Ts(j,""):j===!1?"":j}return T+E+(M??"")},"");function Mp(v){let P=this||{},V=v.call?v(P.p):v;return gy(V.unshift?V.raw?my(V,[].slice.call(arguments,1),P.p):V.reduce((T,E)=>Object.assign(T,E&&E.call?E(P.p):E),{}):V,py(P.target),P.g,P.o,P.k)}let Gg,bg,Cg;Mp.bind({g:1});let Io=Mp.bind({k:1});function yy(v,P,V,T){Ts.p=P,Gg=v,bg=V,Cg=T}function Rs(v,P){let V=this||{};return function(){let T=arguments;function E(B,M){let j=Object.assign({},B),O=j.className||E.className;V.p=Object.assign({theme:bg&&bg()},j),V.o=/ *go\d+/.test(O),j.className=Mp.apply(V,T)+(O?" "+O:"");let m=v;return v[0]&&(m=j.as||v,delete j.as),Cg&&m[0]&&Cg(j),Gg(m,j)}return E}}var vy=v=>typeof v=="function",Tp=(v,P)=>vy(v)?v(P):v,by=(()=>{let v=0;return()=>(++v).toString()})(),Jg=(()=>{let v;return()=>{if(v===void 0&&typeof window<"u"){let P=matchMedia("(prefers-reduced-motion: reduce)");v=!P||P.matches}return v}})(),Cy=20,Zg=(v,P)=>{switch(P.type){case 0:return{...v,toasts:[P.toast,...v.toasts].slice(0,Cy)};case 1:return{...v,toasts:v.toasts.map(B=>B.id===P.toast.id?{...B,...P.toast}:B)};case 2:let{toast:V}=P;return Zg(v,{type:v.toasts.find(B=>B.id===V.id)?1:0,toast:V});case 3:let{toastId:T}=P;return{...v,toasts:v.toasts.map(B=>B.id===T||T===void 0?{...B,dismissed:!0,visible:!1}:B)};case 4:return P.toastId===void 0?{...v,toasts:[]}:{...v,toasts:v.toasts.filter(B=>B.id!==P.toastId)};case 5:return{...v,pausedAt:P.time};case 6:let E=P.time-(v.pausedAt||0);return{...v,pausedAt:void 0,toasts:v.toasts.map(B=>({...B,pauseDuration:B.pauseDuration+E}))}}},Vp=[],Sp={toasts:[],pausedAt:void 0},Pa=v=>{Sp=Zg(Sp,v),Vp.forEach(P=>{P(Sp)})},wy={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Py=(v={})=>{let[P,V]=ye.useState(Sp);ye.useEffect(()=>(Vp.push(V),()=>{let E=Vp.indexOf(V);E>-1&&Vp.splice(E,1)}),[P]);let T=P.toasts.map(E=>{var B,M,j;return{...v,...v[E.type],...E,removeDelay:E.removeDelay||((B=v[E.type])==null?void 0:B.removeDelay)||(v==null?void 0:v.removeDelay),duration:E.duration||((M=v[E.type])==null?void 0:M.duration)||(v==null?void 0:v.duration)||wy[E.type],style:{...v.style,...(j=v[E.type])==null?void 0:j.style,...E.style}}});return{...P,toasts:T}},xy=(v,P="blank",V)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:P,ariaProps:{role:"status","aria-live":"polite"},message:v,pauseDuration:0,...V,id:(V==null?void 0:V.id)||by()}),Sc=v=>(P,V)=>{let T=xy(P,v,V);return Pa({type:2,toast:T}),T.id},Jn=(v,P)=>Sc("blank")(v,P);Jn.error=Sc("error");Jn.success=Sc("success");Jn.loading=Sc("loading");Jn.custom=Sc("custom");Jn.dismiss=v=>{Pa({type:3,toastId:v})};Jn.remove=v=>Pa({type:4,toastId:v});Jn.promise=(v,P,V)=>{let T=Jn.loading(P.loading,{...V,...V==null?void 0:V.loading});return typeof v=="function"&&(v=v()),v.then(E=>{let B=P.success?Tp(P.success,E):void 0;return B?Jn.success(B,{id:T,...V,...V==null?void 0:V.success}):Jn.dismiss(T),E}).catch(E=>{let B=P.error?Tp(P.error,E):void 0;B?Jn.error(B,{id:T,...V,...V==null?void 0:V.error}):Jn.dismiss(T)}),v};var Vy=(v,P)=>{Pa({type:1,toast:{id:v,height:P}})},Sy=()=>{Pa({type:5,time:Date.now()})},Pc=new Map,Ey=1e3,Oy=(v,P=Ey)=>{if(Pc.has(v))return;let V=setTimeout(()=>{Pc.delete(v),Pa({type:4,toastId:v})},P);Pc.set(v,V)},Ty=v=>{let{toasts:P,pausedAt:V}=Py(v);ye.useEffect(()=>{if(V)return;let B=Date.now(),M=P.map(j=>{if(j.duration===1/0)return;let O=(j.duration||0)+j.pauseDuration-(B-j.createdAt);if(O<0){j.visible&&Jn.dismiss(j.id);return}return setTimeout(()=>Jn.dismiss(j.id),O)});return()=>{M.forEach(j=>j&&clearTimeout(j))}},[P,V]);let T=ye.useCallback(()=>{V&&Pa({type:6,time:Date.now()})},[V]),E=ye.useCallback((B,M)=>{let{reverseOrder:j=!1,gutter:O=8,defaultPosition:m}=M||{},A=P.filter(he=>(he.position||m)===(B.position||m)&&he.height),H=A.findIndex(he=>he.id===B.id),ee=A.filter((he,se)=>se<H&&he.visible).length;return A.filter(he=>he.visible).slice(...j?[ee+1]:[0,ee]).reduce((he,se)=>he+(se.height||0)+O,0)},[P]);return ye.useEffect(()=>{P.forEach(B=>{if(B.dismissed)Oy(B.id,B.removeDelay);else{let M=Pc.get(B.id);M&&(clearTimeout(M),Pc.delete(B.id))}})},[P]),{toasts:P,handlers:{updateHeight:Vy,startPause:Sy,endPause:T,calculateOffset:E}}},Iy=Io`
-from {
-  transform: scale(0) rotate(45deg);
-	opacity: 0;
-}
-to {
- transform: scale(1) rotate(45deg);
-  opacity: 1;
-}`,Ry=Io`
-from {
-  transform: scale(0);
-  opacity: 0;
-}
-to {
-  transform: scale(1);
-  opacity: 1;
-}`,Ay=Io`
-from {
-  transform: scale(0) rotate(90deg);
-	opacity: 0;
-}
-to {
-  transform: scale(1) rotate(90deg);
-	opacity: 1;
-}`,Dy=Rs("div")`
-  width: 20px;
-  opacity: 0;
-  height: 20px;
-  border-radius: 10px;
-  background: ${v=>v.primary||"#ff4b4b"};
-  position: relative;
-  transform: rotate(45deg);
-
-  animation: ${Iy} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
-    forwards;
-  animation-delay: 100ms;
-
-  &:after,
-  &:before {
-    content: '';
-    animation: ${Ry} 0.15s ease-out forwards;
-    animation-delay: 150ms;
-    position: absolute;
-    border-radius: 3px;
-    opacity: 0;
-    background: ${v=>v.secondary||"#fff"};
-    bottom: 9px;
-    left: 4px;
-    height: 2px;
-    width: 12px;
-  }
-
-  &:before {
-    animation: ${Ay} 0.15s ease-out forwards;
-    animation-delay: 180ms;
-    transform: rotate(90deg);
-  }
-`,Ly=Io`
-  from {
-    transform: rotate(0deg);
-  }
-  to {
-    transform: rotate(360deg);
-  }
-`,My=Rs("div")`
-  width: 12px;
-  height: 12px;
-  box-sizing: border-box;
-  border: 2px solid;
-  border-radius: 100%;
-  border-color: ${v=>v.secondary||"#e0e0e0"};
-  border-right-color: ${v=>v.primary||"#616161"};
-  animation: ${Ly} 1s linear infinite;
-`,_y=Io`
-from {
-  transform: scale(0) rotate(45deg);
-	opacity: 0;
-}
-to {
-  transform: scale(1) rotate(45deg);
-	opacity: 1;
-}`,jy=Io`
-0% {
-	height: 0;
-	width: 0;
-	opacity: 0;
-}
-40% {
-  height: 0;
-	width: 6px;
-	opacity: 1;
-}
-100% {
-  opacity: 1;
-  height: 10px;
-}`,Ny=Rs("div")`
-  width: 20px;
-  opacity: 0;
-  height: 20px;
-  border-radius: 10px;
-  background: ${v=>v.primary||"#61d345"};
-  position: relative;
-  transform: rotate(45deg);
-
-  animation: ${_y} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
-    forwards;
-  animation-delay: 100ms;
-  &:after {
-    content: '';
-    box-sizing: border-box;
-    animation: ${jy} 0.2s ease-out forwards;
-    opacity: 0;
-    animation-delay: 200ms;
-    position: absolute;
-    border-right: 2px solid;
-    border-bottom: 2px solid;
-    border-color: ${v=>v.secondary||"#fff"};
-    bottom: 6px;
-    left: 6px;
-    height: 10px;
-    width: 6px;
-  }
-`,qy=Rs("div")`
-  position: absolute;
-`,By=Rs("div")`
-  position: relative;
-  display: flex;
-  justify-content: center;
-  align-items: center;
-  min-width: 20px;
-  min-height: 20px;
-`,Fy=Io`
-from {
-  transform: scale(0.6);
-  opacity: 0.4;
-}
-to {
-  transform: scale(1);
-  opacity: 1;
-}`,ky=Rs("div")`
-  position: relative;
-  transform: scale(0.6);
-  opacity: 0.4;
-  min-width: 20px;
-  animation: ${Fy} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
-    forwards;
-`,Qy=({toast:v})=>{let{icon:P,type:V,iconTheme:T}=v;return P!==void 0?typeof P=="string"?ye.createElement(ky,null,P):P:V==="blank"?null:ye.createElement(By,null,ye.createElement(My,{...T}),V!=="loading"&&ye.createElement(qy,null,V==="error"?ye.createElement(Dy,{...T}):ye.createElement(Ny,{...T})))},Hy=v=>`
-0% {transform: translate3d(0,${v*-200}%,0) scale(.6); opacity:.5;}
-100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
-`,zy=v=>`
-0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
-100% {transform: translate3d(0,${v*-150}%,-1px) scale(.6); opacity:0;}
-`,Uy="0%{opacity:0;} 100%{opacity:1;}",Wy="0%{opacity:1;} 100%{opacity:0;}",$y=Rs("div")`
-  display: flex;
-  align-items: center;
-  background: #fff;
-  color: #363636;
-  line-height: 1.3;
-  will-change: transform;
-  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
-  max-width: 350px;
-  pointer-events: auto;
-  padding: 8px 10px;
-  border-radius: 8px;
-`,Gy=Rs("div")`
-  display: flex;
-  justify-content: center;
-  margin: 4px 10px;
-  color: inherit;
-  flex: 1 1 auto;
-  white-space: pre-line;
-`,Jy=(v,P)=>{let V=v.includes("top")?1:-1,[T,E]=Jg()?[Uy,Wy]:[Hy(V),zy(V)];return{animation:P?`${Io(T)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Io(E)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Zy=ye.memo(({toast:v,position:P,style:V,children:T})=>{let E=v.height?Jy(v.position||P||"top-center",v.visible):{opacity:0},B=ye.createElement(Qy,{toast:v}),M=ye.createElement(Gy,{...v.ariaProps},Tp(v.message,v));return ye.createElement($y,{className:v.className,style:{...E,...V,...v.style}},typeof T=="function"?T({icon:B,message:M}):ye.createElement(ye.Fragment,null,B,M))});yy(ye.createElement);var Ky=({id:v,className:P,style:V,onHeightUpdate:T,children:E})=>{let B=ye.useCallback(M=>{if(M){let j=()=>{let O=M.getBoundingClientRect().height;T(v,O)};j(),new MutationObserver(j).observe(M,{subtree:!0,childList:!0,characterData:!0})}},[v,T]);return ye.createElement("div",{ref:B,className:P,style:V},E)},Yy=(v,P)=>{let V=v.includes("top"),T=V?{top:0}:{bottom:0},E=v.includes("center")?{justifyContent:"center"}:v.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Jg()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${P*(V?1:-1)}px)`,...T,...E}},Xy=Mp`
-  z-index: 9999;
-  > * {
-    pointer-events: auto;
-  }
-`,xp=16,Sg=({reverseOrder:v,position:P="top-center",toastOptions:V,gutter:T,children:E,containerStyle:B,containerClassName:M})=>{let{toasts:j,handlers:O}=Ty(V);return ye.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:xp,left:xp,right:xp,bottom:xp,pointerEvents:"none",...B},className:M,onMouseEnter:O.startPause,onMouseLeave:O.endPause},j.map(m=>{let A=m.position||P,H=O.calculateOffset(m,{reverseOrder:v,gutter:T,defaultPosition:P}),ee=Yy(A,H);return ye.createElement(Ky,{id:m.id,key:m.id,onHeightUpdate:O.updateHeight,className:m.visible?Xy:"",style:ee},m.type==="custom"?Tp(m.message,m):E?E(m):ye.createElement(Zy,{toast:m,position:A}))}))},Yt=Jn,Ep={exports:{}};/*!
- * surveyjs - Survey JavaScript library v1.12.20
- * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
- * License: MIT (http://www.opensource.org/licenses/mit-license.php)
- */var ev=Ep.exports,Ag;function Kg(){return Ag||(Ag=1,function(v,P){(function(T,E){v.exports=E()})(ev,function(){return function(V){var T={};function E(B){if(T[B])return T[B].exports;var M=T[B]={i:B,l:!1,exports:{}};return V[B].call(M.exports,M,M.exports,E),M.l=!0,M.exports}return E.m=V,E.c=T,E.d=function(B,M,j){E.o(B,M)||Object.defineProperty(B,M,{enumerable:!0,get:j})},E.r=function(B){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(B,"__esModule",{value:!0})},E.t=function(B,M){if(M&1&&(B=E(B)),M&8||M&4&&typeof B=="object"&&B&&B.__esModule)return B;var j=Object.create(null);if(E.r(j),Object.defineProperty(j,"default",{enumerable:!0,value:B}),M&2&&typeof B!="string")for(var O in B)E.d(j,O,(function(m){return B[m]}).bind(null,O));return j},E.n=function(B){var M=B&&B.__esModule?function(){return B.default}:function(){return B};return E.d(M,"a",M),M},E.o=function(B,M){return Object.prototype.hasOwnProperty.call(B,M)},E.p="",E(E.s="./src/entries/core.ts")}({"./src/entries/core.ts":function(V,T,E){E.r(T),E.d(T,"Version",function(){return Ps}),E.d(T,"ReleaseDate",function(){return Ou}),E.d(T,"checkLibraryVersion",function(){return Cd}),E.d(T,"setLicenseKey",function(){return wd}),E.d(T,"slk",function(){return bf}),E.d(T,"hasLicense",function(){return Cf}),E.d(T,"settings",function(){return z}),E.d(T,"Helpers",function(){return m}),E.d(T,"AnswerCountValidator",function(){return Xr}),E.d(T,"EmailValidator",function(){return ts}),E.d(T,"NumericValidator",function(){return Ha}),E.d(T,"RegexValidator",function(){return Rn}),E.d(T,"SurveyValidator",function(){return Xn}),E.d(T,"TextValidator",function(){return ea}),E.d(T,"ValidatorResult",function(){return en}),E.d(T,"ExpressionValidator",function(){return ta}),E.d(T,"ValidatorRunner",function(){return Xs}),E.d(T,"ItemValue",function(){return ge}),E.d(T,"Base",function(){return Je}),E.d(T,"Event",function(){return Gi}),E.d(T,"EventBase",function(){return Tn}),E.d(T,"ArrayChanges",function(){return Gr}),E.d(T,"ComputedUpdater",function(){return Lt}),E.d(T,"SurveyError",function(){return vn}),E.d(T,"SurveyElementCore",function(){return zo}),E.d(T,"SurveyElement",function(){return sn}),E.d(T,"DragTypeOverMeEnum",function(){return Uo}),E.d(T,"CalculatedValue",function(){return l}),E.d(T,"CustomError",function(){return bn}),E.d(T,"AnswerRequiredError",function(){return co}),E.d(T,"OneAnswerRequiredError",function(){return Oi}),E.d(T,"RequreNumericError",function(){return Xo}),E.d(T,"ExceedSizeError",function(){return es}),E.d(T,"LocalizableString",function(){return ut}),E.d(T,"LocalizableStrings",function(){return Et}),E.d(T,"HtmlConditionItem",function(){return h}),E.d(T,"UrlConditionItem",function(){return b}),E.d(T,"ChoicesRestful",function(){return ue}),E.d(T,"ChoicesRestfull",function(){return Se}),E.d(T,"FunctionFactory",function(){return Ne}),E.d(T,"registerFunction",function(){return Ye}),E.d(T,"ConditionRunner",function(){return pn}),E.d(T,"ExpressionRunner",function(){return Ir}),E.d(T,"ExpressionExecutor",function(){return Ns}),E.d(T,"Operand",function(){return pr}),E.d(T,"Const",function(){return $i}),E.d(T,"BinaryOperand",function(){return Wi}),E.d(T,"Variable",function(){return Ls}),E.d(T,"FunctionOperand",function(){return Lo}),E.d(T,"ArrayOperand",function(){return $r}),E.d(T,"UnaryOperand",function(){return Ds}),E.d(T,"ConditionsParser",function(){return _o}),E.d(T,"ProcessValue",function(){return ke}),E.d(T,"JsonError",function(){return Ae}),E.d(T,"JsonIncorrectTypeError",function(){return xt}),E.d(T,"JsonMetadata",function(){return Bt}),E.d(T,"JsonMetadataClass",function(){return De}),E.d(T,"JsonMissingTypeError",function(){return lt}),E.d(T,"JsonMissingTypeErrorBase",function(){return $e}),E.d(T,"JsonObject",function(){return Vt}),E.d(T,"JsonObjectProperty",function(){return Ze}),E.d(T,"JsonRequiredPropertyError",function(){return st}),E.d(T,"JsonUnknownPropertyError",function(){return ot}),E.d(T,"Serializer",function(){return G}),E.d(T,"property",function(){return D}),E.d(T,"propertyArray",function(){return be}),E.d(T,"MatrixDropdownCell",function(){return il}),E.d(T,"MatrixDropdownRowModelBase",function(){return mr}),E.d(T,"QuestionMatrixDropdownModelBase",function(){return _r}),E.d(T,"MatrixDropdownColumn",function(){return mo}),E.d(T,"matrixDropdownColumnTypes",function(){return rs}),E.d(T,"QuestionMatrixDropdownRenderedCell",function(){return Mt}),E.d(T,"QuestionMatrixDropdownRenderedRow",function(){return gn}),E.d(T,"QuestionMatrixDropdownRenderedErrorRow",function(){return Tc}),E.d(T,"QuestionMatrixDropdownRenderedTable",function(){return rl}),E.d(T,"MatrixDropdownRowModel",function(){return ua}),E.d(T,"QuestionMatrixDropdownModel",function(){return Ai}),E.d(T,"MatrixDynamicRowModel",function(){return Di}),E.d(T,"QuestionMatrixDynamicModel",function(){return ll}),E.d(T,"MatrixRowModel",function(){return Uc}),E.d(T,"MatrixCells",function(){return Wc}),E.d(T,"QuestionMatrixModel",function(){return Cl}),E.d(T,"QuestionMatrixBaseModel",function(){return Pn}),E.d(T,"MultipleTextItemModel",function(){return Xe}),E.d(T,"MultipleTextCell",function(){return cu}),E.d(T,"MultipleTextErrorCell",function(){return Zc}),E.d(T,"MutlipleTextErrorRow",function(){return ps}),E.d(T,"MutlipleTextRow",function(){return Ol}),E.d(T,"QuestionMultipleTextModel",function(){return lu}),E.d(T,"MultipleTextEditorModel",function(){return uu}),E.d(T,"PanelModel",function(){return us}),E.d(T,"PanelModelBase",function(){return pl}),E.d(T,"QuestionRowModel",function(){return ca}),E.d(T,"FlowPanelModel",function(){return Un}),E.d(T,"PageModel",function(){return ii}),E.d(T,"DefaultTitleModel",function(){return ed}),E.d(T,"Question",function(){return K}),E.d(T,"QuestionNonValue",function(){return ds}),E.d(T,"QuestionEmptyModel",function(){return Tl}),E.d(T,"QuestionCheckboxBase",function(){return Mi}),E.d(T,"QuestionSelectBase",function(){return fa}),E.d(T,"QuestionCheckboxModel",function(){return nr}),E.d(T,"QuestionTagboxModel",function(){return Fr}),E.d(T,"QuestionRankingModel",function(){return pu}),E.d(T,"QuestionCommentModel",function(){return Ml}),E.d(T,"QuestionDropdownModel",function(){return bo}),E.d(T,"QuestionFactory",function(){return bt}),E.d(T,"ElementFactory",function(){return er}),E.d(T,"QuestionFileModel",function(){return du}),E.d(T,"QuestionFilePage",function(){return Co}),E.d(T,"QuestionHtmlModel",function(){return hu}),E.d(T,"QuestionRadiogroupModel",function(){return wo}),E.d(T,"QuestionRatingModel",function(){return mu}),E.d(T,"RenderedRatingItem",function(){return ga}),E.d(T,"QuestionExpressionModel",function(){return ns}),E.d(T,"QuestionTextBase",function(){return fs}),E.d(T,"CharacterCounter",function(){return $c}),E.d(T,"QuestionTextModel",function(){return pa}),E.d(T,"QuestionBooleanModel",function(){return ys}),E.d(T,"QuestionImagePickerModel",function(){return vs}),E.d(T,"ImageItemValue",function(){return ma}),E.d(T,"QuestionImageModel",function(){return vu}),E.d(T,"QuestionSignaturePadModel",function(){return Be}),E.d(T,"QuestionPanelDynamicModel",function(){return Hl}),E.d(T,"QuestionPanelDynamicItem",function(){return Vn}),E.d(T,"SurveyTimer",function(){return cl}),E.d(T,"SurveyTimerModel",function(){return Mc}),E.d(T,"tryFocusPage",function(){return Qc}),E.d(T,"createTOCListModel",function(){return oi}),E.d(T,"getTocRootCss",function(){return Hc}),E.d(T,"TOCModel",function(){return jr}),E.d(T,"SurveyProgressModel",function(){return ld}),E.d(T,"ProgressButtons",function(){return Fc}),E.d(T,"ProgressButtonsResponsivityManager",function(){return kc}),E.d(T,"SurveyModel",function(){return zt}),E.d(T,"SurveyTrigger",function(){return Fi}),E.d(T,"SurveyTriggerComplete",function(){return af}),E.d(T,"SurveyTriggerSetValue",function(){return uf}),E.d(T,"SurveyTriggerVisible",function(){return sf}),E.d(T,"SurveyTriggerCopyValue",function(){return wu}),E.d(T,"SurveyTriggerRunExpression",function(){return En}),E.d(T,"SurveyTriggerSkip",function(){return kr}),E.d(T,"Trigger",function(){return of}),E.d(T,"PopupSurveyModel",function(){return cf}),E.d(T,"SurveyWindowModel",function(){return cd}),E.d(T,"TextPreProcessor",function(){return Mr}),E.d(T,"Notifier",function(){return _c}),E.d(T,"Cover",function(){return Xa}),E.d(T,"CoverCell",function(){return jc}),E.d(T,"dxSurveyService",function(){return Lc}),E.d(T,"englishStrings",function(){return A}),E.d(T,"surveyLocalization",function(){return H}),E.d(T,"surveyStrings",function(){return ve}),E.d(T,"getLocaleString",function(){return ee}),E.d(T,"getLocaleStrings",function(){return he}),E.d(T,"setupLocale",function(){return se}),E.d(T,"QuestionCustomWidget",function(){return za}),E.d(T,"CustomWidgetCollection",function(){return po}),E.d(T,"QuestionCustomModel",function(){return tl}),E.d(T,"QuestionCompositeModel",function(){return oa}),E.d(T,"ComponentQuestionJSON",function(){return na}),E.d(T,"ComponentCollection",function(){return ra}),E.d(T,"ListModel",function(){return dr}),E.d(T,"MultiSelectListModel",function(){return da}),E.d(T,"PopupModel",function(){return vi}),E.d(T,"createDialogOptions",function(){return zs}),E.d(T,"PopupBaseViewModel",function(){return yl}),E.d(T,"PopupDropdownViewModel",function(){return nu}),E.d(T,"PopupModalViewModel",function(){return Pu}),E.d(T,"createPopupViewModel",function(){return pd}),E.d(T,"createPopupModalViewModel",function(){return fd}),E.d(T,"DropdownListModel",function(){return ji}),E.d(T,"DropdownMultiSelectListModel",function(){return Rl}),E.d(T,"QuestionButtonGroupModel",function(){return $l}),E.d(T,"ButtonGroupItemModel",function(){return dd}),E.d(T,"ButtonGroupItemValue",function(){return Wl}),E.d(T,"IsMobile",function(){return Ja}),E.d(T,"IsTouch",function(){return qt}),E.d(T,"_setIsTouch",function(){return Ac}),E.d(T,"confirmAction",function(){return Da}),E.d(T,"confirmActionAsync",function(){return Jr}),E.d(T,"detectIEOrEdge",function(){return no}),E.d(T,"doKey2ClickUp",function(){return oo}),E.d(T,"doKey2ClickDown",function(){return gr}),E.d(T,"doKey2ClickBlur",function(){return Ma}),E.d(T,"loadFileFromBase64",function(){return Wo}),E.d(T,"increaseHeightByContent",function(){return Zr}),E.d(T,"createSvg",function(){return Si}),E.d(T,"chooseFiles",function(){return Kr}),E.d(T,"sanitizeEditableContent",function(){return _a}),E.d(T,"prepareElementForVerticalAnimation",function(){return Ln}),E.d(T,"cleanHtmlElementAfterAnimation",function(){return hn}),E.d(T,"classesToSelector",function(){return kt}),E.d(T,"renamedIcons",function(){return yn}),E.d(T,"getIconNameFromProxy",function(){return Jo}),E.d(T,"InputMaskBase",function(){return ki}),E.d(T,"InputMaskPattern",function(){return di}),E.d(T,"InputMaskNumeric",function(){return Zl}),E.d(T,"InputMaskDateTime",function(){return yf}),E.d(T,"InputMaskCurrency",function(){return Kl}),E.d(T,"CssClassBuilder",function(){return te}),E.d(T,"TextAreaModel",function(){return ho}),E.d(T,"surveyCss",function(){return tn}),E.d(T,"defaultV2Css",function(){return Ka}),E.d(T,"defaultV2ThemeName",function(){return Dc}),E.d(T,"DragDropCore",function(){return Mn}),E.d(T,"DragDropChoices",function(){return ui}),E.d(T,"DragDropRankingSelectToRank",function(){return tf}),E.d(T,"StylesManager",function(){return xf}),E.d(T,"defaultStandardCss",function(){return Qi}),E.d(T,"modernCss",function(){return Vf}),E.d(T,"SvgIconRegistry",function(){return Tu}),E.d(T,"SvgRegistry",function(){return Ad}),E.d(T,"SvgThemeSets",function(){return Iu}),E.d(T,"addIconsToThemeSet",function(){return Dd}),E.d(T,"RendererFactory",function(){return Ua}),E.d(T,"ResponsivityManager",function(){return No}),E.d(T,"VerticalResponsivityManager",function(){return qo}),E.d(T,"unwrap",function(){return La}),E.d(T,"getOriginalEvent",function(){return Js}),E.d(T,"getElement",function(){return xi}),E.d(T,"activateLazyRenderingChecks",function(){return Vi}),E.d(T,"createDropdownActionModel",function(){return Ki}),E.d(T,"createDropdownActionModelAdvanced",function(){return Yi}),E.d(T,"createPopupModelWithListModel",function(){return hr}),E.d(T,"getActionDropdownButtonTarget",function(){return Us}),E.d(T,"BaseAction",function(){return bi}),E.d(T,"Action",function(){return pt}),E.d(T,"ActionDropdownViewModel",function(){return Ta}),E.d(T,"AnimationUtils",function(){return Ws}),E.d(T,"AnimationPropertyUtils",function(){return Ra}),E.d(T,"AnimationGroupUtils",function(){return Xi}),E.d(T,"AnimationProperty",function(){return eo}),E.d(T,"AnimationBoolean",function(){return to}),E.d(T,"AnimationGroup",function(){return Ar}),E.d(T,"AnimationTab",function(){return Qo}),E.d(T,"AdaptiveActionContainer",function(){return Ci}),E.d(T,"defaultActionBarCss",function(){return Zi}),E.d(T,"ActionContainer",function(){return Qn}),E.d(T,"DragOrClickHelper",function(){return al}),E.d(T,"Model",function(){return zt});var B=function(){function i(){}return i.isAvailable=function(){return typeof window<"u"},i.isFileReaderAvailable=function(){return i.isAvailable()?!!window.FileReader:!1},i.getLocation=function(){if(i.isAvailable())return window.location},i.getVisualViewport=function(){return i.isAvailable()?window.visualViewport:null},i.getInnerWidth=function(){if(i.isAvailable())return window.innerWidth},i.getInnerHeight=function(){return i.isAvailable()?window.innerHeight:null},i.getWindow=function(){if(i.isAvailable())return window},i.hasOwn=function(t){if(i.isAvailable())return t in window},i.getSelection=function(){if(i.isAvailable()&&window.getSelection)return window.getSelection()},i.requestAnimationFrame=function(t){if(i.isAvailable())return window.requestAnimationFrame(t)},i.addEventListener=function(t,e){i.isAvailable()&&window.addEventListener(t,e)},i.removeEventListener=function(t,e){i.isAvailable()&&window.removeEventListener(t,e)},i.matchMedia=function(t){return!i.isAvailable()||typeof window.matchMedia>"u"?null:window.matchMedia(t)},i}(),M=function(){function i(){}return i.isAvailable=function(){return typeof document<"u"},i.getBody=function(){if(i.isAvailable())return document.body},i.getDocumentElement=function(){if(i.isAvailable())return document.documentElement},i.getDocument=function(){if(i.isAvailable())return document},i.getCookie=function(){if(i.isAvailable())return document.cookie},i.setCookie=function(t){i.isAvailable()&&(document.cookie=t)},i.activeElementBlur=function(){if(i.isAvailable()){var t=document.activeElement;t&&t.blur&&t.blur()}},i.createElement=function(t){if(i.isAvailable())return document.createElement(t)},i.getComputedStyle=function(t){return i.isAvailable()?document.defaultView.getComputedStyle(t):new CSSStyleDeclaration},i.addEventListener=function(t,e){i.isAvailable()&&document.addEventListener(t,e)},i.removeEventListener=function(t,e){i.isAvailable()&&document.removeEventListener(t,e)},i}();function j(i,t){if(!t)return new Date;!z.storeUtcDates&&typeof t=="string"&&O(t)&&(t+="T00:00:00");var e=new Date(t);return z.onDateCreated(e,i,t)}function O(i){return i.indexOf("T")>0||!/\d{4}-\d{2}-\d{2}/.test(i)?!1:!isNaN(new Date(i).getTime())}var m=function(){function i(){}return i.isValueEmpty=function(t){if(Array.isArray(t)&&t.length===0)return!0;if(t&&i.isValueObject(t)&&t.constructor===Object){for(var e in t)if(!i.isValueEmpty(t[e]))return!1;return!0}return!t&&t!==0&&t!==!1},i.isArrayContainsEqual=function(t,e){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(var n=0;n<t.length;n++){for(var r=0;r<e.length&&!i.isTwoValueEquals(t[n],e[r]);r++);if(r===e.length)return!1}return!0},i.isArraysEqual=function(t,e,n,r,o){if(n===void 0&&(n=!1),!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;if(n){for(var s=[],c=[],y=0;y<t.length;y++)s.push(t[y]),c.push(e[y]);s.sort(),c.sort(),t=s,e=c}for(var y=0;y<t.length;y++)if(!i.isTwoValueEquals(t[y],e[y],n,r,o))return!1;return!0},i.compareStrings=function(t,e){var n=z.comparator.normalizeTextCallback;if(t&&(t=n(t,"compare").trim()),e&&(e=n(e,"compare").trim()),!t&&!e)return 0;if(!t)return-1;if(!e)return 1;if(t===e)return 0;for(var r=-1,o=0;o<t.length&&o<e.length;o++){if(this.isCharDigit(t[o])&&this.isCharDigit(e[o])){r=o;break}if(t[o]!==e[o])break}if(r>-1){var s=this.getNumberFromStr(t,r),c=this.getNumberFromStr(e,r);if(!Number.isNaN(s)&&!Number.isNaN(c)&&s!==c)return s>c?1:-1}return t>e?1:-1},i.isTwoValueEquals=function(t,e,n,r,o){if(n===void 0&&(n=!1),t===e||Array.isArray(t)&&t.length===0&&typeof e>"u"||Array.isArray(e)&&e.length===0&&typeof t>"u"||t==null&&e===""||e==null&&t==="")return!0;if(o===void 0&&(o=z.comparator.trimStrings),r===void 0&&(r=z.comparator.caseSensitive),typeof t=="string"&&typeof e=="string"){var s=z.comparator.normalizeTextCallback;return t=s(t,"compare"),e=s(e,"compare"),o&&(t=t.trim(),e=e.trim()),r||(t=t.toLowerCase(),e=e.toLowerCase()),t===e}if(t instanceof Date&&e instanceof Date)return t.getTime()==e.getTime();if(i.isConvertibleToNumber(t)&&i.isConvertibleToNumber(e)&&parseInt(t)===parseInt(e)&&parseFloat(t)===parseFloat(e))return!0;if(!i.isValueEmpty(t)&&i.isValueEmpty(e)||i.isValueEmpty(t)&&!i.isValueEmpty(e))return!1;if((t===!0||t===!1)&&typeof e=="string")return t.toString()===e.toLocaleLowerCase();if((e===!0||e===!1)&&typeof t=="string")return e.toString()===t.toLocaleLowerCase();if(!i.isValueObject(t)&&!i.isValueObject(e))return t==e;if(!i.isValueObject(t)||!i.isValueObject(e))return!1;if(t.equals&&e.equals)return t.equals(e);if(Array.isArray(t)&&Array.isArray(e))return i.isArraysEqual(t,e,n,r,o);for(var c in t)if(t.hasOwnProperty(c)&&(!e.hasOwnProperty(c)||!this.isTwoValueEquals(t[c],e[c],n,r,o)))return!1;for(c in e)if(e.hasOwnProperty(c)&&!t.hasOwnProperty(c))return!1;return!0},i.randomizeArray=function(t){for(var e=t.length-1;e>0;e--){var n=Math.floor(Math.random()*(e+1)),r=t[e];t[e]=t[n],t[n]=r}return t},i.getUnbindValue=function(t){if(Array.isArray(t)){for(var e=[],n=0;n<t.length;n++)e.push(i.getUnbindValue(t[n]));return e}return t&&i.isValueObject(t)&&!(t instanceof Date)?JSON.parse(JSON.stringify(t)):t},i.createCopy=function(t){var e={};if(!t)return e;for(var n in t)e[n]=t[n];return e},i.isConvertibleToNumber=function(t){return t!=null&&!Array.isArray(t)&&!isNaN(t)},i.isValueObject=function(t,e){return t instanceof Object&&(!e||!Array.isArray(t))},i.isNumber=function(t){return!isNaN(this.getNumber(t))},i.getNumber=function(t){var e=i.getNumberCore(t);return z.parseNumber(t,e)},i.getNumberCore=function(t){if(typeof t=="string"){if(t=t.trim(),!t)return NaN;if(t.indexOf("0x")==0)return t.length>32?NaN:parseInt(t);if(t.length>15&&i.isDigitsOnly(t))return NaN;if(i.isStringHasOperator(t))return NaN}t=this.prepareStringToNumber(t);var e=parseFloat(t);return isNaN(e)||!isFinite(t)?NaN:e},i.isStringHasOperator=function(t){if(t.lastIndexOf("-")>0||t.lastIndexOf("+")>0)return!1;for(var e="*^/%",n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return!0;return!1},i.prepareStringToNumber=function(t){if(typeof t!="string"||!t)return t;var e=t.indexOf(",");return e>-1&&t.indexOf(",",e+1)<0?t.replace(",","."):t},i.getMaxLength=function(t,e){return t<0&&(t=e),t>0?t:null},i.getRemainingCharacterCounterText=function(t,e){if(!e||e<=0||!z.showMaxLengthIndicator)return"";var n=t?t.length:"0";return[n,e].join("/")},i.getNumberByIndex=function(t,e,n){if(t<0)return"";var r=1,o="",s=".",c=!0,y="A",w="",N=function(Ee){if(!Ee)return!1;for(var me=0;me<Ee.length;me++)if(i.isCharDigit(Ee[me]))return!0;return!1};if(e){w=e;for(var Q=w.length-1,Y=N(w),ce=function(){return Y&&!i.isCharDigit(w[Q])||i.isCharNotLetterAndDigit(w[Q])};Q>=0&&ce();)Q--;var fe="";for(Q<w.length-1&&(fe=w.substring(Q+1),w=w.substring(0,Q+1)),Q=w.length-1;Q>=0&&!(ce()||(Q--,!Y)););y=w.substring(Q+1),o=w.substring(0,Q+1),parseInt(y)?r=parseInt(y):y.length==1&&(c=!1),(fe||o)&&(s=fe)}if(n>-1&&N(o)&&(o=this.getNumberByIndex(n,o)),c){for(var Oe=(t+r).toString();Oe.length<y.length;)Oe="0"+Oe;return o+Oe+s}return o+String.fromCharCode(y.charCodeAt(0)+t)+s},i.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!i.isCharDigit(t)},i.isCharDigit=function(t){return t>="0"&&t<="9"},i.isDigitsOnly=function(t){if(!t)return!1;for(var e=0;e<t.length;e++)if(!i.isCharDigit(t[e]))return!1;return!0},i.getNumberFromStr=function(t,e){if(!this.isCharDigit(t[e]))return NaN;for(var n="";e<t.length&&this.isCharDigit(t[e]);)n+=t[e],e++;return n?this.getNumber(n):NaN},i.countDecimals=function(t){if(i.isNumber(t)&&Math.floor(t)!==t){var e=t.toString().split(".");return e.length>1&&e[1].length||0}return 0},i.correctAfterPlusMinis=function(t,e,n){var r=i.countDecimals(t),o=i.countDecimals(e);if(r>0||o>0){var s=Math.max(r,o);n=parseFloat(n.toFixed(s))}return n},i.sumAnyValues=function(t,e){if(!i.isNumber(t)||!i.isNumber(e)){if(Array.isArray(t)&&Array.isArray(e))return[].concat(t).concat(e);if(Array.isArray(t)||Array.isArray(e)){var n=Array.isArray(t)?t:e,r=n===t?e:t;if(typeof r=="string"){var o=n.join(", ");return n===t?o+r:r+o}if(typeof r=="number"){for(var s=0,c=0;c<n.length;c++)typeof n[c]=="number"&&(s=i.correctAfterPlusMinis(s,n[c],s+n[c]));return i.correctAfterPlusMinis(s,r,s+r)}}return t+e}return typeof t=="string"||typeof e=="string"?t+e:i.correctAfterPlusMinis(t,e,t+e)},i.correctAfterMultiple=function(t,e,n){var r=i.countDecimals(t)+i.countDecimals(e);return r>0&&(n=parseFloat(n.toFixed(r))),n},i.convertArrayValueToObject=function(t,e,n){n===void 0&&(n=void 0);var r=new Array;if(!t||!Array.isArray(t))return r;for(var o=0;o<t.length;o++){var s=void 0;Array.isArray(n)&&(s=i.findObjByPropValue(n,e,t[o])),s||(s={},s[e]=t[o]),r.push(s)}return r},i.findObjByPropValue=function(t,e,n){for(var r=0;r<t.length;r++)if(i.isTwoValueEquals(t[r][e],n))return t[r]},i.convertArrayObjectToValue=function(t,e){var n=new Array;if(!t||!Array.isArray(t))return n;for(var r=0;r<t.length;r++){var o=t[r]?t[r][e]:void 0;i.isValueEmpty(o)||n.push(o)}return n},i.convertDateToString=function(t){var e=function(n){return n<10?"0"+n.toString():n.toString()};return t.getFullYear()+"-"+e(t.getMonth()+1)+"-"+e(t.getDate())},i.convertDateTimeToString=function(t){var e=function(n){return n<10?"0"+n.toString():n.toString()};return this.convertDateToString(t)+" "+e(t.getHours())+":"+e(t.getMinutes())},i.convertValToQuestionVal=function(t,e){return t instanceof Date?e==="datetime-local"?i.convertDateTimeToString(t):i.convertDateToString(t):this.getUnbindValue(t)},i.compareVerions=function(t,e){if(!t&&!e)return 0;for(var n=t.split("."),r=e.split("."),o=n.length,s=r.length,c=0;c<o&&c<s;c++){var y=n[c],w=r[c];if(y.length===w.length){if(y!==w)return y<w?-1:1}else return y.length<w.length?-1:1}return o===s?0:o<s?-1:1},i.isUrlYoutubeVideo=function(t){if(!t)return!1;var e=["www.youtube.com","m.youtube.com","youtube.com","youtu.be"];t=t.toLowerCase(),t=t.replace(/^https?:\/\//,"");for(var n=0;n<e.length;n++)if(t.indexOf(e[n]+"/")===0)return!0;return!1},i}();String.prototype.format||(String.prototype.format=function(){var i=arguments;return this.replace(/{(\d+)}/g,function(t,e){return typeof i[e]<"u"?i[e]:t})});var A={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",refuseItemText:"Refuse to answer",dontKnowItemText:"Don't know",selectAllItemText:"Select All",deselectAllItemText:"Deselect all",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain any visible elements.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"You have already completed this survey.",loadingSurvey:"Loading Survey...",placeholder:"Select...",ratingOptionsCaption:"Select...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",eachRowUniqueError:"Each row must have a unique value.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textNoDigitsAllow:"Numbers are not allowed.",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} option(s).",maxSelectError:"Please select no more than {0} option(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {1}",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",noUploadFilesHandler:"Files cannot be uploaded. Please add a handler for the 'onUploadFiles' event.",otherRequiredError:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file selected",filePlaceholder:"Drag and drop a file here or click the button below to select a file to upload.",confirmDelete:"Are you sure you want to delete this record?",keyDuplicationError:"This value should be unique.",addColumn:"Add Column",addRow:"Add Row",removeRow:"Remove",emptyRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",showDetails:"Show Details",hideDetails:"Hide Details",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",savingExceedSize:"Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact the survey owner.",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",clearCaption:"Clear",signaturePlaceHolder:"Sign here",signaturePlaceHolderReadOnly:"No signature",chooseFileCaption:"Select File",takePhotoCaption:"Take Photo",photoPlaceholder:"Click the button below to take a photo using the camera.",fileOrPhotoPlaceholder:"Drag and drop or select a file to upload or take a photo using the camera.",replaceFileCaption:"Replace file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply",filterStringPlaceholder:"Type to search...",emptyMessage:"No data to display",noEntriesText:`No entries yet.
-Click the button below to add a new entry.`,noEntriesReadonlyText:"No entries",tabTitlePlaceholder:"New Panel",more:"More",tagboxDoneButtonCaption:"OK",selectToRankEmptyRankedAreaText:"All choices are selected for ranking",selectToRankEmptyUnrankedAreaText:"Drag choices here to rank them",ok:"OK",cancel:"Cancel"},H={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},localeNamesInEnglish:{},localeDirections:{},supportedLocales:[],useEnglishNames:!1,get showNamesInEnglish(){return this.useEnglishNames},set showNamesInEnglish(i){this.useEnglishNames=i},setupLocale:function(i){var t=i.localeCode;this.locales[t]=i.strings,this.localeNames[t]=i.nativeName,this.localeNamesInEnglish[t]=i.englishName,i.rtl!==void 0&&(this.localeDirections[t]=i.rtl)},get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(i){i==="cz"&&(i="cs"),this.currentLocaleValue=i},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(i){i==="cz"&&(i="cs"),this.defaultLocaleValue=i},getLocaleStrings:function(i){return this.locales[i]},getString:function(i,t){var e=this;t===void 0&&(t=null);var n=new Array,r=function(y){var w=e.locales[y];w&&n.push(w)},o=function(y){if(y){r(y);var w=y.indexOf("-");w<1||(y=y.substring(0,w),r(y))}};o(t),o(this.currentLocale),o(this.defaultLocale),this.defaultLocale!=="en"&&r("en");for(var s=0;s<n.length;s++){var c=n[s][i];if(c!==void 0)return c}return this.onGetExternalString(i,t)},getLocaleName:function(i,t){if(!i)return"";t===void 0&&(t=this.showNamesInEnglish);var e=t?this.localeNamesInEnglish:this.localeNames,n=t?this.localeNames:this.localeNamesInEnglish;return e[i]||n[i]||i},getLocales:function(i){var t=this;i===void 0&&(i=!1);var e=[];e.push("");var n=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){n={};for(var r=0;r<this.supportedLocales.length;r++)n[this.supportedLocales[r]]=!0}for(var o in n)i&&o==this.defaultLocale||e.push(o);var s=function(c){return t.getLocaleName(c).toLowerCase()};return e.sort(function(c,y){var w=s(c),N=s(y);return w===N?0:w<N?-1:1}),e},onGetExternalString:function(i,t){}};function ee(i,t){return t===void 0&&(t=null),H.getString(i,t)}function he(i){return H.getLocaleStrings(i)}function se(i){H.setupLocale(i)}var ve=A;H.locales.en=A,H.localeNames.en="english";var de=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),nt=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function _e(i,t,e){var n=i.getLocalizableString(e);if(!n){var r=void 0;typeof t.localizable=="object"&&t.localizable.defaultStr&&(r=t.localizable.defaultStr),n=i.createLocalizableString(e,i,!0,r),typeof t.localizable=="object"&&typeof t.localizable.onGetTextCallback=="function"&&(n.onGetTextCallback=t.localizable.onGetTextCallback)}}function pe(i,t,e){_e(i,t,e);var n=i.getLocalizableStringText(e);if(n)return n;if(typeof t.localizable=="object"&&t.localizable.defaultStr){var r=i.getLocale?i.getLocale():"";return ee(t.localizable.defaultStr,r)}return""}function D(i){return i===void 0&&(i={}),function(t,e){var n=function(r,o){if(o&&typeof o=="object"&&o.type===Lt.ComputedUpdaterType){Je.startCollectDependencies(function(){return r[e]=o.updater()},r,e);var s=o.updater(),c=Je.finishCollectDependencies();return o.setDependencies(c),r.dependencies[e]&&r.dependencies[e].dispose(),r.dependencies[e]=o,s}return o};!i||!i.localizable?Object.defineProperty(t,e,{get:function(){var r=null;return i&&(typeof i.getDefaultValue=="function"&&(r=i.getDefaultValue(this)),i.defaultValue!==void 0&&(r=i.defaultValue)),this.getPropertyValue(e,r)},set:function(r){var o=n(this,r),s=this.getPropertyValue(e);o!==s&&(this.setPropertyValue(e,o),i&&i.onSet&&i.onSet(o,this,s))}}):(Object.defineProperty(t,e,{get:function(){return pe(this,i,e)},set:function(r){_e(this,i,e);var o=n(this,r);this.setLocalizableStringText(e,o),i&&i.onSet&&i.onSet(o,this)}}),Object.defineProperty(t,typeof i.localizable=="object"&&i.localizable.name?i.localizable.name:"loc"+e.charAt(0).toUpperCase()+e.slice(1),{get:function(){return _e(this,i,e),this.getLocalizableString(e)}}))}}function Re(i,t,e){i.ensureArray(e,function(n,r){var o=t?t.onPush:null;o&&o(n,r,i)},function(n,r){var o=t?t.onRemove:null;o&&o(n,r,i)})}function be(i){return function(t,e){Object.defineProperty(t,e,{get:function(){return Re(this,i,e),this.getPropertyValue(e)},set:function(n){Re(this,i,e);var r=this.getPropertyValue(e);n!==r&&(r?r.splice.apply(r,nt([0,r.length],n||[])):this.setPropertyValue(e,n),i&&i.onSet&&i.onSet(n,this))}})}}var Ze=function(){function i(t,e,n){n===void 0&&(n=!1),this.name=e,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=n,this.idValue=i.Index++}return Object.defineProperty(i.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(t){t==="itemvalues"&&(t="itemvalue[]"),t==="textitems"&&(t="textitem[]"),this.typeValue=t,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(t){t!==this.isRequired&&(this.isRequiredValue=t,this.classInfo&&this.classInfo.resetAllProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(t){this.isUniqueValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(t){this.uniquePropertyValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),i.prototype.getDefaultValue=function(t){var e=this.defaultValueFunc?this.defaultValueFunc(t):this.defaultValueValue;return i.getItemValuesDefaultValue&&G.isDescendantOf(this.className,"itemvalue")&&(e=i.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),e},Object.defineProperty(i.prototype,"defaultValue",{get:function(){return this.getDefaultValue(void 0)},set:function(t){this.defaultValueValue=t},enumerable:!1,configurable:!0}),i.prototype.isDefaultValue=function(t){return this.isDefaultValueByObj(void 0,t)},i.prototype.isDefaultValueByObj=function(t,e){if(this.isLocalizable)return e==null;var n=this.getDefaultValue(t);return m.isValueEmpty(n)?e===!1&&(this.type=="boolean"||this.type=="switch")&&!this.defaultValueFunc||e===""||m.isValueEmpty(e):m.isTwoValueEquals(e,n,!1,!0,!1)},i.prototype.getSerializableValue=function(t,e){if(this.onSerializeValue)return this.onSerializeValue(t);var n=this.getValue(t);if(n!=null&&!(!e&&this.isDefaultValueByObj(t,n)))return n},i.prototype.getValue=function(t){return this.onGetValue?(t=this.getOriginalObj(t),this.onGetValue(t)):this.serializationProperty&&t[this.serializationProperty]?t[this.serializationProperty].getJson():t[this.name]},i.prototype.getPropertyValue=function(t){return this.isLocalizable?t[this.serializationProperty]?t[this.serializationProperty].text:null:this.getValue(t)},Object.defineProperty(i.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),i.prototype.settingValue=function(t,e){return!this.onSettingValue||t.isLoadingFromJson?e:this.onSettingValue(t,e)},i.prototype.setValue=function(t,e,n){this.onSetValue?(t=this.getOriginalObj(t),this.onSetValue(t,e,n)):this.serializationProperty&&t[this.serializationProperty]?t[this.serializationProperty].setJson(e,!0):(e&&typeof e=="string"&&(this.type=="number"&&(e=parseInt(e)),(this.type=="boolean"||this.type=="switch")&&(e=e.toLowerCase()==="true")),t[this.name]=e)},i.prototype.validateValue=function(t){var e=this.choices;return!Array.isArray(e)||e.length===0?!0:e.indexOf(t)>-1},i.prototype.getObjType=function(t){return this.classNamePart?t.replace(this.classNamePart,""):t},Object.defineProperty(i.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),i.prototype.getChoices=function(t,e){return e===void 0&&(e=null),this.choicesValue!=null?this.choicesValue:this.choicesfunc!=null?this.choicesfunc(t,e):null},i.prototype.setChoices=function(t,e){e===void 0&&(e=null),this.choicesValue=t,this.choicesfunc=e},i.prototype.getBaseValue=function(){return this.baseValue?typeof this.baseValue=="function"?this.baseValue():this.baseValue:""},i.prototype.setBaseValue=function(t){this.baseValue=t},Object.defineProperty(i.prototype,"readOnly",{get:function(){return this.readOnlyValue!=null?this.readOnlyValue:!1},set:function(t){this.readOnlyValue=t},enumerable:!1,configurable:!0}),i.prototype.isEnable=function(t){return this.readOnly?!1:!t||!this.enableIf?!0:this.enableIf(this.getOriginalObj(t))},i.prototype.isVisible=function(t,e){e===void 0&&(e=null);var n=!this.layout||!t||this.layout===t;return!this.visible||!n?!1:this.visibleIf&&e?this.visibleIf(this.getOriginalObj(e)):!0},i.prototype.getOriginalObj=function(t){if(t&&t.getOriginalObj){var e=t.getOriginalObj();if(e&&G.findProperty(e.getType(),this.name))return e}return t},Object.defineProperty(i.prototype,"visible",{get:function(){return this.visibleValue!=null?this.visibleValue:!0},set:function(t){this.visibleValue=t},enumerable:!1,configurable:!0}),i.prototype.isAvailableInVersion=function(t){return this.alternativeName||this.oldName?!0:this.isAvailableInVersionCore(t)},i.prototype.getSerializedName=function(t){return this.alternativeName?this.isAvailableInVersionCore(t)?this.name:this.alternativeName||this.oldName:this.name},i.prototype.getSerializedProperty=function(t,e){return!this.oldName||this.isAvailableInVersionCore(e)?this:!t||!t.getType?null:G.findProperty(t.getType(),this.oldName)},i.prototype.isAvailableInVersionCore=function(t){return!t||!this.version?!0:m.compareVerions(this.version,t)<=0},Object.defineProperty(i.prototype,"isLocalizable",{get:function(){return this.isLocalizableValue!=null?this.isLocalizableValue:!1},set:function(t){this.isLocalizableValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(t){this.dataListValue=t},enumerable:!1,configurable:!0}),i.prototype.mergeWith=function(t){for(var e=i.mergableValues,n=0;n<e.length;n++)this.mergeValue(t,e[n])},i.prototype.addDependedProperty=function(t){this.dependedProperties||(this.dependedProperties=[]),this.dependedProperties.indexOf(t)<0&&this.dependedProperties.push(t)},i.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},i.prototype.schemaType=function(){if(this.className!=="choicesByUrl")return this.className==="string"?this.className:this.className||this.baseClassName?"array":this.type=="switch"?"boolean":this.type=="boolean"||this.type=="number"?this.type:"string"},i.prototype.schemaRef=function(){if(this.className)return this.className},i.prototype.mergeValue=function(t,e){this[e]==null&&t[e]!=null&&(this[e]=t[e])},i.Index=1,i.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","oldName","layout","version","classNamePart","baseClassName","defaultValue","defaultValueFunc","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","overridingProperty","showMode","dependedProperties","visibleIf","enableIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],i}(),rt=function(){function i(){}return i.addProperty=function(t,e){t=t.toLowerCase();var n=i.properties;n[t]||(n[t]=[]),n[t].push(e)},i.removeProperty=function(t,e){t=t.toLowerCase();var n=i.properties;if(n[t]){for(var r=n[t],o=0;o<r.length;o++)if(r[o].name==e){n[t].splice(o,1);break}}},i.removeAllProperties=function(t){t=t.toLowerCase(),delete i.properties[t]},i.addClass=function(t,e){t=t.toLowerCase(),e&&(e=e.toLowerCase()),i.parentClasses[t]=e},i.getProperties=function(t){t=t.toLowerCase();for(var e=[],n=i.properties;t;){var r=n[t];if(r)for(var o=0;o<r.length;o++)e.push(r[o]);t=i.parentClasses[t]}return e},i.createProperties=function(t){!t||!t.getType||i.createPropertiesCore(t,t.getType())},i.createPropertiesCore=function(t,e){var n=i.properties;n[e]&&i.createPropertiesInObj(t,n[e]);var r=i.parentClasses[e];r&&i.createPropertiesCore(t,r)},i.createPropertiesInObj=function(t,e){for(var n=0;n<e.length;n++)i.createPropertyInObj(t,e[n])},i.createPropertyInObj=function(t,e){if(!i.checkIsPropertyExists(t,e.name)&&!(e.serializationProperty&&i.checkIsPropertyExists(t,e.serializationProperty))){if(e.isLocalizable&&e.serializationProperty&&t.createCustomLocalizableObj){var n=t.createCustomLocalizableObj(e.name);n.defaultValue=e.getDefaultValue(t);var r={get:function(){return t.getLocalizableString(e.name)}};Object.defineProperty(t,e.serializationProperty,r);var o={get:function(){return t.getLocalizableStringText(e.name)},set:function(y){t.setLocalizableStringText(e.name,y)}};Object.defineProperty(t,e.name,o)}else{var s=e.isArray||e.type==="multiplevalues";if(typeof t.createNewArray=="function"&&(G.isDescendantOf(e.className,"itemvalue")?(t.createNewArray(e.name,function(y){y.locOwner=t,y.ownerPropertyName=e.name}),s=!0):s&&t.createNewArray(e.name),s)){var c=e.getDefaultValue(t);Array.isArray(c)&&t.setPropertyValue(e.name,c)}if(t.getPropertyValue&&t.setPropertyValue){var o={get:function(){return e.onGetValue?e.onGetValue(t):t.getPropertyValue(e.name,void 0)},set:function(w){e.onSetValue?e.onSetValue(t,w,null):t.setPropertyValue(e.name,w)}};Object.defineProperty(t,e.name,o)}}(e.type==="condition"||e.type==="expression")&&e.onExecuteExpression&&t.addExpressionProperty(e.name,e.onExecuteExpression)}},i.checkIsPropertyExists=function(t,e){return t.hasOwnProperty(e)||t[e]},i.properties={},i.parentClasses={},i}(),De=function(){function i(t,e,n,r){n===void 0&&(n=null),r===void 0&&(r=null),this.name=t,this.creator=n,this.parentName=r,t=t.toLowerCase(),this.isCustomValue=!n&&t!=="survey",this.parentName&&(this.parentName=this.parentName.toLowerCase(),rt.addClass(t,this.parentName),n&&this.makeParentRegularClass()),this.properties=new Array;for(var o=0;o<e.length;o++)this.createProperty(e[o],this.isCustom)}return i.prototype.find=function(t){for(var e=0;e<this.properties.length;e++)if(this.properties[e].name==t)return this.properties[e];return null},i.prototype.findProperty=function(t){return this.fillAllProperties(),this.hashProperties[t]},i.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},i.prototype.getRequiredProperties=function(){if(this.requiredProperties)return this.requiredProperties;this.requiredProperties=[];for(var t=this.getAllProperties(),e=0;e<t.length;e++)t[e].isRequired&&this.requiredProperties.push(t[e]);return this.requiredProperties},i.prototype.resetAllProperties=function(){this.allProperties=void 0,this.requiredProperties=void 0,this.hashProperties=void 0;for(var t=G.getChildrenClasses(this.name),e=0;e<t.length;e++)t[e].resetAllProperties()},Object.defineProperty(i.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),i.prototype.fillAllProperties=function(){var t=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var e={};this.properties.forEach(function(o){return e[o.name]=o});var n=this.parentName?G.findClass(this.parentName):null;if(n){var r=n.getAllProperties();r.forEach(function(o){var s=e[o.name];s?(s.mergeWith(o),t.addPropCore(s)):t.addPropCore(o)})}this.properties.forEach(function(o){t.hashProperties[o.name]||t.addPropCore(o)})}},i.prototype.addPropCore=function(t){this.allProperties.push(t),this.hashProperties[t.name]=t,t.alternativeName&&(this.hashProperties[t.alternativeName]=t)},i.prototype.isOverridedProp=function(t){return!!this.parentName&&!!G.findProperty(this.parentName,t)},i.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var t=0;t<this.properties.length;t++)this.properties[t].isCustom=!1;rt.removeAllProperties(this.name),this.makeParentRegularClass()}},i.prototype.makeParentRegularClass=function(){if(this.parentName){var t=G.findClass(this.parentName);t&&t.hasRegularChildClass()}},i.prototype.createProperty=function(t,e){e===void 0&&(e=!1);var n=typeof t=="string"?t:t.name;if(n){var r=null,o=n.indexOf(i.typeSymbol);o>-1&&(r=n.substring(o+1),n=n.substring(0,o));var s=this.getIsPropertyNameRequired(n)||!!t.isRequired;n=this.getPropertyName(n);var c=new Ze(this,n,s);if(r&&(c.type=r),typeof t=="object"){if(t.type&&(c.type=t.type),t.default!==void 0&&(c.defaultValue=t.default),t.defaultFunc!==void 0&&(c.defaultValueFunc=t.defaultFunc),m.isValueEmpty(t.isSerializable)||(c.isSerializable=t.isSerializable),m.isValueEmpty(t.isLightSerializable)||(c.isLightSerializable=t.isLightSerializable),m.isValueEmpty(t.maxLength)||(c.maxLength=t.maxLength),t.displayName!==void 0&&(c.displayName=t.displayName),m.isValueEmpty(t.category)||(c.category=t.category),m.isValueEmpty(t.categoryIndex)||(c.categoryIndex=t.categoryIndex),m.isValueEmpty(t.nextToProperty)||(c.nextToProperty=t.nextToProperty),m.isValueEmpty(t.overridingProperty)||(c.overridingProperty=t.overridingProperty),m.isValueEmpty(t.visibleIndex)||(c.visibleIndex=t.visibleIndex),m.isValueEmpty(t.showMode)||(c.showMode=t.showMode),m.isValueEmpty(t.maxValue)||(c.maxValue=t.maxValue),m.isValueEmpty(t.minValue)||(c.minValue=t.minValue),m.isValueEmpty(t.dataList)||(c.dataList=t.dataList),m.isValueEmpty(t.isDynamicChoices)||(c.isDynamicChoices=t.isDynamicChoices),m.isValueEmpty(t.isBindable)||(c.isBindable=t.isBindable),m.isValueEmpty(t.isUnique)||(c.isUnique=t.isUnique),m.isValueEmpty(t.uniqueProperty)||(c.uniquePropertyName=t.uniqueProperty),m.isValueEmpty(t.isArray)||(c.isArray=t.isArray),(t.visible===!0||t.visible===!1)&&(c.visible=t.visible),t.visibleIf&&(c.visibleIf=t.visibleIf),t.enableIf&&(c.enableIf=t.enableIf),t.onExecuteExpression&&(c.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(c.onPropertyEditorUpdate=t.onPropertyEditorUpdate),t.readOnly===!0&&(c.readOnly=!0),t.availableInMatrixColumn===!0&&(c.availableInMatrixColumn=!0),t.choices){var y=typeof t.choices=="function"?t.choices:null,w=typeof t.choices!="function"?t.choices:null;c.setChoices(w,y)}t.baseValue&&c.setBaseValue(t.baseValue),t.onSerializeValue&&(c.onSerializeValue=t.onSerializeValue),t.onGetValue&&(c.onGetValue=t.onGetValue),t.onSetValue&&(c.onSetValue=t.onSetValue),t.onSettingValue&&(c.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+c.name),t.serializationProperty&&(c.serializationProperty=t.serializationProperty,c.serializationProperty&&c.serializationProperty.indexOf("loc")==0&&(c.isLocalizable=!0)),t.isLocalizable&&(c.isLocalizable=t.isLocalizable),t.className&&(c.className=t.className),t.baseClassName&&(c.baseClassName=t.baseClassName,c.isArray=!0),c.isArray===!0&&(c.isArray=!0),t.classNamePart&&(c.classNamePart=t.classNamePart),t.alternativeName&&(c.alternativeName=t.alternativeName),t.oldName&&(c.oldName=t.oldName),t.layout&&(c.layout=t.layout),t.version&&(c.version=t.version),t.dependsOn&&this.addDependsOnProperties(c,t.dependsOn)}return this.properties.push(c),e&&!this.isOverridedProp(c.name)&&(c.isCustom=!0,rt.addProperty(this.name,c)),c}},i.prototype.addDependsOnProperties=function(t,e){var n=Array.isArray(e)?e:[e];t.dependsOn=n;for(var r=0;r<n.length;r++)this.addDependsOnProperty(t,n[r])},i.prototype.addDependsOnProperty=function(t,e){var n=this.find(e);n||(n=G.findProperty(this.parentName,e)),n&&n.addDependedProperty(t.name)},i.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==i.requiredSymbol},i.prototype.getPropertyName=function(t){return this.getIsPropertyNameRequired(t)&&(t=t.slice(1)),t},i.requiredSymbol="!",i.typeSymbol=":",i}(),Bt=function(){function i(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.dynamicPropsCache={}}return i.prototype.getObjPropertyValue=function(t,e){if(this.isObjWrapper(t)&&this.isNeedUseObjWrapper(t,e)){var n=t.getOriginalObj(),r=G.findProperty(n.getType(),e);if(r)return this.getObjPropertyValueCore(n,r)}var o=G.findProperty(t.getType(),e);return o?this.getObjPropertyValueCore(t,o):t[e]},i.prototype.setObjPropertyValue=function(t,e,n){if(t[e]!==n)if(t[e]&&t[e].setJson)t[e].setJson(n,!0);else{if(Array.isArray(n)){for(var r=[],o=0;o<n.length;o++)r.push(n[o]);n=r}t[e]=n}},i.prototype.getObjPropertyValueCore=function(t,e){if(!e.isSerializable)return t[e.name];if(e.isLocalizable){if(e.isArray)return t[e.name];if(e.serializationProperty)return t[e.serializationProperty].text}return t.getPropertyValue(e.name)},i.prototype.isObjWrapper=function(t){return!!t.getOriginalObj&&!!t.getOriginalObj()},i.prototype.isNeedUseObjWrapper=function(t,e){if(!t.getDynamicProperties)return!0;var n=t.getDynamicProperties();if(!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(n[r].name===e)return!0;return!1},i.prototype.addClass=function(t,e,n,r){n===void 0&&(n=null),r===void 0&&(r=null),t=t.toLowerCase();var o=new De(t,e,n,r);if(this.classes[t]=o,r){r=r.toLowerCase();var s=this.childrenClasses[r];s||(this.childrenClasses[r]=[]),this.childrenClasses[r].push(o)}return o},i.prototype.removeClass=function(t){var e=this.findClass(t);if(e&&(delete this.classes[e.name],e.parentName)){var n=this.childrenClasses[e.parentName].indexOf(e);n>-1&&this.childrenClasses[e.parentName].splice(n,1)}},i.prototype.overrideClassCreatore=function(t,e){this.overrideClassCreator(t,e)},i.prototype.overrideClassCreator=function(t,e){t=t.toLowerCase();var n=this.findClass(t);n&&(n.creator=e)},i.prototype.getProperties=function(t){var e=this.findClass(t);return e?e.getAllProperties():[]},i.prototype.getPropertiesByObj=function(t){var e=t&&t.getType?t.getType():void 0;if(!e)return[];for(var n=this.getProperties(e),r=this.getDynamicPropertiesByObj(t),o=r.length-1;o>=0;o--)this.findProperty(e,r[o].name)&&r.splice(o,1);return r.length===0?n:[].concat(n).concat(r)},i.prototype.addDynamicPropertiesIntoObj=function(t,e,n){var r=this;n.forEach(function(o){r.addDynamicPropertyIntoObj(t,e,o.name,!1),o.serializationProperty&&r.addDynamicPropertyIntoObj(t,e,o.serializationProperty,!0),o.alternativeName&&r.addDynamicPropertyIntoObj(t,e,o.alternativeName,!1)})},i.prototype.addDynamicPropertyIntoObj=function(t,e,n,r){var o={configurable:!0,get:function(){return e[n]}};r||(o.set=function(s){e[n]=s}),Object.defineProperty(t,n,o)},i.prototype.getDynamicPropertiesByObj=function(t,e){if(e===void 0&&(e=null),!t||!t.getType)return[];if(t.getDynamicProperties)return t.getDynamicProperties();if(!t.getDynamicType&&!e)return[];var n=e||t.getDynamicType();return this.getDynamicPropertiesByTypes(t.getType(),n)},i.prototype.getDynamicPropertiesByTypes=function(t,e,n){if(!e)return[];var r=e+"-"+t;if(this.dynamicPropsCache[r])return this.dynamicPropsCache[r];var o=this.getProperties(e);if(!o||o.length==0)return[];for(var s={},c=this.getProperties(t),y=0;y<c.length;y++)s[c[y].name]=c[y];var w=[];n||(n=[]);for(var N=0;N<o.length;N++){var Q=o[N];n.indexOf(Q.name)<0&&this.canAddDybamicProp(Q,s[Q.name])&&w.push(Q)}return this.dynamicPropsCache[r]=w,w},i.prototype.canAddDybamicProp=function(t,e){if(!e)return!0;if(t===e)return!1;for(var n=t.classInfo;n&&n.parentName;){if(t=this.findProperty(n.parentName,t.name),t&&t===e)return!0;n=t?t.classInfo:void 0}return!1},i.prototype.hasOriginalProperty=function(t,e){return!!this.getOriginalProperty(t,e)},i.prototype.getOriginalProperty=function(t,e){var n=this.findProperty(t.getType(),e);return n||(this.isObjWrapper(t)?this.findProperty(t.getOriginalObj().getType(),e):null)},i.prototype.getProperty=function(t,e){var n=this.findProperty(t,e);if(!n)return n;var r=this.findClass(t);if(n.classInfo===r)return n;var o=new Ze(r,n.name,n.isRequired);return o.mergeWith(n),o.isArray=n.isArray,r.properties.push(o),r.resetAllProperties(),o},i.prototype.findProperty=function(t,e){var n=this.findClass(t);return n?n.findProperty(e):null},i.prototype.findProperties=function(t,e){var n=new Array,r=this.findClass(t);if(!r)return n;for(var o=0;o<e.length;o++){var s=r.findProperty(e[o]);s&&n.push(s)}return n},i.prototype.getAllPropertiesByName=function(t){for(var e=new Array,n=this.getAllClasses(),r=0;r<n.length;r++)for(var o=this.findClass(n[r]),s=0;s<o.properties.length;s++)if(o.properties[s].name==t){e.push(o.properties[s]);break}return e},i.prototype.getAllClasses=function(){var t=new Array;for(var e in this.classes)t.push(e);return t},i.prototype.createClass=function(t,e){e===void 0&&(e=void 0),t=t.toLowerCase();var n=this.findClass(t);if(!n)return null;if(n.creator)return n.creator(e);for(var r=n.parentName;r;){if(n=this.findClass(r),!n)return null;if(r=n.parentName,n.creator)return this.createCustomType(t,n.creator,e)}return null},i.prototype.createCustomType=function(t,e,n){n===void 0&&(n=void 0),t=t.toLowerCase();var r=e(n),o=t,s=r.getTemplate?r.getTemplate():r.getType();return r.getType=function(){return o},r.getTemplate=function(){return s},rt.createProperties(r),r},i.prototype.getChildrenClasses=function(t,e){e===void 0&&(e=!1),t=t.toLowerCase();var n=[];return this.fillChildrenClasses(t,e,n),n},i.prototype.getRequiredProperties=function(t){var e=this.findClass(t);if(!e)return[];for(var n=e.getRequiredProperties(),r=[],o=0;o<n.length;o++)r.push(n[o].name);return r},i.prototype.addProperties=function(t,e){t=t.toLowerCase();for(var n=this.findClass(t),r=0;r<e.length;r++)this.addCustomPropertyCore(n,e[r])},i.prototype.addProperty=function(t,e){return this.addCustomPropertyCore(this.findClass(t),e)},i.prototype.addCustomPropertyCore=function(t,e){if(!t)return null;var n=t.createProperty(e,!0);return n&&(this.clearDynamicPropsCache(t),t.resetAllProperties()),n},i.prototype.removeProperty=function(t,e){var n=this.findClass(t);if(!n)return!1;var r=n.find(e);r&&(this.clearDynamicPropsCache(n),this.removePropertyFromClass(n,r),n.resetAllProperties(),rt.removeProperty(n.name,e))},i.prototype.clearDynamicPropsCache=function(t){this.dynamicPropsCache={}},i.prototype.removePropertyFromClass=function(t,e){var n=t.properties.indexOf(e);n<0||t.properties.splice(n,1)},i.prototype.fillChildrenClasses=function(t,e,n){var r=this.childrenClasses[t];if(r)for(var o=0;o<r.length;o++)(!e||r[o].creator)&&n.push(r[o]),this.fillChildrenClasses(r[o].name,e,n)},i.prototype.findClass=function(t){t=t.toLowerCase();var e=this.classes[t];if(!e){var n=this.alternativeNames[t];if(n&&n!=t)return this.findClass(n)}return e},i.prototype.isDescendantOf=function(t,e){if(!t||!e)return!1;t=t.toLowerCase(),e=e.toLowerCase();var n=this.findClass(t);if(!n)return!1;var r=n;do{if(r.name===e)return!0;r=this.classes[r.parentName]}while(r);return!1},i.prototype.addAlterNativeClassName=function(t,e){this.alternativeNames[e.toLowerCase()]=t.toLowerCase()},i.prototype.generateSchema=function(t){t===void 0&&(t=void 0),t||(t="survey");var e=this.findClass(t);if(!e)return null;var n={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{locstring:this.generateLocStrClass()}};return this.generateSchemaProperties(e,n,n.definitions,!0),n},i.prototype.generateLocStrClass=function(){var t={},e=G.findProperty("survey","locale");if(e){var n=e.getChoices(null);Array.isArray(n)&&(n.indexOf("en")<0&&n.splice(0,0,"en"),n.splice(0,0,"default"),n.forEach(function(r){r&&(t[r]={type:"string"})}))}return{$id:"locstring",type:"object",properties:t}},i.prototype.generateSchemaProperties=function(t,e,n,r){if(t){var o=e.properties,s=[];(t.name==="question"||t.name==="panel")&&(o.type={type:"string"},s.push("type"));for(var c=0;c<t.properties.length;c++){var y=t.properties[c];t.parentName&&G.findProperty(t.parentName,y.name)||(o[y.name]=this.generateSchemaProperty(y,n,r),y.isRequired&&s.push(y.name))}s.length>0&&(e.required=s)}},i.prototype.generateSchemaProperty=function(t,e,n){if(t.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",n)}]};var r=t.schemaType(),o=t.schemaRef(),s={};if(r&&(s.type=r),t.hasChoices){var c=t.getChoices(null);Array.isArray(c)&&c.length>0&&(s.enum=this.getChoicesValues(c))}if(o&&(r==="array"?t.className==="string"?s.items={type:t.className}:s.items={$ref:this.getChemeRefName(t.className,n)}:s.$ref=this.getChemeRefName(o,n),this.generateChemaClass(t.className,e,!1)),t.baseClassName){var y=this.getChildrenClasses(t.baseClassName,!0);t.baseClassName=="question"&&y.push(this.findClass("panel")),s.items={anyOf:[]};for(var w=0;w<y.length;w++){var N=y[w].name;s.items.anyOf.push({$ref:this.getChemeRefName(N,n)}),this.generateChemaClass(N,e,!1)}}return s},i.prototype.getChemeRefName=function(t,e){return e?"#/definitions/"+t:t},i.prototype.generateChemaClass=function(t,e,n){if(!e[t]){var r=this.findClass(t);if(r){var o=!!r.parentName&&r.parentName!="base";o&&this.generateChemaClass(r.parentName,e,n);var s={type:"object",$id:t};e[t]=s;var c={properties:{}};this.generateSchemaProperties(r,c,e,n),o?s.allOf=[{$ref:this.getChemeRefName(r.parentName,n)},{properties:c.properties}]:s.properties=c.properties,Array.isArray(c.required)&&(s.required=c.required)}}},i.prototype.getChoicesValues=function(t){var e=new Array;return t.forEach(function(n){typeof n=="object"&&n.value!==void 0?e.push(n.value):e.push(n)}),e},i}(),Ae=function(){function i(t,e){this.type=t,this.message=e,this.description="",this.at=-1,this.end=-1}return i.prototype.getFullDescription=function(){return this.message+(this.description?`
-`+this.description:"")},i}(),ot=function(i){de(t,i);function t(e,n){var r=i.call(this,"unknownproperty","Unknown property in class '"+n+"': '"+e+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(Ae),$e=function(i){de(t,i);function t(e,n,r){var o=i.call(this,n,r)||this;return o.baseClassName=e,o.type=n,o.message=r,o}return t}(Ae),lt=function(i){de(t,i);function t(e,n){var r=i.call(this,n,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+e+"'.")||this;return r.propertyName=e,r.baseClassName=n,r}return t}($e),xt=function(i){de(t,i);function t(e,n){var r=i.call(this,n,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+e+"'.")||this;return r.propertyName=e,r.baseClassName=n,r}return t}($e),st=function(i){de(t,i);function t(e,n){var r=i.call(this,"requiredproperty","The property '"+e+"' is required in class '"+n+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(Ae),gt=function(i){de(t,i);function t(e,n){var r=i.call(this,"arrayproperty","The property '"+e+"' should be an array in '"+n+"'.")||this;return r.propertyName=e,r.className=n,r}return t}(Ae),It=function(i){de(t,i);function t(e,n){var r=i.call(this,"incorrectvalue","The property value: '"+n+"' is incorrect for property '"+e.name+"'.")||this;return r.property=e,r.value=n,r}return t}(Ae),Vt=function(){function i(){this.errors=new Array,this.lightSerializing=!1}return Object.defineProperty(i,"metaData",{get:function(){return i.metaDataValue},enumerable:!1,configurable:!0}),i.prototype.toJsonObject=function(t,e){return this.toJsonObjectCore(t,null,e)},i.prototype.toObject=function(t,e,n){this.toObjectCore(t,e,n);var r=this.getRequiredError(e,t);r&&this.addNewError(r,t,e)},i.prototype.toObjectCore=function(t,e,n){if(t){var r=null,o=void 0,s=!0;if(e.getType&&(o=e.getType(),r=G.getProperties(o),s=!!o&&!G.isDescendantOf(o,"itemvalue")),!!r){e.startLoadingFromJson&&e.startLoadingFromJson(t),r=this.addDynamicProperties(e,t,r),this.options=n;var c={};c[i.typePropertyName]=!0;var y={};for(var w in t)this.setPropertyValueToObj(t,e,w,r,c,y,o,s,n);this.options=void 0,e.endLoadingFromJson&&e.endLoadingFromJson()}}},i.prototype.setPropertyValueToObj=function(t,e,n,r,o,s,c,y,w){var N=this;if(!o[n]){if(n===i.positionPropertyName){e[n]=t[n];return}var Q=this.findProperty(r,n);if(!Q&&y&&this.addNewError(new ot(n.toString(),c),t,e),Q){var Y=Q.dependsOn;Array.isArray(Y)&&(s[n]=!0,Y.forEach(function(ce){s[ce]||N.setPropertyValueToObj(t,e,ce,r,o,s,c,!1,w)})),this.valueToObj(t[n],e,Q,t,w),o[n]=!0}}},i.prototype.toJsonObjectCore=function(t,e,n){if(!t||!t.getType)return t;if(!t.isSurvey&&typeof t.getData=="function")return t.getData();var r={};e!=null&&!e.className&&(r[i.typePropertyName]=e.getObjType(t.getType()));var o=n===!0;return(!n||n===!0)&&(n={}),o&&(n.storeDefaults=o),this.propertiesToJson(t,G.getProperties(t.getType()),r,n),this.propertiesToJson(t,this.getDynamicProperties(t),r,n),r},i.prototype.getDynamicProperties=function(t){return G.getDynamicPropertiesByObj(t)},i.prototype.addDynamicProperties=function(t,e,n){if(!t.getDynamicPropertyName&&!t.getDynamicProperties)return n;if(t.getDynamicPropertyName){var r=t.getDynamicPropertyName();if(!r)return n;r&&e[r]&&(t[r]=e[r])}var o=this.getDynamicProperties(t);return o.length===0?n:[].concat(n).concat(o)},i.prototype.propertiesToJson=function(t,e,n,r){for(var o=0;o<e.length;o++)this.valueToJson(t,n,e[o],r)},i.prototype.valueToJson=function(t,e,n,r){r||(r={}),!(n.isSerializable===!1||n.isLightSerializable===!1&&this.lightSerializing)&&(r.version&&!n.isAvailableInVersion(r.version)||this.valueToJsonCore(t,e,n,r))},i.prototype.valueToJsonCore=function(t,e,n,r){var o=n.getSerializedProperty(t,r.version);if(o&&o!==n){this.valueToJsonCore(t,e,o,r);return}var s=n.getSerializableValue(t,r.storeDefaults);if(s!==void 0){if(this.isValueArray(s)){for(var c=[],y=0;y<s.length;y++)c.push(this.toJsonObjectCore(s[y],n,r));s=c.length>0?c:null}else s=this.toJsonObjectCore(s,n,r);if(s!=null){var w=n.getSerializedName(r.version),N=typeof t.getPropertyValue=="function"&&t.getPropertyValue(w,null)!==null;(r.storeDefaults&&N||!n.isDefaultValueByObj(t,s))&&(!G.onSerializingProperty||!G.onSerializingProperty(t,n,s,e))&&(e[w]=this.removePosOnValueToJson(n,s))}}},i.prototype.valueToObj=function(t,e,n,r,o){if(t!=null){if(this.removePos(n,t),n!=null&&n.hasToUseSetValue){n.setValue(e,t,this);return}if(n.isArray&&!Array.isArray(t)&&t){t=[t];var s=r&&n.alternativeName&&r[n.alternativeName]?n.alternativeName:n.name;this.addNewError(new gt(s,e.getType()),r||t,e)}if(this.isValueArray(t)){this.valueToArray(t,e,n.name,n,o);return}var c=this.createNewObj(t,n);c.newObj&&(this.toObjectCore(t,c.newObj,o),t=c.newObj),c.error||(n!=null?(n.setValue(e,t,this),o&&o.validatePropertyValues&&(n.validateValue(t)||this.addNewError(new It(n,t),r,e))):e[n.name]=t)}},i.prototype.removePosOnValueToJson=function(t,e){return!t.isCustom||!e||this.removePosFromObj(e),e},i.prototype.removePos=function(t,e){!t||!t.type||t.type.indexOf("value")<0||this.removePosFromObj(e)},i.prototype.removePosFromObj=function(t){if(!(!t||typeof t.getType=="function")){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.removePosFromObj(t[e]);if(typeof t=="object"){t[i.positionPropertyName]&&delete t[i.positionPropertyName];for(var n in t)this.removePosFromObj(t[n])}}},i.prototype.isValueArray=function(t){return t&&Array.isArray(t)},i.prototype.createNewObj=function(t,e){var n={newObj:null,error:null},r=this.getClassNameForNewObj(t,e);return n.newObj=r?G.createClass(r,t):null,n.error=this.checkNewObjectOnErrors(n.newObj,t,e,r),n},i.prototype.getClassNameForNewObj=function(t,e){var n=e!=null&&e.className?e.className:void 0;if(n||(n=t[i.typePropertyName]),!n)return n;n=n.toLowerCase();var r=e.classNamePart;return r&&n.indexOf(r)<0&&(n+=r),n},i.prototype.checkNewObjectOnErrors=function(t,e,n,r){var o=null;return t?o=this.getRequiredError(t,e):n.baseClassName&&(r?o=new xt(n.name,n.baseClassName):o=new lt(n.name,n.baseClassName)),o&&this.addNewError(o,e,t),o},i.prototype.getRequiredError=function(t,e){if(!t.getType||typeof t.getData=="function")return null;var n=G.findClass(t.getType());if(!n)return null;var r=n.getRequiredProperties();if(!Array.isArray(r))return null;for(var o=0;o<r.length;o++){var s=r[o];if(m.isValueEmpty(s.defaultValue)&&!e[s.name])return new st(s.name,t.getType())}return null},i.prototype.addNewError=function(t,e,n){if(t.jsonObj=e,t.element=n,this.errors.push(t),!!e){var r=e[i.positionPropertyName];r&&(t.at=r.start,t.end=r.end)}},i.prototype.valueToArray=function(t,e,n,r,o){if(!(e[n]&&!this.isValueArray(e[n]))){e[n]&&t.length>0&&e[n].splice(0,e[n].length);var s=e[n]?e[n]:[];this.addValuesIntoArray(t,s,r,o),e[n]||(e[n]=s)}},i.prototype.addValuesIntoArray=function(t,e,n,r){for(var o=0;o<t.length;o++){var s=this.createNewObj(t[o],n);s.newObj?(t[o].name&&(s.newObj.name=t[o].name),t[o].valueName&&(s.newObj.valueName=t[o].valueName.toString()),e.push(s.newObj),this.toObjectCore(t[o],s.newObj,r)):s.error||e.push(t[o])}},i.prototype.findProperty=function(t,e){if(!t)return null;for(var n=0;n<t.length;n++){var r=t[n];if(r.name==e||r.alternativeName==e)return r}return null},i.typePropertyName="type",i.positionPropertyName="pos",i.metaDataValue=new Bt,i}(),G=Vt.metaData,yt="@survey",ke=function(){function i(){this.values=null,this.properties=null,this.asyncValues={}}return i.prototype.getFirstName=function(t,e){if(e===void 0&&(e=null),!t)return t;var n="";if(e&&(n=this.getFirstPropertyName(t,e),n))return n;for(var r=0;r<t.length;r++){var o=t[r];if(o=="."||o=="[")break;n+=o}return n},i.prototype.hasValue=function(t,e){e===void 0&&(e=null),e||(e=this.values);var n=this.getValueCore(t,e);return n.hasValue},i.prototype.getValue=function(t,e){e===void 0&&(e=null),e||(e=this.values);var n=this.getValueCore(t,e);return n.value},i.prototype.setValue=function(t,e,n){if(e){var r=this.getNonNestedObject(t,e,!0);r&&(t=r.value,e=r.text,t&&e&&(t[e]=n))}},i.prototype.getValueInfo=function(t){if(t.path){t.value=this.getValueFromPath(t.path,this.values),t.hasValue=t.value!==null&&!m.isValueEmpty(t.value),!t.hasValue&&t.path.length>1&&t.path[t.path.length-1]=="length"&&(t.hasValue=!0,t.value=0);return}var e=this.getValueCore(t.name,this.values);t.value=e.value,t.hasValue=e.hasValue,t.path=e.hasValue?e.path:null,t.sctrictCompare=e.sctrictCompare},i.prototype.isAnyKeyChanged=function(t,e){for(var n=0;n<e.length;n++){var r=e[n];if(r){var o=r.toLowerCase();if(t.hasOwnProperty(r)||r!==o&&t.hasOwnProperty(o))return!0;var s=this.getFirstName(r);if(t.hasOwnProperty(s)){if(r===s)return!0;var c=t[s];if(c!=null){if(!c.hasOwnProperty("oldValue")||!c.hasOwnProperty("newValue"))return!0;var y={};y[s]=c.oldValue;var w=this.getValue(r,y);y[s]=c.newValue;var N=this.getValue(r,y);if(!m.isTwoValueEquals(w,N,!1,!1,!1))return!0}}}}return!1},i.prototype.getValueFromPath=function(t,e){if(t.length===2&&t[0]===yt)return this.getValueFromSurvey(t[1]);for(var n=0;e&&n<t.length;){var r=t[n];if(m.isNumber(r)&&Array.isArray(e)&&r>=e.length)return null;e=e[r],n++}return e},i.prototype.getValueCore=function(t,e){var n=this.getQuestionDirectly(t);if(n)return{hasValue:!0,value:n.value,path:[t],sctrictCompare:n.requireStrictCompare};var r=this.getValueFromValues(t,e);if(t&&!r.hasValue){var o=this.getValueFromSurvey(t);o!==void 0&&(r.hasValue=!0,r.value=o,r.path=[yt,t])}return r},i.prototype.getQuestionDirectly=function(t){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(t)},i.prototype.getValueFromSurvey=function(t){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(t.toLocaleLowerCase())},i.prototype.getValueFromValues=function(t,e){var n={hasValue:!1,value:null,path:null},r=e;if(!r&&r!==0&&r!==!1)return n;t&&t.lastIndexOf(".length")>-1&&t.lastIndexOf(".length")===t.length-7&&(n.value=0,n.hasValue=!0);var o=this.getNonNestedObject(r,t,!1);return o&&(n.path=o.path,n.value=o.text?this.getObjectValue(o.value,o.text):o.value,n.hasValue=!m.isValueEmpty(n.value)),n},i.prototype.getNonNestedObject=function(t,e,n){for(var r=new Array,o=0,s=this.getNonNestedObjectCore(t,e,n,r);!s&&o<r.length;)o=r.length,s=this.getNonNestedObjectCore(t,e,n,r);return s},i.prototype.getNonNestedObjectCore=function(t,e,n,r){var o=this.getFirstPropertyName(e,t,n,r);o&&r.push(o);for(var s=o?[o]:null;e!=o&&t;){var c=e[0]=="[";if(c){var y=this.getObjInArray(t,e);if(!y)return null;t=y.value,e=y.text,s.push(y.index)}else{if(!o&&e==this.getFirstName(e))return{value:t,text:e,path:s};if(t=this.getObjectValue(t,o),m.isValueEmpty(t)&&!n)return null;e=e.substring(o.length)}e&&e[0]=="."&&(e=e.substring(1)),o=this.getFirstPropertyName(e,t,n,r),o&&s.push(o)}return{value:t,text:e,path:s}},i.prototype.getObjInArray=function(t,e){if(!Array.isArray(t))return null;for(var n=1,r="";n<e.length&&e[n]!="]";)r+=e[n],n++;return e=n<e.length?e.substring(n+1):"",n=this.getIntValue(r),n<0||n>=t.length?null:{value:t[n],text:e,index:n}},i.prototype.getFirstPropertyName=function(t,e,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=void 0),!t||(e||(e={}),e.hasOwnProperty(t)))return t;var o=t.toLowerCase(),s=o[0],c=s.toUpperCase();for(var y in e)if(!(Array.isArray(r)&&r.indexOf(y)>-1)){var w=y[0];if(w===c||w===s){var N=y.toLowerCase();if(N==o)return y;if(o.length<=N.length)continue;var Q=o[N.length];if(Q!="."&&Q!="[")continue;if(N==o.substring(0,N.length))return y}}if(n&&t[0]!=="["){var Y=t.indexOf(".");return Y>-1&&(t=t.substring(0,Y),e[t]={}),t}return""},i.prototype.getObjectValue=function(t,e){return e?t[e]:null},i.prototype.getIntValue=function(t){return t=="0"||(t|0)>0&&t%1==0?Number(t):-1},i}(),mt=function(){function i(){}return i.disposedObjectChangedProperty=function(t,e){i.warn('An attempt to set a property "'+t+'" of a disposed object "'+e+'"')},i.inCorrectQuestionValue=function(t,e){var n=JSON.stringify(e,null,3);i.warn("An attempt to assign an incorrect value"+n+' to the following question: "'+t+'"')},i.warn=function(t){console.warn(t)},i.error=function(t){console.error(t)},i}(),Ne=function(){function i(){this.functionHash={},this.isAsyncHash={}}return i.prototype.register=function(t,e,n){n===void 0&&(n=!1),this.functionHash[t]=e,n&&(this.isAsyncHash[t]=!0)},i.prototype.unregister=function(t){delete this.functionHash[t],delete this.isAsyncHash[t]},i.prototype.hasFunction=function(t){return!!this.functionHash[t]},i.prototype.isAsyncFunction=function(t){return!!this.isAsyncHash[t]},i.prototype.clear=function(){this.functionHash={}},i.prototype.getAll=function(){var t=[];for(var e in this.functionHash)t.push(e);return t.sort()},i.prototype.run=function(t,e,n,r){n===void 0&&(n=null);var o=this.functionHash[t];if(!o)return mt.warn("Unknown function name: "+t),null;var s={func:o};if(n)for(var c in n)s[c]=n[c];return s.func(e,r)},i.Instance=new i,i}(),Ye=Ne.Instance.register;function ct(i,t){if(i!=null)if(Array.isArray(i))for(var e=0;e<i.length;e++)ct(i[e],t);else m.isNumber(i)&&(i=m.getNumber(i)),t.push(i)}function on(i){var t=[];ct(i,t);for(var e=0,n=0;n<t.length;n++)e=m.correctAfterPlusMinis(e,t[n],e+t[n]);return e}Ne.Instance.register("sum",on);function Ft(i,t){var e=[];ct(i,e);for(var n=void 0,r=0;r<e.length;r++)n===void 0&&(n=e[r]),t?n>e[r]&&(n=e[r]):n<e[r]&&(n=e[r]);return n}function He(i){return Ft(i,!0)}Ne.Instance.register("min",He);function Qe(i){return Ft(i,!1)}Ne.Instance.register("max",Qe);function Rt(i){var t=[];return ct(i,t),t.length}Ne.Instance.register("count",Rt);function At(i){var t=[];ct(i,t);var e=on(i);return t.length>0?e/t.length:0}Ne.Instance.register("avg",At);function Gt(i,t){if(i.length<2||i.length>3)return null;var e=i[0];if(!e||!Array.isArray(e)&&!Array.isArray(Object.keys(e)))return null;var n=i[1];if(typeof n!="string"&&!(n instanceof String))return null;var r=i.length>2?i[2]:void 0;if(typeof r!="string"&&!(r instanceof String)&&(r=void 0),!r){var o=Array.isArray(t)&&t.length>2?t[2]:void 0;o&&o.toString()&&(r=o.toString())}return{data:e,name:n,expression:r}}function Dt(i){return typeof i=="string"?m.isNumber(i)?m.getNumber(i):void 0:i}function Xt(i,t,e,n,r,o){if(!i||m.isValueEmpty(i[t])||o&&!o.run(i))return e;var s=r?Dt(i[t]):1;return n(e,s)}function Ht(i,t,e,n){n===void 0&&(n=!0);var r=Gt(i,t);if(r){var o=r.expression?new pn(r.expression):void 0;o&&o.isAsync&&(o=void 0);var s=void 0;if(Array.isArray(r.data))for(var c=0;c<r.data.length;c++)s=Xt(r.data[c],r.name,s,e,n,o);else for(var y in r.data)s=Xt(r.data[y],r.name,s,e,n,o);return s}}function _t(i,t){var e=Ht(i,t,function(n,r){return n==null&&(n=0),r==null||r==null?n:m.correctAfterPlusMinis(n,r,n+r)});return e!==void 0?e:0}Ne.Instance.register("sumInArray",_t);function cr(i,t){return Ht(i,t,function(e,n){return e==null?n:n==null||n==null||e<n?e:n})}Ne.Instance.register("minInArray",cr);function Sr(i,t){return Ht(i,t,function(e,n){return e==null?n:n==null||n==null||e>n?e:n})}Ne.Instance.register("maxInArray",Sr);function Nn(i,t){var e=Ht(i,t,function(n,r){return n==null&&(n=0),r==null||r==null?n:n+1},!1);return e!==void 0?e:0}Ne.Instance.register("countInArray",Nn);function an(i,t){var e=Nn(i,t);return e==0?0:_t(i,t)/e}Ne.Instance.register("avgInArray",an);function On(i){return!i&&i.length!==3?"":i[0]?i[1]:i[2]}Ne.Instance.register("iif",On);function cn(i){return!i&&i.length<1||!i[0]?null:j("function-getDate",i[0])}Ne.Instance.register("getDate",cn);function qn(i,t,e){if(e==="days")return Zn([i,t]);var n=j("function-dateDiffMonths",i),r=j("function-dateDiffMonths",t),o=r.getFullYear()-n.getFullYear();e=e||"years";var s=o*12+r.getMonth()-n.getMonth();return r.getDate()<n.getDate()&&(s-=1),e==="months"?s:~~(s/12)}function Bn(i){return!Array.isArray(i)||i.length<1||!i[0]?null:qn(i[0],void 0,(i.length>1?i[1]:"")||"years")}Ne.Instance.register("age",Bn);function Hr(i){return!Array.isArray(i)||i.length<2||!i[0]||!i[1]?null:qn(i[0],i[1],(i.length>2?i[2]:"")||"days")}Ne.Instance.register("dateDiff",Hr);function Fn(i){if(!Array.isArray(i)||i.length<2||!i[0]||!i[1])return null;var t=j("function-dateAdd",i[0]),e=i[1],n=i[2]||"days";return n==="days"&&t.setDate(t.getDate()+e),n==="months"&&t.setMonth(t.getMonth()+e),n==="years"&&t.setFullYear(t.getFullYear()+e),t}Ne.Instance.register("dateAdd",Fn);function kn(i){if(!i)return!1;for(var t=i.questions,e=0;e<t.length;e++)if(!t[e].validate(!1))return!1;return!0}function Er(i){if(!i&&i.length<1||!i[0]||!this.survey)return!1;var t=i[0],e=this.survey.getPageByName(t);if(e||(e=this.survey.getPanelByName(t)),!e){var n=this.survey.getQuestionByName(t);if(!n||!Array.isArray(n.panels))return!1;if(i.length>1)i[1]<n.panels.length&&(e=n.panels[i[1]]);else{for(var r=0;r<n.panels.length;r++)if(!kn(n.panels[r]))return!1;return!0}}return kn(e)}Ne.Instance.register("isContainerReady",Er);function zr(){return this.survey&&this.survey.isDisplayMode}Ne.Instance.register("isDisplayMode",zr);function fr(){return j("function-currentDate")}Ne.Instance.register("currentDate",fr);function Or(i){var t=j("function-today");return z.localization.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(i)&&i.length==1&&t.setDate(t.getDate()+i[0]),t}Ne.Instance.register("today",Or);function Ur(i){if(!(i.length!==1||!i[0]))return j("function-getYear",i[0]).getFullYear()}Ne.Instance.register("getYear",Ur);function Wr(){return j("function-currentYear").getFullYear()}Ne.Instance.register("currentYear",Wr);function Zn(i){if(!Array.isArray(i)||i.length!==2||!i[0]||!i[1])return 0;var t=j("function-diffDays",i[0]),e=j("function-diffDays",i[1]),n=Math.abs(e-t);return Math.ceil(n/(1e3*60*60*24))}Ne.Instance.register("diffDays",Zn);function Kn(i,t){var e=Or(void 0);return t&&t[0]&&(e=j("function-"+i,t[0])),e}function Le(i){var t=Kn("year",i);return t.getFullYear()}Ne.Instance.register("year",Le);function Yn(i){var t=Kn("month",i);return t.getMonth()+1}Ne.Instance.register("month",Yn);function Ao(i){var t=Kn("day",i);return t.getDate()}Ne.Instance.register("day",Ao);function $u(i){var t=Kn("weekday",i);return t.getDay()}Ne.Instance.register("weekday",$u);function As(i,t){if(!(!i||!t)){for(var e=i.question;e&&e.parent;){var n=e.parent.getQuestionByName(t);if(n)return n;e=e.parentQuestion}for(var r=["row","panel","survey"],o=0;o<r.length;o++){var s=i[r[o]];if(s&&s.getQuestionByName){var n=s.getQuestionByName(t);if(n)return n}}return null}}function Do(i,t){return t.length>1&&!m.isValueEmpty(t[1])?i.getDisplayValue(!0,t[1]):i.displayValue}function xa(i){var t=this,e=As(this,i[0]);if(!e)return"";if(e.isReady)this.returnResult(Do(e,i));else{var n=function(r,o){r.isReady&&(r.onReadyChanged.remove(n),t.returnResult(Do(r,i)))};e.onReadyChanged.add(n)}}Ne.Instance.register("displayValue",xa,!0);function Gu(i){if(!(i.length!==2||!i[0]||!i[1])){var t=As(this,i[0]);return t?t[i[1]]:void 0}}Ne.Instance.register("propertyValue",Gu);function Ju(i){if(i.length<2)return"";var t=i[0];if(!t||typeof t!="string")return"";var e=i[1];if(!m.isNumber(e))return"";var n=i.length>2?i[2]:void 0;return m.isNumber(n)?t.substring(e,n):t.substring(e)}Ne.Instance.register("substring",Ju);var Tr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pr=function(){function i(){this._id=i.counter++}return Object.defineProperty(i.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),i.prototype.toString=function(t){return""},i.prototype.hasFunction=function(){return!1},i.prototype.hasAsyncFunction=function(){return!1},i.prototype.addToAsyncList=function(t){},i.prototype.isEqual=function(t){return!!t&&t.getType()===this.getType()&&this.isContentEqual(t)},i.prototype.areOperatorsEquals=function(t,e){return!t&&!e||!!t&&t.isEqual(e)},i.counter=1,i}(),Wi=function(i){Tr(t,i);function t(e,n,r,o){n===void 0&&(n=null),r===void 0&&(r=null),o===void 0&&(o=!1);var s=i.call(this)||this;return s.operatorName=e,s.left=n,s.right=r,s.isArithmeticValue=o,o?s.consumer=fn.binaryFunctions.arithmeticOp(e):s.consumer=fn.binaryFunctions[e],s.consumer==null&&fn.throwInvalidOperatorError(e),s}return Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.getIsOperandRequireStrict(this.left)||this.getIsOperandRequireStrict(this.right)},enumerable:!1,configurable:!0}),t.prototype.getIsOperandRequireStrict=function(e){return!!e&&e.requireStrictCompare},t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return this.operatorName=="or"||this.operatorName=="and"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){var n=e;return n.operator===this.operator&&this.areOperatorsEquals(this.left,n.left)&&this.areOperatorsEquals(this.right,n.right)},t.prototype.evaluateParam=function(e,n){return e==null?null:e.evaluate(n)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e),this.requireStrictCompare)},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return"("+fn.safeToString(this.left,e)+" "+fn.operatorToString(this.operatorName)+" "+fn.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){this.left!=null&&this.left.setVariables(e),this.right!=null&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(pr),Ds=function(i){Tr(t,i);function t(e,n){var r=i.call(this)||this;return r.expressionValue=e,r.operatorName=n,r.consumer=fn.unaryFunctions[n],r.consumer==null&&fn.throwInvalidOperatorError(n),r}return Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return fn.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){var n=e;return n.operator==this.operator&&this.areOperatorsEquals(this.expression,n.expression)},t.prototype.hasFunction=function(){return this.expression.hasFunction()},t.prototype.hasAsyncFunction=function(){return this.expression.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.expression.addToAsyncList(e)},t.prototype.evaluate=function(e){var n=this.expression.evaluate(e);return this.consumer.call(this,n)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(pr),$r=function(i){Tr(t,i);function t(e){var n=i.call(this)||this;return n.values=e,n}return t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return"["+this.values.map(function(r){return r.toString(e)}).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map(function(n){return n.evaluate(e)})},t.prototype.setVariables=function(e){this.values.forEach(function(n){n.setVariables(e)})},t.prototype.hasFunction=function(){return this.values.some(function(e){return e.hasFunction()})},t.prototype.hasAsyncFunction=function(){return this.values.some(function(e){return e.hasAsyncFunction()})},t.prototype.addToAsyncList=function(e){this.values.forEach(function(n){return n.addToAsyncList(e)})},t.prototype.isContentEqual=function(e){var n=e;if(n.values.length!==this.values.length)return!1;for(var r=0;r<this.values.length;r++)if(!n.values[r].isEqual(this.values[r]))return!1;return!0},t}(pr),$i=function(i){Tr(t,i);function t(e){var n=i.call(this)||this;return n.value=e,n}return t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){if(!e||typeof e!="string")return e;if(fn.isBooleanValue(e))return e.toLowerCase()==="true";if(e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1]))return e.substring(1,e.length-1);if(m.isNumber(e)){if(e[0]==="0"&&e.indexOf("0x")!=0){var n=e.length,r=n>1&&(e[1]==="."||e[1]===",");if(!r&&n>1||r&&n<2)return e}return m.getNumber(e)}return e},t.prototype.isContentEqual=function(e){var n=e;return n.value==this.value},t.prototype.isQuote=function(e){return e=="'"||e=='"'},t}(pr),Ls=function(i){Tr(t,i);function t(e){var n=i.call(this,e)||this;return n.variableName=e,n.valueInfo={},n.useValueAsItIs=!1,n.variableName&&n.variableName.length>1&&n.variableName[0]===t.DisableConversionChar&&(n.variableName=n.variableName.substring(1),n.useValueAsItIs=!0),n}return Object.defineProperty(t,"DisableConversionChar",{get:function(){return z.expressionDisableConversionChar},set:function(e){z.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.valueInfo.sctrictCompare===!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}var r=this.useValueAsItIs?t.DisableConversionChar:"";return"{"+r+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(e){return this.useValueAsItIs?e:i.prototype.getCorrectValue.call(this,e)},t.prototype.isContentEqual=function(e){var n=e;return n.variable==this.variable},t}($i),Lo=function(i){Tr(t,i);function t(e,n){var r=i.call(this)||this;return r.originalValue=e,r.parameters=n,Array.isArray(n)&&n.length===0&&(r.parameters=new $r([])),r}return t.prototype.getType=function(){return"function"},t.prototype.evaluate=function(e){var n=this.getAsynValue(e);return n?n.value:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){var n=e.properties;if(this.isAsyncFunction){n=m.createCopy(e.properties);var r=this.id,o=e.asyncValues,s=e.onCompleteAsyncFunc,c=this;n.returnResult=function(y){o[r]={value:y},s(c)}}return Ne.Instance.run(this.originalValue,this.parameters.evaluate(e),n,this.parameters.values)},t.prototype.toString=function(e){if(e===void 0&&(e=void 0),e){var n=e(this);if(n)return n}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},t.prototype.isReady=function(e){return!!this.getAsynValue(e)},t.prototype.getAsynValue=function(e){return e.asyncValues[this.id]},t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return this.isAsyncFunction()||this.parameters.hasAsyncFunction()},t.prototype.isAsyncFunction=function(){return Ne.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){var n=void 0;if(this.isAsyncFunction()&&(n={operand:this}),this.parameters.hasAsyncFunction()){var r=new Array;this.parameters.addToAsyncList(r),r.forEach(function(o){return o.parent=n}),n||(n={}),n.children=r}n&&e.push(n)},t.prototype.isContentEqual=function(e){var n=e;return n.originalValue==this.originalValue&&this.areOperatorsEquals(n.parameters,this.parameters)},t}(pr),fn=function(){function i(){}return i.throwInvalidOperatorError=function(t){throw new Error("Invalid operator: '"+t+"'")},i.safeToString=function(t,e){return t==null?"":t.toString(e)},i.toOperandString=function(t){return t&&!m.isNumber(t)&&!i.isBooleanValue(t)&&(t="'"+t+"'"),t},i.isBooleanValue=function(t){return!!t&&(t.toLowerCase()==="true"||t.toLowerCase()==="false")},i.countDecimals=function(t){if(m.isNumber(t)&&Math.floor(t)!==t){var e=t.toString().split(".");return e.length>1&&e[1].length||0}return 0},i.plusMinus=function(t,e,n){var r=i.countDecimals(t),o=i.countDecimals(e);if(r>0||o>0){var s=Math.max(r,o);n=parseFloat(n.toFixed(s))}return n},i.isTwoValueEquals=function(t,e,n){return n===void 0&&(n=!0),t==="undefined"&&(t=void 0),e==="undefined"&&(e=void 0),m.isTwoValueEquals(t,e,n)},i.operatorToString=function(t){var e=i.signs[t];return e??t},i.convertValForDateCompare=function(t,e){if(e instanceof Date&&typeof t=="string"){var n=j("expression-operand",t);return n.setHours(0,0,0),n}return t},i.unaryFunctions={empty:function(t){return m.isValueEmpty(t)},notempty:function(t){return!i.unaryFunctions.empty(t)},negate:function(t){return!t}},i.binaryFunctions={arithmeticOp:function(t){var e=function(n,r){return m.isValueEmpty(n)?typeof r=="number"?0:typeof n=="string"?n:typeof r=="string"?"":Array.isArray(r)?[]:0:n};return function(n,r){n=e(n,r),r=e(r,n);var o=i.binaryFunctions[t];return o==null?null:o.call(this,n,r)}},and:function(t,e){return t&&e},or:function(t,e){return t||e},plus:function(t,e){return m.sumAnyValues(t,e)},minus:function(t,e){return m.correctAfterPlusMinis(t,e,t-e)},mul:function(t,e){return m.correctAfterMultiple(t,e,t*e)},div:function(t,e){return e?t/e:null},mod:function(t,e){return e?t%e:null},power:function(t,e){return Math.pow(t,e)},greater:function(t,e){return t==null||e==null?!1:(t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),t>e)},less:function(t,e){return t==null||e==null?!1:(t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),t<e)},greaterorequal:function(t,e){return i.binaryFunctions.equal(t,e)?!0:i.binaryFunctions.greater(t,e)},lessorequal:function(t,e){return i.binaryFunctions.equal(t,e)?!0:i.binaryFunctions.less(t,e)},equal:function(t,e,n){return t=i.convertValForDateCompare(t,e),e=i.convertValForDateCompare(e,t),i.isTwoValueEquals(t,e,n!==!0)},notequal:function(t,e,n){return!i.binaryFunctions.equal(t,e,n)},contains:function(t,e){return i.binaryFunctions.containsCore(t,e,!0)},notcontains:function(t,e){return!t&&!m.isValueEmpty(e)?!0:i.binaryFunctions.containsCore(t,e,!1)},anyof:function(t,e){if(m.isValueEmpty(t)&&m.isValueEmpty(e))return!0;if(m.isValueEmpty(t)||!Array.isArray(t)&&t.length===0)return!1;if(m.isValueEmpty(e))return!0;if(!Array.isArray(t))return i.binaryFunctions.contains(e,t);if(!Array.isArray(e))return i.binaryFunctions.contains(t,e);for(var n=0;n<e.length;n++)if(i.binaryFunctions.contains(t,e[n]))return!0;return!1},allof:function(t,e){if(!t&&!m.isValueEmpty(e))return!1;if(!Array.isArray(e))return i.binaryFunctions.contains(t,e);for(var n=0;n<e.length;n++)if(!i.binaryFunctions.contains(t,e[n]))return!1;return!0},containsCore:function(t,e,n){if(!t&&t!==0&&t!==!1)return!1;if(t.length||(t=t.toString(),(typeof e=="string"||e instanceof String)&&(t=t.toUpperCase(),e=e.toUpperCase())),typeof t=="string"||t instanceof String){if(!e)return!1;e=e.toString();var r=t.indexOf(e)>-1;return n?r:!r}for(var o=Array.isArray(e)?e:[e],s=0;s<o.length;s++){var c=0;for(e=o[s];c<t.length&&!i.isTwoValueEquals(t[c],e);c++);if(c==t.length)return!n}return n}},i.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},i}(),Zu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Mo=function(i){Zu(t,i);function t(e,n,r,o){var s=i.call(this)||this;return s.message=e,s.expected=n,s.found=r,s.location=o,s.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(s,t),s}return t.buildMessage=function(e,n){function r(N){return N.charCodeAt(0).toString(16).toUpperCase()}function o(N){return N.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(Q){return"\\x0"+r(Q)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Q){return"\\x"+r(Q)})}function s(N){return N.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(Q){return"\\x0"+r(Q)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Q){return"\\x"+r(Q)})}function c(N){switch(N.type){case"literal":return'"'+o(N.text)+'"';case"class":var Q=N.parts.map(function(Y){return Array.isArray(Y)?s(Y[0])+"-"+s(Y[1]):s(Y)});return"["+(N.inverted?"^":"")+Q+"]";case"any":return"any character";case"end":return"end of input";case"other":return N.description}}function y(N){var Q=N.map(c),Y,ce;if(Q.sort(),Q.length>0){for(Y=1,ce=1;Y<Q.length;Y++)Q[Y-1]!==Q[Y]&&(Q[ce]=Q[Y],ce++);Q.length=ce}switch(Q.length){case 1:return Q[0];case 2:return Q[0]+" or "+Q[1];default:return Q.slice(0,-1).join(", ")+", or "+Q[Q.length-1]}}function w(N){return N?'"'+o(N)+'"':"end of input"}return"Expected "+y(e)+" but "+w(n)+" found."},t}(Error);function Va(i,t){t=t!==void 0?t:{};var e={},n={Expression:zi},r=zi,o=function(x,I){return wp(x,I,!0)},s="||",c=qe("||",!1),y="or",w=qe("or",!0),N=function(){return"or"},Q="&&",Y=qe("&&",!1),ce="and",fe=qe("and",!0),Oe=function(){return"and"},Ee=function(x,I){return wp(x,I)},me="<=",ze=qe("<=",!1),Wt="lessorequal",Zt=qe("lessorequal",!0),sr=function(){return"lessorequal"},wr=">=",xs=qe(">=",!1),xo="greaterorequal",Ld=qe("greaterorequal",!0),Md=function(){return"greaterorequal"},Yl="==",_d=qe("==",!1),ba="equal",Sf=qe("equal",!0),Ef=function(){return"equal"},jd="=",Nd=qe("=",!1),Of="!=",qd=qe("!=",!1),Bd="notequal",Fd=qe("notequal",!0),kd=function(){return"notequal"},Qd="<",Hd=qe("<",!1),zd="less",Ud=qe("less",!0),Wd=function(){return"less"},$d=">",Gd=qe(">",!1),Tf="greater",If=qe("greater",!0),Jd=function(){return"greater"},Zd="+",Kd=qe("+",!1),Yd=function(){return"plus"},Ru="-",Xd=qe("-",!1),eh=function(){return"minus"},th="*",nh=qe("*",!1),rh=function(){return"mul"},ih="/",oh=qe("/",!1),sh=function(){return"div"},ah="%",uh=qe("%",!1),lh=function(){return"mod"},Au="^",ch=qe("^",!1),Rf="power",Af=qe("power",!0),Xl=function(){return"power"},ec="*=",Df=qe("*=",!1),Lf="contains",Mf=qe("contains",!0),fh="contain",ph=qe("contain",!0),dh=function(){return"contains"},Du="notcontains",Lu=qe("notcontains",!0),hh="notcontain",gh=qe("notcontain",!0),tc=function(){return"notcontains"},_f="anyof",mh=qe("anyof",!0),yh=function(){return"anyof"},vh="allof",bh=qe("allof",!0),Ch=function(){return"allof"},jf="(",Nf=qe("(",!1),qf=")",Bf=qe(")",!1),wh=function(x){return x},Ph=function(x,I){return new Lo(x,I)},xh="!",Pr=qe("!",!1),Vh="negate",Sh=qe("negate",!0),Vo=function(x){return new Ds(x,"negate")},Ke=function(x,I){return new Ds(x,I)},Eh="empty",jn=qe("empty",!0),rn=function(){return"empty"},Oh="notempty",Hi=qe("notempty",!0),Th=function(){return"notempty"},Ff="undefined",Ih=qe("undefined",!1),kf="null",Rh=qe("null",!1),nc=function(){return null},Ah=function(x){return new $i(x)},hi="{",Qf=qe("{",!1),Mu="}",$t=qe("}",!1),Kt=function(x){return new Ls(x)},_u=function(x){return x},Hf="''",Dh=qe("''",!1),zf=function(){return""},Uf='""',Lh=qe('""',!1),Wf="'",rc=qe("'",!1),Vs=function(x){return"'"+x+"'"},ju='"',$f=qe('"',!1),Gf="[",Nu=qe("[",!1),$n="]",Ss=qe("]",!1),Mh=function(x){return x},Jf=",",Zf=qe(",",!1),_h=function(x,I){if(x==null)return new $r([]);var Z=[x];if(Array.isArray(I))for(var q=fg(I),X=3;X<q.length;X+=4)Z.push(q[X]);return new $r(Z)},jh="true",Kf=qe("true",!0),gi=function(){return!0},et="false",Yf=qe("false",!0),ar=function(){return!1},ic="0x",Nh=qe("0x",!1),Ot=function(){return parseInt(Qu(),16)},qh=/^[\-]/,Xf=ur(["-"],!1,!1),qu=function(x,I){return x==null?I:-I},Bh=".",Fh=qe(".",!1),kh=function(){return parseFloat(Qu())},Qh=function(){return parseInt(Qu(),10)},Hh="0",zh=qe("0",!1),Uh=function(){return 0},ep=function(x){return x.join("")},tp="\\'",Wh=qe("\\'",!1),$h=function(){return"'"},np='\\"',Gh=qe('\\"',!1),oc=function(){return'"'},Jh=/^[^"']/,sc=ur(['"',"'"],!0,!1),ac=function(){return Qu()},Zh=/^[^{}]/,Kh=ur(["{","}"],!0,!1),un=/^[0-9]/,Dn=ur([["0","9"]],!1,!1),rp=/^[1-9]/,ip=ur([["1","9"]],!1,!1),op=/^[a-zA-Z_]/,uc=ur([["a","z"],["A","Z"],"_"],!1,!1),Yh=eg("whitespace"),sp=/^[ \t\n\r]/,ap=ur([" ","	",`
-`,"\r"],!1,!1),S=0,Me=0,Bu=[{line:1,column:1}],Qr=0,Fu=[],we=0,Te={},ku;if(t.startRule!==void 0){if(!(t.startRule in n))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');r=n[t.startRule]}function Qu(){return i.substring(Me,S)}function qe(x,I){return{type:"literal",text:x,ignoreCase:I}}function ur(x,I,Z){return{type:"class",parts:x,inverted:I,ignoreCase:Z}}function Xh(){return{type:"end"}}function eg(x){return{type:"other",description:x}}function up(x){var I=Bu[x],Z;if(I)return I;for(Z=x-1;!Bu[Z];)Z--;for(I=Bu[Z],I={line:I.line,column:I.column};Z<x;)i.charCodeAt(Z)===10?(I.line++,I.column=1):I.column++,Z++;return Bu[x]=I,I}function lp(x,I){var Z=up(x),q=up(I);return{start:{offset:x,line:Z.line,column:Z.column},end:{offset:I,line:q.line,column:q.column}}}function Pe(x){S<Qr||(S>Qr&&(Qr=S,Fu=[]),Fu.push(x))}function cp(x,I,Z){return new Mo(Mo.buildMessage(x,I),x,I,Z)}function zi(){var x,I,Z,q,X,le,Ce,Ie,wt,Tt=S*34+0,vc=Te[Tt];if(vc)return S=vc.nextPos,vc.result;if(x=S,I=tt(),I!==e)if(Z=lc(),Z!==e){for(q=[],X=S,le=tt(),le!==e?(Ce=fp(),Ce!==e?(Ie=tt(),Ie!==e?(wt=lc(),wt!==e?(le=[le,Ce,Ie,wt],X=le):(S=X,X=e)):(S=X,X=e)):(S=X,X=e)):(S=X,X=e);X!==e;)q.push(X),X=S,le=tt(),le!==e?(Ce=fp(),Ce!==e?(Ie=tt(),Ie!==e?(wt=lc(),wt!==e?(le=[le,Ce,Ie,wt],X=le):(S=X,X=e)):(S=X,X=e)):(S=X,X=e)):(S=X,X=e);q!==e?(X=tt(),X!==e?(Me=x,I=o(Z,q),x=I):(S=x,x=e)):(S=x,x=e)}else S=x,x=e;else S=x,x=e;return Te[Tt]={nextPos:S,result:x},x}function fp(){var x,I,Z=S*34+1,q=Te[Z];return q?(S=q.nextPos,q.result):(x=S,i.substr(S,2)===s?(I=s,S+=2):(I=e,we===0&&Pe(c)),I===e&&(i.substr(S,2).toLowerCase()===y?(I=i.substr(S,2),S+=2):(I=e,we===0&&Pe(w))),I!==e&&(Me=x,I=N()),x=I,Te[Z]={nextPos:S,result:x},x)}function lc(){var x,I,Z,q,X,le,Ce,Ie,wt=S*34+2,Tt=Te[wt];if(Tt)return S=Tt.nextPos,Tt.result;if(x=S,I=cc(),I!==e){for(Z=[],q=S,X=tt(),X!==e?(le=pp(),le!==e?(Ce=tt(),Ce!==e?(Ie=cc(),Ie!==e?(X=[X,le,Ce,Ie],q=X):(S=q,q=e)):(S=q,q=e)):(S=q,q=e)):(S=q,q=e);q!==e;)Z.push(q),q=S,X=tt(),X!==e?(le=pp(),le!==e?(Ce=tt(),Ce!==e?(Ie=cc(),Ie!==e?(X=[X,le,Ce,Ie],q=X):(S=q,q=e)):(S=q,q=e)):(S=q,q=e)):(S=q,q=e);Z!==e?(Me=x,I=o(I,Z),x=I):(S=x,x=e)}else S=x,x=e;return Te[wt]={nextPos:S,result:x},x}function pp(){var x,I,Z=S*34+3,q=Te[Z];return q?(S=q.nextPos,q.result):(x=S,i.substr(S,2)===Q?(I=Q,S+=2):(I=e,we===0&&Pe(Y)),I===e&&(i.substr(S,3).toLowerCase()===ce?(I=i.substr(S,3),S+=3):(I=e,we===0&&Pe(fe))),I!==e&&(Me=x,I=Oe()),x=I,Te[Z]={nextPos:S,result:x},x)}function cc(){var x,I,Z,q,X,le,Ce,Ie,wt=S*34+4,Tt=Te[wt];if(Tt)return S=Tt.nextPos,Tt.result;if(x=S,I=fc(),I!==e){for(Z=[],q=S,X=tt(),X!==e?(le=dp(),le!==e?(Ce=tt(),Ce!==e?(Ie=fc(),Ie!==e?(X=[X,le,Ce,Ie],q=X):(S=q,q=e)):(S=q,q=e)):(S=q,q=e)):(S=q,q=e);q!==e;)Z.push(q),q=S,X=tt(),X!==e?(le=dp(),le!==e?(Ce=tt(),Ce!==e?(Ie=fc(),Ie!==e?(X=[X,le,Ce,Ie],q=X):(S=q,q=e)):(S=q,q=e)):(S=q,q=e)):(S=q,q=e);Z!==e?(Me=x,I=Ee(I,Z),x=I):(S=x,x=e)}else S=x,x=e;return Te[wt]={nextPos:S,result:x},x}function dp(){var x,I,Z=S*34+5,q=Te[Z];return q?(S=q.nextPos,q.result):(x=S,i.substr(S,2)===me?(I=me,S+=2):(I=e,we===0&&Pe(ze)),I===e&&(i.substr(S,11).toLowerCase()===Wt?(I=i.substr(S,11),S+=11):(I=e,we===0&&Pe(Zt))),I!==e&&(Me=x,I=sr()),x=I,x===e&&(x=S,i.substr(S,2)===wr?(I=wr,S+=2):(I=e,we===0&&Pe(xs)),I===e&&(i.substr(S,14).toLowerCase()===xo?(I=i.substr(S,14),S+=14):(I=e,we===0&&Pe(Ld))),I!==e&&(Me=x,I=Md()),x=I,x===e&&(x=S,i.substr(S,2)===Yl?(I=Yl,S+=2):(I=e,we===0&&Pe(_d)),I===e&&(i.substr(S,5).toLowerCase()===ba?(I=i.substr(S,5),S+=5):(I=e,we===0&&Pe(Sf))),I!==e&&(Me=x,I=Ef()),x=I,x===e&&(x=S,i.charCodeAt(S)===61?(I=jd,S++):(I=e,we===0&&Pe(Nd)),I===e&&(i.substr(S,5).toLowerCase()===ba?(I=i.substr(S,5),S+=5):(I=e,we===0&&Pe(Sf))),I!==e&&(Me=x,I=Ef()),x=I,x===e&&(x=S,i.substr(S,2)===Of?(I=Of,S+=2):(I=e,we===0&&Pe(qd)),I===e&&(i.substr(S,8).toLowerCase()===Bd?(I=i.substr(S,8),S+=8):(I=e,we===0&&Pe(Fd))),I!==e&&(Me=x,I=kd()),x=I,x===e&&(x=S,i.charCodeAt(S)===60?(I=Qd,S++):(I=e,we===0&&Pe(Hd)),I===e&&(i.substr(S,4).toLowerCase()===zd?(I=i.substr(S,4),S+=4):(I=e,we===0&&Pe(Ud))),I!==e&&(Me=x,I=Wd()),x=I,x===e&&(x=S,i.charCodeAt(S)===62?(I=$d,S++):(I=e,we===0&&Pe(Gd)),I===e&&(i.substr(S,7).toLowerCase()===Tf?(I=i.substr(S,7),S+=7):(I=e,we===0&&Pe(If))),I!==e&&(Me=x,I=Jd()),x=I)))))),Te[Z]={nextPos:S,result:x},x)}function fc(){var x,I,Z,q,X,le,Ce,Ie,wt=S*34+6,Tt=Te[wt];if(Tt)return S=Tt.nextPos,Tt.result;if(x=S,I=pc(),I!==e){for(Z=[],q=S,X=tt(),X!==e?(le=hp(),le!==e?(Ce=tt(),Ce!==e?(Ie=pc(),Ie!==e?(X=[X,le,Ce,Ie],q=X):(S=q,q=e)):(S=q,q=e)):(S=q,q=e)):(S=q,q=e);q!==e;)Z.push(q),q=S,X=tt(),X!==e?(le=hp(),le!==e?(Ce=tt(),Ce!==e?(Ie=pc(),Ie!==e?(X=[X,le,Ce,Ie],q=X):(S=q,q=e)):(S=q,q=e)):(S=q,q=e)):(S=q,q=e);Z!==e?(Me=x,I=o(I,Z),x=I):(S=x,x=e)}else S=x,x=e;return Te[wt]={nextPos:S,result:x},x}function hp(){var x,I,Z=S*34+7,q=Te[Z];return q?(S=q.nextPos,q.result):(x=S,i.charCodeAt(S)===43?(I=Zd,S++):(I=e,we===0&&Pe(Kd)),I!==e&&(Me=x,I=Yd()),x=I,x===e&&(x=S,i.charCodeAt(S)===45?(I=Ru,S++):(I=e,we===0&&Pe(Xd)),I!==e&&(Me=x,I=eh()),x=I),Te[Z]={nextPos:S,result:x},x)}function pc(){var x,I,Z,q,X,le,Ce,Ie,wt=S*34+8,Tt=Te[wt];if(Tt)return S=Tt.nextPos,Tt.result;if(x=S,I=dc(),I!==e){for(Z=[],q=S,X=tt(),X!==e?(le=gp(),le!==e?(Ce=tt(),Ce!==e?(Ie=dc(),Ie!==e?(X=[X,le,Ce,Ie],q=X):(S=q,q=e)):(S=q,q=e)):(S=q,q=e)):(S=q,q=e);q!==e;)Z.push(q),q=S,X=tt(),X!==e?(le=gp(),le!==e?(Ce=tt(),Ce!==e?(Ie=dc(),Ie!==e?(X=[X,le,Ce,Ie],q=X):(S=q,q=e)):(S=q,q=e)):(S=q,q=e)):(S=q,q=e);Z!==e?(Me=x,I=o(I,Z),x=I):(S=x,x=e)}else S=x,x=e;return Te[wt]={nextPos:S,result:x},x}function gp(){var x,I,Z=S*34+9,q=Te[Z];return q?(S=q.nextPos,q.result):(x=S,i.charCodeAt(S)===42?(I=th,S++):(I=e,we===0&&Pe(nh)),I!==e&&(Me=x,I=rh()),x=I,x===e&&(x=S,i.charCodeAt(S)===47?(I=ih,S++):(I=e,we===0&&Pe(oh)),I!==e&&(Me=x,I=sh()),x=I,x===e&&(x=S,i.charCodeAt(S)===37?(I=ah,S++):(I=e,we===0&&Pe(uh)),I!==e&&(Me=x,I=lh()),x=I)),Te[Z]={nextPos:S,result:x},x)}function dc(){var x,I,Z,q,X,le,Ce,Ie,wt=S*34+10,Tt=Te[wt];if(Tt)return S=Tt.nextPos,Tt.result;if(x=S,I=hc(),I!==e){for(Z=[],q=S,X=tt(),X!==e?(le=mp(),le!==e?(Ce=tt(),Ce!==e?(Ie=hc(),Ie!==e?(X=[X,le,Ce,Ie],q=X):(S=q,q=e)):(S=q,q=e)):(S=q,q=e)):(S=q,q=e);q!==e;)Z.push(q),q=S,X=tt(),X!==e?(le=mp(),le!==e?(Ce=tt(),Ce!==e?(Ie=hc(),Ie!==e?(X=[X,le,Ce,Ie],q=X):(S=q,q=e)):(S=q,q=e)):(S=q,q=e)):(S=q,q=e);Z!==e?(Me=x,I=o(I,Z),x=I):(S=x,x=e)}else S=x,x=e;return Te[wt]={nextPos:S,result:x},x}function mp(){var x,I,Z=S*34+11,q=Te[Z];return q?(S=q.nextPos,q.result):(x=S,i.charCodeAt(S)===94?(I=Au,S++):(I=e,we===0&&Pe(ch)),I===e&&(i.substr(S,5).toLowerCase()===Rf?(I=i.substr(S,5),S+=5):(I=e,we===0&&Pe(Af))),I!==e&&(Me=x,I=Xl()),x=I,Te[Z]={nextPos:S,result:x},x)}function hc(){var x,I,Z,q,X,le,Ce,Ie,wt=S*34+12,Tt=Te[wt];if(Tt)return S=Tt.nextPos,Tt.result;if(x=S,I=gc(),I!==e){for(Z=[],q=S,X=tt(),X!==e?(le=yp(),le!==e?(Ce=tt(),Ce!==e?(Ie=gc(),Ie===e&&(Ie=null),Ie!==e?(X=[X,le,Ce,Ie],q=X):(S=q,q=e)):(S=q,q=e)):(S=q,q=e)):(S=q,q=e);q!==e;)Z.push(q),q=S,X=tt(),X!==e?(le=yp(),le!==e?(Ce=tt(),Ce!==e?(Ie=gc(),Ie===e&&(Ie=null),Ie!==e?(X=[X,le,Ce,Ie],q=X):(S=q,q=e)):(S=q,q=e)):(S=q,q=e)):(S=q,q=e);Z!==e?(Me=x,I=Ee(I,Z),x=I):(S=x,x=e)}else S=x,x=e;return Te[wt]={nextPos:S,result:x},x}function yp(){var x,I,Z=S*34+13,q=Te[Z];return q?(S=q.nextPos,q.result):(x=S,i.substr(S,2)===ec?(I=ec,S+=2):(I=e,we===0&&Pe(Df)),I===e&&(i.substr(S,8).toLowerCase()===Lf?(I=i.substr(S,8),S+=8):(I=e,we===0&&Pe(Mf)),I===e&&(i.substr(S,7).toLowerCase()===fh?(I=i.substr(S,7),S+=7):(I=e,we===0&&Pe(ph)))),I!==e&&(Me=x,I=dh()),x=I,x===e&&(x=S,i.substr(S,11).toLowerCase()===Du?(I=i.substr(S,11),S+=11):(I=e,we===0&&Pe(Lu)),I===e&&(i.substr(S,10).toLowerCase()===hh?(I=i.substr(S,10),S+=10):(I=e,we===0&&Pe(gh))),I!==e&&(Me=x,I=tc()),x=I,x===e&&(x=S,i.substr(S,5).toLowerCase()===_f?(I=i.substr(S,5),S+=5):(I=e,we===0&&Pe(mh)),I!==e&&(Me=x,I=yh()),x=I,x===e&&(x=S,i.substr(S,5).toLowerCase()===vh?(I=i.substr(S,5),S+=5):(I=e,we===0&&Pe(bh)),I!==e&&(Me=x,I=Ch()),x=I))),Te[Z]={nextPos:S,result:x},x)}function gc(){var x,I,Z,q,X,le,Ce=S*34+14,Ie=Te[Ce];return Ie?(S=Ie.nextPos,Ie.result):(x=S,i.charCodeAt(S)===40?(I=jf,S++):(I=e,we===0&&Pe(Nf)),I!==e?(Z=tt(),Z!==e?(q=zi(),q!==e?(X=tt(),X!==e?(i.charCodeAt(S)===41?(le=qf,S++):(le=e,we===0&&Pe(Bf)),le===e&&(le=null),le!==e?(Me=x,I=wh(q),x=I):(S=x,x=e)):(S=x,x=e)):(S=x,x=e)):(S=x,x=e)):(S=x,x=e),x===e&&(x=tg(),x===e&&(x=ng(),x===e&&(x=vp(),x===e&&(x=og())))),Te[Ce]={nextPos:S,result:x},x)}function tg(){var x,I,Z,q,X,le=S*34+15,Ce=Te[le];return Ce?(S=Ce.nextPos,Ce.result):(x=S,I=Cp(),I!==e?(i.charCodeAt(S)===40?(Z=jf,S++):(Z=e,we===0&&Pe(Nf)),Z!==e?(q=bp(),q!==e?(i.charCodeAt(S)===41?(X=qf,S++):(X=e,we===0&&Pe(Bf)),X===e&&(X=null),X!==e?(Me=x,I=Ph(I,q),x=I):(S=x,x=e)):(S=x,x=e)):(S=x,x=e)):(S=x,x=e),Te[le]={nextPos:S,result:x},x)}function ng(){var x,I,Z,q,X=S*34+16,le=Te[X];return le?(S=le.nextPos,le.result):(x=S,i.charCodeAt(S)===33?(I=xh,S++):(I=e,we===0&&Pe(Pr)),I===e&&(i.substr(S,6).toLowerCase()===Vh?(I=i.substr(S,6),S+=6):(I=e,we===0&&Pe(Sh))),I!==e?(Z=tt(),Z!==e?(q=zi(),q!==e?(Me=x,I=Vo(q),x=I):(S=x,x=e)):(S=x,x=e)):(S=x,x=e),x===e&&(x=S,I=vp(),I!==e?(Z=tt(),Z!==e?(q=rg(),q!==e?(Me=x,I=Ke(I,q),x=I):(S=x,x=e)):(S=x,x=e)):(S=x,x=e)),Te[X]={nextPos:S,result:x},x)}function rg(){var x,I,Z=S*34+17,q=Te[Z];return q?(S=q.nextPos,q.result):(x=S,i.substr(S,5).toLowerCase()===Eh?(I=i.substr(S,5),S+=5):(I=e,we===0&&Pe(jn)),I!==e&&(Me=x,I=rn()),x=I,x===e&&(x=S,i.substr(S,8).toLowerCase()===Oh?(I=i.substr(S,8),S+=8):(I=e,we===0&&Pe(Hi)),I!==e&&(Me=x,I=Th()),x=I),Te[Z]={nextPos:S,result:x},x)}function vp(){var x,I,Z,q,X,le=S*34+18,Ce=Te[le];return Ce?(S=Ce.nextPos,Ce.result):(x=S,I=tt(),I!==e?(i.substr(S,9)===Ff?(Z=Ff,S+=9):(Z=e,we===0&&Pe(Ih)),Z===e&&(i.substr(S,4)===kf?(Z=kf,S+=4):(Z=e,we===0&&Pe(Rh))),Z!==e?(Me=x,I=nc(),x=I):(S=x,x=e)):(S=x,x=e),x===e&&(x=S,I=tt(),I!==e?(Z=ig(),Z!==e?(Me=x,I=Ah(Z),x=I):(S=x,x=e)):(S=x,x=e),x===e&&(x=S,I=tt(),I!==e?(i.charCodeAt(S)===123?(Z=hi,S++):(Z=e,we===0&&Pe(Qf)),Z!==e?(q=lg(),q!==e?(i.charCodeAt(S)===125?(X=Mu,S++):(X=e,we===0&&Pe($t)),X!==e?(Me=x,I=Kt(q),x=I):(S=x,x=e)):(S=x,x=e)):(S=x,x=e)):(S=x,x=e))),Te[le]={nextPos:S,result:x},x)}function ig(){var x,I,Z,q,X=S*34+19,le=Te[X];return le?(S=le.nextPos,le.result):(x=S,I=sg(),I!==e&&(Me=x,I=_u(I)),x=I,x===e&&(x=S,I=ag(),I!==e&&(Me=x,I=_u(I)),x=I,x===e&&(x=S,I=Cp(),I!==e&&(Me=x,I=_u(I)),x=I,x===e&&(x=S,i.substr(S,2)===Hf?(I=Hf,S+=2):(I=e,we===0&&Pe(Dh)),I!==e&&(Me=x,I=zf()),x=I,x===e&&(x=S,i.substr(S,2)===Uf?(I=Uf,S+=2):(I=e,we===0&&Pe(Lh)),I!==e&&(Me=x,I=zf()),x=I,x===e&&(x=S,i.charCodeAt(S)===39?(I=Wf,S++):(I=e,we===0&&Pe(rc)),I!==e?(Z=Hu(),Z!==e?(i.charCodeAt(S)===39?(q=Wf,S++):(q=e,we===0&&Pe(rc)),q!==e?(Me=x,I=Vs(Z),x=I):(S=x,x=e)):(S=x,x=e)):(S=x,x=e),x===e&&(x=S,i.charCodeAt(S)===34?(I=ju,S++):(I=e,we===0&&Pe($f)),I!==e?(Z=Hu(),Z!==e?(i.charCodeAt(S)===34?(q=ju,S++):(q=e,we===0&&Pe($f)),q!==e?(Me=x,I=Vs(Z),x=I):(S=x,x=e)):(S=x,x=e)):(S=x,x=e))))))),Te[X]={nextPos:S,result:x},x)}function og(){var x,I,Z,q,X=S*34+20,le=Te[X];return le?(S=le.nextPos,le.result):(x=S,i.charCodeAt(S)===91?(I=Gf,S++):(I=e,we===0&&Pe(Nu)),I!==e?(Z=bp(),Z!==e?(i.charCodeAt(S)===93?(q=$n,S++):(q=e,we===0&&Pe(Ss)),q!==e?(Me=x,I=Mh(Z),x=I):(S=x,x=e)):(S=x,x=e)):(S=x,x=e),Te[X]={nextPos:S,result:x},x)}function bp(){var x,I,Z,q,X,le,Ce,Ie,wt=S*34+21,Tt=Te[wt];if(Tt)return S=Tt.nextPos,Tt.result;if(x=S,I=zi(),I===e&&(I=null),I!==e){for(Z=[],q=S,X=tt(),X!==e?(i.charCodeAt(S)===44?(le=Jf,S++):(le=e,we===0&&Pe(Zf)),le!==e?(Ce=tt(),Ce!==e?(Ie=zi(),Ie!==e?(X=[X,le,Ce,Ie],q=X):(S=q,q=e)):(S=q,q=e)):(S=q,q=e)):(S=q,q=e);q!==e;)Z.push(q),q=S,X=tt(),X!==e?(i.charCodeAt(S)===44?(le=Jf,S++):(le=e,we===0&&Pe(Zf)),le!==e?(Ce=tt(),Ce!==e?(Ie=zi(),Ie!==e?(X=[X,le,Ce,Ie],q=X):(S=q,q=e)):(S=q,q=e)):(S=q,q=e)):(S=q,q=e);Z!==e?(Me=x,I=_h(I,Z),x=I):(S=x,x=e)}else S=x,x=e;return Te[wt]={nextPos:S,result:x},x}function sg(){var x,I,Z=S*34+22,q=Te[Z];return q?(S=q.nextPos,q.result):(x=S,i.substr(S,4).toLowerCase()===jh?(I=i.substr(S,4),S+=4):(I=e,we===0&&Pe(Kf)),I!==e&&(Me=x,I=gi()),x=I,x===e&&(x=S,i.substr(S,5).toLowerCase()===et?(I=i.substr(S,5),S+=5):(I=e,we===0&&Pe(Yf)),I!==e&&(Me=x,I=ar()),x=I),Te[Z]={nextPos:S,result:x},x)}function ag(){var x,I,Z,q=S*34+23,X=Te[q];return X?(S=X.nextPos,X.result):(x=S,i.substr(S,2)===ic?(I=ic,S+=2):(I=e,we===0&&Pe(Nh)),I!==e?(Z=Es(),Z!==e?(Me=x,I=Ot(),x=I):(S=x,x=e)):(S=x,x=e),x===e&&(x=S,qh.test(i.charAt(S))?(I=i.charAt(S),S++):(I=e,we===0&&Pe(Xf)),I===e&&(I=null),I!==e?(Z=ug(),Z!==e?(Me=x,I=qu(I,Z),x=I):(S=x,x=e)):(S=x,x=e)),Te[q]={nextPos:S,result:x},x)}function ug(){var x,I,Z,q,X=S*34+24,le=Te[X];return le?(S=le.nextPos,le.result):(x=S,I=Es(),I!==e?(i.charCodeAt(S)===46?(Z=Bh,S++):(Z=e,we===0&&Pe(Fh)),Z!==e?(q=Es(),q!==e?(Me=x,I=kh(),x=I):(S=x,x=e)):(S=x,x=e)):(S=x,x=e),x===e&&(x=S,I=cg(),I!==e?(Z=Es(),Z===e&&(Z=null),Z!==e?(Me=x,I=Qh(),x=I):(S=x,x=e)):(S=x,x=e),x===e&&(x=S,i.charCodeAt(S)===48?(I=Hh,S++):(I=e,we===0&&Pe(zh)),I!==e&&(Me=x,I=Uh()),x=I)),Te[X]={nextPos:S,result:x},x)}function lg(){var x,I,Z,q=S*34+25,X=Te[q];if(X)return S=X.nextPos,X.result;if(x=S,I=[],Z=yc(),Z!==e)for(;Z!==e;)I.push(Z),Z=yc();else I=e;return I!==e&&(Me=x,I=ep(I)),x=I,Te[q]={nextPos:S,result:x},x}function Hu(){var x,I,Z,q=S*34+26,X=Te[q];if(X)return S=X.nextPos,X.result;if(x=S,I=[],Z=mc(),Z!==e)for(;Z!==e;)I.push(Z),Z=mc();else I=e;return I!==e&&(Me=x,I=ep(I)),x=I,Te[q]={nextPos:S,result:x},x}function mc(){var x,I,Z=S*34+27,q=Te[Z];return q?(S=q.nextPos,q.result):(x=S,i.substr(S,2)===tp?(I=tp,S+=2):(I=e,we===0&&Pe(Wh)),I!==e&&(Me=x,I=$h()),x=I,x===e&&(x=S,i.substr(S,2)===np?(I=np,S+=2):(I=e,we===0&&Pe(Gh)),I!==e&&(Me=x,I=oc()),x=I,x===e&&(x=S,Jh.test(i.charAt(S))?(I=i.charAt(S),S++):(I=e,we===0&&Pe(sc)),I!==e&&(Me=x,I=ac()),x=I)),Te[Z]={nextPos:S,result:x},x)}function yc(){var x,I,Z=S*34+28,q=Te[Z];return q?(S=q.nextPos,q.result):(x=S,Zh.test(i.charAt(S))?(I=i.charAt(S),S++):(I=e,we===0&&Pe(Kh)),I!==e&&(Me=x,I=ac()),x=I,Te[Z]={nextPos:S,result:x},x)}function Cp(){var x,I,Z,q,X,le,Ce,Ie=S*34+29,wt=Te[Ie];if(wt)return S=wt.nextPos,wt.result;if(x=S,I=So(),I!==e){if(Z=[],q=S,X=Es(),X!==e){for(le=[],Ce=So();Ce!==e;)le.push(Ce),Ce=So();le!==e?(X=[X,le],q=X):(S=q,q=e)}else S=q,q=e;for(;q!==e;)if(Z.push(q),q=S,X=Es(),X!==e){for(le=[],Ce=So();Ce!==e;)le.push(Ce),Ce=So();le!==e?(X=[X,le],q=X):(S=q,q=e)}else S=q,q=e;Z!==e?(Me=x,I=ac(),x=I):(S=x,x=e)}else S=x,x=e;return Te[Ie]={nextPos:S,result:x},x}function Es(){var x,I,Z=S*34+30,q=Te[Z];if(q)return S=q.nextPos,q.result;if(x=[],un.test(i.charAt(S))?(I=i.charAt(S),S++):(I=e,we===0&&Pe(Dn)),I!==e)for(;I!==e;)x.push(I),un.test(i.charAt(S))?(I=i.charAt(S),S++):(I=e,we===0&&Pe(Dn));else x=e;return Te[Z]={nextPos:S,result:x},x}function cg(){var x,I,Z=S*34+31,q=Te[Z];if(q)return S=q.nextPos,q.result;if(x=[],rp.test(i.charAt(S))?(I=i.charAt(S),S++):(I=e,we===0&&Pe(ip)),I!==e)for(;I!==e;)x.push(I),rp.test(i.charAt(S))?(I=i.charAt(S),S++):(I=e,we===0&&Pe(ip));else x=e;return Te[Z]={nextPos:S,result:x},x}function So(){var x,I,Z=S*34+32,q=Te[Z];if(q)return S=q.nextPos,q.result;if(x=[],op.test(i.charAt(S))?(I=i.charAt(S),S++):(I=e,we===0&&Pe(uc)),I!==e)for(;I!==e;)x.push(I),op.test(i.charAt(S))?(I=i.charAt(S),S++):(I=e,we===0&&Pe(uc));else x=e;return Te[Z]={nextPos:S,result:x},x}function tt(){var x,I,Z=S*34+33,q=Te[Z];if(q)return S=q.nextPos,q.result;for(we++,x=[],sp.test(i.charAt(S))?(I=i.charAt(S),S++):(I=e,we===0&&Pe(ap));I!==e;)x.push(I),sp.test(i.charAt(S))?(I=i.charAt(S),S++):(I=e,we===0&&Pe(ap));return we--,x===e&&(I=e,we===0&&Pe(Yh)),Te[Z]={nextPos:S,result:x},x}function wp(x,I,Z){return Z===void 0&&(Z=!1),I.reduce(function(q,X){return new Wi(X[1],q,X[3],Z)},x)}function fg(x){return[].concat.apply([],x)}if(ku=r(),ku!==e&&S===i.length)return ku;throw ku!==e&&S<i.length&&Pe(Xh()),cp(Fu,Qr<i.length?i.charAt(Qr):null,Qr<i.length?lp(Qr,Qr+1):lp(Qr,Qr))}var Sa=Va,Ms=function(){function i(t,e){this.at=t,this.code=e}return i}(),_o=function(){function i(){}return i.prototype.patchExpression=function(t){return t.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},i.prototype.createCondition=function(t){return this.parseExpression(t)},i.prototype.parseExpression=function(t){try{var e=i.parserCache[t];return e===void 0&&(e=Sa(this.patchExpression(t)),e.hasAsyncFunction()||(i.parserCache[t]=e)),e}catch(n){n instanceof Mo&&(this.conditionError=new Ms(n.location.start.offset,n.message))}},Object.defineProperty(i.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),i.parserCache={},i}(),_s=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),js=function(){function i(t,e,n,r,o){this.operand=t,this.id=e,this.onComplete=n,this.processValue=new ke,this.processValue.values=r,this.processValue.properties=o}return i.prototype.run=function(t){var e=this;if(!t)return this.runValues();this.processValue.values=m.createCopy(this.processValue.values),this.processValue.onCompleteAsyncFunc=function(r){var o=e.getAsyncItemByOperand(r,e.asyncFuncList);o&&e.doAsyncFunctionReady(o)},this.asyncFuncList=new Array,this.operand.addToAsyncList(this.asyncFuncList);for(var n=0;n<this.asyncFuncList.length;n++)this.runAsyncItem(this.asyncFuncList[n]);return!1},i.prototype.getAsyncItemByOperand=function(t,e){if(!Array.isArray(e))return null;for(var n=0;n<e.length;n++){if(e[n].operand===t)return e[n];var r=this.getAsyncItemByOperand(t,e[n].children);if(r)return r}return null},i.prototype.runAsyncItem=function(t){var e=this;t.children?t.children.forEach(function(n){return e.runAsyncItem(n)}):this.runAsyncItemCore(t)},i.prototype.runAsyncItemCore=function(t){t.operand?t.operand.evaluate(this.processValue):this.doAsyncFunctionReady(t)},i.prototype.doAsyncFunctionReady=function(t){if(t.parent&&this.isAsyncChildrenReady(t)){this.runAsyncItemCore(t.parent);return}for(var e=0;e<this.asyncFuncList.length;e++)if(!this.isAsyncFuncReady(this.asyncFuncList[e]))return;this.runValues()},i.prototype.isAsyncFuncReady=function(t){return t.operand&&!t.operand.isReady(this.processValue)?!1:this.isAsyncChildrenReady(t)},i.prototype.isAsyncChildrenReady=function(t){if(t.children){for(var e=0;e<t.children.length;e++)if(!this.isAsyncFuncReady(t.children[e]))return!1}return!0},i.prototype.runValues=function(){var t=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(t,this.id),t},i}(),Ns=function(){function i(t){this.parser=new _o,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(t)}return Object.defineProperty(i.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),i.prototype.setExpression=function(t){this.expression!==t&&(this.expressionValue=t,this.operand=this.parser.parseExpression(t),this.hasFunctionValue=this.canRun()?this.operand.hasFunction():!1,this.isAsyncValue=this.hasFunction()?this.operand.hasAsyncFunction():!1)},i.prototype.getVariables=function(){if(!this.operand)return[];var t=[];return this.operand.setVariables(t),t},i.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(i.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),i.prototype.canRun=function(){return!!this.operand},i.prototype.run=function(t,e,n){if(e===void 0&&(e=null),!this.operand)return this.expression&&mt.warn("Invalid expression: "+this.expression),null;var r=new js(this.operand,n,this.onComplete,t,e);return r.run(this.isAsync)},i.createExpressionExecutor=function(t){return new i(t)},i}(),qs=function(){function i(t){this.expression=t}return Object.defineProperty(i.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(t){var e=this;this.expressionExecutor&&t===this.expression||(this.expressionExecutor=Ns.createExpressionExecutor(t),this.expressionExecutor.onComplete=function(n,r){e.doOnComplete(n,r)},this.variables=void 0,this.containsFunc=void 0)},enumerable:!1,configurable:!0}),i.prototype.getVariables=function(){return this.variables===void 0&&(this.variables=this.expressionExecutor.getVariables()),this.variables},i.prototype.hasFunction=function(){return this.containsFunc===void 0&&(this.containsFunc=this.expressionExecutor.hasFunction()),this.containsFunc},Object.defineProperty(i.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),i.prototype.canRun=function(){return this.expressionExecutor.canRun()},i.prototype.runCore=function(t,e){e===void 0&&(e=null);var n=i.IdRunnerCounter++;return this.onBeforeAsyncRun&&this.isAsync&&this.onBeforeAsyncRun(n),this.expressionExecutor.run(t,e,n)},i.prototype.doOnComplete=function(t,e){this.onAfterAsyncRun&&this.isAsync&&this.onAfterAsyncRun(e)},i.IdRunnerCounter=1,i}(),pn=function(i){_s(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.run=function(e,n){return n===void 0&&(n=null),this.runCore(e,n)==!0},t.prototype.doOnComplete=function(e,n){this.onRunComplete&&this.onRunComplete(e==!0),i.prototype.doOnComplete.call(this,e,n)},t}(qs),Ir=function(i){_s(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.run=function(e,n){return n===void 0&&(n=null),this.runCore(e,n)},t.prototype.doOnComplete=function(e,n){this.onRunComplete&&this.onRunComplete(e),i.prototype.doOnComplete.call(this,e,n)},t}(qs),Ku=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Bs=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},jo=function(){function i(t){this.obj=t,this.properties=null,this.values=null}return i.prototype.getType=function(){return"bindings"},i.prototype.getNames=function(){var t=[];this.fillProperties();for(var e=0;e<this.properties.length;e++)this.properties[e].isVisible("",this.obj)&&t.push(this.properties[e].name);return t},i.prototype.getProperties=function(){var t=[];this.fillProperties();for(var e=0;e<this.properties.length;e++)t.push(this.properties[e]);return t},i.prototype.setBinding=function(t,e){this.values||(this.values={});var n=this.getJson();n!==e&&(e?this.values[t]=e:(delete this.values[t],Object.keys(this.values).length==0&&(this.values=null)),this.onChangedJSON(n))},i.prototype.clearBinding=function(t){this.setBinding(t,"")},i.prototype.isEmpty=function(){if(!this.values)return!0;for(var t in this.values)return!1;return!0},i.prototype.getValueNameByPropertyName=function(t){if(this.values)return this.values[t]},i.prototype.getPropertiesByValueName=function(t){if(!this.values)return[];var e=[];for(var n in this.values)this.values[n]==t&&e.push(n);return e},i.prototype.getJson=function(){if(!this.isEmpty()){var t={};for(var e in this.values)t[e]=this.values[e];return t}},i.prototype.setJson=function(t,e){var n=this.getJson();if(this.values=null,t){this.values={};for(var r in t)this.values[r]=t[r]}e||this.onChangedJSON(n)},i.prototype.fillProperties=function(){if(this.properties===null){this.properties=[];for(var t=G.getPropertiesByObj(this.obj),e=0;e<t.length;e++)t[e].isBindable&&this.properties.push(t[e])}},i.prototype.onChangedJSON=function(t){this.obj&&this.obj.onBindingChanged(t,this.getJson())},i}(),Ea=function(){function i(t,e,n){this.currentDependency=t,this.target=e,this.property=n,this.dependencies=[],this.id=""+ ++i.DependenciesCount}return i.prototype.addDependency=function(t,e){this.target===t&&this.property===e||this.dependencies.some(function(n){return n.obj===t&&n.prop===e})||(this.dependencies.push({obj:t,prop:e,id:this.id}),t.registerPropertyChangedHandlers([e],this.currentDependency,this.id))},i.prototype.dispose=function(){this.dependencies.forEach(function(t){t.obj.unregisterPropertyChangedHandlers([t.prop],t.id)})},i.DependenciesCount=0,i}(),Lt=function(){function i(t){this._updater=t,this.dependencies=void 0,this.type=i.ComputedUpdaterType}return Object.defineProperty(i.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),i.prototype.setDependencies=function(t){this.clearDependencies(),this.dependencies=t},i.prototype.getDependencies=function(){return this.dependencies},i.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},i.prototype.dispose=function(){this.clearDependencies(),this._updater=void 0},i.ComputedUpdaterType="__dependency_computed",i}(),Je=function(){function i(){this.dependencies={},this.propertyHash=i.createPropertiesHash(),this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.animationAllowedLock=0,this.supportOnElementRerenderedEvent=!0,this.onElementRerenderedEventEnabled=!1,this._onElementRerendered=new Tn,this.bindingsValue=new jo(this),rt.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return i.finishCollectDependencies=function(){var t=i.currentDependencis;return i.currentDependencis=void 0,t},i.startCollectDependencies=function(t,e,n){if(i.currentDependencis!==void 0)throw new Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");i.currentDependencis=new Ea(t,e,n)},i.collectDependency=function(t,e){i.currentDependencis!==void 0&&i.currentDependencis.addDependency(t,e)},Object.defineProperty(i,"commentSuffix",{get:function(){return z.commentSuffix},set:function(t){z.commentSuffix=t},enumerable:!1,configurable:!0}),Object.defineProperty(i,"commentPrefix",{get:function(){return i.commentSuffix},set:function(t){i.commentSuffix=t},enumerable:!1,configurable:!0}),i.prototype.isValueEmpty=function(t,e){return e===void 0&&(e=!0),e&&(t=this.trimValue(t)),m.isValueEmpty(t)},i.prototype.equals=function(t){return!t||this.isDisposed||t.isDisposed||this.getType()!=t.getType()?!1:this.equalsCore(t)},i.prototype.equalsCore=function(t){return this.name!==t.name?!1:m.isTwoValueEquals(this.toJSON(),t.toJSON(),!1,!0,!1)},i.prototype.trimValue=function(t){return t&&(typeof t=="string"||t instanceof String)?t.trim():t},i.prototype.isPropertyEmpty=function(t){return t!==""&&this.isValueEmpty(t)},i.createPropertiesHash=function(){return{}},i.prototype.dispose=function(){for(var t=this,e=0;e<this.eventList.length;e++)this.eventList[e].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0,Object.keys(this.dependencies).forEach(function(n){return t.dependencies[n].dispose()}),Object.keys(this.propertyHash).forEach(function(n){var r=t.getPropertyValueCore(t.propertyHash,n);r&&r.type==Lt.ComputedUpdaterType&&r.dispose()})},Object.defineProperty(i.prototype,"isDisposed",{get:function(){return this.isDisposedValue===!0},enumerable:!1,configurable:!0}),i.prototype.addEvent=function(){var t=new Tn;return this.eventList.push(t),t},i.prototype.onBaseCreating=function(){},i.prototype.getType=function(){return"base"},i.prototype.isDescendantOf=function(t){return G.isDescendantOf(this.getType(),t)},i.prototype.getSurvey=function(t){return null},Object.defineProperty(i.prototype,"isDesignMode",{get:function(){var t=this.getSurvey();return!!t&&t.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDesignModeV2",{get:function(){return z.supportCreatorV2&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),i.prototype.checkBindings=function(t,e){},i.prototype.updateBindings=function(t,e){var n=this.bindings.getValueNameByPropertyName(t);n&&this.updateBindingValue(n,e)},i.prototype.updateBindingValue=function(t,e){},i.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(i.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),i.prototype.getIsLoadingFromJson=function(){return this.loadingOwner&&this.loadingOwner.isLoadingFromJson?!0:this.isLoadingFromJsonValue},i.prototype.startLoadingFromJson=function(t){this.isLoadingFromJsonValue=!0,this.jsonObj=t},i.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},i.prototype.toJSON=function(t){return new Vt().toJsonObject(this,t)},i.prototype.fromJSON=function(t,e){new Vt().toObject(t,this,e),this.onSurveyLoad()},i.prototype.onSurveyLoad=function(){},i.prototype.clone=function(){var t=G.createClass(this.getType());return t.fromJSON(this.toJSON()),t},i.prototype.getPropertyByName=function(t){var e=this.getType();return(!this.classMetaData||this.classMetaData.name!==e)&&(this.classMetaData=G.findClass(e)),this.classMetaData?this.classMetaData.findProperty(t):null},i.prototype.isPropertyVisible=function(t){var e=this.getPropertyByName(t);return e?e.isVisible("",this):!1},i.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},i.prototype.getProgressInfo=function(){return i.createProgressInfo()},i.prototype.localeChanged=function(){},i.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo){var e=this.arraysInfo[t];if(e&&e.isItemValues){var n=this.getPropertyValue(t);n&&i.itemValueLocStrChanged&&i.itemValueLocStrChanged(n)}}if(this.localizableStrings)for(var t in this.localizableStrings){var e=this.getLocalizableString(t);e&&e.strChanged()}},i.prototype.getPropertyValue=function(t,e,n){var r=this.getPropertyValueWithoutDefault(t);if(this.isPropertyEmpty(r)){var o=this.localizableStrings?this.localizableStrings[t]:void 0;if(o)return o.text;if(e!=null)return e;if(n){var s=n();if(s!==void 0)if(Array.isArray(s)){var c=this.createNewArray(t);return c.splice.apply(c,Bs([0,0],s)),c}else return this.setPropertyValueDirectly(t,s),s}var y=this.getDefaultPropertyValue(t);if(y!==void 0)return y}return r},i.prototype.getDefaultPropertyValue=function(t){var e=this.getPropertyByName(t);if(!(!e||e.isCustom&&this.isCreating)){if(e.defaultValueFunc)return e.defaultValueFunc(this);var n=e.getDefaultValue(this);if(!this.isPropertyEmpty(n)&&!Array.isArray(n))return n;var r=this.localizableStrings?this.localizableStrings[t]:void 0;if(r&&r.localizationName)return this.getLocalizationString(r.localizationName);if(e.type=="boolean"||e.type=="switch")return!1;if(e.isCustom&&e.onGetValue)return e.onGetValue(this)}},i.prototype.hasDefaultPropertyValue=function(t){return this.getDefaultPropertyValue(t)!==void 0},i.prototype.resetPropertyValue=function(t){var e=this.localizableStrings?this.localizableStrings[t]:void 0;e?(this.setLocalizableStringText(t,void 0),e.clear()):this.setPropertyValue(t,void 0)},i.prototype.getPropertyValueWithoutDefault=function(t){return this.getPropertyValueCore(this.propertyHash,t)},i.prototype.getPropertyValueCore=function(t,e){return this.isLoadingFromJson||i.collectDependency(this,e),this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(t,e):t[e]},i.prototype.geValueFromHash=function(){return this.propertyHash.value},i.prototype.setPropertyValueCore=function(t,e,n){this.setPropertyValueCoreHandler?this.isDisposedValue?mt.disposedObjectChangedProperty(e,this.getType()):this.setPropertyValueCoreHandler(t,e,n):t[e]=n},Object.defineProperty(i.prototype,"isEditingSurveyElement",{get:function(){var t=this.getSurvey();return!!t&&t.isEditingSurveyElement},enumerable:!1,configurable:!0}),i.prototype.iteratePropertiesHash=function(t){var e=this,n=[];for(var r in this.propertyHash)r==="value"&&this.isEditingSurveyElement&&Array.isArray(this.value)||n.push(r);n.forEach(function(o){return t(e.propertyHash,o)})},i.prototype.setPropertyValue=function(t,e){if(!this.isLoadingFromJson){var n=this.getPropertyByName(t);n&&(e=n.settingValue(this,e))}var r=this.getPropertyValue(t);r&&Array.isArray(r)&&this.arraysInfo&&(!e||Array.isArray(e))?this.isTwoValueEquals(r,e)||this.setArrayPropertyDirectly(t,e):(this.setPropertyValueDirectly(t,e),!this.isDisposedValue&&!this.isTwoValueEquals(r,e)&&this.propertyValueChanged(t,r,e))},i.prototype.setArrayPropertyDirectly=function(t,e,n){n===void 0&&(n=!0);var r=this.arraysInfo[t];this.setArray(t,this.getPropertyValue(t),e,r?r.isItemValues:!1,r?n&&r.onPush:null)},i.prototype.setPropertyValueDirectly=function(t,e){this.setPropertyValueCore(this.propertyHash,t,e)},i.prototype.clearPropertyValue=function(t){this.setPropertyValueCore(this.propertyHash,t,null),delete this.propertyHash[t]},i.prototype.onPropertyValueChangedCallback=function(t,e,n,r,o){},i.prototype.itemValuePropertyChanged=function(t,e,n,r){this.onItemValuePropertyChanged.fire(this,{obj:t,name:e,oldValue:n,newValue:r,propertyName:t.ownerPropertyName})},i.prototype.onPropertyValueChanged=function(t,e,n){},i.prototype.propertyValueChanged=function(t,e,n,r,o){if(!this.isLoadingFromJson&&(this.updateBindings(t,n),this.onPropertyValueChanged(t,e,n),this.onPropertyChanged.fire(this,{name:t,oldValue:e,newValue:n,arrayChanges:r,target:o}),this.doPropertyValueChangedCallback(t,e,n,r,this),this.checkConditionPropertyChanged(t),!!this.onPropChangeFunctions))for(var s=0;s<this.onPropChangeFunctions.length;s++)this.onPropChangeFunctions[s].name==t&&this.onPropChangeFunctions[s].func(n,r)},i.prototype.onBindingChanged=function(t,e){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",t,e)},Object.defineProperty(i.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),i.prototype.doPropertyValueChangedCallback=function(t,e,n,r,o){var s=function(y){y&&y.onPropertyValueChangedCallback&&y.onPropertyValueChangedCallback(t,e,n,o,r)};if(this.isInternal){s(this);return}o||(o=this);var c=this.getSurvey();c||(c=this),s(c),c!==this&&s(this)},i.prototype.addExpressionProperty=function(t,e,n){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[t]={onExecute:e,canRun:n}},i.prototype.getDataFilteredValues=function(){return{}},i.prototype.getDataFilteredProperties=function(){return{}},i.prototype.runConditionCore=function(t,e){if(this.expressionInfo)for(var n in this.expressionInfo)this.runConditionItemCore(n,t,e)},i.prototype.canRunConditions=function(){return!this.isDesignMode},i.prototype.checkConditionPropertyChanged=function(t){!this.expressionInfo||!this.expressionInfo[t]||this.canRunConditions()&&this.runConditionItemCore(t,this.getDataFilteredValues(),this.getDataFilteredProperties())},i.prototype.runConditionItemCore=function(t,e,n){var r=this,o=this.expressionInfo[t],s=this.getPropertyValue(t);s&&(o.canRun&&!o.canRun(this)||(o.runner||(o.runner=this.createExpressionRunner(s),o.runner.onRunComplete=function(c){o.onExecute(r,c)}),o.runner.expression=s,o.runner.run(e,n)))},i.prototype.doBeforeAsynRun=function(t){this.asynExpressionHash||(this.asynExpressionHash={});var e=!this.isAsyncExpressionRunning;this.asynExpressionHash[t]=!0,e&&this.onAsyncRunningChanged()},i.prototype.doAfterAsynRun=function(t){this.asynExpressionHash&&(delete this.asynExpressionHash[t],this.isAsyncExpressionRunning||this.onAsyncRunningChanged())},i.prototype.onAsyncRunningChanged=function(){},Object.defineProperty(i.prototype,"isAsyncExpressionRunning",{get:function(){return!!this.asynExpressionHash&&Object.keys(this.asynExpressionHash).length>0},enumerable:!1,configurable:!0}),i.prototype.createExpressionRunner=function(t){var e=this,n=new Ir(t);return n.onBeforeAsyncRun=function(r){e.doBeforeAsynRun(r)},n.onAfterAsyncRun=function(r){e.doAfterAsynRun(r)},n},i.prototype.registerPropertyChangedHandlers=function(t,e,n){n===void 0&&(n=null);for(var r=0;r<t.length;r++)this.registerFunctionOnPropertyValueChanged(t[r],e,n)},i.prototype.unregisterPropertyChangedHandlers=function(t,e){e===void 0&&(e=null);for(var n=0;n<t.length;n++)this.unRegisterFunctionOnPropertyValueChanged(t[n],e)},i.prototype.registerFunctionOnPropertyValueChanged=function(t,e,n){if(n===void 0&&(n=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),n)for(var r=0;r<this.onPropChangeFunctions.length;r++){var o=this.onPropChangeFunctions[r];if(o.name==t&&o.key==n){o.func=e;return}}this.onPropChangeFunctions.push({name:t,func:e,key:n})},i.prototype.registerFunctionOnPropertiesValueChanged=function(t,e,n){n===void 0&&(n=null),this.registerPropertyChangedHandlers(t,e,n)},i.prototype.unRegisterFunctionOnPropertyValueChanged=function(t,e){if(e===void 0&&(e=null),!!this.onPropChangeFunctions)for(var n=0;n<this.onPropChangeFunctions.length;n++){var r=this.onPropChangeFunctions[n];if(r.name==t&&r.key==e){this.onPropChangeFunctions.splice(n,1);return}}},i.prototype.unRegisterFunctionOnPropertiesValueChanged=function(t,e){e===void 0&&(e=null),this.unregisterPropertyChangedHandlers(t,e)},i.prototype.createCustomLocalizableObj=function(t){var e=this.getLocalizableString(t);return e||this.createLocalizableString(t,this,!1,!0)},i.prototype.getLocale=function(){var t=this.getSurvey();return t?t.getLocale():""},i.prototype.getLocalizationString=function(t){return ee(t,this.getLocale())},i.prototype.getLocalizationFormatString=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=this.getLocalizationString(t);return!r||!r.format?"":r.format.apply(r,e)},i.prototype.createLocalizableString=function(t,e,n,r){var o=this;n===void 0&&(n=!1),r===void 0&&(r=!1);var s=void 0;r&&(s=r===!0?t:r);var c=new ut(e,n,t,s);c.onStrChanged=function(w,N){o.propertyValueChanged(t,w,N)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[t]=c;var y=this.getPropertyByName(t);return c.disableLocalization=y&&y.isLocalizable===!1,c},i.prototype.getLocalizableString=function(t){return this.localizableStrings?this.localizableStrings[t]:null},i.prototype.getLocalizableStringText=function(t,e){e===void 0&&(e=""),i.collectDependency(this,t);var n=this.getLocalizableString(t);if(!n)return"";var r=n.text;return r||e},i.prototype.setLocalizableStringText=function(t,e){var n=this.getLocalizableString(t);if(n){var r=n.text;r!=e&&(n.text=e)}},i.prototype.addUsedLocales=function(t){if(this.localizableStrings)for(var e in this.localizableStrings){var n=this.getLocalizableString(e);n&&this.AddLocStringToUsedLocales(n,t)}if(this.arraysInfo)for(var e in this.arraysInfo){var r=this.getPropertyByName(e);if(!(!r||!r.isSerializable)){var o=this.getPropertyValue(e);if(!(!o||!o.length))for(var s=0;s<o.length;s++){var n=o[s];n&&n.addUsedLocales&&n.addUsedLocales(t)}}}},i.prototype.searchText=function(t,e){var n=[];this.getSearchableLocalizedStrings(n);for(var r=0;r<n.length;r++)n[r].setFindText(t)&&e.push({element:this,str:n[r]})},i.prototype.getSearchableLocalizedStrings=function(t){if(this.localizableStrings){var e=[];this.getSearchableLocKeys(e);for(var n=0;n<e.length;n++){var r=this.getLocalizableString(e[n]);r&&t.push(r)}}if(this.arraysInfo){var o=[];this.getSearchableItemValueKeys(o);for(var n=0;n<o.length;n++){var s=this.getPropertyValue(o[n]);if(s)for(var c=0;c<s.length;c++)t.push(s[c].locText)}}},i.prototype.getSearchableLocKeys=function(t){},i.prototype.getSearchableItemValueKeys=function(t){},i.prototype.AddLocStringToUsedLocales=function(t,e){for(var n=t.getLocales(),r=0;r<n.length;r++)e.indexOf(n[r])<0&&e.push(n[r])},i.prototype.createItemValues=function(t){var e=this,n=this.createNewArray(t,function(r){if(r.locOwner=e,r.ownerPropertyName=t,typeof r.getSurvey=="function"){var o=r.getSurvey();o&&typeof o.makeReactive=="function"&&o.makeReactive(r)}});return this.arraysInfo[t].isItemValues=!0,n},i.prototype.notifyArrayChanged=function(t,e){t.onArrayChanged&&t.onArrayChanged(e)},i.prototype.createNewArrayCore=function(t){var e=null;return this.createArrayCoreHandler&&(e=this.createArrayCoreHandler(this.propertyHash,t)),e||(e=new Array,this.setPropertyValueCore(this.propertyHash,t,e)),e},i.prototype.ensureArray=function(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!(this.arraysInfo&&this.arraysInfo[t]))return this.createNewArray(t,e,n)},i.prototype.createNewArray=function(t,e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=this.createNewArrayCore(t);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[t]={onPush:e,isItemValues:!1};var o=this;return r.push=function(s){var c=Object.getPrototypeOf(r).push.call(r,s);if(!o.isDisposedValue){e&&e(s,r.length-1);var y=new Gr(r.length-1,0,[s],[]);o.propertyValueChanged(t,r,r,y),o.notifyArrayChanged(r,y)}return c},r.shift=function(){var s=Object.getPrototypeOf(r).shift.call(r);if(!o.isDisposedValue&&s){n&&n(s);var c=new Gr(r.length-1,1,[],[]);o.propertyValueChanged(t,r,r,c),o.notifyArrayChanged(r,c)}return s},r.unshift=function(s){var c=Object.getPrototypeOf(r).unshift.call(r,s);if(!o.isDisposedValue){e&&e(s,r.length-1);var y=new Gr(0,0,[s],[]);o.propertyValueChanged(t,r,r,y),o.notifyArrayChanged(r,y)}return c},r.pop=function(){var s=Object.getPrototypeOf(r).pop.call(r);if(!o.isDisposedValue){n&&n(s);var c=new Gr(r.length-1,1,[],[]);o.propertyValueChanged(t,r,r,c),o.notifyArrayChanged(r,c)}return s},r.splice=function(s,c){for(var y,w=[],N=2;N<arguments.length;N++)w[N-2]=arguments[N];s||(s=0),c||(c=0);var Q=(y=Object.getPrototypeOf(r).splice).call.apply(y,Bs([r,s,c],w));if(w||(w=[]),!o.isDisposedValue){if(n&&Q)for(var Y=0;Y<Q.length;Y++)n(Q[Y]);if(e)for(var Y=0;Y<w.length;Y++)e(w[Y],s+Y);var ce=new Gr(s,c,w,Q);o.propertyValueChanged(t,r,r,ce),o.notifyArrayChanged(r,ce)}return Q},r},i.prototype.getItemValueType=function(){},i.prototype.setArray=function(t,e,n,r,o){var s=[].concat(e);if(Object.getPrototypeOf(e).splice.call(e,0,e.length),n)for(var c=0;c<n.length;c++){var y=n[c];r&&i.createItemValue&&(y=i.createItemValue(y,this.getItemValueType())),Object.getPrototypeOf(e).push.call(e,y),o&&o(e[c])}var w=new Gr(0,s.length,e,s);this.propertyValueChanged(t,s,e,w),this.notifyArrayChanged(e,w)},i.prototype.isTwoValueEquals=function(t,e,n,r){return n===void 0&&(n=!1),r===void 0&&(r=!1),m.isTwoValueEquals(t,e,!1,!n,r)},i.copyObject=function(t,e){for(var n in e){var r=e[n];typeof r=="object"&&(r={},this.copyObject(r,e[n])),t[n]=r}},i.prototype.copyCssClasses=function(t,e){e&&(typeof e=="string"||e instanceof String?t.root=e:i.copyObject(t,e))},i.prototype.getValueInLowCase=function(t){return t&&typeof t=="string"?t.toLowerCase():t},i.prototype.getElementsInDesign=function(t){return[]},Object.defineProperty(i.prototype,"animationAllowed",{get:function(){return this.getIsAnimationAllowed()},enumerable:!1,configurable:!0}),i.prototype.getIsAnimationAllowed=function(){return z.animationEnabled&&this.animationAllowedLock>=0&&!this.isLoadingFromJson&&!this.isDisposed&&(!!this.onElementRerendered||!this.supportOnElementRerenderedEvent)},i.prototype.blockAnimations=function(){this.animationAllowedLock--},i.prototype.releaseAnimations=function(){this.animationAllowedLock++},i.prototype.enableOnElementRerenderedEvent=function(){this.onElementRerenderedEventEnabled=!0},i.prototype.disableOnElementRerenderedEvent=function(){var t;(t=this.onElementRerendered)===null||t===void 0||t.fire(this,{isCancel:!0}),this.onElementRerenderedEventEnabled=!1},Object.defineProperty(i.prototype,"onElementRerendered",{get:function(){return this.supportOnElementRerenderedEvent&&this.onElementRerenderedEventEnabled?this._onElementRerendered:void 0},enumerable:!1,configurable:!0}),i.prototype.afterRerender=function(){var t;(t=this.onElementRerendered)===null||t===void 0||t.fire(this,{isCancel:!1})},i.currentDependencis=void 0,i}(),Gr=function(){function i(t,e,n,r){this.index=t,this.deleteCount=e,this.itemsToAdd=n,this.deletedItems=r}return i}(),Gi=function(){function i(){}return Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),i.prototype.fireByCreatingOptions=function(t,e){if(this.callbacks){for(var n=0;n<this.callbacks.length;n++)if(this.callbacks[n](t,e()),!this.callbacks)return}},i.prototype.fire=function(t,e){if(this.callbacks){for(var n=[].concat(this.callbacks),r=0;r<n.length;r++)if(n[r](t,e),!this.callbacks)return}},i.prototype.clear=function(){this.callbacks=void 0},i.prototype.add=function(t){this.hasFunc(t)||(this.callbacks||(this.callbacks=new Array),this.callbacks.push(t),this.fireCallbackChanged())},i.prototype.remove=function(t){if(this.hasFunc(t)){var e=this.callbacks.indexOf(t,0);this.callbacks.splice(e,1),this.fireCallbackChanged()}},i.prototype.hasFunc=function(t){return this.callbacks==null?!1:this.callbacks.indexOf(t,0)>-1},i.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},i}(),Tn=function(i){Ku(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t}(Gi),Fs=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),No=function(){function i(t,e,n,r,o){var s=this;r===void 0&&(r=null),o===void 0&&(o=function(c){queueMicrotask?queueMicrotask(c):c()}),this.container=t,this.model=e,this.itemsSelector=n,this.dotsItemSize=r,this.delayedUpdateFunction=o,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.dotsIconClass=".sv-dots",this.iconClass=".sv-svg-icon",this.recalcMinDimensionConst=!0,this.getComputedStyle=function(c){return M.getComputedStyle(c)},this.model.updateCallback=function(c){c&&(s.isInitialized=!1),setTimeout(function(){s.process()},1)},typeof ResizeObserver<"u"&&(this.resizeObserver=new ResizeObserver(function(c){B.requestAnimationFrame(function(){s.process()})}),this.resizeObserver.observe(this.container.parentElement))}return i.prototype.getDimensions=function(t){return{scroll:t.scrollWidth,offset:t.offsetWidth}},i.prototype.getAvailableSpace=function(){var t=this.getComputedStyle(this.container),e=this.container.offsetWidth;return t.boxSizing==="border-box"&&(e-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)),e},i.prototype.calcItemSize=function(t){return t.offsetWidth||t.getBoundingClientRect().width},i.prototype.calcMinDimension=function(t,e){var n;if(e&&(!t.iconSize||t.iconSize==="auto")){var r=e.querySelector(this.iconClass);n=r&&this.calcItemSize(r)}else t.iconSize&&typeof t.iconSize=="number"&&this.recalcMinDimensionConst&&(n=t.iconSize);var o=n?n+2*this.paddingSizeConst:this.minDimensionConst;return t.canShrink?o+(t.needSeparator?this.separatorSize:0):t.maxDimension},i.prototype.calcItemsSizes=function(){var t=this;if(!(!this.container||this.isInitialized)){var e=this.model.actions,n=this.container.querySelectorAll(this.itemsSelector);(n||[]).forEach(function(r,o){var s=e[o];s&&t.calcActionDimensions(s,r)})}},i.prototype.calcActionDimensions=function(t,e){t.maxDimension=this.calcItemSize(e),t.minDimension=this.calcMinDimension(t,e)},Object.defineProperty(i.prototype,"isContainerVisible",{get:function(){return!!this.container&&Ko(this.container)},enumerable:!1,configurable:!0}),i.prototype.process=function(){var t=this;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||this.model.setActionsMode("large");var e=function(){var r,o=t.dotsItemSize;if(!t.dotsItemSize){var s=(r=t.container)===null||r===void 0?void 0:r.querySelector(t.dotsIconClass);o=s&&t.calcItemSize(s)||t.dotsSizeConst}t.model.fit(t.getAvailableSpace(),o)};if(this.isInitialized)e();else{var n=function(){t.container&&(t.calcItemsSizes(),t.isInitialized=!0,e())};this.delayedUpdateFunction?this.delayedUpdateFunction(n):n()}}},i.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.container=void 0},i}(),qo=function(i){Fs(t,i);function t(e,n,r,o,s,c){s===void 0&&(s=40);var y=i.call(this,e,n,r,o,c)||this;return y.minDimensionConst=s,y.recalcMinDimensionConst=!1,y}return t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),n=this.container.offsetHeight;return e.boxSizing==="border-box"&&(n-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),n},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,n){e.maxDimension=this.calcItemSize(n),e.minDimension=this.calcItemSize(n)},t}(No),te=function(){function i(){this.classes=[]}return i.prototype.isEmpty=function(){return this.toString()===""},i.prototype.append=function(t,e){return e===void 0&&(e=!0),t&&e&&(typeof t=="string"&&(t=t.trim()),this.classes.push(t)),this},i.prototype.toString=function(){return this.classes.join(" ")},i}(),ks=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ji=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Zi={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemWithTitle:"",itemAsIcon:"sv-action-bar-item--icon",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},Qn=function(i){ks(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.sizeMode="default",e}return t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getRenderedActions=function(){return this.actions},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.actions.forEach(function(e){e.locTitle&&e.locTitle.strChanged(),e.locStrsChanged()})},t.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some(function(n){return n.visible}),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach(function(n){e.setActionCssClasses(n)}),this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},t.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},t.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter(function(e){return e.visible!==!1})},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e=this.sizeMode==="small"?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return new te().append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return Zi},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var n=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),Ei(e,this.cssClasses),this.actions.forEach(function(r){n.setActionCssClasses(r)})},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof bi?e:new pt(e)},t.prototype.addAction=function(e,n){n===void 0&&(n=!0);var r=this.createAction(e);if(n&&!this.isActionVisible(r))return r;var o=[].concat(this.actions,r);return this.sortItems(o),this.actions=o,r},t.prototype.setItems=function(e,n){var r=this;n===void 0&&(n=!0);var o=[];e.forEach(function(s){(!n||r.isActionVisible(s))&&o.push(r.createAction(s))}),n&&this.sortItems(o),this.actions=o},t.prototype.sortItems=function(e){this.hasSetVisibleIndex(e)&&e.sort(this.compareByVisibleIndex)},t.prototype.hasSetVisibleIndex=function(e){for(var n=0;n<e.length;n++){var r=e[n].visibleIndex;if(r!==void 0&&r>=0)return!0}return!1},t.prototype.compareByVisibleIndex=function(e,n){return e.visibleIndex-n.visibleIndex},t.prototype.isActionVisible=function(e){return e.visibleIndex>=0||e.visibleIndex===void 0},t.prototype.popupAfterShowCallback=function(e){},t.prototype.mouseOverHandler=function(e){var n=this;e.isHovered=!0,this.actions.forEach(function(r){r===e&&e.popupModel&&(e.showPopupDelayed(n.subItemsShowDelay),n.popupAfterShowCallback(e))})},t.prototype.initResponsivityManager=function(e,n){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var n=0;n<this.actions.length;n++)if(this.actions[n].id===e)return this.actions[n];return null},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.resetResponsivityManager(),this.actions.forEach(function(e){return e.dispose()}),this.actions.length=0},Ji([be({onSet:function(e,n){n.onSet()},onPush:function(e,n,r){r.onPush(e)},onRemove:function(e,n,r){r.onRemove(e)}})],t.prototype,"actions",void 0),Ji([D({})],t.prototype,"containerCss",void 0),Ji([D({defaultValue:!1})],t.prototype,"isEmpty",void 0),Ji([D({defaultValue:300})],t.prototype,"subItemsShowDelay",void 0),Ji([D({defaultValue:300})],t.prototype,"subItemsHideDelay",void 0),t}(Je),Rr=function(){function i(){}return i.focusElement=function(t){t&&t.focus()},i.visibility=function(t){var e=M.getComputedStyle(t);return e.display==="none"||e.visibility==="hidden"?!1:t.parentElement?this.visibility(t.parentElement):!0},i.getNextElementPreorder=function(t){var e=t.nextElementSibling?t.nextElementSibling:t.parentElement.firstElementChild;return this.visibility(e)?e:this.getNextElementPreorder(e)},i.getNextElementPostorder=function(t){var e=t.previousElementSibling?t.previousElementSibling:t.parentElement.lastElementChild;return this.visibility(e)?e:this.getNextElementPostorder(e)},i.hasHorizontalScroller=function(t){return t?t.scrollWidth>t.offsetWidth:!1},i.hasVerticalScroller=function(t){return t?t.scrollHeight>t.offsetHeight:!1},i}(),Qs=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),wn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Bo={root:"sv-list__container",item:"sv-list__item",searchClearButtonIcon:"sv-list__filter-clear-button",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemGroup:"sv-list__item--group",itemGroupSelected:"sv-list__item--group-selected",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemHovered:"sv-list__item--hovered",itemTextWrap:"sv-list__item-text--wrap",itemIcon:"sv-list__item-icon",itemMarkerIcon:"sv-list-item__marker-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",itemsContainerFiltering:"sv-list--filtering",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},dr=function(i){Qs(t,i);function t(e,n,r,o,s){var c=i.call(this)||this;if(c.onSelectionChanged=n,c.allowSelection=r,c.elementId=s,c.onItemClick=function(w){if(!c.isItemDisabled(w)){c.isExpanded=!1,c.allowSelection&&(c.selectedItem=w),c.onSelectionChanged&&c.onSelectionChanged(w);var N=w.action;N&&N(w)}},c.onItemHover=function(w){c.mouseOverHandler(w)},c.isItemDisabled=function(w){return w.enabled!==void 0&&!w.enabled},c.isItemSelected=function(w){return c.areSameItems(c.selectedItem,w)},c.isItemFocused=function(w){return c.areSameItems(c.focusedItem,w)},c.getListClass=function(){return new te().append(c.cssClasses.itemsContainer).append(c.cssClasses.itemsContainerFiltering,!!c.filterString&&c.visibleActions.length!==c.visibleItems.length).toString()},c.getItemClass=function(w){var N=c.isItemSelected(w);return new te().append(c.cssClasses.item).append(c.cssClasses.itemWithIcon,!!w.iconName).append(c.cssClasses.itemDisabled,c.isItemDisabled(w)).append(c.cssClasses.itemFocused,c.isItemFocused(w)).append(c.cssClasses.itemSelected,!w.hasSubItems&&N).append(c.cssClasses.itemGroup,w.hasSubItems).append(c.cssClasses.itemGroupSelected,w.hasSubItems&&N).append(c.cssClasses.itemHovered,w.isHovered).append(c.cssClasses.itemTextWrap,c.textWrapEnabled).append(w.css).toString()},c.getItemStyle=function(w){var N=w.level||0;return{"--sjs-list-item-level":N+1}},Object.keys(e).indexOf("items")!==-1){var y=e;Object.keys(y).forEach(function(w){switch(w){case"items":c.setItems(y.items);break;case"onFilterStringChangedCallback":c.setOnFilterStringChangedCallback(y.onFilterStringChangedCallback);break;case"onTextSearchCallback":c.setOnTextSearchCallback(y.onTextSearchCallback);break;default:c[w]=y[w]}}),c.updateActionsIds()}else c.setItems(e),c.selectedItem=o;return c}return t.prototype.hasText=function(e,n){if(!n)return!0;var r=e.title||"";if(this.onTextSearchCallback)return this.onTextSearchCallback(e,n);var o=r.toLocaleLowerCase();return o=z.comparator.normalizeTextCallback(o,"filter"),o.indexOf(n.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},t.prototype.getRenderedActions=function(){var e=i.prototype.getRenderedActions.call(this);if(this.filterString){var n=[];return e.forEach(function(r){n.push(r),r.items&&r.items.forEach(function(o){var s=new pt(o);s.iconName||(s.iconName=r.iconName),n.push(s)})}),n}return e},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter(function(n){return e.isItemVisible(n)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.updateIsEmpty()},t.prototype.updateIsEmpty=function(){var e=this;this.isEmpty=this.renderedActions.filter(function(n){return e.isItemVisible(n)}).length===0},t.prototype.scrollToItem=function(e,n){var r=this;n===void 0&&(n=0),setTimeout(function(){if(r.listContainerHtmlElement){var o=r.listContainerHtmlElement.querySelector(kt(e));o&&setTimeout(function(){o.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})},n)}},n)},t.prototype.setOnFilterStringChangedCallback=function(e){this.onFilterStringChangedCallback=e},t.prototype.setOnTextSearchCallback=function(e){this.onTextSearchCallback=e},t.prototype.setItems=function(e,n){n===void 0&&(n=!0),i.prototype.setItems.call(this,e,n),this.updateActionsIds(),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.updateActionsIds=function(){var e=this;this.elementId&&this.renderedActions.forEach(function(n){n.elementId=e.elementId+n.id})},t.prototype.setSearchEnabled=function(e){this.searchEnabled=e,this.showSearchClearButton=e},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),i.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return Bo},t.prototype.popupAfterShowCallback=function(e){this.addScrollEventListener(function(){e.hidePopup()})},t.prototype.onItemLeave=function(e){e.hidePopupDelayed(this.subItemsHideDelay)},t.prototype.areSameItems=function(e,n){return this.areSameItemsCallback?this.areSameItemsCallback(e,n):!!e&&!!n&&e.id==n.id},Object.defineProperty(t.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyMessage",{get:function(){return this.isAllDataLoaded?this.getLocalizationString("emptyMessage"):this.loadingText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector(kt(this.cssClasses.itemsContainer))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingIndicator",{get:function(){return this.loadingIndicatorValue||(this.loadingIndicatorValue=new pt({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if(e.key==="ArrowDown"||e.keyCode===40){var n=e.target.parentElement,r=n.parentElement.querySelector("ul"),o=Zs(r);r&&o&&(Rr.focusElement(o),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var n=e.target;e.key==="ArrowDown"||e.keyCode===40?(Rr.focusElement(Rr.getNextElementPreorder(n)),e.preventDefault()):(e.key==="ArrowUp"||e.keyCode===38)&&(Rr.focusElement(Rr.getNextElementPostorder(n)),e.preventDefault())},t.prototype.onPointerDown=function(e,n){},t.prototype.refresh=function(){this.filterString!==""?this.filterString="":this.updateIsEmpty(),this.resetFocusedItem()},t.prototype.onClickSearchClearButton=function(e){e.currentTarget.parentElement.querySelector("input").focus(),this.refresh()},t.prototype.resetFocusedItem=function(){this.focusedItem=void 0},t.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},t.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},t.prototype.initFocusedItem=function(){var e=this;this.focusedItem=this.visibleItems.filter(function(n){return n.visible&&e.isItemSelected(n)})[0],this.focusedItem||this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(!this.focusedItem)this.initFocusedItem();else{var e=this.visibleItems,n=e.indexOf(this.focusedItem),r=e[n+1];r?this.focusedItem=r:this.focusFirstVisibleItem()}},t.prototype.focusPrevVisibleItem=function(){if(!this.focusedItem)this.initFocusedItem();else{var e=this.visibleItems,n=e.indexOf(this.focusedItem),r=e[n-1];r?this.focusedItem=r:this.focusLastVisibleItem()}},t.prototype.selectFocusedItem=function(){this.focusedItem&&this.onItemClick(this.focusedItem)},t.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},t.prototype.onLastItemRended=function(e){this.isAllDataLoaded||e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=Rr.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.cssClasses.itemFocused)},t.prototype.scrollToSelectedItem=function(){this.selectedItem&&this.selectedItem.items&&this.selectedItem.items.length>0?this.scrollToItem(this.cssClasses.itemGroupSelected,110):this.scrollToItem(this.cssClasses.itemSelected,110)},t.prototype.addScrollEventListener=function(e){e&&(this.removeScrollEventListener(),this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},t.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose(),this.listContainerHtmlElement=void 0},t.INDENT=16,t.MINELEMENTCOUNT=10,wn([D({defaultValue:!0,onSet:function(e,n){n.onSet()}})],t.prototype,"searchEnabled",void 0),wn([D({defaultValue:!1})],t.prototype,"showFilter",void 0),wn([D({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),wn([D({defaultValue:!1})],t.prototype,"isExpanded",void 0),wn([D({})],t.prototype,"selectedItem",void 0),wn([D()],t.prototype,"focusedItem",void 0),wn([D({onSet:function(e,n){n.onFilterStringChanged(n.filterString)}})],t.prototype,"filterString",void 0),wn([D({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),wn([D({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),wn([D({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),wn([D({defaultValue:!0})],t.prototype,"renderElements",void 0),wn([D({defaultValue:!1})],t.prototype,"textWrapEnabled",void 0),wn([D({defaultValue:"sv-list-item-content"})],t.prototype,"itemComponent",void 0),t}(Qn),Hs=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),mn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},vi=function(i){Hs(t,i);function t(e,n,r,o){var s=i.call(this)||this;if(s.focusFirstInputSelector="",s.onCancel=function(){},s.onApply=function(){return!0},s.onHide=function(){},s.onShow=function(){},s.onDispose=function(){},s.onVisibilityChanged=s.addEvent(),s.onFooterActionsCreated=s.addEvent(),s.onRecalculatePosition=s.addEvent(),s.contentComponentName=e,s.contentComponentData=n,r&&typeof r=="string")s.verticalPosition=r,s.horizontalPosition=o;else if(r){var c=r;for(var y in c)s[y]=c[y]}return s}return t.prototype.refreshInnerModel=function(){var e=this.contentComponentData.model;e&&e.refresh&&e.refresh()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){this.isVisible!==e&&(this.setPropertyValue("isVisible",e),this.onVisibilityChanged.fire(this,{model:this,isVisible:e}))},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},t.prototype.show=function(){this.isVisible||(this.isVisible=!0)},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},t.prototype.recalculatePosition=function(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})},t.prototype.updateFooterActions=function(e){var n={actions:e};return this.onFooterActionsCreated.fire(this,n),n.actions},t.prototype.updateDisplayMode=function(e){switch(this.displayMode!==e&&(this.setWidthByTarget=e==="dropdown"),e){case"dropdown":{this.displayMode="popup";break}case"popup":{this.displayMode="overlay",this.overlayDisplayMode="tablet-dropdown-overlay";break}case"overlay":{this.displayMode="overlay",this.overlayDisplayMode="dropdown-overlay";break}}},t.prototype.onHiding=function(){this.refreshInnerModel(),this.onHide()},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.onDispose()},mn([D()],t.prototype,"contentComponentName",void 0),mn([D()],t.prototype,"contentComponentData",void 0),mn([D({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),mn([D({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),mn([D({defaultValue:!0})],t.prototype,"showPointer",void 0),mn([D({defaultValue:!1})],t.prototype,"isModal",void 0),mn([D({defaultValue:!0})],t.prototype,"canShrink",void 0),mn([D({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),mn([D({defaultValue:!0})],t.prototype,"isFocusedContainer",void 0),mn([D({defaultValue:""})],t.prototype,"cssClass",void 0),mn([D({defaultValue:""})],t.prototype,"title",void 0),mn([D({defaultValue:"auto"})],t.prototype,"overlayDisplayMode",void 0),mn([D({defaultValue:"popup"})],t.prototype,"displayMode",void 0),mn([D({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(Je);function zs(i,t,e,n,r,o,s,c,y){return r===void 0&&(r=function(){}),o===void 0&&(o=function(){}),y===void 0&&(y="popup"),mt.warn("The `showModal()` and `createDialogOptions()` methods are obsolete. Use the `showDialog()` method instead."),{componentName:i,data:t,onApply:e,onCancel:n,onHide:r,onShow:o,cssClass:s,title:c,displayMode:y}}var Fo=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),at=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Oa=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function Ki(i,t,e){return t.locOwner=e,Yi(i,t,t)}function Yi(i,t,e){var n,r=t.onSelectionChanged;t.onSelectionChanged=function(y){for(var w=[],N=1;N<arguments.length;N++)w[N-1]=arguments[N];c.hasTitle&&(c.title=y.title),r&&r(y,w)};var o=hr(t,e);o.getTargetCallback=Us;var s=Object.assign({},i,{component:"sv-action-bar-item-dropdown",popupModel:o,action:function(y,w){i.action&&i.action(),o.isFocusedContent=o.isFocusedContent||!w,o.show()}}),c=new pt(s);return c.data=(n=o.contentComponentData)===null||n===void 0?void 0:n.model,c}function hr(i,t){var e=new dr(i);e.onSelectionChanged=function(o){i.onSelectionChanged&&i.onSelectionChanged(o),r.hide()};var n=t||{};n.onDispose=function(){e.dispose()};var r=new vi("sv-list",{model:e},n);return r.isFocusedContent=e.showFilter,r.onShow=function(){n.onShow&&n.onShow(),e.scrollToSelectedItem()},r}function Us(i){return i==null?void 0:i.previousElementSibling}var bi=function(i){Fo(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.rendredIdValue=t.getNextRendredId(),e}return t.getNextRendredId=function(){return t.renderedId++},Object.defineProperty(t.prototype,"renderedId",{get:function(){return this.rendredIdValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},set:function(e){e!==this.owner&&(this.ownerValue=e,this.locStrsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getVisible()},set:function(e){this.setVisible(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.getEnabled()},set:function(e){this.setEnabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.getComponent()},set:function(e){this.setComponent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocTitle()},set:function(e){this.setLocTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getTitle()},set:function(e){this.setTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||Zi},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&this.mode!=="popup"&&this.mode!=="removed"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.enabled!==void 0&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!this.disableShrink&&!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return(this.mode!="small"&&(this.showTitle||this.showTitle===void 0)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSubItems",{get:function(){return!!this.items&&this.items.length>0},enumerable:!1,configurable:!0}),t.prototype.getActionBarItemTitleCss=function(){return new te().append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return new te().append(this.cssClasses.item).append(this.cssClasses.itemWithTitle,this.hasTitle).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},t.prototype.getActionRootCss=function(){return new te().append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getTooltip=function(){return this.tooltip||this.title},t.prototype.getIsTrusted=function(e){return e.originalEvent?e.originalEvent.isTrusted:e.isTrusted},t.prototype.showPopup=function(){this.popupModel&&this.popupModel.show()},t.prototype.hidePopup=function(){this.popupModel&&this.popupModel.hide()},t.prototype.clearPopupTimeouts=function(){this.showPopupTimeout&&clearTimeout(this.showPopupTimeout),this.hidePopupTimeout&&clearTimeout(this.hidePopupTimeout)},t.prototype.showPopupDelayed=function(e){var n=this;this.clearPopupTimeouts(),this.showPopupTimeout=setTimeout(function(){n.clearPopupTimeouts(),n.showPopup()},e)},t.prototype.hidePopupDelayed=function(e){var n=this,r;!((r=this.popupModel)===null||r===void 0)&&r.isVisible?(this.clearPopupTimeouts(),this.hidePopupTimeout=setTimeout(function(){n.clearPopupTimeouts(),n.hidePopup(),n.isHovered=!1},e)):(this.clearPopupTimeouts(),this.isHovered=!1)},t.renderedId=1,at([D()],t.prototype,"tooltip",void 0),at([D()],t.prototype,"showTitle",void 0),at([D()],t.prototype,"innerCss",void 0),at([D()],t.prototype,"active",void 0),at([D()],t.prototype,"pressed",void 0),at([D()],t.prototype,"data",void 0),at([D()],t.prototype,"popupModel",void 0),at([D()],t.prototype,"needSeparator",void 0),at([D()],t.prototype,"template",void 0),at([D({defaultValue:"large"})],t.prototype,"mode",void 0),at([D()],t.prototype,"visibleIndex",void 0),at([D()],t.prototype,"disableTabStop",void 0),at([D()],t.prototype,"disableShrink",void 0),at([D()],t.prototype,"disableHide",void 0),at([D({defaultValue:!1})],t.prototype,"needSpace",void 0),at([D()],t.prototype,"ariaChecked",void 0),at([D()],t.prototype,"ariaExpanded",void 0),at([D({defaultValue:"button"})],t.prototype,"ariaRole",void 0),at([D()],t.prototype,"iconName",void 0),at([D({defaultValue:24})],t.prototype,"iconSize",void 0),at([D()],t.prototype,"markerIconName",void 0),at([D()],t.prototype,"css",void 0),at([D({defaultValue:!1})],t.prototype,"isPressed",void 0),at([D({defaultValue:!1})],t.prototype,"isHovered",void 0),t}(Je),pt=function(i){Fo(t,i);function t(e){var n=i.call(this)||this;n.locTitleChanged=function(){var s=n.locTitle.renderedHtml;n.setPropertyValue("_title",s||void 0)};var r=e instanceof t?e.innerItem:e;if(n.innerItem=r,n.locTitle=r?r.locTitle:null,r)for(var o in r)o==="locTitle"||o==="title"&&n.locTitle&&n.title||(n[o]=r[o]);return n.locTitleName&&n.locTitleChanged(),n.registerFunctionOnPropertyValueChanged("_title",function(){n.raiseUpdate(!0)}),n.locStrChangedInPopupModel(),n}return t.prototype.raiseUpdate=function(e){e===void 0&&(e=!1),this.updateCallback&&this.updateCallback(e)},t.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},t.prototype.setSubItems=function(e){this.markerIconName="icon-next_16x16",this.component="sv-list-item-group",this.items=Oa([],e.items);var n=Object.assign({},e);n.searchEnabled=!1;var r=hr(n,{horizontalPosition:"right",showPointer:!1,canShrink:!1});r.cssClass="sv-popup-inner",this.popupModel=r},t.prototype.getLocTitle=function(){return this.locTitleValue},t.prototype.setLocTitle=function(e){!e&&!this.locTitleValue&&(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},t.prototype.getTitle=function(){return this._title},t.prototype.setTitle=function(e){this._title=e},Object.defineProperty(t.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(e){this.locTitle.localizationName=e},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.doAction=function(e){var n=e.originalEvent?e.originalEvent:e;return this.action(this,n.isTrusted),n.preventDefault(),n.stopPropagation(),!0},t.prototype.doMouseDown=function(e){this.isMouseDown=!0},t.prototype.doFocus=function(e){if(this.onFocus){var n=e.originalEvent?e.originalEvent:e;this.onFocus(this.isMouseDown,n)}this.isMouseDown=!1},t.prototype.locStrChangedInPopupModel=function(){if(!(!this.popupModel||!this.popupModel.contentComponentData||!this.popupModel.contentComponentData.model)){var e=this.popupModel.contentComponentData.model;if(Array.isArray(e.actions)){var n=e.actions;n.forEach(function(r){r.locStrsChanged&&r.locStrsChanged()})}}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=ee(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.owner?this.owner.getMarkdownHtml(e,n):void 0},t.prototype.getProcessedText=function(e){return this.owner?this.owner.getProcessedText(e):e},t.prototype.getRenderer=function(e){return this.owner?this.owner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.owner?this.owner.getRendererContext(e):e},t.prototype.setVisible=function(e){this.visible!==e&&(this._visible=e)},t.prototype.getVisible=function(){return this._visible},t.prototype.setEnabled=function(e){this._enabled=e},t.prototype.getEnabled=function(){return this.enabledIf?this.enabledIf():this._enabled},t.prototype.setComponent=function(e){this._component=e},t.prototype.getComponent=function(){return this._component},t.prototype.dispose=function(){this.updateCallback=void 0,this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleChanged=void 0,this.action=void 0,i.prototype.dispose.call(this),this.popupModel&&this.popupModel.dispose()},at([D()],t.prototype,"id",void 0),at([D({defaultValue:!0,onSet:function(e,n){n.raiseUpdate()}})],t.prototype,"_visible",void 0),at([D({onSet:function(e,n){n.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),at([D()],t.prototype,"_enabled",void 0),at([D()],t.prototype,"action",void 0),at([D()],t.prototype,"onFocus",void 0),at([D()],t.prototype,"_component",void 0),at([D()],t.prototype,"items",void 0),at([D({onSet:function(e,n){n.locTitleValue.text!==e&&(n.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(bi),Ta=function(){function i(t){this.item=t,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return i.prototype.setupPopupCallbacks=function(){var t=this,e=this.popupModel=this.item.popupModel;e&&e.registerPropertyChangedHandlers(["isVisible"],function(){e.isVisible?t.item.pressed=!0:t.item.pressed=!1},this.funcKey)},i.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},i.prototype.dispose=function(){this.removePopupCallbacks()},i}(),Ia=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ci=function(i){Ia(t,i);function t(){var e=i.call(this)||this;return e.minVisibleItemsCount=0,e.isResponsivenessDisabled=!1,e.dotsItem=Yi({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:ee("more")},{items:[],allowSelection:!1}),e}return t.prototype.hideItemsGreaterN=function(e){var n=this.getActionsToHide();e=Math.max(e,this.minVisibleItemsCount-(this.visibleActions.length-n.length));var r=[];n.forEach(function(o){e<=0&&(o.removePriority?o.mode="removed":(o.mode="popup",r.push(o.innerItem))),e--}),this.hiddenItemsListModel.setItems(r)},t.prototype.getActionsToHide=function(){return this.visibleActions.filter(function(e){return!e.disableHide}).sort(function(e,n){return e.removePriority||0-n.removePriority||0})},t.prototype.getVisibleItemsCount=function(e){this.visibleActions.filter(function(s){return s.disableHide}).forEach(function(s){return e-=s.minDimension});for(var n=this.getActionsToHide().map(function(s){return s.minDimension}),r=0,o=0;o<n.length;o++)if(r+=n[o],r>e)return o;return o},t.prototype.updateItemMode=function(e,n){for(var r=this.visibleActions,o=r.length-1;o>=0;o--)n>e&&!r[o].disableShrink?(n-=r[o].maxDimension-r[o].minDimension,r[o].mode="small"):r[o].mode="large";if(n>e){var s=this.visibleActions.filter(function(c){return c.removePriority});s.sort(function(c,y){return c.removePriority-y.removePriority});for(var o=0;o<s.length;o++)n>e&&(n-=r[o].disableShrink?s[o].maxDimension:s[o].minDimension,s[o].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.onSet=function(){var e=this;this.actions.forEach(function(n){return n.updateCallback=function(r){return e.raiseUpdate(r)}}),i.prototype.onSet.call(this)},t.prototype.onPush=function(e){var n=this;e.updateCallback=function(r){return n.raiseUpdate(r)},i.prototype.onPush.call(this,e)},t.prototype.getRenderedActions=function(){return this.actions.length===1&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(e){this.isResponsivenessDisabled||i.prototype.raiseUpdate.call(this,e)},t.prototype.fit=function(e,n){if(!(e<=0)){this.dotsItem.visible=!1;var r=0,o=0,s=this.visibleActions;s.forEach(function(c){r+=c.minDimension,o+=c.maxDimension}),e>=o?this.setActionsMode("large"):e<r?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-n)),this.dotsItem.visible=!!this.hiddenItemsListModel.actions.length):this.updateItemMode(e,o)}},t.prototype.initResponsivityManager=function(e,n){if(this.responsivityManager){if(this.responsivityManager.container==e)return;this.responsivityManager.dispose()}this.responsivityManager=new No(e,this,":scope > .sv-action:not(.sv-dots) > .sv-action__content",null,n)},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach(function(n){e=="small"&&n.disableShrink?n.mode="large":n.mode=e})},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dotsItem.data.dispose(),this.dotsItem.dispose(),this.resetResponsivityManager()},t.ContainerID=1,t}(Qn);(function(){function i(t,e){var n=this;e===void 0&&(e=!1),this.func=t,this.isMultiple=e,this._isCompleted=!1,this.execute=function(){n._isCompleted||(n.func(),n._isCompleted=!n.isMultiple)}}return i.prototype.discard=function(){this._isCompleted=!0},Object.defineProperty(i.prototype,"isCompleted",{get:function(){return this._isCompleted},enumerable:!1,configurable:!0}),i})();function ko(i){var t=this,e=!1,n=!1,r;return{run:function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];n=!1,r=o,e||(e=!0,queueMicrotask(function(){n||i.apply(t,r),n=!1,e=!1}))},cancel:function(){n=!0}}}var wi=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ws=function(){function i(){this.cancelQueue=[]}return i.prototype.getMsFromRule=function(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3},i.prototype.reflow=function(t){return t.offsetHeight},i.prototype.getAnimationsCount=function(t){var e="";return getComputedStyle&&(e=getComputedStyle(t).animationName),e&&e!="none"?e.split(", ").length:0},i.prototype.getAnimationDuration=function(t){for(var e=getComputedStyle(t),n=e.animationDelay.split(", "),r=e.animationDuration.split(", "),o=0,s=0;s<Math.max(r.length,n.length);s++)o=Math.max(o,this.getMsFromRule(r[s%r.length])+this.getMsFromRule(n[s%n.length]));return o},i.prototype.addCancelCallback=function(t){this.cancelQueue.push(t)},i.prototype.removeCancelCallback=function(t){this.cancelQueue.indexOf(t)>=0&&this.cancelQueue.splice(this.cancelQueue.indexOf(t),1)},i.prototype.onAnimationEnd=function(t,e,n){var r=this,o,s=this.getAnimationsCount(t),c=function(w){w===void 0&&(w=!0),e(w),clearTimeout(o),r.removeCancelCallback(c),t.removeEventListener("animationend",y)},y=function(w){w.target==w.currentTarget&&--s<=0&&c(!1)};s>0?(t.addEventListener("animationend",y),this.addCancelCallback(c),o=setTimeout(function(){c(!1)},this.getAnimationDuration(t)+10)):e(!0)},i.prototype.afterAnimationRun=function(t,e){t&&e&&e.onAfterRunAnimation&&e.onAfterRunAnimation(t)},i.prototype.beforeAnimationRun=function(t,e){t&&e&&e.onBeforeRunAnimation&&e.onBeforeRunAnimation(t)},i.prototype.getCssClasses=function(t){return t.cssClass.replace(/\s+$/,"").split(/\s+/)},i.prototype.runAnimation=function(t,e,n){t&&(e!=null&&e.cssClass)?(this.reflow(t),this.getCssClasses(e).forEach(function(r){t.classList.add(r)}),this.onAnimationEnd(t,n,e)):n(!0)},i.prototype.clearHtmlElement=function(t,e){t&&e.cssClass&&this.getCssClasses(e).forEach(function(n){t.classList.remove(n)}),this.afterAnimationRun(t,e)},i.prototype.onNextRender=function(t,e){var n=this;if(e===void 0&&(e=!1),!e&&B.isAvailable()){var r=function(){t(!0),cancelAnimationFrame(o)},o=B.requestAnimationFrame(function(){o=B.requestAnimationFrame(function(){t(!1),n.removeCancelCallback(r)})});this.addCancelCallback(r)}else t(!0)},i.prototype.cancel=function(){var t=[].concat(this.cancelQueue);t.forEach(function(e){return e()}),this.cancelQueue=[]},i}(),Ra=function(i){wi(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.onEnter=function(e){var n=this,r=e.getAnimatedElement(),o=e.getEnterOptions?e.getEnterOptions():{};this.beforeAnimationRun(r,o),this.runAnimation(r,o,function(){n.clearHtmlElement(r,o)})},t.prototype.onLeave=function(e,n){var r=this,o=e.getAnimatedElement(),s=e.getLeaveOptions?e.getLeaveOptions():{};this.beforeAnimationRun(o,s),this.runAnimation(o,s,function(c){n(),r.onNextRender(function(){r.clearHtmlElement(o,s)},c)})},t}(Ws),Xi=function(i){wi(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.runGroupAnimation=function(e,n,r,o,s){var c=this,y={isAddingRunning:n.length>0,isDeletingRunning:r.length>0,isReorderingRunning:o.length>0},w=n.map(function(me){return e.getAnimatedElement(me)}),N=n.map(function(me){return e.getEnterOptions?e.getEnterOptions(me,y):{}}),Q=r.map(function(me){return e.getAnimatedElement(me)}),Y=r.map(function(me){return e.getLeaveOptions?e.getLeaveOptions(me,y):{}}),ce=o.map(function(me){return e.getAnimatedElement(me.item)}),fe=o.map(function(me){return e.getReorderOptions?e.getReorderOptions(me.item,me.movedForward,y):{}});n.forEach(function(me,ze){c.beforeAnimationRun(w[ze],N[ze])}),r.forEach(function(me,ze){c.beforeAnimationRun(Q[ze],Y[ze])}),o.forEach(function(me,ze){c.beforeAnimationRun(ce[ze],fe[ze])});var Oe=n.length+r.length+ce.length,Ee=function(me){--Oe<=0&&(s&&s(),c.onNextRender(function(){n.forEach(function(ze,Wt){c.clearHtmlElement(w[Wt],N[Wt])}),r.forEach(function(ze,Wt){c.clearHtmlElement(Q[Wt],Y[Wt])}),o.forEach(function(ze,Wt){c.clearHtmlElement(ce[Wt],fe[Wt])})},me))};n.forEach(function(me,ze){c.runAnimation(w[ze],N[ze],Ee)}),r.forEach(function(me,ze){c.runAnimation(Q[ze],Y[ze],Ee)}),o.forEach(function(me,ze){c.runAnimation(ce[ze],fe[ze],Ee)})},t}(Ws),eo=function(){function i(t,e,n){var r=this;this.animationOptions=t,this.update=e,this.getCurrentValue=n,this._debouncedSync=ko(function(o){r.cancelAnimations();try{r._sync(o)}catch{r.update(o)}})}return i.prototype.onNextRender=function(t,e){var n=this,r=this.animationOptions.getRerenderEvent();if(r){var s=function(){r.remove(c),n.cancelCallback=void 0},c=function(y,w){w.isCancel?e&&e():t(),s()};this.cancelCallback=function(){e&&e(),s()},r.add(c)}else if(B.isAvailable()){var o=B.requestAnimationFrame(function(){t(),n.cancelCallback=void 0});this.cancelCallback=function(){e&&e(),cancelAnimationFrame(o),n.cancelCallback=void 0}}else throw new Error("Can't get next render")},i.prototype.sync=function(t){this.animationOptions.isAnimationEnabled()?this._debouncedSync.run(t):(this.cancel(),this.update(t))},i.prototype.cancel=function(){this._debouncedSync.cancel(),this.cancelAnimations()},i.prototype.cancelAnimations=function(){this.cancelCallback&&this.cancelCallback(),this.animation.cancel()},i}(),to=function(i){wi(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.animation=new Ra,e}return t.prototype._sync=function(e){var n=this;e!==this.getCurrentValue()?e?(this.onNextRender(function(){n.animation.onEnter(n.animationOptions)}),this.update(e)):this.animation.onLeave(this.animationOptions,function(){n.update(e)}):this.update(e)},t}(eo),Ar=function(i){wi(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.animation=new Xi,e}return t.prototype._sync=function(e){var n=this,r,o;e=[].concat(e);var s=[].concat(this.getCurrentValue()),c=(r=this.animationOptions.allowSyncRemovalAddition)!==null&&r!==void 0?r:!0,y=Na(s,e,(o=this.animationOptions.getKey)!==null&&o!==void 0?o:function(fe){return fe});!c&&(y.reorderedItems.length>0||y.addedItems.length>0)&&(y.deletedItems=[],y.mergedItems=e),this.animationOptions.onCompareArrays&&this.animationOptions.onCompareArrays(y);var w=y.addedItems,N=y.reorderedItems,Q=y.deletedItems,Y=y.mergedItems,ce=function(){n.animation.runGroupAnimation(n.animationOptions,w,Q,N,function(){Q.length>0&&n.update(e)})};[w,Q,N].some(function(fe){return fe.length>0})?Q.length<=0||N.length>0||w.length>0?(this.onNextRender(ce,function(){n.update(e)}),this.update(Y)):ce():this.update(e)},t}(eo),Qo=function(i){wi(t,i);function t(e,n,r,o){var s=i.call(this,e,n,r)||this;return s.mergeValues=o,s.animation=new Xi,s}return t.prototype._sync=function(e){var n=this,r=[].concat(this.getCurrentValue());if(r[0]!==e[0]){var o=this.mergeValues?this.mergeValues(e,r):[].concat(r,e);this.onNextRender(function(){n.animation.runGroupAnimation(n.animationOptions,e,r,[],function(){n.update(e)})},function(){return n.update(e)}),this.update(o,!0)}else this.update(e)},t}(eo),Ho=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),In=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},zo=function(i){Ho(t,i);function t(){var e=i.call(this)||this;return e.createLocTitleProperty(),e}return t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSurvey",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setTitleValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},t.prototype.setTitleValue=function(e){this.setLocalizableStringText("title",e)},t.prototype.updateDescriptionVisibility=function(e){var n=!1;if(this.isDesignMode){var r=G.findProperty(this.getType(),"description");n=!!(r!=null&&r.placeholder)}this.hasDescription=!!e||n&&this.isDesignMode},Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),n=this.getSurvey();return n?n.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return z.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return this.ariaLabel},enumerable:!1,configurable:!0}),t.prototype.getIsTitleRenderedAsString=function(){return!this.isTitleOwner},In([D({})],t.prototype,"hasDescription",void 0),In([D({localizable:!0,onSet:function(e,n){n.updateDescriptionVisibility(e)}})],t.prototype,"description",void 0),t}(Je),Uo;(function(i){i[i.InsideEmptyPanel=1]="InsideEmptyPanel",i[i.MultilineRight=2]="MultilineRight",i[i.MultilineLeft=3]="MultilineLeft",i[i.Top=4]="Top",i[i.Right=5]="Right",i[i.Bottom=6]="Bottom",i[i.Left=7]="Left"})(Uo||(Uo={}));var sn=function(i){Ho(t,i);function t(e){var n=i.call(this)||this;return n.selectedElementInDesignValue=n,n.disableDesignActions=t.CreateDisabledDesignElements,n.parentQuestionValue=null,n.isContentElement=!1,n.isEditableTemplateElement=!1,n.isInteractiveDesignElement=!0,n.isSingleInRow=!0,n._renderedIsExpanded=!0,n._isAnimatingCollapseExpand=!1,n.animationCollapsed=new to(n.getExpandCollapseAnimationOptions(),function(r){n._renderedIsExpanded=r,n.animationAllowed&&(r?n.isAnimatingCollapseExpand=!0:n.updateElementCss(!1))},function(){return n.renderedIsExpanded}),n.onAfterRenderElement=n.addEvent(),n.name=e,n.createNewArray("errors"),n.createNewArray("titleActions"),n.registerPropertyChangedHandlers(["isReadOnly"],function(){n.onReadOnlyChanged()}),n.registerPropertyChangedHandlers(["errors"],function(){n.updateVisibleErrors()}),n.registerPropertyChangedHandlers(["isSingleInRow"],function(){n.updateElementCss(!1)}),n.registerPropertyChangedHandlers(["minWidth","maxWidth","renderWidth","allowRootStyle","parent"],function(){n.updateRootStyle()}),n}return t.getProgressInfoByElements=function(e,n){for(var r=Je.createProgressInfo(),o=0;o<e.length;o++)if(e[o].isVisible){var s=e[o].getProgressInfo();r.questionCount+=s.questionCount,r.answeredQuestionCount+=s.answeredQuestionCount,r.requiredQuestionCount+=s.requiredQuestionCount,r.requiredAnsweredQuestionCount+=s.requiredAnsweredQuestionCount}return n&&r.questionCount>0&&(r.requiredQuestionCount==0&&(r.requiredQuestionCount=1),r.answeredQuestionCount>0&&(r.requiredAnsweredQuestionCount=1)),r},t.IsNeedScrollIntoView=function(e,n,r){var o=r?-1:e.getBoundingClientRect().top,s=o<0,c=-1;if(!s&&n&&(c=e.getBoundingClientRect().left,s=c<0),!s&&B.isAvailable()){var y=B.getInnerHeight();if(s=y>0&&y<o,!s&&n){var w=B.getInnerWidth();s=w>0&&w<c}}return s},t.ScrollIntoView=function(e,n,r){if(e.scrollIntoView(n),typeof r=="function"){var o=null,s=0,c=function(){var y=e.getBoundingClientRect().top;if(y===o){if(s++>2){r();return}}else o=y,s=0;requestAnimationFrame(c)};B.requestAnimationFrame(c)}},t.ScrollElementToTop=function(e,n,r,o){var s=z.environment.root;if(!e||typeof s>"u")return!1;var c=s.getElementById(e);return t.ScrollElementToViewCore(c,!1,n,r,o)},t.ScrollElementToViewCore=function(e,n,r,o,s){if(!e||!e.scrollIntoView)return s&&s(),!1;var c=t.IsNeedScrollIntoView(e,n,r);return c?t.ScrollIntoView(e,o,s):s&&s(),c},t.GetFirstNonTextElement=function(e,n){if(n===void 0&&(n=!1),!e||!e.length||e.length==0)return null;if(n){var r=e[0];r.nodeName==="#text"&&(r.data=""),r=e[e.length-1],r.nodeName==="#text"&&(r.data="")}for(var o=0;o<e.length;o++)if(e[o].nodeName!="#text"&&e[o].nodeName!="#comment")return e[o];return null},t.FocusElement=function(e,n,r){if(!e||!M.isAvailable())return!1;var o=n?!1:t.focusElementCore(e,r);return o||setTimeout(function(){t.focusElementCore(e,r)},n?100:10),o},t.focusElementCore=function(e,n){var r=z.environment.root;if(!r&&!n)return!1;var o=n?n.querySelector("#"+CSS.escape(e)):r.getElementById(e);return o&&!o.disabled&&o.style.display!=="none"&&o.offsetParent!==null?(t.ScrollElementToViewCore(o,!0,!1),o.focus(),!0):!1},Object.defineProperty(t.prototype,"colSpan",{get:function(){return this.getPropertyValue("colSpan",1)},set:function(e){this.setPropertyValue("colSpan",e)},enumerable:!1,configurable:!0}),t.prototype.onPropertyValueChanged=function(e,n,r){i.prototype.onPropertyValueChanged.call(this,e,n,r),e==="state"&&(this.updateElementCss(!1),this.notifyStateChanged(n),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},t.prototype.updateElementVisibility=function(){this.setPropertyValue("isVisible",this.isVisible)},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.renderedIsExpanded=!(this.state==="collapsed"&&!this.isDesignMode)},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(e){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return this.state==="collapsed"&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.state==="expanded"},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):this.isExpanded?(this.collapse(),!1):!0},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.locOwner=this,this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.createActionContainer=function(e){var n=e?new Ci:new Qn;return this.survey&&this.survey.getCss().actionBar&&(n.cssClasses=this.survey.getCss().actionBar),n},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.getDefaultTitleActions=function(){return[]},t.prototype.updateTitleActions=function(){var e=this.getDefaultTitleActions();this.survey&&(e=this.survey.getUpdatedElementTitleActions(this,e)),this.setPropertyValue("titleActions",e)},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.titleToolbarValue&&this.titleToolbarValue.locStrsChanged()},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.state!==void 0&&this.state!=="default"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return!this.isPage&&this.state!=="default"?0:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!(this.isPage||this.state==="default"))return this.state==="expanded"?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!(this.isPage||this.state==="default"))return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,n){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null),this.survey&&(this.updateDescriptionVisibility(this.description),this.clearCssClasses())},t.prototype.canRunConditions=function(){return i.prototype.canRunConditions.call(this)&&!!this.data},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),t.prototype.__setData=function(e){z.supportCreatorV2&&(this.surveyDataValue=e)},Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return this.surveyValue?this.surveyValue:(this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue)},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"skeletonHeight",{get:function(){var e=void 0;return this.survey&&this.survey.skeletonHeight&&(e=this.survey.skeletonHeight+"px"),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return this.readOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly")},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClassesValue",{get:function(){var e=this.getPropertyValueWithoutDefault("cssClassesValue");return!e&&!this.isCssValueCalculating&&(this.isCssValueCalculating=!0,e=this.createCssClassesValue(),this.isCssValueCalculating=!1),e},enumerable:!1,configurable:!0}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||this.createCssClassesValue()},t.prototype.createCssClassesValue=function(){var e=this.calcCssClasses(this.css);return this.setPropertyValue("cssClassesValue",e),this.onCalcCssClasses(e),this.updateElementCssCore(this.cssClassesValue),e},t.prototype.onCalcCssClasses=function(e){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue,this.survey?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){var e=this.cssClasses;return e.number?e.number:e.panel?e.panel.number:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){var e=this.cssClasses;return e.requiredText||e.panel&&e.panel.requiredText},enumerable:!1,configurable:!0}),t.prototype.getCssTitleExpandableSvg=function(){return this.state==="default"?null:this.cssClasses.titleExpandableSvg},t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.clearCssClasses()},t.prototype.clearCssClasses=function(){this.resetPropertyValue("cssClassesValue")},t.prototype.getIsLoadingFromJson=function(){return i.prototype.getIsLoadingFromJson.call(this)?!0:this.surveyValue?this.surveyValue.isLoadingFromJson:!1},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var n=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&n&&this.onNameChanged(n)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,n){this.data&&!this.isTwoValueEquals(n,this.data.getValue(e))&&this.data.setValue(e,n,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,n=0;n<this.errors.length;n++)this.errors[n].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},Object.defineProperty(t.prototype,"wasRendered",{get:function(){return!!this.wasRenderedValue},enumerable:!1,configurable:!0}),t.prototype.onFirstRendering=function(){this.wasRendered||(this.wasRenderedValue=!0,this.onFirstRenderingCore())},t.prototype.onFirstRenderingCore=function(){this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad(),this.updateDescriptionVisibility(this.description)},t.prototype.setVisibleIndex=function(e){return 0},t.prototype.delete=function(e){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,n):this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.survey&&typeof this.survey.getRendererForString=="function"?this.survey.getRendererForString(this,e):this.locOwner&&typeof this.locOwner.getRenderer=="function"?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&typeof this.survey.getRendererContextForString=="function"?this.survey.getRendererContextForString(this,e):this.locOwner&&typeof this.locOwner.getRendererContext=="function"?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},t.prototype.removeSelfFromList=function(e){if(!(!e||!Array.isArray(e))){var n=e.indexOf(this);n>-1&&e.splice(n,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return!e||!this.textProcessor?e:this.textProcessor.processText(e,!0)},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&e.isPage?e:null},t.prototype.moveToBase=function(e,n,r){if(r===void 0&&(r=null),!n)return!1;e.removeElement(this);var o=-1;return m.isNumber(r)&&(o=parseInt(r)),o==-1&&r&&r.getType&&(o=n.indexOf(r)),n.addElement(this,o),!0},t.prototype.setPage=function(e,n){var r=this.getPage(e);if(this.prevSurvey=this.survey,typeof n=="string"){var o=this.getSurvey();o.pages.forEach(function(s){n===s.name&&(n=s)})}r!==n&&(e&&e.removeElement(this),n&&n.addElement(this,-1),this.prevSurvey=void 0)},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&this.survey.getCss().root.indexOf("sd-root-modern")!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage||this.parent===void 0},enumerable:!1,configurable:!0}),t.prototype.shouldAddRunnerStyles=function(){return!this.isDesignMode&&this.isDefaultV2Theme},Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.survey&&this.survey.isCompact},enumerable:!1,configurable:!0}),t.prototype.canHaveFrameStyles=function(){return this.parent!==void 0&&(!this.hasParent||this.parent&&this.parent.showPanelAsPage)},t.prototype.getHasFrameV2=function(){return this.shouldAddRunnerStyles()&&this.canHaveFrameStyles()},t.prototype.getIsNested=function(){return this.shouldAddRunnerStyles()&&!this.canHaveFrameStyles()},t.prototype.getCssRoot=function(e){var n=!!this.isCollapsed||!!this.isExpanded;return new te().append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expandableAnimating,n&&this.isAnimatingCollapseExpand).append(e.expanded,!!this.isExpanded&&this.renderedIsExpanded).append(e.expandable,n).append(e.nested,this.getIsNested()).toString()},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),t.prototype.getRootStyle=function(){var e={};return this.paddingLeft&&(e["--sv-element-add-padding-left"]=this.paddingLeft),this.paddingRight&&(e["--sv-element-add-padding-right"]=this.paddingRight),e},Object.defineProperty(t.prototype,"paddingLeft",{get:function(){var e=this;return this.getPropertyValue("paddingLeft",void 0,function(){return e.calcPaddingLeft()})},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return""},Object.defineProperty(t.prototype,"paddingRight",{get:function(){var e=this;return this.getPropertyValue("paddingRight",void 0,function(){return e.calcPaddingRight()})},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),t.prototype.calcPaddingRight=function(){return""},t.prototype.resetIndents=function(){this.resetPropertyValue("paddingLeft"),this.resetPropertyValue("paddingRight")},t.prototype.updateRootStyle=function(){var e={},n;if(this.parent){var r=this.parent.getColumsForElement(this);n=r.reduce(function(c,y){return y.effectiveWidth+c},0),n&&n!==100&&(e.flexGrow=1,e.flexShrink=0,e.flexBasis=n+"%",e.minWidth=void 0,e.maxWidth=this.maxWidth)}if(Object.keys(e).length==0){var o=""+this.minWidth;if(o&&o!="auto"){if(o.indexOf("px")!=-1&&this.survey){o=o.replace("px","");var s=parseFloat(o);isNaN(s)||(o=s*this.survey.widthScale/100,o=""+o+"px")}o="min(100%, "+o+")"}this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=o,e.maxWidth=this.maxWidth)}this.rootStyle=e},t.prototype.isContainsSelection=function(e){var n=void 0,r=M.getDocument();if(M.isAvailable()&&r&&r.selection)n=r.selection.createRange().parentElement();else{var o=B.getSelection();if(o&&o.rangeCount>0){var s=o.getRangeAt(0);s.startOffset!==s.endOffset&&(n=s.startContainer.parentNode)}}return n==e},Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(n){if(!(n&&e.isContainsSelection(n.target)))return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return this.state!=="default"},t.prototype.processTitleClick=function(){this.state!=="default"&&this.toggleState()},Object.defineProperty(t.prototype,"hasAdditionalTitleToolbar",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"additionalTitleToolbar",{get:function(){return this.getAdditionalTitleToolbar()},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return null},t.prototype.getCssTitle=function(e){if(!e)return"";var n=this.state!=="default",r=4;return new te().append(e.title).append(e.titleNumInline,(this.no||"").length>r||n).append(e.titleExpandable,n).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isDisabledStyle).append(e.titleReadOnly,this.isReadOnly).append(e.titleOnError,this.containsErrors).toString()},Object.defineProperty(t.prototype,"isDisabledStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[0]},enumerable:!1,configurable:!0}),t.prototype.getIsDisableAndReadOnlyStyles=function(e){var n=this.isPreviewStyle,r=e||this.isReadOnly,o=r&&!n,s=!this.isDefaultV2Theme&&(r||n);return[o,s]},Object.defineProperty(t.prototype,"isPreviewStyle",{get:function(){return!!this.survey&&this.survey.state==="preview"},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach(function(e){e.updateText()})},t.prototype.setWrapperElement=function(e){this.wrapperElement=e},t.prototype.getWrapperElement=function(){return this.wrapperElement},Object.defineProperty(t.prototype,"isAnimatingCollapseExpand",{get:function(){return this._isAnimatingCollapseExpand||this._renderedIsExpanded!=this.isExpanded},set:function(e){e!==this._isAnimatingCollapseExpand&&(this._isAnimatingCollapseExpand=e,this.updateElementCss(!1))},enumerable:!1,configurable:!0}),t.prototype.onElementExpanded=function(e){},t.prototype.getExpandCollapseAnimationOptions=function(){var e=this,n=function(o){e.isAnimatingCollapseExpand=!0,Ln(o)},r=function(o){e.isAnimatingCollapseExpand=!1,hn(o)};return{getRerenderEvent:function(){return e.onElementRerendered},getEnterOptions:function(){var o=e.isPanel?e.cssClasses.panel:e.cssClasses;return{cssClass:o.contentEnter,onBeforeRunAnimation:n,onAfterRunAnimation:function(s){r(s),e.onElementExpanded(!0)}}},getLeaveOptions:function(){var o=e.isPanel?e.cssClasses.panel:e.cssClasses;return{cssClass:o.contentLeave,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getAnimatedElement:function(){var o,s=e.isPanel?e.cssClasses.panel:e.cssClasses;if(s.content){var c=kt(s.content);if(c)return(o=e.getWrapperElement())===null||o===void 0?void 0:o.querySelector(":scope "+c)}},isAnimationEnabled:function(){return e.isExpandCollapseAnimationEnabled}}},Object.defineProperty(t.prototype,"isExpandCollapseAnimationEnabled",{get:function(){return this.animationAllowed&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedIsExpanded",{get:function(){return!!this._renderedIsExpanded},set:function(e){var n=this._renderedIsExpanded;this.animationCollapsed.sync(e),!this.isExpandCollapseAnimationEnabled&&!n&&this.renderedIsExpanded&&this.onElementExpanded(!1)},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){return i.prototype.getIsAnimationAllowed.call(this)&&!!this.survey&&!this.survey.isEndLoadingFromJson},t.prototype.afterRenderCore=function(e){this.onAfterRenderElement.fire(this,{htmlElement:e})},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.titleToolbarValue&&this.titleToolbarValue.dispose()},t.CreateDisabledDesignElements=!1,In([D({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),In([D({defaultValue:!1})],t.prototype,"isDragMe",void 0),In([D({onSet:function(e,n){n.colSpan=e}})],t.prototype,"effectiveColSpan",void 0),In([D({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),In([D({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),In([D({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),In([D()],t.prototype,"rootStyle",void 0),In([D()],t.prototype,"_renderedIsExpanded",void 0),t}(zo),Aa=function(){function i(t,e,n){var r=this;n===void 0&&(n=100),this._elements=t,this._renderedHandler=e,this._elementsToRenderCount=0,this._elementsToRenderTimer=void 0,this._elementRenderedHandler=function(o,s){var c;(c=o.onAfterRenderElement)===null||c===void 0||c.remove(r._elementRenderedHandler),r._elementsToRenderCount--,r._elementsToRenderCount<=0&&r.visibleElementsRendered()},this._elements.forEach(function(o){o.onAfterRenderElement&&(o.onAfterRenderElement.add(r._elementRenderedHandler),r._elementsToRenderCount++)}),this._elementsToRenderCount>0?this._elementsToRenderTimer=setTimeout(function(){r._elementsToRenderCount>0&&r.visibleElementsRendered()},n):this.visibleElementsRendered()}return i.prototype.stopWaitingForElementsRendering=function(){var t=this;this._elementsToRenderTimer&&(clearTimeout(this._elementsToRenderTimer),this._elementsToRenderTimer=void 0),this._elements.forEach(function(e){var n;(n=e.onAfterRenderElement)===null||n===void 0||n.remove(t._elementRenderedHandler)}),this._elementsToRenderCount=0},i.prototype.visibleElementsRendered=function(){var t=this._renderedHandler;this.dispose(),typeof t=="function"&&t()},i.prototype.dispose=function(){this.stopWaitingForElementsRendering(),this._elements=void 0,this._renderedHandler=void 0},i}(),ut=function(){function i(t,e,n,r){e===void 0&&(e=!1),this.owner=t,this.useMarkdown=e,this.name=n,this.values={},this.htmlValues={},this.onStringChanged=new Tn,this._localizationName=r,this.onCreating()}return Object.defineProperty(i,"defaultLocale",{get:function(){return z.localization.defaultLocaleName},set:function(t){z.localization.defaultLocaleName=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"localizationName",{get:function(){return this._localizationName},set:function(t){this._localizationName!=t&&(this._localizationName=t,this.strChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"allowLineBreaks",{get:function(){var t;return this._allowLineBreaks===void 0&&(this._allowLineBreaks=!1,this.name&&this.owner instanceof zo&&(this._allowLineBreaks=((t=G.findProperty(this.owner.getType(),this.name))===null||t===void 0?void 0:t.type)=="text")),this._allowLineBreaks},enumerable:!1,configurable:!0}),i.prototype.getIsMultiple=function(){return!1},Object.defineProperty(i.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var t=this.owner.getLocale();if(t||!this.sharedData)return t}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),i.prototype.strChanged=function(){this.searchableText=void 0,!(this.renderedText===void 0&&this.isEmpty&&!this.onGetTextCallback&&!this.localizationName)&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(i.prototype,"text",{get:function(){return this.pureText},set:function(t){this.setLocaleText(this.locale,t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"calculatedText",{get:function(){return this.renderedText=this.calculatedTextValue!==void 0?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),i.prototype.calcText=function(){var t=this.pureText;return t&&this.owner&&this.owner.getProcessedText&&t.indexOf("{")>-1&&(t=this.owner.getProcessedText(t)),this.onGetTextCallback&&(t=this.onGetTextCallback(t)),t},Object.defineProperty(i.prototype,"pureText",{get:function(){var t=this.locale;t||(t=this.defaultLoc);var e=this.getValue(t);if(this.isValueEmpty(e)&&t===this.defaultLoc&&(e=this.getValue(H.defaultLocale)),this.isValueEmpty(e)){var n=this.getRootDialect(t);n&&(e=this.getValue(n))}return this.isValueEmpty(e)&&t!==this.defaultLoc&&(e=this.getValue(this.defaultLoc)),this.isValueEmpty(e)&&this.getLocalizationName()&&(e=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(e=this.onGetLocalizationTextCallback(e))),e||(e=this.defaultValue||""),e},enumerable:!1,configurable:!0}),i.prototype.getRootDialect=function(t){if(!t)return t;var e=t.indexOf("-");return e>-1?t.substring(0,e):""},i.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},i.prototype.getLocalizationStr=function(){var t=this.getLocalizationName();return t?ee(t,this.locale):""},Object.defineProperty(i.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.getValuesKeys().length==0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),i.prototype.getLocaleText=function(t){var e=this.getLocaleTextCore(t);return e||""},i.prototype.getLocaleTextCore=function(t){return t||(t=this.defaultLoc),this.getValue(t)},i.prototype.isLocaleTextEqualsWithDefault=function(t,e){var n=this.getLocaleTextCore(t);return n===e?!0:this.isValueEmpty(n)&&this.isValueEmpty(e)},i.prototype.clear=function(){this.setJson(void 0)},i.prototype.clearLocale=function(t){this.setLocaleText(t,void 0)},i.prototype.setLocaleText=function(t,e){if(t=this.getValueLoc(t),t&&e===void 0){var n=this.getValue(t);n!==void 0&&(this.deleteValue(t),this.fireStrChanged(t,n));return}if(!this.storeDefaultText&&this.isLocaleTextEqualsWithDefault(t,e)){if(!this.isValueEmpty(e)||t&&t!==this.defaultLoc)return;var r=H.defaultLocale,o=this.getValue(r);r&&!this.isValueEmpty(o)&&(this.setValue(r,e),this.fireStrChanged(r,o));return}if(!(!z.localization.storeDuplicatedTranslations&&!this.isValueEmpty(e)&&t&&t!=this.defaultLoc&&!this.getValue(t)&&e==this.getLocaleText(this.defaultLoc))){var s=this.curLocale;t||(t=this.defaultLoc);var c=this.onStrChanged&&t===s?this.pureText:void 0;delete this.htmlValues[t],this.isValueEmpty(e)?this.deleteValue(t):typeof e=="string"&&(this.canRemoveLocValue(t,e)?this.setLocaleText(t,null):(this.setValue(t,e),t==this.defaultLoc&&this.deleteValuesEqualsToDefault(e))),this.fireStrChanged(t,c)}},i.prototype.isValueEmpty=function(t){return t==null?!0:this.localizationName?!1:t===""},Object.defineProperty(i.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),i.prototype.canRemoveLocValue=function(t,e){if(z.localization.storeDuplicatedTranslations||t===this.defaultLoc)return!1;var n=this.getRootDialect(t);if(n){var r=this.getLocaleText(n);return r?r==e:this.canRemoveLocValue(n,e)}else return e==this.getLocaleText(this.defaultLoc)},i.prototype.fireStrChanged=function(t,e){if(this.strChanged(),!!this.onStrChanged){var n=this.pureText;(t!==this.curLocale||e!==n)&&this.onStrChanged(e,n)}},i.prototype.hasNonDefaultText=function(){var t=this.getValuesKeys();return t.length==0?!1:t.length>1||t[0]!=this.defaultLoc},i.prototype.getLocales=function(){var t=this.getValuesKeys();return t.length==0?[]:t},i.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var t=this.getValuesKeys();if(t.length==0){if(this.serializeCallBackText){var e=this.calcText();if(e)return e}return null}if(t.length==1&&t[0]==z.localization.defaultLocaleName&&!z.serialization.localizableStringSerializeAsObject)return this.values[t[0]];var n={};for(var r in this.values)n[r]=this.values[r];return n},i.prototype.setJson=function(t,e){if(this.sharedData){this.sharedData.setJson(t,e);return}if(this.values={},this.htmlValues={},t!=null)if(e)typeof t=="string"?this.values[z.defaultLocaleName]=t:(this.values=t,delete this.values.pos);else{if(typeof t=="string")this.setLocaleText(null,t);else for(var n in t)this.setLocaleText(n,t[n]);this.strChanged()}},Object.defineProperty(i.prototype,"renderAs",{get:function(){return!this.owner||typeof this.owner.getRenderer!="function"?i.defaultRenderer:this.owner.getRenderer(this.name)||i.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"renderAsData",{get:function(){return!this.owner||typeof this.owner.getRendererContext!="function"?this:this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),i.prototype.equals=function(t){return this.sharedData?this.sharedData.equals(t):!t||!t.values?!1:m.isTwoValueEquals(this.values,t.values,!1,!0,!1)},i.prototype.setFindText=function(t){if(this.searchText!=t){if(this.searchText=t,!this.searchableText){var e=this.textOrHtml;this.searchableText=e?e.toLowerCase():""}var n=this.searchableText,r=n&&t?n.indexOf(t):void 0;return r<0&&(r=void 0),(r!=null||this.searchIndex!=r)&&(this.searchIndex=r,this.onSearchChanged&&this.onSearchChanged()),this.searchIndex!=null}},i.prototype.onChanged=function(){},i.prototype.onCreating=function(){},i.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var t=this.locale;if(t||(t=this.defaultLoc),this.htmlValues[t]!==void 0)return!!this.htmlValues[t];var e=this.calculatedText;if(!e)return this.setHtmlValue(t,""),!1;if(this.getLocalizationName()&&e===this.getLocalizationStr())return this.setHtmlValue(t,""),!1;var n=this.owner.getMarkdownHtml(e,this.name);return this.setHtmlValue(t,n),!!n},i.prototype.setHtmlValue=function(t,e){this.htmlValues[t]=e},i.prototype.getHtmlValue=function(){var t=this.locale;return t||(t=this.defaultLoc),this.htmlValues[t]},i.prototype.deleteValuesEqualsToDefault=function(t){if(!z.localization.storeDuplicatedTranslations)for(var e=this.getValuesKeys(),n=0;n<e.length;n++)e[n]!=this.defaultLoc&&this.getValue(e[n])==t&&this.deleteValue(e[n])},i.prototype.getValue=function(t){return this.sharedData?this.sharedData.getValue(t):this.values[this.getValueLoc(t)]},i.prototype.setValue=function(t,e){this.sharedData?this.sharedData.setValue(t,e):this.values[this.getValueLoc(t)]=e},i.prototype.deleteValue=function(t){this.sharedData?this.sharedData.deleteValue(t):delete this.values[this.getValueLoc(t)]},i.prototype.getValueLoc=function(t){return this.disableLocalization?z.localization.defaultLocaleName:t},i.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(i.prototype,"defaultLoc",{get:function(){return z.localization.defaultLocaleName},enumerable:!1,configurable:!0}),i.SerializeAsObject=!1,i.defaultRenderer="sv-string-viewer",i.editableRenderer="sv-string-editor",i}(),Et=function(){function i(t){this.owner=t,this.values={}}return i.prototype.getIsMultiple=function(){return!0},Object.defineProperty(i.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this.getValue("")},set:function(t){this.setValue("",t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join(`
-`):""},set:function(t){this.value=t?t.split(`
-`):[]},enumerable:!1,configurable:!0}),i.prototype.getLocaleText=function(t){var e=this.getValueCore(t,!t||t===this.locale);return!e||!Array.isArray(e)||e.length==0?"":e.join(`
-`)},i.prototype.setLocaleText=function(t,e){var n=e?e.split(`
-`):null;this.setValue(t,n)},i.prototype.getValue=function(t){return this.getValueCore(t)},i.prototype.getValueCore=function(t,e){if(e===void 0&&(e=!0),t=this.getLocale(t),this.values[t])return this.values[t];if(e){var n=z.localization.defaultLocaleName;if(t!==n&&this.values[n])return this.values[n]}return[]},i.prototype.setValue=function(t,e){t=this.getLocale(t);var n=m.createCopy(this.values);!e||e.length==0?delete this.values[t]:this.values[t]=e,this.onValueChanged&&this.onValueChanged(n,this.values)},i.prototype.hasValue=function(t){return t===void 0&&(t=""),!this.isEmpty&&this.getValue(t).length>0},Object.defineProperty(i.prototype,"isEmpty",{get:function(){return this.getValuesKeys().length==0},enumerable:!1,configurable:!0}),i.prototype.getLocale=function(t){return t||(t=this.locale,t||z.localization.defaultLocaleName)},i.prototype.getLocales=function(){var t=this.getValuesKeys();return t.length==0?[]:t},i.prototype.getJson=function(){var t=this.getValuesKeys();return t.length==0?null:t.length==1&&t[0]==z.localization.defaultLocaleName&&!z.serialization.localizableStringSerializeAsObject?this.values[t[0]]:m.createCopy(this.values)},i.prototype.setJson=function(t){if(this.values={},!!t)if(Array.isArray(t))this.setValue(null,t);else for(var e in t)this.setValue(e,t[e])},i.prototype.getValuesKeys=function(){return Object.keys(this.values)},i}();function Da(i){return z&&z.confirmActionFunc?z.confirmActionFunc(i):confirm(i)}function Jr(i){var t=function(e){e?i.funcOnYes():i.funcOnNo&&i.funcOnNo()};z&&z.confirmActionAsync&&z.confirmActionAsync(i.message,t,i)||t(Da(i.message))}function no(){if(typeof no.isIEOrEdge>"u"){var i=navigator.userAgent,t=i.indexOf("MSIE "),e=i.indexOf("Trident/"),n=i.indexOf("Edge/");no.isIEOrEdge=n>0||e>0||t>0}return no.isIEOrEdge}function Wo(i,t){try{for(var e=atob(i.split(",")[1]),n=i.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(e.length),o=new Uint8Array(r),s=0;s<e.length;s++)o[s]=e.charCodeAt(s);var c=new Blob([r],{type:n});navigator&&navigator.msSaveBlob&&navigator.msSaveOrOpenBlob(c,t)}catch{}}function Pi(){return B.isAvailable()&&B.hasOwn("orientation")}var ro=function(i){return!!i&&!!("host"in i&&i.host)},xi=function(i){var t=z.environment.root;return typeof i=="string"?t.getElementById(i):i};function Yu(i,t){if(typeof z.environment>"u")return!1;var e=z.environment.root,n=ro(e)?e.host.clientHeight:e.documentElement.clientHeight,r=i.getBoundingClientRect(),o=Math.max(n,B.getInnerHeight()),s=-50,c=o+t,y=r.top,w=r.bottom,N=Math.max(s,y),Q=Math.min(c,w);return N<=Q}function Jt(i){var t=z.environment.root;return i?i.scrollHeight>i.clientHeight&&(getComputedStyle(i).overflowY==="scroll"||getComputedStyle(i).overflowY==="auto")||i.scrollWidth>i.clientWidth&&(getComputedStyle(i).overflowX==="scroll"||getComputedStyle(i).overflowX==="auto")?i:Jt(i.parentElement):ro(t)?t.host:t.documentElement}function Vi(i){var t=z.environment;if(t){var e=t.root,n=e.getElementById(i);if(n){var r=Jt(n);r&&setTimeout(function(){return r.dispatchEvent(new CustomEvent("scroll"))},10)}}}function Dr(i){var t=B.getLocation();!i||!t||(t.href=Gs(i))}function $o(i){return i?["url(",i,")"].join(""):""}function Go(i){return typeof i=="string"?/^data:((?:\w+\/(?:(?!;).)+)?)((?:;[^;]+?)*),(.+)$/.test(i):null}var yn={changecamera:"flip-24x24",clear:"clear-24x24",cancel:"cancel-24x24",closecamera:"close-24x24",defaultfile:"file-72x72",choosefile:"folder-24x24",file:"toolbox-file-24x24",left:"chevronleft-16x16",modernbooleancheckchecked:"plus-32x32",modernbooleancheckunchecked:"minus-32x32",more:"more-24x24",navmenu_24x24:"navmenu-24x24",removefile:"error-24x24",takepicture:"camera-32x32",takepicture_24x24:"camera-24x24",v2check:"check-16x16",checked:"check-16x16",v2check_24x24:"check-24x24","back-to-panel_16x16":"restoredown-16x16",clear_16x16:"clear-16x16",close_16x16:"close-16x16",collapsedetail:"collapsedetails-16x16",expanddetail:"expanddetails-16x16","full-screen_16x16":"maximize-16x16",loading:"loading-48x48",minimize_16x16:"minimize-16x16",next_16x16:"chevronright-16x16",previous_16x16:"chevronleft-16x16","no-image":"noimage-48x48","ranking-dash":"rankingundefined-16x16","drag-n-drop":"drag-24x24","ranking-arrows":"reorder-24x24",restore_16x16:"fullsize-16x16",reset:"restore-24x24",search:"search-24x24",average:"smiley-rate5-24x24",excellent:"smiley-rate9-24x24",good:"smiley-rate7-24x24",normal:"smiley-rate6-24x24","not-good":"smiley-rate4-24x24",perfect:"smiley-rate10-24x24",poor:"smiley-rate3-24x24",terrible:"smiley-rate1-24x24","very-good":"smiley-rate8-24x24","very-poor":"smiley-rate2-24x24",add_16x16:"add-16x16",add_24x24:"add-24x24",alert_24x24:"warning-24x24",apply:"apply-24x24","arrow-down":"arrowdown-24x24","arrow-left":"arrowleft-24x24","arrow-left_16x16":"arrowleft-16x16",arrowleft:"arrowleft-16x16","arrow-right":"arrowright-24x24","arrow-right_16x16":"arrowright-16x16",arrowright:"arrowright-16x16","arrow-up":"arrowup-24x24",boolean:"toolbox-boolean-24x24","change-question-type_16x16":"speechbubble-16x16",checkbox:"toolbox-checkbox-24x24","collapse-detail_16x16":"minusbox-16x16","collapse-panel":"collapse-pg-24x24",collapse_16x16:"collapse-16x16","color-picker":"dropper-16x16",comment:"toolbox-longtext-24x24",config:"wrench-24x24",copy:"copy-24x24",default:"toolbox-customquestion-24x24",delete_16x16:"delete-16x16",delete_24x24:"delete-24x24",delete:"delete-24x24","description-hide":"hidehint-16x16",description:"hint-16x16","device-desktop":"desktop-24x24","device-phone":"phone-24x24","device-rotate":"rotate-24x24","device-tablet":"tablet-24x24",download:"download-24x24","drag-area-indicator":"drag-24x24","drag-area-indicator_24x16":"draghorizontal-24x16",v2dragelement_16x16:"draghorizontal-24x16","drop-down-arrow":"chevrondown-24x24","drop-down-arrow_16x16":"chevrondown-16x16",chevron_16x16:"chevrondown-16x16",dropdown:"toolbox-dropdown-24x24",duplicate_16x16:"copy-16x16",edit:"edit-24x24",edit_16x16:"edit-16x16","editing-finish":"finishedit-24x24",error:"error-16x16","expand-detail_16x16":"plusbox-16x16","expand-panel":"expand-pg-24x24",expand_16x16:"expand-16x16",expression:"toolbox-expression-24x24","fast-entry":"textedit-24x24",fix:"fix-24x24",html:"toolbox-html-24x24",image:"toolbox-image-24x24",imagepicker:"toolbox-imagepicker-24x24",import:"import-24x24","invisible-items":"invisible-24x24",language:"language-24x24",load:"import-24x24","logic-collapse":"collapse-24x24","logic-expand":"expand-24x24",logo:"image-48x48",matrix:"toolbox-matrix-24x24",matrixdropdown:"toolbox-multimatrix-24x24",matrixdynamic:"toolbox-dynamicmatrix-24x24",multipletext:"toolbox-multipletext-24x24",panel:"toolbox-panel-24x24",paneldynamic:"toolbox-dynamicpanel-24x24",preview:"preview-24x24",radiogroup:"toolbox-radiogroup-24x24",ranking:"toolbox-ranking-24x24",rating:"toolbox-rating-24x24",redo:"redo-24x24",remove_16x16:"remove-16x16",required:"required-16x16",save:"save-24x24","select-page":"selectpage-24x24",settings:"settings-24x24",settings_16x16:"settings-16x16",signaturepad:"toolbox-signature-24x24","switch-active_16x16":"switchon-16x16","switch-inactive_16x16":"switchoff-16x16",tagbox:"toolbox-tagbox-24x24",text:"toolbox-singleline-24x24",theme:"theme-24x24",toolbox:"toolbox-24x24",undo:"undo-24x24",visible:"visible-24x24",wizard:"wand-24x24",searchclear:"clear-16x16","chevron-16x16":"chevrondown-16x16",chevron:"chevrondown-24x24",progressbuttonv2:"arrowleft-16x16",right:"chevronright-16x16","add-lg":"add-24x24",add:"add-24x24"};function Jo(i){var t=$s(i);return t||io(i)}function io(i){var t="icon-",e=i.replace(t,""),n=yn[e]||e;return t+n}function $s(i){var t=z.customIcons[i];return t?io(t):(i=io(i),t=z.customIcons[i],t||null)}function Si(i,t,e,n,r,o){if(r){i!=="auto"&&(r.style.width=(i||t||16)+"px",r.style.height=(i||e||16)+"px");var s=r.childNodes[0],c=Jo(n);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+c);var y=r.getElementsByTagName("title")[0];if(o)y||(y=M.getDocument().createElementNS("http://www.w3.org/2000/svg","title"),r.appendChild(y));else{y&&r.removeChild(y);return}y.textContent=o}}function Gs(i){return i&&(i.toLocaleLowerCase().indexOf("javascript:")>-1?encodeURIComponent(i):i)}function La(i){return typeof i!="function"?i:i()}function Ut(i){if(typeof i=="string")if(isNaN(Number(i))){if(i.includes("px"))return parseFloat(i)}else return Number(i);if(typeof i=="number")return i}function Zo(i){if(Ut(i)===void 0)return i}var dn="sv-focused--by-key";function Ma(i){var t=i.target;!t||!t.classList||t.classList.remove(dn)}function oo(i,t){if(!(i.target&&i.target.contentEditable==="true")){var e=i.target;if(e){var n=i.which||i.keyCode;if(n===9){e.classList&&!e.classList.contains(dn)&&e.classList.add(dn);return}if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}n===13||n===32?e.click&&e.click():(!t||t.processEsc)&&n===27&&e.blur&&e.blur()}}}function gr(i,t){if(t===void 0&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!(i.target&&i.target.contentEditable==="true")){var e=i.which||i.keyCode,n=[13,32];t.processEsc&&n.push(27),n.indexOf(e)!==-1&&i.preventDefault()}}function Zr(i,t){if(i){t||(t=function(n){return M.getComputedStyle(n)});var e=t(i);i.style.height="auto",i.scrollHeight&&(i.style.height=i.scrollHeight+parseFloat(e.borderTopWidth)+parseFloat(e.borderBottomWidth)+"px")}}function Js(i){return i.originalEvent||i}function jt(i){i.preventDefault(),i.stopPropagation()}function kt(i){if(!i)return i;var t=/\s*?([\w-]+)\s*?/g;return i.replace(t,".$1")}function so(i){return getComputedStyle?Number.parseFloat(getComputedStyle(i).width):i.offsetWidth}function Ko(i){return!!(i.offsetWidth||i.offsetHeight||i.getClientRects().length)}function Zs(i){for(var t,e=0;e<i.children.length;e++)!t&&getComputedStyle(i.children[e]).display!=="none"&&(t=i.children[e]);return t}function _a(i,t){if(t===void 0&&(t=!0),B.isAvailable()&&M.isAvailable()&&i.childNodes.length>0){var e=B.getSelection();if(e.rangeCount==0)return;var n=e.getRangeAt(0);n.setStart(n.endContainer,n.endOffset),n.setEndAfter(i.lastChild),e.removeAllRanges(),e.addRange(n);var r=e.toString(),o=i.innerText;r=r.replace(/\r/g,""),t&&(r=r.replace(/\n/g,""),o=o.replace(/\n/g,""));var s=r.length;for(i.innerText=o,n=M.getDocument().createRange(),n.setStart(i.firstChild,0),n.setEnd(i.firstChild,0),e.removeAllRanges(),e.addRange(n);e.toString().length<o.length-s;){var c=e.toString().length;if(e.modify("extend","forward","character"),e.toString().length==c)break}n=e.getRangeAt(0),n.setStart(n.endContainer,n.endOffset)}}function Ei(i,t){if(!(!t||!i)&&typeof t=="object")for(var e in i){var n=i[e];!Array.isArray(n)&&n&&typeof n=="object"?((!t[e]||typeof t[e]!="object")&&(t[e]={}),Ei(n,t[e])):t[e]=n}}function ao(i,t){var e={};Ei(t.list,e),Ei(i.list,e),i.list=e}(function(){function i(){this._result=""}return i.prototype.log=function(t){this._result+="->"+t},Object.defineProperty(i.prototype,"result",{get:function(){return this._result},enumerable:!1,configurable:!0}),i})();function ja(i,t,e){var n=new ut(void 0),r=z.showDialog({componentName:"sv-string-viewer",data:{locStr:n,locString:n,model:n},onApply:function(){return t(!0),!0},onCancel:function(){return t(!1),!1},title:i||e.message,displayMode:"popup",isFocusedContent:!1,cssClass:e.cssClass||"sv-popup--confirm"},e.rootElement),o=r.footerToolbar,s=o.getActionById("apply"),c=o.getActionById("cancel");return c.title=ee("cancel",e.locale),c.innerCss="sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small",s.title=e.applyTitle||ee("ok",e.locale),s.innerCss="sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger",uo(r),!0}function uo(i){i.width="min-content"}function Kr(i,t){B.isFileReaderAvailable()&&(i.value="",i.onchange=function(e){if(B.isFileReaderAvailable()&&!(!i||!i.files||i.files.length<1)){for(var n=[],r=0;r<i.files.length;r++)n.push(i.files[r]);t(n)}},i.click())}function Na(i,t,e){var n=new Map,r=new Map,o=new Map,s=new Map;i.forEach(function(Ee){var me=e(Ee);if(!n.has(me))n.set(e(Ee),Ee);else throw new Error("keys must be unique")}),t.forEach(function(Ee){var me=e(Ee);if(!r.has(me))r.set(me,Ee);else throw new Error("keys must be unique")});var c=[],y=[];r.forEach(function(Ee,me){n.has(me)?o.set(me,o.size):c.push(Ee)}),n.forEach(function(Ee,me){r.has(me)?s.set(me,s.size):y.push(Ee)});var w=[];o.forEach(function(Ee,me){var ze=s.get(me),Wt=r.get(me);ze!==Ee&&w.push({item:Wt,movedForward:ze<Ee})});var N=new Array(i.length),Q=0,Y=Array.from(o.keys());i.forEach(function(Ee,me){o.has(e(Ee))?(N[me]=r.get(Y[Q]),Q++):N[me]=Ee});var ce=new Map,fe=[];N.forEach(function(Ee){var me=e(Ee);r.has(me)?fe.length>0&&(ce.set(me,fe),fe=[]):fe.push(Ee)});var Oe=new Array;return r.forEach(function(Ee,me){ce.has(me)&&ce.get(me).forEach(function(ze){Oe.push(ze)}),Oe.push(Ee)}),fe.forEach(function(Ee){Oe.push(Ee)}),{reorderedItems:w,deletedItems:y,addedItems:c,mergedItems:Oe}}function qa(i){if(M.isAvailable()){var t=M.getComputedStyle(i),e=t.paddingTop,n=t.paddingBottom,r=t.borderTopWidth,o=t.borderBottomWidth,s=t.marginTop,c=t.marginBottom,y=t.boxSizing,w=i.offsetHeight+"px";if(y=="content-box"){var N=i.offsetHeight;[o,r,n,e].forEach(function(Q){N-=parseFloat(Q)}),w=N+"px"}return{paddingTop:e,paddingBottom:n,borderTopWidth:r,borderBottomWidth:o,marginTop:s,marginBottom:c,heightFrom:"0px",heightTo:w}}else return}function Yr(i,t,e){var n;e===void 0&&(e="--animation-"),i.__sv_created_properties=(n=i.__sv_created_properties)!==null&&n!==void 0?n:[],Object.keys(t).forEach(function(r){var o=""+e+r.split(/\.?(?=[A-Z])/).join("-").toLowerCase();i.style.setProperty(o,t[r]),i.__sv_created_properties.push(o)})}function Ln(i){Yr(i,qa(i))}function hn(i){Array.isArray(i.__sv_created_properties)&&(i.__sv_created_properties.forEach(function(t){i.style.removeProperty(t)}),delete i.__sv_created_properties)}function Ks(i){return Math.floor(i*100)/100}var lo=typeof globalThis<"u"?globalThis.document:(void 0).document,Ys=lo?{root:lo,_rootElement:M.getBody(),get rootElement(){var i;return(i=this._rootElement)!==null&&i!==void 0?i:M.getBody()},set rootElement(i){this._rootElement=i},_popupMountContainer:M.getBody(),get popupMountContainer(){var i;return(i=this._popupMountContainer)!==null&&i!==void 0?i:M.getBody()},set popupMountContainer(i){this._popupMountContainer=i},svgMountContainer:lo.head,stylesSheetsMountContainer:lo.head}:void 0,Yo={file:{minWidth:"240px"},comment:{minWidth:"200px"}},z={version:"",designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(i){this.designMode.showEmptyDescriptions=i},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(i){this.designMode.showEmptyTitles=i},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:"default"},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(i){this.localization.useLocalTimeZone=i},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(i){this.localization.storeDuplicatedTranslations=i},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(i){this.localization.defaultLocaleName=i},web:{onBeforeRequestChoices:function(i,t){},encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey"},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(i){this.web.encodeUrlParams=i},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(i){this.web.cacheLoadedChoices=i},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(i){this.web.cacheLoadedChoices=i},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(i){this.web.disableQuestionWhileLoadingChoices=i},get surveyServiceUrl(){return this.web.surveyServiceUrl},set surveyServiceUrl(i){this.web.surveyServiceUrl=i},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(i){this.triggers.executeCompleteOnValueChanged=i},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(i){this.triggers.changeNavigationButtonsOnComplete=i},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(i){this.triggers.executeSkipOnValueChanged=i},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1,matrixDropdownColumnSerializeTitle:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(i){this.serialization.itemValueSerializeAsObject=i},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(i){this.serialization.itemValueSerializeDisplayText=i},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject},set serializeLocalizableStringAsObject(i){this.serialization.localizableStringSerializeAsObject=i},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(i){this.lazyRender.enabled=i},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(i){this.lazyRender.firstBatchSize=i},matrix:{defaultCellType:"dropdown",defaultRowName:"default",totalsSuffix:"-total",maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:Yo,rateSize:"small"},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(i){this.matrix.defaultRowName=i},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(i){this.matrix.defaultCellType=i},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(i){this.matrix.totalsSuffix=i},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(i){this.matrix.maxRowCount=i},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(i){this.matrix.maxRowCountInCondition=i},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(i){this.matrix.renderRemoveAsIcon=i},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(i){this.panel.maxPanelCountInCondition=i},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(i){this.panel.maxPanelCount=i},readOnly:{enableValidation:!1,commentRenderMode:"textarea",textRenderMode:"input"},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(i){this.readOnly.commentRenderMode=i},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(i){this.readOnly.textRenderMode=i},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(i){this.numbering.includeQuestionsWithHiddenTitle=i},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(i){this.numbering.includeQuestionsWithHiddenNumber=i},enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:function(i,t){return i}},expressionDisableConversionChar:"#",get commentPrefix(){return z.commentSuffix},set commentPrefix(i){z.commentSuffix=i},commentSuffix:"-Comment",itemValueSeparator:"|",ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,dropdownSearchDelay:500,confirmActionFunc:function(i){return confirm(i)},confirmActionAsync:function(i,t,e){return ja(i,t,e)},minWidth:"300px",maxWidth:"100%",maxConditionRunCountOnValueChanged:10,notifications:{lifetime:2e3},autoAdvanceDelay:300,showItemsInOrder:"default",noneItemValue:"none",refuseItemValue:"refused",dontKnowItemValue:"dontknow",specialChoicesOrder:{selectAllItem:[-1],noneItem:[1],refuseItem:[2],dontKnowItem:[3],otherItem:[4]},choicesSeparator:", ",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,showDialog:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},rankingDragHandleArea:"entireItem",environment:Ys,showMaxLengthIndicator:!0,animationEnabled:!0,titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},legacyProgressBarView:!1,maskSettings:{patternPlaceholderChar:"_",patternEscapeChar:"\\",patternDefinitions:{9:/[0-9]/,a:/[a-zA-Z]/,"#":/[a-zA-Z0-9]/}},storeUtcDates:!1,onDateCreated:function(i,t,e){return i},parseNumber:function(i,t){return t}},vn=function(){function i(t,e){t===void 0&&(t=null),e===void 0&&(e=null),this.text=t,this.errorOwner=e,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return i.prototype.equals=function(t){return!t||!t.getErrorType||this.getErrorType()!==t.getErrorType()?!1:this.text===t.text&&this.visible===t.visible},Object.defineProperty(i.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new ut(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),i.prototype.getText=function(){var t=this.text;return t||(t=this.getDefaultText()),this.errorOwner&&(t=this.errorOwner.getErrorCustomText(t,this)),t},i.prototype.getErrorType=function(){return"base"},i.prototype.getDefaultText=function(){return""},i.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},i.prototype.getLocalizationString=function(t){return ee(t,this.getLocale())},i.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},i}(),Nt=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),co=function(i){Nt(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},t}(vn),Oi=function(i){Nt(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},t}(vn),Xo=function(i){Nt(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},t}(vn),es=function(i){Nt(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,null,n)||this;return r.maxSize=e,r.locText.text=r.getText(),r}return t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return ee("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){var e=["Bytes","KB","MB","GB","TB"],n=[0,0,2,3,3];if(this.maxSize===0)return"0 Byte";var r=Math.floor(Math.log(this.maxSize)/Math.log(1024)),o=this.maxSize/Math.pow(1024,r);return o.toFixed(n[r])+" "+e[r]},t}(vn),Xu=function(i){Nt(t,i);function t(e,n,r){r===void 0&&(r=null);var o=i.call(this,null,r)||this;return o.status=e,o.response=n,o}return t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){var e=this.getLocalizationString("urlRequestError");return e?e.format(this.status,this.response):""},t}(vn),el=function(i){Nt(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},t}(vn),Ba=function(i){Nt(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},t}(vn),fo=function(i){Nt(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},t}(vn),Fa=function(i){Nt(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},t}(vn),Ti=function(i){Nt(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"eachrowuniqueeerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("eachRowUniqueError")},t}(vn),ka=function(i){Nt(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,null,n)||this;return r.minRowCount=e,r}return t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return ee("minRowCountError").format(this.minRowCount)},t}(vn),Qa=function(i){Nt(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},t}(vn),bn=function(i){Nt(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this,e,n)||this;return r.text=e,r}return t.prototype.getErrorType=function(){return"custom"},t}(vn),Lr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),en=function(){function i(t,e){e===void 0&&(e=null),this.value=t,this.error=e}return i}(),Xn=function(i){Lr(t,i);function t(){var e=i.call(this)||this;return e.createLocalizableString("text",e,!0),e}return Object.defineProperty(t.prototype,"isValidator",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return this.errorOwner&&this.errorOwner.getSurvey?this.errorOwner.getSurvey():null},Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,n,r,o){return null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.errorOwner?this.errorOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.errorOwner?this.errorOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){var n=this,r=new bn(this.getErrorText(e),this.errorOwner);return r.onUpdateErrorTextCallback=function(o){return o.text=n.getErrorText(e)},r},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(Je),Xs=function(){function i(){}return i.prototype.run=function(t){var e=this,n=[],r=null,o=null;this.prepareAsyncValidators();for(var s=[],c=t.getValidators(),y=0;y<c.length;y++){var w=c[y];!r&&w.isValidateAllValues&&(r=t.getDataFilteredValues(),o=t.getDataFilteredProperties()),w.isAsync&&(this.asyncValidators.push(w),w.onAsyncCompleted=function(Q){if(Q&&Q.error&&s.push(Q.error),!!e.onAsyncCompleted){for(var Y=0;Y<e.asyncValidators.length;Y++)if(e.asyncValidators[Y].isRunning)return;e.onAsyncCompleted(s)}})}c=t.getValidators();for(var y=0;y<c.length;y++){var w=c[y],N=w.validate(t.validatedValue,t.getValidatorTitle(),r,o);N&&N.error&&n.push(N.error)}return this.asyncValidators.length==0&&this.onAsyncCompleted&&this.onAsyncCompleted([]),n},i.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var t=0;t<this.asyncValidators.length;t++)this.asyncValidators[t].onAsyncCompleted=null;this.asyncValidators=[]},i}(),Ha=function(i){Lr(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.minValue=e,r.maxValue=n,r}return t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),this.isValueEmpty(e))return null;if(!m.isNumber(e))return new en(null,new Xo(this.text,this.errorOwner));var s=new en(m.getNumber(e));return this.minValue!==null&&this.minValue>s.value?(s.error=this.createCustomError(n),s):this.maxValue!==null&&this.maxValue<s.value?(s.error=this.createCustomError(n),s):typeof e=="number"?null:s},t.prototype.getDefaultErrorText=function(e){var n=e||this.getLocalizationString("value");return this.minValue!==null&&this.maxValue!==null?this.getLocalizationFormatString("numericMinMax",n,this.minValue,this.maxValue):this.minValue!==null?this.getLocalizationFormatString("numericMin",n,this.minValue):this.getLocalizationFormatString("numericMax",n,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!1,configurable:!0}),t}(Xn),ea=function(i){Lr(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),this.isValueEmpty(e))return null;if(!this.allowDigits){var s=/\d+$/;if(s.test(e))return new en(null,this.createCustomError("textNoDigitsAllow"))}return this.minLength>0&&e.length<this.minLength?new en(null,this.createCustomError(n)):this.maxLength>0&&e.length>this.maxLength?new en(null,this.createCustomError(n)):null},t.prototype.getDefaultErrorText=function(e){return e==="textNoDigitsAllow"?this.getLocalizationString(e):this.minLength>0&&this.maxLength>0?this.getLocalizationFormatString("textMinMaxLength",this.minLength,this.maxLength):this.minLength>0?this.getLocalizationFormatString("textMinLength",this.minLength):this.getLocalizationFormatString("textMaxLength",this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits")},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!1,configurable:!0}),t}(Xn),Xr=function(i){Lr(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.minCount=e,r.maxCount=n,r}return t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,n,r,o){if(e==null||e.constructor!=Array)return null;var s=e.length;return s==0?null:this.minCount&&s<this.minCount?new en(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&s>this.maxCount?new en(null,this.createCustomError(this.getLocalizationFormatString("maxSelectError",this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!1,configurable:!0}),t}(Xn),Rn=function(i){Lr(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.regex=e,n}return t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,n,r,o){if(n===void 0&&(n=null),!this.regex||this.isValueEmpty(e))return null;var s=this.createRegExp();if(Array.isArray(e))for(var c=0;c<e.length;c++){var y=this.hasError(s,e[c],n);if(y)return y}return this.hasError(s,e,n)},t.prototype.hasError=function(e,n,r){return e.test(n)?null:new en(n,this.createCustomError(r))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"caseInsensitive",{get:function(){return this.getPropertyValue("caseInsensitive")},set:function(e){this.setPropertyValue("caseInsensitive",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"insensitive",{get:function(){return this.caseInsensitive},set:function(e){this.caseInsensitive=e},enumerable:!1,configurable:!0}),t.prototype.createRegExp=function(){return new RegExp(this.regex,this.caseInsensitive?"i":"")},t}(Xn),ts=function(i){Lr(t,i);function t(){var e=i.call(this)||this;return e.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,e}return t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,n,r,o){return n===void 0&&(n=null),!e||this.re.test(e)?null:new en(e,this.createCustomError(n))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(Xn),ta=function(i){Lr(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.conditionRunner=null,n.isRunningValue=!1,n.expression=e,n}return t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return this.ensureConditionRunner(!1)?this.conditionRunner.isAsync:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,n,r,o){var s=this;if(n===void 0&&(n=null),r===void 0&&(r=null),o===void 0&&(o=null),!this.expression)return null;this.conditionRunner&&(this.conditionRunner.onRunComplete=null),this.ensureConditionRunner(!0),this.conditionRunner.onRunComplete=function(y){s.isRunningValue=!1,s.onAsyncCompleted&&s.onAsyncCompleted(s.generateError(y,e,n))},this.isRunningValue=!0;var c=this.conditionRunner.run(r,o);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(c,e,n))},t.prototype.generateError=function(e,n,r){return e?null:new en(n,this.createCustomError(r))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationFormatString("invalidExpression",this.expression)},t.prototype.ensureConditionRunner=function(e){return this.expression?(e||!this.conditionRunner?this.conditionRunner=new pn(this.expression):this.conditionRunner.expression=this.expression,!0):!1},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(Xn);G.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),G.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new Ha},"surveyvalidator"),G.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],function(){return new ea},"surveyvalidator"),G.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new Xr},"surveyvalidator"),G.addClass("regexvalidator",["regex",{name:"caseInsensitive:boolean",alternativeName:"insensitive"}],function(){return new Rn},"surveyvalidator"),G.addClass("emailvalidator",[],function(){return new ts},"surveyvalidator"),G.addClass("expressionvalidator",["expression:condition"],function(){return new ta},"surveyvalidator");var za=function(){function i(t,e){this.name=t,this.widgetJson=e,this.htmlTemplate=e.htmlTemplate?e.htmlTemplate:""}return i.prototype.afterRender=function(t,e){var n=this;this.widgetJson.afterRender&&(t.localeChangedCallback=function(){n.widgetJson.willUnmount&&n.widgetJson.willUnmount(t,e),n.widgetJson.afterRender(t,e)},this.widgetJson.afterRender(t,e))},i.prototype.willUnmount=function(t,e){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(t,e)},i.prototype.getDisplayValue=function(t,e){return e===void 0&&(e=void 0),this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(t,e):null},i.prototype.validate=function(t){if(this.widgetJson.validate)return this.widgetJson.validate(t)},i.prototype.isFit=function(t){return this.isLibraryLoaded()&&this.widgetJson.isFit?this.widgetJson.isFit(t):!1},Object.defineProperty(i.prototype,"canShowInToolbox",{get:function(){return this.widgetJson.showInToolbox===!1||po.Instance.getActivatedBy(this.name)!="customtype"?!1:!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showInToolbox",{get:function(){return this.widgetJson.showInToolbox!==!1},set:function(t){this.widgetJson.showInToolbox=t},enumerable:!1,configurable:!0}),i.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},i.prototype.activatedByChanged=function(t){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(t)},i.prototype.isLibraryLoaded=function(){return this.widgetJson.widgetIsLoaded?this.widgetJson.widgetIsLoaded()==!0:!0},Object.defineProperty(i.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),i}(),po=function(){function i(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new Gi}return Object.defineProperty(i.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),i.prototype.add=function(t,e){e===void 0&&(e="property"),this.addCustomWidget(t,e)},i.prototype.addCustomWidget=function(t,e){e===void 0&&(e="property");var n=t.name;n||(n="widget_"+this.widgets.length+1);var r=new za(n,t);return this.widgetsValues.push(r),r.init(),this.widgetsActivatedBy[n]=e,r.activatedByChanged(e),this.onCustomWidgetAdded.fire(r,null),r},i.prototype.getActivatedBy=function(t){var e=this.widgetsActivatedBy[t];return e||"property"},i.prototype.setActivatedBy=function(t,e){if(!(!t||!e)){var n=this.getCustomWidgetByName(t);n&&(this.widgetsActivatedBy[t]=e,n.activatedByChanged(e))}},i.prototype.clear=function(){this.widgetsValues=[]},i.prototype.getCustomWidgetByName=function(t){for(var e=0;e<this.widgets.length;e++)if(this.widgets[e].name==t)return this.widgets[e];return null},i.prototype.getCustomWidget=function(t){for(var e=0;e<this.widgetsValues.length;e++)if(this.widgetsValues[e].isFit(t))return this.widgetsValues[e];return null},i.Instance=new i,i}(),Ua=function(){function i(){this.renderersHash={},this.defaultHash={}}return i.prototype.unregisterRenderer=function(t,e){delete this.renderersHash[t][e],this.defaultHash[t]===e&&delete this.defaultHash[t]},i.prototype.registerRenderer=function(t,e,n,r){r===void 0&&(r=!1),this.renderersHash[t]||(this.renderersHash[t]={}),this.renderersHash[t][e]=n,r&&(this.defaultHash[t]=e)},i.prototype.getRenderer=function(t,e){var n=this.renderersHash[t];if(n){if(e&&n[e])return n[e];var r=this.defaultHash[t];if(r&&n[r])return n[r]}return"default"},i.prototype.getRendererByQuestion=function(t){return this.getRenderer(t.getType(),t.renderAs)},i.prototype.clear=function(){this.renderersHash={}},i.Instance=new i,i}(),ho=function(){function i(t){var e=this;this.options=t,this.onPropertyChangedCallback=function(){e.element&&(e.element.value=e.getTextValue(),e.updateElement())},this.question.registerFunctionOnPropertyValueChanged(this.options.propertyName,this.onPropertyChangedCallback,"__textarea")}return i.prototype.updateElement=function(){var t=this;this.element&&this.autoGrow&&setTimeout(function(){return Zr(t.element)},1)},i.prototype.setElement=function(t){t&&(this.element=t,this.updateElement())},i.prototype.resetElement=function(){this.element=void 0},i.prototype.getTextValue=function(){return this.options.getTextValue&&this.options.getTextValue()||""},i.prototype.onTextAreaChange=function(t){this.options.onTextAreaChange&&this.options.onTextAreaChange(t)},i.prototype.onTextAreaInput=function(t){this.options.onTextAreaInput&&this.options.onTextAreaInput(t),this.element&&this.autoGrow&&Zr(this.element)},i.prototype.onTextAreaKeyDown=function(t){this.options.onTextAreaKeyDown&&this.options.onTextAreaKeyDown(t)},i.prototype.onTextAreaBlur=function(t){this.onTextAreaChange(t),this.options.onTextAreaBlur&&this.options.onTextAreaBlur(t)},i.prototype.onTextAreaFocus=function(t){this.options.onTextAreaFocus&&this.options.onTextAreaFocus(t)},Object.defineProperty(i.prototype,"question",{get:function(){return this.options.question},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this.options.id()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"placeholder",{get:function(){return this.options.placeholder()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"className",{get:function(){return this.options.className()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"maxLength",{get:function(){if(this.options.maxLength)return this.options.maxLength()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"autoGrow",{get:function(){if(this.options.autoGrow)return this.options.autoGrow()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rows",{get:function(){if(this.options.rows)return this.options.rows()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cols",{get:function(){if(this.options.cols)return this.options.cols()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDisabledAttr",{get:function(){return this.options.isDisabledAttr()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isReadOnlyAttr",{get:function(){if(this.options.isReadOnlyAttr)return this.options.isReadOnlyAttr()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaRequired",{get:function(){if(this.options.ariaRequired)return this.options.ariaRequired()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaLabel",{get:function(){if(this.options.ariaLabel)return this.options.ariaLabel()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaInvalid",{get:function(){if(this.options.ariaInvalid)return this.options.ariaInvalid()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaLabelledBy",{get:function(){if(this.options.ariaLabelledBy)return this.options.ariaLabelledBy()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaDescribedBy",{get:function(){if(this.options.ariaDescribedBy)return this.options.ariaDescribedBy()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ariaErrormessage",{get:function(){if(this.options.ariaErrormessage)return this.options.ariaErrormessage()},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.question&&this.question.unRegisterFunctionOnPropertyValueChanged(this.options.propertyName,"__textarea"),this.resetElement()},i}(),Ii=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),$=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},re=function(){function i(t,e,n){this.name=t,this.canRun=e,this.doComplete=n,this.runSecondCheck=function(r){return!1}}return i}(),K=function(i){Ii(t,i);function t(e){var n=i.call(this,e)||this;n.customWidgetData={isNeedRender:!0},n.hasCssErrorCallback=function(){return!1},n.isReadyValue=!0,n.dependedQuestions=[],n.onReadyChanged=n.addEvent(),n.triggersInfo=[],n.isRunningValidatorsValue=!1,n.isValueChangedInSurvey=!1,n.allowNotifyValueChanged=!0,n.id=t.getQuestionId(),n.onCreating(),n.createNewArray("validators",function(o){o.errorOwner=n}),n.addExpressionProperty("visibleIf",function(o,s){n.visible=s===!0}),n.addExpressionProperty("enableIf",function(o,s){n.readOnly=s===!1}),n.addExpressionProperty("requiredIf",function(o,s){n.isRequired=s===!0}),n.createLocalizableString("commentText",n,!0,"otherItemText"),n.createLocalizableString("requiredErrorText",n),n.addTriggerInfo("resetValueIf",function(){return!n.isEmpty()},function(){n.startSetValueOnExpression(),n.clearValue(),n.updateValueWithDefaults(),n.finishSetValueOnExpression()});var r=n.addTriggerInfo("setValueIf",function(){return!0},function(){return n.runSetValueExpression()});return r.runSecondCheck=function(o){return n.checkExpressionIf(o)},n.registerPropertyChangedHandlers(["width"],function(){n.updateQuestionCss(),n.parent&&n.parent.elementWidthChanged(n)}),n.registerPropertyChangedHandlers(["isRequired"],function(){!n.isRequired&&n.errors.length>0&&n.validate(),n.locTitle.strChanged(),n.clearCssClasses()}),n.registerPropertyChangedHandlers(["indent","rightIndent"],function(){n.resetIndents()}),n.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],function(){n.initCommentFromSurvey()}),n.registerFunctionOnPropertiesValueChanged(["no","readOnly","hasVisibleErrors","containsErrors"],function(){n.updateQuestionCss()}),n.registerPropertyChangedHandlers(["_isMobile"],function(){n.onMobileChanged()}),n.registerPropertyChangedHandlers(["colSpan"],function(){var o;(o=n.parent)===null||o===void 0||o.updateColumns()}),n}return t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&z.readOnly.commentRenderMode==="div"},t.prototype.allowMobileInDesignMode=function(){return!1},t.prototype.updateIsMobileFromSurvey=function(){this.setIsMobile(this.survey._isMobile)},t.prototype.setIsMobile=function(e){var n=e&&(this.allowMobileInDesignMode()||!this.isDesignMode);this.isMobile=n},t.prototype.getIsMobile=function(){return this._isMobile},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this.getIsMobile()},set:function(e){this._isMobile=e},enumerable:!1,configurable:!0}),t.prototype.themeChanged=function(e){},t.prototype.getDefaultTitle=function(){return this.name},t.prototype.createLocTitleProperty=function(){var e=this,n=i.prototype.createLocTitleProperty.call(this);return n.storeDefaultText=!0,n.onGetTextCallback=function(r){return r||(r=e.getDefaultTitle()),e.survey?e.survey.getUpdatedQuestionTitle(e,r):r},this.locProcessedTitle=new ut(this,!0),this.locProcessedTitle.sharedData=n,n},Object.defineProperty(t.prototype,"commentTextAreaModel",{get:function(){return this.commentTextAreaModelValue||(this.commentTextAreaModelValue=new ho(this.getCommentTextAreaOptions())),this.commentTextAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getCommentTextAreaOptions=function(){var e=this,n={question:this,id:function(){return e.commentId},propertyName:"comment",className:function(){return e.cssClasses.comment},placeholder:function(){return e.renderedCommentPlaceholder},isDisabledAttr:function(){return e.isInputReadOnly||!1},rows:function(){return e.commentAreaRows},autoGrow:function(){return e.autoGrowComment},maxLength:function(){return e.getOthersMaxLength()},ariaRequired:function(){return e.a11y_input_ariaRequired},ariaLabel:function(){return e.a11y_input_ariaLabel},getTextValue:function(){return e.comment},onTextAreaChange:function(r){e.onCommentChange(r)},onTextAreaInput:function(r){e.onCommentInput(r)}};return n},t.prototype.getSurvey=function(e){return e===void 0&&(e=!1),e?this.parent?this.parent.getSurvey(e):null:this.onGetSurvey?this.onGetSurvey():i.prototype.getSurvey.call(this)},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var n=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(n)},enumerable:!1,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.locTitle.strChanged(),this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.onAsyncRunningChanged=function(){this.updateIsReady()},t.prototype.updateIsReady=function(){var e=this.getIsQuestionReady();if(e){for(var n=this.getIsReadyDependsOn(),r=0;r<n.length;r++)if(!n[r].getIsQuestionReady()){e=!1;break}}this.setIsReady(e)},t.prototype.getIsQuestionReady=function(){return!this.isAsyncExpressionRunning&&this.getAreNestedQuestionsReady()},t.prototype.getAreNestedQuestionsReady=function(){var e=this.getIsReadyNestedQuestions();if(!Array.isArray(e))return!0;for(var n=0;n<e.length;n++)if(!e[n].isReady)return!1;return!0},t.prototype.getIsReadyNestedQuestions=function(){return this.getNestedQuestions()},t.prototype.setIsReady=function(e){var n=this.isReadyValue;this.isReadyValue=e,n!=e&&(this.getIsReadyDependends().forEach(function(r){return r.updateIsReady()}),this.onReadyChanged.fire(this,{question:this,isReady:e,oldIsReady:n}))},t.prototype.getIsReadyDependsOn=function(){return this.getIsReadyDependendCore(!0)},t.prototype.getIsReadyDependends=function(){return this.getIsReadyDependendCore(!1)},t.prototype.getIsReadyDependendCore=function(e){var n=this;if(!this.survey)return[];var r=this.survey.questionsByValueName(this.getValueName()),o=new Array;return r.forEach(function(s){s!==n&&o.push(s)}),e||(this.parentQuestion&&o.push(this.parentQuestion),this.dependedQuestions.length>0&&this.dependedQuestions.forEach(function(s){return o.push(s)})),o},t.prototype.choicesLoaded=function(){},Object.defineProperty(t.prototype,"page",{get:function(){return this.parentQuestion?this.parentQuestion.page:this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return null},t.prototype.delete=function(e){e===void 0&&(e=!0),this.removeFromParent(),e?this.dispose():this.resetDependedQuestions()},t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.addDependedQuestion=function(e){!e||this.dependedQuestions.indexOf(e)>-1||this.dependedQuestions.push(e)},t.prototype.removeDependedQuestion=function(e){if(e){var n=this.dependedQuestions.indexOf(e);n>-1&&this.dependedQuestions.splice(n,1)}},t.prototype.updateDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].updateDependedQuestion()},t.prototype.updateDependedQuestion=function(){},t.prototype.resetDependedQuestion=function(){},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return this.getLayoutType()==="flow"},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return e!=="flow"},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.notifySurveyVisibilityChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){this.updateIsVisibleProp(),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},t.prototype.notifyStateChanged=function(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed&&this.onHidingContent()},t.prototype.updateElementVisibility=function(){this.updateIsVisibleProp()},t.prototype.updateIsVisibleProp=function(){var e=this.getPropertyValue("isVisible"),n=this.isVisible;e!==n&&(this.setPropertyValue("isVisible",n),n||this.onHidingContent()),n!==this.visible&&this.areInvisibleElementsShowing&&this.updateQuestionCss(!0)},Object.defineProperty(t.prototype,"useDisplayValuesInDynamicTexts",{get:function(){return this.getPropertyValue("useDisplayValuesInDynamicTexts")},set:function(e){this.setPropertyValue("useDisplayValuesInDynamicTexts",e)},enumerable:!1,configurable:!0}),t.prototype.getUseDisplayValuesInDynamicTexts=function(){return this.useDisplayValuesInDynamicTexts},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty()?!1:this.areInvisibleElementsShowing?!0:this.isVisibleCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisibleInSurvey",{get:function(){return this.isVisible&&this.isParentVisible},enumerable:!1,configurable:!0}),t.prototype.isVisibleCore=function(){return this.visible},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){},Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber")},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.moveTo=function(e,n){return n===void 0&&(n=null),this.moveToBase(this.parent,e,n)},t.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:this.isEmpty()?0:1,requiredQuestionCount:this.isRequired?1:0,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:i.prototype.getProgressInfo.call(this)},t.prototype.ensureSetValueExpressionRunner=function(){var e=this;this.setValueExpressionRunner?this.setValueExpressionRunner.expression=this.setValueExpression:(this.setValueExpressionRunner=new Ir(this.setValueExpression),this.setValueExpressionRunner.onRunComplete=function(n){e.runExpressionSetValue(n)})},t.prototype.runSetValueExpression=function(){this.setValueExpression?(this.ensureSetValueExpressionRunner(),this.setValueExpressionRunner.run(this.getDataFilteredValues(),this.getDataFilteredProperties())):this.clearValue()},t.prototype.checkExpressionIf=function(e){return this.ensureSetValueExpressionRunner(),this.setValueExpressionRunner?this.canExecuteTriggerByKeys(e,this.setValueExpressionRunner):!1},t.prototype.addTriggerInfo=function(e,n,r){var o=new re(e,n,r);return this.triggersInfo.push(o),o},t.prototype.runTriggerInfo=function(e,n){var r=this[e.name];if(!r||e.isRunning||!e.canRun()){e.runSecondCheck(n)&&e.doComplete();return}e.runner?e.runner.expression=r:(e.runner=new Ir(r),e.runner.onRunComplete=function(o){o===!0&&e.doComplete(),e.isRunning=!1}),!(!this.canExecuteTriggerByKeys(n,e.runner)&&!e.runSecondCheck(n))&&(e.isRunning=!0,e.runner.run(this.getDataFilteredValues(),this.getDataFilteredProperties()))},t.prototype.canExecuteTriggerByKeys=function(e,n){var r=n.getVariables();return(!r||r.length===0)&&n.hasFunction()?!0:new ke().isAnyKeyChanged(e,r)},t.prototype.runTriggers=function(e,n,r){var o=this;this.isSettingQuestionValue||this.parentQuestion&&this.parentQuestion.getValueName()===e||(r||(r={},r[e]=n),this.triggersInfo.forEach(function(s){o.runTriggerInfo(s,r)}))},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e),this.survey&&(this.survey.questionCreated(this),n!==!0&&this.runConditions(),this.visible||this.updateIsVisibleProp(),this.updateIsMobileFromSurvey())},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.parent!==e&&(this.removeFromParent(),this.setPropertyValue("parent",e),e&&this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.getTitleLocation()!=="hidden"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var n=this.titleLocation=="hidden"||e=="hidden";this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),n&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.getIsTitleRenderedAsString=function(){return this.titleLocation==="hidden"},t.prototype.notifySurveyOnChildrenVisibilityChanged=function(){return!1},t.prototype.notifySurveyVisibilityChanged=function(){if(!(!this.survey||this.isLoadingFromJson)){this.survey.questionVisibilityChanged(this,this.isVisible,!this.parentQuestion||this.parentQuestion.notifySurveyOnChildrenVisibilityChanged());var e=this.isClearValueOnHidden;this.visible||this.clearValueOnHidding(e),e&&this.isVisibleInSurvey&&this.updateValueWithDefaults()}},t.prototype.clearValueOnHidding=function(e){e&&this.clearValueIfInvisible()},Object.defineProperty(t.prototype,"titleWidth",{get:function(){if(this.parent&&this.getTitleLocation()==="left"){var e=this.parent.getColumsForElement(this),n=e.length;if(n!==0&&e[0].questionTitleWidth)return e[0].questionTitleWidth;var r=this.getPercentQuestionTitleWidth();if(!r&&this.parent){var o=this.parent.getQuestionTitleWidth();return o&&!isNaN(o)&&(o=o+"px"),o}return r/(n||1)+"%"}},enumerable:!1,configurable:!0}),t.prototype.getPercentQuestionTitleWidth=function(){var e=!!this.parent&&this.parent.getQuestionTitleWidth();if(e&&e[e.length-1]==="%")return parseInt(e)},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return e==="left"&&!this.isAllowTitleLeft&&(e="top"),e},t.prototype.getTitleLocationCore=function(){return this.titleLocation!=="default"?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&this.getTitleLocation()==="left"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&this.getTitleLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&this.getTitleLocation()==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return e==="left"||e==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.getPropertyValue("errorLocation")},set:function(e){this.setPropertyValue("errorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getErrorLocation=function(){return this.errorLocation!=="default"?this.errorLocation:this.parentQuestion?this.parentQuestion.getChildErrorLocation(this):this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},t.prototype.getChildErrorLocation=function(e){return this.getErrorLocation()},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){return this.name},t.prototype.getDefaultTitleTagName=function(){return z.titleTags.question},Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e),this.updateQuestionCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.getDescriptionLocation()=="underTitle"&&this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return this.getDescriptionLocation()=="underInput"&&this.hasDescription},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return this.descriptionLocation!=="default"?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},t.prototype.needClickTitleFunction=function(){return i.prototype.needClickTitleFunction.call(this)||this.hasInput},t.prototype.processTitleClick=function(){var e=this;if(i.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout(function(){e.focus()},1),!0},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText")},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPlaceHolder",{get:function(){return this.commentPlaceholder},set:function(e){this.commentPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedCommentPlaceholder",{get:function(){var e=this,n=function(){return e.isReadOnly?void 0:e.commentPlaceHolder};return this.getPropertyValue("renderedCommentPlaceholder",void 0,n)},enumerable:!1,configurable:!0}),t.prototype.resetRenderedCommentPlaceholder=function(){this.resetPropertyValue("renderedCommentPlaceholder")},t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var n=0;n<this.errors.length;n++)if(this.errors[n].getErrorType()===e)return this.errors[n];return null},Object.defineProperty(t.prototype,"customWidget",{get:function(){return!this.isCustomWidgetRequested&&!this.customWidgetValue&&(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=po.Instance.getCustomWidget(this)},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.resetRenderedCommentPlaceholder(),this.localeChangedCallback&&this.localeChangedCallback()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateCommentElements=function(){},t.prototype.onCommentInput=function(e){this.isInputTextUpdate?e.target&&(this.comment=e.target.value):this.updateCommentElements()},t.prototype.onCommentChange=function(e){this.comment=e.target.value,this.comment!==e.target.value&&(e.target.value=this.comment)},t.prototype.afterRenderQuestionElement=function(e){!this.survey||!this.hasSingleInput||this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){var n=this;this.afterRenderCore(e),this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e),(this.supportComment()||this.supportOther())&&(this.commentElements=[],this.getCommentElementsId().forEach(function(r){var o=z.environment.root,s=o.getElementById(r);s&&n.commentElements.push(s)}),this.updateCommentElements()),this.checkForResponsiveness(e))},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e)},t.prototype.getCommentElementsId=function(){return[this.commentId]},t.prototype.beforeDestroyQuestionElement=function(e){this.commentElements=void 0},Object.defineProperty(t.prototype,"processedTitle",{get:function(){var e=this.locProcessedTitle.textOrHtml;return e||this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&this.titlePattern=="requireNumTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&this.titlePattern=="numRequireTitle"&&this.requiredText!==""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&this.titlePattern=="numTitleRequire"&&this.requiredText!==""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var n={error:{}};return this.copyCssClasses(n,e.question),this.copyCssClasses(n.error,e.error),this.updateCssClasses(n,e),n},t.prototype.onCalcCssClasses=function(e){i.prototype.onCalcCssClasses.call(this,e),this.survey&&this.survey.updateQuestionCssClasses(this,e),this.onUpdateCssClassesCallback&&this.onUpdateCssClassesCallback(e)},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(e){var n=this.hasCssError();return new te().append(i.prototype.getCssRoot.call(this,e)).append(this.isFlowLayout&&!this.isDesignMode?e.flowRoot:e.mainRoot).append(e.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(e.titleTopRoot,!this.isFlowLayout&&this.hasTitleOnTop).append(e.titleBottomRoot,!this.isFlowLayout&&this.hasTitleOnBottom).append(e.descriptionUnderInputRoot,!this.isFlowLayout&&this.hasDescriptionUnderInput).append(e.hasError,n).append(e.hasErrorTop,n&&this.getErrorLocation()=="top").append(e.hasErrorBottom,n&&this.getErrorLocation()=="bottom").append(e.small,!this.width).append(e.answered,this.isAnswered).append(e.noPointerEventsMode,this.isReadOnlyAttr).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssHeader","")},enumerable:!1,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){return new te().append(e.header).append(e.headerTop,this.hasTitleOnTop).append(e.headerLeft,this.hasTitleOnLeft).append(e.headerBottom,this.hasTitleOnBottom).toString()},t.prototype.supportContainerQueries=function(){return!1},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssContent","")},enumerable:!1,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){return new te().append(e.content).append(e.contentSupportContainerQueries,this.supportContainerQueries()).append(e.contentLeft,this.hasTitleOnLeft).toString()},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssTitle","")},enumerable:!1,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(e){return new te().append(i.prototype.getCssTitle.call(this,e)).append(e.titleOnAnswer,!this.containsErrors&&this.isAnswered).append(e.titleEmpty,!this.title.trim()).toString()},Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssDescription","")},enumerable:!1,configurable:!0}),t.prototype.setCssDescription=function(e){this.setPropertyValue("cssDescription",e)},t.prototype.getCssDescription=function(e){return new te().append(e.description).append(e.descriptionUnderInput,this.getDescriptionLocation()=="underInput").toString()},t.prototype.showErrorOnCore=function(e){return!this.showErrorsAboveQuestion&&!this.showErrorsBelowQuestion&&this.getErrorLocation()===e},Object.defineProperty(t.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsOutsideQuestion",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAboveQuestion",{get:function(){return this.showErrorsOutsideQuestion&&this.getErrorLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&this.getErrorLocation()==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssError","")},enumerable:!1,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){return new te().append(e.error.root).append(e.errorsContainer,this.showErrorsBelowQuestion||this.showErrorsAboveQuestion).append(e.errorsContainerTop,this.showErrorsAboveQuestion).append(e.errorsContainerBottom,this.showErrorsBelowQuestion).append(e.error.locationTop,this.showErrorOnTop).append(e.error.locationBottom,this.showErrorOnBottom).toString()},t.prototype.hasCssError=function(){return this.errors.length>0||this.hasCssErrorCallback()},t.prototype.getRootCss=function(){return new te().append(this.cssRoot).append(this.cssClasses.mobile,this.isMobile).append(this.cssClasses.readOnly,this.isReadOnlyStyle).append(this.cssClasses.disabled,this.isDisabledStyle).append(this.cssClasses.preview,this.isPreviewStyle).append(this.cssClasses.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getQuestionRootCss=function(){return new te().append(this.cssClasses.root).append(this.cssClasses.rootMobile,this.isMobile).toString()},t.prototype.updateElementCss=function(e){this.wasRendered?(i.prototype.updateElementCss.call(this,e),e&&this.updateQuestionCss(!0)):this.isRequireUpdateElements=!0,this.resetIndents()},t.prototype.onFirstRenderingCore=function(){this.isRequireUpdateElements&&(this.isRequireUpdateElements=!1,this.updateElementCss(!0)),i.prototype.onFirstRenderingCore.call(this)},t.prototype.updateQuestionCss=function(e){this.isLoadingFromJson||!this.survey||(this.wasRendered?this.updateElementCssCore(this.cssClasses):this.isRequireUpdateElements=!0)},t.prototype.ensureElementCss=function(){this.cssClassesValue||this.updateQuestionCss(!0)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssDescription(this.getCssDescription(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,n){if(n.question){var r=n[this.getCssType()],o=new te().append(e.title).append(n.question.titleRequired,this.isRequired);e.title=o.toString();var s=new te().append(e.root).append(r,this.isRequired&&!!n.question.required);if(r==null)e.root=s.toString();else if(typeof r=="string"||r instanceof String)e.root=s.append(r.toString()).toString();else{e.root=s.toString();for(var c in r)e[c]=r[c]}}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return this.cssClasses.root||void 0},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return this.getIndentSize(this.indent)},t.prototype.calcPaddingRight=function(){return this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1||!this.getSurvey()||!this.cssClasses||!this.cssClasses.indent?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e,n){var r=this;if(e===void 0&&(e=!1),!(this.isDesignMode||!this.isVisible||!this.survey)){var o=this.page,s=!!o&&this.survey.activePage!==o;if(s)this.survey.focusQuestionByInstance(this,e);else if(this.survey){this.expandAllParents();var c=this.survey.isSmoothScrollEnabled?{behavior:"smooth"}:void 0;this.survey.scrollElementToTop(this,this,null,this.id,n,c,void 0,function(){r.focusInputElement(e)})}else this.focusInputElement(e)}},t.prototype.focusInputElement=function(e){var n,r=e?this.getFirstErrorInputElementId():this.getFirstInputElementId(),o=(n=this.survey)===null||n===void 0?void 0:n.rootElement;sn.FocusElement(r,!1,o)&&this.fireCallback(this.focusCallback)},Object.defineProperty(t.prototype,"isValidateVisitedEmptyFields",{get:function(){return this.supportEmptyValidation()&&!!this.survey&&this.survey.getValidateVisitedEmptyFields()&&this.isEmpty()},enumerable:!1,configurable:!0}),t.prototype.supportEmptyValidation=function(){return!1},t.prototype.onBlur=function(e){this.onBlurCore(e)},t.prototype.onFocus=function(e){this.onFocusCore(e)},t.prototype.onBlurCore=function(e){this.isFocusEmpty&&this.isEmpty()&&this.validate(!0)},t.prototype.onFocusCore=function(e){this.isFocusEmpty=this.isValidateVisitedEmptyFields},t.prototype.expandAllParents=function(){this.expandAllParentsCore(this)},t.prototype.expandAllParentsCore=function(e){e&&(e.isCollapsed&&e.expand(),this.expandAllParentsCore(e.parent),this.expandAllParentsCore(e.parentQuestion))},t.prototype.focusIn=function(){!this.survey||this.isDisposed||this.isContainer||this.survey.whenQuestionFocusIn(this)},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.getFirstQuestionToFocus=function(e){return this.hasInput&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var n=e.name.toLocaleLowerCase();e.isExists=Object.keys(t.TextPreprocessorValuesMap).indexOf(n)!==-1||this[e.name]!==void 0,e.value=this[t.TextPreprocessorValuesMap[n]||e.name]},t.prototype.supportComment=function(){var e=this.getPropertyByName("showCommentArea");return!e||e.visible},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCommentArea",{get:function(){return this.getPropertyValue("showCommentArea",!1)},set:function(e){this.supportComment()&&this.setPropertyValue("showCommentArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.showCommentArea},set:function(e){this.showCommentArea=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){return this.id+"_ariaDescription"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentId",{get:function(){return this.id+"_comment"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showOtherItem",{get:function(){return this.getPropertyValue("showOtherItem",!1)},set:function(e){!this.supportOther()||this.showOtherItem==e||(this.setPropertyValue("showOtherItem",e),this.hasOtherChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.showOtherItem},set:function(e){this.showOtherItem=e},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,n=!!this.parentQuestion&&this.parentQuestion.isReadOnly,r=!!this.survey&&this.survey.isDisplayMode,o=!!this.readOnlyCallback&&this.readOnlyCallback();return this.readOnly||e||r||n||o},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){return this.forceIsInputReadOnly!==void 0?this.forceIsInputReadOnly:this.isReadOnly||this.isDesignModeV2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputReadOnly",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputDisabled",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyAttr",{get:function(){return this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabledAttr",{get:function(){return this.isDesignModeV2||!!this.readOnlyCallback&&this.readOnlyCallback()},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),i.prototype.onReadOnlyChanged.call(this),this.isReadOnly&&this.clearErrors(),this.updateQuestionCss(),this.resetRenderedCommentPlaceholder()},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){},t.prototype.runCondition=function(e,n){this.isDesignMode||(n||(n={}),n.question=this,this.runConditionCore(e,n),!this.isValueChangedDirectly&&(!this.isClearValueOnHidden||this.isVisibleInSurvey)&&(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,e,n)))},Object.defineProperty(t.prototype,"isInDesignMode",{get:function(){return!this.isContentElement&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInDesignModeV2",{get:function(){return!this.isContentElement&&this.isDesignModeV2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){var e;if(!this.hasTitle||this.hideNumber)return"";var n=(e=this.parent)===null||e===void 0?void 0:e.visibleIndex,r=m.getNumberByIndex(this.visibleIndex,this.getStartIndex(),n);return this.survey&&(r=this.survey.getUpdatedQuestionNo(this,r)),r},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.isCustomWidgetRequested=!1,this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.isEmpty()&&this.initDataFromSurvey()},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),!this.isDesignMode&&this.survey&&!this.isLoadingFromJson&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());(!m.isValueEmpty(e)||!this.isLoadingFromJson)&&this.updateValueFromSurvey(e),this.initCommentFromSurvey()}},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},t.prototype.runExpression=function(e){if(!(!this.survey||!e))return this.survey.runExpression(e)},Object.defineProperty(t.prototype,"commentAreaRows",{get:function(){return this.survey&&this.survey.commentAreaRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.survey&&this.survey.autoGrowComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.survey&&this.survey.allowResizeComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValueWithoutDefault("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValueWithoutDefault("comment")},set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilteredValue",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getFilteredValue=function(){return this.value},t.prototype.getFilteredName=function(){return this.getValueName()},Object.defineProperty(t.prototype,"valueForSurvey",{get:function(){return this.valueForSurveyCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.valueForSurveyCore=function(e){return this.valueToDataCallback?this.valueToDataCallback(e):e},t.prototype.valueFromDataCore=function(e){return this.valueFromDataCallback?this.valueFromDataCallback(e):e},t.prototype.clearValue=function(e){this.value!==void 0&&(this.value=void 0),this.comment&&e!==!0&&(this.comment=void 0),this.setValueChangedDirectly(!1)},t.prototype.clearValueOnly=function(){this.clearValue(!0)},t.prototype.unbindValue=function(){this.clearValue()},t.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},t.prototype.initDataUI=function(){},t.prototype.getUnbindValue=function(e){return this.isValueSurveyElement(e)?e:m.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return e?Array.isArray(e)?e.length>0?this.isValueSurveyElement(e[0]):!1:!!e.getType&&!!e.onPropertyChanged:!1},t.prototype.canClearValueAsInvisible=function(e){return e==="onHiddenContainer"&&!this.isParentVisible?!0:this.isVisibleInSurvey||this.page&&this.page.isStartPage?!1:this.survey?!this.survey.hasVisibleQuestionByValueName(this.getValueName()):!0},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){if(this.parentQuestion&&!this.parentQuestion.isVisible)return!1;for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!1,configurable:!0}),t.prototype.clearValueIfInvisible=function(e){e===void 0&&(e="onHidden");var n=this.getClearIfInvisible();n!=="none"&&(e==="onHidden"&&n==="onComplete"||e==="onHiddenContainer"&&n!==e||this.clearValueIfInvisibleCore(e))},t.prototype.clearValueIfInvisibleCore=function(e){this.canClearValueAsInvisible(e)&&this.clearValue()},Object.defineProperty(t.prototype,"clearIfInvisible",{get:function(){return this.getPropertyValue("clearIfInvisible")},set:function(e){this.setPropertyValue("clearIfInvisible",e)},enumerable:!1,configurable:!0}),t.prototype.getClearIfInvisible=function(){var e=this.clearIfInvisible;return this.survey?this.survey.getQuestionClearIfInvisible(e):e!=="default"?e:"onComplete"},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,n){n===void 0&&(n=void 0);var r=this.calcDisplayValue(e,n);return this.survey&&(r=this.survey.getQuestionDisplayValue(this,r)),this.displayValueCallback?this.displayValueCallback(r):r},t.prototype.calcDisplayValue=function(e,n){if(n===void 0&&(n=void 0),this.customWidget){var r=this.customWidget.getDisplayValue(this,n);if(r)return r}return n=n??this.createValueCopy(),this.isValueEmpty(n,!this.allowSpaceAsAnswer)?this.getDisplayValueEmpty():this.getDisplayValueCore(e,n)},t.prototype.getDisplayValueCore=function(e,n){return n},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){if(this.isValueExpression(e)){this.defaultValueExpression=e.substring(1);return}this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(e){this.setPropertyValue("defaultValueExpression",e),this.defaultValueRunner=void 0,this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetValueIf",{get:function(){return this.getPropertyValue("resetValueIf")},set:function(e){this.setPropertyValue("resetValueIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueIf",{get:function(){return this.getPropertyValue("setValueIf")},set:function(e){this.setPropertyValue("setValueIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueExpression",{get:function(){return this.getPropertyValue("setValueExpression")},set:function(e){this.setPropertyValue("setValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResizeComment?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var n=this;if(e||(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var r={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(o){return typeof o=="object"?JSON.stringify(o):o}};return e.includeQuestionTypes===!0&&(r.questionType=this.getType()),(e.calculations||[]).forEach(function(o){r[o.propertyName]=n.getPlainDataCalculatedValue(o.propertyName)}),this.hasComment&&(r.isNode=!0,r.data=[{name:0,isComment:!0,title:"Comment",value:z.commentSuffix,displayValue:this.comment,getString:function(o){return typeof o=="object"?JSON.stringify(o):o},isNode:!1}]),r}},t.prototype.getPlainDataCalculatedValue=function(e){return this[e]},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!this.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return!this.isEmpty()&&!this.isValueEmpty(this.correctAnswer)?this.getCorrectAnswerCount():0},enumerable:!1,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.checkIfAnswerCorrect()?1:0},t.prototype.checkIfAnswerCorrect=function(){var e=m.isTwoValueEquals(this.value,this.correctAnswer,this.getAnswerCorrectIgnoreOrder(),z.comparator.caseSensitive,!0),n=e?1:0,r=this.quizQuestionCount-n,o={result:e,correctAnswers:n,correctAnswerCount:n,incorrectAnswers:r,incorrectAnswerCount:r};return this.survey&&this.survey.onCorrectQuestionAnswer(this,o),o.result},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.correctAnswerCount==this.quizQuestionCount},t.prototype.updateValueWithDefaults=function(){this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty()||!this.isDesignMode&&!this.isEmpty()||this.isEmpty()&&this.isDefaultValueEmpty()||this.isClearValueOnHidden&&!this.isVisible||this.isDesignMode&&this.isContentElement&&this.isDefaultValueEmpty()||this.setDefaultValue()},Object.defineProperty(t.prototype,"isValueDefault",{get:function(){return!this.isEmpty()&&(this.isTwoValueEquals(this.defaultValue,this.value)||!this.isValueChangedDirectly&&!!this.defaultValueExpression)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){var e=this.getClearIfInvisible();return e==="none"||e==="onComplete"?!1:e==="onHidden"||e==="onHiddenContainer"},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,n){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue,!this.allowSpaceAsAnswer)},t.prototype.getDefaultRunner=function(e,n){return!e&&n&&(e=this.createExpressionRunner(n)),e&&(e.expression=n),e},t.prototype.setDefaultValue=function(){var e=this;this.setDefaultValueCore(function(n){e.isTwoValueEquals(e.value,n)||(e.value=n)})},t.prototype.setDefaultValueCore=function(e){this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),function(n){return e(n)})},t.prototype.isValueExpression=function(e){return!!e&&typeof e=="string"&&e.length>0&&e[0]=="="},t.prototype.setValueAndRunExpression=function(e,n,r,o,s){var c=this;o===void 0&&(o=null),s===void 0&&(s=null);var y=function(w){c.runExpressionSetValueCore(w,r)};this.runDefaultValueExpression(e,o,s,y)||y(n)},t.prototype.convertFuncValuetoQuestionValue=function(e){return m.convertValToQuestionVal(e)},t.prototype.runExpressionSetValueCore=function(e,n){n(this.convertFuncValuetoQuestionValue(e))},t.prototype.runExpressionSetValue=function(e){var n=this;this.runExpressionSetValueCore(e,function(r){n.isTwoValueEquals(n.value,r)||(n.startSetValueOnExpression(),n.value=r,n.finishSetValueOnExpression())})},t.prototype.startSetValueOnExpression=function(){var e;(e=this.survey)===null||e===void 0||e.startSetValueOnExpression()},t.prototype.finishSetValueOnExpression=function(){var e;(e=this.survey)===null||e===void 0||e.finishSetValueOnExpression()},t.prototype.runDefaultValueExpression=function(e,n,r,o){var s=this;return n===void 0&&(n=null),r===void 0&&(r=null),!e||!this.data?!1:(o||(o=function(c){s.runExpressionSetValue(c)}),n||(n=this.defaultValueExpression?this.data.getFilteredValues():{}),r||(r=this.defaultValueExpression?this.data.getFilteredProperties():{}),e&&e.canRun&&(e.onRunComplete=function(c){c==null&&(c=s.defaultValue),s.isChangingViaDefaultValue=!0,o(c),s.isChangingViaDefaultValue=!1},e.run(n,r)),!0)},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var n=e.toString().trim();n!==e&&(e=n,e===this.comment&&this.setPropertyValueDirectly("comment",e))}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElements())},enumerable:!1,configurable:!0}),t.prototype.getCommentAreaCss=function(e){return e===void 0&&(e=!1),new te().append("form-group",e).append(this.cssClasses.formGroup,!e).append(this.cssClasses.commentArea).toString()},t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value,!this.allowSpaceAsAnswer)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")||!1},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsAnswered=function(){var e=this.isAnswered;this.setPropertyValue("isAnswered",this.getIsAnswered()),e!==this.isAnswered&&this.updateQuestionCss()},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.getSupportedValidators=function(){for(var e=[],n=this.getType();n;){var r=z.supportedValidators[n];if(r)for(var o=r.length-1;o>=0;o--)e.splice(0,0,r[o]);var s=G.findClass(n);n=s.parentName}return e},t.prototype.addConditionObjectsByContext=function(e,n){e.push({name:this.getFilteredName(),text:this.processedTitle,question:this})},t.prototype.getNestedQuestions=function(e){e===void 0&&(e=!1);var n=[];return this.collectNestedQuestions(n,e),n.length===1&&n[0]===this?[]:n},t.prototype.collectNestedQuestions=function(e,n){n===void 0&&(n=!1),!(n&&!this.isVisible)&&this.collectNestedQuestionsCore(e,n)},t.prototype.collectNestedQuestionsCore=function(e,n){e.push(this)},t.prototype.getConditionJson=function(e,n){var r=new Vt().toJsonObject(this);return r.type=this.getType(),r},t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=this.checkForErrors(!!n&&n.isOnValueChanged===!0,e);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,r),this.errors=r,this.errors!==r&&this.errors.forEach(function(o){return o.locText.strChanged()})),this.updateContainsErrors(),this.isCollapsed&&n&&e&&r.length>0&&this.expand(),r.length>0},t.prototype.validate=function(e,n){return e===void 0&&(e=!0),n===void 0&&(n=null),n&&n.isOnValueChanged&&this.parent&&this.parent.validateContainerOnly(),!this.hasErrors(e,n)},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey!=null&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var n=null;typeof e=="string"||e instanceof String?n=this.addCustomError(e):n=e,this.errors.push(n)}},t.prototype.addCustomError=function(e){return new bn(e,this.survey)},t.prototype.removeError=function(e){if(!e)return!1;var n=this.errors,r=n.indexOf(e);return r!==-1&&n.splice(r,1),r!==-1},t.prototype.checkForErrors=function(e,n){var r=new Array;return this.isVisible&&this.canCollectErrors()&&this.collectErrors(r,e,n),r},t.prototype.canCollectErrors=function(){return!this.isReadOnly||z.readOnly.enableValidation},t.prototype.collectErrors=function(e,n,r){if(this.onCheckForErrors(e,n,r),!(e.length>0||!this.canRunValidators(n))){var o=this.runValidators();if(o.length>0){e.length=0;for(var s=0;s<o.length;s++)e.push(o[s])}if(this.survey&&e.length==0){var c=this.fireSurveyValidation();c&&e.push(c)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,n,r){var o=this;if((!n||this.isOldAnswered)&&this.hasRequiredError()){var s=new co(this.requiredErrorText,this);s.onUpdateErrorTextCallback=function(y){y.text=o.requiredErrorText},e.push(s)}if(!this.isEmpty()&&this.customWidget){var c=this.customWidget.validate(this);c&&e.push(this.addCustomError(c))}},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!1,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new Xs,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(n){e.doOnAsyncCompleted(n)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var n=0;n<e.length;n++)this.errors.push(e[n]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){this.isNewValueEqualsToValue(e)||this.checkIsValueCorrect(e)&&(this.isOldAnswered=this.isAnswered,this.isSettingQuestionValue=!0,this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isSettingQuestionValue=!1,this.isAnswered!==this.isOldAnswered&&this.updateQuestionCss(),this.isOldAnswered=void 0,this.parent&&this.parent.onQuestionValueChanged(this))},t.prototype.checkIsValueCorrect=function(e){var n=this.isValueEmpty(e,!this.allowSpaceAsAnswer)||this.isNewValueCorrect(e);return n||mt.inCorrectQuestionValue(this.name,e),n},t.prototype.isNewValueCorrect=function(e){return!0},t.prototype.isNewValueEqualsToValue=function(e){var n=this.value;if(!this.isTwoValueEquals(e,n,!1,!1))return!1;var r=e===n&&!!n&&(Array.isArray(n)||typeof n=="object");return!r},t.prototype.isTextValue=function(){return!1},t.prototype.getIsInputTextUpdate=function(){return this.survey?this.survey.isUpdateValueTextOnTyping:!1},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getDataLocNotification=function(){return this.isInputTextUpdate?"text":!1},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.getIsInputTextUpdate()&&this.isTextValue()},enumerable:!1,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),this.data!=null&&this.canSetValueToSurvey()&&(e=this.valueForSurvey,this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged,this.name)),this.isMouseDown=!1},t.prototype.canSetValueToSurvey=function(){return!0},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.convertToCorrectValue=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.onMouseDown=function(){this.isMouseDown=!0},t.prototype.setNewComment=function(e){this.questionComment!==e&&(this.questionComment=e,this.setCommentIntoData(e))},t.prototype.setCommentIntoData=function(e){this.data!=null&&this.data.setComment(this.getValueName(),e,this.getIsInputTextUpdate()?"text":!1)},t.prototype.getValidName=function(e){return Ve(e)},t.prototype.updateValueFromSurvey=function(e,n){var r=this;if(n===void 0&&(n=!1),e=this.getUnbindValue(e),e=this.valueFromDataCore(e),!!this.checkIsValueCorrect(e)){var o=this.isValueEmpty(e);!o&&this.defaultValueExpression?this.setDefaultValueCore(function(s){r.updateValueFromSurveyCore(e,r.isTwoValueEquals(e,s))}):(this.updateValueFromSurveyCore(e,this.data!==this.getSurvey()),n&&o&&(this.isValueChangedDirectly=!1)),this.updateDependedQuestions(),this.updateIsAnswered()}},t.prototype.updateValueFromSurveyCore=function(e,n){this.isChangingViaDefaultValue=n,this.setQuestionValue(this.valueFromData(e)),this.isChangingViaDefaultValue=!1},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.onChangeQuestionValue=function(e){},t.prototype.setValueChangedDirectly=function(e){this.isValueChangedDirectly=e,this.setValueChangedDirectlyCallback&&this.setValueChangedDirectlyCallback(e)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),e=this.convertToCorrectValue(e);var r=this.isTwoValueEquals(this.questionValue,e);!r&&!this.isChangingViaDefaultValue&&!this.isParentChangingViaDefaultValue&&this.setValueChangedDirectly(!0),this.questionValue=e,r||this.onChangeQuestionValue(e),!r&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),n&&this.updateIsAnswered()},Object.defineProperty(t.prototype,"isParentChangingViaDefaultValue",{get:function(){var e;return((e=this.data)===null||e===void 0?void 0:e.isChangingViaDefaultValue)===!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!z.numbering.includeQuestionsWithHiddenTitle||this.hideNumber&&!z.numbering.includeQuestionsWithHiddenNumber)&&(e=-1),this.setPropertyValue("visibleIndex",e),this.setPropertyValue("no",this.calcNo()),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e,n){},t.prototype.checkBindings=function(e,n){if(!(this.bindings.isEmpty()||!this.data))for(var r=this.bindings.getPropertiesByValueName(e),o=0;o<r.length;o++){var s=r[o];this.isValueEmpty(n)&&m.isNumber(this[s])&&(n=0),this.updateBindingProp(s,n)}},t.prototype.updateBindingProp=function(e,n){this[e]=n},t.prototype.getComponentName=function(){return Ua.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||this.getComponentName()==="default"},t.prototype.getErrorCustomText=function(e,n){return this.survey?this.survey.getSurveyErrorCustomText(this,e,n):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.processPopupVisiblilityChanged=function(e,n){this.survey.processPopupVisiblityChanged(this,e,n)},t.prototype.processOpenDropdownMenu=function(e){this.survey.processOpenDropdownMenu(this,e)},t.prototype.onTextKeyDownHandler=function(e){e.keyCode===13&&this.survey.questionEditFinishCallback(this,e)},t.prototype.transformToMobileView=function(){},t.prototype.transformToDesktopView=function(){},t.prototype.needResponsiveWidth=function(){return!1},t.prototype.supportResponsiveness=function(){return!1},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme&&!this.isDesignMode},t.prototype.checkForResponsiveness=function(e){var n=this;if(this.needResponsiveness())if(this.isCollapsed){var r=function(){n.isExpanded&&(n.initResponsiveness(e),n.unregisterPropertyChangedHandlers(["state"],"for-responsiveness"))};this.registerPropertyChangedHandlers(["state"],r,"for-responsiveness")}else this.initResponsiveness(e)},t.prototype.getObservedElementSelector=function(){return".sd-scrollable-container"},t.prototype.onMobileChanged=function(){this.onMobileChangedCallback&&this.onMobileChangedCallback()},t.prototype.triggerResponsiveness=function(e){e===void 0&&(e=!0),this.triggerResponsivenessCallback&&this.triggerResponsivenessCallback(e)},t.prototype.initResponsiveness=function(e){var n=this;if(this.destroyResizeObserver(),e&&this.isDefaultRendering()){var r=this.getObservedElementSelector();if(!r)return;var o=e.querySelector(r);if(!o)return;var s=!1,c=void 0;this.triggerResponsivenessCallback=function(y){y&&(c=void 0,n.renderAs="default",s=!1);var w=function(){var N=e.querySelector(r);!c&&n.isDefaultRendering()&&(c=N.scrollWidth),s||!Ko(N)?s=!1:s=n.processResponsiveness(c,so(N))};y?setTimeout(w,1):w()},this.resizeObserver=new ResizeObserver(function(y){B.requestAnimationFrame(function(){n.triggerResponsiveness(!1)})}),this.onMobileChangedCallback=function(){setTimeout(function(){var y=e.querySelector(r);n.processResponsiveness(c,so(y))},0)},this.resizeObserver.observe(e)}},t.prototype.getCompactRenderAs=function(){return"default"},t.prototype.getDesktopRenderAs=function(){return"default"},t.prototype.onBeforeSetCompactRenderer=function(){},t.prototype.onBeforeSetDesktopRenderer=function(){},t.prototype.processResponsiveness=function(e,n){if(n=Math.round(n),Math.abs(e-n)>2){var r=this.renderAs;return e>n?(this.onBeforeSetCompactRenderer(),this.renderAs=this.getCompactRenderAs()):(this.onBeforeSetDesktopRenderer(),this.renderAs=this.getDesktopRenderAs()),r!==this.renderAs}return!1},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.onMobileChangedCallback=void 0,this.triggerResponsivenessCallback=void 0,this.renderAs=this.getDesktopRenderAs())},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.resetDependedQuestions(),this.destroyResizeObserver()},t.prototype.resetDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].resetDependedQuestion()},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.isNewA11yStructure?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return this.isNewA11yStructure?null:"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return this.isNewA11yStructure?null:this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return this.isNewA11yStructure?null:this.hasCssError()?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return this.isNewA11yStructure?null:this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return this.isNewA11yStructure?null:this.hasTitle&&this.hasDescription?this.ariaDescriptionId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaErrormessage",{get:function(){return this.isNewA11yStructure?null:this.hasCssError()?this.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaInvalid",{get:function(){return this.hasCssError()?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.hasTitle&&!this.parentQuestion?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return this.hasTitle&&!this.parentQuestion?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return this.hasTitle&&!this.parentQuestion&&this.hasDescription?this.ariaDescriptionId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaErrormessage",{get:function(){return this.hasCssError()?this.id+"_errors":null},enumerable:!1,configurable:!0}),t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,$([D({defaultValue:!1})],t.prototype,"_isMobile",void 0),$([D()],t.prototype,"forceIsInputReadOnly",void 0),$([D()],t.prototype,"ariaExpanded",void 0),$([D({localizable:!0,onSet:function(e,n){return n.resetRenderedCommentPlaceholder()}})],t.prototype,"commentPlaceholder",void 0),$([D()],t.prototype,"renderAs",void 0),$([D({defaultValue:!1})],t.prototype,"inMatrixMode",void 0),t}(sn);function Ve(i){if(!i)return i;for(i=i.trim().replace(/[\{\}]+/g,"");i&&i[0]===z.expressionDisableConversionChar;)i=i.substring(1);return i}G.addClass("question",[{name:"!name",onSettingValue:function(i,t){return Ve(t)}},{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"useDisplayValuesInDynamicTexts:boolean",alternativeName:"useDisplayValuesInTitle",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",defaultFunc:function(){return z.minWidth}},{name:"maxWidth",defaultFunc:function(){return z.maxWidth}},{name:"colSpan:number",visible:!1,onSerializeValue:function(i){return i.getPropertyValue("colSpan")}},{name:"effectiveColSpan:number",minValue:1,isSerializable:!1,visibleIf:function(i){return!!i&&!!i.survey&&i.survey.gridLayoutEnabled}},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(i){var t=i?i.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(i){var t=i?i.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row",dependsOn:"name",onPropertyEditorUpdate:function(i,t){i&&t&&(t.placeholder=i.getDefaultTitle())}},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(i){if(!i)return!0;if(i.titleLocation==="hidden")return!1;var t=i?i.parent:null,e=!t||t.showQuestionNumbers!=="off";if(!e)return!1;var n=i?i.survey:null;return!n||n.showQuestionNumbers!=="off"||!!t&&t.showQuestionNumbers==="onpanel"}},{name:"valueName",onSettingValue:function(i,t){return Ve(t)}},"enableIf:condition","resetValueIf:condition","setValueIf:condition","setValueExpression:expression","defaultValue:value",{name:"defaultValueExpression:expression",category:"logic"},"correctAnswer:value",{name:"clearIfInvisible",default:"default",choices:["default","none","onComplete","onHidden","onHiddenContainer"]},{name:"isRequired:switch",overridingProperty:"requiredIf"},"requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"errorLocation",default:"default",choices:["default","top","bottom"]},{name:"readOnly:switch",overridingProperty:"enableIf"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(i){return i.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1},{name:"showCommentArea",visible:!1,default:!1,alternativeName:"hasComment",category:"general"},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(i){return i.showCommentArea},serializationProperty:"locCommentText"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(i){return i.hasComment}}]),G.addAlterNativeClassName("question","questionbase");var Ge=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),dt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ge=function(i){Ge(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="itemvalue");var o=i.call(this)||this;return o.typeName=r,o.ownerPropertyName="",o.locTextValue=new ut(o,!0,"text"),o.locTextValue.onStrChanged=function(s,c){c==o.value&&(c=void 0),o.propertyValueChanged("text",s,c)},o.locTextValue.onGetTextCallback=function(s){return s||(m.isValueEmpty(o.value)?null:o.value.toString())},n&&(o.locText.text=n),e&&typeof e=="object"?o.setData(e,!0):o.setValue(e,!0),o.getType()!="itemvalue"&&rt.createProperties(o),o.data=o,o.onCreating(),o}return t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},Object.defineProperty(t,"Separator",{get:function(){return z.itemValueSeparator},set:function(e){z.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.setData=function(e,n,r){e.length=0;for(var o=0;o<n.length;o++){var s=n[o],c=s&&typeof s.getType=="function"?s.getType():r??"itemvalue",y=G.createClass(c);y.setData(s),s.originalItem&&(y.originalItem=s.originalItem),e.push(y)}},t.getData=function(e){for(var n=[],r=0;r<e.length;r++)n.push(e[r].getData());return n},t.getItemByValue=function(e,n){if(!Array.isArray(e))return null;for(var r=m.isValueEmpty(n),o=0;o<e.length;o++)if(r&&m.isValueEmpty(e[o].value)||m.isTwoValueEquals(e[o].value,n,!1,!0,!1))return e[o];return null},t.getTextOrHtmlByValue=function(e,n){var r=t.getItemByValue(e,n);return r!==null?r.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var n=0;n<e.length;n++)e[n].locStrsChanged()},t.runConditionsForItems=function(e,n,r,o,s,c,y){return c===void 0&&(c=!0),t.runConditionsForItemsCore(e,n,r,o,s,!0,c,y)},t.runEnabledConditionsForItems=function(e,n,r,o,s){return t.runConditionsForItemsCore(e,null,n,r,o,!1,!0,s)},t.runConditionsForItemsCore=function(e,n,r,o,s,c,y,w){y===void 0&&(y=!0),o||(o={});for(var N=o.item,Q=o.choice,Y=!1,ce=0;ce<e.length;ce++){var fe=e[ce];o.item=fe.value,o.choice=fe.value;var Oe=y&&fe.getConditionRunner?fe.getConditionRunner(c):!1;Oe||(Oe=r);var Ee=!0;Oe&&(Ee=Oe.run(o,s)),w&&(Ee=w(fe,Ee)),n&&Ee&&n.push(fe);var me=c?fe.isVisible:fe.isEnabled;Ee!=me&&(Y=!0,c?fe.setIsVisible&&fe.setIsVisible(Ee):fe.setIsEnabled&&fe.setIsEnabled(Ee))}return N?o.item=N:delete o.item,Q?o.choice=Q:delete o.choice,Y},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return this.locOwner&&this.locOwner.getSurvey?this.locOwner.getSurvey():null},t.prototype.getLocale=function(){return this.locOwner&&this.locOwner.getLocale?this.locOwner.getLocale():""},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isGhost===!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!1,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this._locOwner},set:function(e){this._locOwner=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){this.setValue(e,!1)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e,n){var r=void 0;if(!m.isValueEmpty(e)){var o=e.toString(),s=o.indexOf(z.itemValueSeparator);s>-1&&(e=o.slice(0,s),r=o.slice(s+1))}n?this.setPropertyValueDirectly("value",e):this.setPropertyValue("value",e),r&&(this.text=r),this.id=this.value},Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(e){this.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){this.locText.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.text},enumerable:!1,configurable:!0}),t.prototype.canSerializeValue=function(){var e=this.value;return e==null?!1:!Array.isArray(e)&&typeof e!="object"},t.prototype.getData=function(){var e=this.toJSON();if(e.value&&e.value.pos&&delete e.value.pos,m.isValueEmpty(e.value))return e;var n=this.canSerializeValue(),r=!n||!z.serialization.itemValueSerializeAsObject&&!z.serialization.itemValueSerializeDisplayText;return r&&Object.keys(e).length==1?this.value:(z.serialization.itemValueSerializeDisplayText&&e.text===void 0&&n&&(e.text=this.value.toString()),e)},t.prototype.toJSON=function(){var e={},n=G.getProperties(this.getType());(!n||n.length==0)&&(n=G.getProperties("itemvalue"));for(var r=new Vt,o=0;o<n.length;o++){var s=n[o];s.name==="text"&&!this.locText.hasNonDefaultText()&&m.isTwoValueEquals(this.value,this.text,!1,!0,!1)||r.valueToJson(this,e,s)}return e},t.prototype.setData=function(e,n){if(!m.isValueEmpty(e)){if(typeof e.value>"u"&&typeof e.text<"u"&&Object.keys(e).length===1&&(e.value=e.text),typeof e.value<"u"){var r=void 0;typeof e.toJSON=="function"?r=e.toJSON():r=e,new Vt().toObject(r,this)}else this.setValue(e,n);n||this.locText.strChanged()}},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValueWithoutDefault("visibleIf")||""},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValueWithoutDefault("enableIf")||""},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){var e=this.getPropertyValueWithoutDefault("isVisible");return e!==void 0?e:!0},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this.setPropertyValue("isVisible",e)},Object.defineProperty(t.prototype,"isEnabled",{get:function(){var e=this.getPropertyValueWithoutDefault("isEnabled");return e!==void 0?e:!0},enumerable:!1,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,n,r){e==="value"&&!this.hasText&&this.locText.strChanged();var o="itemValuePropertyChanged";!this.locOwner||!this.locOwner[o]||this.locOwner[o](this,e,n,r)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new pn(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new pn(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"selected",{get:function(){var e=this,n=this._locOwner;return n instanceof K&&n.isItemSelected&&this.selectedValue===void 0&&(this.selectedValue=new Lt(function(){return n.isItemSelected(e)})),this.selectedValue},enumerable:!1,configurable:!0}),t.prototype.getComponent=function(){return this._locOwner instanceof K?this.componentValue||this._locOwner.itemComponent:this.componentValue},t.prototype.setComponent=function(e){this.componentValue=e},t.prototype.setRootElement=function(e){this._htmlElement=e},t.prototype.getRootElement=function(){return this._htmlElement},t.prototype.getEnabled=function(){return this.isEnabled},t.prototype.setEnabled=function(e){this.setIsEnabled(e)},t.prototype.getVisible=function(){var e=this.isVisible===void 0?!0:this.isVisible,n=this._visible===void 0?!0:this._visible;return e&&n},t.prototype.setVisible=function(e){this.visible!==e&&(this._visible=e)},t.prototype.getLocTitle=function(){return this.locText},t.prototype.getTitle=function(){return this.text},t.prototype.setLocTitle=function(e){},t.prototype.setTitle=function(e){},dt([D({defaultValue:!0})],t.prototype,"_visible",void 0),dt([D()],t.prototype,"selectedValue",void 0),dt([D()],t.prototype,"icon",void 0),t}(bi);Je.createItemValue=function(i,t){var e=null;return t?e=Vt.metaData.createClass(t,{}):typeof i.getType=="function"?e=new ge(null,void 0,i.getType()):e=new ge(null),e.setData(i),e},Je.itemValueLocStrChanged=function(i){ge.locStrsChanged(i)},Ze.getItemValuesDefaultValue=function(i,t){var e=new Array;return ge.setData(e,Array.isArray(i)?i:[],t),e},G.addClass("itemvalue",[{name:"!value",isUnique:!0},{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(i){return!i||i.ownerPropertyName!=="rateValues"}}],function(i){return new ge(i)});var d=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),l=function(i){d(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.expressionIsRunning=!1,r.isCalculated=!1,e&&(r.name=e),n&&(r.expression=n),r}return t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return this.data&&this.data.getSurvey?this.data.getSurvey():null},Object.defineProperty(t.prototype,"owner",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")||""},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult")},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")||""},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,n,r){this.isCalculated||(this.runExpressionCore(e,n,r),this.isCalculated=!0)},t.prototype.runExpression=function(e,n){this.runExpressionCore(null,e,n)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!!this.data&&!this.isLoadingFromJson&&!!this.expression&&!this.expressionIsRunning&&!!this.name},enumerable:!1,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,n,r){this.canRunExpression&&(this.ensureExpression(n),this.locCalculation(),e&&this.runDependentExpressions(e,n,r),this.expressionRunner.run(n,r))},t.prototype.runDependentExpressions=function(e,n,r){var o=this.expressionRunner.getVariables();if(o)for(var s=0;s<e.length;s++){var c=e[s];c===this||o.indexOf(c.name)<0||(c.doCalculation(e,n,r),n[c.name]=c.value)}},t.prototype.ensureExpression=function(e){var n=this;this.expressionRunner||(this.expressionRunner=new Ir(this.expression),this.expressionRunner.onRunComplete=function(r){m.isTwoValueEquals(r,n.value,!1,!0,!1)||n.setValue(r),n.unlocCalculation()})},t}(Je);G.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],function(){return new l},"base");var a=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),f=function(i){a(t,i);function t(e){e===void 0&&(e=null);var n=i.call(this)||this;return n.expression=e,n}return t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,n){return this.expression?new pn(this.expression).run(e,n):!1},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getSurvey=function(e){return this.locOwner},t}(Je),h=function(i){a(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e)||this;return r.createLocalizableString("html",r),r.html=n,r}return t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t}(f),b=function(i){a(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this,e)||this;return r.createLocalizableString("url",r),r.url=n,r}return t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!1,configurable:!0}),t}(f);G.addClass("expressionitem",["expression:condition"],function(){return new f},"base"),G.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new h},"expressionitem"),G.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],function(){return new b},"expressionitem");var W=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ne=function(){function i(){this.parser=new DOMParser}return i.prototype.assignValue=function(t,e,n){Array.isArray(t[e])?t[e].push(n):t[e]!==void 0?t[e]=[t[e]].concat(n):typeof n=="object"&&Object.keys(n).length===1&&Object.keys(n)[0]===e?t[e]=n[e]:t[e]=n},i.prototype.xml2Json=function(t,e){if(t.children&&t.children.length>0)for(var n=0;n<t.children.length;n++){var r=t.children[n],o={};this.xml2Json(r,o),this.assignValue(e,r.nodeName,o)}else this.assignValue(e,t.nodeName,t.textContent)},i.prototype.parseXmlString=function(t){var e=this.parser.parseFromString(t,"text/xml"),n={};return this.xml2Json(e,n),n},i}(),ue=function(i){W(t,i);function t(){var e=i.call(this)||this;return e.lastObjHash="",e.isRunningValue=!1,e.processedUrl="",e.processedPath="",e.isUsingCacheFromUrl=void 0,e.error=null,e.createItemValue=function(n){return new ge(n)},e.registerPropertyChangedHandlers(["url"],function(){e.owner&&e.owner.setPropertyValue("isUsingRestful",!!e.url)}),e}return Object.defineProperty(t,"EncodeParameters",{get:function(){return z.web.encodeUrlParams},set:function(e){z.web.encodeUrlParams=e},enumerable:!1,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){if(!e.isUsingCache)return!1;var n=e.objHash,r=t.sendingSameRequests[n];return r?(r.push(e),e.isRunningValue=!0,!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,n){if(e.isUsingCache){var r=t.sendingSameRequests[e.objHash];if(delete t.sendingSameRequests[e.objHash],!!r)for(var o=0;o<r.length;o++)r[o].isRunningValue=!1,r[o].getResultCallback&&r[o].getResultCallback(n)}},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return z.web.onBeforeRequestChoices},set:function(e){z.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t.getCachedItemsResult=function(e){var n=e.objHash,r=t.itemsResult[n];return r?(e.getResultCallback&&e.getResultCallback(r),!0):!1},t.prototype.getSurvey=function(e){return this.owner?this.owner.survey:null},t.prototype.run=function(e){if(e===void 0&&(e=null),!(!this.url||!this.getResultCallback)){if(this.processedText(e),!this.processedUrl){this.doEmptyResultCallback({}),this.lastObjHash=this.objHash;return}this.lastObjHash!==this.objHash&&(this.lastObjHash=this.objHash,this.error=null,!this.useChangedItemsResults()&&(t.addSameRequest(this)||this.sendRequest()))}},Object.defineProperty(t.prototype,"isUsingCache",{get:function(){return this.isUsingCacheFromUrl===!0?!0:this.isUsingCacheFromUrl===!1?!1:z.web.cacheLoadedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getIsRunning()},enumerable:!1,configurable:!0}),t.prototype.getIsRunning=function(){return this.isRunningValue},Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!1,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var n=[];this.updateResultCallback&&(n=this.updateResultCallback(n,e)),this.getResultCallback(n)},t.prototype.processedText=function(e){var n=this.url;if(n&&(n=n.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var r=e.processTextEx({text:n,runAtDesign:!0}),o=e.processTextEx({text:this.path,runAtDesign:!0});!r.hasAllValuesOnLastRun||!o.hasAllValuesOnLastRun?(this.processedUrl="",this.processedPath=""):(this.processedUrl=r.text,this.processedPath=o.text)}else this.processedUrl=n,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var n;if(e&&typeof e.indexOf=="function"&&e.indexOf("<")===0){var r=new ne;n=r.parseXmlString(e)}else try{n=JSON.parse(e)}catch{n=(e||"").split(`
-`).map(function(s){return s.trim(" ")}).filter(function(s){return!!s})}return n},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var n=this,r=this.objHash;e.onload=function(){n.beforeLoadRequest(),e.status===200?n.onLoad(n.parseResponse(e.response),r):n.onError(e.statusText,e.responseText)};var o={request:e};z.web.onBeforeRequestChoices&&z.web.onBeforeRequestChoices(this,o),this.beforeSendRequest(),o.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.url&&!this.path},enumerable:!1,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),n=new Array,r=0;r<e.length;r++)n.push(this.getCustomPropertyName(e[r].name));return n},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=G.getProperties(this.itemValueType),n=[],r=0;r<e.length;r++)e[r].name==="value"||e[r].name==="text"||e[r].name==="visibleIf"||e[r].name==="enableIf"||n.push(e[r]);return n},t.prototype.getAllPropertiesNames=function(){var e=new Array;return G.getPropertiesByObj(this).forEach(function(n){return e.push(n.name)}),this.getCustomPropertiesNames().forEach(function(n){return e.push(n)}),e},t.prototype.setData=function(e){var n=this;e||(e={}),this.getAllPropertiesNames().forEach(function(r){n[r]=e[r]})},t.prototype.getData=function(){var e=this,n={},r=!1;return this.getAllPropertiesNames().forEach(function(o){var s=e[o];!e.isValueEmpty(s)&&s!==e.getDefaultPropertyValue(o)&&(n[o]=s,r=!0)}),r?n:null},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url")||""},set:function(e){this.setPropertyValue("url",e),this.isUsingCacheFromUrl=void 0,e&&(e.indexOf(t.cacheText)>-1?this.isUsingCacheFromUrl=!0:e.indexOf(t.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path")||""},set:function(e){this.setPropertyValue("path",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse")},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems")},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=G.findProperty(this.owner.getType(),"choices");return!e||e.type=="itemvalue[]"?"itemvalue":e.type},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.setData(void 0)},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,n){n===void 0&&(n=null),n||(n=this.objHash);var r=new Array,o=this.getResultAfterPath(e);if(o&&o.length)for(var s=0;s<o.length;s++){var c=o[s];if(c){var y=this.getItemValueCallback?this.getItemValueCallback(c):this.getValue(c),w=this.createItemValue(y);this.setTitle(w,c),this.setCustomProperties(w,c),this.attachOriginalItems&&(w.originalItem=c);var N=this.getImageLink(c);N&&(w.imageLink=N),r.push(w)}}else this.allowEmptyResponse||(this.error=new el(null,this.owner));this.updateResultCallback&&(r=this.updateResultCallback(r,e)),this.isUsingCache&&(t.itemsResult[n]=r),this.callResultCallback(r,n),t.unregisterSameRequests(this,r)},t.prototype.callResultCallback=function(e,n){n==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,n){for(var r=this.getCustomProperties(),o=0;o<r.length;o++){var s=r[o],c=this.getValueCore(n,this.getPropertyBinding(s.name));this.isValueEmpty(c)||(e[s.name]=c)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,n){this.error=new Xu(e,n,this.owner),this.doEmptyResultCallback(n),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e||!this.processedPath)return e;for(var n=this.getPathes(),r=0;r<n.length;r++)if(e=e[n[r]],!e)return null;return e},t.prototype.getPathes=function(){var e=[];return this.processedPath.indexOf(";")>-1?e=this.path.split(";"):e=this.processedPath.split(","),e.length==0&&e.push(this.processedPath),e},t.prototype.getValue=function(e){if(!e)return null;if(this.valueName)return this.getValueCore(e,this.valueName);if(!(e instanceof Object))return e;var n=Object.keys(e).length;return n<1?null:e[Object.keys(e)[0]]},t.prototype.setTitle=function(e,n){var r=this.titleName?this.titleName:"title",o=this.getValueCore(n,r);o&&(typeof o=="string"?e.text=o:e.locText.setJson(o))},t.prototype.getImageLink=function(e){var n=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,n)},t.prototype.getValueCore=function(e,n){if(!e)return null;if(n.indexOf(".")<0)return e[n];for(var r=n.split("."),o=0;o<r.length;o++)if(e=e[r[o]],!e)return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName+";"+this.imageLinkName},enumerable:!1,configurable:!0}),t.cacheText="{CACHE}",t.noCacheText="{NOCACHE}",t.itemsResult={},t.sendingSameRequests={},t}(Je),Se=function(i){W(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return Object.defineProperty(t,"EncodeParameters",{get:function(){return ue.EncodeParameters},set:function(e){ue.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){ue.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return z.web.onBeforeRequestChoices},set:function(e){z.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t}(ue);G.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(i){return!!i&&!!i.owner&&i.owner.getType()=="imagepicker"}},{name:"allowEmptyResponse:boolean"},{name:"attachOriginalItems:boolean",visible:!1}],function(){return new ue});var Fe=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),vt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Pn=function(i){Fe(t,i);function t(e){var n=i.call(this,e)||this;return n.generatedVisibleRows=null,n.generatedTotalRow=null,n.filteredRows=null,n.columns=n.createColumnValues(),n.rows=n.createItemValues("rows"),n}return t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.updateVisibilityBasedOnRows()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){var e=this,n=[];return this.columns.forEach(function(r){e.isColumnVisible(r)&&n.push(r)}),n},enumerable:!1,configurable:!0}),t.prototype.isColumnVisible=function(e){return e.isVisible},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var n=this.processRowsOnSet(e);this.setPropertyValue("rows",n)},enumerable:!1,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.isLoadingFromJsonValue||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.isLoadingFromJson||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.runItemsCondition(e,n)},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&this.onVisibleChanged()},t.prototype.isVisibleCore=function(){var e,n=i.prototype.isVisibleCore.call(this);return!n||!this.hideIfRowsEmpty?n:((e=this.visibleRows)===null||e===void 0?void 0:e.length)>0},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,n){var r=this.hasRowsAsItems()&&this.runConditionsForRows(e,n),o=this.runConditionsForColumns(e,n);r=o||r,r&&(this.isClearValueOnHidden&&o&&this.clearInvisibleColumnValues(),this.clearGeneratedRows(),o&&this.onColumnsChanged(),this.onRowsChanged())},t.prototype.isRowsFiltered=function(){return!!this.filteredRows},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.createRowsVisibleIfRunner=function(){return null},t.prototype.runConditionsForRows=function(e,n){var r=!!this.survey&&this.survey.areInvisibleElementsShowing,o=r?null:this.createRowsVisibleIfRunner();this.filteredRows=[];var s=ge.runConditionsForItems(this.rows,this.filteredRows,o,e,n,!r);return ge.runEnabledConditionsForItems(this.rows,void 0,e,n),this.filteredRows.length===this.rows.length&&(this.filteredRows=null),s},t.prototype.runConditionsForColumns=function(e,n){var r=!!this.survey&&!this.survey.areInvisibleElementsShowing,o=r&&this.columnsVisibleIf?new pn(this.columnsVisibleIf):null;return ge.runConditionsForItems(this.columns,void 0,o,e,n,this.shouldRunColumnExpression())},t.prototype.clearInvisibleColumnValues=function(){},t.prototype.clearInvisibleValuesInRows=function(){},t.prototype.needResponsiveWidth=function(){return!0},Object.defineProperty(t.prototype,"columnsAutoWidth",{get:function(){return!this.isMobile&&!this.columns.some(function(e){return!!e.width})},enumerable:!1,configurable:!0}),t.prototype.getTableCss=function(){var e;return new te().append(this.cssClasses.root).append(this.cssClasses.columnsAutoWidth,this.columnsAutoWidth).append(this.cssClasses.noHeader,!this.showHeader).append(this.cssClasses.hasFooter,!!(!((e=this.renderedTable)===null||e===void 0)&&e.showAddRowOnBottom)).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,this.verticalAlign==="top").append(this.cssClasses.rootVerticalAlignMiddle,this.verticalAlign==="middle").toString()},Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth")||""},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth")||""},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayMode",{get:function(){return this.getPropertyValue("displayMode")},set:function(e){this.setPropertyValue("displayMode",e)},enumerable:!1,configurable:!0}),t.prototype.getCellAriaLabel=function(e,n){var r=(this.getLocalizationString("matrix_row")||"row").toLocaleLowerCase(),o=(this.getLocalizationString("matrix_column")||"column").toLocaleLowerCase();return r+" "+e+", "+o+" "+n},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getIsMobile=function(){return this.displayMode=="auto"?i.prototype.getIsMobile.call(this):this.displayMode==="list"},vt([D()],t.prototype,"verticalAlign",void 0),vt([D()],t.prototype,"alternateRows",void 0),t}(K);G.addClass("matrixbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"columnsVisibleIf:condition","rowsVisibleIf:condition","columnMinWidth",{name:"showHeader:boolean",default:!0},{name:"verticalAlign",choices:["top","middle"],default:"middle"},{name:"alternateRows:boolean",default:!1},{name:"displayMode",default:"auto",choices:["auto","table","list"],visible:!1}],void 0,"question");var Cn=function(){function i(){}return i}(),Ri=function(){function i(t,e){this.name=t,this.returnDisplayValue=e,this.isExists=!1,this.canProcess=!0}return i}(),Mr=function(){function i(){this._unObservableValues=[void 0]}return Object.defineProperty(i.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(t){this._unObservableValues[0]=t},enumerable:!1,configurable:!0}),i.prototype.process=function(t,e,n){if(e===void 0&&(e=!1),n===void 0&&(n=!1),this.hasAllValuesOnLastRunValue=!0,!t||!this.onProcess)return t;for(var r=this.getItems(t),o=r.length-1;o>=0;o--){var s=r[o],c=this.getName(t.substring(s.start+1,s.end));if(c){var y=new Ri(c,e);if(this.onProcess(y),!y.isExists){y.canProcess&&(this.hasAllValuesOnLastRunValue=!1);continue}m.isValueEmpty(y.value)&&(this.hasAllValuesOnLastRunValue=!1);var w=m.isValueEmpty(y.value)?"":y.value;n&&(w=encodeURIComponent(w)),t=t.substring(0,s.start)+w+t.substring(s.end+1)}}return t},i.prototype.processValue=function(t,e){var n=new Ri(t,e);return this.onProcess&&this.onProcess(n),n},Object.defineProperty(i.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),i.prototype.getItems=function(t){for(var e=[],n=t.length,r=-1,o="",s=0;s<n;s++)if(o=t[s],o=="{"&&(r=s),o=="}"){if(r>-1){var c=new Cn;c.start=r,c.end=s,e.push(c)}r=-1}return e},i.prototype.getName=function(t){if(t)return t.trim()},i}(),ei=function(){function i(t){var e=this;this.variableName=t,this.textPreProcessor=new Mr,this.textPreProcessor.onProcess=function(n){e.getProcessedTextValue(n)}}return i.prototype.processValue=function(t,e){return this.textPreProcessor.processValue(t,e)},Object.defineProperty(i.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),i.prototype.getValues=function(){return this.panel?this.panel.getValue():null},i.prototype.getQuestionByName=function(t){return this.panel?this.panel.getQuestionByValueName(t):null},i.prototype.getParentTextProcessor=function(){return null},i.prototype.onCustomProcessText=function(t){return!1},i.prototype.getQuestionDisplayText=function(t){return t.displayValue},i.prototype.getProcessedTextValue=function(t){if(t&&!this.onCustomProcessText(t)){var e=new ke().getFirstName(t.name);if(t.isExists=e==this.variableName,t.canProcess=t.isExists,!!t.canProcess){t.name=t.name.replace(this.variableName+".","");var e=new ke().getFirstName(t.name),n=this.getQuestionByName(e),r={};if(n)r[e]=t.returnDisplayValue?this.getQuestionDisplayText(n):n.value;else{var o=this.panel?this.getValues():null;o&&(r[e]=o[e])}t.value=new ke().getValue(t.name,r)}}},i.prototype.processText=function(t,e){return this.survey&&this.survey.isDesignMode?t:(t=this.textPreProcessor.process(t,e),t=this.processTextCore(this.getParentTextProcessor(),t,e),this.processTextCore(this.survey,t,e))},i.prototype.processTextEx=function(t){t.text=this.processText(t.text,t.returnDisplayValue);var e=this.textPreProcessor.hasAllValuesOnLastRun,n={hasAllValuesOnLastRun:!0,text:t.text};return this.survey&&(n=this.survey.processTextEx(t)),n.hasAllValuesOnLastRun=n.hasAllValuesOnLastRun&&e,n},i.prototype.processTextCore=function(t,e,n){return t?t.processText(e,n):e},i}(),xn=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),na=function(){function i(t,e){this.name=t,this.json=e;var n=this;G.addClass(t,[],function(r){return ra.Instance.createQuestion(r?r.name:"",n)},"question"),this.onInit()}return i.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},i.prototype.onCreated=function(t){this.json.onCreated&&this.json.onCreated(t)},i.prototype.onLoaded=function(t){this.json.onLoaded&&this.json.onLoaded(t)},i.prototype.onAfterRender=function(t,e){this.json.onAfterRender&&this.json.onAfterRender(t,e)},i.prototype.onAfterRenderContentElement=function(t,e,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(t,e,n)},i.prototype.onUpdateQuestionCssClasses=function(t,e,n){this.json.onUpdateQuestionCssClasses&&this.json.onUpdateQuestionCssClasses(t,e,n)},i.prototype.onSetQuestionValue=function(t,e){this.json.onSetQuestionValue&&this.json.onSetQuestionValue(t,e),this.json.onValueSet&&this.json.onValueSet(t,e)},i.prototype.onPropertyChanged=function(t,e,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(t,e,n)},i.prototype.onValueChanged=function(t,e,n){this.json.onValueChanged&&this.json.onValueChanged(t,e,n)},i.prototype.onValueChanging=function(t,e,n){return this.json.onValueChanging?this.json.onValueChanging(t,e,n):n},i.prototype.onGetErrorText=function(t){if(this.json.getErrorText)return this.json.getErrorText(t)},i.prototype.onItemValuePropertyChanged=function(t,e,n,r,o){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(t,{obj:e,propertyName:n,name:r,newValue:o})},i.prototype.getDisplayValue=function(t,e,n){return this.json.getDisplayValue?this.json.getDisplayValue(n):n.getDisplayValue(t,e)},Object.defineProperty(i.prototype,"defaultQuestionTitle",{get:function(){return this.json.defaultQuestionTitle},enumerable:!1,configurable:!0}),i.prototype.setValueToQuestion=function(t){var e=this.json.valueToQuestion||this.json.setValue;return e?e(t):t},i.prototype.getValueFromQuestion=function(t){var e=this.json.valueFromQuestion||this.json.getValue;return e?e(t):t},Object.defineProperty(i.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),i.prototype.getDynamicProperties=function(){return Array.isArray(this.dynamicProperties)||(this.dynamicProperties=this.calcDynamicProperties()),this.dynamicProperties},i.prototype.calcDynamicProperties=function(){var t=this.json.inheritBaseProps;if(!t||!this.json.questionJSON)return[];var e=this.json.questionJSON.type;if(!e)return[];if(Array.isArray(t)){var n=[];return t.forEach(function(s){var c=G.findProperty(e,s);c&&n.push(c)}),n}var r=[];for(var o in this.json.questionJSON)r.push(o);return G.getDynamicPropertiesByTypes(this.name,e,r)},i}(),ra=function(){function i(){this.customQuestionValues=[]}return i.prototype.add=function(t){if(t){var e=t.name;if(!e)throw"Attribute name is missed";if(e=e.toLowerCase(),this.getCustomQuestionByName(e))throw"There is already registered custom question with name '"+e+"'";if(G.findClass(e))throw"There is already class with name '"+e+"'";var n=new na(e,t);this.onAddingJson&&this.onAddingJson(e,n.isComposite),this.customQuestionValues.push(n)}},i.prototype.remove=function(t){if(!t)return!1;var e=this.getCustomQuestionIndex(t.toLowerCase());return e<0?!1:(this.removeByIndex(e),!0)},Object.defineProperty(i.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),i.prototype.getCustomQuestionByName=function(t){var e=this.getCustomQuestionIndex(t);return e>=0?this.customQuestionValues[e]:void 0},i.prototype.getCustomQuestionIndex=function(t){for(var e=0;e<this.customQuestionValues.length;e++)if(this.customQuestionValues[e].name===t)return e;return-1},i.prototype.removeByIndex=function(t){G.removeClass(this.customQuestionValues[t].name),this.customQuestionValues.splice(t,1)},i.prototype.clear=function(t){for(var e=this.customQuestionValues.length-1;e>=0;e--)(t||!this.customQuestionValues[e].json.internal)&&this.removeByIndex(e)},i.prototype.createQuestion=function(t,e){return e.isComposite?this.createCompositeModel(t,e):this.createCustomModel(t,e)},i.prototype.createCompositeModel=function(t,e){return this.onCreateComposite?this.onCreateComposite(t,e):new oa(t,e)},i.prototype.createCustomModel=function(t,e){return this.onCreateCustom?this.onCreateCustom(t,e):new tl(t,e)},i.Instance=new i,i}(),ia=function(i){xn(t,i);function t(e,n){var r=i.call(this,e)||this;return r.customQuestion=n,rt.createProperties(r),sn.CreateDisabledDesignElements=!0,r.locQuestionTitle=r.createLocalizableString("questionTitle",r),r.locQuestionTitle.setJson(r.customQuestion.defaultQuestionTitle),r.createWrapper(),sn.CreateDisabledDesignElements=!1,r.customQuestion&&r.customQuestion.onCreated(r),r}return t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStrsChanged()},t.prototype.localeChanged=function(){i.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().localeChanged()},t.prototype.getDefaultTitle=function(){return this.locQuestionTitle.isEmpty?i.prototype.getDefaultTitle.call(this):this.getProcessedText(this.locQuestionTitle.textOrHtml)},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.getElement()&&this.getElement().addUsedLocales(e)},t.prototype.needResponsiveWidth=function(){var e=this.getElement();return e?e.needResponsiveWidth():!1},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(e,n,r){i.prototype.onPropertyValueChanged.call(this,e,n,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,e,r)},t.prototype.itemValuePropertyChanged=function(e,n,r,o){i.prototype.itemValuePropertyChanged.call(this,e,n,r,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,e,e.ownerPropertyName,n,o)},t.prototype.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this);var e=this.getElement();e&&e.onFirstRendering()},t.prototype.onHidingContent=function(){i.prototype.onHidingContent.call(this);var e=this.getElement();e&&e.onHidingContent()},t.prototype.getProgressInfo=function(){var e=i.prototype.getProgressInfo.call(this);return this.getElement()&&(e=this.getElement().getProgressInfo()),this.isRequired&&e.requiredQuestionCount==0&&(e.requiredQuestionCount=1,this.isEmpty()||(e.answeredQuestionCount=1)),e},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(e,n){this.isSettingValOnLoading=!0,i.prototype.setSurveyImpl.call(this,e,n),this.initElement(this.getElement()),this.isSettingValOnLoading=!1},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.customQuestion&&this.customQuestion.onAfterRender(this,e)},t.prototype.onUpdateQuestionCssClasses=function(e,n){this.customQuestion&&this.customQuestion.onUpdateQuestionCssClasses(this,e,n)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.updateElementCss(),this.customQuestion&&this.customQuestion.onSetQuestionValue(this,e)},t.prototype.setNewValue=function(e){i.prototype.setNewValue.call(this,e),this.updateElementCss()},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),this.customQuestion){var o=this.customQuestion.onGetErrorText(this);o&&e.push(new bn(o,this))}},t.prototype.getSurveyData=function(){return this},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,n,r,o){if(this.data){this.customQuestion&&this.customQuestion.onValueChanged(this,e,n);var s=this.convertDataName(e),c=this.convertDataValue(e,n);this.valueToDataCallback&&(c=this.valueToDataCallback(c)),this.data.setValue(s,c,r,o),this.updateIsAnswered(),this.updateElementCss()}},t.prototype.getQuestionByName=function(e){},t.prototype.isValueChanging=function(e,n){if(this.customQuestion){var r=n;if(n=this.customQuestion.onValueChanging(this,e,n),!m.isTwoValueEquals(n,r)){var o=this.getQuestionByName(e);if(o)return o.value=n,!0}}return!1},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,n){return n},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,n){this.data&&this.data.setVariable(e,n)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,n,r){this.data&&this.data.setComment(this.getValueName(),n,r)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.findQuestionByName=function(e){return this.data?this.data.findQuestionByName(e):null},t.prototype.getEditingSurveyElement=function(){},t.prototype.addElement=function(e,n){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getColumsForElement=function(e){return[]},t.prototype.updateColumns=function(){},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.onQuestionValueChanged=function(e){},t.prototype.getQuestionErrorLocation=function(){return this.getErrorLocation()},t.prototype.getContentDisplayValueCore=function(e,n,r){return r?this.customQuestion.getDisplayValue(e,n,r):i.prototype.getDisplayValueCore.call(this,e,n)},t}(K),tl=function(i){xn(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getTemplate=function(){return"custom"},t.prototype.getDynamicProperties=function(){return this.customQuestion.getDynamicProperties()||[]},t.prototype.getDynamicType=function(){return this.questionWrapper?this.questionWrapper.getType():"question"},t.prototype.getOriginalObj=function(){return this.questionWrapper},t.prototype.createWrapper=function(){var e=this;this.questionWrapper=this.createQuestion(),this.createDynamicProperties(this.questionWrapper),this.getDynamicProperties().length>0&&(this.questionWrapper.onPropertyValueChangedCallback=function(n,r,o,s,c){var y=e.getDynamicProperty(n);y&&e.propertyValueChanged(n,r,o,c)})},t.prototype.getDynamicProperty=function(e){for(var n=this.getDynamicProperties(),r=0;r<n.length;r++)if(n[r].name===e)return n[r];return null},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(e,n)},t.prototype.getQuestionByName=function(e){return this.contentQuestion},t.prototype.getDefaultTitle=function(){return this.hasJSONTitle&&this.contentQuestion?this.getProcessedText(this.contentQuestion.title):i.prototype.getDefaultTitle.call(this)},t.prototype.setValue=function(e,n,r,o){this.isValueChanging(e,n)||i.prototype.setValue.call(this,e,n,r,o)},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),this.survey&&!this.isEmpty()&&this.setValue(this.name,this.value,!1,this.allowNotifyValueChanged)},t.prototype.hasErrors=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=null),!this.contentQuestion)return!1;var r=this.contentQuestion.hasErrors(e,n);this.errors=[];for(var o=0;o<this.contentQuestion.errors.length;o++)this.errors.push(this.contentQuestion.errors[o]);return r||(r=i.prototype.hasErrors.call(this,e,n)),this.updateElementCss(),r},t.prototype.focus=function(e){e===void 0&&(e=!1),this.contentQuestion?this.contentQuestion.focus(e):i.prototype.focus.call(this,e)},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.contentQuestion&&this.contentQuestion.afterRender(e)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this,n=this.customQuestion.json,r=null;if(n.questionJSON){this.hasJSONTitle=!!n.questionJSON.title;var o=n.questionJSON.type;if(!o||!G.findClass(o))throw"type attribute in questionJSON is empty or incorrect";r=G.createClass(o),r.fromJSON(n.questionJSON),r=this.checkCreatedQuestion(r)}else n.createQuestion&&(r=this.checkCreatedQuestion(n.createQuestion()));return this.initElement(r),r&&(r.isContentElement=!0,r.name||(r.name="question"),r.onUpdateCssClassesCallback=function(s){e.onUpdateQuestionCssClasses(r,s)},r.hasCssErrorCallback=function(){return e.errors.length>0},r.setValueChangedDirectlyCallback=function(s){e.setValueChangedDirectly(s)}),r},t.prototype.checkCreatedQuestion=function(e){return e&&(e.isQuestion||(Array.isArray(e.questions)&&e.questions.length>0?e=e.questions[0]:e=G.createClass("text"),mt.error("Could not create component: '"+this.getType()+"'. questionJSON should be a question.")),e)},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.getContentQuestionValue())},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.contentQuestion&&this.contentQuestion.runCondition(e,n)},t.prototype.convertDataName=function(e){var n=this.contentQuestion;if(!n||e===this.getValueName())return i.prototype.convertDataName.call(this,e);var r=e.replace(n.getValueName(),this.getValueName());return r.indexOf(this.getValueName())==0?r:i.prototype.convertDataName.call(this,e)},t.prototype.convertDataValue=function(e,n){return this.convertDataName(e)==i.prototype.convertDataName.call(this,e)?this.getContentQuestionValue():n},t.prototype.getContentQuestionValue=function(){if(this.contentQuestion){var e=this.contentQuestion.value;return this.customQuestion&&(e=this.customQuestion.getValueFromQuestion(e)),e}},t.prototype.setContentQuestionValue=function(e){this.contentQuestion&&(this.customQuestion&&(e=this.customQuestion.setValueToQuestion(e)),this.contentQuestion.value=e)},t.prototype.canSetValueToSurvey=function(){return!1},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),!this.isLoadingFromJson&&this.contentQuestion&&!this.isTwoValueEquals(this.getContentQuestionValue(),e)&&this.setContentQuestionValue(this.getUnbindValue(e))},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(e)},t.prototype.getValueCore=function(){return this.contentQuestion?this.getContentQuestionValue():i.prototype.getValueCore.call(this)},t.prototype.setValueChangedDirectly=function(e){this.isSettingValueChanged||(this.isSettingValueChanged=!0,i.prototype.setValueChangedDirectly.call(this,e),this.contentQuestion&&this.contentQuestion.setValueChangedDirectly(e),this.isSettingValueChanged=!1)},t.prototype.createDynamicProperties=function(e){if(e){var n=this.getDynamicProperties();Array.isArray(n)&&G.addDynamicPropertiesIntoObj(this,e,n)}},t.prototype.initElement=function(e){var n=this;i.prototype.initElement.call(this,e),e&&(e.parent=this,e.afterRenderQuestionCallback=function(r,o){n.customQuestion&&n.customQuestion.onAfterRenderContentElement(n,r,o)})},t.prototype.updateElementCss=function(e){this.contentQuestion&&this.questionWrapper.updateElementCss(e),i.prototype.updateElementCss.call(this,e)},t.prototype.updateElementCssCore=function(e){this.contentQuestion&&(e=this.contentQuestion.cssClasses),i.prototype.updateElementCssCore.call(this,e)},t.prototype.getDisplayValueCore=function(e,n){return i.prototype.getContentDisplayValueCore.call(this,e,n,this.contentQuestion)},t}(ia),Ec=function(i){xn(t,i);function t(e,n){var r=i.call(this,n)||this;return r.composite=e,r.variableName=n,r}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.composite.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.composite.contentPanel},enumerable:!1,configurable:!0}),t}(ei),oa=function(i){xn(t,i);function t(e,n){var r=i.call(this,e,n)||this;return r.customQuestion=n,r.settingNewValue=!1,r.textProcessing=new Ec(r,t.ItemVariableName),r}return t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},t.prototype.getCssRoot=function(e){return new te().append(i.prototype.getCssRoot.call(this,e)).append(e.composite).toString()},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=i.prototype.hasErrors.call(this,e,n);return this.contentPanel&&this.contentPanel.hasErrors(e,!1,n)||r},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e),this.contentPanel&&this.contentPanel.updateElementCss(e)},t.prototype.dispose=function(){this.unConnectEditingObj(),i.prototype.dispose.call(this)},t.prototype.updateEditingObj=function(){var e=this,n,r=(n=this.data)===null||n===void 0?void 0:n.getEditingSurveyElement();if(r){var o=r[this.getValueName()];return o&&!o.onPropertyChanged&&(o=void 0),o!==this.editingObjValue&&(this.unConnectEditingObj(),this.editingObjValue=o,o&&(this.onEditingObjPropertyChanged=function(s,c){e.setNewValueIntoQuestion(c.name,e.editingObjValue[c.name])},o.onPropertyChanged.add(this.onEditingObjPropertyChanged))),this.editingObjValue}},t.prototype.unConnectEditingObj=function(){this.editingObjValue&&!this.editingObjValue.isDisposed&&this.editingObjValue.onPropertyChanged.remove(this.onEditingObjPropertyChanged)},t.prototype.getEditingSurveyElement=function(){return this.editingObjValue},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.findQuestionByName=function(e){var n=this.getQuestionByName(e);return n||i.prototype.findQuestionByName.call(this,e)},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e);for(var n=this.contentPanel.questions,r=0;r<n.length;r++)n[r].clearValueIfInvisible(e)},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n);for(var r=this.contentPanel.questions,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,n)},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.createPanel=function(){var e=this,n=G.createClass("panel");n.showQuestionNumbers="off",n.renderWidth="100%";var r=this.customQuestion.json;return r.elementsJSON&&n.fromJSON({elements:r.elementsJSON}),r.createElements&&r.createElements(n,this),this.initElement(n),n.readOnly=this.isReadOnly,n.questions.forEach(function(o){return o.onUpdateCssClassesCallback=function(s){e.onUpdateQuestionCssClasses(o,s)}}),this.setAfterRenderCallbacks(n),n},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateValueFromSurvey=function(e,n){n===void 0&&(n=!1),this.updateEditingObj(),i.prototype.updateValueFromSurvey.call(this,e,n)},t.prototype.onSurveyLoad=function(){if(this.isSettingValOnLoading=!0,this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),i.prototype.onSurveyLoad.call(this),this.contentPanel){var e=this.getContentPanelValue();m.isValueEmpty(e)||(this.value=e)}this.isSettingValOnLoading=!1},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var n=e.elements,r=0;r<n.length;r++){var o=n[r];o.isPanel?this.setIsContentElement(o):o.isContentElement=!0}},t.prototype.setVisibleIndex=function(e){var n=i.prototype.setVisibleIndex.call(this,e);return this.isVisible&&this.contentPanel&&(n+=this.contentPanel.setVisibleIndex(e)),n},t.prototype.runCondition=function(e,n){if(i.prototype.runCondition.call(this,e,n),this.contentPanel){var r=e[t.ItemVariableName];e[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(e,n),delete e[t.ItemVariableName],r&&(e[t.ItemVariableName]=r)}},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e);var n=e||{};this.contentPanel&&this.contentPanel.questions.forEach(function(r){r.onSurveyValueChanged(n[r.getValueName()])})},t.prototype.getValue=function(e){var n=this.value;return n?n[e]:null},t.prototype.getQuestionByName=function(e){return this.contentPanel?this.contentPanel.getQuestionByName(e):void 0},t.prototype.setValue=function(e,n,r,o){if(this.settingNewValue){this.setNewValueIntoQuestion(e,n);return}if(!this.isValueChanging(e,n)){if(this.settingNewValue=!0,!this.isEditingSurveyElement&&this.contentPanel)for(var s=0,c=this.contentPanel.questions.length+1;s<c&&this.updateValueCoreWithPanelValue();)s++;this.setNewValueIntoQuestion(e,n),i.prototype.setValue.call(this,e,n,r,o),this.settingNewValue=!1,this.runPanelTriggers(t.ItemVariableName+"."+e,n)}},t.prototype.runPanelTriggers=function(e,n){this.contentPanel&&this.contentPanel.questions.forEach(function(r){r.runTriggers(e,n)})},t.prototype.getFilteredValues=function(){var e=this.data?this.data.getFilteredValues():{};return this.contentPanel&&(e[t.ItemVariableName]=this.contentPanel.getValue()),e},t.prototype.updateValueCoreWithPanelValue=function(){var e=this.getContentPanelValue();return this.isTwoValueEquals(this.getValueCore(),e)?!1:(this.setValueCore(e),!0)},t.prototype.getContentPanelValue=function(e){return e||(e=this.contentPanel.getValue()),this.customQuestion.setValueToQuestion(e)},t.prototype.getValueForContentPanel=function(e){return this.customQuestion.getValueFromQuestion(e)},t.prototype.setNewValueIntoQuestion=function(e,n){var r=this.getQuestionByName(e);r&&!this.isTwoValueEquals(n,r.value)&&(r.value=n)},t.prototype.addConditionObjectsByContext=function(e,n){if(this.contentPanel)for(var r=this.contentPanel.questions,o=this.name,s=this.title,c=0;c<r.length;c++)e.push({name:o+"."+r[c].name,text:s+"."+r[c].title,question:r[c]})},t.prototype.collectNestedQuestionsCore=function(e,n){this.contentPanel&&this.contentPanel.questions.forEach(function(r){return r.collectNestedQuestions(e,n)})},t.prototype.convertDataValue=function(e,n){var r=this.contentPanel&&!this.isEditingSurveyElement?this.contentPanel.getValue():this.getValueForContentPanel(this.value);return r||(r={}),r.getType||(r=m.getUnbindValue(r)),this.isValueEmpty(n)&&!this.isEditingSurveyElement?delete r[e]:r[e]=n,this.getContentPanelValue(r)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),this.setValuesIntoQuestions(e),!this.isEditingSurveyElement&&this.contentPanel&&(e=this.getContentPanelValue()),i.prototype.setQuestionValue.call(this,e,n)},t.prototype.setValuesIntoQuestions=function(e){if(this.contentPanel){e=this.getValueForContentPanel(e);var n=this.settingNewValue;this.settingNewValue=!0;for(var r=this.contentPanel.questions,o=0;o<r.length;o++){var s=r[o].getValueName(),c=e?e[s]:void 0,y=r[o];!this.isTwoValueEquals(y.value,c)&&(c!==void 0||!y.isEmpty())&&(y.value=c)}this.settingNewValue=n}},t.prototype.getDisplayValueCore=function(e,n){return i.prototype.getContentDisplayValueCore.call(this,e,n,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var n=this;if(!(!e||!this.customQuestion))for(var r=e.questions,o=0;o<r.length;o++)r[o].afterRenderQuestionCallback=function(s,c){n.customQuestion.onAfterRenderContentElement(n,s,c)}},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),t.ItemVariableName="composite",t}(ia),bt=function(){function i(){}return Object.defineProperty(i,"DefaultChoices",{get:function(){var t=ee("choices_Item");return[t+"1",t+"2",t+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultColums",{get:function(){var t=ee("matrix_column")+" ";return[t+"1",t+"2",t+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultRows",{get:function(){var t=ee("matrix_row")+" ";return[t+"1",t+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(i,"DefaultMutlipleTextItems",{get:function(){var t=ee("multipletext_itemname");return[t+"1",t+"2"]},enumerable:!1,configurable:!0}),i.prototype.registerQuestion=function(t,e,n){n===void 0&&(n=!0),er.Instance.registerElement(t,e,n)},i.prototype.registerCustomQuestion=function(t){er.Instance.registerCustomQuestion(t)},i.prototype.unregisterElement=function(t,e){e===void 0&&(e=!1),er.Instance.unregisterElement(t,e)},i.prototype.clear=function(){er.Instance.clear()},i.prototype.getAllTypes=function(){return er.Instance.getAllTypes()},i.prototype.createQuestion=function(t,e){return er.Instance.createElement(t,e)},i.Instance=new i,i}(),er=function(){function i(){var t=this;this.creatorHash={},this.registerCustomQuestion=function(e,n){n===void 0&&(n=!0);var r=function(o){var s=G.createClass(e);return s&&(s.name=o),s};t.registerElement(e,r,n)}}return i.prototype.registerElement=function(t,e,n){n===void 0&&(n=!0),this.creatorHash[t]={showInToolbox:n,creator:e}},i.prototype.clear=function(){this.creatorHash={}},i.prototype.unregisterElement=function(t,e){e===void 0&&(e=!1),delete this.creatorHash[t],e&&G.removeClass(t)},i.prototype.getAllToolboxTypes=function(){return this.getAllTypesCore(!0)},i.prototype.getAllTypes=function(){return this.getAllTypesCore(!1)},i.prototype.createElement=function(t,e){var n=this.creatorHash[t];if(n&&n.creator)return n.creator(e);var r=ra.Instance.getCustomQuestionByName(t);return r?ra.Instance.createQuestion(e,r):null},i.prototype.getAllTypesCore=function(t){var e=new Array;for(var n in this.creatorHash)(!t||this.creatorHash[n].showInToolbox)&&e.push(n);return e.sort()},i.Instance=new i,i}(),go=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ns=function(i){go(t,i);function t(e){var n=i.call(this,e)||this;return n.createLocalizableString("format",n),n.registerPropertyChangedHandlers(["expression"],function(){n.expressionRunner&&(n.expressionRunner=n.createRunner())}),n.registerPropertyChangedHandlers(["format","currency","displayStyle"],function(){n.updateFormatedValue()}),n}return t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),!(!this.expression||this.expressionIsRunning||!this.runIfReadOnly&&this.isReadOnly)&&(this.locCalculation(),this.expressionRunner||(this.expressionRunner=this.createRunner()),this.expressionRunner.run(e,n))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1},t.prototype.createRunner=function(){var e=this,n=this.createExpressionRunner(this.expression);return n.onRunComplete=function(r){e.value=e.roundValue(r),e.unlocCalculation()},n},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runIfReadOnly",{get:function(){return this.runIfReadOnlyValue===!0},set:function(e){this.runIfReadOnlyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatedValue",{get:function(){return this.getPropertyValue("formatedValue","")},enumerable:!1,configurable:!0}),t.prototype.updateFormatedValue=function(){this.setPropertyValue("formatedValue",this.getDisplayValueCore(!1,this.value))},t.prototype.onValueChanged=function(){this.updateFormatedValue()},t.prototype.updateValueFromSurvey=function(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),this.updateFormatedValue()},t.prototype.getDisplayValueCore=function(e,n){var r=n??this.defaultValue,o="";if(!this.isValueEmpty(r)){var s=this.getValueAsStr(r);o=this.format?this.format.format(s):s}return this.survey&&(o=this.survey.getExpressionDisplayValue(this,r,o)),o},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){Wa().indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping")},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(e){this.setPropertyValue("precision",e)},enumerable:!1,configurable:!0}),t.prototype.roundValue=function(e){if(e!==1/0)return this.precision<0||!m.isNumber(e)?e:parseFloat(e.toFixed(this.precision))},t.prototype.getValueAsStr=function(e){if(this.displayStyle=="date"){var n=j("question-expression",e);if(n&&n.toLocaleDateString)return n.toLocaleDateString()}if(this.displayStyle!="none"&&m.isNumber(e)){var r=this.getLocale();r||(r="en");var o={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(o.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(o.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(r,o)}return e.toString()},t}(K);function Wa(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]}G.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return Wa()},default:"USD",visibleIf:function(i){return i.displayStyle==="currency"}},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"precision:number",default:-1,category:"data"},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"resetValueIf",visible:!1},{name:"setValueIf",visible:!1},{name:"setValueExpression",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],function(){return new ns("")},"question"),bt.Instance.registerQuestion("expression",function(i){return new ns(i)});var _p=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();function $a(i,t,e,n){i.storeOthersAsComment=e?e.storeOthersAsComment:!1,(!i.choices||i.choices.length==0)&&i.choicesByUrl.isEmpty&&(i.choices=e.choices),i.choicesByUrl.isEmpty||i.choicesByUrl.run(n.getTextProcessor())}function Ga(i,t,e,n){$a(i,t,e,n),i.locPlaceholder&&i.locPlaceholder.isEmpty&&!e.locPlaceholder.isEmpty&&(i.optionsCaption=e.optionsCaption)}var rs={dropdown:{onCellQuestionUpdate:function(i,t,e,n){Ga(i,t,e,n)}},checkbox:{onCellQuestionUpdate:function(i,t,e,n){$a(i,t,e,n),i.colCount=t.colCount>-1?t.colCount:e.columnColCount}},radiogroup:{onCellQuestionUpdate:function(i,t,e,n){$a(i,t,e,n),i.colCount=t.colCount>-1?t.colCount:e.columnColCount}},tagbox:{onCellQuestionUpdate:function(i,t,e,n){$a(i,t,e,n)}},text:{},comment:{},boolean:{onCellQuestionUpdate:function(i,t,e,n){i.renderAs=t.renderAs}},expression:{},rating:{}},mo=function(i){_p(t,i);function t(e,n,r){var o=i.call(this)||this;return o.indexValue=-1,o._hasVisibleCell=!0,o.isColumnsVisibleIf=!0,o.previousChoicesId=void 0,o.colOwnerValue=r,o.createLocalizableString("totalFormat",o),o.createLocalizableString("cellHint",o),o.registerPropertyChangedHandlers(["showInMultipleColumns"],function(){o.doShowInMultipleColumnsChanged()}),o.registerPropertyChangedHandlers(["visible"],function(){o.doColumnVisibilityChanged()}),o.updateTemplateQuestion(void 0,e,n),o}return t.getColumnTypes=function(){var e=[];for(var n in rs)e.push(n);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var e=this;i.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return e.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return this.cellType==="default"?"question":this.calcCellQuestionType(null)},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,e&&(this.updateTemplateQuestion(),this.setParentQuestionToTemplate(this.templateQuestion))},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.templateQuestion.addUsedLocales(e)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!1,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(e){e=e.toLocaleLowerCase(),this.updateTemplateQuestion(e),this.setPropertyValue("cellType",e),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isColumnVisible",{get:function(){return this.isDesignMode?!0:this.visible&&this.hasVisibleCell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.templateQuestion.visible},set:function(e){this.templateQuestion.visible=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e},enumerable:!1,configurable:!0}),t.prototype.getVisibleMultipleChoices=function(){var e=this.templateQuestion.visibleChoices;if(!Array.isArray(e))return[];if(!Array.isArray(this._visiblechoices))return e;for(var n=new Array,r=0;r<e.length;r++){var o=e[r];this._visiblechoices.indexOf(o.value)>-1&&n.push(o)}return n},Object.defineProperty(t.prototype,"getVisibleChoicesInCell",{get:function(){if(Array.isArray(this._visiblechoices))return this._visiblechoices;var e=this.templateQuestion.visibleChoices;return Array.isArray(e)?e:[]},enumerable:!1,configurable:!0}),t.prototype.setVisibleChoicesInCell=function(e){this._visiblechoices=e},Object.defineProperty(t.prototype,"isFilteredMultipleColumns",{get:function(){if(!this.showInMultipleColumns)return!1;var e=this.templateQuestion.choices;if(!Array.isArray(e))return!1;for(var n=0;n<e.length;n++)if(e[n].visibleIf)return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderedRequired",{get:function(){return this.getPropertyValue("isRenderedRequired",this.isRequired)},set:function(e){this.setPropertyValue("isRenderedRequired",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsRenderedRequired=function(e){this.isRenderedRequired=e||this.isRequired},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.isRenderedRequired&&this.getSurvey()?this.getSurvey().requiredText:this.templateQuestion.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetValueIf",{get:function(){return this.templateQuestion.resetValueIf},set:function(e){this.templateQuestion.resetValueIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.templateQuestion.defaultValueExpression},set:function(e){this.templateQuestion.defaultValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueIf",{get:function(){return this.templateQuestion.setValueIf},set:function(e){this.templateQuestion.setValueIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueExpression",{get:function(){return this.templateQuestion.setValueExpression},set:function(e){this.templateQuestion.setValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUnique",{get:function(){return this.getPropertyValue("isUnique")},set:function(e){this.setPropertyValue("isUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns")},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return this.totalType!="none"||!!this.totalExpression},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellHint",{get:function(){return this.getLocalizableStringText("cellHint","")},set:function(e){this.setLocalizableStringText("cellHint",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCellHint",{get:function(){return this.getLocalizableString("cellHint")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(e){this.setPropertyValue("renderAs",e),this.templateQuestion&&(this.templateQuestion.renderAs=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalAlignment",{get:function(){return this.getPropertyValue("totalAlignment")},set:function(e){this.setPropertyValue("totalAlignment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){Wa().indexOf(e)<0||this.setPropertyValue("totalCurrency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.templateQuestion.width},set:function(e){this.templateQuestion.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.colOwner?this.colOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.colOwner?this.colOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.colOwner?this.colOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var n=this.calcCellQuestionType(e),r=this.createNewQuestion(n);return this.callOnCellQuestionUpdate(r,e),r},t.prototype.startLoadingFromJson=function(e){i.prototype.startLoadingFromJson.call(this,e),e&&!e.cellType&&e.choices&&(e.cellType=this.colOwner.getCellType())},t.prototype.updateCellQuestion=function(e,n,r){r===void 0&&(r=null),this.setQuestionProperties(e,r)},t.prototype.callOnCellQuestionUpdate=function(e,n){var r=e.getType(),o=rs[r];o&&o.onCellQuestionUpdate&&o.onCellQuestionUpdate(e,this,this.colOwner,n)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var n=this.getDefaultCellQuestionType();return e&&this.colOwner&&(n=this.colOwner.getCustomCellType(this,e,n)),n},t.prototype.getDefaultCellQuestionType=function(e){return e||(e=this.cellType),e!=="default"?e:this.colOwner?this.colOwner.getCellType():z.matrix.defaultCellType},t.prototype.updateTemplateQuestion=function(e,n,r){var o=this,s=this.getDefaultCellQuestionType(e),c=this.templateQuestion?this.templateQuestion.getType():"";s!==c&&(this.templateQuestion&&this.removeProperties(c),this.templateQuestionValue=this.createNewQuestion(s),this.templateQuestion.locOwner=this,this.addProperties(s),n&&(this.name=n),r?this.title=r:this.templateQuestion.locTitle.strChanged(),z.serialization.matrixDropdownColumnSerializeTitle&&(this.templateQuestion.locTitle.serializeCallBackText=!0),this.templateQuestion.onPropertyChanged.add(function(y,w){o.propertyValueChanged(w.name,w.oldValue,w.newValue,w.arrayChanges,w.target)}),this.templateQuestion.onItemValuePropertyChanged.add(function(y,w){o.doItemValuePropertyChanged(w.propertyName,w.obj,w.name,w.newValue,w.oldValue)}),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return o.getSurvey()}),this.templateQuestion.locTitle.strChanged())},t.prototype.createNewQuestion=function(e){var n=G.createClass(e);return n||(n=G.createClass("text")),n.loadingOwner=this,n.isEditableTemplateElement=!0,n.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(n),this.setParentQuestionToTemplate(n),n},t.prototype.setParentQuestionToTemplate=function(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)},t.prototype.setQuestionProperties=function(e,n){var r=this;if(n===void 0&&(n=null),this.templateQuestion){var o=new Vt().toJsonObject(this.templateQuestion,!0);if(n&&n(o),o.type=e.getType(),this.cellType==="default"&&this.colOwner&&this.colOwner.hasChoices()&&delete o.choices,delete o.itemComponent,this.jsonObj&&o.type==="rating"&&Object.keys(this.jsonObj).forEach(function(c){o[c]=r.jsonObj[c]}),o.choicesOrder==="random"){o.choicesOrder="none";var s=this.templateQuestion.visibleChoices;Array.isArray(s)&&(o.choices=s)}new Vt().toObject(o,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=function(){if(r.isShowInMultipleColumns&&!(r.previousChoicesId&&r.previousChoicesId!==e.id)){r.previousChoicesId=e.id;var c=e.visibleChoices;r.templateQuestion.choices=c,r.propertyValueChanged("choices",c,c)}}}},t.prototype.propertyValueChanged=function(e,n,r,o,s){if(i.prototype.propertyValueChanged.call(this,e,n,r,o,s),e==="isRequired"&&this.updateIsRenderedRequired(r),!(!this.colOwner||this.isLoadingFromJson)){if(this.isShowInMultipleColumns){if(e==="choicesOrder")return;["visibleChoices","choices"].indexOf(e)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this)}G.hasOriginalProperty(this,e)&&this.colOwner.onColumnPropertyChanged(this,e,r)}},t.prototype.doItemValuePropertyChanged=function(e,n,r,o,s){G.hasOriginalProperty(n,r)&&this.colOwner!=null&&!this.isLoadingFromJson&&this.colOwner.onColumnItemValuePropertyChanged(this,e,n,r,o,s)},t.prototype.doShowInMultipleColumnsChanged=function(){this.colOwner!=null&&this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},t.prototype.doColumnVisibilityChanged=function(){this.colOwner!=null&&!this.isDesignMode&&this.colOwner.onColumnVisibilityChanged(this)},t.prototype.getProperties=function(e){return G.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var n=this.getProperties(e),r=0;r<n.length;r++){var o=n[r];delete this[o.name],o.serializationProperty&&delete this[o.serializationProperty]}},t.prototype.addProperties=function(e){var n=this.getProperties(e);G.addDynamicPropertiesIntoObj(this,this.templateQuestion,n)},t}(Je);G.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle",dependsOn:"name",onPropertyEditorUpdate:function(i,t){i&&t&&(t.placeholder=i.name)}},{name:"cellHint",serializationProperty:"locCellHint",visible:!1},{name:"cellType",default:"default",choices:function(){var i=mo.getColumnTypes();return i.splice(0,0,"default"),i}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean","isUnique:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"minWidth",onPropertyEditorUpdate:function(i,t){i&&t&&(t.value=i.minWidth)}},"width",{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},"visibleIf:condition","enableIf:condition","requiredIf:condition","resetValueIf:condition","setValueIf:condition","setValueExpression:expression",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(i){return i.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",visibleIf:function(i){return!i.isShowInMultipleColumns},default:"none",choices:["none","sum","count","min","max","avg"]},{name:"totalExpression:expression",visibleIf:function(i){return!i.isShowInMultipleColumns}},{name:"totalFormat",serializationProperty:"locTotalFormat",visibleIf:function(i){return i.hasTotal}},{name:"totalDisplayStyle",visibleIf:function(i){return i.hasTotal},default:"none",choices:["none","decimal","currency","percent"]},{name:"totalAlignment",visibleIf:function(i){return i.hasTotal},default:"auto",choices:["auto","left","center","right"]},{name:"totalCurrency",visibleIf:function(i){return i.hasTotal},choices:function(){return Wa()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1,visibleIf:function(i){return i.hasTotal}},{name:"totalMinimumFractionDigits:number",default:-1,visibleIf:function(i){return i.hasTotal}},{name:"renderAs",default:"default",visible:!1}],function(){return new mo("")});var nl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),is=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},jp=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};function Oc(i,t,e){return i+(t?"-error":"")+(e?"-detail":"")}var Mt=function(){function i(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isErrorsCell=!1,this.isDragHandlerCell=!1,this.isDetailRowCell=!1,this.classNameValue="",this.idValue=i.counter++}return Object.defineProperty(i.prototype,"requiredText",{get:function(){return this.column&&this.column.isRenderedRequired?this.column.requiredText:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasQuestion",{get:function(){return!!this.question&&!this.isErrorsCell},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){var t=this.question?this.question.id:this.idValue.toString();return this.isChoice&&(t+="-"+(Number.isInteger(this.choiceIndex)?"index"+this.choiceIndex.toString():this.item.id)),Oc(t,this.isErrorsCell,this.isDetailRowCell)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"item",{get:function(){return this.itemValue},set:function(t){this.itemValue=t,t&&(t.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isFirstChoice",{get:function(){return this.choiceIndex===0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"className",{get:function(){var t=new te().append(this.classNameValue);return this.hasQuestion&&t.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),t.toString()},set:function(t){this.classNameValue=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cellQuestionWrapperClassName",{get:function(){return this.cell.getQuestionWrapperClassName(this.matrix.cssClasses.cellQuestionWrapper)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isVisible",{get:function(){var t;return!this.hasQuestion&&!this.isErrorsCell||!(!((t=this.matrix)===null||t===void 0)&&t.isMobile)||this.question.isVisible},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showResponsiveTitle",{get:function(){var t;return this.hasQuestion&&((t=this.matrix)===null||t===void 0?void 0:t.isMobile)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"responsiveTitleCss",{get:function(){return new te().append(this.matrix.cssClasses.cellResponsiveTitle).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"responsiveLocTitle",{get:function(){return this.cell.column.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"headers",{get:function(){if(this.cell&&this.cell.column){if(this.matrix.IsMultiplyColumn(this.cell.column))return this.item?this.item.locText.renderedHtml:"";var t=this.cell.column.cellHint;return t?t.trim()===""?"":this.cell.column.locCellHint.renderedHtml:this.hasQuestion&&this.question.isVisible&&this.question.title?this.question.title:this.cell.column.title}return this.hasQuestion&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||""},enumerable:!1,configurable:!0}),i.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},i.prototype.calculateFinalClassName=function(t){var e=this.cell.question.cssClasses,n=new te().append(e.itemValue,!!e).append(e.asCell,!!e);return n.append(t.cell,n.isEmpty()&&!!t).append(t.choiceCell,this.isChoice).toString()},i.prototype.focusIn=function(){this.question&&this.question.focusIn()},i.counter=1,i}(),gn=function(i){nl(t,i);function t(e,n){n===void 0&&(n=!1);var r=i.call(this)||this;return r.cssClasses=e,r.isDetailRow=n,r.hasEndActions=!1,r.isErrorsRow=!1,r.cells=[],r.idValue=t.counter++,r}return Object.defineProperty(t.prototype,"id",{get:function(){var e;return Oc(((e=this.row)===null||e===void 0?void 0:e.id)||this.idValue.toString(),this.isErrorsRow,this.isDetailRow)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){var e,n;return new te().append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.rowHasPanel,(e=this.row)===null||e===void 0?void 0:e.hasPanel).append(this.cssClasses.expandedRow,((n=this.row)===null||n===void 0?void 0:n.isDetailPanelShowing)&&!this.isDetailRow).append(this.cssClasses.rowHasEndActions,this.hasEndActions).append(this.cssClasses.ghostRow,this.isGhostRow).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()},enumerable:!1,configurable:!0}),t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t.prototype.focusCell=function(e){if(this.rootElement){var n=":scope td:nth-of-type("+(e+1)+") input, :scope td:nth-of-type("+(e+1)+") button",r=this.rootElement.querySelectorAll(n)[0];r&&r.focus()}},t.counter=1,is([D({defaultValue:!1})],t.prototype,"isGhostRow",void 0),is([D({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),is([D({defaultValue:!0})],t.prototype,"visible",void 0),t}(Je),Tc=function(i){nl(t,i);function t(e){var n=i.call(this,e)||this;return n.isErrorsRow=!0,n}return Object.defineProperty(t.prototype,"attributes",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return new te().append(this.cssClasses.row).append(this.cssClasses.errorRow).toString()},enumerable:!1,configurable:!0}),t.prototype.onAfterCreated=function(){var e=this,n=function(){e.visible=e.cells.some(function(r){return r.question&&r.question.hasVisibleErrors})};this.cells.forEach(function(r){r.question&&r.question.registerFunctionOnPropertyValueChanged("hasVisibleErrors",n)}),n()},t}(gn),rl=function(i){nl(t,i);function t(e){var n=i.call(this)||this;return n.matrix=e,n._renderedRows=[],n.renderedRowsAnimation=new Ar(n.getRenderedRowsAnimationOptions(),function(r){n._renderedRows=r},function(){return n._renderedRows}),n.hasActionCellInRowsValues={},n.build(),n}return t.prototype.getIsAnimationAllowed=function(){return i.prototype.getIsAnimationAllowed.call(this)&&this.matrix.animationAllowed},t.prototype.getRenderedRowsAnimationOptions=function(){var e=this,n=function(o){o.querySelectorAll(":scope > td > *").forEach(function(s){Ln(s)})},r=function(o){o.querySelectorAll(":scope > td > *").forEach(function(s){hn(s)})};return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(o){return o.getRootElement()},getLeaveOptions:function(){return{cssClass:e.cssClasses.rowLeave,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getEnterOptions:function(o,s){return{cssClass:e.cssClasses.rowEnter,onBeforeRunAnimation:n,onAfterRunAnimation:r}},getKey:function(o){return o.id}}},t.prototype.updateRenderedRows=function(){this.renderedRows=this.rows},Object.defineProperty(t.prototype,"renderedRows",{get:function(){return this._renderedRows},set:function(e){this.renderedRowsAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTable",{get:function(){return this.getPropertyValue("showTable",!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRow",{get:function(){return this.getPropertyValue("showAddRow",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnTop",{get:function(){return this.getPropertyValue("showAddRowOnTop",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnBottom",{get:function(){return this.getPropertyValue("showAddRowOnBottom",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!1,configurable:!0}),t.prototype.isRequireReset=function(){return this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal},Object.defineProperty(t.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDragAndDrop",{get:function(){return this.matrix.isRowsDragAndDrop&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsTop",{get:function(){return this.matrix.getErrorLocation()==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsBottom",{get:function(){return this.matrix.getErrorLocation()==="bottom"},enumerable:!1,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()},t.prototype.updateShowTableAndAddRow=function(){var e=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue("showTable",e);var n=this.matrix.canAddRow&&e,r=n,o=n;r&&(this.matrix.getAddRowLocation()==="default"?r=!this.matrix.isColumnLayoutHorizontal:r=this.matrix.getAddRowLocation()!=="bottom"),o&&this.matrix.getAddRowLocation()!=="topBottom"&&(o=!r),this.setPropertyValue("showAddRow",this.matrix.canAddRow),this.setPropertyValue("showAddRowOnTop",r),this.setPropertyValue("showAddRowOnBottom",o)},t.prototype.onAddedRow=function(e,n){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var r=this.getRenderedRowIndexByIndex(n);this.rowsActions.splice(n,0,this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,r),this.updateShowTableAndAddRow()}},t.prototype.getRenderedRowIndexByIndex=function(e){for(var n=0,r=0,o=0;o<this.rows.length;o++){if(r===e){(this.rows[o].isErrorsRow||this.rows[o].isDetailRow)&&(n++,o+1<this.rows.length&&this.rows[o+1].isDetailRow&&n++);break}n++,!this.rows[o].isErrorsRow&&!this.rows[o].isDetailRow&&r++}return r<e?this.rows.length:n},t.prototype.getRenderedDataRowCount=function(){for(var e=0,n=0;n<this.rows.length;n++)!this.rows[n].isErrorsRow&&!this.rows[n].isDetailRow&&e++;return e},t.prototype.onRemovedRow=function(e){var n=this.getRenderedRowIndex(e);if(!(n<0)){this.rowsActions.splice(n,1);var r=1;n<this.rows.length-1&&this.showCellErrorsBottom&&this.rows[n+1].isErrorsRow&&r++,n<this.rows.length-1&&(this.rows[n+1].isDetailRow||this.showCellErrorsBottom&&n+1<this.rows.length-1&&this.rows[n+2].isDetailRow)&&r++,n>0&&this.showCellErrorsTop&&this.rows[n-1].isErrorsRow&&(n--,r++),this.rows.splice(n,r),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,n){var r=this.getRenderedRowIndex(e);if(!(r<0)){var o=r;this.showCellErrorsBottom&&o++;var s=o<this.rows.length-1&&this.rows[o+1].isDetailRow?o+1:-1;if(!(n&&s>-1||!n&&s<0))if(n){var c=this.createDetailPanelRow(e,this.rows[r]);this.rows.splice(o+1,0,c)}else this.rows.splice(s,1)}},t.prototype.focusActionCell=function(e,n){var r=this.rows[this.rows.length-1];if(this.matrix.isColumnLayoutHorizontal){var o=this.getRenderedRowIndex(e);r=this.rows[o]}r==null||r.focusCell(n)},t.prototype.getRenderedRowIndex=function(e){for(var n=0;n<this.rows.length;n++)if(this.rows[n].row==e)return n;return-1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,n=0;n<e.length;n++)this.rowsActions.push(this.buildRowActions(e[n]))},t.prototype.createRenderedRow=function(e,n){return n===void 0&&(n=!1),new gn(e,n)},t.prototype.createErrorRenderedRow=function(e){return new Tc(e)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader,n=e||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",n),!!n){if(this.headerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null,"action",this.cssClasses.actionsCellDrag)),this.hasActionCellInRows("start")&&this.headerRow.cells.push(this.createHeaderCell(null,"action")),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var r=0;r<this.matrix.columns.length;r++){var o=this.matrix.columns[r];o.isColumnVisible&&(this.matrix.IsMultiplyColumn(o)?this.createMutlipleColumnsHeader(o):this.headerRow.cells.push(this.createHeaderCell(o)))}else{for(var s=this.matrix.visibleRows,r=0;r<s.length;r++){var c=this.createTextCell(s[r].locText);this.setHeaderCellCssClasses(c),c.row=s[r],this.headerRow.cells.push(c)}if(this.matrix.hasFooter){var c=this.createTextCell(this.matrix.getFooterText());this.setHeaderCellCssClasses(c),this.headerRow.cells.push(c)}}this.hasActionCellInRows("end")&&this.headerRow.cells.push(this.createHeaderCell(null,"action"))}},t.prototype.buildFooter=function(){if(this.showFooter){if(this.footerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.footerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.footerRow.cells.push(this.createHeaderCell(null,"action")),this.matrix.hasRowText){var e=this.createTextCell(this.matrix.getFooterText());e.className=new te().append(e.className).append(this.cssClasses.footerTotalCell).toString(),this.footerRow.cells.push(e)}for(var n=this.matrix.visibleTotalRow.cells,r=0;r<n.length;r++){var o=n[r];if(o.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(o.column))this.createMutlipleColumnsFooter(this.footerRow,o);else{var s=this.createEditCell(o);o.column&&this.setCellWidth(o.column,s),s.className=new te().append(s.className).append(this.cssClasses.footerCell).toString(),this.footerRow.cells.push(s)}}this.hasActionCellInRows("end")&&this.footerRow.cells.push(this.createHeaderCell(null,"action"))}},t.prototype.buildRows=function(){this.blockAnimations();var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.rows=e,this.releaseAnimations()},t.prototype.hasActionCellInRows=function(e){return this.hasActionCellInRowsValues[e]===void 0&&(this.hasActionCellInRowsValues[e]=this.hasActionsCellInLocaltion(e)),this.hasActionCellInRowsValues[e]},t.prototype.hasActionsCellInLocaltion=function(e){var n=this;return e=="end"&&this.hasRemoveRows?!0:this.matrix.visibleRows.some(function(r,o){return!n.isValueEmpty(n.getRowActions(o,e))})},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,n=[],r=0;r<e.length;r++)this.addHorizontalRow(n,e[r]);return n},t.prototype.addHorizontalRow=function(e,n,r){r===void 0&&(r=-1);var o=this.createHorizontalRow(n),s=this.createErrorRow(o);if(o.row=n,r<0&&(r=e.length),this.matrix.isMobile){for(var c=[],y=0;y<o.cells.length;y++)this.showCellErrorsTop&&!s.cells[y].isEmpty&&c.push(s.cells[y]),c.push(o.cells[y]),this.showCellErrorsBottom&&!s.cells[y].isEmpty&&c.push(s.cells[y]);o.cells=c,e.splice(r,0,o)}else e.splice.apply(e,jp([r,0],this.showCellErrorsTop?[s,o]:[o,s])),r++;n.isDetailPanelShowing&&e.splice(r+1,0,this.createDetailPanelRow(n,o))},t.prototype.getRowDragCell=function(e){var n=new Mt,r=this.matrix.lockedRowCount;return n.isDragHandlerCell=r<1||e>=r,n.isEmpty=!n.isDragHandlerCell,n.className=this.getActionsCellClassName(n),n.row=this.matrix.visibleRows[e],n},t.prototype.getActionsCellClassName=function(e){var n=this;e===void 0&&(e=null);var r=new te().append(this.cssClasses.actionsCell).append(this.cssClasses.actionsCellDrag,e==null?void 0:e.isDragHandlerCell).append(this.cssClasses.detailRowCell,e==null?void 0:e.isDetailRowCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal);if(e.isActionsCell){var o=e.item.value.actions;this.cssClasses.actionsCellPrefix&&o.forEach(function(s){r.append(n.cssClasses.actionsCellPrefix+"--"+s.id)})}return r.toString()},t.prototype.getRowActionsCell=function(e,n,r){r===void 0&&(r=!1);var o=this.getRowActions(e,n);if(!this.isValueEmpty(o)){var s=new Mt,c=this.matrix.allowAdaptiveActions?new Ci:new Qn;this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(c.cssClasses=this.matrix.survey.getCss().actionBar),c.setItems(o);var y=new ge(c);return s.item=y,s.isActionsCell=!0,s.isDragHandlerCell=!1,s.isDetailRowCell=r,s.className=this.getActionsCellClassName(s),s.row=this.matrix.visibleRows[e],s}return null},t.prototype.getRowActions=function(e,n){var r=this.rowsActions[e];return Array.isArray(r)?r.filter(function(o){return o.location||(o.location="start"),o.location===n}):[]},t.prototype.buildRowActions=function(e){var n=[];return this.setDefaultRowActions(e,n),this.matrix.survey&&(n=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,n)),n},Object.defineProperty(t.prototype,"showRemoveButtonAsIcon",{get:function(){return z.matrix.renderRemoveAsIcon&&this.matrix.survey&&this.matrix.survey.css.root==="sd-root-modern"},enumerable:!1,configurable:!0}),t.prototype.setDefaultRowActions=function(e,n){var r=this,o=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?n.push(new pt({id:"remove-row",iconName:"icon-delete-24x24",iconSize:"auto",component:"sv-action-bar-item",innerCss:new te().append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:"end",showTitle:!1,title:o.removeRowText,enabled:!o.isInputReadOnly,data:{row:e,question:o},action:function(){o.removeRowUI(e)}})):n.push(new pt({id:"remove-row",location:"end",enabled:!this.matrix.isInputReadOnly,component:"sv-matrix-remove-button",data:{row:e,question:this.matrix}}))),e.hasPanel&&(this.matrix.isMobile?n.unshift(new pt({id:"show-detail-mobile",title:"Show Details",showTitle:!0,location:"end",action:function(s){s.title=e.isDetailPanelShowing?r.matrix.getLocalizationString("showDetails"):r.matrix.getLocalizationString("hideDetails"),e.showHideDetailPanelClick()}})):n.push(new pt({id:"show-detail",title:this.matrix.getLocalizationString("editText"),showTitle:!1,location:"start",component:"sv-matrix-detail-button",data:{row:e,question:this.matrix}})))},t.prototype.createErrorRow=function(e){for(var n=this.createErrorRenderedRow(this.cssClasses),r=0;r<e.cells.length;r++){var o=e.cells[r];o.hasQuestion?this.matrix.IsMultiplyColumn(o.cell.column)?o.isFirstChoice?n.cells.push(this.createErrorCell(o.cell)):n.cells.push(this.createEmptyCell(!0)):n.cells.push(this.createErrorCell(o.cell)):n.cells.push(this.createEmptyCell(!0))}return n.onAfterCreated(),n},t.prototype.createHorizontalRow=function(e){var n=this.createRenderedRow(this.cssClasses);if(this.isRowsDragAndDrop){var r=this.matrix.visibleRows.indexOf(e);n.cells.push(this.getRowDragCell(r))}if(this.addRowActionsCell(e,n,"start"),this.matrix.hasRowText){var o=this.createTextCell(e.locText);o.row=e,n.cells.push(o),this.setCellWidth(null,o),o.className=new te().append(o.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell,!this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.detailRowText,e.hasPanel).toString()}for(var s=0;s<e.cells.length;s++){var c=e.cells[s];if(c.column.isColumnVisible)if(this.matrix.IsMultiplyColumn(c.column))this.createMutlipleEditCells(n,c);else{c.column.isShowInMultipleColumns&&c.question.visibleChoices.map(function(w){return w.hideCaption=!1});var o=this.createEditCell(c);n.cells.push(o),this.setCellWidth(c.column,o)}}return this.addRowActionsCell(e,n,"end"),n},t.prototype.addRowActionsCell=function(e,n,r){var o=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(r)){var s=this.getRowActionsCell(o,r,n.isDetailRow);if(s)n.cells.push(s),n.hasEndActions=!0;else{var c=new Mt;c.isEmpty=!0,c.isDetailRowCell=n.isDetailRow,n.cells.push(c)}}},t.prototype.createDetailPanelRow=function(e,n){var r=this.matrix.isDesignMode,o=this.createRenderedRow(this.cssClasses,!0);o.row=e;var s=new Mt;this.matrix.hasRowText&&(s.colSpans=2),s.isEmpty=!0,r||o.cells.push(s);var c=null;this.hasActionCellInRows("end")&&(c=new Mt,c.isEmpty=!0);var y=new Mt;return y.panel=e.detailPanel,y.colSpans=n.cells.length-(r?0:s.colSpans)-(c?c.colSpans:0),y.className=this.cssClasses.detailPanelCell,o.cells.push(y),c&&(this.matrix.isMobile?this.addRowActionsCell(e,o,"end"):o.cells.push(c)),typeof this.matrix.onCreateDetailPanelRenderedRowCallback=="function"&&this.matrix.onCreateDetailPanelRenderedRowCallback(o),o},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,n=[],r=0;r<e.length;r++){var o=e[r];if(o.isColumnVisible)if(this.matrix.IsMultiplyColumn(o))this.createMutlipleVerticalRows(n,o,r);else{var s=this.createVerticalRow(o,r),c=this.createErrorRow(s);this.showCellErrorsTop?(n.push(c),n.push(s)):(n.push(s),n.push(c))}}return this.hasActionCellInRows("end")&&n.push(this.createEndVerticalActionRow()),n},t.prototype.createMutlipleVerticalRows=function(e,n,r){var o=this.getMultipleColumnChoices(n);if(o)for(var s=0;s<o.length;s++){var c=this.createVerticalRow(n,r,o[s],s),y=this.createErrorRow(c);this.showCellErrorsTop?(e.push(y),e.push(c)):(e.push(c),e.push(y))}},t.prototype.createVerticalRow=function(e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=-1);var s=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var c=r?r.locText:e.locTitle,y=this.createTextCell(c);y.column=e,y.className=new te().append(y.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell).toString(),s.cells.push(y)}for(var w=this.matrix.visibleRows,N=0;N<w.length;N++){var Q=r,Y=o>=0?o:N,ce=w[N].cells[n],fe=r?ce.question.visibleChoices:void 0;fe&&Y<fe.length&&(Q=fe[Y]);var Oe=this.createEditCell(ce,Q);Oe.item=Q,Oe.choiceIndex=Y,s.cells.push(Oe)}return this.matrix.hasTotal&&s.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[n])),s},t.prototype.createEndVerticalActionRow=function(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var n=this.matrix.visibleRows,r=0;r<n.length;r++)e.cells.push(this.getRowActionsCell(r,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,n,r){r===void 0&&(r=!1);var o=r?this.getMultipleColumnChoices(n.column):n.question.visibleChoices;if(o)for(var s=0;s<o.length;s++){var c=this.createEditCell(n,r?void 0:o[s]);r||(this.setItemCellCssClasses(c),c.choiceIndex=s),e.cells.push(c)}},t.prototype.setItemCellCssClasses=function(e){e.className=new te().append(this.cssClasses.cell).append(this.cssClasses.itemCell).append(this.cssClasses.radioCell,e.isRadio).append(this.cssClasses.checkboxCell,e.isCheckbox).toString()},t.prototype.createEditCell=function(e,n){n===void 0&&(n=void 0);var r=new Mt;return r.cell=e,r.row=e.row,r.column=e.column,r.question=e.question,r.matrix=this.matrix,r.item=n,r.isOtherChoice=!!n&&!!e.question&&e.question.otherItem===n,r.className=r.calculateFinalClassName(this.cssClasses),r},t.prototype.createErrorCell=function(e,n){var r=new Mt;return r.question=e.question,r.row=e.row,r.matrix=this.matrix,r.isErrorsCell=!0,r.className=new te().append(this.cssClasses.cell).append(this.cssClasses.errorsCell).append(this.cssClasses.errorsCellTop,this.showCellErrorsTop).append(this.cssClasses.errorsCellBottom,this.showCellErrorsBottom).toString(),r},t.prototype.createMutlipleColumnsFooter=function(e,n){this.createMutlipleEditCells(e,n,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var n=this.getMultipleColumnChoices(e);if(n)for(var r=0;r<n.length;r++){var o=this.createTextCell(n[r].locText);this.setHeaderCell(e,o),this.setHeaderCellCssClasses(o),this.headerRow.cells.push(o)}},t.prototype.getMultipleColumnChoices=function(e){var n=e.templateQuestion.choices;return n&&Array.isArray(n)&&n.length==0?[].concat(this.matrix.choices,e.getVisibleMultipleChoices()):(n=e.getVisibleMultipleChoices(),!n||!Array.isArray(n)?null:n)},t.prototype.setHeaderCellCssClasses=function(e,n,r){e.className=new te().append(this.cssClasses.headerCell).append(this.cssClasses.columnTitleCell,this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.emptyCell,!!e.isEmpty).append(this.cssClasses.cell+"--"+n,!!n).append(r,!!r).toString()},t.prototype.createHeaderCell=function(e,n,r){n===void 0&&(n=null);var o=e?this.createTextCell(e.locTitle):this.createEmptyCell();return o.column=e,this.setHeaderCell(e,o),n||(n=e&&e.cellType!=="default"?e.cellType:this.matrix.cellType),this.setHeaderCellCssClasses(o,n,r),o},t.prototype.setHeaderCell=function(e,n){this.setCellWidth(e,n)},t.prototype.setCellWidth=function(e,n){n.minWidth=e!=null?this.matrix.getColumnWidth(e):this.matrix.getRowTitleWidth(),n.width=e!=null?e.width:this.matrix.getRowTitleWidth()},t.prototype.createTextCell=function(e){var n=new Mt;return n.locTitle=e,this.cssClasses.cell&&(n.className=this.cssClasses.cell),n},t.prototype.createEmptyCell=function(e){e===void 0&&(e=!1);var n=this.createTextCell(null);return n.isEmpty=!0,n.className=new te().append(this.cssClasses.cell).append(this.cssClasses.emptyCell).append(this.cssClasses.errorsCell,e).toString(),n},is([be({onPush:function(e,n,r){r.updateRenderedRows()},onRemove:function(e,n,r){r.updateRenderedRows()}})],t.prototype,"rows",void 0),is([be()],t.prototype,"_renderedRows",void 0),t}(Je),sa=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),il=function(){function i(t,e,n){this.column=t,this.row=e,this.data=n,this.questionValue=this.createQuestion(t,e,n),this.questionValue.updateCustomWidget(),this.updateCellQuestionTitleDueToAccessebility(e)}return i.prototype.updateCellQuestionTitleDueToAccessebility=function(t){var e=this;this.questionValue.locTitle.onGetTextCallback=function(n){if(!t||!t.getSurvey())return e.questionValue.title;var r=t.getAccessbilityText();return r?e.column.colOwner.getCellAriaLabel(r,e.questionValue.title):e.questionValue.title}},i.prototype.locStrsChanged=function(){this.question.locStrsChanged()},i.prototype.createQuestion=function(t,e,n){var r=this,o=n.createQuestion(this.row,this.column);return o.readOnlyCallback=function(){return!r.row.isRowEnabled()},o.validateValueCallback=function(){return n.validateCell(e,t.name,e.value)},rt.getProperties(t.getType()).forEach(function(s){var c=s.name;t[c]!==void 0&&(o[c]=t[c])}),o},Object.defineProperty(i.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this.question.value},set:function(t){this.question.value=t},enumerable:!1,configurable:!0}),i.prototype.getQuestionWrapperClassName=function(t){return t},i.prototype.runCondition=function(t,e){this.question.runCondition(t,e)},i}(),ol=function(i){sa(t,i);function t(e,n,r){var o=i.call(this,e,n,r)||this;return o.column=e,o.row=n,o.data=r,o.updateCellQuestion(),o}return t.prototype.createQuestion=function(e,n,r){var o=G.createClass("expression");return o.setSurveyImpl(n),o},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),i.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,function(e){delete e.defaultValue}),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation(),this.question.runIfReadOnly=!0},t.prototype.getQuestionWrapperClassName=function(e){var n=i.prototype.getQuestionWrapperClassName.call(this,e);if(!n)return n;this.question.expression&&this.question.expression!="''"&&(n+=" "+e+"--expression");var r=this.column.totalAlignment;return r==="auto"&&this.column.cellType==="dropdown"&&(r="left"),n+" "+e+"--"+r},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if(this.column.totalType=="none")return"''";var e=this.column.totalType+"InArray";return Ne.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(il),aa=function(i){sa(t,i);function t(e,n,r){var o=i.call(this,n)||this;return o.row=e,o.variableName=n,o.parentTextProcessor=r,o}return t.prototype.getParentTextProcessor=function(){return this.parentTextProcessor},Object.defineProperty(t.prototype,"survey",{get:function(){return this.row.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.row.value},t.prototype.getQuestionByName=function(e){return this.row.getQuestionByName(e)},t.prototype.onCustomProcessText=function(e){return e.name==mr.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):[mr.RowValueVariableName,mr.RowNameVariableName].indexOf(e.name)>-1?(e.isExists=!0,e.value=this.row.rowName,!0):!1},t}(ei),mr=function(){function i(t,e){var n=this;this.isSettingValue=!1,this.detailPanelValue=null,this.visibleValue=!0,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(e),this.textPreProcessor=new aa(this,i.RowVariableName,t?t.getParentTextProcessor():null),this.showHideDetailPanelClick=function(){if(n.getSurvey().isDesignMode)return!0;n.showHideDetailPanel()},this.idValue=i.getId()}return i.getId=function(){return"srow_"+i.idCounter++},Object.defineProperty(i.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"dataName",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),i.prototype.isRowEnabled=function(){return!0},i.prototype.isRowHasEnabledCondition=function(){return!1},Object.defineProperty(i.prototype,"isVisible",{get:function(){return this.visible&&this.isItemVisible()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return this.visibleValue},set:function(t){var e;this.visible!==t&&(this.visibleValue=t,(e=this.data)===null||e===void 0||e.onRowVisibilityChanged(this))},enumerable:!1,configurable:!0}),i.prototype.isItemVisible=function(){return!0},Object.defineProperty(i.prototype,"value",{get:function(){for(var t={},e=this.questions,n=0;n<e.length;n++){var r=e[n];r.isEmpty()||(t[r.getValueName()]=r.value),r.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(t[r.getValueName()+Je.commentSuffix]=r.comment)}return t},set:function(t){this.isSettingValue=!0,this.subscribeToChanges(t);for(var e=this.questions,n=0;n<e.length;n++){var r=e[n],o=this.getCellValue(t,r.getValueName()),s=r.comment,c=t?t[r.getValueName()+Je.commentSuffix]:"";c==null&&(c=""),r.updateValueFromSurvey(o),(c||this.isTwoValueEquals(s,r.comment))&&r.updateCommentFromSurvey(c),r.onSurveyValueChanged(o)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),i.prototype.getAccessbilityText=function(){return this.locText&&this.locText.renderedHtml},Object.defineProperty(i.prototype,"hasPanel",{get:function(){return this.data?this.data.hasDetailPanel(this):!1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isDetailPanelShowing",{get:function(){return this.data?this.data.getIsDetailPanelShowing(this):!1},enumerable:!1,configurable:!0}),i.prototype.setIsDetailPanelShowing=function(t){!t&&this.detailPanel&&this.detailPanel.onHidingContent(),this.data&&this.data.setIsDetailPanelShowing(this,t),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},i.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},i.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},i.prototype.hideDetailPanel=function(t){t===void 0&&(t=!1),this.setIsDetailPanelShowing(!1),t&&(this.detailPanelValue=null)},i.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!(this.detailPanelValue||!this.hasPanel||!this.data)){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var t=this.detailPanelValue.questions,e=this.data.getRowValue(this.data.getRowIndex(this));if(!m.isValueEmpty(e))for(var n=0;n<t.length;n++){var r=t[n].getValueName(),o=this.editingObj?G.getObjPropertyValue(this.editingObj,r):e[r];m.isValueEmpty(o)||(t[n].value=o)}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},i.prototype.getAllValues=function(){return this.value},i.prototype.getFilteredValues=function(){var t=this.data?this.data.getDataFilteredValues():{},e=this.validationValues;if(e)for(var n in e)t[n]=e[n];return t.row=this.getAllValues(),this.applyRowVariablesToValues(t,this.rowIndex),t},i.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},i.prototype.applyRowVariablesToValues=function(t,e){t[i.IndexVariableName]=e,t[i.RowValueVariableName]=this.rowName,t[i.RowNameVariableName]=this.rowName},i.prototype.runCondition=function(t,e,n){if(this.data){t[i.OwnerVariableName]=this.data.getFilteredData();var r=this.rowIndex;this.applyRowVariablesToValues(t,r);var o=m.createCopy(e);o[i.RowVariableName]=this;var s=r>0?this.data.getRowValue(this.rowIndex-1):this.value;n?(t[i.RowVariableName]=s,this.setRowsVisibleIfValues(t),this.visible=new pn(n).run(t,e)):this.visible=!0;for(var c=0;c<this.cells.length;c++)c>0&&Ei(this.value,s),t[i.RowVariableName]=s,this.cells[c].runCondition(t,o);this.detailPanel&&this.detailPanel.runCondition(t,o),this.isRowHasEnabledCondition()&&this.onQuestionReadOnlyChanged()}},i.prototype.updateElementVisibility=function(){this.cells.forEach(function(t){return t.question.updateElementVisibility()}),this.detailPanel&&this.detailPanel.updateElementVisibility()},i.prototype.setRowsVisibleIfValues=function(t){},i.prototype.getNamesWithDefaultValues=function(){var t=[];return this.questions.forEach(function(e){e.isValueDefault&&t.push(e.getValueName())}),t},i.prototype.clearValue=function(t){for(var e=this.questions,n=0;n<e.length;n++)e[n].clearValue(t)},i.prototype.onAnyValueChanged=function(t,e){for(var n=this.questions,r=0;r<n.length;r++)n[r].onAnyValueChanged(t,e)},i.prototype.getDataValueCore=function(t,e){var n=this.getSurvey();return n?n.getDataValueCore(t,e):t[e]},i.prototype.getValue=function(t){var e=this.getQuestionByName(t);return e?e.value:null},i.prototype.setValue=function(t,e){this.setValueCore(t,e,!1)},i.prototype.getVariable=function(t){},i.prototype.setVariable=function(t,e){},i.prototype.getComment=function(t){var e=this.getQuestionByName(t);return e?e.comment:""},i.prototype.setComment=function(t,e,n){this.setValueCore(t,e,!0)},i.prototype.findQuestionByName=function(t){if(t){var e=i.RowVariableName+".";if(t.indexOf(e)===0)return this.getQuestionByName(t.substring(e.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},i.prototype.getEditingSurveyElement=function(){},i.prototype.setValueCore=function(t,e,n){if(!this.isSettingValue){this.updateQuestionsValue(t,e,n),n||this.updateSharedQuestionsValue(t,e);var r=this.value,o=n?t+Je.commentSuffix:t,s=e,c=this.getQuestionByName(t),y=this.data.onRowChanging(this,o,r);if(c&&!this.isTwoValueEquals(y,s)&&(this.isSettingValue=!0,n?c.comment=y:c.value=y,this.isSettingValue=!1,r=this.value),!(this.data.isValidateOnValueChanging&&this.hasQuestonError(c))){var w=e==null&&!c||n&&!e&&!!c;this.data.onRowChanged(this,o,r,w),o&&this.runTriggers(ti.RowVariableName+"."+o,r),this.onAnyValueChanged(i.RowVariableName,"")}}},i.prototype.updateQuestionsValue=function(t,e,n){if(this.detailPanel){var r=this.getQuestionByColumnName(t),o=this.detailPanel.getQuestionByName(t);if(!(!r||!o)){var s=this.isTwoValueEquals(e,n?r.comment:r.value),c=s?o:r;this.isSettingValue=!0,n?c.comment=e:c.value=e,this.isSettingValue=!1}}},i.prototype.updateSharedQuestionsValue=function(t,e){var n=this.getQuestionsByValueName(t);if(n.length>1)for(var r=0;r<n.length;r++)m.isTwoValueEquals(n[r].value,e)||(this.isSettingValue=!0,n[r].updateValueFromSurvey(e),this.isSettingValue=!1)},i.prototype.runTriggers=function(t,e){t&&this.questions.forEach(function(n){return n.runTriggers(t,e)})},i.prototype.hasQuestonError=function(t){if(!t)return!1;if(t.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(t.isEmpty())return!1;var e=this.getCellByColumnName(t.name);return!e||!e.column||!e.column.isUnique?!1:this.data.checkIfValueInRowDuplicated(this,t)},Object.defineProperty(i.prototype,"isEmpty",{get:function(){var t=this.value;if(m.isValueEmpty(t))return!0;for(var e in t)if(t[e]!==void 0&&t[e]!==null)return!1;return!0},enumerable:!1,configurable:!0}),i.prototype.getQuestionByColumn=function(t){var e=this.getCellByColumn(t);return e?e.question:null},i.prototype.getCellByColumn=function(t){for(var e=0;e<this.cells.length;e++)if(this.cells[e].column==t)return this.cells[e];return null},i.prototype.getCellByColumnName=function(t){for(var e=0;e<this.cells.length;e++)if(this.cells[e].column.name==t)return this.cells[e];return null},i.prototype.getQuestionByColumnName=function(t){var e=this.getCellByColumnName(t);return e?e.question:null},Object.defineProperty(i.prototype,"questions",{get:function(){for(var t=[],e=0;e<this.cells.length;e++)t.push(this.cells[e].question);for(var n=this.detailPanel?this.detailPanel.questions:[],e=0;e<n.length;e++)t.push(n[e]);return t},enumerable:!1,configurable:!0}),i.prototype.getQuestionByName=function(t){var e=this.getQuestionByColumnName(t);return e||(this.detailPanel?this.detailPanel.getQuestionByName(t):null)},i.prototype.getQuestionsByName=function(t){var e=[],n=this.getQuestionByColumnName(t);return n&&e.push(n),this.detailPanel&&(n=this.detailPanel.getQuestionByName(t),n&&e.push(n)),e},i.prototype.getQuestionsByValueName=function(t){for(var e=[],n=0;n<this.cells.length;n++){var r=this.cells[n];r.question&&r.question.getValueName()===t&&e.push(r.question)}return this.detailPanel&&(e=e.concat(this.detailPanel.getQuestionsByValueName(t))),e},i.prototype.getSharedQuestionByName=function(t){return this.data?this.data.getSharedQuestionByName(t,this):null},i.prototype.clearIncorrectValues=function(t){for(var e in t){var n=this.getQuestionByName(e);if(n){var r=n.value;n.clearIncorrectValues(),this.isTwoValueEquals(r,n.value)||this.setValue(e,n.value)}else!this.getSharedQuestionByName(e)&&e.indexOf(z.matrix.totalsSuffix)<0&&this.setValue(e,null)}},i.prototype.getLocale=function(){return this.data?this.data.getLocale():""},i.prototype.getMarkdownHtml=function(t,e){return this.data?this.data.getMarkdownHtml(t,e):void 0},i.prototype.getRenderer=function(t){return this.data?this.data.getRenderer(t):null},i.prototype.getRendererContext=function(t){return this.data?this.data.getRendererContext(t):t},i.prototype.getProcessedText=function(t){return this.data?this.data.getProcessedText(t):t},i.prototype.locStrsChanged=function(){for(var t=0;t<this.cells.length;t++)this.cells[t].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},i.prototype.updateCellQuestionOnColumnChanged=function(t,e,n){var r=this.getCellByColumn(t);r&&this.updateCellOnColumnChanged(r,e,n)},i.prototype.updateCellQuestionOnColumnItemValueChanged=function(t,e,n,r,o,s){var c=this.getCellByColumn(t);c&&this.updateCellOnColumnItemValueChanged(c,e,n,r,o,s)},i.prototype.onQuestionReadOnlyChanged=function(){for(var t=this.questions,e=0;e<t.length;e++){var n=t[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}if(this.detailPanel){var r=!!this.data&&this.data.isMatrixReadOnly();this.detailPanel.readOnly=r||!this.isRowEnabled()}},i.prototype.hasErrors=function(t,e,n){var r=!1,o=this.cells;if(!o)return r;this.validationValues=e.validationValues;for(var s=0;s<o.length;s++)if(o[s]){var c=o[s].question;!c||!c.visible||(c.onCompletedAsyncValidators=function(w){n()},!(e&&e.isOnValueChanged===!0&&c.isEmpty())&&(r=c.hasErrors(t,e)||r))}if(this.hasPanel){this.ensureDetailPanel();var y=this.detailPanel.hasErrors(t,!1,e);!e.hideErroredPanel&&y&&t&&(e.isSingleDetailPanel&&(e.hideErroredPanel=!0),this.showDetailPanel()),r=y||r}return this.validationValues=void 0,r},i.prototype.updateCellOnColumnChanged=function(t,e,n){e==="choices"&&Array.isArray(n)&&n.length===0&&this.data&&(n=this.data.choices),t.question[e]=n},i.prototype.updateCellOnColumnItemValueChanged=function(t,e,n,r,o,s){var c=t.question[e];if(Array.isArray(c)){var y=r==="value"?s:n.value,w=ge.getItemByValue(c,y);w&&(w[r]=o)}},i.prototype.buildCells=function(t){this.isSettingValue=!0;for(var e=this.data.columns,n=0;n<e.length;n++){var r=e[n],o=this.createCell(r);this.cells.push(o);var s=this.getCellValue(t,r.name);if(!m.isValueEmpty(s)){o.question.value=s;var c=r.name+Je.commentSuffix;t&&!m.isValueEmpty(t[c])&&(o.question.comment=t[c])}}this.isSettingValue=!1},i.prototype.isTwoValueEquals=function(t,e){return m.isTwoValueEquals(t,e,!1,!0,!1)},i.prototype.getCellValue=function(t,e){return this.editingObj?G.getObjPropertyValue(this.editingObj,e):t?t[e]:void 0},i.prototype.createCell=function(t){return new il(t,this,this.data)},i.prototype.getSurveyData=function(){return this},i.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},i.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(i.prototype,"rowIndex",{get:function(){return this.getRowIndex()},enumerable:!1,configurable:!0}),i.prototype.getRowIndex=function(){return this.data?this.data.getRowIndex(this)+1:-1},Object.defineProperty(i.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},i.prototype.subscribeToChanges=function(t){var e=this;!t||!t.getType||!t.onPropertyChanged||t!==this.editingObj&&(this.editingObjValue=t,this.onEditingObjPropertyChanged=function(n,r){e.updateOnSetValue(r.name,r.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},i.prototype.updateOnSetValue=function(t,e){this.isSettingValue=!0;for(var n=this.getQuestionsByName(t),r=0;r<n.length;r++)n[r].value=e;this.isSettingValue=!1},i.RowVariableName="row",i.OwnerVariableName="self",i.IndexVariableName="rowIndex",i.RowValueVariableName="rowValue",i.RowNameVariableName="rowName",i.idCounter=1,i}(),ti=function(i){sa(t,i);function t(e){var n=i.call(this,e,null)||this;return n.buildCells(null),n}return t.prototype.createCell=function(e){return new ol(e,this,this.data)},t.prototype.setValue=function(e,n){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(e,n,r){var o=0,s;do s=m.getUnbindValue(this.value),i.prototype.runCondition.call(this,e,n,""),o++;while(!m.isTwoValueEquals(s,this.value)&&o<3)},t.prototype.updateCellOnColumnChanged=function(e,n,r){e.updateCellQuestion()},t}(mr),_r=function(i){sa(t,i);function t(e){var n=i.call(this,e)||this;return n.isRowChanging=!1,n.lockResetRenderedTable=!1,n.isDoingonAnyValueChanged=!1,n.createItemValues("choices"),n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.detailPanelValue=n.createNewDetailPanel(),n.detailPanel.selectedElementInDesign=n,n.detailPanel.renderWidth="100%",n.detailPanel.isInteractiveDesignElement=!1,n.detailPanel.showTitle=!1,n.registerPropertyChangedHandlers(["columns","cellType"],function(){n.updateColumnsAndRows()}),n.registerPropertyChangedHandlers(["placeholder","columnColCount","rowTitleWidth","choices"],function(){n.clearRowsAndResetRenderedTable()}),n.registerPropertyChangedHandlers(["transposeData","addRowLocation","hideColumnsIfEmpty","showHeader","minRowCount","isReadOnly","rowCount","hasFooter","detailPanelMode","displayMode"],function(){n.resetRenderedTable()}),n}return Object.defineProperty(t,"defaultCellType",{get:function(){return z.matrix.defaultCellType},set:function(e){z.matrix.defaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var n=bt.DefaultColums,r=0;r<n.length;r++)e.addColumn(n[r])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",function(n){n.colOwner=e,e.onAddColumn&&e.onAddColumn(n),e.survey&&e.survey.matrixColumnAdded(e,n)},function(n){n.colOwner=null,e.onRemoveColumn&&e.onRemoveColumn(n)})},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.clearGeneratedRows()},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateLocked",{get:function(){return this.isLoadingFromJson||this.isUpdating},enumerable:!1,configurable:!0}),t.prototype.beginUpdate=function(){this.isUpdating=!0},t.prototype.endUpdate=function(){this.isUpdating=!1,this.updateColumnsAndRows()},t.prototype.updateColumnsAndRows=function(){this.updateColumnsIndexes(this.columns),this.updateColumnsCellType(),this.generatedTotalRow=null,this.clearRowsAndResetRenderedTable()},t.prototype.itemValuePropertyChanged=function(e,n,r,o){i.prototype.itemValuePropertyChanged.call(this,e,n,r,o),e.ownerPropertyName==="choices"&&this.clearRowsAndResetRenderedTable()},Object.defineProperty(t.prototype,"transposeData",{get:function(){return this.getPropertyValue("transposeData")},set:function(e){this.setPropertyValue("transposeData",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.transposeData?"vertical":"horizontal"},set:function(e){this.transposeData=e==="vertical"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailErrorLocation",{get:function(){return this.getPropertyValue("detailErrorLocation")},set:function(e){this.setPropertyValue("detailErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellErrorLocation",{get:function(){return this.getPropertyValue("cellErrorLocation")},set:function(e){this.setPropertyValue("cellErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(e){var n=e.parent?this.detailErrorLocation:this.cellErrorLocation;return n!=="default"?n:i.prototype.getChildErrorLocation.call(this,e)},Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return this.isMobile?!0:!this.transposeData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUniqueCaseSensitive",{get:function(){return this.isUniqueCaseSensitiveValue!==void 0?this.isUniqueCaseSensitiveValue:z.comparator.caseSensitive},set:function(e){this.isUniqueCaseSensitiveValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanelMode",{get:function(){return this.getPropertyValue("detailPanelMode")},set:function(e){this.setPropertyValue("detailPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.detailPanel},Object.defineProperty(t.prototype,"detailElements",{get:function(){return this.detailPanel.elements},enumerable:!1,configurable:!0}),t.prototype.createNewDetailPanel=function(){return G.createClass("panel")},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onPointerDown=function(e,n){},t.prototype.onRowsChanged=function(){this.clearVisibleRows(),this.resetRenderedTable(),i.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0,this.setValueChangedDirectly(!0)},t.prototype.onEndRowAdding=function(){if(this.lockResetRenderedTable=!1,!!this.renderedTable)if(this.renderedTable.isRequireReset())this.resetRenderedTable();else{var e=this.visibleRows.length-1;this.renderedTable.onAddedRow(this.visibleRows[e],e)}},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)},Object.defineProperty(t.prototype,"renderedTableValue",{get:function(){return this.getPropertyValue("renderedTable",null)},set:function(e){this.setPropertyValue("renderedTable",e)},enumerable:!1,configurable:!0}),t.prototype.clearRowsAndResetRenderedTable=function(){this.clearGeneratedRows(),this.resetRenderedTable(),this.fireCallback(this.columnsChangedCallback)},t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isUpdateLocked||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},t.prototype.clearGeneratedRows=function(){if(this.clearVisibleRows(),!!this.generatedVisibleRows){for(var e=0;e<this.generatedVisibleRows.length;e++)this.generatedVisibleRows[e].dispose();i.prototype.clearGeneratedRows.call(this)}},Object.defineProperty(t.prototype,"isRendredTableCreated",{get:function(){return!!this.renderedTableValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedTable",{get:function(){return this.renderedTableValue||(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new rl(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var n={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},r=0;r<this.columns.length;r++){n.column=this.columns[r],n.columnName=n.column.name;var o=e.cells[r];n.cell=o,n.cellQuestion=o.question,n.value=o.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(n),this.survey.matrixCellCreated(this,n)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",z.matrix.defaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,configurable:!0}),t.prototype.isSelectCellType=function(){return G.isDescendantOf(this.cellType,"selectbase")},t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var n=0;n<e.length;n++)e[n].setIndex(n)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount")},set:function(e){e<0||e>4||this.setPropertyValue("columnColCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll")},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e),this.detailPanel&&(this.detailPanel.allowAdaptiveActions=e)},enumerable:!1,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.hasChoices=function(){return this.choices.length>0},t.prototype.onColumnPropertyChanged=function(e,n,r){if(this.updateHasFooter(),!!this.generatedVisibleRows){for(var o=0;o<this.generatedVisibleRows.length;o++)this.generatedVisibleRows[o].updateCellQuestionOnColumnChanged(e,n,r);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,n,r),this.onColumnsChanged(),n=="isRequired"&&this.resetRenderedTable()}},t.prototype.onColumnItemValuePropertyChanged=function(e,n,r,o,s,c){if(this.generatedVisibleRows)for(var y=0;y<this.generatedVisibleRows.length;y++)this.generatedVisibleRows[y].updateCellQuestionOnColumnItemValueChanged(e,n,r,o,s,c)},t.prototype.onShowInMultipleColumnsChanged=function(e){this.resetTableAndRows()},t.prototype.onColumnVisibilityChanged=function(e){this.resetTableAndRows()},t.prototype.onColumnCellTypeChanged=function(e){this.resetTableAndRows()},t.prototype.resetTableAndRows=function(){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return"default"},t.prototype.getShowColumnsIfEmpty=function(){return!1},t.prototype.updateShowTableAndAddRow=function(){this.renderedTable&&this.renderedTable.updateShowTableAndAddRow()},t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getCustomCellType=function(e,n,r){if(!this.survey)return r;var o={rowValue:n.value,row:n,column:e,columnName:e.name,cellType:r};return this.survey.matrixCellCreating(this,o),o.cellType},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);for(var r="",o=n.length-1;o>=0&&n[o]!=".";o--)r=n[o]+r;var s=void 0,c=this.getColumnByName(r);return c?s=c.createCellQuestion(null):this.detailPanelMode!=="none"&&(s=this.detailPanel.getQuestionByName(r)),s?s.getConditionJson(e):null},t.prototype.clearIncorrectValues=function(){if(Array.isArray(this.visibleRows))for(var e=this.generatedVisibleRows,n=0;n<e.length;n++)e[n].clearIncorrectValues(this.getRowValue(n))},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this),this.runFuncForCellQuestions(function(e){e.clearErrors()})},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.runFuncForCellQuestions(function(e){e.localeChanged()})},t.prototype.runFuncForCellQuestions=function(e){if(this.generatedVisibleRows)for(var n=0;n<this.generatedVisibleRows.length;n++)for(var r=this.generatedVisibleRows[n],o=0;o<r.cells.length;o++)e(r.cells[o].question)},t.prototype.runCondition=function(e,n){var r=e[mr.RowVariableName];i.prototype.runCondition.call(this,e,n);var o=0,s;do s=m.getUnbindValue(this.totalValue),this.runCellsCondition(e,n),this.runTotalsCondition(e,n),o++;while(!m.isTwoValueEquals(s,this.totalValue)&&o<3);this.updateVisibilityBasedOnRows(),e[mr.RowVariableName]=r},t.prototype.runTriggers=function(e,n,r){i.prototype.runTriggers.call(this,e,n,r),this.runFuncForCellQuestions(function(o){o.runTriggers(e,n,r)})},t.prototype.updateElementVisibility=function(){i.prototype.updateElementVisibility.call(this);var e=this.generatedVisibleRows;e&&e.forEach(function(n){return n.updateElementVisibility()})},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,n){var r=this.generatedVisibleRows;if(r)for(var o=this.getRowConditionValues(e),s=0;s<r.length;s++)r[s].runCondition(o,n,this.rowsVisibleIf);this.checkColumnsVisibility(),this.checkColumnsRenderedRequired()},t.prototype.runConditionsForColumns=function(e,n){var r=this;return this.columns.forEach(function(o){if(!r.columnsVisibleIf)o.isColumnsVisibleIf=!0;else{var s=new pn(r.columnsVisibleIf);e.item=o.name,o.isColumnsVisibleIf=s.run(e,n)===!0}}),!1},t.prototype.checkColumnsVisibility=function(){if(!this.isDesignMode){for(var e=!1,n=0;n<this.columns.length;n++){var r=this.columns[n],o=!!r.visibleIf||r.isFilteredMultipleColumns;!o&&!this.columnsVisibleIf&&r.isColumnVisible||(e=this.isColumnVisibilityChanged(r,o)||e)}e&&this.resetRenderedTable()}},t.prototype.checkColumnsRenderedRequired=function(){var e=this.generatedVisibleRows;if(e)for(var n=0;n<this.columns.length;n++){var r=this.columns[n];if(!(!r.requiredIf||!r.isColumnVisible)){for(var o=e.length>0,s=0;s<e.length;s++)if(!e[s].cells[n].question.isRequired){o=!1;break}r.updateIsRenderedRequired(o)}}},t.prototype.isColumnVisibilityChanged=function(e,n){var r=e.isColumnVisible,o=!n,s=this.generatedVisibleRows,c=n&&s,y=c&&e.isFilteredMultipleColumns,w=y?e.getVisibleChoicesInCell:[],N=new Array;if(c)for(var Q=0;Q<s.length;Q++){var Y=s[Q].cells[e.index],ce=Y==null?void 0:Y.question;if(ce&&ce.isVisible)if(o=!0,y)this.updateNewVisibleChoices(ce,N);else break}return e.hasVisibleCell=o&&e.isColumnsVisibleIf,y&&(e.setVisibleChoicesInCell(N),!m.isArraysEqual(w,N,!0,!1,!1))?!0:r!==e.isColumnVisible},t.prototype.updateNewVisibleChoices=function(e,n){var r=e.visibleChoices;if(Array.isArray(r))for(var o=0;o<r.length;o++){var s=r[o];n.indexOf(s.value)<0&&n.push(s.value)}},t.prototype.runTotalsCondition=function(e,n){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),n)},t.prototype.getRowConditionValues=function(e){var n=e;n||(n={});var r={};return this.isValueEmpty(this.totalValue)||(r=JSON.parse(JSON.stringify(this.totalValue))),n.row={},n.totalRow=r,n},t.prototype.IsMultiplyColumn=function(e){return e.isShowInMultipleColumns&&!this.isMobile},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=this.columns,n=0;n<e.length;n++)e[n].locStrsChanged();var r=this.generatedVisibleRows;if(r){for(var n=0;n<r.length;n++)r[n].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var n=0;n<this.columns.length;n++)if(this.columns[n].name==e)return this.columns[n];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){var n;return e.minWidth?e.minWidth:this.columnMinWidth?this.columnMinWidth:((n=z.matrix.columnWidthsByType[e.cellType])===null||n===void 0?void 0:n.minWidth)||""},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.survey?this.survey.storeOthersAsComment:!1},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,n){var r=new mo(e,n,this);return this.columns.push(r),r},t.prototype.clearVisibleRows=function(){this.visibleRowsArray=null},t.prototype.isColumnVisible=function(e){return e.isColumnVisible},t.prototype.getVisibleRows=function(){return this.isUpdateLocked?null:this.isGenereatingRows?[]:this.visibleRowsArray?this.visibleRowsArray:(this.generateVisibleRowsIfNeeded(),this.visibleRowsArray=this.getVisibleFromGenerated(this.generatedVisibleRows),this.visibleRowsArray)},t.prototype.generateVisibleRowsIfNeeded=function(){var e=this;!this.isUpdateLocked&&!this.generatedVisibleRows&&!this.generatedVisibleRows&&(this.isGenereatingRows=!0,this.generatedVisibleRows=this.generateRows(),this.isGenereatingRows=!1,this.generatedVisibleRows.forEach(function(n){return e.onMatrixRowCreated(n)}),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.generatedVisibleRows&&(this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()))},t.prototype.getVisibleFromGenerated=function(e){var n=[];return e?(e.forEach(function(r){r.isVisible&&n.push(r)}),n.length===e.length?e:n):n},t.prototype.updateValueOnRowsGeneration=function(e){for(var n=this.createNewValue(!0),r=this.createNewValue(),o=0;o<e.length;o++){var s=e[o];if(!s.editingObj){var c=this.getRowValue(o),y=s.value;this.isTwoValueEquals(c,y)||(r=this.getNewValueOnRowChanged(s,"",y,!1,r).value)}}this.isTwoValueEquals(n,r)||(this.isRowChanging=!0,this.setNewValue(r),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return!this.hasTotal||!this.visibleTotalRow?{}:this.visibleTotalRow.value},enumerable:!1,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isUpdateLocked)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0||!Array.isArray(this.visibleRows))return null;var n=this.generatedVisibleRows;if(e>=n.length)return null;var r=this.createNewValue();return this.getRowValueCore(n[e],r)},t.prototype.checkIfValueInRowDuplicated=function(e,n){return this.generatedVisibleRows?this.isValueInColumnDuplicated(n.name,!0,e):!1},t.prototype.setRowValue=function(e,n){if(e<0)return null;var r=this.visibleRows;if(e>=r.length)return null;r[e].value=n,this.onRowChanged(r[e],"",n,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new ti(this)},t.prototype.createNewValue=function(e){e===void 0&&(e=!1);var n=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(n)?null:n},t.prototype.getRowValueCore=function(e,n,r){r===void 0&&(r=!1);var o=n&&n[e.rowName]?n[e.rowName]:null;return!o&&r&&(o={},n&&(n[e.rowName]=o)),o},t.prototype.getRowObj=function(e){var n=this.getRowValueCore(e,this.value);return n&&n.getType?n:null},t.prototype.getRowDisplayValue=function(e,n,r){if(!r||n.editingObj)return r;for(var o=Object.keys(r),s=0;s<o.length;s++){var c=o[s],y=n.getQuestionByName(c);if(y||(y=this.getSharedQuestionByName(c,n)),y){var w=y.getDisplayValue(e,r[c]);e&&y.title&&y.title!==c?(r[y.title]=w,delete r[c]):r[c]=w}}return r},t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0});var r=i.prototype.getPlainData.call(this,e);if(r){r.isNode=!0;var o=Array.isArray(r.data)?[].concat(r.data):[];r.data=this.visibleRows.map(function(s){var c={name:s.dataName,title:s.text,value:s.value,displayValue:n.getRowDisplayValue(!1,s,s.value),getString:function(y){return typeof y=="object"?JSON.stringify(y):y},isNode:!0,data:s.cells.map(function(y){return y.question.getPlainData(e)}).filter(function(y){return!!y})};return(e.calculations||[]).forEach(function(y){c[y.propertyName]=s[y.propertyName]}),c}),r.data=r.data.concat(o)}return r},t.prototype.addConditionObjectsByContext=function(e,n){var r=[].concat(this.columns);this.detailPanelMode!=="none"&&(r=r.concat(this.detailPanel.questions));var o=!!n&&r.indexOf(n)>-1,s=n===!0||o,c=this.getConditionObjectsRowIndeces();s&&c.push(-1);for(var y=0;y<c.length;y++){var w=c[y],N=w>-1?this.getConditionObjectRowName(w):"row";if(N)for(var Q=w>-1?this.getConditionObjectRowText(w):"row",Y=w>-1||n===!0,ce=Y&&w===-1?".":"",fe=(Y?this.getValueName():"")+ce+N+".",Oe=(Y?this.processedTitle:"")+ce+Q+".",Ee=0;Ee<r.length;Ee++){var me=r[Ee];if(!(w===-1&&n===me)){var ze={name:fe+me.name,text:Oe+me.fullTitle,question:this};w===-1&&n===!0?ze.context=this:o&&fe.startsWith("row.")&&(ze.context=n),e.push(ze)}}}},t.prototype.onHidingContent=function(){if(i.prototype.onHidingContent.call(this),!!this.generatedVisibleRows){var e=[];this.collectNestedQuestions(e,!0),e.forEach(function(n){return n.onHidingContent()})}},t.prototype.getIsReadyNestedQuestions=function(){if(!this.generatedVisibleRows)return[];var e=new Array;return this.collectNestedQuestonsInRows(this.generatedVisibleRows,e,!1),this.generatedTotalRow&&this.collectNestedQuestonsInRows([this.generatedTotalRow],e,!1),e},t.prototype.collectNestedQuestionsCore=function(e,n){this.collectNestedQuestonsInRows(this.visibleRows,e,n)},t.prototype.collectNestedQuestonsInRows=function(e,n,r){Array.isArray(e)&&e.forEach(function(o){o.questions.forEach(function(s){return s.collectNestedQuestions(n,r)})})},t.prototype.getConditionObjectRowName=function(e){return""},t.prototype.getConditionObjectRowText=function(e){return this.getConditionObjectRowName(e)},t.prototype.getConditionObjectsRowIndeces=function(){return[]},t.prototype.getProgressInfo=function(){if(this.generatedVisibleRows)return sn.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=Je.createProgressInfo();return this.updateProgressInfoByValues(e),e.requiredQuestionCount===0&&this.isRequired&&(e.requiredQuestionCount=1,e.requiredAnsweredQuestionCount=this.isEmpty()?0:1),e},t.prototype.updateProgressInfoByValues=function(e){},t.prototype.updateProgressInfoByRow=function(e,n){for(var r=0;r<this.columns.length;r++){var o=this.columns[r];if(o.templateQuestion.hasInput){var s=!m.isValueEmpty(n[o.name]);!s&&o.templateQuestion.visibleIf||(e.questionCount+=1,e.requiredQuestionCount+=o.isRequired,e.answeredQuestionCount+=s?1:0,e.requiredAnsweredQuestionCount+=s&&o.isRequired?1:0)}}},t.prototype.getCellQuestions=function(){var e=[];return this.runFuncForCellQuestions(function(n){e.push(n)}),e},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),!(!this.generatedVisibleRows||this.generatedVisibleRows.length==0))){this.isRowChanging=!0;for(var e=this.createNewValue(),n=0;n<this.generatedVisibleRows.length;n++){var r=this.generatedVisibleRows[n];this.generatedVisibleRows[n].value=this.getRowValueCore(r,e)}this.isRowChanging=!1}},t.prototype.setQuestionValue=function(e){i.prototype.setQuestionValue.call(this,e,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var n=0;n<e.length;n++){var r=this.generatedVisibleRows[n].cells;if(r)for(var o=0;o<r.length;o++){var s=r[o].question;if(s&&(!s.supportGoNextPageAutomatic()||!s.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return i.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors(function(e){return e.containsErrors},!1)},t.prototype.getIsAnswered=function(){return i.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors(function(e){return e.isAnswered},!0)},t.prototype.checkForAnswersOrErrors=function(e,n){n===void 0&&(n=!1);var r=this.generatedVisibleRows;if(!r)return!1;for(var o=0;o<r.length;o++){var s=r[o].cells;if(s){for(var c=0;c<s.length;c++)if(s[c]){var y=s[c].question;if(y&&y.isVisible){if(e(y)){if(!n)return!0}else if(n)return!1}}}}return!!n},t.prototype.hasErrors=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=null);var r=this.hasErrorInRows(e,n),o=this.isValueDuplicated();return i.prototype.hasErrors.call(this,e,n)||r||o},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var e=0;e<this.generatedVisibleRows.length;e++){var n=this.generatedVisibleRows[e].cells;if(n){for(var r=0;r<n.length;r++)if(n[r]){var o=n[r].question;if(o&&o.isRunningValidators)return!0}}}return!1},t.prototype.getAllErrors=function(){var e=i.prototype.getAllErrors.call(this),n=this.generatedVisibleRows;if(n===null)return e;for(var r=0;r<n.length;r++)for(var o=n[r],s=0;s<o.cells.length;s++){var c=o.cells[s].question.getAllErrors();c&&c.length>0&&(e=e.concat(c))}return e},t.prototype.hasErrorInRows=function(e,n){var r=this,o=this.generatedVisibleRows;this.generatedVisibleRows||(o=this.visibleRows);var s=!1;if(n||(n={}),!o)return n;n.validationValues=this.getDataFilteredValues(),n.isSingleDetailPanel=this.detailPanelMode==="underRowSingle";for(var c=0;c<o.length;c++)o[c].isVisible&&(s=o[c].hasErrors(e,n,function(){r.raiseOnCompletedAsyncValidators()})||s);return s},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumnsNames(),n=!1,r=0;r<e.length;r++)n=this.isValueInColumnDuplicated(e[r],!0)||n;return n},t.prototype.getUniqueColumnsNames=function(){for(var e=new Array,n=0;n<this.columns.length;n++)this.columns[n].isUnique&&e.push(this.columns[n].name);return e},t.prototype.isValueInColumnDuplicated=function(e,n,r){var o=this.getDuplicatedRows(e);return n&&this.showDuplicatedErrorsInRows(o,e),this.removeDuplicatedErrorsInRows(o,e),r?o.indexOf(r)>-1:o.length>0},t.prototype.getDuplicatedRows=function(e){for(var n={},r=[],o=this.generatedVisibleRows,s=0;s<o.length;s++){var c=void 0,y=o[s].getQuestionByName(e);if(y)c=y.value;else{var w=this.getRowValue(s);c=w?w[e]:void 0}this.isValueEmpty(c)||(!this.isUniqueCaseSensitive&&typeof c=="string"&&(c=c.toLocaleLowerCase()),n[c]||(n[c]=[]),n[c].push(o[s]))}for(var N in n)n[N].length>1&&n[N].forEach(function(Q){return r.push(Q)});return r},t.prototype.showDuplicatedErrorsInRows=function(e,n){var r=this;e.forEach(function(o){var s=o.getQuestionByName(n),c=r.detailPanel.getQuestionByName(n);!s&&c&&(o.showDetailPanel(),o.detailPanel&&(s=o.detailPanel.getQuestionByName(n))),s&&(c&&o.showDetailPanel(),r.addDuplicationError(s))})},t.prototype.removeDuplicatedErrorsInRows=function(e,n){var r=this;this.generatedVisibleRows.forEach(function(o){if(e.indexOf(o)<0){var s=o.getQuestionByName(n);s&&r.removeDuplicationError(o,s)}})},t.prototype.getDuplicationError=function(e){for(var n=e.errors,r=0;r<n.length;r++)if(n[r].getErrorType()==="keyduplicationerror")return n[r];return null},t.prototype.addDuplicationError=function(e){this.getDuplicationError(e)||e.addError(new Qa(this.keyDuplicationError,this))},t.prototype.removeDuplicationError=function(e,n){n.removeError(this.getDuplicationError(n))&&n.errors.length===0&&e.editingObj&&(e.editingObj[n.getValueName()]=n.value)},t.prototype.getFirstQuestionToFocus=function(e){return this.getFirstCellQuestion(e)},t.prototype.getFirstInputElementId=function(){var e=this.getFirstCellQuestion(!1);return e?e.inputId:i.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var e=this.getFirstCellQuestion(!0);return e?e.inputId:i.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var n=0;n<this.generatedVisibleRows.length;n++)for(var r=this.generatedVisibleRows[n].cells,o=0;o<r.length;o++)if(!e||r[o].question.currentErrorCount>0)return r[o].question;return null},t.prototype.onReadOnlyChanged=function(){if(i.prototype.onReadOnlyChanged.call(this),!!this.generateRows)for(var e=0;e<this.visibleRows.length;e++)this.visibleRows[e].onQuestionReadOnlyChanged()},t.prototype.createQuestion=function(e,n){return this.createQuestionCore(e,n)},t.prototype.createQuestionCore=function(e,n){var r=n.createCellQuestion(e);return r.setSurveyImpl(e),r.setParentQuestion(this),r.inMatrixMode=!0,r},t.prototype.deleteRowValue=function(e,n){return e&&(delete e[n.rowName],this.isObject(e)&&Object.keys(e).length==0?null:e)},t.prototype.onAnyValueChanged=function(e,n){if(!(this.isUpdateLocked||this.isDoingonAnyValueChanged||!this.generatedVisibleRows)){this.isDoingonAnyValueChanged=!0;for(var r=this.generatedVisibleRows,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,n);var s=this.visibleTotalRow;s&&s.onAnyValueChanged(e,n),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return e!==null&&typeof e=="object"},t.prototype.getOnCellValueChangedOptions=function(e,n,r){var o=function(s){return e.getQuestionByName(s)};return{row:e,columnName:n,rowValue:r,value:r?r[n]:null,getCellQuestion:o,cellQuestion:e.getQuestionByName(n),column:this.getColumnByName(n)}},t.prototype.onCellValueChanged=function(e,n,r){if(this.survey){var o=this.getOnCellValueChangedOptions(e,n,r);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(o),this.survey.matrixCellValueChanged(this,o)}},t.prototype.validateCell=function(e,n,r){if(this.survey){var o=this.getOnCellValueChangedOptions(e,n,r);return this.survey.matrixCellValidate(this,o)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return this.survey?this.survey.isValidateOnValueChanging:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasInvisibleRows",{get:function(){var e=this.generatedVisibleRows;if(!Array.isArray(e))return!1;for(var n=0;n<e.length;n++)if(!e[n].isVisible)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getFilteredData=function(){return this.isEmpty()||!this.generatedVisibleRows||!this.hasInvisibleRows?this.value:this.getFilteredDataCore()},t.prototype.getFilteredDataCore=function(){return this.value},t.prototype.onRowChanging=function(e,n,r){if(!this.survey&&!this.cellValueChangingCallback)return r?r[n]:null;var o=this.getOnCellValueChangedOptions(e,n,r),s=this.getRowValueCore(e,this.createNewValue(),!0);return o.oldValue=s?s[n]:null,this.cellValueChangingCallback&&(o.value=this.cellValueChangingCallback(e,n,o.value,o.oldValue)),this.survey&&this.survey.matrixCellValueChanging(this,o),o.value},t.prototype.onRowChanged=function(e,n,r,o){var s=n?this.getRowObj(e):null;if(s){var c=null;r&&!o&&(c=r[n]),this.isRowChanging=!0,G.setObjPropertyValue(s,n,c),this.isRowChanging=!1,this.onCellValueChanged(e,n,s)}else{var y=this.createNewValue(!0),w=this.getNewValueOnRowChanged(e,n,r,o,this.createNewValue());if(this.isTwoValueEquals(y,w.value))return;this.isRowChanging=!0,this.setNewValue(w.value),this.isRowChanging=!1,n&&this.onCellValueChanged(e,n,w.rowValue)}this.getUniqueColumnsNames().indexOf(n)>-1&&this.isValueInColumnDuplicated(n,!!s)},t.prototype.getNewValueOnRowChanged=function(e,n,r,o,s){var c=this.getRowValueCore(e,s,!0);if(o&&delete c[n],e.questions.forEach(function(w){delete c[w.getValueName()]}),r){r=JSON.parse(JSON.stringify(r));for(var y in r)this.isValueEmpty(r[y])||(c[y]=r[y])}return this.isObject(c)&&Object.keys(c).length===0&&(s=this.deleteRowValue(s,e)),{value:s,rowValue:c}},t.prototype.getRowIndex=function(e){return Array.isArray(this.generatedVisibleRows)?this.generatedVisibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(e){e===void 0&&(e=!1);var n;return this.detailPanelMode=="none"?n=i.prototype.getElementsInDesign.call(this,e):n=e?[this.detailPanel]:this.detailElements,this.columns.concat(n)},t.prototype.hasDetailPanel=function(e){return this.detailPanelMode=="none"?!1:this.isDesignMode?!0:this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0},t.prototype.getIsDetailPanelShowing=function(e){if(this.detailPanelMode=="none")return!1;if(this.isDesignMode){var n=this.visibleRows.indexOf(e)==0;return n&&(e.detailPanel||e.showDetailPanel()),n}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,n){if(n!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,n),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,n),this.survey&&this.survey.matrixDetailPanelVisibleChanged(this,e.rowIndex-1,e,n),n&&this.detailPanelMode==="underRowSingle"))for(var r=this.visibleRows,o=0;o<r.length;o++)r[o].id!==e.id&&r[o].isDetailPanelShowing&&r[o].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var n=new te().append(this.getPropertyValue("detailButtonCss"+e.id));return n.append(this.cssClasses.detailButton,n.toString()==="").toString()},t.prototype.getDetailPanelIconCss=function(e){var n=new te().append(this.getPropertyValue("detailIconCss"+e.id));return n.append(this.cssClasses.detailIcon,n.toString()==="").toString()},t.prototype.getDetailPanelIconId=function(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId},t.prototype.updateDetailPanelButtonCss=function(e){var n=this.cssClasses,r=this.getIsDetailPanelShowing(e),o=new te().append(n.detailIcon).append(n.detailIconExpanded,r);this.setPropertyValue("detailIconCss"+e.id,o.toString());var s=new te().append(n.detailButton).append(n.detailButtonExpanded,r);this.setPropertyValue("detailButtonCss"+e.id,s.toString())},t.prototype.createRowDetailPanel=function(e){var n=this;if(this.isDesignMode)return this.detailPanel;var r=this.createNewDetailPanel();r.readOnly=this.isReadOnly||!e.isRowEnabled(),r.setSurveyImpl(e);var o=this.detailPanel.toJSON();return new Vt().toObject(o,r),r.renderWidth="100%",r.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,r),r.questions.forEach(function(s){return s.setParentQuestion(n)}),r.onSurveyLoad(),r},t.prototype.getSharedQuestionByName=function(e,n){if(!this.survey||!this.valueName)return null;var r=this.getRowIndex(n);return r<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,r)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isUpdateLocked&&!this.isSett&&this.data.setValue(this.getValueName()+z.matrix.totalsSuffix,this.totalValue,!1)},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getParentTextProcessor=function(){if(!this.parentQuestion||!this.parent)return null;var e=this.parent.data;return e&&e.getTextProcessor?e.getTextProcessor():null},t.prototype.isMatrixReadOnly=function(){return this.isReadOnly},t.prototype.onRowVisibilityChanged=function(e){this.clearVisibleRows(),this.resetRenderedTable()},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),this.clearInvisibleValuesInRows()},t.prototype.clearInvisibleValuesInRows=function(){var e;if(!(this.isEmpty()||!this.isRowsFiltered())){var n=((e=this.survey)===null||e===void 0?void 0:e.questionsByValueName(this.getValueName()))||[];n.length<2&&(this.value=this.getFilteredData())}},t.prototype.isRowsFiltered=function(){return i.prototype.isRowsFiltered.call(this)||this.visibleRows!==this.generatedVisibleRows},t.prototype.getQuestionFromArray=function(e,n){return n>=this.visibleRows.length?null:this.visibleRows[n].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(this.isObject(e[n])&&Object.keys(e[n]).length>0)return!1;return!0}return Object.keys(e).length==0}},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getCellTemplateData=function(e){return this.SurveyModel.getMatrixCellTemplateData(e)},t.prototype.getCellWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,e.row instanceof ti?"row-footer":"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof ti?"row-footer":"cell")},t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"row-header")},Object.defineProperty(t.prototype,"showHorizontalScroll",{get:function(){return!this.isDefaultV2Theme&&this.horizontalScroll},enumerable:!1,configurable:!0}),t.prototype.onMobileChanged=function(){i.prototype.onMobileChanged.call(this),this.resetRenderedTable()},t.prototype.getRootCss=function(){return new te().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},t.prototype.afterRenderQuestionElement=function(e){i.prototype.afterRenderQuestionElement.call(this,e),this.setRootElement(e==null?void 0:e.parentElement)},t.prototype.beforeDestroyQuestionElement=function(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.setRootElement(void 0)},t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t}(Pn);G.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn",isArray:!0},{name:"columnLayout",alternativeName:"columnsLocation",choices:["horizontal","vertical"],visible:!1,isSerializable:!1},{name:"transposeData:boolean",version:"1.9.130",oldName:"columnLayout"},{name:"detailElements",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},{name:"cellErrorLocation",default:"default",choices:["default","top","bottom"]},{name:"detailErrorLocation",default:"default",choices:["default","top","bottom"],visibleIf:function(i){return!!i&&i.detailPanelMode!="none"}},{name:"horizontalScroll:boolean",visible:!1},{name:"choices:itemvalue[]",uniqueProperty:"value",visibleIf:function(i){return i.isSelectCellType()}},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return mo.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],function(){return new _r("")},"matrixbase");var os=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ua=function(i){os(t,i);function t(e,n,r,o){var s=i.call(this,r,o)||this;return s.name=e,s.item=n,s.buildCells(o),s}return Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),t.prototype.isItemVisible=function(){return this.item.isVisible},t.prototype.isRowEnabled=function(){return this.item.isEnabled},t.prototype.isRowHasEnabledCondition=function(){return!!this.item.enableIf},t.prototype.setRowsVisibleIfValues=function(e){e.item=this.item.value,e.choice=this.item.value},t}(mr),Ai=function(i){os(t,i);function t(e){var n=i.call(this,e)||this;return n.defaultValuesInRows={},n.createLocalizableString("totalText",n,!0),n.registerPropertyChangedHandlers(["rows"],function(){n.generatedVisibleRows&&(n.clearGeneratedRows(),n.resetRenderedTable(),n.getVisibleRows(),n.clearIncorrectValues())}),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){n.updateVisibilityBasedOnRows()}),n}return t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,n){if(!n)return n;var r=this.visibleRows,o={};if(!r)return o;for(var s=0;s<r.length;s++){var c=r[s].rowName,y=n[c];if(y){if(e){var w=ge.getTextOrHtmlByValue(this.rows,c);w&&(c=w)}o[c]=this.getRowDisplayValue(e,r[s],y)}}return o},t.prototype.getConditionObjectRowName=function(e){return"."+this.rows[e].value},t.prototype.getConditionObjectRowText=function(e){return"."+this.rows[e].calculatedText},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],n=0;n<this.rows.length;n++)e.push(n);return e},t.prototype.isNewValueCorrect=function(e){return m.isValueObject(e,!0)},t.prototype.clearIncorrectValues=function(){if(!this.isEmpty()){this.getVisibleRows();var e={},n=this.value;for(var r in n){var o=this.getRowByKey(r);o&&o.isVisible&&(e[r]=n[r])}this.value=e}i.prototype.clearIncorrectValues.call(this)},t.prototype.getRowByKey=function(e){var n=this.generatedVisibleRows;if(!n)return null;for(var r=0;r<n.length;r++)if(n[r].rowName===e)return n[r];return null},t.prototype.clearGeneratedRows=function(){var e=this;this.generatedVisibleRows&&(this.isDisposed||this.generatedVisibleRows.forEach(function(n){e.defaultValuesInRows[n.rowName]=n.getNamesWithDefaultValues()}),i.prototype.clearGeneratedRows.call(this))},t.prototype.getRowValueForCreation=function(e,n){var r=e[n];if(!r)return r;var o=this.defaultValuesInRows[n];return!Array.isArray(o)||o.length===0||o.forEach(function(s){delete r[s]}),r},t.prototype.generateRows=function(){var e=new Array,n=this.rows;if(!n||n.length===0)return e;var r=this.value;r||(r={});for(var o=0;o<n.length;o++){var s=n[o];this.isValueEmpty(s.value)||e.push(this.createMatrixRow(s,this.getRowValueForCreation(r,s.value)))}return e},t.prototype.createMatrixRow=function(e,n){return new ua(e.value,e,this,n)},t.prototype.getFilteredDataCore=function(){var e={},n=this.createValueCopy();return this.generatedVisibleRows.forEach(function(r){var o=n[r.rowName];r.isVisible&&!m.isValueEmpty(o)&&(e[r.rowName]=o)}),e},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t.prototype.updateProgressInfoByValues=function(e){var n=this.value;n||(n={});for(var r=0;r<this.rows.length;r++){var o=this.rows[r],s=n[o.value];this.updateProgressInfoByRow(e,s||{})}},t}(_r);G.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],function(){return new Ai("")},"matrixdropdownbase"),bt.Instance.registerQuestion("matrixdropdown",function(i){var t=new Ai(i);return t.choices=[1,2,3,4,5],t.rows=bt.DefaultRows,_r.addDefaultColumns(t),t});var sl=!1,Ic=null;typeof navigator<"u"&&navigator&&B.isAvailable()&&(Ic=navigator.userAgent||navigator.vendor||B.hasOwn("opera")),function(i){i&&(navigator.platform==="MacIntel"&&navigator.maxTouchPoints>0||navigator.platform==="iPad"||/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substring(0,4)))&&(sl=!0)}(Ic);var Np=!1,Ja=sl||Np,Rc={get isTouch(){return!this.hasMouse&&this.hasTouchEvent},get hasTouchEvent(){return B.isAvailable()&&(B.hasOwn("ontouchstart")||navigator.maxTouchPoints>0)},hasMouse:!0},Za=B.matchMedia;Rc.hasMouse=L(Za);var qt=Rc.isTouch;function Ac(i){qt=i}function L(i){if(!i||Ja)return!1;var t=i("(pointer:fine)"),e=i("(any-hover:hover)");return!!t&&t.matches||!!e&&e.matches}var ss=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i};typeof window<"u"&&window.addEventListener("touchmove",function(i){la.PreventScrolling&&i.preventDefault()},{passive:!1});var la=function(){function i(t,e,n){var r=this;e===void 0&&(e=!0),n===void 0&&(n=!1),this.dd=t,this.longTap=e,this.fitToContainer=n,this.scrollIntervalId=null,this.stopLongTapIfMoveEnough=function(o){o.preventDefault(),r.currentX=o.pageX,r.currentY=o.pageY,!r.isMicroMovement&&(r.returnUserSelectBack(),r.stopLongTap())},this.stopLongTap=function(o){clearTimeout(r.timeoutID),r.timeoutID=null,document.removeEventListener("pointerup",r.stopLongTap),document.removeEventListener("pointermove",r.stopLongTapIfMoveEnough)},this.handlePointerCancel=function(o){r.clear()},this.handleEscapeButton=function(o){o.keyCode==27&&r.clear()},this.onContextMenu=function(o){o.preventDefault(),o.stopPropagation()},this.dragOver=function(o){r.moveShortcutElement(o),r.draggedElementShortcut.style.cursor="grabbing",r.dd.dragOver(o)},this.clear=function(){cancelAnimationFrame(r.scrollIntervalId),document.removeEventListener("pointermove",r.dragOver),document.removeEventListener("pointercancel",r.handlePointerCancel),document.removeEventListener("keydown",r.handleEscapeButton),document.removeEventListener("pointerup",r.drop),r.draggedElementShortcut.removeEventListener("pointerup",r.drop),qt&&r.draggedElementShortcut.removeEventListener("contextmenu",r.onContextMenu),r.draggedElementShortcut.parentElement.removeChild(r.draggedElementShortcut),r.dd.clear(),r.draggedElementShortcut=null,r.scrollIntervalId=null,qt&&(r.savedTargetNode.style.cssText=null,r.savedTargetNode&&r.savedTargetNode.parentElement.removeChild(r.savedTargetNode),r.insertNodeToParentAtIndex(r.savedTargetNodeParent,r.savedTargetNode,r.savedTargetNodeIndex),i.PreventScrolling=!1),r.savedTargetNode=null,r.savedTargetNodeParent=null,r.savedTargetNodeIndex=null,r.returnUserSelectBack()},this.drop=function(){r.dd.drop(),r.clear()},this.draggedElementShortcut=null}return Object.defineProperty(i.prototype,"documentOrShadowRoot",{get:function(){return z.environment.root},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"rootElement",{get:function(){return ro(z.environment.root)?this.rootContainer||z.environment.root.host:this.rootContainer||z.environment.root.documentElement||document.body},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isMicroMovement",{get:function(){var t=5,e=Math.abs(this.currentX-this.startX),n=Math.abs(this.currentY-this.startY);return e<t&&n<t},enumerable:!1,configurable:!0}),i.prototype.startLongTapProcessing=function(t,e,n,r,o){var s=this;o===void 0&&(o=!1),this.startX=t.pageX,this.startY=t.pageY,document.body.style.setProperty("touch-action","none","important"),this.timeoutID=setTimeout(function(){s.doStartDrag(t,e,n,r),o||(s.savedTargetNode=t.target,s.savedTargetNode.style.cssText=`
-          position: absolute;
-          height: 1px!important;
-          width: 1px!important;
-          overflow: hidden;
-          clip: rect(1px 1px 1px 1px);
-          clip: rect(1px, 1px, 1px, 1px);
-        `,s.savedTargetNodeParent=s.savedTargetNode.parentElement,s.savedTargetNodeIndex=s.getNodeIndexInParent(s.savedTargetNode),s.rootElement.appendChild(s.savedTargetNode)),s.stopLongTap()},this.longTap?500:0),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},i.prototype.moveShortcutElement=function(t){var e=this.rootElement.getBoundingClientRect().x,n=this.rootElement.getBoundingClientRect().y,r=this.rootElement.scrollLeft,o=this.rootElement.scrollTop;this.doScroll(t.clientY,t.clientX);var s=this.draggedElementShortcut.offsetHeight,c=this.draggedElementShortcut.offsetWidth,y=this.draggedElementShortcut.shortcutXOffset||c/2,w=this.draggedElementShortcut.shortcutYOffset||s/2;document.querySelectorAll("[dir='rtl']").length!==0&&(y=c/2,w=s/2);var N=document.documentElement.clientHeight,Q=document.documentElement.clientWidth,Y=t.pageX,ce=t.pageY,fe=t.clientX,Oe=t.clientY;e-=r,n-=o;var Ee=this.getShortcutBottomCoordinate(Oe,s,w),me=this.getShortcutRightCoordinate(fe,c,y);if(me>=Q){this.draggedElementShortcut.style.left=Q-c-e+"px",this.draggedElementShortcut.style.top=Oe-w-n+"px";return}if(fe-y<=0){this.draggedElementShortcut.style.left=Y-fe-e+"px",this.draggedElementShortcut.style.top=Oe-n-w+"px";return}if(Ee>=N){this.draggedElementShortcut.style.left=fe-y-e+"px",this.draggedElementShortcut.style.top=N-s-n+"px";return}if(Oe-w<=0){this.draggedElementShortcut.style.left=fe-y-e+"px",this.draggedElementShortcut.style.top=ce-Oe-n+"px";return}this.draggedElementShortcut.style.left=fe-e-y+"px",this.draggedElementShortcut.style.top=Oe-n-w+"px"},i.prototype.getShortcutBottomCoordinate=function(t,e,n){return t+e-n},i.prototype.getShortcutRightCoordinate=function(t,e,n){return t+e-n},i.prototype.requestAnimationFrame=function(t){return requestAnimationFrame(t)},i.prototype.scrollByDrag=function(t,e,n){var r=this,o=100,s,c,y,w;t.tagName==="HTML"?(s=0,c=document.documentElement.clientHeight,y=0,w=document.documentElement.clientWidth):(s=t.getBoundingClientRect().top,c=t.getBoundingClientRect().bottom,y=t.getBoundingClientRect().left,w=t.getBoundingClientRect().right);var N=function(){var Q=e-s<=o,Y=c-e<=o,ce=n-y<=o,fe=w-n<=o;Q&&!ce&&!fe?t.scrollTop-=15:Y&&!ce&&!fe?t.scrollTop+=15:fe&&!Q&&!Y?t.scrollLeft+=15:ce&&!Q&&!Y&&(t.scrollLeft-=15),r.scrollIntervalId=r.requestAnimationFrame(N)};this.scrollIntervalId=this.requestAnimationFrame(N)},i.prototype.doScroll=function(t,e){cancelAnimationFrame(this.scrollIntervalId);var n=this.draggedElementShortcut.style.display;this.draggedElementShortcut.style.display="none";var r=this.documentOrShadowRoot.elementFromPoint(e,t);this.draggedElementShortcut.style.display=n||"block";var o=Jt(r);this.scrollByDrag(o,t,e)},i.prototype.doStartDrag=function(t,e,n,r){qt&&(i.PreventScrolling=!0),t.which!==3&&(this.dd.dragInit(t,e,n,r),this.rootElement.append(this.draggedElementShortcut),this.moveShortcutElement(t),document.addEventListener("pointermove",this.dragOver),document.addEventListener("pointercancel",this.handlePointerCancel),document.addEventListener("keydown",this.handleEscapeButton),document.addEventListener("pointerup",this.drop),qt?this.draggedElementShortcut.addEventListener("contextmenu",this.onContextMenu):this.draggedElementShortcut.addEventListener("pointerup",this.drop))},i.prototype.returnUserSelectBack=function(){document.body.style.setProperty("touch-action","auto"),document.body.style.setProperty("user-select","auto"),document.body.style.setProperty("-webkit-user-select","auto")},i.prototype.startDrag=function(t,e,n,r,o){if(o===void 0&&(o=!1),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),qt){this.startLongTapProcessing(t,e,n,r,o);return}this.doStartDrag(t,e,n,r)},i.prototype.getNodeIndexInParent=function(t){return ss([],t.parentElement.childNodes).indexOf(t)},i.prototype.insertNodeToParentAtIndex=function(t,e,n){t.insertBefore(e,t.childNodes[n])},i.PreventScrolling=!1,i}(),Mn=function(){function i(t,e,n,r){var o=this,s;this.surveyValue=t,this.creator=e,this._isBottom=null,this.onGhostPositionChanged=new Tn,this.onDragStart=new Tn,this.onDragEnd=new Tn,this.onDragClear=new Tn,this.onBeforeDrop=this.onDragStart,this.onAfterDrop=this.onDragEnd,this.draggedElement=null,this.dropTarget=null,this.prevDropTarget=null,this.allowDropHere=!1,this.banDropHere=function(){o.allowDropHere=!1,o.doBanDropHere(),o.dropTarget=null,o.domAdapter.draggedElementShortcut.style.cursor="not-allowed",o.isBottom=null},this.doBanDropHere=function(){},this.domAdapter=r||new la(this,n,(s=this.survey)===null||s===void 0?void 0:s.fitToContainer)}return Object.defineProperty(i.prototype,"isBottom",{get:function(){return!!this._isBottom},set:function(t){this._isBottom=t,this.ghostPositionChanged()},enumerable:!1,configurable:!0}),i.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(i.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-"+this.draggedElementType+"]"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"survey",{get:function(){var t;return this.surveyValue||((t=this.creator)===null||t===void 0?void 0:t.survey)},enumerable:!1,configurable:!0}),i.prototype.startDrag=function(t,e,n,r,o){o===void 0&&(o=!1),this.domAdapter.rootContainer=this.getRootElement(this.survey,this.creator),this.domAdapter.startDrag(t,e,n,r,o)},i.prototype.getRootElement=function(t,e){return e?e.rootElement:t.rootElement},i.prototype.dragInit=function(t,e,n,r){this.draggedElement=e,this.parentElement=n;var o=this.getShortcutText(this.draggedElement);this.domAdapter.draggedElementShortcut=this.createDraggedElementShortcut(o,r,t),this.onStartDrag(t);var s=this.draggedElement&&this.draggedElement.parent;this.onDragStart.fire(this,{fromElement:s,draggedElement:this.draggedElement})},i.prototype.onStartDrag=function(t){},i.prototype.isDropTargetDoesntChanged=function(t){return this.dropTarget===this.prevDropTarget&&t===this.isBottom},i.prototype.getShortcutText=function(t){return t==null?void 0:t.shortcutText},i.prototype.createDraggedElementShortcut=function(t,e,n){var r=M.createElement("div");return r&&(r.innerText=t,r.className=this.getDraggedElementClass()),r},i.prototype.getDraggedElementClass=function(){return"sv-dragged-element-shortcut"},i.prototype.doDragOver=function(){},i.prototype.afterDragOver=function(t){},i.prototype.findDropTargetNodeFromPoint=function(t,e){var n=this.domAdapter.draggedElementShortcut.style.display;if(this.domAdapter.draggedElementShortcut.style.display="none",!M.isAvailable())return null;var r=this.domAdapter.documentOrShadowRoot.elementsFromPoint(t,e);this.domAdapter.draggedElementShortcut.style.display=n||"block";for(var o=0,s=r[o];s&&s.className&&typeof s.className.indexOf=="function"&&s.className.indexOf("sv-drag-target-skipped")!=-1;)o++,s=r[o];return s?this.findDropTargetNodeByDragOverNode(s):null},i.prototype.getDataAttributeValueByNode=function(t){var e=this,n="svDropTarget",r=this.draggedElementType.split("-");return r.forEach(function(o){n+=e.capitalizeFirstLetter(o)}),t.dataset[n]},i.prototype.getDropTargetByNode=function(t,e){var n=this.getDataAttributeValueByNode(t);return this.getDropTargetByDataAttributeValue(n,t,e)},i.prototype.capitalizeFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},i.prototype.calculateVerticalMiddleOfHTMLElement=function(t){var e=t.getBoundingClientRect();return e.y+e.height/2},i.prototype.calculateHorizontalMiddleOfHTMLElement=function(t){var e=t.getBoundingClientRect();return e.x+e.width/2},i.prototype.calculateIsBottom=function(t,e){return!1},i.prototype.findDropTargetNodeByDragOverNode=function(t){var e=t.closest(this.dropTargetDataAttributeName);return e},i.prototype.dragOver=function(t){var e=this.findDropTargetNodeFromPoint(t.clientX,t.clientY);if(!e){this.banDropHere();return}this.dropTarget=this.getDropTargetByNode(e,t);var n=this.isDropTargetValid(this.dropTarget,e);if(this.doDragOver(),!n){this.banDropHere();return}var r=this.calculateIsBottom(t.clientY,e);this.allowDropHere=!0,!this.isDropTargetDoesntChanged(r)&&(this.isBottom=null,this.isBottom=r,this.draggedElement!=this.dropTarget&&this.afterDragOver(e),this.prevDropTarget=this.dropTarget)},i.prototype.drop=function(){if(this.allowDropHere){var t=this.draggedElement.parent,e=this.doDrop();this.onDragEnd.fire(this,{fromElement:t,draggedElement:e,toElement:this.dropTarget})}},i.prototype.clear=function(){this.dropTarget=null,this.prevDropTarget=null,this.draggedElement=null,this.isBottom=null,this.parentElement=null,this.onDragClear.fire(this,{})},i}(),ft=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),qp=function(i){ft(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.fromIndex=null,e.toIndex=null,e.doDrop=function(){return e.parentElement.moveRowByIndex(e.fromIndex,e.toIndex),e.parentElement},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.onStartDrag=function(){var e=M.getBody();e&&(this.restoreUserSelectValue=e.style.userSelect,e.style.userSelect="none")},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return new te().append(this.parentElement.cssClasses.draggedRow).toString()},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){var o=this,s=M.createElement("div");if(s){s.className=this.shortcutClass;var c=!0;if(n){var y=n.closest("[data-sv-drop-target-matrix-row]"),w=y.cloneNode(c);w.style.cssText=`
-        width: `+y.offsetWidth+`px;
-      `,w.classList.remove("sv-matrix__drag-drop--moveup"),w.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,s.appendChild(w);var N=n.getBoundingClientRect();s.shortcutXOffset=r.clientX-N.x,s.shortcutYOffset=r.clientY-N.y}var Q=this.parentElement.renderedTable.rows;return Q.forEach(function(Y,ce){Y.row===o.draggedElement&&(Y.isGhostRow=!0)}),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),s}},t.prototype.getDropTargetByDataAttributeValue=function(e){var n=this.parentElement,r;return r=n.renderedTable.rows.filter(function(o){return o.row&&o.row.id===e})[0],r.row},t.prototype.canInsertIntoThisRow=function(e){var n=this.parentElement.lockedRowCount;return n<=0||e.rowIndex>n},t.prototype.isDropTargetValid=function(e,n){return this.canInsertIntoThisRow(e)},t.prototype.calculateIsBottom=function(e){var n=this.parentElement.renderedTable.rows,r=n.map(function(o){return o.row});return r.indexOf(this.dropTarget)-r.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(e){var n=this;if(!this.isDropTargetDoesntChanged(this.isBottom)){var r,o,s,c=this.parentElement.renderedTable.rows;c.forEach(function(y,w){y.row===n.dropTarget&&(r=w),y.row===n.draggedElement&&(s=y,o=w,s.isGhostRow=!0)}),c.splice(o,1),c.splice(r,0,s),this.toIndex=this.parentElement.visibleRows.indexOf(this.dropTarget),i.prototype.ghostPositionChanged.call(this)}},t.prototype.clear=function(){var e=this.parentElement.renderedTable.rows;e.forEach(function(r){r.isGhostRow=!1}),this.parentElement.clearOnDrop(),this.fromIndex=null,this.toIndex=null;var n=M.getBody();n&&(n.style.userSelect=this.restoreUserSelectValue||"initial"),i.prototype.clear.call(this)},t}(Mn),al=function(){function i(t){var e=this;this.dragHandler=t,this.onPointerUp=function(n){e.clearListeners()},this.tryToStartDrag=function(n){if(e.currentX=n.pageX,e.currentY=n.pageY,!e.isMicroMovement)return e.clearListeners(),e.dragHandler(e.pointerDownEvent,e.currentTarget,e.itemModel),!0}}return i.prototype.onPointerDown=function(t,e){if(qt){this.dragHandler(t,t.currentTarget,e);return}this.pointerDownEvent=t,this.currentTarget=t.currentTarget,this.startX=t.pageX,this.startY=t.pageY,M.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=e},Object.defineProperty(i.prototype,"isMicroMovement",{get:function(){var t=10,e=Math.abs(this.currentX-this.startX),n=Math.abs(this.currentY-this.startY);return e<t&&n<t},enumerable:!1,configurable:!0}),i.prototype.clearListeners=function(){this.pointerDownEvent&&(M.removeEventListener("pointermove",this.tryToStartDrag),this.currentTarget.removeEventListener("pointerup",this.onPointerUp))},i}(),ul=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Di=function(i){ul(t,i);function t(e,n,r){var o=i.call(this,n,r)||this;return o.index=e,o.buildCells(r),o}return t.prototype.getRowIndex=function(){var e=i.prototype.getRowIndex.call(this);return e>0?e:this.index+1},Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataName",{get:function(){return"row"+(this.index+1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return"row "+(this.index+1)},enumerable:!1,configurable:!0}),t.prototype.getAccessbilityText=function(){return(this.index+1).toString()},Object.defineProperty(t.prototype,"shortcutText",{get:function(){var e=this.data,n=e.visibleRows.indexOf(this)+1,r=this.cells.length>1?this.cells[1].questionValue:void 0,o=this.cells.length>0?this.cells[0].questionValue:void 0;return r&&r.value||o&&o.value||""+n},enumerable:!1,configurable:!0}),t}(mr),ll=function(i){ul(t,i);function t(e){var n=i.call(this,e)||this;n.rowCounter=0,n.setRowCountValueFromData=!1,n.startDragMatrixRow=function(o,s){n.dragDropMatrixRows.startDrag(o,n.draggedRow,n,o.target)},n.initialRowCount=n.getDefaultPropertyValue("rowCount"),n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete");var r=n.createLocalizableString("addRowText",n);return r.onGetTextCallback=function(o){return o||n.defaultAddRowText},n.createLocalizableString("removeRowText",n,!1,"removeRow"),n.createLocalizableString("emptyRowsText",n,!1,!0),n.registerPropertyChangedHandlers(["hideColumnsIfEmpty","allowAddRows"],function(){n.updateShowTableAndAddRow()}),n.registerPropertyChangedHandlers(["allowRowsDragAndDrop","isReadOnly","lockedRowCount"],function(){n.resetRenderedTable()}),n.registerPropertyChangedHandlers(["minRowCount"],function(){n.onMinRowCountChanged()}),n.registerPropertyChangedHandlers(["maxRowCount"],function(){n.onMaxRowCountChanged()}),n.dragOrClickHelper=new al(n.startDragMatrixRow),n}return t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.dragDropMatrixRows=new qp(this.survey,null,!0)},t.prototype.isBanStartDrag=function(e){var n=e.target;return n.getAttribute("contenteditable")==="true"||n.nodeName==="INPUT"||!this.isDragHandleAreaValid(n)},t.prototype.isDragHandleAreaValid=function(e){return this.survey.matrixDragHandleArea==="icon"?e.classList.contains(this.cssClasses.dragElementDecorator):!0},t.prototype.onPointerDown=function(e,n){!n||!this.isRowsDragAndDrop||this.isDesignMode||this.isBanStartDrag(e)||n.isDetailPanelShowing||(this.draggedRow=n,this.dragOrClickHelper.onPointerDown(e))},t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow")},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return i.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(e){if(this.minRowCount<1||this.isEmpty())return i.prototype.valueFromData.call(this,e);Array.isArray(e)||(e=[]);for(var n=e.length;n<this.minRowCount;n++)e.push({});return e},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultRowValue)||!this.isValueEmpty(this.defaultValue)){i.prototype.setDefaultValue.call(this);return}if(!(!this.isEmpty()||this.rowCount==0)){for(var e=[],n=0;n<this.rowCount;n++)e.push(this.defaultRowValue);this.value=e}},t.prototype.moveRowByIndex=function(e,n){var r=this.createNewValue();if(!(!Array.isArray(r)&&Math.max(e,n)>=r.length)){var o=r[e];r.splice(e,1),r.splice(n,0,o),this.value=r}},t.prototype.clearOnDrop=function(){this.isEditingSurveyElement||this.resetRenderedTable()},t.prototype.initDataUI=function(){this.generatedVisibleRows||this.getVisibleRows()},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(e=m.getNumber(e),!(e<0||e>z.matrix.maxRowCount)){this.setRowCountValueFromData=!1;var n=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var r=this.value;r.splice(e),this.value=r}if(this.isUpdateLocked){this.initialRowCount=e;return}if(this.generatedVisibleRows||n==0){this.generatedVisibleRows||(this.clearGeneratedRows(),this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var o=n;o<e;o++){var s=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(s),this.onMatrixRowCreated(s)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())}this.onRowsChanged()}},enumerable:!1,configurable:!0}),t.prototype.updateBindingProp=function(e,n){i.prototype.updateBindingProp.call(this,e,n);var r=this.generatedVisibleRows;if(!(e!=="rowCount"||!Array.isArray(r))){var o=this.getUnbindValue(this.value)||[];if(o.length<r.length){for(var s=!1,c=o.length;c<r.length;c++)s||(s=!r[c].isEmpty),o.push(r[c].value||{});s&&(this.value=o)}}},t.prototype.updateProgressInfoByValues=function(e){var n=this.value;Array.isArray(n)||(n=[]);for(var r=0;r<this.rowCount;r++){var o=r<n.length?n[r]:{};this.updateProgressInfoByRow(e,o)}},t.prototype.getValueForNewRow=function(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e},Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return this.getPropertyValue("allowRowsDragAndDrop")},set:function(e){this.setPropertyValue("allowRowsDragAndDrop",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDragAndDrop",{get:function(){return this.allowRowsDragAndDrop&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lockedRowCount",{get:function(){return this.getPropertyValue("lockedRowCount",0)},set:function(e){this.setPropertyValue("lockedRowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconDragElement",{get:function(){return this.cssClasses.iconDragElement},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new Bp(this)},Object.defineProperty(t.prototype,"rowCountValue",{get:function(){return this.getPropertyValue("rowCount")},set:function(e){this.setPropertyValue("rowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e)},enumerable:!1,configurable:!0}),t.prototype.onMinRowCountChanged=function(){var e=this.minRowCount;e>this.maxRowCount&&(this.maxRowCount=e),this.initialRowCount<e&&(this.initialRowCount=e),this.rowCount<e&&(this.rowCount=e)},Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){e<=0||(e>z.matrix.maxRowCount&&(e=z.matrix.maxRowCount),e!=this.maxRowCount&&this.setPropertyValue("maxRowCount",e))},enumerable:!1,configurable:!0}),t.prototype.onMaxRowCountChanged=function(){var e=this.maxRowCount;e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)},Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows")},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows")},set:function(e){this.setPropertyValue("allowRemoveRows",e),this.isUpdateLocked||this.resetRenderedTable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){var e=this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(e):e},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){if(!this.survey)return!0;var n=e.rowIndex-1;return this.lockedRowCount>0&&n<this.lockedRowCount?!1:this.survey.matrixAllowRemoveRow(this,n,e)},t.prototype.addRowUI=function(){this.addRow(!0)},t.prototype.getQuestionToFocusOnAddingRow=function(){if(this.visibleRows.length===0)return null;for(var e=this.visibleRows[this.visibleRows.length-1],n=0;n<e.cells.length;n++){var r=e.cells[n].question;if(r&&r.isVisible&&!r.isReadOnly)return r}return null},t.prototype.addRow=function(e){var n=this.rowCount,r=this.canAddRow,o={question:this,canAddRow:r,allow:r};this.survey&&this.survey.matrixBeforeRowAdded(o);var s=r!==o.allow?o.allow:r!==o.canAddRow?o.canAddRow:r;if(s&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel(),e&&n!==this.rowCount)){var c=this.getQuestionToFocusOnAddingRow();c&&c.focus()}},Object.defineProperty(t.prototype,"detailPanelShowOnAdding",{get:function(){return this.getPropertyValue("detailPanelShowOnAdding")},set:function(e){this.setPropertyValue("detailPanelShowOnAdding",e)},enumerable:!1,configurable:!0}),t.prototype.hasRowsAsItems=function(){return!1},t.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,i.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(e){return this.isEditingSurveyElement||i.prototype.isValueSurveyElement.call(this,e)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var n=this.getDefaultRowValue(!0),r=null;if(this.isValueEmpty(n)||(r=this.createNewValue(),r.length==this.rowCount&&(r[r.length-1]=n,this.value=r)),this.data){this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties());var o=this.visibleRows;if(this.isValueEmpty(n)&&o.length>0){var s=o[o.length-1];this.isValueEmpty(s.value)||(r||(r=this.createNewValue()),!this.isValueSurveyElement(r)&&!this.isTwoValueEquals(r[r.length-1],s.value)&&(r[r.length-1]=s.value,this.value=r))}}if(this.survey){var o=this.visibleRows;if(e+1==this.rowCount&&o.length>0){var s=o[o.length-1];this.survey.matrixRowAdded(this,s),this.onRowsChanged()}}},t.prototype.getDefaultRowValue=function(e){for(var n=null,r=0;r<this.columns.length;r++){var o=this.columns[r].templateQuestion;o&&!this.isValueEmpty(o.getDefaultValue())&&(n=n||{},n[this.columns[r].name]=o.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var s in this.defaultRowValue)n=n||{},n[s]=this.defaultRowValue[s];if(e&&this.defaultValueFromLastRow){var c=this.value;if(c&&Array.isArray(c)&&c.length>=this.rowCount-1){var y=c[this.rowCount-2];for(var s in y)n=n||{},n[s]=y[s]}}return n},t.prototype.focusAddBUtton=function(){var e=this.getRootElement();if(e&&this.cssClasses.buttonAdd){var n=e.querySelectorAll("."+this.cssClasses.buttonAdd)[0];n&&n.focus()}},t.prototype.getActionCellIndex=function(e){var n=this.showHeader?1:0;return this.isColumnLayoutHorizontal?e.cells.length-1+n:this.visibleRows.indexOf(e)+n},t.prototype.removeRowUI=function(e){var n=this;if(e&&e.rowName){var r=this.visibleRows.indexOf(e);if(r<0)return;e=r}this.removeRow(e,void 0,function(){var o=n.visibleRows.length,s=r>=o?o-1:r,c=s>-1?n.visibleRows[s]:void 0;setTimeout(function(){c?n.renderedTable.focusActionCell(c,n.getActionCellIndex(c)):n.focusAddBUtton()},10)})},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete||e<0||e>=this.rowCount)return!1;var n=this.createNewValue();return this.isValueEmpty(n)||!Array.isArray(n)||e>=n.length?!1:!this.isValueEmpty(n[e])},t.prototype.removeRow=function(e,n,r){var o=this;if(this.canRemoveRows&&!(e<0||e>=this.rowCount)){var s=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;if(n===void 0&&(n=this.isRequireConfirmOnRowDelete(e)),n){Jr({message:this.confirmDeleteText,funcOnYes:function(){o.removeRowAsync(e,s),r&&r()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.removeRowAsync(e,s),r&&r()}},t.prototype.removeRowAsync=function(e,n){n&&this.survey&&!this.survey.matrixRowRemoving(this,e,n)||(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(n))},t.prototype.removeRowCore=function(e){var n=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var r=[];Array.isArray(this.value)&&e<this.value.length?r=this.createValueCopy():r=this.createNewValue(),r.splice(e,1),r=this.deleteRowValue(r,null),this.isRowChanging=!0,this.value=r,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,n)},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){return this.getLocalizableStringText("addRowText",this.defaultAddRowText)},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultAddRowText",{get:function(){return this.getLocalizationString(this.isColumnLayoutHorizontal?"addRow":"addColumn")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return this.addRowLocation},Object.defineProperty(t.prototype,"hideColumnsIfEmpty",{get:function(){return this.getPropertyValue("hideColumnsIfEmpty")},set:function(e){this.setPropertyValue("hideColumnsIfEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getShowColumnsIfEmpty=function(){return this.hideColumnsIfEmpty},Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText")},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyRowsText",{get:function(){return this.getLocalizableStringText("emptyRowsText")},set:function(e){this.setLocalizableStringText("emptyRowsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEmptyRowsText",{get:function(){return this.getLocalizableString("emptyRowsText")},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,n){if(!n||!Array.isArray(n))return n;for(var r=this.getUnbindValue(n),o=this.visibleRows,s=0;s<o.length&&s<r.length;s++){var c=r[s];c&&(r[s]=this.getRowDisplayValue(e,o[s],c))}return r},t.prototype.getConditionObjectRowName=function(e){return"["+e.toString()+"]"},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],n=Math.max(this.rowCount,1),r=0;r<Math.min(z.matrix.maxRowCountInCondition,n);r++)e.push(r);return e},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(e,n,r){i.prototype.onCheckForErrors.call(this,e,n,r),!n&&this.hasErrorInMinRows()&&e.push(new ka(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,n=0;n<this.generatedVisibleRows.length;n++){var r=this.generatedVisibleRows[n];r.isEmpty||e++}return e<this.minRowCount},t.prototype.getUniqueColumnsNames=function(){var e=i.prototype.getUniqueColumnsNames.call(this),n=this.keyName;return n&&e.indexOf(n)<0&&e.push(n),e},t.prototype.generateRows=function(){var e=new Array;if(this.rowCount===0)return e;for(var n=this.createNewValue(),r=0;r<this.rowCount;r++)e.push(this.createMatrixRow(this.getRowValueByIndex(n,r)));return this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=n),e},t.prototype.createMatrixRow=function(e){return new Di(this.rowCounter++,this,e)},t.prototype.getInsertedDeletedIndex=function(e,n){for(var r=Math.min(e.length,n.length),o=0;o<r;o++)if(n[o]!==e[o].editingObj)return o;return r},t.prototype.isEditingObjectValueChanged=function(){var e=this.value;if(!this.generatedVisibleRows||!this.isValueSurveyElement(e))return!1;var n=this.lastDeletedRow;this.lastDeletedRow=void 0;var r=this.generatedVisibleRows;if(!Array.isArray(e)||Math.abs(r.length-e.length)>1||r.length===e.length)return!1;var o=this.getInsertedDeletedIndex(r,e);if(r.length>e.length){this.lastDeletedRow=r[o];var s=r[o];r.splice(o,1),this.isRendredTableCreated&&this.renderedTable.onRemovedRow(s)}else{var c=void 0;n&&n.editingObj===e[o]?c=n:(n=void 0,c=this.createMatrixRow(e[o])),r.splice(o,0,c),n||this.onMatrixRowCreated(c),this.isRendredTableCreated&&this.renderedTable.onAddedRow(c,o)}return this.setPropertyValueDirectly("rowCount",e.length),!0},t.prototype.updateValueFromSurvey=function(e,n){if(n===void 0&&(n=!1),this.setRowCountValueFromData=!0,this.minRowCount>0&&m.isValueEmpty(e)&&!m.isValueEmpty(this.defaultRowValue)){e=[];for(var r=0;r<this.minRowCount;r++)e.push(m.createCopy(this.defaultRowValue))}i.prototype.updateValueFromSurvey.call(this,e,n),this.setRowCountValueFromData=!1},t.prototype.getFilteredDataCore=function(){var e=[],n=this.createValueCopy();if(!Array.isArray(n))return e;for(var r=this.generatedVisibleRows,o=0;o<r.length&&o<n.length;o++){var s=n[o];r[o].isVisible&&!m.isValueEmpty(s)&&e.push(s)}return e},t.prototype.onBeforeValueChanged=function(e){if(!(!e||!Array.isArray(e))){var n=e.length;if(n!=this.rowCount&&!(!this.setRowCountValueFromData&&n<this.initialRowCount)&&!this.isEditingObjectValueChanged()&&(this.setRowCountValueFromData=!0,this.rowCountValue=n,!!this.generatedVisibleRows)){if(n==this.generatedVisibleRows.length+1){this.onStartRowAddingRemoving();var r=this.getRowValueByIndex(e,n-1),o=this.createMatrixRow(r);this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o),this.onEndRowAdding()}else this.clearGeneratedRows(),this.getVisibleRows(),this.onRowsChanged();this.setRowCountValueFromData=!1}}},t.prototype.createNewValue=function(){var e=this.createValueCopy();(!e||!Array.isArray(e))&&(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var n=this.getDefaultRowValue(!1);n=n||{};for(var r=e.length;r<this.rowCount;r++)e.push(this.getUnbindValue(n));return e},t.prototype.deleteRowValue=function(e,n){if(!Array.isArray(e))return e;for(var r=!0,o=0;o<e.length;o++)if(this.isObject(e[o])&&Object.keys(e[o]).length>0){r=!1;break}return r?null:e},t.prototype.getRowValueByIndex=function(e,n){return Array.isArray(e)&&n>=0&&n<e.length?e[n]:null},t.prototype.getRowValueCore=function(e,n,r){if(r===void 0&&(r=!1),!this.generatedVisibleRows)return{};var o=this.getRowValueByIndex(n,this.generatedVisibleRows.indexOf(e));return!o&&r&&(o={}),o},t.prototype.getAddRowButtonCss=function(e){return e===void 0&&(e=!1),new te().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return new te().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var e;return new te().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(!((e=this.renderedTable)===null||e===void 0)&&e.showTable)).toString()},t}(_r),Bp=function(i){ul(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.setDefaultRowActions=function(e,n){i.prototype.setDefaultRowActions.call(this,e,n)},t}(rl);G.addClass("matrixdynamic",[{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0,isBindable:!0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:z.matrix.maxRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(i){return!i||i.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"},"hideColumnsIfEmpty:boolean",{name:"emptyRowsText:text",serializationProperty:"locEmptyRowsText",dependsOn:"hideColumnsIfEmpty",visibleIf:function(i){return!i||i.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(i){return i.detailPanelMode!=="none"}},"allowRowsDragAndDrop:switch"],function(){return new ll("")},"matrixdropdownbase"),bt.Instance.registerQuestion("matrixdynamic",function(i){var t=new ll(i);return t.choices=[1,2,3,4,5],_r.addDefaultColumns(t),t});var tn={currentType:"",getCss:function(){var i=this.currentType?this[this.currentType]:Ka;return i||(i=Ka),i},getAvailableThemes:function(){return Object.keys(this).filter(function(i){return["currentType","getCss","getAvailableThemes"].indexOf(i)===-1})}},Ka={root:"sd-root-modern",rootProgress:"sd-progress",rootMobile:"sd-root-modern--mobile",rootAnimationDisabled:"sd-root-modern--animation-disabled",rootReadOnly:"sd-root--readonly",rootCompact:"sd-root--compact",rootFitToContainer:"sd-root-modern--full-container",rootWrapper:"sd-root-modern__wrapper",rootWrapperFixed:"sd-root-modern__wrapper--fixed",rootWrapperHasImage:"sd-root-modern__wrapper--has-image",rootBackgroundImage:"sd-root_background-image",container:"sd-container-modern",header:"sd-title sd-container-modern__title",bodyContainer:"sv-components-row",body:"sd-body",bodyWithTimer:"sd-body--with-timer",clockTimerRoot:"sd-timer",clockTimerRootTop:"sd-timer--top",clockTimerRootBottom:"sd-timer--bottom",clockTimerProgress:"sd-timer__progress",clockTimerProgressAnimation:"sd-timer__progress--animation",clockTimerTextContainer:"sd-timer__text-container",clockTimerMinorText:"sd-timer__text--minor",clockTimerMajorText:"sd-timer__text--major",bodyEmpty:"sd-body sd-body--empty",bodyLoading:"sd-body--loading",footer:"sd-footer sd-body__navigation sd-clearfix",title:"sd-title",description:"sd-description",logo:"sd-logo",logoImage:"sd-logo__image",headerText:"sd-header__text",headerClose:"sd-hidden",navigationButton:"",bodyNavigationButton:"sd-btn",completedPage:"sd-completedpage",completedBeforePage:"sd-completed-before-page",timerRoot:"sd-body__timer",navigation:{complete:"sd-btn--action sd-navigation__complete-btn",prev:"sd-navigation__prev-btn",next:"sd-navigation__next-btn",start:"sd-navigation__start-btn",preview:"sd-navigation__preview-btn",edit:"sd-btn sd-btn--small"},panel:{contentEnter:"sd-element__content--enter",contentLeave:"sd-element__content--leave",enter:"sd-element-wrapper--enter",leave:"sd-element-wrapper--leave",asPage:"sd-panel--as-page",number:"sd-element__num",title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleNumInline:"sd-element__title--num-inline",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",titleBar:"sd-action-title-bar",description:"sd-description sd-panel__description",container:"sd-element sd-element--complex sd-panel sd-row__panel",withFrame:"sd-element--with-frame",content:"sd-element__content sd-panel__content",icon:"sd-panel__icon",iconExpanded:"sd-panel__icon--expanded",footer:"sd-panel__footer",requiredText:"sd-panel__required-text",header:"sd-panel__header sd-element__header sd-element__header--location-top",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",expandable:"sd-element--expandable",expandableAnimating:"sd-elemenet--expandable--animating",nested:"sd-element--nested sd-element--nested-with-borders",invisible:"sd-element--invisible",navigationButton:"",compact:"sd-element--with-frame sd-element--compact",errorsContainer:"sd-panel__errbox sd-element__erbox sd-element__erbox--above-element"},paneldynamic:{mainRoot:"sd-element  sd-question sd-question--paneldynamic sd-element--complex sd-question--complex sd-row__question",empty:"sd-question--empty",root:"sd-paneldynamic",iconRemove:"sd-hidden",navigation:"sd-paneldynamic__navigation",title:"sd-title sd-element__title sd-question__title",header:"sd-paneldynamic__header sd-element__header",headerTab:"sd-paneldynamic__header-tab",button:"sd-action sd-paneldynamic__btn",buttonRemove:"sd-action--negative sd-paneldynamic__remove-btn",buttonAdd:"sd-paneldynamic__add-btn",buttonPrev:"sd-paneldynamic__prev-btn sd-action--icon sd-action",buttonPrevDisabled:"sd-action--disabled",buttonNextDisabled:"sd-action--disabled",buttonNext:"sd-paneldynamic__next-btn sd-action--icon sd-action",progressContainer:"sd-paneldynamic__progress-container",progress:"sd-progress",progressBar:"sd-progress__bar",nested:"sd-element--nested sd-element--nested-with-borders",progressText:"sd-paneldynamic__progress-text",separator:"sd-paneldynamic__separator",panelWrapper:"sd-paneldynamic__panel-wrapper",footer:"sd-paneldynamic__footer",panelFooter:"sd-paneldynamic__panel-footer",footerButtonsContainer:"sd-paneldynamic__buttons-container",panelsContainer:"sd-paneldynamic__panels-container",panelWrapperInRow:"sd-paneldynamic__panel-wrapper--in-row",panelWrapperEnter:"sd-paneldynamic__panel-wrapper--enter",panelWrapperLeave:"sd-paneldynamic__panel-wrapper--leave",panelWrapperList:"sd-paneldynamic__panel-wrapper--list",progressBtnIcon:"icon-progressbuttonv2",noEntriesPlaceholder:"sd-paneldynamic__placeholder sd-question__placeholder",compact:"sd-element--with-frame sd-element--compact",tabsRoot:"sd-tabs-toolbar",tabsLeft:"sd-tabs-toolbar--left",tabsRight:"sd-tabs-toolbar--right",tabsCenter:"sd-tabs-toolbar--center",tabs:{item:"sd-tab-item",itemPressed:"sd-tab-item--pressed",itemAsIcon:"sd-tab-item--icon",itemIcon:"sd-tab-item__icon",itemTitle:"sd-tab-item__title"}},progress:"sd-progress sd-body__progress",progressTop:"sd-body__progress--top",progressBottom:"sd-body__progress--bottom",progressBar:"sd-progress__bar",progressText:"sd-progress__text",progressButtonsRoot:"sd-progress-buttons",progressButtonsNumbered:"sd-progress-buttons--numbered",progressButtonsFitSurveyWidth:"sd-progress-buttons--fit-survey-width",progressButtonsContainerCenter:"sd-progress-buttons__container-center",progressButtonsContainer:"sd-progress-buttons__container",progressButtonsConnector:"sd-progress-buttons__connector",progressButtonsButton:"sd-progress-buttons__button",progressButtonsButtonBackground:"sd-progress-buttons__button-background",progressButtonsButtonContent:"sd-progress-buttons__button-content",progressButtonsHeader:"sd-progress-buttons__header",progressButtonsFooter:"sd-progress-buttons__footer",progressButtonsImageButtonLeft:"sd-progress-buttons__image-button-left",progressButtonsImageButtonRight:"sd-progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sd-progress-buttons__image-button--hidden",progressButtonsListContainer:"sd-progress-buttons__list-container",progressButtonsList:"sd-progress-buttons__list",progressButtonsListElementPassed:"sd-progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sd-progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sd-progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sd-progress-buttons__page-title",progressButtonsPageDescription:"sd-progress-buttons__page-description",progressTextInBar:"sd-hidden",page:{root:"sd-page sd-body__page",emptyHeaderRoot:"sd-page__empty-header",title:"sd-title sd-page__title",description:"sd-description sd-page__description",number:"sd-page__num",errorsContainer:"sd-page__errbox"},pageTitle:"sd-title sd-page__title",pageDescription:"sd-description sd-page__description",row:"sd-row sd-clearfix",rowMultiple:"sd-row--multiple",rowCompact:"sd-row--compact",rowEnter:"sd-row--enter",rowDelayedEnter:"sd-row--delayed-enter",rowLeave:"sd-row--leave",rowReplace:"sd-row--replace",pageRow:"sd-page__row",question:{contentEnter:"sd-element__content--enter",contentLeave:"sd-element__content--leave",enter:"sd-element-wrapper--enter",leave:"sd-element-wrapper--leave",mobile:"sd-question--mobile",mainRoot:"sd-element sd-question sd-row__question",flowRoot:"sd-element sd-question sd-row__question sd-row__question--flow",withFrame:"sd-element--with-frame",asCell:"sd-table__cell",answered:"sd-question--answered",header:"sd-question__header sd-element__header",headerLeft:"sd-question__header--location--left",headerTop:"sd-question__header--location-top sd-element__header--location-top",headerBottom:"sd-question__header--location--bottom",content:"sd-element__content sd-question__content",contentSupportContainerQueries:"sd-question__content--support-container-queries",contentLeft:"sd-question__content--left",titleNumInline:"sd-element__title--num-inline",titleLeftRoot:"sd-question--left",titleTopRoot:"sd-question--title-top",descriptionUnderInputRoot:"sd-question--description-under-input",titleBottomRoot:"sd-question--title-bottom",titleOnAnswer:"sd-question__title--answer",titleEmpty:"sd-question__title--empty",titleOnError:"sd-question__title--error",title:"sd-title sd-element__title sd-question__title",titleExpandable:"sd-element__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleReadOnly:"sd-element__title--readonly",titleBar:"sd-action-title-bar",requiredText:"sd-question__required-text",number:"sd-element__num",description:"sd-description sd-question__description",descriptionUnderInput:"sd-question__description--under-input",comment:"sd-input sd-comment",other:"sd-input sd-comment",required:"sd-question--required",titleRequired:"sd-question__title--required",indent:20,footer:"sd-question__footer",commentArea:"sd-question__comment-area",formGroup:"sd-question__form-group",hasError:"sd-question--error",hasErrorTop:"sd-question--error-top",hasErrorBottom:"sd-question--error-bottom",collapsed:"sd-element--collapsed",expandable:"sd-element--expandable",expandableAnimating:"sd-elemenet--expandable--animating",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",composite:"sd-element--complex sd-composite",disabled:"sd-question--disabled",readOnly:"sd-question--readonly",preview:"sd-question--preview",noPointerEventsMode:"sd-question--no-pointer-events",errorsContainer:"sd-element__erbox sd-question__erbox",errorsContainerTop:"sd-element__erbox--above-element sd-question__erbox--above-question",errorsContainerBottom:"sd-question__erbox--below-question",confirmDialog:"sd-popup--confirm sv-popup--confirm"},image:{mainRoot:"sd-question sd-question--image",root:"sd-image",image:"sd-image__image",adaptive:"sd-image__image--adaptive",noImage:"sd-image__no-image",noImageSvgIconId:"icon-no-image",withFrame:""},html:{mainRoot:"sd-question sd-row__question sd-question--html",root:"sd-html",withFrame:"",nested:"sd-element--nested sd-html--nested"},error:{root:"sd-error",icon:"",item:"",locationTop:"",locationBottom:""},checkbox:{root:"sd-selectbase",rootMobile:"sd-selectbase--mobile",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-checkbox sd-selectbase__item",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",itemOnError:"sd-item--error",itemSelectAll:"sd-checkbox--selectall",itemNone:"sd-checkbox--none",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemReadOnly:"sd-item--readonly sd-checkbox--readonly",itemPreview:"sd-item--preview sd-checkbox--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemSvgIconId:"#icon-check-16x16",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-checkbox__decorator",other:"sd-input sd-comment sd-selectbase__other",column:"sd-selectbase__column"},radiogroup:{root:"sd-selectbase",rootMobile:"sd-selectbase--mobile",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-radio sd-selectbase__item",itemOnError:"sd-item--error",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-radio__decorator",other:"sd-input sd-comment sd-selectbase__other",clearButton:"",column:"sd-selectbase__column"},boolean:{mainRoot:"sd-element sd-question sd-row__question sd-question--boolean",root:"sv_qcbc sv_qbln sd-scrollable-container sd-boolean-root",rootRadio:"sv_qcbc sv_qbln sd-scrollable-container sd-scrollable-container--compact",item:"sd-boolean",itemOnError:"sd-boolean--error",control:"sd-boolean__control sd-visuallyhidden",itemChecked:"sd-boolean--checked",itemExchanged:"sd-boolean--exchanged",itemIndeterminate:"sd-boolean--indeterminate",itemDisabled:"sd-boolean--disabled",itemReadOnly:"sd-boolean--readonly",itemPreview:"sd-boolean--preview",itemHover:"sd-boolean--allowhover",label:"sd-boolean__label",labelTrue:"sd-boolean__label--true",labelFalse:"sd-boolean__label--false",switch:"sd-boolean__switch",disabledLabel:"sd-checkbox__label--disabled",labelReadOnly:"sd-checkbox__label--readonly",labelPreview:"sd-checkbox__label--preview",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb",sliderGhost:"sd-boolean__thumb-ghost",radioItem:"sd-item",radioItemChecked:"sd-item--checked sd-radio--checked",radioItemDisabled:"sd-item--disabled sd-radio--disabled",radioItemReadOnly:"sd-item--readonly sd-radio--readonly",radioItemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",radioLabel:"sd-selectbase__label",radioControlLabel:"sd-item__control-label",radioFieldset:"sd-selectbase",itemRadioDecorator:"sd-item__svg sd-radio__svg",materialRadioDecorator:"sd-item__decorator sd-radio__decorator",itemRadioControl:"sd-visuallyhidden sd-item__control sd-radio__control",rootCheckbox:"sd-selectbase",checkboxItem:"sd-item sd-selectbase__item sd-checkbox",checkboxLabel:"sd-selectbase__label",checkboxItemOnError:"sd-item--error",checkboxItemIndeterminate:"sd-checkbox--intermediate",checkboxItemChecked:"sd-item--checked sd-checkbox--checked",checkboxItemDecorator:"sd-item__svg sd-checkbox__svg",checkboxItemDisabled:"sd-item--disabled sd-checkbox--disabled",checkboxItemReadOnly:"sd-item--readonly sd-checkbox--readonly",checkboxItemPreview:"sd-item--preview sd-checkbox--preview",controlCheckbox:"sd-visuallyhidden sd-item__control sd-checkbox__control",checkboxMaterialDecorator:"sd-item__decorator sd-checkbox__decorator",checkboxControlLabel:"sd-item__control-label",svgIconCheckedId:"#icon-check-16x16"},text:{root:"sd-input sd-text",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",constrolWithCharacterCounter:"sd-text__character-counter",characterCounterBig:"sd-text__character-counter--big",content:"sd-text__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},multipletext:{root:"sd-multipletext",rootMobile:"sd-multipletext--mobile",itemLabel:"sd-multipletext__item-container sd-input",itemLabelReadOnly:"sd-input--readonly",itemLabelDisabled:"sd-input--disabled",itemLabelPreview:"sd-input--preview",itemLabelOnError:"sd-multipletext__item-container--error",itemLabelAllowFocus:"sd-multipletext__item-container--allow-focus",itemLabelAnswered:"sd-multipletext__item-container--answered",itemWithCharacterCounter:"sd-multipletext-item__character-counter",item:"sd-multipletext__item",itemTitle:"sd-multipletext__item-title",content:"sd-multipletext__content sd-question__content",row:"sd-multipletext__row",cell:"sd-multipletext__cell",cellError:"sd-multipletext__cell--error",cellErrorTop:"sd-multipletext__cell--error-top",cellErrorBottom:"sd-multipletext__cell--error-bottom"},dropdown:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-dropdown_clean-button",cleanButtonSvg:"sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-cancel",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-dropdown",controlInputFieldComponent:"sd-dropdown__input-field-component",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-radio__decorator",hintPrefix:"sd-dropdown__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix"},imagepicker:{mainRoot:"sd-element sd-question sd-row__question",root:"sd-selectbase sd-imagepicker",rootColumn:"sd-imagepicker--column",item:"sd-imagepicker__item",itemOnError:"sd-imagepicker__item--error",itemInline:"sd-imagepicker__item--inline",itemChecked:"sd-imagepicker__item--checked",itemDisabled:"sd-imagepicker__item--disabled",itemReadOnly:"sd-imagepicker__item--readonly",itemPreview:"sd-imagepicker__item--preview",itemHover:"sd-imagepicker__item--allowhover",label:"sd-imagepicker__label",itemDecorator:"sd-imagepicker__item-decorator",imageContainer:"sd-imagepicker__image-container",itemControl:"sd-imagepicker__control sd-visuallyhidden",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",other:"sd-input sd-comment",itemNoImage:"sd-imagepicker__no-image",itemNoImageSvgIcon:"sd-imagepicker__no-image-svg",itemNoImageSvgIconId:"icon-no-image",column:"sd-selectbase__column sd-imagepicker__column",checkedItemDecorator:"sd-imagepicker__check-decorator",checkedItemSvgIcon:"sd-imagepicker__check-icon",checkedItemSvgIconId:"icon-check-24x24"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix sd-table-wrapper",root:"sd-table sd-matrix__table",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",rootAlternateRows:"sd-table--alternate-rows",rowError:"sd-matrix__row--error",cell:"sd-table__cell sd-matrix__cell",row:"sd-table__row",rowDisabled:"sd-table__row-disabled",rowReadOnly:"sd-table__row-readonly",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-matrix__cell sd-table__cell--row-text",label:"sd-item sd-radio sd-matrix__label",itemOnError:"sd-item--error",itemValue:"sd-visuallyhidden sd-item__control sd-radio__control",itemChecked:"sd-item--checked sd-radio--checked",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemHover:"sd-radio--allowhover",materialDecorator:"sd-item__decorator sd-radio__decorator",itemDecorator:"sd-item__svg sd-radio__svg",cellText:"sd-matrix__text",cellTextSelected:"sd-matrix__text--checked",cellTextDisabled:"sd-matrix__text--disabled",cellResponsiveTitle:"sd-matrix__responsive-title",compact:"sd-element--with-frame sd-element--compact"},matrixdropdown:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",root:"sd-table sd-matrixdropdown",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",hasFooter:"sd-table--has-footer",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",cell:"sd-table__cell",cellResponsiveTitle:"sd-table__responsive-title",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",itemCell:"sd-table__cell--item",row:"sd-table__row",rowDelayedEnter:"sd-table__row--delayed-enter",rowEnter:"sd-table__row--enter",rowLeave:"sd-table__row--leave",expandedRow:"sd-table__row--expanded",rowHasPanel:"sd-table__row--has-panel",rowHasEndActions:"sd-table__row--has-end-actions",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",footerCell:"sd-table__cell sd-table__cell--footer",footerTotalCell:"sd-table__cell sd-table__cell--footer-total",columnTitleCell:"sd-table__cell--column-title",cellRequiredText:"sd-question__required-text",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",detailRowCell:"sd-table__cell--detail",actionsCellPrefix:"sd-table__cell-action",actionsCell:"sd-table__cell sd-table__cell--actions",actionsCellDrag:"sd-table__cell--drag",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-matrix__question-wrapper sd-table__question-wrapper",compact:"sd-element--with-frame sd-element--compact"},matrixdynamic:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",hasFooter:"sd-table--has-footer",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",content:"sd-matrixdynamic__content sd-question__content",cell:"sd-table__cell",cellResponsiveTitle:"sd-table__responsive-title",row:"sd-table__row",rowDelayedEnter:"sd-table__row--delayed-enter",rowEnter:"sd-table__row--enter",rowLeave:"sd-table__row--leave",rowHasPanel:"sd-table__row--has-panel",rowHasEndActions:"sd-table__row--has-end-actions",expandedRow:"sd-table__row--expanded",itemCell:"sd-table__cell--item",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",footerCell:"sd-table__cell sd-table__cell--footer",columnTitleCell:"sd-table__cell--column-title",cellRequiredText:"sd-question__required-text",button:"sd-action sd-matrixdynamic__btn",detailRow:"sd-table__row sd-table__row--detail",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",detailRowCell:"sd-table__cell--detail",actionsCellPrefix:"sd-table__cell-action",actionsCell:"sd-table__cell sd-table__cell--actions",actionsCellDrag:"sd-table__cell--drag",buttonAdd:"sd-matrixdynamic__add-btn",buttonRemove:"sd-action--negative sd-matrixdynamic__remove-btn",iconAdd:"sd-hidden",iconRemove:"",dragElementDecorator:"sd-drag-element__svg",iconDragElement:"#icon-drag-24x24",footer:"sd-matrixdynamic__footer",footerTotalCell:"sd-table__cell sd-table__cell--footer-total",emptyRowsSection:"sd-matrixdynamic__placeholder sd-question__placeholder",iconDrag:"sv-matrixdynamic__drag-icon",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-matrix__question-wrapper sd-table__question-wrapper",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",compact:"sd-element--with-frame sd-element--compact"},rating:{rootDropdown:"sd-scrollable-container sd-scrollable-container--compact sd-selectbase",root:"sd-scrollable-container sd-rating",rootWrappable:"sd-rating--wrappable",rootLabelsTop:"sd-rating--labels-top",rootLabelsBottom:"sd-rating--labels-bottom",rootLabelsDiagonal:"sd-rating--labels-diagonal",item:"sd-rating__item",itemOnError:"sd-rating__item--error",itemHover:"sd-rating__item--allowhover",selected:"sd-rating__item--selected",itemStar:"sd-rating__item-star",itemStarOnError:"sd-rating__item-star--error",itemStarHover:"sd-rating__item-star--allowhover",itemStarSelected:"sd-rating__item-star--selected",itemStarDisabled:"sd-rating__item-star--disabled",itemStarReadOnly:"sd-rating__item-star--readonly",itemStarPreview:"sd-rating__item-star--preview",itemStarHighlighted:"sd-rating__item-star--highlighted",itemStarUnhighlighted:"sd-rating__item-star--unhighlighted",itemStarSmall:"sd-rating__item-star--small",itemSmiley:"sd-rating__item-smiley",itemSmileyOnError:"sd-rating__item-smiley--error",itemSmileyHover:"sd-rating__item-smiley--allowhover",itemSmileySelected:"sd-rating__item-smiley--selected",itemSmileyDisabled:"sd-rating__item-smiley--disabled",itemSmileyReadOnly:"sd-rating__item-smiley--readonly",itemSmileyPreview:"sd-rating__item-smiley--preview",itemSmileyHighlighted:"sd-rating__item-star--highlighted",itemSmileyScaleColored:"sd-rating__item-smiley--scale-colored",itemSmileyRateColored:"sd-rating__item-smiley--rate-colored",itemSmileySmall:"sd-rating__item-smiley--small",minText:"sd-rating__item-text sd-rating__min-text",itemText:"sd-rating__item-text",maxText:"sd-rating__item-text sd-rating__max-text",itemDisabled:"sd-rating__item--disabled",itemReadOnly:"sd-rating__item--readonly",itemPreview:"sd-rating__item--preview",itemFixedSize:"sd-rating__item--fixed-size",control:"sd-input sd-dropdown",itemSmall:"sd-rating--small",selectWrapper:"sv-dropdown_select-wrapper",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty",filterStringInput:"sd-dropdown__filter-string-input",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",popup:"sv-dropdown-popup",onError:"sd-input--error"},comment:{root:"sd-input sd-comment",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",content:"sd-comment__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},expression:"sd-expression",file:{root:"sd-file",rootDragging:"sd-file--dragging",rootAnswered:"sd-file--answered",rootDisabled:"sd-file--disabled",rootReadOnly:"sd-file--readonly",rootPreview:"sd-file--preview",other:"sd-input sd-comment",placeholderInput:"sd-visuallyhidden",previewItem:"sd-file__preview-item",fileSign:"",fileList:"sd-file__list",fileSignBottom:"sd-file__sign",dragArea:"sd-file__drag-area",dragAreaActive:"sd-file__drag-area--active",fileDecorator:"sd-file__decorator",onError:"sd-file__decorator--error",fileDecoratorDrag:"sd-file__decorator--drag",fileInput:"sd-visuallyhidden",noFileChosen:"sd-description sd-file__no-file-chosen",chooseFile:"sd-file__choose-btn",chooseFileAsText:"sd-action sd-file__choose-btn--text",chooseFileAsTextDisabled:"sd-action--disabled",chooseFileAsIcon:"sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",controlDisabled:"sd-file__choose-file-btn--disabled",removeButton:"sd-context-btn--negative",removeButtonBottom:"",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-close_16x16",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",defaultImageIconId:"icon-defaultfile",leftIconId:"icon-arrowleft",rightIconId:"icon-arrowright",removeFileButton:"sd-context-btn--small sd-context-btn--with-border sd-context-btn--colorful sd-context-btn--negative sd-file__remove-file-button",dragAreaPlaceholder:"sd-file__drag-area-placeholder",imageWrapper:"sd-file__image-wrapper",imageWrapperDefaultImage:"sd-file__image-wrapper--default-image",single:"sd-file--single",singleImage:"sd-file--single-image",mobile:"sd-file--mobile",videoContainer:"sd-file__video-container",contextButton:"sd-context-btn",video:"sd-file__video",actionsContainer:"sd-file__actions-container",closeCameraButton:"sd-file__close-camera-button",changeCameraButton:"sd-file__change-camera-button",takePictureButton:"sd-file__take-picture-button",loadingIndicator:"sd-file__loading-indicator",page:"sd-file__page"},signaturepad:{mainRoot:"sd-element sd-question sd-question--signature sd-row__question",root:"sd-signaturepad sjs_sp_container",small:"sd-row__question--small",controls:"sjs_sp_controls sd-signaturepad__controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas sd-signaturepad__canvas",backgroundImage:"sjs_sp__background-image sd-signaturepad__background-image",clearButton:"sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear",clearButtonIconId:"icon-clear",loadingIndicator:"sd-signaturepad__loading-indicator"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sd-ranking--disabled",rootReadOnly:"sd-ranking--readonly",rootPreview:"sd-ranking--preview",rootDesignMode:"sv-ranking--design-mode",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankEmptyValueMod:"sv-ranking--select-to-rank-empty-value",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content sd-ranking-item__content",itemIndex:"sv-ranking-item__index sd-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty sd-ranking-item__index--empty",itemDisabled:"sv-ranking-item--disabled",itemReadOnly:"sv-ranking-item--readonly",itemPreview:"sv-ranking-item--preview",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking--drag",itemOnError:"sv-ranking-item--error",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},list:{root:"sv-list__container sd-list",item:"sv-list__item sd-list__item",itemBody:"sv-list__item-body sd-list__item-body",itemSelected:"sv-list__item--selected sd-list__item--selected",itemFocused:"sv-list__item--focused sd-list__item--focused",itemHovered:"sv-list__item--hovered sd-list__item--hovered"},actionBar:{root:"sd-action-bar",item:"sd-action",defaultSizeMode:"",smallSizeMode:"",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon",itemTitle:"sd-action__title"},variables:{mobileWidth:"--sd-mobile-width",themeMark:"--sv-defaultV2-mark"},tagbox:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",itemSvgIconId:"#icon-check-16x16",item:"sd-item sd-checkbox sd-selectbase__item",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-cancel-24x24",cleanItemButton:"sd-tagbox-item_clean-button",cleanItemButtonSvg:"sd-tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-tagbox sd-dropdown",controlValue:"sd-tagbox__value sd-dropdown__value",controlValueItems:"sd-tagbox__value-items",placeholderInput:"sd-tagbox__placeholder",controlEditable:"sd-input--editable",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty sd-tagbox--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-tagbox__filter-string-input sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-checkbox__decorator",hint:"sd-tagbox__hint",hintPrefix:"sd-dropdown__hint-prefix sd-tagbox__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix sd-tagbox__hint-suffix",hintSuffixWrapper:"sd-tagbox__hint-suffix-wrapper"}},Dc="defaultV2";tn[Dc]=Ka;var ni="surveyjs.io",Fp=65536,Lc=function(){function i(){}return Object.defineProperty(i,"serviceUrl",{get:function(){return z.web.surveyServiceUrl},set:function(t){z.web.surveyServiceUrl=t},enumerable:!1,configurable:!0}),i.prototype.loadSurvey=function(t,e){var n=new XMLHttpRequest;n.open("GET",this.serviceUrl+"/getSurvey?surveyId="+t),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var r=JSON.parse(n.response);e(n.status==200,r,n.response)},n.send()},i.prototype.getSurveyJsonAndIsCompleted=function(t,e,n){var r=new XMLHttpRequest;r.open("GET",this.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+e),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var o=JSON.parse(r.response),s=o?o.survey:null,c=o?o.isCompleted:null;n(r.status==200,s,c,r.response)},r.send()},i.prototype.canSendResult=function(t){if(!this.isSurveJSIOService)return!0;var e=JSON.stringify(t);return e.length<Fp},Object.defineProperty(i.prototype,"isSurveJSIOService",{get:function(){return this.serviceUrl.indexOf(ni)>=0},enumerable:!1,configurable:!0}),i.prototype.sendResult=function(t,e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=!1),this.canSendResult(e)?this.sendResultCore(t,e,n,r,o):n(!1,ee("savingExceedSize",this.locale),void 0)},i.prototype.sendResultCore=function(t,e,n,r,o){r===void 0&&(r=null),o===void 0&&(o=!1);var s=new XMLHttpRequest;s.open("POST",this.serviceUrl+"/post/"),s.setRequestHeader("Content-Type","application/json; charset=utf-8");var c={postId:t,surveyResult:JSON.stringify(e)};r&&(c.clientId=r),o&&(c.isPartialCompleted=!0);var y=JSON.stringify(c);s.onload=s.onerror=function(){n&&n(s.status===200,s.response,s)},s.send(y)},i.prototype.sendFile=function(t,e,n){var r=new XMLHttpRequest;r.onload=r.onerror=function(){n&&n(r.status==200,JSON.parse(r.response))},r.open("POST",this.serviceUrl+"/upload/",!0);var o=new FormData;o.append("file",e),o.append("postId",t),r.send(o)},i.prototype.getResult=function(t,e,n){var r=new XMLHttpRequest,o="resultId="+t+"&name="+e;r.open("GET",this.serviceUrl+"/getResult?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var s=null,c=null;if(r.status==200){s=JSON.parse(r.response),c=[];for(var y in s.QuestionResult){var w={name:y,value:s.QuestionResult[y]};c.push(w)}}n(r.status==200,s,c,r.response)},r.send()},i.prototype.isCompleted=function(t,e,n){var r=new XMLHttpRequest,o="resultId="+t+"&clientId="+e;r.open("GET",this.serviceUrl+"/isCompleted?"+o),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var s=null;r.status==200&&(s=JSON.parse(r.response)),n(r.status==200,s,r.response)},r.send()},Object.defineProperty(i.prototype,"serviceUrl",{get:function(){return i.serviceUrl||""},enumerable:!1,configurable:!0}),i}(),Li={setTimeout:function(i){return Li.safeTimeOut(i,1e3)},clearTimeout:function(i){clearTimeout(i)},safeTimeOut:function(i,t){return t<=0?(i(),0):setTimeout(i,t)},now:function(){return Date.now()}},cl=function(){function i(){this.listenerCounter=0,this.timerId=-1,this.onTimerTick=new Tn,this.onTimer=this.onTimerTick}return Object.defineProperty(i,"instance",{get:function(){return i.instanceValue||(i.instanceValue=new i),i.instanceValue},enumerable:!1,configurable:!0}),i.prototype.start=function(t){var e=this;t===void 0&&(t=null),t&&this.onTimerTick.add(t),this.prevTimeInMs=Li.now(),this.timerId<0&&(this.timerId=Li.setTimeout(function(){e.doTimer()})),this.listenerCounter++},i.prototype.stop=function(t){t===void 0&&(t=null),t&&this.onTimerTick.remove(t),this.listenerCounter--,this.listenerCounter==0&&this.timerId>-1&&(Li.clearTimeout(this.timerId),this.timerId=-1)},i.prototype.doTimer=function(){var t=this;if((this.onTimerTick.isEmpty||this.listenerCounter==0)&&(this.timerId=-1),!(this.timerId<0)){var e=Li.now(),n=Math.floor((e-this.prevTimeInMs)/1e3);this.prevTimeInMs=e,n<0&&(n=1);var r=this.timerId;this.onTimerTick.fire(this,{seconds:n}),r===this.timerId&&(this.timerId=Li.setTimeout(function(){t.doTimer()}))}},i.instanceValue=null,i}(),kp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Hn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Mc=function(i){kp(t,i);function t(e){var n=i.call(this)||this;return n.timerFunc=null,n.surveyValue=e,n.onCreating(),n}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),t.prototype.onCreating=function(){},t.prototype.start=function(){var e=this;this.survey&&(this.isRunning||this.isDesignMode||(this.survey.onCurrentPageChanged.add(function(){e.update()}),this.timerFunc=function(n,r){e.doTimer(r.seconds)},this.setIsRunning(!0),this.update(),cl.instance.start(this.timerFunc)))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),cl.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getPropertyValue("isRunning",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsRunning=function(e){this.setPropertyValue("isRunning",e)},t.prototype.update=function(){this.updateText(),this.updateProgress()},t.prototype.doTimer=function(e){var n=this.survey.currentPage;if(n){var r=n.getMaxTimeToFinish();r>0&&r<n.timeSpent+e&&(e=r-n.timeSpent),n.timeSpent=n.timeSpent+e}this.spent=this.spent+e,this.update(),this.onTimerTick&&this.onTimerTick(n)},t.prototype.updateProgress=function(){var e=this,n=this.survey.timerInfo,r=n.spent,o=n.limit;o?(r==0?(this.progress=0,setTimeout(function(){e.progress=Math.floor((r+1)/o*100)/100},0)):r<=o&&(this.progress=Math.floor((r+1)/o*100)/100),this.progress>1&&(this.progress=void 0)):this.progress=void 0},t.prototype.updateText=function(){var e=this.survey.timerClock;this.clockMajorText=e.majorText,this.clockMinorText=e.minorText,this.text=this.survey.timerInfoText},Object.defineProperty(t.prototype,"showProgress",{get:function(){return this.progress!==void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerAsClock",{get:function(){return!!this.survey.getCss().clockTimerRoot},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootCss",{get:function(){return new te().append(this.survey.getCss().clockTimerRoot).append(this.survey.getCss().clockTimerRootTop,this.survey.isTimerPanelShowingOnTop).append(this.survey.getCss().clockTimerRootBottom,this.survey.isTimerPanelShowingOnBottom).toString()},enumerable:!1,configurable:!0}),t.prototype.getProgressCss=function(){return new te().append(this.survey.getCss().clockTimerProgress).append(this.survey.getCss().clockTimerProgressAnimation,this.progress>0).toString()},Object.defineProperty(t.prototype,"textContainerCss",{get:function(){return this.survey.getCss().clockTimerTextContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minorTextCss",{get:function(){return this.survey.getCss().clockTimerMinorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"majorTextCss",{get:function(){return this.survey.getCss().clockTimerMajorText},enumerable:!1,configurable:!0}),Hn([D()],t.prototype,"text",void 0),Hn([D()],t.prototype,"progress",void 0),Hn([D()],t.prototype,"clockMajorText",void 0),Hn([D()],t.prototype,"clockMinorText",void 0),Hn([D({defaultValue:0})],t.prototype,"spent",void 0),t}(Je),Qp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ya=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},_c=function(i){Qp(t,i);function t(e){var n=i.call(this)||this;return n.cssClasses=e,n.timeout=z.notifications.lifetime,n.timer=void 0,n.actionsVisibility={},n.showActions=!0,n.actionBar=new Qn,n.actionBar.updateCallback=function(r){n.actionBar.actions.forEach(function(o){return o.cssClasses={}})},n.css=n.cssClasses.root,n}return t.prototype.getCssClass=function(e){return new te().append(this.cssClasses.root).append(this.cssClasses.rootWithButtons,this.actionBar.visibleActions.length>0).append(this.cssClasses.info,e!=="error"&&e!=="success").append(this.cssClasses.error,e==="error").append(this.cssClasses.success,e==="success").append(this.cssClasses.shown,this.active).toString()},t.prototype.updateActionsVisibility=function(e){var n=this;this.actionBar.actions.forEach(function(r){return r.visible=n.showActions&&n.actionsVisibility[r.id]===e})},t.prototype.notify=function(e,n,r){var o=this;n===void 0&&(n="info"),r===void 0&&(r=!1),this.isDisplayed=!0,setTimeout(function(){o.updateActionsVisibility(n),o.message=e,o.active=!0,o.css=o.getCssClass(n),o.timer&&(clearTimeout(o.timer),o.timer=void 0),r||(o.timer=setTimeout(function(){o.timer=void 0,o.active=!1,o.css=o.getCssClass(n)},o.timeout))},1)},t.prototype.addAction=function(e,n){e.visible=!1,e.innerCss=this.cssClasses.button;var r=this.actionBar.addAction(e);this.actionsVisibility[r.id]=n},Ya([D({defaultValue:!1})],t.prototype,"active",void 0),Ya([D({defaultValue:!1})],t.prototype,"isDisplayed",void 0),Ya([D()],t.prototype,"message",void 0),Ya([D()],t.prototype,"css",void 0),t}(Je),Hp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ct=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},jc=function(){function i(t,e,n){this.cover=t,this.positionX=e,this.positionY=n}return i.prototype.calcRow=function(t){return t==="top"?1:t==="middle"?2:3},i.prototype.calcColumn=function(t){return t==="left"?1:t==="center"?2:3},i.prototype.calcAlignItems=function(t){return t==="left"?"flex-start":t==="center"?"center":"flex-end"},i.prototype.calcAlignText=function(t){return t==="left"?"start":t==="center"?"center":"end"},i.prototype.calcJustifyContent=function(t){return t==="top"?"flex-start":t==="middle"?"center":"flex-end"},Object.defineProperty(i.prototype,"survey",{get:function(){return this.cover.survey},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"css",{get:function(){var t=i.CLASSNAME+" "+i.CLASSNAME+"--"+this.positionX+" "+i.CLASSNAME+"--"+this.positionY;return t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"style",{get:function(){var t={};return t.gridColumn=this.calcColumn(this.positionX),t.gridRow=this.calcRow(this.positionY),t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"contentStyle",{get:function(){var t={};return t.textAlign=this.calcAlignText(this.positionX),t.alignItems=this.calcAlignItems(this.positionX),t.justifyContent=this.calcJustifyContent(this.positionY),t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showLogo",{get:function(){return this.survey.hasLogo&&this.positionX===this.cover.logoPositionX&&this.positionY===this.cover.logoPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showTitle",{get:function(){return this.survey.hasTitle&&this.positionX===this.cover.titlePositionX&&this.positionY===this.cover.titlePositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showDescription",{get:function(){return this.survey.renderedHasDescription&&this.positionX===this.cover.descriptionPositionX&&this.positionY===this.cover.descriptionPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"textAreaWidth",{get:function(){return this.cover.textAreaWidth?""+this.cover.textAreaWidth+"px":""},enumerable:!1,configurable:!0}),i.CLASSNAME="sv-header__cell",i}(),Xa=function(i){Hp(t,i);function t(){var e=i.call(this)||this;return e.cells=[],["top","middle","bottom"].forEach(function(n){return["left","center","right"].forEach(function(r){return e.cells.push(new jc(e,r,n))})}),e.init(),e}return t.prototype.calcBackgroundSize=function(e){return e==="fill"?"100% 100%":e==="tile"?"auto":e},t.prototype.updateHeaderClasses=function(){this.headerClasses=new te().append("sv-header").append("sv-header__without-background",this.backgroundColor==="transparent"&&!this.backgroundImage).append("sv-header__background-color--none",this.backgroundColor==="transparent"&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--accent",!this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--custom",!!this.backgroundColor&&this.backgroundColor!=="transparent"&&!this.titleColor&&!this.descriptionColor).append("sv-header__overlap",this.overlapEnabled).toString()},t.prototype.updateContentClasses=function(){var e=!!this.survey&&this.survey.calculateWidthMode();this.maxWidth=this.inheritWidthFrom==="survey"&&!!e&&e==="static"&&this.survey.renderedWidth,this.contentClasses=new te().append("sv-header__content").append("sv-header__content--static",this.inheritWidthFrom==="survey"&&!!e&&e==="static").append("sv-header__content--responsive",this.inheritWidthFrom==="container"||!!e&&e==="responsive").toString()},t.prototype.updateBackgroundImageClasses=function(){this.backgroundImageClasses=new te().append("sv-header__background-image").append("sv-header__background-image--contain",this.backgroundImageFit==="contain").append("sv-header__background-image--tile",this.backgroundImageFit==="tile").toString()},t.prototype.fromTheme=function(e){i.prototype.fromJSON.call(this,e.header||{}),e.cssVariables&&(this.backgroundColor=e.cssVariables["--sjs-header-backcolor"],this.titleColor=e.cssVariables["--sjs-font-headertitle-color"],this.descriptionColor=e.cssVariables["--sjs-font-headerdescription-color"]),this.init()},t.prototype.init=function(){this.renderBackgroundImage=$o(this.backgroundImage),this.updateHeaderClasses(),this.updateContentClasses(),this.updateBackgroundImageClasses()},t.prototype.getType=function(){return"cover"},Object.defineProperty(t.prototype,"renderedHeight",{get:function(){if(this.survey&&!this.survey.isMobile||!this.survey)return this.height?Math.max(this.height,this.actualHeight+40)+"px":void 0;if(this.survey&&this.survey.isMobile)return this.mobileHeight?Math.max(this.mobileHeight,this.actualHeight)+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedtextAreaWidth",{get:function(){return this.textAreaWidth?this.textAreaWidth+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this._survey},set:function(e){var n=this;this._survey!==e&&(this._survey=e,e&&(this.updateContentClasses(),this._survey.onPropertyChanged.add(function(r,o){(o.name=="widthMode"||o.name=="width")&&n.updateContentClasses()})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImageStyle",{get:function(){return this.backgroundImage?{opacity:this.backgroundImageOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.calcBackgroundSize(this.backgroundImageFit)}:null},enumerable:!1,configurable:!0}),t.prototype.propertyValueChanged=function(e,n,r,o,s){i.prototype.propertyValueChanged.call(this,e,n,r),(e==="backgroundColor"||e==="backgroundImage"||e==="overlapEnabled")&&this.updateHeaderClasses(),e==="inheritWidthFrom"&&this.updateContentClasses(),e==="backgroundImageFit"&&this.updateBackgroundImageClasses()},t.prototype.calculateActualHeight=function(e,n,r){var o=["top","middle","bottom"],s=o.indexOf(this.logoPositionY),c=o.indexOf(this.titlePositionY),y=o.indexOf(this.descriptionPositionY),w=["left","center","right"],N=w.indexOf(this.logoPositionX),Q=w.indexOf(this.titlePositionX),Y=w.indexOf(this.descriptionPositionX),ce=[[0,0,0],[0,0,0],[0,0,0]];return ce[s][N]=e,ce[c][Q]+=n,ce[y][Y]+=r,ce.reduce(function(fe,Oe){return fe+Math.max.apply(Math,Oe)},0)},t.prototype.processResponsiveness=function(e){if(this.survey&&this.survey.rootElement)if(this.survey.isMobile){var w=this.survey.rootElement.querySelectorAll(".sv-header > div")[0];this.actualHeight=w?w.getBoundingClientRect().height:0}else{var n=this.survey.rootElement.querySelectorAll(".sv-header__logo")[0],r=this.survey.rootElement.querySelectorAll(".sv-header__title")[0],o=this.survey.rootElement.querySelectorAll(".sv-header__description")[0],s=n?n.getBoundingClientRect().height:0,c=r?r.getBoundingClientRect().height:0,y=o?o.getBoundingClientRect().height:0;this.actualHeight=this.calculateActualHeight(s,c,y)}},Object.defineProperty(t.prototype,"hasBackground",{get:function(){return!!this.backgroundImage||this.backgroundColor!=="transparent"},enumerable:!1,configurable:!0}),Ct([D({defaultValue:0})],t.prototype,"actualHeight",void 0),Ct([D()],t.prototype,"height",void 0),Ct([D()],t.prototype,"mobileHeight",void 0),Ct([D()],t.prototype,"inheritWidthFrom",void 0),Ct([D()],t.prototype,"textAreaWidth",void 0),Ct([D()],t.prototype,"textGlowEnabled",void 0),Ct([D()],t.prototype,"overlapEnabled",void 0),Ct([D()],t.prototype,"backgroundColor",void 0),Ct([D()],t.prototype,"titleColor",void 0),Ct([D()],t.prototype,"descriptionColor",void 0),Ct([D({onSet:function(e,n){n.renderBackgroundImage=$o(e)}})],t.prototype,"backgroundImage",void 0),Ct([D()],t.prototype,"renderBackgroundImage",void 0),Ct([D()],t.prototype,"backgroundImageFit",void 0),Ct([D()],t.prototype,"backgroundImageOpacity",void 0),Ct([D()],t.prototype,"logoPositionX",void 0),Ct([D()],t.prototype,"logoPositionY",void 0),Ct([D()],t.prototype,"titlePositionX",void 0),Ct([D()],t.prototype,"titlePositionY",void 0),Ct([D()],t.prototype,"descriptionPositionX",void 0),Ct([D()],t.prototype,"descriptionPositionY",void 0),Ct([D()],t.prototype,"logoStyle",void 0),Ct([D()],t.prototype,"titleStyle",void 0),Ct([D()],t.prototype,"descriptionStyle",void 0),Ct([D()],t.prototype,"headerClasses",void 0),Ct([D()],t.prototype,"contentClasses",void 0),Ct([D()],t.prototype,"maxWidth",void 0),Ct([D()],t.prototype,"backgroundImageClasses",void 0),t}(Je);G.addClass("cover",[{name:"height:number",minValue:0,default:256},{name:"mobileHeight:number",minValue:0,default:0},{name:"inheritWidthFrom",default:"container"},{name:"textAreaWidth:number",minValue:0,default:512},{name:"textGlowEnabled:boolean"},{name:"overlapEnabled:boolean"},{name:"backgroundImage:file"},{name:"backgroundImageOpacity:number",minValue:0,maxValue:1,default:1},{name:"backgroundImageFit",default:"cover",choices:["cover","fill","contain"]},{name:"logoPositionX",default:"right"},{name:"logoPositionY",default:"top"},{name:"titlePositionX",default:"left"},{name:"titlePositionY",default:"bottom"},{name:"descriptionPositionX",default:"left"},{name:"descriptionPositionY",default:"bottom"}],function(){return new Xa});var yr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),zp=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Up=function(){function i(t){this.type=t,this.timestamp=new Date}return i}(),Wp=function(i){yr(t,i);function t(){var e=i.call(this)||this;return e.taskList=[],e.onAllTasksCompleted=e.addEvent(),e}return t.prototype.runTask=function(e,n){var r=this,o=new Up(e);return this.taskList.push(o),this.hasActiveTasks=!0,n(function(){return r.taskFinished(o)}),o},t.prototype.waitAndExecute=function(e){if(!this.hasActiveTasks){e();return}this.onAllTasksCompleted.add(function(){e()})},t.prototype.taskFinished=function(e){var n=this.taskList.indexOf(e);n>-1&&this.taskList.splice(n,1),this.hasActiveTasks&&this.taskList.length==0&&(this.hasActiveTasks=!1,this.onAllTasksCompleted.fire(this,{}))},zp([D({defaultValue:!1})],t.prototype,"hasActiveTasks",void 0),t}(Je),Nc=function(){function i(t,e,n){n===void 0&&(n=-1),this.source=t,this.target=e,this.nestedPanelDepth=n}return i}(),$p=function(){function i(t){this.panel=t}return i.prototype.dragDropAddTarget=function(t){var e=this.dragDropFindRow(t.target);this.dragDropAddTargetToRow(t,e)&&this.panel.updateRowsRemoveElementFromRow(t.target,e)},i.prototype.dragDropFindRow=function(t){if(!t||t.isPage)return null;for(var e=t,n=this.panel.rows,r=0;r<n.length;r++)if(n[r].elements.indexOf(e)>-1)return n[r];for(var r=0;r<this.panel.elements.length;r++){var o=this.panel.elements[r].getPanel();if(o){var s=o.dragDropFindRow(e);if(s)return s}}return null},i.prototype.dragDropMoveElement=function(t,e,n){var r=t.parent.elements.indexOf(t);n>r&&n--,this.panel.removeElement(t),this.panel.addElement(e,n)},i.prototype.updateRowsOnElementAdded=function(t,e,n,r){n||(n=new Nc(null,t),n.target=t,n.isEdge=this.panel.elements.length>1,this.panel.elements.length<2?n.destination=r:(n.isBottom=e>0,e==0?n.destination=this.panel.elements[1]:n.destination=this.panel.elements[e-1])),this.dragDropAddTargetToRow(n,null)},i.prototype.dragDropAddTargetToRow=function(t,e){if(!t.destination||this.dragDropAddTargetToEmptyPanel(t))return!0;var n=t.destination,r=this.dragDropFindRow(n);return r?t.target.startWithNewLine?this.dragDropAddTargetToNewRow(t,r,e):this.dragDropAddTargetToExistingRow(t,r,e):!0},i.prototype.dragDropAddTargetToEmptyPanel=function(t){if(t.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.panel.root,t.target,t.isBottom),!0;var e=t.destination;if(e.isPanel&&!t.isEdge){var n=e;if(t.target.template===e)return!1;if(t.nestedPanelDepth<0||t.nestedPanelDepth>=n.depth)return this.dragDropAddTargetToEmptyPanelCore(e,t.target,t.isBottom),!0}return!1},i.prototype.dragDropAddTargetToExistingRow=function(t,e,n){var r=e.elements.indexOf(t.destination);if(r==0&&!t.isBottom&&!this.panel.isDesignModeV2){if(e.elements[0].startWithNewLine)return e.index>0?(t.isBottom=!0,e=e.panel.rows[e.index-1],t.destination=e.elements[e.elements.length-1],this.dragDropAddTargetToExistingRow(t,e,n)):this.dragDropAddTargetToNewRow(t,e,n)}var o=-1;n==e&&(o=e.elements.indexOf(t.target)),t.isBottom&&r++;var s=this.panel.findRowByElement(t.source);return s==e&&s.elements.indexOf(t.source)==r||r==o?!1:(o>-1&&(e.elements.splice(o,1),o<r&&r--),e.elements.splice(r,0,t.target),e.updateVisible(),o<0)},i.prototype.dragDropAddTargetToNewRow=function(t,e,n){var r=e.panel.createRowAndSetLazy(e.panel.rows.length);this.panel.isDesignModeV2&&r.setIsLazyRendering(!1),r.addElement(t.target);var o=e.index;if(t.isBottom&&o++,n&&n.panel==r.panel&&n.index==o)return!1;var s=this.panel.findRowByElement(t.source);return s&&s.panel==r.panel&&s.elements.length==1&&s.index==o?!1:(e.panel.rows.splice(o,0,r),!0)},i.prototype.dragDropAddTargetToEmptyPanelCore=function(t,e,n){var r=t.createRow();r.addElement(e),t.elements.length==0||n?t.rows.push(r):t.rows.splice(0,0,r)},i}(),qc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),eu=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Bc=function(i){qc(t,i);function t(e,n){var r=i.call(this)||this;return r.effectiveWidth=e,r.questionTitleWidth=n,r}return t.prototype.getType=function(){return"panellayoutcolumn"},t.prototype.isEmpty=function(){return!this.width&&!this.questionTitleWidth},eu([D()],t.prototype,"width",void 0),eu([D({onSet:function(e,n,r){e!==r&&(n.width=e)}})],t.prototype,"effectiveWidth",void 0),eu([D()],t.prototype,"questionTitleWidth",void 0),t}(Je);G.addClass("panellayoutcolumn",[{name:"effectiveWidth:number",isSerializable:!1,minValue:0},{name:"width:number",visible:!1},"questionTitleWidth"],function(i){return new Bc});var fl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),yo=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},as=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},ca=function(i){fl(t,i);function t(e){var n=i.call(this)||this;return n.panel=e,n._scrollableParent=void 0,n._updateVisibility=void 0,n.visibleElementsAnimation=new Ar(n.getVisibleElementsAnimationOptions(),function(r){n.setWidth(r),n.setPropertyValue("visibleElements",r)},function(){return n.visibleElements}),n.idValue=t.getRowId(),n.visible=e.areInvisibleElementsShowing,n.createNewArray("elements"),n.createNewArray("visibleElements"),n}return t.getRowId=function(){return"pr_"+t.rowCounter++},Object.defineProperty(t.prototype,"allowRendering",{get:function(){return!this.panel||!this.panel.survey||!this.panel.survey.isLazyRenderingSuspended},enumerable:!1,configurable:!0}),t.prototype.startLazyRendering=function(e,n){var r=this;if(n===void 0&&(n=Jt),!!M.isAvailable()){this._scrollableParent=n(e),this._scrollableParent===M.getDocumentElement()&&(this._scrollableParent=B.getWindow());var o=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!o,o&&(this._updateVisibility=function(){if(r.allowRendering){var s=Yu(e,50);!r.isNeedRender&&s&&(r.isNeedRender=!0,r.stopLazyRendering())}},setTimeout(function(){r._scrollableParent&&r._scrollableParent.addEventListener&&r._scrollableParent.addEventListener("scroll",r._updateVisibility),r.ensureVisibility()},10))}},t.prototype.ensureVisibility=function(){this._updateVisibility&&this._updateVisibility()},t.prototype.stopLazyRendering=function(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),this._scrollableParent=void 0,this._updateVisibility=void 0},t.prototype.setIsLazyRendering=function(e){this.isLazyRenderingValue=e,this.isNeedRender=!e},t.prototype.isLazyRendering=function(){return this.isLazyRenderingValue===!0},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.equalsCore=function(e){return this==e},Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){var e;return i.prototype.getIsAnimationAllowed.call(this)&&this.visible&&((e=this.panel)===null||e===void 0?void 0:e.animationAllowed)},t.prototype.getVisibleElementsAnimationOptions=function(){var e=this,n=function(r){Ln(r),Yr(r,{width:so(r)+"px"})};return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},allowSyncRemovalAddition:!1,getAnimatedElement:function(r){return r.getWrapperElement()},getLeaveOptions:function(r){var o=r,s=r.isPanel?o.cssClasses.panel:o.cssClasses;return{cssClass:s.leave,onBeforeRunAnimation:n,onAfterRunAnimation:hn}},getEnterOptions:function(r){var o=r,s=r.isPanel?o.cssClasses.panel:o.cssClasses;return{cssClass:s.enter,onBeforeRunAnimation:n,onAfterRunAnimation:hn}}}},Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},set:function(e){if(e.length)this.visible=!0;else{this.visible=!1,this.visibleElementsAnimation.cancel();return}this.visibleElementsAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e),this.onVisibleChangedCallback&&this.onVisibleChangedCallback()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNeedRender",{get:function(){return this.getPropertyValue("isneedrender",!0)},set:function(e){this.setPropertyValue("isneedrender",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisible=function(){for(var e=[],n=0;n<this.elements.length;n++)this.elements[n].isVisible&&e.push(this.elements[n]),(this.elements[n].isPanel||this.elements[n].getType()==="paneldynamic")&&(this.setIsLazyRendering(!1),this.stopLazyRendering());this.visibleElements=e},t.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},Object.defineProperty(t.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!1,configurable:!0}),t.prototype.setWidth=function(e){var n,r=e.length;if(r!=0){for(var o=e.length===1,s=0,c=[],y=0;y<this.elements.length;y++){var w=this.elements[y];if(w.isVisible){w.isSingleInRow=o;var N=this.getElementWidth(w);N&&(w.renderWidth=this.getRenderedWidthFromWidth(N),c.push(w)),s<r-1&&!(this.panel.isDefaultV2Theme||!((n=this.panel.parentQuestion)===null||n===void 0)&&n.isDefaultV2Theme)?w.rightIndent=1:w.rightIndent=0,s++}else w.renderWidth=""}for(var y=0;y<this.elements.length;y++){var w=this.elements[y];!w.isVisible||c.indexOf(w)>-1||(c.length==0?w.renderWidth=Number.parseFloat((100/r).toFixed(6))+"%":w.renderWidth=this.getRenderedCalcWidth(w,c,r))}}},t.prototype.getRenderedCalcWidth=function(e,n,r){for(var o="100%",s=0;s<n.length;s++)o+=" - "+n[s].renderWidth;var c=r-n.length;return c>1&&(o="("+o+")/"+c.toString()),"calc("+o+")"},t.prototype.getElementWidth=function(e){var n=e.width;return!n||typeof n!="string"?"":n.trim()},t.prototype.getRenderedWidthFromWidth=function(e){return m.isNumber(e)?e+"px":e},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return new te().append(this.panel.cssClasses.row).append(this.panel.cssClasses.rowCompact,this.panel.isCompact).append(this.panel.cssClasses.pageRow,this.panel.isPage||this.panel.showPanelAsPage).append(this.panel.cssClasses.rowMultiple,this.visibleElements.length>1).toString()},t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t.rowCounter=100,yo([D({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),t}(Je),pl=function(i){fl(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.isQuestionsReady=!1,n.questionsValue=new Array,n._columns=void 0,n._columnsReady=!1,n.rowsAnimation=new Ar(n.getRowsAnimationOptions(),function(r){n.setPropertyValue("visibleRows",r)},function(){return n.visibleRows}),n.isRandomizing=!1,n.onColumnPropertyValueChangedCallback=function(r,o,s,c,y){n._columnsReady&&(n.updateColumnWidth(n.gridLayoutColumns),n.updateRootStyle())},n.locCountRowUpdates=0,n.createNewArray("rows",function(r,o){n.onAddRow(r)},function(r){n.onRemoveRow(r)}),n.createNewArray("visibleRows"),n.elementsValue=n.createNewArray("elements",n.onAddElement.bind(n),n.onRemoveElement.bind(n)),n.id=t.getPanelId(),n.addExpressionProperty("visibleIf",function(r,o){n.visible=o===!0},function(r){return!n.areInvisibleElementsShowing}),n.addExpressionProperty("enableIf",function(r,o){n.readOnly=o===!1}),n.addExpressionProperty("requiredIf",function(r,o){n.isRequired=o===!0}),n.createLocalizableString("requiredErrorText",n),n.createLocalizableString("navigationTitle",n,!0).onGetTextCallback=function(r){return r||n.title||n.name},n.registerPropertyChangedHandlers(["questionTitleLocation"],function(){n.onVisibleChanged.bind(n),n.updateElementCss(!0)}),n.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],function(){n.updateVisibleIndexes()}),n.registerPropertyChangedHandlers(["title"],function(){n.resetHasTextInTitle()}),n.dragDropPanelHelper=new $p(n),n}return t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.onAddRow=function(e){var n=this;this.onRowVisibleChanged(),e.onVisibleChangedCallback=function(){return n.onRowVisibleChanged()}},t.prototype.getRowsAnimationOptions=function(){var e=this;return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},getAnimatedElement:function(n){return n.getRootElement()},getLeaveOptions:function(n,r){return{cssClass:e.cssClasses.rowLeave,onBeforeRunAnimation:Ln,onAfterRunAnimation:hn}},getEnterOptions:function(n,r){var o=e.cssClasses;return{cssClass:new te().append(o.rowEnter).append(o.rowDelayedEnter,r.isDeletingRunning).toString(),onBeforeRunAnimation:Ln,onAfterRunAnimation:hn}}}},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getPropertyValue("visibleRows")},set:function(e){this.rowsAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.onRemoveRow=function(e){e.visibleElementsAnimation.cancel(),this.visibleRows=this.rows.filter(function(n){return n.visible}),e.onVisibleChangedCallback=void 0},t.prototype.onRowVisibleChanged=function(){this.visibleRows=this.rows.filter(function(e){return e.visible})},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(e,n){this.blockAnimations(),i.prototype.setSurveyImpl.call(this,e,n),this.isDesignMode&&this.onVisibleChanged();for(var r=0;r<this.elements.length;r++)this.elements[r].setSurveyImpl(e,n);this.releaseAnimations()},t.prototype.endLoadingFromJson=function(){var e=this;i.prototype.endLoadingFromJson.call(this),this.updateDescriptionVisibility(this.description),this.markQuestionListDirty(),this.onRowsChanged(),this.gridLayoutColumns.forEach(function(n){n.onPropertyValueChangedCallback=e.onColumnPropertyValueChangedCallback})},Object.defineProperty(t.prototype,"hasTextInTitle",{get:function(){var e=this;return this.getPropertyValue("hasTextInTitle",void 0,function(){return!!e.title})},enumerable:!1,configurable:!0}),t.prototype.resetHasTextInTitle=function(){this.resetPropertyValue("hasTextInTitle")},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle(this.survey)&&(this.hasTextInTitle||this.locTitle.textOrHtml.length>0)||this.isDesignMode&&!(z.supportCreatorV2&&this.isPanel)&&this.showTitle&&z.designMode.showEmptyTitles},enumerable:!1,configurable:!0}),t.prototype.delete=function(e){e===void 0&&(e=!0),this.deletePanel(),this.removeFromParent(),e&&this.dispose()},t.prototype.deletePanel=function(){for(var e=this.elements,n=0;n<e.length;n++){var r=e[n];r.isPanel&&r.deletePanel(),this.onRemoveElementNotifySurvey(r)}},t.prototype.removeFromParent=function(){},t.prototype.canShowTitle=function(e){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return!this.hasTitle&&this.isDesignMode?!1:this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&z.designMode.showEmptyDescriptions},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].localeChanged()},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].locStrsChanged()},t.prototype.getMarkdownHtml=function(e,n){return n==="navigationTitle"&&this.locNavigationTitle.isEmpty?this.locTitle.renderedHtml||this.name:i.prototype.getMarkdownHtml.call(this,e,n)},Object.defineProperty(t.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedNavigationTitle",{get:function(){return this.locNavigationTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&this.titlePattern=="requireNumTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&this.titlePattern=="numRequireTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&this.titlePattern=="numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.canRandomize=function(e){return e&&this.questionsOrder!=="initial"||this.questionsOrder==="random"},t.prototype.randomizeElements=function(e){if(!(!this.canRandomize(e)||this.isRandomizing)){this.isRandomizing=!0;for(var n=[],r=this.elements,o=0;o<r.length;o++)n.push(r[o]);var s=m.randomizeArray(n);this.setArrayPropertyDirectly("elements",s,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){var e=this.questionsOrder=="default"&&this.survey?this.survey.questionsOrder:this.questionsOrder;return e=="random"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return this.parent==null?0:this.parent.depth+1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var n={panel:{},error:{},row:"",rowEnter:"",rowLeave:"",rowDelayedEnter:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(n.panel,e.panel),this.copyCssClasses(n.error,e.error),e.pageRow&&(n.pageRow=e.pageRow),e.rowCompact&&(n.rowCompact=e.rowCompact),e.row&&(n.row=e.row),e.rowEnter&&(n.rowEnter=e.rowEnter),e.rowLeave&&(n.rowLeave=e.rowLeave),e.rowDelayedEnter&&(n.rowDelayedEnter=e.rowDelayedEnter),e.rowMultiple&&(n.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,n),n},Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return e!=="flow"},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var n=this.elements[e];if(n.isPanel)for(var r=n.questions,o=0;o<r.length;o++)this.questionsValue.push(r[o]);else this.questionsValue.push(n)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!1,configurable:!0}),t.prototype.getQuestions=function(e){var n=this.questions;if(!e)return n;var r=[];return n.forEach(function(o){r.push(o),o.getNestedQuestions().forEach(function(s){return r.push(s)})}),r},t.prototype.getValidName=function(e){return e&&e.trim()},t.prototype.getQuestionByName=function(e){for(var n=this.questions,r=0;r<n.length;r++)if(n[r].name==e)return n[r];return null},t.prototype.getElementByName=function(e){for(var n=this.elements,r=0;r<n.length;r++){var o=n[r];if(o.name==e)return o;var s=o.getPanel();if(s){var c=s.getElementByName(e);if(c)return c}}return null},t.prototype.getQuestionByValueName=function(e){var n=this.getQuestionsByValueName(e);return n.length>0?n[0]:null},t.prototype.getQuestionsByValueName=function(e){for(var n=[],r=this.questions,o=0;o<r.length;o++)r[o].getValueName()==e&&n.push(r[o]);return n},t.prototype.getValue=function(){var e={};return this.collectValues(e,0),m.getUnbindValue(e)},t.prototype.collectValues=function(e,n){var r=this.elements;n===0&&(r=this.questions);for(var o=0;o<r.length;o++){var s=r[o];if(s.isPanel||s.isPage){var c={};s.collectValues(c,n-1)&&(e[s.name]=c)}else{var y=s;if(!y.isEmpty()){var w=y.getValueName();if(e[w]=y.value,this.data){var N=this.data.getComment(w);N&&(e[w+Je.commentSuffix]=N)}}}}return!0},t.prototype.getDisplayValue=function(e){for(var n={},r=this.questions,o=0;o<r.length;o++){var s=r[o];if(!s.isEmpty()){var c=e?s.title:s.getValueName();n[c]=s.getDisplayValue(e)}}return n},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var n=this.questions,r=0;r<n.length;r++){var o=n[r],s=this.data.getComment(o.getValueName());s&&(e[o.getValueName()]=s)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return Je.collectDependency(this,"elements"),this.elementsValue},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return this.elements},t.prototype.containsElement=function(e){for(var n=0;n<this.elements.length;n++){var r=this.elements[n];if(r==e)return!0;var o=r.getPanel();if(o&&o.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),t.prototype.searchText=function(e,n){i.prototype.searchText.call(this,e,n);for(var r=0;r<this.elements.length;r++)this.elements[r].searchText(e,n)},t.prototype.hasErrors=function(e,n,r){return e===void 0&&(e=!0),n===void 0&&(n=!1),r===void 0&&(r=null),!this.validate(e,n,r)},t.prototype.validate=function(e,n,r){return e===void 0&&(e=!0),n===void 0&&(n=!1),r===void 0&&(r=null),r=r||{fireCallback:e,focusOnFirstError:n,firstErrorQuestion:null,result:!1},r.result!==!0&&(r.result=!1),this.hasErrorsCore(r),!r.result},t.prototype.validateContainerOnly=function(){this.hasErrorsInPanels({fireCallback:!0}),this.parent&&this.parent.validateContainerOnly()},t.prototype.onQuestionValueChanged=function(e){var n=this.questions.indexOf(e);if(!(n<0)){for(var r=5,o=this.questions.length-1,s=n-r>0?n-r:0,c=n+r<o?n+r:o,y=s;y<=c;y++)if(y!==n){var w=this.questions[y];w.errors.length>0&&w.validate(!1)&&w.validate(!0)}}},t.prototype.hasErrorsInPanels=function(e){var n=[];if(this.hasRequiredError(e,n),this.isPanel&&this.survey){var r=this.survey.validatePanel(this);r&&(n.push(r),e.result=!0)}e.fireCallback&&(this.survey&&this.survey.beforeSettingPanelErrors(this,n),this.errors=n)},t.prototype.getErrorCustomText=function(e,n){return this.survey?this.survey.getSurveyErrorCustomText(this,e,n):e},t.prototype.hasRequiredError=function(e,n){if(this.isRequired){var r=[];if(this.addQuestionsToList(r,!0),r.length!=0){for(var o=0;o<r.length;o++)if(!r[o].isEmpty())return;e.result=!0,n.push(new Oi(this.requiredErrorText,this)),e.focusOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=r[0])}}},t.prototype.hasErrorsCore=function(e){for(var n=this.elements,r=null,o=null,s=0;s<n.length;s++)if(r=n[s],!!r.isVisible)if(r.isPanel)r.hasErrorsCore(e);else{var c=r;c.validate(e.fireCallback,e)||(o||(o=c),e.firstErrorQuestion||(e.firstErrorQuestion=c),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors(),!o&&this.errors.length>0&&(o=this.getFirstQuestionToFocus(!1,!0),e.firstErrorQuestion||(e.firstErrorQuestion=o)),e.fireCallback&&o&&(o===e.firstErrorQuestion&&e.focusOnFirstError?o.focus(!0):o.expandAllParents())},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;for(var n=this.elements,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateElementVisibility();i.prototype.updateElementVisibility.call(this)},t.prototype.getFirstQuestionToFocus=function(e,n){if(e===void 0&&(e=!1),n===void 0&&(n=!1),!e&&!n&&this.isCollapsed)return null;for(var r=this.elements,o=0;o<r.length;o++){var s=r[o];if(!(!s.isVisible||!n&&s.isCollapsed))if(s.isPanel){var c=s.getFirstQuestionToFocus(e,n);if(c)return c}else{var y=s.getFirstQuestionToFocus(e);if(y)return y}}return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.addQuestionsToList=function(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1),this.addElementsToList(e,n,r,!1)},t.prototype.addPanelsIntoList=function(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1),this.addElementsToList(e,n,r,!0)},t.prototype.addElementsToList=function(e,n,r,o){n&&!this.visible||this.addElementsToListCore(e,this.elements,n,r,o)},t.prototype.addElementsToListCore=function(e,n,r,o,s){for(var c=0;c<n.length;c++){var y=n[c];r&&!y.visible||((s&&y.isPanel||!s&&!y.isPanel)&&e.push(y),y.isPanel?y.addElementsToListCore(e,y.elements,r,o,s):o&&this.addElementsToListCore(e,y.getElementsInDesign(!1),r,o,s))}},t.prototype.calcMaxRowColSpan=function(){var e=0;return this.rows.forEach(function(n){var r=0,o=!1;n.elements.forEach(function(s){s.width&&(o=!0),r+=s.colSpan||1}),!o&&r>e&&(e=r)}),e},t.prototype.updateColumnWidth=function(e){var n=0,r=0;if(e.forEach(function(c){c.width?(n+=c.width,c.setPropertyValue("effectiveWidth",c.width)):r++}),r)for(var o=Ks((100-n)/r),s=0;s<e.length;s++)e[s].width||e[s].setPropertyValue("effectiveWidth",o)},t.prototype.updateColumns=function(){this._columns=void 0,this.updateRootStyle()},t.prototype.updateRootStyle=function(){var e;i.prototype.updateRootStyle.call(this),(e=this.elements)===null||e===void 0||e.forEach(function(n){return n.updateRootStyle()})},t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():this.questionTitleLocation!="default"?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.availableQuestionTitleWidth=function(){var e=this.getQuestionTitleLocation();return e==="left"?!0:this.hasElementWithTitleLocationLeft()},t.prototype.hasElementWithTitleLocationLeft=function(){var e=this.elements.some(function(n){if(n instanceof t)return n.hasElementWithTitleLocationLeft();if(n instanceof K)return n.getTitleLocation()==="left"});return e},t.prototype.getQuestionTitleWidth=function(){return this.questionTitleWidth||this.parent&&this.parent.getQuestionTitleWidth()},Object.defineProperty(t.prototype,"columns",{get:function(){return this._columns||this.generateColumns(),this._columns||[]},enumerable:!1,configurable:!0}),t.prototype.generateColumns=function(){var e=this.calcMaxRowColSpan(),n=[].concat(this.gridLayoutColumns);if(e<=this.gridLayoutColumns.length)n=this.gridLayoutColumns.slice(0,e);else for(var r=this.gridLayoutColumns.length;r<e;r++){var o=new Bc;o.onPropertyValueChangedCallback=this.onColumnPropertyValueChangedCallback,n.push(o)}this._columns=n;try{this._columnsReady=!1,this.updateColumnWidth(n)}finally{this._columnsReady=!0}this.gridLayoutColumns=n},t.prototype.updateGridColumns=function(){this.updateColumns(),this.elements.forEach(function(e){e.isPanel&&e.updateGridColumns()})},t.prototype.getColumsForElement=function(e){var n=this.findRowByElement(e);if(!n||!this.survey||!this.survey.gridLayoutEnabled)return[];for(var r=n.elements.length-1;r>=0&&n.elements[r].getPropertyValueWithoutDefault("colSpan");)r--;for(var o=n.elements.indexOf(e),s=0,c=0;c<o;c++)s+=n.elements[c].colSpan;var y=e.getPropertyValueWithoutDefault("colSpan");if(!y&&o===r){for(var w=0,c=0;c<n.elements.length;c++)c!==r&&(w+=n.elements[c].colSpan);y=this.columns.length-w}var N=this.columns.slice(s,s+(y||1));return e.setPropertyValue("effectiveColSpan",N.length),N},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.getProgressInfo=function(){return sn.getProgressInfoByElements(this.elements,this.isRequired)},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t.prototype.childVisibilityChanged=function(){var e=this.getIsPageVisible(null),n=this.getPropertyValue("isVisible",!0);e!==n&&this.onVisibleChanged()},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.isLazyRenderInRow=function(e){return!this.survey||!this.survey.isLazyRendering?!1:e>=this.survey.lazyRenderingFirstBatchSize||!this.canRenderFirstRows()},t.prototype.createRowAndSetLazy=function(e){var n=this.createRow();return n.setIsLazyRendering(this.isLazyRenderInRow(e)),n},t.prototype.createRow=function(){return new ca(this)},t.prototype.onSurveyLoad=function(){this.blockAnimations(),i.prototype.onSurveyLoad.call(this);for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this),this.releaseAnimations()},t.prototype.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this),this.onRowsChanged(),this.elements.forEach(function(e){return e.onFirstRendering()})},t.prototype.updateRows=function(){this.isLoadingFromJson||(this.getElementsForRows().forEach(function(e){e.isPanel&&e.updateRows()}),this.onRowsChanged())},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!1,configurable:!0}),t.prototype.ensureRowsVisibility=function(){this.rows.forEach(function(e){e.ensureVisibility()})},t.prototype.onRowsChanged=function(){this.isLoadingFromJson||(this.blockAnimations(),this.setArrayPropertyDirectly("rows",this.buildRows()),this.updateColumns(),this.releaseAnimations())},t.prototype.blockRowsUpdates=function(){this.locCountRowUpdates++},t.prototype.releaseRowsUpdates=function(){this.locCountRowUpdates--},t.prototype.updateRowsBeforeElementRemoved=function(e){var n=this,r=this.findRowByElement(e),o=this.rows.indexOf(r),s=r.elements.indexOf(e);r.elements.splice(s,1),r.elements.length==0?this.rows.splice(o,1):!r.elements[0].startWithNewLine&&this.rows[o-1]?(r.elements.forEach(function(c){return n.rows[o-1].addElement(c)}),this.rows.splice(o,1)):r.updateVisible()},t.prototype.updateRowsOnElementAdded=function(e){var n=this,r=this.elements.indexOf(e),o=this.elements[r+1],s=function(Q){var Y=n.createRowAndSetLazy(Q);return n.isDesignModeV2&&Y.setIsLazyRendering(!1),n.rows.splice(Q,0,Y),Y},c=function(Q,Y,ce){for(var fe,Oe=[],Ee=3;Ee<arguments.length;Ee++)Oe[Ee-3]=arguments[Ee];var me=(fe=Q.elements).splice.apply(fe,as([Y,ce],Oe));return Q.updateVisible(),me};if(!o){r==0||e.startWithNewLine?c(s(this.rows.length),0,0,e):this.rows[this.rows.length-1].addElement(e);return}var y=this.findRowByElement(o);if(y){var w=this.rows.indexOf(y),N=y.elements.indexOf(o);N==0?o.startWithNewLine?e.startWithNewLine||w<1?s(w).addElement(e):this.rows[w-1].addElement(e):c(y,0,0,e):e.startWithNewLine?c.apply(void 0,as([s(w+1),0,0],[e].concat(c(y,N,y.elements.length)))):c(y,N,0,e)}},t.prototype.canFireAddRemoveNotifications=function(e){return!!this.survey&&e.prevSurvey!==this.survey},t.prototype.onAddElement=function(e,n){var r=this,o=this.survey,s=this.canFireAddRemoveNotifications(e);this.surveyImpl&&e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.canBuildRows()&&this.updateRowsOnElementAdded(e),s&&(e.isPanel?o.panelAdded(e,n,this,this.root):o.questionAdded(e,n,this,this.root)),this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers(["visible","isVisible"],function(){r.onElementVisibilityChanged(e)},this.id),e.registerPropertyChangedHandlers(["startWithNewLine"],function(){r.onElementStartWithNewLineChanged(e)},this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.unregisterElementPropertiesChanged(e),this.markQuestionListDirty(),this.updateRowsOnElementRemoved(e),!this.isRandomizing&&(this.onRemoveElementNotifySurvey(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))},t.prototype.unregisterElementPropertiesChanged=function(e){e.unregisterPropertyChangedHandlers(["visible","isVisible","startWithNewLine"],this.id)},t.prototype.onRemoveElementNotifySurvey=function(e){this.canFireAddRemoveNotifications(e)&&(e.isPanel?this.survey.panelRemoved(e):this.survey.questionRemoved(e))},t.prototype.onElementVisibilityChanged=function(e){this.isLoadingFromJson||this.isRandomizing||(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))},t.prototype.onElementStartWithNewLineChanged=function(e){this.locCountRowUpdates>0||(this.blockAnimations(),this.updateRowsBeforeElementRemoved(e),this.updateRowsOnElementAdded(e),this.releaseAnimations())},t.prototype.updateRowsVisibility=function(e){for(var n=this.rows,r=0;r<n.length;r++){var o=n[r];if(o.elements.indexOf(e)>-1){o.updateVisible(),o.visible&&!o.isNeedRender&&(o.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&this.getChildrenLayoutType()=="row"},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=new Array,n=this.getElementsForRows(),r=0;r<n.length;r++){var o=n[r],s=r==0||o.startWithNewLine,c=s?this.createRowAndSetLazy(e.length):e[e.length-1];s&&e.push(c),c.addElement(o)}return e.forEach(function(y){return y.updateVisible()}),e},t.prototype.getElementsForRows=function(){return this.elements},t.prototype.getDragDropInfo=function(){var e=this.getPage(this.parent);return e?e.getDragDropInfo():void 0},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&(this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e)),this.updateColumns())},t.prototype.updateRowsRemoveElementFromRow=function(e,n){if(!(!n||!n.panel)){var r=n.elements.indexOf(e);r<0||(n.elements.splice(r,1),n.elements.length>0?(this.blockRowsUpdates(),n.elements[0].startWithNewLine=!0,this.releaseRowsUpdates(),n.updateVisible()):n.index>=0&&n.panel.rows.splice(n.index,1))}},t.prototype.getAllRows=function(){var e=this,n=[];return this.rows.forEach(function(r){var o=[];r.elements.forEach(function(s){s.isPanel?o.push.apply(o,s.getAllRows()):s.getType()=="paneldynamic"&&(e.isDesignMode?o.push.apply(o,s.template.getAllRows()):s.panels.forEach(function(c){return o.push.apply(o,c.getAllRows())}))}),n.push(r),n.push.apply(n,o)}),n},t.prototype.findRowAndIndexByElement=function(e,n){if(!e)return{row:void 0,index:this.rows.length-1};n=n||this.rows;for(var r=0;r<n.length;r++)if(n[r].elements.indexOf(e)>-1)return{row:n[r],index:r};return{row:null,index:-1}},t.prototype.forceRenderRow=function(e){e&&!e.isNeedRender&&(e.isNeedRender=!0,e.stopLazyRendering())},t.prototype.forceRenderElement=function(e,n,r){n===void 0&&(n=function(){}),r===void 0&&(r=0);var o=this.getAllRows(),s=this.findRowAndIndexByElement(e,o),c=s.row,y=s.index;if(y>=0&&y<o.length){var w=[];w.push(c);for(var N=y-1;N>=y-r&&N>=0;N--)w.push(o[N]);this.forceRenderRows(w,n)}},t.prototype.forceRenderRows=function(e,n){var r=this;n===void 0&&(n=function(){});var o=function(s){return function(){s--,s<=0&&n()}}(e.length);e.forEach(function(s){return new Aa(s.visibleElements,o)}),e.forEach(function(s){return r.forceRenderRow(s)})},t.prototype.findRowByElement=function(e){return this.findRowAndIndexByElement(e).row},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var n=this.findRowByElement(e);n&&n.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),t.prototype.getRenderedTitle=function(e){return this.textProcessor!=null?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){this.questions.forEach(function(e){return e.onHidingContent()})},t.prototype.onVisibleChanged=function(){if(!this.isRandomizing&&(this.setPropertyValue("isVisible",this.isVisible),this.survey&&this.survey.getQuestionClearIfInvisible("default")!=="none"&&!this.isLoadingFromJson))for(var e=this.questions,n=this.isVisible,r=0;r<e.length;r++){var o=e[r];n?o.updateValueWithDefaults():(o.clearValueIfInvisible("onHiddenContainer"),o.onHidingContent())}},t.prototype.notifyStateChanged=function(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed&&this.questions.forEach(function(n){return n.onHidingContent()})},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!1,configurable:!0}),t.prototype.getIsContentVisible=function(e){if(this.areInvisibleElementsShowing)return!0;for(var n=0;n<this.elements.length;n++)if(this.elements[n]!=e&&this.elements[n].isVisible)return!0;return!1},t.prototype.getIsPageVisible=function(e){return this.visible&&this.getIsContentVisible(e)},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0)return this.resetVisibleIndexes(),0;this.lastVisibleIndex=e;var n=e;e+=this.beforeSetVisibleIndex(e);for(var r=this.getPanelStartIndex(e),o=r,s=0;s<this.elements.length;s++)o+=this.elements[s].setVisibleIndex(o);return this.isContinueNumbering()&&(e+=o-r),e-n},t.prototype.updateVisibleIndexes=function(){this.lastVisibleIndex!==void 0&&(this.resetVisibleIndexes(),this.setVisibleIndex(this.lastVisibleIndex))},t.prototype.resetVisibleIndexes=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].setVisibleIndex(-1)},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,n=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||n},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var e=0;e<this.elements.length;e++){var n=this.elements[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e);for(var n=0;n<this.elements.length;n++){var r=this.elements[n];r.updateElementCss(e)}},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.addElement=function(e,n){return n===void 0&&(n=-1),this.canAddElement(e)?(n<0||n>=this.elements.length?this.elements.push(e):this.elements.splice(n,0,e),this.wasRendered&&e.onFirstRendering(),this.updateColumns(),!0):!1},t.prototype.insertElement=function(e,n,r){if(r===void 0&&(r="bottom"),!n){this.addElement(e);return}this.blockRowsUpdates();var o=this.elements.indexOf(n),s=this.findRowByElement(n);r=="left"||r=="right"?r=="right"?(e.startWithNewLine=!1,o++):s.elements.indexOf(n)==0?(n.startWithNewLine=!1,e.startWithNewLine=!0):e.startWithNewLine=!1:(e.startWithNewLine=!0,r=="top"?o=this.elements.indexOf(s.elements[0]):o=this.elements.indexOf(s.elements[s.elements.length-1])+1),this.releaseRowsUpdates(),this.addElement(e,o)},t.prototype.insertElementAfter=function(e,n){var r=this.elements.indexOf(n);r>=0&&this.addElement(e,r+1)},t.prototype.insertElementBefore=function(e,n){var r=this.elements.indexOf(n);r>=0&&this.addElement(e,r)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,n){return n===void 0&&(n=-1),this.addElement(e,n)},t.prototype.addPanel=function(e,n){return n===void 0&&(n=-1),this.addElement(e,n)},t.prototype.addNewQuestion=function(e,n,r){n===void 0&&(n=null),r===void 0&&(r=-1);var o=bt.Instance.createQuestion(e,n);return this.addQuestion(o,r)?o:null},t.prototype.addNewPanel=function(e){e===void 0&&(e=null);var n=this.createNewPanel(e);return this.addPanel(n)?n:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var n=G.createClass("panel");return n.name=e,n},t.prototype.removeElement=function(e){var n=this.elements.indexOf(e);if(n<0){for(var r=0;r<this.elements.length;r++)if(this.elements[r].removeElement(e))return!0;return!1}return this.elements.splice(n,1),this.updateColumns(),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,n){if(!(this.isDesignMode||this.isLoadingFromJson)){for(var r=this.elements.slice(),o=0;o<r.length;o++)r[o].runCondition(e,n);this.runConditionCore(e,n)}},t.prototype.onAnyValueChanged=function(e,n){for(var r=this.elements,o=0;o<r.length;o++)r[o].onAnyValueChanged(e,n)},t.prototype.checkBindings=function(e,n){for(var r=this.elements,o=0;o<r.length;o++)r[o].checkBindings(e,n)},t.prototype.dragDropAddTarget=function(e){this.dragDropPanelHelper.dragDropAddTarget(e)},t.prototype.dragDropFindRow=function(e){return this.dragDropPanelHelper.dragDropFindRow(e)},t.prototype.dragDropMoveElement=function(e,n,r){this.dragDropPanelHelper.dragDropMoveElement(e,n,r)},t.prototype.needResponsiveWidth=function(){var e=!1;return this.elements.forEach(function(n){n.needResponsiveWidth()&&(e=!0)}),this.rows.forEach(function(n){n.elements.length>1&&(e=!0)}),e},Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.cssClasses.panel.header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.cssClasses.panel.description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionErrorLocation=function(){return this.questionErrorLocation!=="default"?this.questionErrorLocation:this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){return this.cssClasses.panel.number},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){return this.cssClasses.panel.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getCssError(this.cssClasses)},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){return new te().append(e.error.root).toString()},t.prototype.getSerializableColumnsValue=function(){for(var e=-1,n=this.gridLayoutColumns.length-1;n>=0;n--)if(!this.gridLayoutColumns[n].isEmpty()){e=n;break}return this.gridLayoutColumns.slice(0,e+1)},t.prototype.afterRender=function(e){this.afterRenderCore(e)},t.prototype.dispose=function(){if(i.prototype.dispose.call(this),this.rows){for(var e=0;e<this.rows.length;e++)this.rows[e].dispose();this.rows.splice(0,this.rows.length)}this.disposeElements(),this.elements.splice(0,this.elements.length)},t.prototype.disposeElements=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].dispose()},t.panelCounter=100,yo([be()],t.prototype,"gridLayoutColumns",void 0),yo([D({defaultValue:!0})],t.prototype,"showTitle",void 0),yo([D({defaultValue:!0})],t.prototype,"showDescription",void 0),yo([D()],t.prototype,"questionTitleWidth",void 0),t}(sn),us=function(i){fl(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.forcusFirstQuestionOnExpand=!0,n.createNewArray("footerActions"),n.registerPropertyChangedHandlers(["width"],function(){n.parent&&n.parent.elementWidthChanged(n)}),n.registerPropertyChangedHandlers(["indent","innerIndent","rightIndent"],function(){n.resetIndents()}),n.registerPropertyChangedHandlers(["colSpan"],function(){var r;(r=n.parent)===null||r===void 0||r.updateColumns()}),n}return t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"contentId",{get:function(){return this.id+"_content"},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return e===void 0&&(e=!1),e&&this.isPanel?this.parent?this.parent.getSurvey(e):null:i.prototype.getSurvey.call(this,e)},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.moveTo=function(e,n){return n===void 0&&(n=null),this.moveToBase(this.parent,e,n)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber")},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:i.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){var e=this;return this.getPropertyValue("no",void 0,function(){return e.calcNo()})},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){var e=m.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedPanelNo(this,e)),e||""},t.prototype.notifyStateChanged=function(e){this.isLoadingFromJson||this.locTitle.strChanged(),i.prototype.notifyStateChanged.call(this,e)},t.prototype.createLocTitleProperty=function(){var e=this,n=i.prototype.createLocTitleProperty.call(this);return n.onGetTextCallback=function(r){return!r&&e.state!=="default"&&(r=e.name),r},n},t.prototype.beforeSetVisibleIndex=function(e){if(this.isPage)return i.prototype.beforeSetVisibleIndex.call(this,e);var n=-1;return this.showNumber&&(this.isDesignMode||!this.locTitle.isEmpty||this.hasParentInQuestionIndex())&&(n=e),this.setPropertyValue("visibleIndex",n),this.resetPropertyValue("no"),n<0?0:1},t.prototype.getPanelStartIndex=function(e){return this.showQuestionNumbers==="off"?-1:this.showQuestionNumbers==="onpanel"?0:e},t.prototype.hasParentInQuestionIndex=function(){if(this.showQuestionNumbers!=="onpanel")return!1;var e=this.questionStartIndex,n=e.indexOf(".");return n>-1&&n<e.length-1},t.prototype.isContinueNumbering=function(){return this.showQuestionNumbers!=="off"&&this.showQuestionNumbers!=="onpanel"},t.prototype.notifySurveyOnVisibilityChanged=function(){this.survey!=null&&!this.isLoadingFromJson&&this.page&&this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.getRenderedTitle=function(e){if(this.isPanel&&!e){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return i.prototype.getRenderedTitle.call(this,e)},Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent")},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){var e=this,n=function(){return e.getIndentSize(e.innerIndent)};return this.getPropertyValue("innerPaddingLeft",void 0,n)},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return this.getIndentSize(this.indent)},t.prototype.calcPaddingRight=function(){return this.getIndentSize(this.rightIndent)},t.prototype.resetIndents=function(){this.resetPropertyValue("innerPaddingLeft"),i.prototype.resetIndents.call(this)},t.prototype.getIndentSize=function(e){if(this.survey){if(e<1)return"";var n=this.survey.css;return!n||!n.question||!n.question.indent?"":e*n.question.indent+"px"}},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach(function(e){(e instanceof K||e instanceof t)&&e.clearOnDeletingContainer()})},Object.defineProperty(t.prototype,"footerActions",{get:function(){return this.getPropertyValue("footerActions")},enumerable:!1,configurable:!0}),t.prototype.getFooterToolbar=function(){var e=this,n,r;if(!this.footerToolbarValue){var o=this.footerActions;this.hasEditButton&&o.push({id:"cancel-preview",locTitle:this.survey.locEditText,innerCss:this.survey.cssNavigationEdit,component:"sv-nav-btn",action:function(){e.cancelPreview()}}),this.onGetFooterActionsCallback?o=this.onGetFooterActionsCallback():o=(n=this.survey)===null||n===void 0?void 0:n.getUpdatedPanelFooterActions(this,o),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions);var s=this.onGetFooterToolbarCssCallback?this.onGetFooterToolbarCssCallback():"";s||(s=(r=this.cssClasses.panel)===null||r===void 0?void 0:r.footer),s&&(this.footerToolbarValue.containerCss=s),this.footerToolbarValue.setItems(o)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getCssPanelTitle()},enumerable:!1,configurable:!0}),t.prototype.getCssPanelTitle=function(){return this.getCssTitle(this.cssClasses.panel)},t.prototype.getCssTitleExpandableSvg=function(){return this.state==="default"?null:this.cssClasses.panel.titleExpandableSvg},Object.defineProperty(t.prototype,"showErrorsAbovePanel",{get:function(){return this.isDefaultV2Theme&&!this.showPanelAsPage},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){if(this.isPage)return i.prototype.getCssError.call(this,e);var n=new te().append(i.prototype.getCssError.call(this,e)).append(e.panel.errorsContainer);return n.append("panel-error-root",n.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){i.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t.prototype.needResponsiveWidth=function(){return this.startWithNewLine?i.prototype.needResponsiveWidth.call(this):!0},t.prototype.focusIn=function(){this.survey&&this.survey.whenPanelFocusIn(this)},t.prototype.getHasFrameV2=function(){return i.prototype.getHasFrameV2.call(this)&&!this.showPanelAsPage},t.prototype.getIsNested=function(){return i.prototype.getIsNested.call(this)&&this.parent!==void 0},Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.expand=function(e){e===void 0&&(e=!0),this.forcusFirstQuestionOnExpand=e,i.prototype.expand.call(this)},t.prototype.onElementExpanded=function(e){var n=this;if(this.forcusFirstQuestionOnExpand&&this.survey!=null&&!this.isLoadingFromJson){var r=this.getFirstQuestionToFocus(!1);r&&setTimeout(function(){!n.isDisposed&&n.survey&&n.survey.scrollElementToTop(r,r,null,r.inputId,!1,{behavior:"smooth"})},e?0:15)}},t.prototype.getCssRoot=function(e){return new te().append(i.prototype.getCssRoot.call(this,e)).append(e.container).append(e.asPage,this.showPanelAsPage).append(e.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getContainerCss=function(){return this.getCssRoot(this.cssClasses.panel)},t.prototype.afterRenderCore=function(e){var n;i.prototype.afterRenderCore.call(this,e),this.isPanel&&((n=this.survey)===null||n===void 0||n.afterRenderPanel(this,e))},t}(pl);G.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"readOnly:boolean",overridingProperty:"enableIf"},"visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"questionTitleWidth",visibleIf:function(i){return!!i&&i.availableQuestionTitleWidth()}},{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"gridLayoutColumns:panellayoutcolumns",className:"panellayoutcolumn",isArray:!0,onSerializeValue:function(i){return i.getSerializableColumnsValue()},visibleIf:function(i){return!!i&&!!i.survey&&i.survey.gridLayoutEnabled}},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"questionsOrder",default:"default",choices:["default","initial","random"]},{name:"questionErrorLocation",default:"default",choices:["default","top","bottom"]}],function(){return new pl}),G.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"isRequired:switch",overridingProperty:"requiredIf"},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},{name:"width"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"maxWidth",defaultFunc:function(){return z.maxWidth}},{name:"colSpan:number",visible:!1,onSerializeValue:function(i){return i.getPropertyValue("colSpan")}},{name:"effectiveColSpan:number",minValue:1,isSerializable:!1,visibleIf:function(i){return!!i.survey&&i.survey.gridLayoutEnabled}},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3],visible:!1},{name:"page",isSerializable:!1,visibleIf:function(i){var t=i?i.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(i){var t=i?i.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"showNumber:boolean"},{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},{name:"questionStartIndex",visibleIf:function(i){return i.isPanel}},{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],function(){return new us},"panelbase"),er.Instance.registerElement("panel",function(i){return new us(i)});var Gp=function(){function i(t){this.page=t}return i.prototype.getDragDropInfo=function(){return this.dragDropInfo},i.prototype.dragDropStart=function(t,e,n){n===void 0&&(n=-1),this.dragDropInfo=new Nc(t,e,n)},i.prototype.dragDropMoveTo=function(t,e,n){if(e===void 0&&(e=!1),n===void 0&&(n=!1),!this.dragDropInfo||(this.dragDropInfo.destination=t,this.dragDropInfo.isBottom=e,this.dragDropInfo.isEdge=n,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert()))return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var r=this.page.dragDropFindRow(this.dragDropInfo.target);this.page.updateRowsRemoveElementFromRow(this.dragDropInfo.target,r)}return!1}return this.page.dragDropAddTarget(this.dragDropInfo),!0},i.prototype.correctDragDropInfo=function(t){if(t.destination){var e=t.destination.isPanel?t.destination:null;e&&(t.target.isLayoutTypeSupported(e.getChildrenLayoutType())||(t.isEdge=!0))}},i.prototype.dragDropAllowFromSurvey=function(){var t=this.dragDropInfo.destination;if(!t||!this.page.survey)return!0;var e=null,n=null,r=t.isPage||!this.dragDropInfo.isEdge&&t.isPanel?t:t.parent;if(!t.isPage){var o=t.parent;if(o){var s=o.elements,c=s.indexOf(t);c>-1&&(e=t,n=t,this.dragDropInfo.isBottom?e=c<s.length-1?s[c+1]:null:n=c>0?s[c-1]:null)}}var y={allow:!0,target:this.dragDropInfo.target,source:this.dragDropInfo.source,toElement:this.dragDropInfo.target,draggedElement:this.dragDropInfo.source,parent:r,fromElement:this.dragDropInfo.source?this.dragDropInfo.source.parent:null,insertAfter:n,insertBefore:e};return this.page.survey.dragAndDropAllow(y)},i.prototype.dragDropFinish=function(t){if(t===void 0&&(t=!1),!!this.dragDropInfo){var e=this.dragDropInfo.target,n=this.dragDropInfo.source,r=this.dragDropInfo.destination,o=this.page.dragDropFindRow(e),s=this.dragDropGetElementIndex(e,o);this.page.updateRowsRemoveElementFromRow(e,o);var c=[],y=[];if(!t&&o){var w=!1;if(this.page.isDesignModeV2){var N=n&&n.parent&&n.parent.dragDropFindRow(n);o.panel.elements[s]&&o.panel.elements[s].startWithNewLine&&o.elements.length>1&&o.panel.elements[s]===r&&(c.push(e),y.push(o.panel.elements[s])),e.startWithNewLine&&o.elements.length>1&&(!o.panel.elements[s]||!o.panel.elements[s].startWithNewLine)&&y.push(e),N&&N.elements[0]===n&&N.elements[1]&&c.push(N.elements[1]),o.elements.length<=1&&c.push(e),e.startWithNewLine&&o.elements.length>1&&o.elements[0]!==r&&y.push(e)}this.page.survey.startMovingQuestion(),n&&n.parent&&(w=o.panel==n.parent,w?(o.panel.dragDropMoveElement(n,e,s),s=-1):n.parent.removeElement(n)),s>-1&&o.panel.addElement(e,s),this.page.survey.stopMovingQuestion()}return c.map(function(Q){Q.startWithNewLine=!0}),y.map(function(Q){Q.startWithNewLine=!1}),this.dragDropInfo=null,t?null:e}},i.prototype.dragDropGetElementIndex=function(t,e){if(!e)return-1;var n=e.elements.indexOf(t);if(e.index==0)return n;var r=e.panel.rows[e.index-1],o=r.elements[r.elements.length-1];return n+e.panel.elements.indexOf(o)+1},i.prototype.dragDropCanDropTagert=function(){var t=this.dragDropInfo.destination;return!t||t.isPage?!0:this.dragDropCanDropCore(this.dragDropInfo.target,t)},i.prototype.dragDropCanDropSource=function(){var t=this.dragDropInfo.source;if(!t)return!0;var e=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(t,e))return!1;if(this.page.isDesignModeV2){var n=this.page.dragDropFindRow(t),r=this.page.dragDropFindRow(e);if(n!==r&&(!t.startWithNewLine&&e.startWithNewLine||t.startWithNewLine&&!e.startWithNewLine))return!0;var o=this.page.dragDropFindRow(e);if(o&&o.elements.length==1)return!0}return this.dragDropCanDropNotNext(t,e,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},i.prototype.dragDropCanDropCore=function(t,e){if(!e)return!0;if(this.dragDropIsSameElement(e,t))return!1;if(t.isPanel){var n=t;if(n.containsElement(e)||n.getElementByName(e.name))return!1}return!0},i.prototype.dragDropCanDropNotNext=function(t,e,n,r){if(!e||e.isPanel&&!n||typeof t.parent>"u"||t.parent!==e.parent)return!0;var o=t.parent,s=o.elements.indexOf(t),c=o.elements.indexOf(e);return c<s&&!r&&c--,r&&c++,s<c?c-s>1:s-c>0},i.prototype.dragDropIsSameElement=function(t,e){return t==e||t.name==e.name},i}(),ri=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),dl=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ii=function(i){ri(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.hasShownValue=!1,n.timeSpent=0,n._isReadyForClean=!0,n.createLocalizableString("navigationDescription",n,!0),n.dragDropPageHelper=new Gp(n),n}return t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!this.isPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!!this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return this.isPanel&&this.survey&&this.survey.state==="preview"&&!!this.parent&&!this.parent.isPanel},enumerable:!1,configurable:!0}),t.prototype.getElementsForRows=function(){var e,n=(e=this.survey)===null||e===void 0?void 0:e.currentSingleQuestion;return n?n.page===this?[n]:[]:i.prototype.getElementsForRows.call(this)},t.prototype.disposeElements=function(){this.isPageContainer||i.prototype.disposeElements.call(this)},t.prototype.onRemoveElement=function(e){this.isPageContainer?(e.parent=null,this.unregisterElementPropertiesChanged(e)):i.prototype.onRemoveElement.call(this,e)},t.prototype.getTemplate=function(){return this.isPanel?"panel":i.prototype.getTemplate.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){if(!this.canShowPageNumber()||!this.survey)return"";var e=this.isStartPage?"":this.num+". ";return this.survey.getUpdatedPageNo(this,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){return this.cssClasses.page.number},enumerable:!1,configurable:!0}),t.prototype.getCssTitleExpandableSvg=function(){return null},Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},t.prototype.canShowTitle=function(e){return!e||e.showPageTitles},t.prototype.setTitleValue=function(e){i.prototype.setTitleValue.call(this,e),this.navigationLocStrChanged()},Object.defineProperty(t.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(e){this.setLocalizableStringText("navigationTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationDescription",{get:function(){return this.getLocalizableStringText("navigationDescription")},set:function(e){this.setLocalizableStringText("navigationDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationDescription",{get:function(){return this.getLocalizableString("navigationDescription")},enumerable:!1,configurable:!0}),t.prototype.navigationLocStrChanged=function(){this.locNavigationTitle.isEmpty&&this.locTitle.strChanged(),this.locNavigationTitle.strChanged(),this.locNavigationDescription.strChanged()},t.prototype.getMarkdownHtml=function(e,n){var r=i.prototype.getMarkdownHtml.call(this,e,n);return n==="navigationTitle"&&this.canShowPageNumber()&&r?this.num+". "+r:r},Object.defineProperty(t.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(e){this.setPropertyValue("passed",e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!1,configurable:!0}),t.prototype.canRenderFirstRows=function(){return!this.isDesignMode||this.visibleIndex==0},Object.defineProperty(t.prototype,"isStartPage",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.isStartPage},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){if(this.isPanel)return i.prototype.calcCssClasses.call(this,e);var n={page:{},error:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:"",rowCompact:"",rowEnter:"",rowLeave:"",rowDelayedEnter:"",rowReplace:""};return this.copyCssClasses(n.page,e.page),this.copyCssClasses(n.error,e.error),e.pageTitle&&(n.pageTitle=e.pageTitle),e.pageDescription&&(n.pageDescription=e.pageDescription),e.row&&(n.row=e.row),e.pageRow&&(n.pageRow=e.pageRow),e.rowMultiple&&(n.rowMultiple=e.rowMultiple),e.rowCompact&&(n.rowCompact=e.rowCompact),e.rowEnter&&(n.rowEnter=e.rowEnter),e.rowDelayedEnter&&(n.rowDelayedEnter=e.rowDelayedEnter),e.rowLeave&&(n.rowLeave=e.rowLeave),e.rowReplace&&(n.rowReplace=e.rowReplace),this.survey&&this.survey.updatePageCssClasses(this,n),n},t.prototype.getCssPanelTitle=function(){return this.isPanel?i.prototype.getCssPanelTitle.call(this):this.cssClasses.page?new te().append(this.cssClasses.page.title).toString():""},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.isPanel||!this.cssClasses.page||!this.survey?"":new te().append(this.cssClasses.page.root).append(this.cssClasses.page.emptyHeaderRoot,!this.survey.renderedHasHeader&&!(this.survey.isShowProgressBarOnTop&&!this.survey.isStaring)).toString()},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){return this.isPanel?i.prototype.getCssError.call(this,e):new te().append(i.prototype.getCssError.call(this,e)).append(e.page.errorsContainer).toString()},Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return!!this.survey&&this.survey.currentPage===this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!1,configurable:!0}),t.prototype.setWasShown=function(e){if(e!=this.hasShownValue&&(this.hasShownValue=e,!(this.isDesignMode||e!==!0))){for(var n=this.elements,r=0;r<n.length;r++)n[r].isPanel&&n[r].randomizeElements(this.areQuestionsRandomized);this.randomizeElements(this.areQuestionsRandomized)}},t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getAllPanels=function(e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=new Array;return this.addPanelsIntoList(r,e,n),r},t.prototype.getPanels=function(e,n){return e===void 0&&(e=!1),n===void 0&&(n=!1),this.getAllPanels(e,n)},Object.defineProperty(t.prototype,"timeLimit",{get:function(){return this.getPropertyValue("timeLimit",0)},set:function(e){this.setPropertyValue("timeLimit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.timeLimit},set:function(e){this.timeLimit=e},enumerable:!1,configurable:!0}),t.prototype.getMaxTimeToFinish=function(){if(this.timeLimit!==0)return this.timeLimit;var e=this.survey?this.survey.timeLimitPerPage:0;return e>0?e:0},t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(i.prototype.onVisibleChanged.call(this),this.survey!=null&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.getDragDropInfo=function(){return this.dragDropPageHelper.getDragDropInfo()},t.prototype.dragDropStart=function(e,n,r){r===void 0&&(r=-1),this.dragDropPageHelper.dragDropStart(e,n,r)},t.prototype.dragDropMoveTo=function(e,n,r){return n===void 0&&(n=!1),r===void 0&&(r=!1),this.dragDropPageHelper.dragDropMoveTo(e,n,r)},t.prototype.dragDropFinish=function(e){return e===void 0&&(e=!1),this.dragDropPageHelper.dragDropFinish(e)},t.prototype.ensureRowsVisibility=function(){i.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach(function(e){return e.ensureRowsVisibility()})},Object.defineProperty(t.prototype,"isReadyForClean",{get:function(){return this._isReadyForClean},set:function(e){var n=this._isReadyForClean;this._isReadyForClean=e,this._isReadyForClean!==n&&this.isReadyForCleanChangedCallback&&this.isReadyForCleanChangedCallback()},enumerable:!1,configurable:!0}),t.prototype.enableOnElementRerenderedEvent=function(){i.prototype.enableOnElementRerenderedEvent.call(this),this.isReadyForClean=!1},t.prototype.disableOnElementRerenderedEvent=function(){i.prototype.disableOnElementRerenderedEvent.call(this),this.isReadyForClean=!0},dl([D({defaultValue:-1,onSet:function(e,n){return n.onNumChanged(e)}})],t.prototype,"num",void 0),t}(us);G.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"timeLimit:number",alternativeName:"maxTimeToFinish",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(i){return!!i.survey&&(i.survey.progressBarType==="buttons"||i.survey.showTOC)},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(i){return!!i.survey&&i.survey.progressBarType==="buttons"},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"state",visible:!1},{name:"isRequired",visible:!1},{name:"startWithNewLine",visible:!1},{name:"width",visible:!1},{name:"minWidth",visible:!1},{name:"maxWidth",visible:!1},{name:"colSpan",visible:!1,isSerializable:!1},{name:"effectiveColSpan:number",visible:!1,isSerializable:!1},{name:"innerIndent",visible:!1},{name:"indent",visible:!1},{name:"page",visible:!1,isSerializable:!1},{name:"showNumber",visible:!1},{name:"showQuestionNumbers",visible:!1},{name:"questionStartIndex",visible:!1},{name:"allowAdaptiveActions",visible:!1},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText",visible:!1}],function(){return new ii},"panel");var tr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Fc=function(i){tr(t,i);function t(e){var n=i.call(this)||this;return n.survey=e,n.onResize=n.addEvent(),n}return t.prototype.isListElementClickable=function(e){return!this.survey.onServerValidateQuestions||this.survey.onServerValidateQuestions.isEmpty||this.survey.checkErrorsMode==="onComplete"?!0:e<=this.survey.currentPageNo+1},t.prototype.getRootCss=function(e){e===void 0&&(e="center");var n=this.survey.css.progressButtonsContainerCenter;return this.survey.css.progressButtonsRoot&&(n+=" "+this.survey.css.progressButtonsRoot+" "+this.survey.css.progressButtonsRoot+"--"+(["footer","contentBottom"].indexOf(e)!==-1?"bottom":"top"),n+=" "+this.survey.css.progressButtonsRoot+"--"+(this.showItemTitles?"with-titles":"no-titles")),this.showItemNumbers&&this.survey.css.progressButtonsNumbered&&(n+=" "+this.survey.css.progressButtonsNumbered),this.isFitToSurveyWidth&&(n+=" "+this.survey.css.progressButtonsFitSurveyWidth),n},t.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return new te().append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[e].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===e).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(e)).toString()},t.prototype.getScrollButtonCss=function(e,n){return new te().append(this.survey.css.progressButtonsImageButtonLeft,n).append(this.survey.css.progressButtonsImageButtonRight,!n).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},t.prototype.clickListElement=function(e){e instanceof ii||(e=this.survey.visiblePages[e]),this.survey.tryNavigateToPage(e)},t.prototype.isListContainerHasScroller=function(e){var n=e.querySelector("."+this.survey.css.progressButtonsListContainer);return n?n.scrollWidth>n.offsetWidth:!1},t.prototype.isCanShowItemTitles=function(e){var n=e.querySelector("ul");if(!n||n.children.length<2)return!0;if(n.clientWidth>n.parentElement.clientWidth)return!1;for(var r=n.children[0].clientWidth,o=0;o<n.children.length;o++)if(Math.abs(n.children[o].clientWidth-r)>5)return!1;return!0},t.prototype.clearConnectorsWidth=function(e){for(var n=e.querySelectorAll(".sd-progress-buttons__connector"),r=0;r<n.length;r++)n[r].style.width=""},t.prototype.adjustConnectors=function(e){var n=e.querySelector("ul");if(n)for(var r=e.querySelectorAll(".sd-progress-buttons__connector"),o=this.showItemNumbers?36:20,s=(n.clientWidth-o)/(n.children.length-1)-o,c=0;c<r.length;c++)r[c].style.width=s+"px"},Object.defineProperty(t.prototype,"isFitToSurveyWidth",{get:function(){return tn.currentType!=="defaultV2"?!1:this.survey.progressBarInheritWidthFrom==="survey"&&this.survey.widthMode=="static"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressWidth",{get:function(){return this.isFitToSurveyWidth?this.survey.renderedWidth:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemNumbers",{get:function(){return tn.currentType!=="defaultV2"?!1:this.survey.progressBarShowPageNumbers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemTitles",{get:function(){return tn.currentType!=="defaultV2"?!0:this.survey.progressBarShowPageTitles},enumerable:!1,configurable:!0}),t.prototype.getItemNumber=function(e){var n="";return this.showItemNumbers&&(n+=this.survey.visiblePages.indexOf(e)+1),n},Object.defineProperty(t.prototype,"headerText",{get:function(){return this.survey.currentPage?this.survey.currentPage.renderedNavigationTitle:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.processResponsiveness=function(e){this.onResize.fire(this,{width:e})},t}(Je),kc=function(){function i(t,e,n){var r=this;this.model=t,this.element=e,this.viewModel=n,this.criticalProperties=["progressBarType","progressBarShowPageTitles"],this.canShowItemTitles=!0,this.processResponsiveness=function(o,s){if(r.viewModel.onUpdateScroller(o.isListContainerHasScroller(r.element)),r.model.clearConnectorsWidth(r.element),!o.showItemTitles){r.model.adjustConnectors(r.element);return}if(o.survey.isMobile){r.prevWidth=s.width,r.canShowItemTitles=!1,r.model.adjustConnectors(r.element),r.viewModel.onResize(r.canShowItemTitles);return}r.timer!==void 0&&clearTimeout(r.timer),r.timer=setTimeout(function(){(r.prevWidth===void 0||r.prevWidth<s.width&&!r.canShowItemTitles||r.prevWidth>s.width&&r.canShowItemTitles)&&(r.prevWidth=s.width,r.canShowItemTitles=o.isCanShowItemTitles(r.element),r.viewModel.onResize(r.canShowItemTitles),r.timer=void 0)},10)},this.model.survey.registerFunctionOnPropertiesValueChanged(this.criticalProperties,function(){return r.forceUpdate()},"ProgressButtonsResponsivityManager"+this.viewModel.container),this.model.onResize.add(this.processResponsiveness),this.forceUpdate()}return i.prototype.forceUpdate=function(){this.viewModel.onUpdateSettings(),this.processResponsiveness(this.model,{})},i.prototype.dispose=function(){clearTimeout(this.timer),this.model.onResize.remove(this.processResponsiveness),this.model.survey.unRegisterFunctionOnPropertiesValueChanged(this.criticalProperties,"ProgressButtonsResponsivityManager"+this.viewModel.container),this.element=void 0,this.model=void 0},i}();function Qc(i,t){return i.isDesignMode||t.focusFirstQuestion(),!0}function ls(i){if(i.parentQuestion)return ls(i.parentQuestion);for(var t=i.parent;t&&t.getType()!=="page"&&t.parent;)t=t.parent;return t&&t.getType()==="page"?t:null}function oi(i,t){var e=hl(i,t),n={items:e,searchEnabled:!1,locOwner:i},r=new dr(n);r.allowSelection=!1;var o=function(s,c){r.selectedItem=!!s&&r.actions.filter(function(y){return y.id===s.name})[0]||c};return o(i.currentPage,e[0]),i.onCurrentPageChanged.add(function(s,c){o(i.currentPage)}),i.onFocusInQuestion.add(function(s,c){o(ls(c.question))}),i.registerFunctionOnPropertyValueChanged("pages",function(){r.setItems(hl(i,t))},"toc"),r}function hl(i,t){var e=i.pages,n=(e||[]).map(function(r){return new pt({id:r.name,locTitle:r.locNavigationTitle,action:function(){if(M.activeElementBlur(),t&&t(),r.isPage)return i.tryNavigateToPage(r)},visible:new Lt(function(){return r.isVisible&&!r.isStartPage})})});return n}function Hc(i,t){t===void 0&&(t=!1);var e=jr.RootStyle;return t?e+" "+jr.RootStyle+"--mobile":(e+=" "+jr.RootStyle+"--"+(i.tocLocation||"").toLowerCase(),jr.StickyPosition&&(e+=" "+jr.RootStyle+"--sticky"),e)}var jr=function(){function i(t){var e=this;this.survey=t,this.icon="icon-navmenu_24x24",this.togglePopup=function(){e.popupModel.toggleVisibility()},this.listModel=oi(t,function(){e.popupModel.isVisible=!1}),this.popupModel=new vi("sv-list",{model:this.listModel}),this.popupModel.overlayDisplayMode="plain",this.popupModel.displayMode=new Lt(function(){return e.isMobile?"overlay":"popup"}),i.StickyPosition&&(t.onAfterRenderSurvey.add(function(n,r){return e.initStickyTOCSubscriptions(r.htmlElement)}),this.initStickyTOCSubscriptions(t.rootElement))}return i.prototype.initStickyTOCSubscriptions=function(t){var e=this;i.StickyPosition&&t&&(t.addEventListener("scroll",function(n){e.updateStickyTOCSize(t)}),this.updateStickyTOCSize(t))},i.prototype.updateStickyTOCSize=function(t){if(t){var e=t.querySelector("."+i.RootStyle);if(e&&(e.style.height="",!this.isMobile&&i.StickyPosition&&t)){var n=t.getBoundingClientRect().height,r=this.survey.headerView==="advanced"?".sv-header":".sv_custom_header+div div."+(this.survey.css.title||"sd-title"),o=t.querySelector(r),s=o?o.getBoundingClientRect().height:0,c=t.scrollTop>s?0:s-t.scrollTop;e.style.height=n-c-1+"px"}}},Object.defineProperty(i.prototype,"isMobile",{get:function(){return this.survey.isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"containerCss",{get:function(){return Hc(this.survey,this.isMobile)},enumerable:!1,configurable:!0}),i.prototype.dispose=function(){this.survey.unRegisterFunctionOnPropertyValueChanged("pages","toc"),this.popupModel.dispose(),this.listModel.dispose()},i.RootStyle="sv_progress-toc",i.StickyPosition=!0,i}(),Jp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),St=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},zt=function(i){Jp(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;r.valuesHash={},r.variablesHash={},r.onTriggerExecuted=r.addEvent(),r.onCompleting=r.addEvent(),r.onComplete=r.addEvent(),r.onShowingPreview=r.addEvent(),r.onNavigateToUrl=r.addEvent(),r.onStarted=r.addEvent(),r.onPartialSend=r.addEvent(),r.onCurrentPageChanging=r.addEvent(),r.onCurrentPageChanged=r.addEvent(),r.onValueChanging=r.addEvent(),r.onValueChanged=r.addEvent(),r.onVariableChanged=r.addEvent(),r.onQuestionVisibleChanged=r.addEvent(),r.onVisibleChanged=r.onQuestionVisibleChanged,r.onPageVisibleChanged=r.addEvent(),r.onPanelVisibleChanged=r.addEvent(),r.onQuestionCreated=r.addEvent(),r.onQuestionAdded=r.addEvent(),r.onQuestionRemoved=r.addEvent(),r.onPanelAdded=r.addEvent(),r.onPanelRemoved=r.addEvent(),r.onPageAdded=r.addEvent(),r.onValidateQuestion=r.addEvent(),r.onSettingQuestionErrors=r.addEvent(),r.onServerValidateQuestions=r.addEvent(),r.onValidatePanel=r.addEvent(),r.onErrorCustomText=r.addEvent(),r.onValidatedErrorsOnCurrentPage=r.addEvent(),r.onProcessHtml=r.addEvent(),r.onGetQuestionDisplayValue=r.addEvent(),r.onGetQuestionTitle=r.addEvent(),r.onGetTitleTagName=r.addEvent(),r.onGetQuestionNumber=r.addEvent(),r.onGetQuestionNo=r.onGetQuestionNumber,r.onGetPanelNumber=r.addEvent(),r.onGetPageNumber=r.addEvent(),r.onGetProgressText=r.addEvent(),r.onProgressText=r.onGetProgressText,r.onTextMarkdown=r.addEvent(),r.onTextRenderAs=r.addEvent(),r.onSendResult=r.addEvent(),r.onGetResult=r.addEvent(),r.onOpenFileChooser=r.addEvent(),r.onUploadFiles=r.addEvent(),r.onDownloadFile=r.addEvent(),r.onClearFiles=r.addEvent(),r.onLoadChoicesFromServer=r.addEvent(),r.onLoadedSurveyFromService=r.addEvent(),r.onProcessTextValue=r.addEvent(),r.onUpdateQuestionCssClasses=r.addEvent(),r.onUpdatePanelCssClasses=r.addEvent(),r.onUpdatePageCssClasses=r.addEvent(),r.onUpdateChoiceItemCss=r.addEvent(),r.onAfterRenderSurvey=r.addEvent(),r.onAfterRenderHeader=r.addEvent(),r.onAfterRenderPage=r.addEvent(),r.onAfterRenderQuestion=r.addEvent(),r.onAfterRenderQuestionInput=r.addEvent(),r.onAfterRenderPanel=r.addEvent(),r.onFocusInQuestion=r.addEvent(),r.onFocusInPanel=r.addEvent(),r.onShowingChoiceItem=r.addEvent(),r.onChoicesLazyLoad=r.addEvent(),r.onChoicesSearch=r.addEvent(),r.onGetChoiceDisplayValue=r.addEvent(),r.onMatrixRowAdded=r.addEvent(),r.onMatrixRowAdding=r.addEvent(),r.onMatrixBeforeRowAdded=r.onMatrixRowAdding,r.onMatrixRowRemoving=r.addEvent(),r.onMatrixRowRemoved=r.addEvent(),r.onMatrixRenderRemoveButton=r.addEvent(),r.onMatrixAllowRemoveRow=r.onMatrixRenderRemoveButton,r.onMatrixDetailPanelVisibleChanged=r.addEvent(),r.onMatrixCellCreating=r.addEvent(),r.onMatrixCellCreated=r.addEvent(),r.onAfterRenderMatrixCell=r.addEvent(),r.onMatrixAfterCellRender=r.onAfterRenderMatrixCell,r.onMatrixCellValueChanged=r.addEvent(),r.onMatrixCellValueChanging=r.addEvent(),r.onMatrixCellValidate=r.addEvent(),r.onMatrixColumnAdded=r.addEvent(),r.onMultipleTextItemAdded=r.addEvent(),r.onDynamicPanelAdded=r.addEvent(),r.onDynamicPanelRemoved=r.addEvent(),r.onDynamicPanelRemoving=r.addEvent(),r.onTimerTick=r.addEvent(),r.onTimer=r.onTimerTick,r.onTimerPanelInfoText=r.addEvent(),r.onDynamicPanelItemValueChanged=r.addEvent(),r.onGetDynamicPanelTabTitle=r.addEvent(),r.onDynamicPanelCurrentIndexChanged=r.addEvent(),r.onCheckAnswerCorrect=r.addEvent(),r.onIsAnswerCorrect=r.onCheckAnswerCorrect,r.onDragDropAllow=r.addEvent(),r.onScrollToTop=r.addEvent(),r.onScrollingElementToTop=r.onScrollToTop,r.onLocaleChangedEvent=r.addEvent(),r.onGetQuestionTitleActions=r.addEvent(),r.onGetPanelTitleActions=r.addEvent(),r.onGetPageTitleActions=r.addEvent(),r.onGetPanelFooterActions=r.addEvent(),r.onGetMatrixRowActions=r.addEvent(),r.onElementContentVisibilityChanged=r.addEvent(),r.onGetExpressionDisplayValue=r.addEvent(),r.onPopupVisibleChanged=r.addEvent(),r.onOpenDropdownMenu=r.addEvent(),r.onElementWrapperComponentName=r.addEvent(),r.onElementWrapperComponentData=r.addEvent(),r.jsonErrors=null,r.cssValue=null,r.showHeaderOnCompletePage="auto",r._isLazyRenderingSuspended=!1,r.hideRequiredErrors=!1,r.cssVariables={},r._isMobile=!1,r._isCompact=!1,r.setValueOnExpressionCounter=0,r._isDesignMode=!1,r.validationAllowSwitchPages=!1,r.validationAllowComplete=!1,r.isNavigationButtonPressed=!1,r.mouseDownPage=null,r.isCalculatingProgressText=!1,r.isSmoothScrollEnabled=!1,r.onResize=new Tn,r.isCurrentPageRendering=!0,r.isCurrentPageRendered=void 0,r.skeletonHeight=void 0,r.isTriggerIsRunning=!1,r.triggerValues=null,r.triggerKeys=null,r.conditionValues=null,r.isValueChangedOnRunningCondition=!1,r.conditionRunnerCounter=0,r.conditionUpdateVisibleIndexes=!1,r.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,r.isEndLoadingFromJson=null,r.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},r.setValueFromTriggerCounter=0,r.needRenderIcons=!0,r.skippedPages=[],r.skeletonComponentName="sv-skeleton",r.taskManager=new Wp,r.questionErrorComponent="sv-question-error",r.onBeforeRunConstructor();var o=function(c){return"<h3>"+c+"</h3>"};r.createHtmlLocString("completedHtml","completingSurvey",o),r.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",o,"completed-before"),r.createHtmlLocString("loadingHtml","loadingSurvey",o,"loading"),r.createLocalizableString("emptySurveyText",r,!0,"emptySurvey"),r.createLocalizableString("logo",r,!1),r.createLocalizableString("startSurveyText",r,!1,!0),r.createLocalizableString("pagePrevText",r,!1,!0),r.createLocalizableString("pageNextText",r,!1,!0),r.createLocalizableString("completeText",r,!1,!0),r.createLocalizableString("previewText",r,!1,!0),r.createLocalizableString("editText",r,!1,!0),r.createLocalizableString("questionTitleTemplate",r,!0),r.timerModelValue=new Mc(r),r.timerModelValue.onTimerTick=function(c){r.doTimer(c)},r.createNewArray("pages",function(c){c.isReadyForCleanChangedCallback&&c.isReadyForCleanChangedCallback(),r.doOnPageAdded(c)},function(c){c.isReadyForClean?r.doOnPageRemoved(c):c.isReadyForCleanChangedCallback=function(){r.doOnPageRemoved(c),c.isReadyForCleanChangedCallback=void 0}}),r.createNewArray("triggers",function(c){c.setOwner(r)}),r.createNewArray("calculatedValues",function(c){c.setOwner(r)}),r.createNewArray("completedHtmlOnCondition",function(c){c.locOwner=r}),r.createNewArray("navigateToUrlOnCondition",function(c){c.locOwner=r}),r.registerPropertyChangedHandlers(["locale"],function(){r.onSurveyLocaleChanged()}),r.registerPropertyChangedHandlers(["firstPageIsStarted"],function(){r.onFirstPageIsStartedChanged()}),r.registerPropertyChangedHandlers(["mode"],function(){r.onModeChanged()}),r.registerPropertyChangedHandlers(["progressBarType"],function(){r.updateProgressText()}),r.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],function(){r.resetVisibleIndexes()}),r.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage","isShowingPreview"],function(){r.updateState()}),r.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],function(){r.onStateAndCurrentPageChanged()}),r.registerPropertyChangedHandlers(["logo","logoPosition"],function(){r.updateHasLogo()}),r.registerPropertyChangedHandlers(["backgroundImage"],function(){r.updateRenderBackgroundImage()}),r.registerPropertyChangedHandlers(["renderBackgroundImage","backgroundOpacity","backgroundImageFit","fitToContainer","backgroundImageAttachment"],function(){r.updateBackgroundImageStyle()}),r.registerPropertyChangedHandlers(["showPrevButton","showCompleteButton"],function(){r.updateButtonsVisibility()}),r.onGetQuestionNumber.onCallbacksChanged=function(){r.resetVisibleIndexes()},r.onGetPanelNumber.onCallbacksChanged=function(){r.resetVisibleIndexes()},r.onGetProgressText.onCallbacksChanged=function(){r.updateProgressText()},r.onTextMarkdown.onCallbacksChanged=function(){r.locStrsChanged()},r.onProcessHtml.onCallbacksChanged=function(){r.locStrsChanged()},r.onGetQuestionTitle.onCallbacksChanged=function(){r.locStrsChanged()},r.onUpdatePageCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onUpdatePanelCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onUpdateQuestionCssClasses.onCallbacksChanged=function(){r.currentPage&&r.currentPage.updateElementCss()},r.onShowingChoiceItem.onCallbacksChanged=function(){r.rebuildQuestionChoices()},r.navigationBarValue=r.createNavigationBar(),r.navigationBar.locOwner=r,r.onBeforeCreating(),e&&((typeof e=="string"||e instanceof String)&&(e=JSON.parse(e)),e&&e.clientId&&(r.clientId=e.clientId),r.fromJSON(e),r.surveyId&&r.loadSurveyFromService(r.surveyId,r.clientId)),r.onCreating(),n&&r.render(n),r.updateCss(),r.setCalculatedWidthModeUpdater(),r.notifier=new _c(r.css.saveData),r.notifier.addAction(r.createTryAgainAction(),"error"),r.onPopupVisibleChanged.add(function(c,y){y.visible?r.onScrollCallback=function(){y.popup.hide()}:r.onScrollCallback=void 0}),r.progressBarValue=new Fc(r),r.layoutElements.push({id:"timerpanel",template:"survey-timerpanel",component:"sv-timerpanel",data:r.timerModel}),r.layoutElements.push({id:"progress-buttons",component:"sv-progress-buttons",data:r.progressBar,processResponsiveness:function(c){return r.progressBar.processResponsiveness&&r.progressBar.processResponsiveness(c)}}),r.layoutElements.push({id:"progress-questions",component:"sv-progress-questions",data:r}),r.layoutElements.push({id:"progress-pages",component:"sv-progress-pages",data:r}),r.layoutElements.push({id:"progress-correctquestions",component:"sv-progress-correctquestions",data:r}),r.layoutElements.push({id:"progress-requiredquestions",component:"sv-progress-requiredquestions",data:r});var s=new jr(r);return r.addLayoutElement({id:"toc-navigation",component:"sv-navigation-toc",data:s,processResponsiveness:function(c){return s.updateStickyTOCSize(r.rootElement)}}),r.layoutElements.push({id:"buttons-navigation",component:"sv-action-bar",data:r.navigationBar}),r.locTitle.onStringChanged.add(function(){return r.titleIsEmpty=r.locTitle.isEmpty}),r}return Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentSuffix",{get:function(){return z.commentSuffix},set:function(e){z.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return this.commentSuffix},set:function(e){this.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sjsVersion",{get:function(){return this.getPropertyValue("sjsVersion")},set:function(e){this.setPropertyValue("sjsVersion",e)},enumerable:!1,configurable:!0}),t.prototype.processClosedPopup=function(e,n){throw new Error("Method not implemented.")},t.prototype.createTryAgainAction=function(){var e=this;return{id:"save-again",title:this.getLocalizationString("saveAgainButton"),action:function(){e.isCompleted?e.saveDataOnComplete():e.doComplete()}}},t.prototype.createHtmlLocString=function(e,n,r,o){var s=this,c=this.createLocalizableString(e,this,!1,n);c.onGetLocalizationTextCallback=r,o&&(c.onGetTextCallback=function(y){return s.processHtml(y,o)})},t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,n,r){e==="questionsOnPageMode"&&this.onQuestionsOnPageModeChanged(n)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.render=function(e){this.renderCallback&&this.renderCallback()},t.prototype.updateSurvey=function(e,n){var r=function(){if(s=="model"||s=="children")return"continue";if(s.indexOf("on")==0&&o[s]&&o[s].add){var c=e[s],y=function(w,N){c(w,N)};o[s].add(y)}else o[s]=e[s]},o=this;for(var s in e)r();e&&e.data&&this.onValueChanged.add(function(c,y){e.data[y.name]=y.value})},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=new te().append(this.css.body).append(this.css.completedPage).toString(),this.completedBeforeCss=new te().append(this.css.body).append(this.css.completedBeforePage).toString(),this.loadingBodyCss=new te().append(this.css.body).append(this.css.bodyLoading).toString()},t.prototype.updateCss=function(){this.rootCss=this.getRootCss(),this.updateNavigationCss(),this.updateCompletedPageCss(),this.updateWrapperFormCss()},Object.defineProperty(t.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,tn.getCss())),this.cssValue},set:function(e){this.setCss(e)},enumerable:!1,configurable:!0}),t.prototype.setCss=function(e,n){n===void 0&&(n=!0),n?this.mergeValues(e,this.css):this.cssValue=e,this.updateElementCss(!1)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.css.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.complete)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.preview)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.prev)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.next)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssSurveyNavigationButton",{get:function(){return new te().append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return new te().append(this.css.body).append(this.css.bodyWithTimer,this.showTimer&&this.state==="running").append(this.css.body+"--"+this.calculatedWidthMode).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyContainerCss",{get:function(){return this.css.bodyContainer},enumerable:!1,configurable:!0}),t.prototype.insertAdvancedHeader=function(e){e.survey=this,this.layoutElements.push({id:"advanced-header",container:"header",component:"sv-header",index:-100,data:e,processResponsiveness:function(n){return e.processResponsiveness(n)}})},t.prototype.getNavigationCss=function(e,n){return new te().append(e).append(n).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return this.lazyRenderingValue===!0},set:function(e){if(this.lazyRendering!==e){this.lazyRenderingValue=e;var n=this.currentPage;n&&n.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||z.lazyRender.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lazyRenderingFirstBatchSize",{get:function(){return this.lazyRenderingFirstBatchSizeValue||z.lazyRender.firstBatchSize},set:function(e){this.lazyRenderingFirstBatchSizeValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRenderingSuspended",{get:function(){return this._isLazyRenderingSuspended},enumerable:!1,configurable:!0}),t.prototype.suspendLazyRendering=function(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!0)},t.prototype.releaseLazyRendering=function(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!1)},t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&Vi(e.id)}},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext")},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving")},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic")},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError")},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){(e===!0||e===void 0)&&(e="bottom"),e===!1&&(e="none"),this.setPropertyValue("showNavigationButtons",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton")},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompleteButton",{get:function(){return this.getPropertyValue("showCompleteButton",!0)},set:function(e){this.setPropertyValue("showCompleteButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTOC",{get:function(){return this.getPropertyValue("showTOC")},set:function(e){this.setPropertyValue("showTOC",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tocLocation",{get:function(){return this.getPropertyValue("tocLocation")},set:function(e){this.setPropertyValue("tocLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles")},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage")},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),n=e?e.url:this.navigateToUrl;return n&&(n=this.processText(n,!1)),n},t.prototype.navigateTo=function(){var e=this.getNavigateToUrl(),n={url:e,allow:!0};this.onNavigateToUrl.fire(this,n),!(!n.url||!n.allow)&&Dr(n.url)},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!1,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,n){this.makeRequiredErrorsInvisible(n),this.onSettingQuestionErrors.fire(this,{question:e,errors:n})},t.prototype.beforeSettingPanelErrors=function(e,n){this.makeRequiredErrorsInvisible(n)},t.prototype.makeRequiredErrorsInvisible=function(e){if(this.hideRequiredErrors)for(var n=0;n<e.length;n++){var r=e[n].getErrorType();(r=="required"||r=="requireoneanswer")&&(e[n].visible=!1)}},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength")},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength")},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic")},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic")},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validateVisitedEmptyFields",{get:function(){return this.getPropertyValue("validateVisitedEmptyFields")},set:function(e){this.setPropertyValue("validateVisitedEmptyFields",e)},enumerable:!1,configurable:!0}),t.prototype.getValidateVisitedEmptyFields=function(){return this.validateVisitedEmptyFields&&this.isValidateOnValueChange},Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.getPropertyValue("autoGrowComment")},set:function(e){this.setPropertyValue("autoGrowComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.getPropertyValue("allowResizeComment")},set:function(e){this.setPropertyValue("allowResizeComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentAreaRows",{get:function(){return this.getPropertyValue("commentAreaRows")},set:function(e){this.setPropertyValue("commentAreaRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){e===!0&&(e="onComplete"),e===!1&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){e===void 0&&(e=!1);for(var n=0;n<this.pages.length;n++)this.pages[n].clearIncorrectValues();if(e){var r=this.data,o=!1;for(var s in r)if(!this.getQuestionByValueName(s)&&!(this.iscorrectValueWithPostPrefix(s,z.commentSuffix)||this.iscorrectValueWithPostPrefix(s,z.matrix.totalsSuffix))){var c=this.getCalculatedValueByName(s);c&&c.includeIntoResult||(o=!0,delete r[s])}o&&(this.data=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,n){return e.indexOf(n)!==e.length-n.length?!1:!!this.getQuestionByValueName(e.substring(0,e.indexOf(n)))},Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues")},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this.getPropertyValueWithoutDefault("locale")||H.currentLocale},set:function(e){e===H.defaultLocale&&!H.currentLocale&&(e=""),this.setPropertyValue("locale",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLocaleChanged=function(){this.notifyElementsOnAnyValueOrVariableChanged("locale"),this.localeChanged(),this.onLocaleChangedEvent.fire(this,this.locale)},Object.defineProperty(t.prototype,"localeDir",{get:function(){return H.localeDirections[this.locale]},enumerable:!1,configurable:!0}),t.prototype.getUsedLocales=function(){var e=new Array;this.addUsedLocales(e);var n=e.indexOf("default");if(n>-1){var r=H.defaultLocale,o=e.indexOf(r);o>-1&&e.splice(o,1),n=e.indexOf("default"),e[n]=r}return e},t.prototype.localeChanged=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].localeChanged()},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){if(!this.isClearingUnsedValues&&(i.prototype.locStrsChanged.call(this),!!this.currentPage)){if(this.isDesignMode)this.pages.forEach(function(o){return o.locStrsChanged()});else{var e=this.activePage;e&&e.locStrsChanged();for(var n=this.visiblePages,r=0;r<n.length;r++)n[r].navigationLocStrChanged()}this.isShowStartingPage||this.updateProgressText(),this.navigationBar.locStrsChanged()}},t.prototype.getMarkdownHtml=function(e,n){return this.getSurveyMarkdownHtml(this,e,n)},t.prototype.getRenderer=function(e){return this.getRendererForString(this,e)},t.prototype.getRendererContext=function(e){return this.getRendererContextForString(this,e)},t.prototype.getRendererForString=function(e,n){var r=this.getBuiltInRendererForString(e,n);r=this.elementWrapperComponentNameCore(r,e,"string",n);var o={element:e,name:n,renderAs:r};return this.onTextRenderAs.fire(this,o),o.renderAs},t.prototype.getRendererContextForString=function(e,n){return this.elementWrapperDataCore(n,e,"string")},t.prototype.getExpressionDisplayValue=function(e,n,r){var o={question:e,value:n,displayValue:r};return this.onGetExpressionDisplayValue.fire(this,o),o.displayValue},t.prototype.getBuiltInRendererForString=function(e,n){if(this.isDesignMode)return ut.editableRenderer},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return this.getLocalizationString(e)},t.prototype.getErrorCustomText=function(e,n){return this.getSurveyErrorCustomText(this,e,n)},t.prototype.getSurveyErrorCustomText=function(e,n,r){var o={text:n,name:r.getErrorType(),obj:e,error:r};return this.onErrorCustomText.fire(this,o),o.text},t.prototype.getQuestionDisplayValue=function(e,n){var r={question:e,displayValue:n};return this.onGetQuestionDisplayValue.fire(this,r),r.displayValue},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocalizableStringText("emptySurveyText")},set:function(e){this.setLocalizableStringText("emptySurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){return this.getPropertyValue("logoWidth")},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoWidth",{get:function(){return this.logoWidth?Ut(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoWidth",{get:function(){return this.logoWidth?Zo(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){return this.getPropertyValue("logoHeight")},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoHeight",{get:function(){return this.logoHeight?Ut(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoHeight",{get:function(){return this.logoHeight?Zo(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return this.getPropertyValue("hasLogo",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasLogo=function(){this.setPropertyValue("hasLogo",!!this.logo&&this.logoPosition!=="none")},Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return this.isDesignMode?!1:this.renderedHasLogo&&(this.logoPosition==="left"||this.logoPosition==="top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&(this.logoPosition==="right"||this.logoPosition==="bottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){var e={left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"};return new te().append(this.css.logo).append(e[this.logoPosition]).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasTitle",{get:function(){return this.isDesignMode?this.isPropertyVisible("title"):!this.titleIsEmpty&&this.showTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasDescription",{get:function(){return this.isDesignMode?this.isPropertyVisible("description"):!!this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.renderedHasTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasLogo",{get:function(){return this.isDesignMode?this.isPropertyVisible("logo"):this.hasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasHeader",{get:function(){return this.renderedHasTitle||this.renderedHasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"themeVariables",{get:function(){return Object.assign({},this.cssVariables)},enumerable:!1,configurable:!0}),t.prototype.setIsMobile=function(e){e===void 0&&(e=!0),this._isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().forEach(function(n){return n.setIsMobile(e)}))},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this._isMobile&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompact",{get:function(){return this._isCompact},set:function(e){e!==this._isCompact&&(this._isCompact=e,this.updateElementCss(),this.triggerResponsiveness(!0))},enumerable:!1,configurable:!0}),t.prototype.isLogoImageChoosen=function(){return this.locLogo.renderedHtml},Object.defineProperty(t.prototype,"titleMaxWidth",{get:function(){if(!(Pi()||this.isMobile)&&!this.isValueEmpty(this.isLogoImageChoosen())&&!z.supportCreatorV2){var e=this.logoWidth;if(this.logoPosition==="left"||this.logoPosition==="right")return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),t.prototype.updateRenderBackgroundImage=function(){var e=this.backgroundImage;this.renderBackgroundImage=$o(e)},Object.defineProperty(t.prototype,"backgroundOpacity",{get:function(){return this.getPropertyValue("backgroundOpacity")},set:function(e){this.setPropertyValue("backgroundOpacity",e)},enumerable:!1,configurable:!0}),t.prototype.updateBackgroundImageStyle=function(){this.backgroundImageStyle={opacity:this.backgroundOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.backgroundImageFit,backgroundAttachment:this.fitToContainer?void 0:this.backgroundImageAttachment}},t.prototype.updateWrapperFormCss=function(){this.wrapperFormCss=new te().append(this.css.rootWrapper).append(this.css.rootWrapperHasImage,!!this.backgroundImage).append(this.css.rootWrapperFixed,!!this.backgroundImage&&this.backgroundImageAttachment==="fixed").toString()},Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.runExpression=function(e,n){if(!e)return null;var r=this.getFilteredValues(),o=this.getFilteredProperties(),s=new Ir(e),c=void 0;return s.onRunComplete=function(y){c=y,n&&n(y)},s.run(r,o)||c},Object.defineProperty(t.prototype,"isSettingValueOnExpression",{get:function(){return this.setValueOnExpressionCounter>0},enumerable:!1,configurable:!0}),t.prototype.startSetValueOnExpression=function(){this.setValueOnExpressionCounter++},t.prototype.finishSetValueOnExpression=function(){this.setValueOnExpressionCounter--},t.prototype.runCondition=function(e){if(!e)return!1;var n=this.getFilteredValues(),r=this.getFilteredProperties();return new pn(e).run(n,r)},t.prototype.runTriggers=function(){this.checkTriggers(this.getFilteredValues(),!1)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml},enumerable:!1,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(e.length==0)return null;for(var n=this.getFilteredValues(),r=this.getFilteredProperties(),o=0;o<e.length;o++)if(e[o].runCondition(n,r))return e[o];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultLoadingHtml",{get:function(){return"<h3>"+this.getLocalizationString("loadingSurvey")+"</h3>"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationBar",{get:function(){return this.navigationBarValue},enumerable:!1,configurable:!0}),t.prototype.addNavigationItem=function(e){return e.component||(e.component="sv-nav-btn"),e.innerCss||(e.innerCss=this.cssSurveyNavigationButton),this.navigationBar.addAction(e)},Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText")},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText")},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText")},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText")},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText")},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText")},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!1,configurable:!0}),t.prototype.getElementTitleTagName=function(e,n){if(this.onGetTitleTagName.isEmpty)return n;var r={element:e,tagName:n};return this.onGetTitleTagName.fire(this,r),r.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){e!=="numRequireTitle"&&e!=="requireNumTitle"&&e!="numTitle"&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=new Array,n=this.getLocalizationString("questionTitlePatternText"),r=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:r+" "+n+" "+this.requiredText}),e.push({value:"numRequireTitle",text:r+" "+this.requiredText+" "+n}),e.push({value:"numTitle",text:r+" "+n}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!1,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var n=[];e.indexOf("{")>-1;){e=e.substring(e.indexOf("{")+1);var r=e.indexOf("}");if(r<0)break;n.push(e.substring(0,r)),e=e.substring(r+1)}if(n.length>1){if(n[0]=="require")return"requireNumTitle";if(n[1]=="require"&&n.length==3)return"numRequireTitle";if(n.indexOf("require")<0)return"numTitle"}if(n.length==1&&n[0]=="title")return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,n,r,o){if(n="{"+n+"}",!e||e.indexOf(n)<0)return r;for(var s=e.indexOf(n),c="",y="",w=s-1;w>=0&&e[w]!="}";w--);for(w<s-1&&(c=e.substring(w+1,s)),s+=n.length,w=s;w<e.length&&e[w]!="{";w++);for(w>s&&(y=e.substring(s,w)),w=0;w<c.length&&c.charCodeAt(w)<33;)w++;for(c=c.substring(w),w=y.length-1;w>=0&&y.charCodeAt(w)<33;)w--;if(y=y.substring(0,w+1),!c&&!y)return r;var N=r||o;return c+N+y},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,n){if(this.onGetQuestionTitle.isEmpty)return n;var r={question:e,title:n};return this.onGetQuestionTitle.fire(this,r),r.title},t.prototype.getUpdatedQuestionNo=function(e,n){if(this.onGetQuestionNumber.isEmpty)return n;var r={question:e,number:n,no:n};return this.onGetQuestionNumber.fire(this,r),r.no===n?r.number:r.no},t.prototype.getUpdatedPanelNo=function(e,n){if(this.onGetPanelNumber.isEmpty)return n;var r={panel:e,number:n};return this.onGetPanelNumber.fire(this,r),r.number},t.prototype.getUpdatedPageNo=function(e,n){if(this.onGetPageNumber.isEmpty)return n;var r={page:e,number:n};return this.onGetPageNumber.fire(this,r),r.number},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers")},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){e===!0&&(e="on"),e===!1&&(e="off"),e=e.toLowerCase(),e=e==="onpage"?"onPage":e,e!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBar",{get:function(){return this.progressBarValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){e==="correctquestion"&&(e="correctQuestion"),e==="requiredquestion"&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarComponentName",{get:function(){var e=this.progressBarType;return!z.legacyProgressBarView&&tn.currentType==="defaultV2"&&Nr(e,"pages")&&(e="buttons"),"progress-"+e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return this.canShowProresBar()?["auto","aboveheader","belowheader","topbottom","top","both"].indexOf(this.showProgressBar)!==-1:!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return this.canShowProresBar()?this.showProgressBar==="bottom"||this.showProgressBar==="both"||this.showProgressBar==="topbottom":!1},enumerable:!1,configurable:!0}),t.prototype.getProgressTypeComponent=function(){return"sv-progress-"+this.progressBarType.toLowerCase()},t.prototype.getProgressCssClasses=function(e){return e===void 0&&(e=""),new te().append(this.css.progress).append(this.css.progressTop,this.isShowProgressBarOnTop&&(!e||e=="header")).append(this.css.progressBottom,this.isShowProgressBarOnBottom&&(!e||e=="footer")).toString()},t.prototype.canShowProresBar=function(){return!this.isShowingPreview||this.showPreviewBeforeComplete!="showAllQuestions"},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(!0)},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.startedPage&&this.startedPage.updateElementCss(e);for(var n=this.visiblePages,r=0;r<n.length;r++)n[r].updateElementCss(e);this.updateCss()},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){e=e.toLowerCase(),e!=this.mode&&(e!="edit"&&e!="display"||this.setPropertyValue("mode",e))},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var n=this.pages[e];n.setPropertyValue("isReadOnly",n.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},n=this.getValuesKeys(),r=0;r<n.length;r++){var o=n[r],s=this.getDataValueCore(this.valuesHash,o);s!==void 0&&(e[o]=s)}return this.setCalculatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e,!e)},enumerable:!1,configurable:!0}),t.prototype.mergeData=function(e){if(e){var n=this.data;this.mergeValues(e,n),this.setDataCore(n)}},t.prototype.setDataCore=function(e,n){if(n===void 0&&(n=!1),n&&(this.valuesHash={}),e)for(var r in e){var o=typeof r=="string"?r.trim():r;this.setDataValueCore(this.valuesHash,o,e[r])}this.updateAllQuestionsValue(n),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions(),this.updateAllQuestionsValue(n)},Object.defineProperty(t.prototype,"isSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getData=function(e){var n=e||{includePages:!1,includePanels:!1};return!n.includePages&&!n.includePanels?this.data:this.getStructuredData(!!n.includePages,n.includePanels?-1:n.includePages?1:0)},t.prototype.getStructuredData=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=-1),n===0)return this.data;var r={};return this.pages.forEach(function(o){if(e){var s={};o.collectValues(s,n-1)&&(r[o.name]=s)}else o.collectValues(r,n)}),r},t.prototype.setStructuredData=function(e,n){if(n===void 0&&(n=!1),!!e){var r={};for(var o in e){var s=this.getQuestionByValueName(o);if(s)r[o]=e[o];else{var c=this.getPageByName(o);c||(c=this.getPanelByName(o)),c&&this.collectDataFromPanel(c,r,e[o])}}n?this.mergeData(r):this.data=r}},t.prototype.collectDataFromPanel=function(e,n,r){for(var o in r){var s=e.getElementByName(o);s&&(s.isPanel?this.collectDataFromPanel(s,n,r[o]):n[o]=r[o])}},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var n=this;if(this.editingObj!=e&&(this.unConnectEditingObj(),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var r=this.getAllQuestions(),o=0;o<r.length;o++)r[o].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(s,c){G.hasOriginalProperty(n.editingObj,c.name)&&(c.name==="locale"&&n.setDataCore({}),n.updateOnSetValue(c.name,n.editingObj[c.name],c.oldValue))},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!1,configurable:!0}),t.prototype.unConnectEditingObj=function(){this.editingObj&&!this.editingObj.isDisposed&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged)},Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalculatedValuesIntoResult=function(e){for(var n=0;n<this.calculatedValues.length;n++){var r=this.calculatedValues[n];r.includeIntoResult&&r.name&&this.getVariable(r.name)!==void 0&&(e[r.name]=this.getVariable(r.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){e||(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});var n=[],r=[];if(this.getAllQuestions().forEach(function(w){var N=w.getPlainData(e);N&&(n.push(N),r.push(w.valueName||w.name))}),e.includeValues)for(var o=this.getValuesKeys(),s=0;s<o.length;s++){var c=o[s];if(r.indexOf(c)==-1){var y=this.getDataValueCore(this.valuesHash,c);y&&n.push({name:c,title:c,value:y,displayValue:y,isNode:!1,getString:function(w){return typeof w=="object"?JSON.stringify(w):w}})}}return n},t.prototype.getFilteredValues=function(){var e={};for(var n in this.variablesHash)e[n]=this.variablesHash[n];if(this.addCalculatedValuesIntoFilteredValues(e),!this.isDesignMode){for(var r=this.getValuesKeys(),o=0;o<r.length;o++){var n=r[o];e[n]=this.getDataValueCore(this.valuesHash,n)}this.getAllQuestions().forEach(function(s){s.hasFilteredValue&&(e[s.getFilteredName()]=s.getFilteredValue())})}return e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var n=this.calculatedValues,r=0;r<n.length;r++)e[n[r].name]=n[r].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=G.getPropertiesByObj(this.editingObj),n=[],r=0;r<e.length;r++)n.push(e[r].name);return n},t.prototype.getDataValueCore=function(e,n){return this.editingObj?G.getObjPropertyValue(this.editingObj,n):this.getDataFromValueHash(e,n)},t.prototype.setDataValueCore=function(e,n,r){this.editingObj?G.setObjPropertyValue(this.editingObj,n,r):this.setDataToValueHash(e,n,r)},t.prototype.deleteDataValueCore=function(e,n){this.editingObj?this.editingObj[n]=null:this.deleteDataFromValueHash(e,n)},t.prototype.getDataFromValueHash=function(e,n){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,n):e[n]},t.prototype.setDataToValueHash=function(e,n,r){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,n,r):e[n]=r},t.prototype.deleteDataFromValueHash=function(e,n){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,n):delete e[n]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},n=this.getValuesKeys(),r=0;r<n.length;r++){var o=n[r];o.indexOf(this.commentSuffix)>0&&(e[o]=this.getDataValueCore(this.valuesHash,o))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;if(this.pageContainerValue&&(this.isShowingPreview||this.isSinglePage))return[this.pageContainerValue];for(var e=new Array,n=0;n<this.pages.length;n++)this.isPageInVisibleList(this.pages[n])&&e.push(this.pages[n]);return e},enumerable:!1,configurable:!0}),t.prototype.isPageInVisibleList=function(e){return this.isDesignMode||e.isVisible&&!e.isStartPage},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.pages.length==0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>1?this.pages[0]:null;return e&&(e.onFirstRendering(),e.setWasShown(!0)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.getPropertyValue("currentPage",null)},set:function(e){if(!this.isLoadingFromJson){var n=this.getPageByObject(e);if(!(e&&!n)&&!(!n&&this.isCurrentPageAvailable)){var r=this.visiblePages;if(!(n!=null&&r.indexOf(n)<0)&&n!=this.currentPage){var o=this.currentPage;!this.isShowingPreview&&!this.currentPageChanging(n,o)||(this.setPropertyValue("currentPage",n),n&&(n.onFirstRendering(),n.updateCustomWidgets(),n.setWasShown(!0)),this.locStrsChanged(),this.isShowingPreview||this.currentPageChanged(n,o))}}}},enumerable:!1,configurable:!0}),t.prototype.tryNavigateToPage=function(e){if(!this.performValidationOnPageChanging(e))return!1;var n=this.visiblePages.indexOf(e),r=n<this.currentPageNo||!this.doServerValidation(!1,!1,e);return r&&(this.currentPage=e),r},t.prototype.performValidationOnPageChanging=function(e){if(this.isDesignMode)return!1;var n=this.visiblePages.indexOf(e);if(n<0||n>=this.visiblePageCount||n===this.currentPageNo)return!1;if(n<this.currentPageNo||this.checkErrorsMode==="onComplete"||this.validationAllowSwitchPages)return!0;if(!this.validateCurrentPage())return!1;for(var r=this.currentPageNo+1;r<n;r++){var o=this.visiblePages[r];if(!o.validate(!0,!0))return!1;o.passed=!0}return!0},t.prototype.updateCurrentPage=function(){this.isCurrentPageAvailable||(this.currentPage=this.firstVisiblePage)},Object.defineProperty(t.prototype,"isCurrentPageAvailable",{get:function(){var e=this.currentPage;return!!e&&this.isPageInVisibleList(e)&&this.isPageExistsInSurvey(e)},enumerable:!1,configurable:!0}),t.prototype.isPageExistsInSurvey=function(e){return this.pages.indexOf(e)>-1?!0:!!this.onContainsPageCallback&&this.onContainsPageCallback(e)},Object.defineProperty(t.prototype,"activePage",{get:function(){return this.getPropertyValue("activePage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowStartingPage",{get:function(){return this.state==="starting"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"matrixDragHandleArea",{get:function(){return this.getPropertyValue("matrixDragHandleArea","entireItem")},set:function(e){this.setPropertyValue("matrixDragHandleArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPage",{get:function(){return this.state=="running"||this.state=="preview"||this.isShowStartingPage},enumerable:!1,configurable:!0}),t.prototype.updateActivePage=function(){var e=this.isShowStartingPage?this.startedPage:this.currentPage;e!==this.activePage&&this.setPropertyValue("activePage",e)},t.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&e.getType()=="page")return e;if(typeof e=="string"||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var n=Number(e),r=this.visiblePages;return e<0||e>=r.length?null:r[n]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var n=this.visiblePages;e<0||e>=n.length||(this.currentPage=n[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.focusFirstQuestion=function(){if(!this.focusingQuestionInfo){var e=this.activePage;e&&(e.scrollToTop(),e.focusFirstQuestion())}},t.prototype.scrollToTopOnPageChange=function(e){e===void 0&&(e=!0);var n=this.activePage;n&&(e&&n.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.focusingQuestionInfo&&(n.focusFirstQuestion(),this.isCurrentPageRendering=!1))},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state","empty")},enumerable:!1,configurable:!0}),t.prototype.updateState=function(){this.setPropertyValue("state",this.calcState())},t.prototype.calcState=function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.getPropertyValue("completedState","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.getPropertyValue("completedStateText","")},enumerable:!1,configurable:!0}),t.prototype.setCompletedState=function(e,n){this.setPropertyValue("completedState",e),n||(e=="saving"&&(n=this.getLocalizationString("savingData")),e=="error"&&(n=this.getLocalizationString("savingDataError")),e=="success"&&(n=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",n),this.state==="completed"&&this.showCompletedPage&&this.completedState&&this.notify(this.completedStateText,this.completedState,e==="error")},t.prototype.notify=function(e,n,r){r===void 0&&(r=!1),this.notifier.showActions=r,this.notifier.notify(e,n,r)},t.prototype.clear=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=!0),this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.completedByTriggers=void 0,e&&this.setDataCore(null,!0),this.timerModel.spent=0;for(var r=0;r<this.pages.length;r++)this.pages[r].timeSpent=0,this.pages[r].setWasShown(!1),this.pages[r].passed=!1;if(this.onFirstPageIsStartedChanged(),n&&(this.currentPage=this.firstVisiblePage,this.currentSingleQuestion)){var o=this.getAllQuestions(!0);this.currentSingleQuestion=o.length>0?o[0]:void 0}e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,n){Ei(e,n)},t.prototype.updateValuesWithDefaults=function(){if(!(this.isDesignMode||this.isLoading))for(var e=0;e<this.pages.length;e++)for(var n=this.pages[e].questions,r=0;r<n.length;r++)n[r].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,n){var r=this.createPageChangeEventOptions(e,n);r.allow=!0,r.allowChanging=!0,this.onCurrentPageChanging.fire(this,r);var o=r.allowChanging&&r.allow;return o&&(this.isCurrentPageRendering=!0),o},t.prototype.currentPageChanged=function(e,n){this.notifyQuestionsOnHidingContent(n);var r=this.createPageChangeEventOptions(e,n);n&&!n.isDisposed&&!n.passed&&n.validate(!1)&&(n.passed=!0),this.isCurrentPageRendered===!0&&(this.isCurrentPageRendered=!1),this.onCurrentPageChanged.fire(this,r)},t.prototype.notifyQuestionsOnHidingContent=function(e){e&&!e.isDisposed&&e.questions.forEach(function(n){return n.onHidingContent()})},t.prototype.createPageChangeEventOptions=function(e,n){var r=e&&n?e.visibleIndex-n.visibleIndex:0;return{oldCurrentPage:n,newCurrentPage:e,isNextPage:r===1,isPrevPage:r===-1,isGoingForward:r>0,isGoingBackward:r<0,isAfterPreview:this.changeCurrentPageFromPreview===!0}},t.prototype.getProgress=function(){if(this.currentPage==null)return 0;if(this.progressBarType!=="pages"){var e=this.getProgressInfo();return this.progressBarType==="requiredQuestions"?e.requiredQuestionCount>=1?Math.ceil(e.requiredAnsweredQuestionCount*100/e.requiredQuestionCount):100:e.questionCount>=1?Math.ceil(e.answeredQuestionCount*100/e.questionCount):100}var n=this.visiblePages,r=n.indexOf(this.currentPage);return Math.ceil(r*100/n.length)},Object.defineProperty(t.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.activePage;return e?e.navigationButtonsVisibility==="show"?this.showNavigationButtons==="none"?"bottom":this.showNavigationButtons:e.navigationButtonsVisibility==="hide"?"none":this.showNavigationButtons:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnTop",{get:function(){return this.getIsNavigationButtonsShowingOn("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnBottom",{get:function(){return this.getIsNavigationButtonsShowingOn("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsNavigationButtonsShowingOn=function(e){var n=this.isNavigationButtonsShowing;return n=="both"||n==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return this.mode=="edit"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.mode=="display"&&!this.isDesignMode||this.state=="preview"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return this.textUpdateMode=="onTyping"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!1,configurable:!0}),t.prototype.setDesignMode=function(e){!!this._isDesignMode!=!!e&&(this._isDesignMode=!!e,this.onQuestionsOnPageModeChanged("standard"))},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var n=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),!this.isLoadingFromJson&&(this.runConditions(),this.updateAllElementsVisibility(n))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var n=0;n<this.pages.length;n++){var r=this.pages[n];r.updateElementVisibility(),e.indexOf(r)>-1!=r.isVisible&&this.onPageVisibleChanged.fire(this,{page:r,visible:r.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&this.showPreviewBeforeComplete=="showAnsweredQuestions"&&this.isAnyQuestionAnswered},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAnyQuestionAnswered",{get:function(){for(var e=this.getAllQuestions(!0),n=0;n<e.length;n++)if(!e[n].isEmpty())return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName)return!1;var e=M.getCookie();return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&M.setCookie(this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&M.setCookie(this.cookieName+"=;")},Object.defineProperty(t.prototype,"ignoreValidation",{get:function(){return!this.validationEnabled},set:function(e){this.validationEnabled=!e},enumerable:!1,configurable:!0}),t.prototype.nextPage=function(){return this.isLastPage?!1:this.doCurrentPageComplete(!1)},t.prototype.performNext=function(){var e=this.currentSingleQuestion;if(!e)return this.nextPage();if(!e.validate(!0))return!1;var n=this.getAllQuestions(!0),r=n.indexOf(e);return r<0||r===n.length-1?!1:(this.currentSingleQuestion=n[r+1],!0)},t.prototype.performPrevious=function(){var e=this.currentSingleQuestion;if(!e)return this.prevPage();var n=this.getAllQuestions(!0),r=n.indexOf(e);return r===0?!1:(this.currentSingleQuestion=n[r-1],!0)},t.prototype.hasErrorsOnNavigate=function(e){var n=this;if(!this.isEditMode||this.ignoreValidation)return!1;var r=e&&this.validationAllowComplete||!e&&this.validationAllowSwitchPages,o=function(s){(!s||r)&&n.doCurrentPageCompleteCore(e)};return this.isValidateOnComplete?this.isLastPage?this.validate(!0,this.focusOnFirstError,o,!0)!==!0&&!r:!1:this.validateCurrentPage(o)!==!0&&!r},t.prototype.checkForAsyncQuestionValidation=function(e,n){var r=this;this.clearAsyncValidationQuesitons();for(var o=function(){if(e[c].isRunningValidators){var y=e[c];y.onCompletedAsyncValidators=function(w){r.onCompletedAsyncQuestionValidators(y,n,w)},s.asyncValidationQuesitons.push(e[c])}},s=this,c=0;c<e.length;c++)o();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,n=0;n<e.length;n++)e[n].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,n,r){if(r){if(this.clearAsyncValidationQuesitons(),n(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var o=this.currentPage.questions,s=0;s<o.length;s++)if(o[s]!==e&&o[s].errors.length>0)return;e.focus(!0)}return}for(var c=this.asyncValidationQuesitons,y=0;y<c.length;y++)if(c[y].isRunningValidators)return;n(!1)},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCurrentPageValid",{get:function(){return!this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),t.prototype.hasCurrentPageErrors=function(e){return this.hasPageErrors(void 0,e)},t.prototype.validateCurrentPage=function(e){return this.validatePage(void 0,e)},t.prototype.hasPageErrors=function(e,n){var r=this.validatePage(e,n);return r===void 0?r:!r},t.prototype.validatePage=function(e,n){return e||(e=this.activePage),e?this.checkIsPageHasErrors(e)?!1:n&&this.checkForAsyncQuestionValidation(e.questions,function(r){return n(r)})?void 0:!0:!0},t.prototype.hasErrors=function(e,n,r){e===void 0&&(e=!0),n===void 0&&(n=!1);var o=this.validate(e,n,r);return o===void 0?o:!o},t.prototype.validate=function(e,n,r,o){e===void 0&&(e=!0),n===void 0&&(n=!1),r&&(e=!0);for(var s=this.visiblePages,c=!0,y={fireCallback:e,focusOnFirstError:n,firstErrorQuestion:null,result:!1},w=0;w<s.length;w++)s[w].validate(e,n,y)||(c=!1);return y.firstErrorQuestion&&(n||o)&&(n?y.firstErrorQuestion.focus(!0):this.currentPage=y.firstErrorQuestion.page),!c||!r?c:this.checkForAsyncQuestionValidation(this.getAllQuestions(),function(N){return r(N)})?void 0:!0},t.prototype.ensureUniqueNames=function(e){if(e===void 0&&(e=null),e==null)for(var n=0;n<this.pages.length;n++)this.ensureUniqueName(this.pages[n]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var n=e.elements,r=0;r<n.length;r++)this.ensureUniqueNames(n[r]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getPageByName(r)})},t.prototype.ensureUniquePanelName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getPanelByName(r)})},t.prototype.ensureUniqueQuestionName=function(e){var n=this;return this.ensureUniqueElementName(e,function(r){return n.getQuestionByName(r)})},t.prototype.ensureUniqueElementName=function(e,n){var r=n(e.name);if(!(!r||r==e)){for(var o=this.getNewName(e.name);n(o);)var o=this.getNewName(e.name);e.name=o}},t.prototype.getNewName=function(e){for(var n=e.length;n>0&&e[n-1]>="0"&&e[n-1]<="9";)n--;var r=e.substring(0,n),o=0;return n<e.length&&(o=parseInt(e.substring(n))),o++,r+o},t.prototype.checkIsCurrentPageHasErrors=function(e){return e===void 0&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,n){if(n===void 0&&(n=void 0),n===void 0&&(n=this.focusOnFirstError),!e)return!0;var r=!1;return this.currentSingleQuestion?r=!this.currentSingleQuestion.validate(!0):r=!e.validate(!0,n),this.fireValidatedErrorsOnPage(e),r},t.prototype.fireValidatedErrorsOnPage=function(e){if(!(this.onValidatedErrorsOnCurrentPage.isEmpty||!e)){for(var n=e.questions,r=new Array,o=new Array,s=0;s<n.length;s++){var c=n[s];if(c.errors.length>0){r.push(c);for(var y=0;y<c.errors.length;y++)o.push(c.errors[y])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:r,errors:o,page:e})}},t.prototype.prevPage=function(){var e=this;if(this.isFirstPage||this.state==="starting")return!1;this.resetNavigationButton();var n=this.skippedPages.find(function(s){return s.to==e.currentPage});if(n)this.currentPage=n.from,this.skippedPages.splice(this.skippedPages.indexOf(n),1);else{var r=this.visiblePages,o=r.indexOf(this.currentPage);this.currentPage=r[o-1]}return!0},t.prototype.tryComplete=function(){this.isValidateOnComplete&&this.cancelPreview();var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.completeLastPage=function(){return this.tryComplete()},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.nextPageUIClick=function(){return this.mouseDownPage&&this.mouseDownPage!==this.activePage?!1:(this.mouseDownPage=null,this.performNext())},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()},t.prototype.showPreview=function(){return this.resetNavigationButton(),!this.isValidateOnComplete&&(this.hasErrorsOnNavigate(!0)||this.doServerValidation(!0,!0))?!1:(this.showPreviewCore(),!0)},t.prototype.showPreviewCore=function(){var e={allowShowPreview:!0,allow:!0};this.onShowingPreview.fire(this,e),this.isShowingPreview=e.allowShowPreview&&e.allow},t.prototype.cancelPreview=function(e){e===void 0&&(e=null),this.isShowingPreview&&(this.gotoPageFromPreview=e,this.isShowingPreview=!1)},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e)},t.prototype.doCurrentPageComplete=function(e){return this.isValidatingOnServer||(this.resetNavigationButton(),this.hasErrorsOnNavigate(e))?!1:this.doCurrentPageCompleteCore(e)},t.prototype.doCurrentPageCompleteCore=function(e){return this.doServerValidation(e)?!1:e?(this.currentPage.passed=!0,this.doComplete(this.canBeCompletedByTrigger,this.completedTrigger)):(this.doNextPage(),!0)},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return this.questionsOnPageMode=="singlePage"},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSingleVisibleQuestion",{get:function(){return this.isSingleVisibleQuestionVal(this.questionsOnPageMode)},enumerable:!1,configurable:!0}),t.prototype.isSingleVisibleQuestionVal=function(e){return e==="questionPerPage"||e==="questionOnPage"},Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted")},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!1,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>1&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return e=="showAllQuestions"||e=="showAnsweredQuestions"},enumerable:!1,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){this.isStartedState=this.firstPageIsStarted&&this.pages.length>1,this.pageVisibilityChanged(this.pages[0],!this.isStartedState)},t.prototype.onShowingPreviewChanged=function(){this.updatePagesContainer()},t.prototype.createRootPage=function(e,n){var r=G.createClass("page");return r.name=e,r.isPageContainer=!0,n.forEach(function(o){o.isStartPage||r.addElement(o)}),r},t.prototype.disposeContainerPage=function(){var e=this.pageContainerValue,n=[].concat(e.elements);n.forEach(function(r){return e.removeElement(r)}),e.dispose(),this.pageContainerValue=void 0},t.prototype.updatePagesContainer=function(){if(!this.isDesignMode){this.getAllQuestions().forEach(function(c){return c.updateElementVisibility()}),this.setPropertyValue("currentPage",void 0);var e="single-page",n="preview-page",r=void 0;if(this.isSinglePage){var o=this.pageContainerValue;o&&o.name===n?(r=o.elements[0],this.disposeContainerPage()):r=this.createRootPage(e,this.pages)}if(this.isShowingPreview&&(r=this.createRootPage(n,r?[r]:this.pages)),r&&(r.setSurveyImpl(this),this.pageContainerValue=r,this.currentPage=r),!this.isSinglePage&&!this.isShowingPreview){this.disposeContainerPage();var s=this.gotoPageFromPreview;this.gotoPageFromPreview=null,m.isValueEmpty(s)&&this.visiblePageCount>0&&(s=this.visiblePages[this.visiblePageCount-1]),s&&(this.changeCurrentPageFromPreview=!0,this.currentPage=s,this.changeCurrentPageFromPreview=!1)}!this.currentPage&&this.visiblePageCount>0&&(this.currentPage=this.visiblePages[0]),this.pages.forEach(function(c){c.hasShown&&c.updateElementCss(!0)}),this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"currentSingleQuestion",{get:function(){return this.currentSingleQuestionValue},set:function(e){if(e!==this.currentSingleQuestion)if(this.currentSingleQuestionValue=e,e){var n=e.page;n.updateRows(),n!==this.currentPage?this.currentPage=n:this.focusFirstQuestionAutomatic&&e.focus(),this.updateButtonsVisibility()}else this.visiblePages.forEach(function(r){return r.updateRows()})},enumerable:!1,configurable:!0}),t.prototype.onQuestionsOnPageModeChanged=function(e){if(!(this.isShowingPreview||this.isDesignMode)&&(this.currentSingleQuestion=void 0,e==="singlePage"&&this.updatePagesContainer(),this.isSinglePage&&this.updatePagesContainer(),this.isSingleVisibleQuestion)){var n=this.getAllQuestions(!0);n.length>0&&(this.currentSingleQuestion=n[0])}},t.prototype.getPageStartIndex=function(){return this.firstPageIsStarted&&this.pages.length>0?1:0},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return this.getPropertyValue("isFirstPage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){return this.getPropertyValue("isLastPage")},enumerable:!1,configurable:!0}),t.prototype.updateButtonsVisibility=function(){this.updateIsFirstLastPageState(),this.setPropertyValue("isShowPrevButton",this.calcIsShowPrevButton()),this.setPropertyValue("isShowNextButton",this.calcIsShowNextButton()),this.setPropertyValue("isCompleteButtonVisible",this.calcIsCompleteButtonVisible()),this.setPropertyValue("isPreviewButtonVisible",this.calcIsPreviewButtonVisible()),this.setPropertyValue("isCancelPreviewButtonVisible",this.calcIsCancelPreviewButtonVisible())},Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){return this.getPropertyValue("isShowPrevButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowNextButton",{get:function(){return this.getPropertyValue("isShowNextButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.getPropertyValue("isCompleteButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.getPropertyValue("isPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.getPropertyValue("isCancelPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirstElement",{get:function(){return this.getPropertyValue("isFirstElement")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastElement",{get:function(){return this.getPropertyValue("isLastElement")},enumerable:!1,configurable:!0}),t.prototype.updateIsFirstLastPageState=function(){var e=this.currentPage;this.setPropertyValue("isFirstPage",!!e&&e===this.firstVisiblePage),this.setPropertyValue("isLastPage",!!e&&e===this.lastVisiblePage);var n=void 0,r=void 0,o=this.currentSingleQuestion;if(o){var s=this.getAllQuestions(!0),c=s.indexOf(o);c>=0&&(n=c===0,r=c===s.length-1)}this.setPropertyValue("isFirstElement",n),this.setPropertyValue("isLastElement",r)},Object.defineProperty(t.prototype,"isLastPageOrElement",{get:function(){return this.isLastElement!==void 0?this.isLastElement:this.isLastPage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirstPageOrElement",{get:function(){return this.isFirstElement!==void 0?this.isFirstElement:this.isFirstPage},enumerable:!1,configurable:!0}),t.prototype.calcIsShowPrevButton=function(){if(this.isFirstPageOrElement||!this.showPrevButton||this.state!=="running")return!1;if(this.isFirstElement!==void 0)return!0;var e=this.visiblePages[this.currentPageNo-1];return e&&e.getMaxTimeToFinish()<=0},t.prototype.calcIsShowNextButton=function(){return this.state==="running"&&!this.isLastPageOrElement&&!this.canBeCompletedByTrigger},t.prototype.calcIsCompleteButtonVisible=function(){var e=this.state;return this.isEditMode&&(this.state==="running"&&(this.isLastPageOrElement&&!this.isShowPreviewBeforeComplete||this.canBeCompletedByTrigger)||e==="preview")&&this.showCompleteButton},t.prototype.calcIsPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&this.state=="running"&&this.isLastPageOrElement},t.prototype.calcIsCancelPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&this.state=="preview"},Object.defineProperty(t.prototype,"firstVisiblePage",{get:function(){if(this.visiblePageCount===1)return this.visiblePages[0];for(var e=this.pages,n=0;n<e.length;n++)if(this.isPageInVisibleList(e[n]))return e[n];return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastVisiblePage",{get:function(){if(this.visiblePageCount===1)return this.visiblePages[0];for(var e=this.pages,n=e.length-1;n>=0;n--)if(this.isPageInVisibleList(e[n]))return e[n];return null},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e,n){if(e===void 0&&(e=!1),!this.isCompleted)return this.checkOnCompletingEvent(e,n)?(this.checkOnPageTriggers(!0),this.stopTimer(),this.notifyQuestionsOnHidingContent(this.currentPage),this.isCompleted=!0,this.clearUnusedValues(),this.saveDataOnComplete(e,n),this.setCookie(),!0):(this.isCompleted=!1,!1)},t.prototype.saveDataOnComplete=function(e,n){var r=this;e===void 0&&(e=!1);var o=this.hasCookie,s=function(Y){N=!0,r.setCompletedState("saving",Y)},c=function(Y){r.setCompletedState("error",Y)},y=function(Y){r.setCompletedState("success",Y),r.navigateTo()},w=function(Y){r.setCompletedState("","")},N=!1,Q={isCompleteOnTrigger:e,completeTrigger:n,showSaveInProgress:s,showSaveError:c,showSaveSuccess:y,clearSaveMessages:w,showDataSaving:s,showDataSavingError:c,showDataSavingSuccess:y,showDataSavingClear:w};this.onComplete.fire(this,Q),!o&&this.surveyPostId&&this.sendResult(),N||this.navigateTo()},t.prototype.checkOnCompletingEvent=function(e,n){var r={allowComplete:!0,allow:!0,isCompleteOnTrigger:e,completeTrigger:n};return this.onCompleting.fire(this,r),r.allowComplete&&r.allow},t.prototype.start=function(){return!this.firstPageIsStarted||(this.isCurrentPageRendering=!0,this.checkIsPageHasErrors(this.startedPage,!0))?!1:(this.isStartedState=!1,this.notifyQuestionsOnHidingContent(this.pages[0]),this.startTimerFromUI(),this.onStarted.fire(this,{}),this.updateVisibleIndexes(),this.currentPage&&this.currentPage.locStrsChanged(),!0)},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.createServerValidationOptions=function(e,n,r){var o=this,s={data:{},errors:{},survey:this,complete:function(){o.completeServerValidation(s,n,r)}};if(e&&this.isValidateOnComplete)s.data=this.data;else for(var c=this.activePage.questions,y=0;y<c.length;y++){var w=c[y];if(w.visible){var N=this.getValue(w.getValueName());this.isValueEmpty(N)||(s.data[w.getValueName()]=N)}}return s},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,n,r){var o=this;if(n===void 0&&(n=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty||!e&&this.isValidateOnComplete)return!1;this.setIsValidatingOnServer(!0);var s=typeof this.onServerValidateQuestions=="function";return this.serverValidationEventCount=s?1:this.onServerValidateQuestions.length,s?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,n,r)):this.onServerValidateQuestions.fireByCreatingOptions(this,function(){return o.createServerValidationOptions(e,n,r)}),!0},t.prototype.completeServerValidation=function(e,n,r){if(!(this.serverValidationEventCount>1&&(this.serverValidationEventCount--,e&&e.errors&&Object.keys(e.errors).length===0))&&(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),!(!e&&!e.survey))){var o=e.survey,s=!1;if(e.errors){var c=this.focusOnFirstError;for(var y in e.errors){var w=o.getQuestionByName(y);w&&w.errors&&(s=!0,w.addError(new bn(e.errors[y],this)),c&&(c=!1,w.page&&(this.currentPage=w.page),w.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}s||(n?this.showPreviewCore():r?this.currentPage=r:o.isLastPage?o.doComplete():o.doNextPage())}},t.prototype.doNextPage=function(){var e=this.currentPage;if(this.checkOnPageTriggers(!1),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),e===this.currentPage){var n=this.visiblePages,r=n.indexOf(this.currentPage);this.currentPage=n[r+1]}},t.prototype.setCompleted=function(e){this.doComplete(!0,e)},t.prototype.canBeCompleted=function(e,n){var r;if(z.triggers.changeNavigationButtonsOnComplete){var o=this.canBeCompletedByTrigger;this.completedByTriggers||(this.completedByTriggers={}),n?this.completedByTriggers[e.id]={trigger:e,pageId:(r=this.currentPage)===null||r===void 0?void 0:r.id}:delete this.completedByTriggers[e.id],o!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"canBeCompletedByTrigger",{get:function(){var e;if(!this.completedByTriggers)return!1;var n=Object.keys(this.completedByTriggers);if(n.length===0)return!1;var r=(e=this.currentPage)===null||e===void 0?void 0:e.id;if(!r)return!0;for(var o=0;o<n.length;o++)if(r===this.completedByTriggers[n[o]].pageId)return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedTrigger",{get:function(){if(this.canBeCompletedByTrigger){var e=Object.keys(this.completedByTriggers)[0];return this.completedByTriggers[e].trigger}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e,"completed"):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.locCompletedBeforeHtml.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.locLoadingHtml.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getProgressInfo=function(){var e=this.isDesignMode?this.pages:this.visiblePages;return sn.getProgressInfoByElements(e,!1)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.getPropertyValue("progressText","");return e||(this.updateProgressText(),e=this.getPropertyValue("progressText","")),e},enumerable:!1,configurable:!0}),t.prototype.updateProgressText=function(e){e===void 0&&(e=!1),!(this.isCalculatingProgressText||this.isShowingPreview)&&(e&&this.progressBarType=="pages"&&this.onGetProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1))},t.prototype.getProgressText=function(){if(!this.isDesignMode&&this.currentPage==null)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},n=this.progressBarType.toLowerCase();if(n==="questions"||n==="requiredquestions"||n==="correctquestions"||!this.onGetProgressText.isEmpty){var r=this.getProgressInfo();e.questionCount=r.questionCount,e.answeredQuestionCount=r.answeredQuestionCount,e.requiredQuestionCount=r.requiredQuestionCount,e.requiredAnsweredQuestionCount=r.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onGetProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var n=this.progressBarType.toLowerCase();if(n==="questions")return this.getLocalizationFormatString("questionsProgressText",e.answeredQuestionCount,e.questionCount);if(n==="requiredquestions")return this.getLocalizationFormatString("questionsProgressText",e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if(n==="correctquestions"){var r=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",r,e.questionCount)}var o=this.isDesignMode?this.pages:this.visiblePages,s=o.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",s,o.length)},t.prototype.getRootCss=function(){return new te().append(this.css.root).append(this.css.rootProgress+"--"+this.progressBarType).append(this.css.rootMobile,this.isMobile).append(this.css.rootAnimationDisabled,!z.animationEnabled).append(this.css.rootReadOnly,this.mode==="display"&&!this.isDesignMode).append(this.css.rootCompact,this.isCompact).append(this.css.rootFitToContainer,this.fitToContainer).toString()},t.prototype.afterRenderSurvey=function(e){var n=this;this.destroyResizeObserver(),Array.isArray(e)&&(e=sn.GetFirstNonTextElement(e));var r=e,o=this.css.variables;if(o){var s=Number.parseFloat(M.getComputedStyle(r).getPropertyValue(o.mobileWidth));if(s){var c=!1;this.resizeObserver=new ResizeObserver(function(y){B.requestAnimationFrame(function(){c||!Ko(r)?c=!1:c=n.processResponsiveness(r.offsetWidth,s,r.offsetHeight)})}),this.resizeObserver.observe(r)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e}),this.rootElement=e,this.addScrollEventListener()},t.prototype.beforeDestroySurveyElement=function(){this.destroyResizeObserver(),this.removeScrollEventListener(),this.rootElement=void 0},t.prototype.processResponsiveness=function(e,n,r){var o=e<n,s=this.isMobile!==o;this.setIsMobile(o),this.layoutElements.forEach(function(y){return y.processResponsiveness&&y.processResponsiveness(e)});var c={height:r,width:e};return this.onResize.fire(this,c),s},t.prototype.triggerResponsiveness=function(e){this.getAllQuestions().forEach(function(n){n.triggerResponsiveness(e)})},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)},t.prototype.updateQuestionCssClasses=function(e,n){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:n})},t.prototype.updatePanelCssClasses=function(e,n){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:n})},t.prototype.updatePageCssClasses=function(e,n){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:n})},t.prototype.updateChoiceItemCss=function(e,n){n.question=e,this.onUpdateChoiceItemCss.fire(this,n)},t.prototype.afterRenderPage=function(e){var n=this;if(!this.isDesignMode&&!this.focusingQuestionInfo){var r=this.isCurrentPageRendered===!1;setTimeout(function(){return n.scrollToTopOnPageChange(r)},1)}this.focusQuestionInfo(),this.isCurrentPageRendered=!0,!this.onAfterRenderPage.isEmpty&&this.onAfterRenderPage.fire(this,{page:this.activePage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,n){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:n})},t.prototype.afterRenderQuestionInput=function(e,n){if(!this.onAfterRenderQuestionInput.isEmpty){var r=e.inputId,o=z.environment.root;if(r&&n.id!==r&&typeof o<"u"){var s=o.getElementById(r);s&&(n=s)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:n})}},t.prototype.afterRenderPanel=function(e,n){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:n})},t.prototype.whenQuestionFocusIn=function(e){this.onFocusInQuestion.fire(this,{question:e})},t.prototype.whenPanelFocusIn=function(e){this.onFocusInPanel.fire(this,{panel:e})},t.prototype.rebuildQuestionChoices=function(){this.getAllQuestions().forEach(function(e){return e.surveyChoiceItemVisibilityChange()})},t.prototype.canChangeChoiceItemsVisibility=function(){return!this.onShowingChoiceItem.isEmpty},t.prototype.getChoiceItemVisibility=function(e,n,r){var o={question:e,item:n,visible:r};return this.onShowingChoiceItem.fire(this,o),o.visible},t.prototype.loadQuestionChoices=function(e){this.onChoicesLazyLoad.fire(this,e)},t.prototype.getChoiceDisplayValue=function(e){this.onGetChoiceDisplayValue.isEmpty?e.setItems(null):this.onGetChoiceDisplayValue.fire(this,e)},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixRowAdding.fire(this,e)},t.prototype.matrixRowAdded=function(e,n){this.onMatrixRowAdded.fire(this,{question:e,row:n})},t.prototype.matrixColumnAdded=function(e,n){this.onMatrixColumnAdded.fire(this,{question:e,column:n})},t.prototype.multipleTextItemAdded=function(e,n){this.onMultipleTextItemAdded.fire(this,{question:e,item:n})},t.prototype.getQuestionByValueNameFromArray=function(e,n,r){var o=this.getQuestionsByValueName(e);if(o){for(var s=0;s<o.length;s++){var c=o[s].getQuestionFromArray(n,r);if(c)return c}return null}},t.prototype.matrixRowRemoved=function(e,n,r){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:n,row:r})},t.prototype.matrixRowRemoving=function(e,n,r){var o={question:e,rowIndex:n,row:r,allow:!0};return this.onMatrixRowRemoving.fire(this,o),o.allow},t.prototype.matrixAllowRemoveRow=function(e,n,r){var o={question:e,rowIndex:n,row:r,allow:!0};return this.onMatrixRenderRemoveButton.fire(this,o),o.allow},t.prototype.matrixDetailPanelVisibleChanged=function(e,n,r,o){var s={question:e,rowIndex:n,row:r,visible:o,detailPanel:r.detailPanel};this.onMatrixDetailPanelVisibleChanged.fire(this,s)},t.prototype.matrixCellCreating=function(e,n){n.question=e,this.onMatrixCellCreating.fire(this,n)},t.prototype.matrixCellCreated=function(e,n){n.question=e,this.onMatrixCellCreated.fire(this,n)},t.prototype.matrixAfterCellRender=function(e,n){n.question=e,this.onAfterRenderMatrixCell.fire(this,n)},t.prototype.matrixCellValueChanged=function(e,n){n.question=e,this.onMatrixCellValueChanged.fire(this,n)},t.prototype.matrixCellValueChanging=function(e,n){n.question=e,this.onMatrixCellValueChanging.fire(this,n)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return this.checkErrorsMode==="onValueChanging"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChanged",{get:function(){return this.checkErrorsMode==="onValueChanged"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChange",{get:function(){return this.isValidateOnValueChanged||this.isValidateOnValueChanging},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnComplete",{get:function(){return this.checkErrorsMode==="onComplete"||this.validationAllowSwitchPages&&!this.validationAllowComplete},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,n){return n.question=e,this.onMatrixCellValidate.fire(this,n),n.error?new bn(n.error,this):null},t.prototype.dynamicPanelAdded=function(e,n,r){if(!this.isLoadingFromJson&&this.hasQuestionVisibleIndeces(e,!0)&&this.updateVisibleIndexes(e.page),!this.onDynamicPanelAdded.isEmpty){var o=e.panels;n===void 0&&(n=o.length-1,r=o[n]),this.onDynamicPanelAdded.fire(this,{question:e,panel:r,panelIndex:n})}},t.prototype.dynamicPanelRemoved=function(e,n,r){for(var o=r?r.questions:[],s=0;s<o.length;s++)o[s].clearOnDeletingContainer();this.hasQuestionVisibleIndeces(e,!1)&&this.updateVisibleIndexes(e.page),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:n,panel:r})},t.prototype.hasQuestionVisibleIndeces=function(e,n){n&&e.setVisibleIndex(this.getStartVisibleIndex());for(var r=e.getNestedQuestions(!0),o=0;o<r.length;o++)if(r[o].visibleIndex>-1)return!0;return!1},t.prototype.dynamicPanelRemoving=function(e,n,r){var o={question:e,panelIndex:n,panel:r,allow:!0};return this.onDynamicPanelRemoving.fire(this,o),o.allow},t.prototype.dynamicPanelItemValueChanged=function(e,n){n.question=e,n.panelIndex=n.itemIndex,n.panelData=n.itemValue,this.onDynamicPanelItemValueChanged.fire(this,n)},t.prototype.dynamicPanelGetTabTitle=function(e,n){n.question=e,this.onGetDynamicPanelTabTitle.fire(this,n)},t.prototype.dynamicPanelCurrentIndexChanged=function(e,n){n.question=e,this.onDynamicPanelCurrentIndexChanged.fire(this,n)},t.prototype.dragAndDropAllow=function(e){return this.onDragDropAllow.fire(this,e),e.allow},t.prototype.elementContentVisibilityChanged=function(e){this.currentPage&&this.currentPage.ensureRowsVisibility(),this.onElementContentVisibilityChanged.fire(this,{element:e})},t.prototype.getUpdatedPanelFooterActions=function(e,n,r){var o={question:r,panel:e,actions:n};return this.onGetPanelFooterActions.fire(this,o),o.actions},t.prototype.getUpdatedElementTitleActions=function(e,n){return e.isPage?this.getUpdatedPageTitleActions(e,n):e.isPanel?this.getUpdatedPanelTitleActions(e,n):this.getUpdatedQuestionTitleActions(e,n)},t.prototype.getTitleActionsResult=function(e,n){return e!=n.actions?n.actions:e!=n.titleActions?n.titleActions:e},t.prototype.getUpdatedQuestionTitleActions=function(e,n){var r={question:e,actions:n,titleActions:n};return this.onGetQuestionTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedPanelTitleActions=function(e,n){var r={panel:e,actions:n,titleActions:n};return this.onGetPanelTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedPageTitleActions=function(e,n){var r={page:e,actions:n,titleActions:n};return this.onGetPageTitleActions.fire(this,r),this.getTitleActionsResult(n,r)},t.prototype.getUpdatedMatrixRowActions=function(e,n,r){var o={question:e,actions:r,row:n};return this.onGetMatrixRowActions.fire(this,o),o.actions},t.prototype.scrollElementToTop=function(e,n,r,o,s,c,y,w){var N=this,Q={element:e,question:n,page:r,elementId:o,cancel:!1,allow:!0};if(this.onScrollToTop.fire(this,Q),!Q.cancel&&Q.allow){var Y=this.getPageByElement(e);if(this.isLazyRendering&&Y){var ce=1,fe=z.environment.rootElement,Oe=this.rootElement||y||fe;this.skeletonHeight&&Oe&&typeof Oe.getBoundingClientRect=="function"&&(ce=Oe.getBoundingClientRect().height/this.skeletonHeight-1),Y.forceRenderElement(e,function(){N.suspendLazyRendering(),sn.ScrollElementToTop(Q.elementId,s,c,function(){N.releaseLazyRendering(),Vi(Y.id),w&&w()})},ce)}else if(e.isPage&&!this.isSinglePage&&!this.isDesignMode&&this.rootElement){var Ee=this.rootElement.querySelector(kt(this.css.rootWrapper));sn.ScrollElementToViewCore(Ee,!1,s,c,w)}else sn.ScrollElementToTop(Q.elementId,s,c,w)}},t.prototype.chooseFiles=function(e,n,r){this.onOpenFileChooser.isEmpty?Kr(e,n):this.onOpenFileChooser.fire(this,{input:e,element:r&&r.element||this.survey,elementType:r&&r.elementType,item:r&&r.item,propertyName:r&&r.propertyName,callback:n,context:r})},t.prototype.uploadFiles=function(e,n,r,o){var s=this;this.onUploadFiles.isEmpty?o("error",this.getLocString("noUploadFilesHandler")):this.taskManager.runTask("file",function(c){s.onUploadFiles.fire(s,{question:e,name:n,files:r||[],callback:function(y,w){o(y,w),c()}})}),this.surveyPostId&&this.uploadFilesCore(n,r,o)},t.prototype.downloadFile=function(e,n,r,o){this.onDownloadFile.isEmpty&&o&&o("skipped",r.content||r),this.onDownloadFile.fire(this,{question:e,name:n,content:r.content||r,fileValue:r,callback:o})},t.prototype.clearFiles=function(e,n,r,o,s){this.onClearFiles.isEmpty&&s&&s("success",r),this.onClearFiles.fire(this,{question:e,name:n,value:r,fileName:o,callback:s})},t.prototype.updateChoicesFromServer=function(e,n,r){var o={question:e,choices:n,serverResult:r};return this.onLoadChoicesFromServer.fire(this,o),o.choices},t.prototype.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new Lc},t.prototype.uploadFilesCore=function(e,n,r){var o=this,s=[];n.forEach(function(c){r&&r("uploading",c),o.createSurveyService().sendFile(o.surveyPostId,c,function(y,w){y?(s.push({content:w,file:c}),s.length===n.length&&r&&r("success",s)):r&&r("error",{response:w,file:c})})})},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,n){n===void 0&&(n=-1),e!=null&&(n<0||n>=this.pages.length?this.pages.push(e):this.pages.splice(n,0,e))},t.prototype.addNewPage=function(e,n){e===void 0&&(e=null),n===void 0&&(n=-1);var r=this.createNewPage(e);return this.addPage(r,n),r},t.prototype.removePage=function(e){var n=this.pages.indexOf(e);n<0||(this.pages.splice(n,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,n){if(n===void 0&&(n=!1),!e)return null;n&&(e=e.toLowerCase());var r=n?this.questionHashes.namesInsensitive:this.questionHashes.names,o=r[e];return o?o[0]:null},t.prototype.findQuestionByName=function(e){return this.getQuestionByName(e)},t.prototype.getEditingSurveyElement=function(){return this.editingObjValue},t.prototype.getQuestionByValueName=function(e,n){n===void 0&&(n=!1);var r=this.getQuestionsByValueName(e,n);return r?r[0]:null},t.prototype.getQuestionsByValueName=function(e,n){n===void 0&&(n=!1);var r=n?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames,o=r[e];return o||null},t.prototype.getCalculatedValueByName=function(e){for(var n=0;n<this.calculatedValues.length;n++)if(e==this.calculatedValues[n].name)return this.calculatedValues[n];return null},t.prototype.getQuestionsByNames=function(e,n){n===void 0&&(n=!1);var r=[];if(!e)return r;for(var o=0;o<e.length;o++)if(e[o]){var s=this.getQuestionByName(e[o],n);s&&r.push(s)}return r},t.prototype.getPageByElement=function(e){for(var n=0;n<this.pages.length;n++){var r=this.pages[n];if(r.containsElement(e))return r}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var n=0;n<this.pages.length;n++)if(this.pages[n].name==e)return this.pages[n];return null},t.prototype.getPagesByNames=function(e){var n=[];if(!e)return n;for(var r=0;r<e.length;r++)if(e[r]){var o=this.getPageByName(e[r]);o&&n.push(o)}return n},t.prototype.getAllQuestions=function(e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1),r===void 0&&(r=!1),r&&(n=!1);for(var o=[],s=0;s<this.pages.length;s++)this.pages[s].addQuestionsToList(o,e,n);if(!r)return o;var c=[];return o.forEach(function(y){c.push(y),y.getNestedQuestions(e).forEach(function(w){return c.push(w)})}),c},t.prototype.getQuizQuestions=function(){for(var e=new Array,n=this.getPageStartIndex(),r=n;r<this.pages.length;r++)if(this.pages[r].isVisible)for(var o=this.pages[r].questions,s=0;s<o.length;s++){var c=o[s];c.quizQuestionCount>0&&e.push(c)}return e},t.prototype.getPanelByName=function(e,n){n===void 0&&(n=!1);var r=this.getAllPanels();n&&(e=e.toLowerCase());for(var o=0;o<r.length;o++){var s=r[o].name;if(n&&(s=s.toLowerCase()),s==e)return r[o]}return null},t.prototype.getAllPanels=function(e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);for(var r=new Array,o=0;o<this.pages.length;o++)this.pages[o].addPanelsIntoList(r,e,n);return r},t.prototype.createNewPage=function(e){var n=G.createClass("page");return n.name=e,n},t.prototype.getValueChangeReason=function(){return this.isSettingValueOnExpression?"expression":this.isSettingValueFromTrigger?"trigger":void 0},t.prototype.questionOnValueChanging=function(e,n,r){if(this.editingObj){var o=G.findProperty(this.editingObj.getType(),e);o&&(n=o.settingValue(this.editingObj,n))}if(this.onValueChanging.isEmpty)return n;var s={name:e,question:this.getQuestionByValueName(r||e),value:this.getUnbindValue(n),oldValue:this.getValue(e),reason:this.getValueChangeReason()};return this.onValueChanging.fire(this,s),s.value},t.prototype.updateQuestionValue=function(e,n){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);if(r)for(var o=0;o<r.length;o++){var s=r[o].value;(s===n&&Array.isArray(s)&&this.editingObj||!this.isTwoValueEquals(s,n))&&r[o].updateValueFromSurvey(n,!1)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&(this.isValidateOnValueChanged||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var n=e.getAllErrors().length,r=!e.validate(!0,{isOnValueChanged:!this.isValidateOnValueChanging});return e.page&&this.isValidateOnValueChange&&(n>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),r},t.prototype.checkErrorsOnValueChanging=function(e,n){if(this.isLoadingFromJson)return!1;var r=this.getQuestionsByValueName(e);if(!r)return!1;for(var o=!1,s=0;s<r.length;s++){var c=r[s];this.isTwoValueEquals(c.valueForSurvey,n)||(c.value=n),this.checkQuestionErrorOnValueChangedCore(c)&&(o=!0),o=o||c.errors.length>0}return o},t.prototype.fireOnValueChanged=function(e,n,r){this.onValueChanged.fire(this,{name:e,question:r,value:n,reason:this.getValueChangeReason()})},t.prototype.notifyQuestionOnValueChanged=function(e,n,r){if(!this.isLoadingFromJson){var o=this.getQuestionsByValueName(e);if(o)for(var s=0;s<o.length;s++){var c=o[s];this.checkQuestionErrorOnValueChanged(c),c.onSurveyValueChanged(n)}this.fireOnValueChanged(e,n,r?this.getQuestionByName(r):void 0),!this.isDisposed&&(this.checkElementsBindings(e,n),this.notifyElementsOnAnyValueOrVariableChanged(e,r))}},t.prototype.checkElementsBindings=function(e,n){this.isRunningElementsBindings=!0;for(var r=0;r<this.pages.length;r++)this.pages[r].checkBindings(e,n);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e,n){if(this.isEndLoadingFromJson!=="processing"){if(this.isRunningConditions){this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;return}for(var r=0;r<this.pages.length;r++)this.pages[r].onAnyValueChanged(e,n);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(e){for(var n=this.getAllQuestions(),r=0;r<n.length;r++){var o=n[r],s=o.getValueName();o.updateValueFromSurvey(this.getValue(s),e),o.requireUpdateCommentValue&&o.updateCommentFromSurvey(this.getComment(s))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),n=0;n<e.length;n++)e[n].onSurveyValueChanged(this.getValue(e[n].getValueName()))},t.prototype.checkOnPageTriggers=function(e){for(var n=this.getCurrentPageQuestions(!0),r={},o=0;o<n.length;o++){var s=n[o],c=s.getValueName();r[c]=this.getValue(c)}this.addCalculatedValuesIntoFilteredValues(r),this.checkTriggers(r,!0,e)},t.prototype.getCurrentPageQuestions=function(e){e===void 0&&(e=!1);var n=[],r=this.currentPage;if(!r)return n;for(var o=0;o<r.questions.length;o++){var s=r.questions[o];!e&&!s.visible||!s.name||n.push(s)}return n},t.prototype.checkTriggers=function(e,n,r,o){if(r===void 0&&(r=!1),!(this.isCompleted||this.triggers.length==0||this.isDisplayMode)){if(this.isTriggerIsRunning){this.triggerValues=this.getFilteredValues();for(var s in e)this.triggerKeys[s]=e[s];return}var c=!1;if(!r&&o&&this.hasRequiredValidQuestionTrigger){var y=this.getQuestionByValueName(o);c=y&&!y.validate(!1)}this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var w=this.getFilteredProperties(),N=this.canBeCompletedByTrigger,Q=0;Q<this.triggers.length;Q++){var Y=this.triggers[Q];c&&Y.requireValidQuestion||Y.checkExpression(n,r,this.triggerKeys,this.triggerValues,w)}N!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}},t.prototype.checkTriggersAndRunConditions=function(e,n,r){var o={};o[e]={newValue:n,oldValue:r},this.runConditionOnValueChanged(e,n),this.checkTriggers(o,!1,!1,e)},Object.defineProperty(t.prototype,"hasRequiredValidQuestionTrigger",{get:function(){for(var e=0;e<this.triggers.length;e++)if(this.triggers[e].requireValidQuestion)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},Object.defineProperty(t.prototype,"isRunningConditions",{get:function(){return!!this.conditionValues},enumerable:!1,configurable:!0}),t.prototype.runExpressions=function(){this.runConditions()},t.prototype.runConditions=function(){if(!(this.isCompleted||this.isEndLoadingFromJson==="processing"||this.isRunningConditions)){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),n=this.pages.indexOf(this.currentPage);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(n),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<z.maxConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,n){this.isRunningConditions?(this.conditionValues[e]=n,this.questionTriggersKeys&&(this.questionTriggersKeys[e]=n),this.isValueChangedOnRunningCondition=!0):(this.questionTriggersKeys={},this.questionTriggersKeys[e]=n,this.runConditions(),this.runQuestionsTriggers(e,n),this.questionTriggersKeys=void 0)},t.prototype.runConditionsCore=function(e){for(var n=this.pages,r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].resetCalculation();for(var r=0;r<this.calculatedValues.length;r++)this.calculatedValues[r].doCalculation(this.calculatedValues,this.conditionValues,e);i.prototype.runConditionCore.call(this,this.conditionValues,e);for(var o=0;o<n.length;o++)n[o].runCondition(this.conditionValues,e)},t.prototype.runQuestionsTriggers=function(e,n){var r=this;if(!(this.isDisplayMode||this.isDesignMode)){var o=this.getAllQuestions();o.forEach(function(s){s.runTriggers(e,n,r.questionTriggersKeys)})}},t.prototype.checkIfNewPagesBecomeVisible=function(e){var n=this.pages.indexOf(this.currentPage);if(!(n<=e+1)){for(var r=e+1;r<n;r++)if(this.pages[r].isVisible){this.currentPage=this.pages[r];break}}},t.prototype.sendResult=function(e,n,r){var o=this;if(e===void 0&&(e=null),n===void 0&&(n=null),r===void 0&&(r=!1),!!this.isEditMode&&(r&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),!!e&&(n&&(this.clientId=n),!(r&&!this.clientId)))){var s=this.createSurveyService();s.locale=this.getLocale();var c=this.surveyShowDataSaving||!r&&s.isSurveJSIOService;c&&this.setCompletedState("saving",""),s.sendResult(e,this.data,function(y,w,N){(c||s.isSurveJSIOService)&&(y?o.setCompletedState("success",""):o.setCompletedState("error",w));var Q={success:y,response:w,request:N};o.onSendResult.fire(o,Q)},this.clientId,r)}},t.prototype.getResult=function(e,n){var r=this;this.createSurveyService().getResult(e,n,function(o,s,c,y){r.onGetResult.fire(r,{success:o,data:s,dataList:c,response:y})})},t.prototype.loadSurveyFromService=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null),e&&(this.surveyId=e),n&&(this.clientId=n);var r=this;this.isLoading=!0,this.onLoadingSurveyFromService(),n?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,function(o,s,c,y){o&&(r.isCompletedBefore=c=="completed",r.loadSurveyFromServiceJson(s)),r.isLoading=!1}):this.createSurveyService().loadSurvey(this.surveyId,function(o,s,c){o&&r.loadSurveyFromServiceJson(s),r.isLoading=!1})},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.resetVisibleIndexes=function(){for(var e=this.getAllQuestions(!0),n=0;n<e.length;n++)e[n].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(e){if(!(this.isLoadingFromJson||this.isEndLoadingFromJson)){if(this.isRunningConditions&&this.onQuestionVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty){this.conditionUpdateVisibleIndexes=!0;return}if(this.isRunningElementsBindings){this.updateVisibleIndexAfterBindings=!0;return}this.updatePageVisibleIndexes(),this.updatePageElementsVisibleIndexes(e),this.updateProgressText(!0)}},t.prototype.updatePageElementsVisibleIndexes=function(e){if(this.showQuestionNumbers=="onPage")for(var n=e?[e]:this.visiblePages,r=0;r<n.length;r++)n[r].setVisibleIndex(0);else for(var o=this.getStartVisibleIndex(),s=0;s<this.pages.length;s++)o+=this.pages[s].setVisibleIndex(o)},t.prototype.getStartVisibleIndex=function(){return this.showQuestionNumbers=="on"?0:-1},t.prototype.updatePageVisibleIndexes=function(){this.updateButtonsVisibility();for(var e=0,n=0;n<this.pages.length;n++){var r=this.pages[n],o=r.isVisible&&(n>0||!r.isStartPage);r.visibleIndex=o?e++:-1,r.num=o?r.visibleIndex+1:-1}},t.prototype.fromJSON=function(e,n){if(e){this.questionHashesClear(),this.jsonErrors=null,this.sjsVersion=void 0;var r=new Vt;r.toObject(e,this,n),r.errors.length>0&&(this.jsonErrors=r.errors),this.onStateAndCurrentPageChanged(),this.updateState(),this.sjsVersion&&z.version&&m.compareVerions(this.sjsVersion,z.version)>0&&mt.warn("The version of the survey JSON schema (v"+this.sjsVersion+") is newer than your current Form Library version ("+z.version+"). Please update the Form Library to make sure that all survey features work as expected.")}},t.prototype.startLoadingFromJson=function(e){i.prototype.startLoadingFromJson.call(this,e),e&&e.locale&&(this.locale=e.locale)},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),i.prototype.endLoadingFromJson.call(this),this.hasCookie&&(this.isCompletedBefore=!0),this.doElementsOnLoad(),this.onQuestionsOnPageModeChanged("standard"),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes(),this.updateHasLogo(),this.updateRenderBackgroundImage(),this.updateCurrentPage(),this.hasDescription=!!this.description,this.titleIsEmpty=this.locTitle.isEmpty,this.setCalculatedWidthModeUpdater()},t.prototype.updateNavigationCss=function(){this.navigationBar&&(this.updateNavigationBarCss(),this.updateNavigationItemCssCallback&&this.updateNavigationItemCssCallback())},t.prototype.updateNavigationBarCss=function(){var e=this.navigationBar;e.cssClasses=this.css.actionBar,e.containerCss=this.css.footer},t.prototype.createNavigationBar=function(){var e=new Qn;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,n="sv-nav-btn",r=new pt({id:"sv-nav-start",visible:new Lt(function(){return e.isShowStartingPage}),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:n}),o=new pt({id:"sv-nav-prev",visible:new Lt(function(){return e.isShowPrevButton}),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.performPrevious()},component:n}),s=new pt({id:"sv-nav-next",visible:new Lt(function(){return e.isShowNextButton}),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:n}),c=new pt({id:"sv-nav-preview",visible:new Lt(function(){return e.isPreviewButtonVisible}),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:n}),y=new pt({id:"sv-nav-complete",visible:new Lt(function(){return e.isCompleteButtonVisible}),visibleIndex:50,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return e.taskManager.waitAndExecute(function(){return e.tryComplete()})},component:n});return this.updateNavigationItemCssCallback=function(){r.innerCss=e.cssNavigationStart,o.innerCss=e.cssNavigationPrev,s.innerCss=e.cssNavigationNext,c.innerCss=e.cssNavigationPreview,y.innerCss=e.cssNavigationComplete},[r,o,s,c,y]},t.prototype.onBeforeRunConstructor=function(){},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var n=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||n&&!this.isValueEmpty(e.value)}},t.prototype.getBuiltInVariableValue=function(e){if(e==="pageno"){var n=this.currentPage;return n!=null?this.visiblePages.indexOf(n)+1:0}if(e==="pagecount")return this.visiblePageCount;if(e==="correctedanswers"||e==="correctanswers"||e==="correctedanswercount")return this.getCorrectedAnswerCount();if(e==="incorrectedanswers"||e==="incorrectanswers"||e==="incorrectedanswercount")return this.getInCorrectedAnswerCount();if(e==="questioncount")return this.getQuizQuestionCount()},t.prototype.getProcessedTextValueCore=function(e){var n=e.name.toLocaleLowerCase();if(["no","require","title"].indexOf(n)===-1){var r=this.getBuiltInVariableValue(n);if(r!==void 0){e.isExists=!0,e.value=r;return}if(n==="locale"){e.isExists=!0,e.value=this.locale?this.locale:H.defaultLocale;return}var o=this.getVariable(n);if(o!==void 0){e.isExists=!0,e.value=o;return}var s=this.getFirstName(n);if(s){var c=s.useDisplayValuesInDynamicTexts;e.isExists=!0;var y=s.getValueName().toLowerCase();n=y+n.substring(y.length),n=n.toLocaleLowerCase();var w={};w[y]=e.returnDisplayValue&&c?s.getDisplayValue(!1,void 0):s.value,e.value=new ke().getValue(n,w);return}this.getProcessedValuesWithoutQuestion(e)}},t.prototype.getProcessedValuesWithoutQuestion=function(e){var n=this.getValue(e.name);if(n!==void 0){e.isExists=!0,e.value=n;return}var r=new ke,o=r.getFirstName(e.name);if(o!==e.name){var s={},c=this.getValue(o);m.isValueEmpty(c)&&(c=this.getVariable(o)),!m.isValueEmpty(c)&&(s[o]=c,e.value=r.getValue(e.name,s),e.isExists=r.hasValue(e.name,s))}},t.prototype.getFirstName=function(e){e=e.toLowerCase();var n;do n=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e);while(!n&&e);return n},t.prototype.reduceFirstName=function(e){var n=e.lastIndexOf("."),r=e.lastIndexOf("[");if(n<0&&r<0)return"";var o=Math.max(n,r);return e.substring(0,o)},t.prototype.clearUnusedValues=function(){this.isClearingUnsedValues=!0;for(var e=this.getAllQuestions(),n=0;n<e.length;n++)e[n].clearUnusedValues();this.clearInvisibleQuestionValues(),this.isClearingUnsedValues=!1},t.prototype.hasVisibleQuestionByValueName=function(e){var n=this.getQuestionsByValueName(e);if(!n)return!1;for(var r=0;r<n.length;r++){var o=n[r];if(o.isVisible&&o.isParentVisible&&!o.parentQuestion)return!0}return!1},t.prototype.questionsByValueName=function(e){var n=this.getQuestionsByValueName(e);return n||[]},t.prototype.clearInvisibleQuestionValues=function(){for(var e=this.clearInvisibleValues==="none"?"none":"onComplete",n=this.getAllQuestions(),r=0;r<n.length;r++)n[r].clearValueIfInvisible(e)},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var n=this.variablesHash[e];return this.isValueEmpty(n)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&new ke().hasValue(e,this.variablesHash)?new ke().getValue(e,this.variablesHash):n},t.prototype.setVariable=function(e,n){if(e){var r=this.getVariable(e);this.valuesHash&&delete this.valuesHash[e],e=e.toLowerCase(),this.variablesHash[e]=n,this.notifyElementsOnAnyValueOrVariableChanged(e),m.isTwoValueEquals(r,n)||(this.checkTriggersAndRunConditions(e,n,r),this.onVariableChanged.fire(this,{name:e,value:n}))}},t.prototype.getVariableNames=function(){var e=[];for(var n in this.variablesHash)e.push(n);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:m.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||e.length==0)return null;var n=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(n)},t.prototype.setValue=function(e,n,r,o,s){r===void 0&&(r=!1),o===void 0&&(o=!0);var c=n;if(o&&(c=this.questionOnValueChanging(e,n)),!(this.isValidateOnValueChanging&&this.checkErrorsOnValueChanging(e,c))&&!(!this.editingObj&&this.isValueEqual(e,c)&&this.isTwoValueEquals(c,n))){var y=this.getValue(e);this.isValueEmpyOnSetValue(e,c)?this.deleteDataValueCore(this.valuesHash,e):(c=this.getUnbindValue(c),this.setDataValueCore(this.valuesHash,e,c)),this.updateOnSetValue(e,c,y,r,o,s)}},t.prototype.isValueEmpyOnSetValue=function(e,n){return this.isValueEmpty(n,!1)?!this.editingObj||n===null||n===void 0?!0:this.editingObj.getDefaultPropertyValue(e)===n:!1},t.prototype.updateOnSetValue=function(e,n,r,o,s,c){o===void 0&&(o=!1),s===void 0&&(s=!0),this.updateQuestionValue(e,n),!(o===!0||this.isDisposed||this.isRunningElementsBindings)&&(c=c||e,this.checkTriggersAndRunConditions(e,n,r),s&&this.notifyQuestionOnValueChanged(e,n,c),o!=="text"&&this.tryGoNextPageAutomatic(e))},t.prototype.isValueEqual=function(e,n){(n===""||n===void 0)&&(n=null);var r=this.getValue(e);return(r===""||r===void 0)&&(r=null),n===null||r===null?n===r:this.isTwoValueEquals(n,r)},t.prototype.doOnPageAdded=function(e){if(e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),!this.runningPages){this.isLoadingFromJson||(this.updateProgressText(),this.updateCurrentPage());var n={page:e};this.onPageAdded.fire(this,n)}},t.prototype.doOnPageRemoved=function(e){e.setSurveyImpl(null),!this.runningPages&&(e===this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.updateProgressText(),this.updateLazyRenderingRowsOnRemovingElements())},t.prototype.generateNewName=function(e,n){for(var r={},o=0;o<e.length;o++)r[e[o].name]=!0;for(var s=1;r[n+s];)s++;return n+s},t.prototype.tryGoNextPageAutomatic=function(e){var n=this;if(!(this.isEndLoadingFromJson||!this.goNextPageAutomatic||!this.currentPage)){var r=this.getQuestionByValueName(e);if(!(!r||r&&(!r.visible||!r.supportGoNextPageAutomatic()))&&!(!r.validate(!1)&&!r.supportGoNextPageError())){if(this.currentSingleQuestion){var o=this.currentSingleQuestion,s=function(){o===n.currentSingleQuestion&&(n.isLastElement?n.allowCompleteSurveyAutomatic&&n.tryCompleteOrShowPreview():n.performNext())};Li.safeTimeOut(s,z.autoAdvanceDelay)}var c=this.getCurrentPageQuestions();if(!(c.indexOf(r)<0)){for(var y=0;y<c.length;y++)if(c[y].hasInput&&c[y].isEmpty())return;if(!(this.isLastPage&&(this.goNextPageAutomatic!==!0||!this.allowCompleteSurveyAutomatic))&&!this.checkIsCurrentPageHasErrors(!1)){var w=this.currentPage,N=function(){w===n.currentPage&&(n.isLastPage?n.tryCompleteOrShowPreview():n.nextPage())};Li.safeTimeOut(N,z.autoAdvanceDelay)}}}}},t.prototype.tryCompleteOrShowPreview=function(){this.isShowPreviewBeforeComplete?this.showPreview():this.tryComplete()},t.prototype.getComment=function(e){var n=this.getValue(e+this.commentSuffix);return n||""},t.prototype.setComment=function(e,n,r){if(r===void 0&&(r=!1),n||(n=""),!this.isTwoValueEquals(n,this.getComment(e))){var o=e+this.commentSuffix;n=this.questionOnValueChanging(o,n,e),this.isValueEmpty(n)?this.deleteDataValueCore(this.valuesHash,o):this.setDataValueCore(this.valuesHash,o,n);var s=this.getQuestionsByValueName(e);if(s)for(var c=0;c<s.length;c++)s[c].updateCommentFromSurvey(n),this.checkQuestionErrorOnValueChanged(s[c]);r||this.checkTriggersAndRunConditions(e,this.getValue(e),void 0),r!=="text"&&this.tryGoNextPageAutomatic(e);var y=this.getQuestionByValueName(e);y&&(this.fireOnValueChanged(o,n,y),y.comment=n,y.comment!=n&&(y.comment=n))}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionClearIfInvisible=function(e){return this.isShowingPreview||this.runningPages?"none":e!=="default"?e:this.clearInvisibleValues},t.prototype.questionVisibilityChanged=function(e,n,r){r&&this.updateVisibleIndexes(e.page),this.onQuestionVisibleChanged.fire(this,{question:e,name:e.name,visible:n})},t.prototype.pageVisibilityChanged=function(e,n){this.isLoadingFromJson||((n&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:n}))},t.prototype.panelVisibilityChanged=function(e,n){this.updateVisibleIndexes(e.page),this.onPanelVisibleChanged.fire(this,{panel:e,visible:n})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,n,r,o){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.isLoadingFromJson||(this.currentPage||this.updateCurrentPage(),this.updateVisibleIndexes(e.page),this.setCalculatedWidthModeUpdater()),this.canFireAddElement()&&this.onQuestionAdded.fire(this,{question:e,name:e.name,index:n,parent:r,page:o,parentPanel:r,rootPanel:o})},t.prototype.canFireAddElement=function(){return!this.isMovingQuestion||this.isDesignMode&&!z.supportCreatorV2},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(e.page),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,n,r){this.questionHashesRemoved(e,n,r),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var n=e.questions,r=0;r<n.length;r++)this.questionHashesAdded(n[r])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,n,r){n&&(this.questionHashRemovedCore(this.questionHashes.names,e,n),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,n.toLowerCase())),r&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,r),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,r.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,n,r){var o=e[r];if(o){var o=e[r];o.indexOf(n)<0&&o.push(n)}else e[r]=[n]},t.prototype.questionHashRemovedCore=function(e,n,r){var o=e[r];if(o){var s=o.indexOf(n);s>-1&&o.splice(s,1),o.length==0&&delete e[r]}},t.prototype.panelAdded=function(e,n,r,o){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(e.page),this.canFireAddElement()&&this.onPanelAdded.fire(this,{panel:e,name:e.name,index:n,parent:r,page:o,parentPanel:r,rootPanel:o})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(e.page),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var n={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,n),n.error?new bn(n.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var n={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,n),n.error?new bn(n.error,this):null},t.prototype.processHtml=function(e,n){n||(n="");var r={html:e,reason:n};return this.onProcessHtml.fire(this,r),this.processText(r.html,!0)},t.prototype.processText=function(e,n){return this.processTextEx({text:e,returnDisplayValue:n,doEncoding:!1}).text},t.prototype.processTextEx=function(e){var n=e.doEncoding===void 0?z.web.encodeUrlParams:e.doEncoding,r=e.text;(e.runAtDesign||!this.isDesignMode)&&(r=this.textPreProcessor.process(r,e.returnDisplayValue===!0,n));var o={text:r,hasAllValuesOnLastRun:!0};return o.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,o},Object.defineProperty(t.prototype,"textPreProcessor",{get:function(){var e=this;return this.textPreProcessorValue||(this.textPreProcessorValue=new Mr,this.textPreProcessorValue.onProcess=function(n){e.getProcessedTextValue(n)}),this.textPreProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getSurveyMarkdownHtml=function(e,n,r){var o={element:e,text:n,name:r,html:null};return this.onTextMarkdown.fire(this,o),o.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectAnswerCount()},t.prototype.getCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),n=0,r=0;r<e.length;r++)n+=e[r].quizQuestionCount;return n},t.prototype.getInCorrectedAnswerCount=function(){return this.getIncorrectAnswerCount()},t.prototype.getInCorrectAnswerCount=function(){return this.getIncorrectAnswerCount()},t.prototype.getIncorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.onCorrectQuestionAnswer=function(e,n){this.onIsAnswerCorrect.isEmpty||(n.question=e,this.onIsAnswerCorrect.fire(this,n))},t.prototype.getCorrectedAnswerCountCore=function(e){for(var n=this.getQuizQuestions(),r=0,o=0;o<n.length;o++){var s=n[o],c=s.correctAnswerCount;e?r+=c:r+=s.quizQuestionCount-c}return r},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.showTimer?this.timerLocation:"none"},set:function(e){this.showTimer=e!=="none",this.showTimer&&(this.timerLocation=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimer",{get:function(){return this.getPropertyValue("showTimer")},set:function(e){this.setPropertyValue("showTimer",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerLocation",{get:function(){return this.getPropertyValue("timerLocation")},set:function(e){this.setPropertyValue("timerLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return this.showTimer&&this.timerLocation==="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return this.showTimer&&this.timerLocation==="bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoMode",{get:function(){return this.getTimerInfoVal(this.getPropertyValue("timerInfoMode"))},set:function(e){this.setPropertyValue("timerInfoMode",e)},enumerable:!1,configurable:!0}),t.prototype.getTimerInfoVal=function(e){return e==="all"?"combined":e},Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){var e=this.timerInfoMode;return e==="combined"?"all":e},set:function(e){this.timerInfoMode=this.getTimerInfoVal(e)},enumerable:!1,configurable:!0}),t.prototype.updateGridColumns=function(){this.pages.forEach(function(e){return e.updateGridColumns()})},Object.defineProperty(t.prototype,"widthMode",{get:function(){return this.getPropertyValue("widthMode")},set:function(e){this.setPropertyValue("widthMode",e)},enumerable:!1,configurable:!0}),t.prototype.setCalculatedWidthModeUpdater=function(){var e=this;this.isLoadingFromJson||(this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new Lt(function(){return e.calculateWidthMode()}),this.calculatedWidthMode=this.calculatedWidthModeUpdater)},t.prototype.calculateWidthMode=function(){if(this.widthMode=="auto"){var e=!1;return this.pages.forEach(function(n){n.needResponsiveWidth()&&(e=!0)}),e?"responsive":"static"}return this.widthMode},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("calculatedWidthMode")=="static",n=this.getPropertyValue("width");if(this.isScaled&&this.responsiveStartWidth>1){var r=this.responsiveStartWidth;try{n=n||this.staticStartWidth,r=isNaN(n)?parseFloat(n.toString().replace("px","")):n}catch{}return(e?r:this.responsiveStartWidth)*this.widthScale/100+"px"}return n&&!isNaN(n)&&(n=n+"px"),e&&n||void 0},enumerable:!1,configurable:!0}),t.prototype.setStaticStartWidth=function(e){this.staticStartWidth=e},t.prototype.setResponsiveStartWidth=function(e){this.responsiveStartWidth=e},Object.defineProperty(t.prototype,"isScaled",{get:function(){return Math.abs(this.widthScale-100)>.001},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfo",{get:function(){return this.getTimerInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerClock",{get:function(){var e,n;if(this.currentPage){var r=this.getTimerInfo(),o=r.spent,s=r.limit,c=r.minorSpent,y=r.minorLimit;s>0?e=this.getDisplayClockTime(s-o):e=this.getDisplayClockTime(o),c!==void 0&&(y>0?n=this.getDisplayClockTime(y-c):n=this.getDisplayClockTime(c))}return{majorText:e,minorText:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var n=new ut(this,!0);return n.text=e.text,n.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfo=function(){var e=this.currentPage;if(!e)return{spent:0,limit:0};var n=e.timeSpent,r=this.timeSpent,o=e.getMaxTimeToFinish(),s=this.timeLimit;return this.timerInfoMode=="page"?{spent:n,limit:o}:this.timerInfoMode=="survey"?{spent:r,limit:s}:o>0&&s>0?{spent:n,limit:o,minorSpent:r,minorLimit:s}:o>0?{spent:n,limit:o,minorSpent:r}:s>0?{spent:r,limit:s,minorSpent:n}:{spent:n,minorSpent:r}},t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var n=this.getDisplayTime(e.timeSpent),r=this.getDisplayTime(this.timeSpent),o=e.getMaxTimeToFinish(),s=this.getDisplayTime(o),c=this.getDisplayTime(this.timeLimit);if(this.timerInfoMode=="page")return this.getTimerInfoPageText(e,n,s);if(this.timerInfoMode=="survey")return this.getTimerInfoSurveyText(r,c);if(this.timerInfoMode=="combined"){if(o<=0&&this.timeLimit<=0)return this.getLocalizationFormatString("timerSpentAll",n,r);if(o>0&&this.timeLimit>0)return this.getLocalizationFormatString("timerLimitAll",n,s,r,c);var y=this.getTimerInfoPageText(e,n,s),w=this.getTimerInfoSurveyText(r,c);return y+" "+w}return""},t.prototype.getTimerInfoPageText=function(e,n,r){return e&&e.getMaxTimeToFinish()>0?this.getLocalizationFormatString("timerLimitPage",n,r):this.getLocalizationFormatString("timerSpentPage",n,r)},t.prototype.getTimerInfoSurveyText=function(e,n){var r=this.timeLimit>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(r,e,n)},t.prototype.getDisplayClockTime=function(e){e<0&&(e=0);var n=Math.floor(e/60),r=e%60,o=r.toString();return r<10&&(o="0"+o),n+":"+o},t.prototype.getDisplayTime=function(e){var n=Math.floor(e/60),r=e%60,o="";return n>0&&(o+=n+" "+this.getLocalizationString("timerMin")),o&&r==0?o:(o&&(o+=" "),o+r+" "+this.getLocalizationString("timerSec"))},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.timerModelValue},enumerable:!1,configurable:!0}),t.prototype.startTimer=function(){this.isEditMode&&this.timerModel.start()},t.prototype.startTimerFromUI=function(){this.showTimer&&this.state==="running"&&this.startTimer()},t.prototype.stopTimer=function(){this.timerModel.stop()},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.timerModel.spent},set:function(e){this.timerModel.spent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeLimit",{get:function(){return this.getPropertyValue("timeLimit",0)},set:function(e){this.setPropertyValue("timeLimit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.timeLimit},set:function(e){this.timeLimit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeLimitPerPage",{get:function(){return this.getPropertyValue("timeLimitPerPage",0)},set:function(e){this.setPropertyValue("timeLimitPerPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.timeLimitPerPage},set:function(e){this.timeLimitPerPage=e},enumerable:!1,configurable:!0}),t.prototype.doTimer=function(e){if(this.onTimerTick.fire(this,{}),this.timeLimit>0&&this.timeLimit<=this.timeSpent&&(this.timeSpent=this.timeLimit,this.tryComplete()),e){var n=e.getMaxTimeToFinish();n>0&&n==e.timeSpent&&(this.isLastPage?this.tryComplete():this.nextPage())}},Object.defineProperty(t.prototype,"inSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,n){var r=[];return Array.prototype.push.apply(r,this.getPagesByNames(e)),Array.prototype.push.apply(r,this.getQuestionsByNames(n)),r},t.prototype.setTriggerValue=function(e,n,r){if(e)if(r)this.setVariable(e,n);else{var o=this.getQuestionByName(e);if(this.startSetValueFromTrigger(),o)o.value=n;else{var s=new ke,c=s.getFirstName(e);if(c==e)this.setValue(e,n);else{if(!this.getQuestionByName(c))return;var y=this.getUnbindValue(this.getFilteredValues());s.setValue(y,e,n),this.setValue(c,y[c])}}this.finishSetValueFromTrigger()}},t.prototype.copyTriggerValue=function(e,n,r){if(!(!e||!n)){var o;if(r)o=this.processText("{"+n+"}",!0);else{var s=new ke;o=s.getValue(n,this.getFilteredValues())}this.setTriggerValue(e,o,!1)}},t.prototype.triggerExecuted=function(e){this.onTriggerExecuted.fire(this,{trigger:e})},Object.defineProperty(t.prototype,"isSettingValueFromTrigger",{get:function(){return this.setValueFromTriggerCounter>0},enumerable:!1,configurable:!0}),t.prototype.startSetValueFromTrigger=function(){this.setValueFromTriggerCounter++},t.prototype.finishSetValueFromTrigger=function(){this.setValueFromTriggerCounter--},t.prototype.startMovingQuestion=function(){this.isMovingQuestion=!0},t.prototype.stopMovingQuestion=function(){this.isMovingQuestion=!1},Object.defineProperty(t.prototype,"isQuestionDragging",{get:function(){return this.isMovingQuestion},enumerable:!1,configurable:!0}),t.prototype.focusQuestion=function(e){return this.focusQuestionByInstance(this.getQuestionByName(e,!0))},t.prototype.focusQuestionByInstance=function(e,n){var r;if(n===void 0&&(n=!1),!e||!e.isVisible||!e.page)return!1;var o=(r=this.focusingQuestionInfo)===null||r===void 0?void 0:r.question;if(o===e)return!1;this.focusingQuestionInfo={question:e,onError:n},this.skippedPages.push({from:this.currentPage,to:e.page});var s=this.activePage!==e.page&&!e.page.isStartPage;return s&&(this.currentPage=e.page,this.isSingleVisibleQuestion&&!this.isDesignMode&&(this.currentSingleQuestion=e)),s||this.focusQuestionInfo(),!0},t.prototype.focusQuestionInfo=function(){var e,n=(e=this.focusingQuestionInfo)===null||e===void 0?void 0:e.question;n&&!n.isDisposed&&n.focus(this.focusingQuestionInfo.onError),this.focusingQuestionInfo=void 0},t.prototype.questionEditFinishCallback=function(e,n){var r=this.enterKeyAction||z.enterKeyAction;if(r=="loseFocus"&&n.target.blur(),r=="moveToNextEditor"){var o=this.currentPage.questions,s=o.indexOf(e);s>-1&&s<o.length-1?o[s+1].focus():n.target.blur()}},t.prototype.elementWrapperComponentNameCore=function(e,n,r,o,s){if(this.onElementWrapperComponentName.isEmpty)return e;var c={componentName:e,element:n,wrapperName:r,reason:o,item:s};return this.onElementWrapperComponentName.fire(this,c),c.componentName},t.prototype.elementWrapperDataCore=function(e,n,r,o,s){if(this.onElementWrapperComponentData.isEmpty)return e;var c={data:e,element:n,wrapperName:r,reason:o,item:s};return this.onElementWrapperComponentData.fire(this,c),c.data},t.prototype.getElementWrapperComponentName=function(e,n){var r=n==="logo-image"?"sv-logo-image":t.TemplateRendererComponentName;return this.elementWrapperComponentNameCore(r,e,"component",n)},t.prototype.getQuestionContentWrapperComponentName=function(e){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,e,"content-component")},t.prototype.getRowWrapperComponentName=function(e){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,e,"row")},t.prototype.getItemValueWrapperComponentName=function(e,n){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,n,"itemvalue",void 0,e)},t.prototype.getElementWrapperComponentData=function(e,n){return this.elementWrapperDataCore(e,e,"component",n)},t.prototype.getRowWrapperComponentData=function(e){return this.elementWrapperDataCore(e,e,"row")},t.prototype.getItemValueWrapperComponentData=function(e,n){return this.elementWrapperDataCore(e,n,"itemvalue",void 0,e)},t.prototype.getMatrixCellTemplateData=function(e){var n=e.question;return this.elementWrapperDataCore(n,n,"cell")},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var n=[],r=0;r<this.pages.length;r++)this.pages[r].searchText(e,n);return n},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.addLayoutElement=function(e){var n=this.removeLayoutElement(e.id);return this.layoutElements.push(e),n},t.prototype.findLayoutElement=function(e){var n=this.layoutElements.filter(function(r){return r.id===e})[0];return n},t.prototype.removeLayoutElement=function(e){var n=this.findLayoutElement(e);if(n){var r=this.layoutElements.indexOf(n);this.layoutElements.splice(r,1)}return n},t.prototype.getContainerContent=function(e){for(var n=[],r=0,o=this.layoutElements;r<o.length;r++){var s=o[r];if(this.mode!=="display"&&Nr(s.id,"timerpanel"))e==="header"&&this.isTimerPanelShowingOnTop&&!this.isShowStartingPage&&n.push(s),e==="footer"&&this.isTimerPanelShowingOnBottom&&!this.isShowStartingPage&&n.push(s);else if(this.state==="running"&&Nr(s.id,this.progressBarComponentName)){if(this.questionsOnPageMode!="singlePage"||this.progressBarType=="questions"){var c=this.findLayoutElement("advanced-header"),y=c&&c.data,w=!y||y.hasBackground;Nr(this.showProgressBar,"aboveHeader")&&(w=!1),Nr(this.showProgressBar,"belowHeader")&&(w=!0),e==="header"&&!w&&(s.index=-150,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&n.push(s)),e==="center"&&w&&(s.index&&delete s.index,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&n.push(s)),e==="footer"&&this.isShowProgressBarOnBottom&&!this.isShowStartingPage&&n.push(s)}}else Nr(s.id,"buttons-navigation")?(e==="contentTop"&&["top","both"].indexOf(this.isNavigationButtonsShowing)!==-1&&n.push(s),e==="contentBottom"&&["bottom","both"].indexOf(this.isNavigationButtonsShowing)!==-1&&n.push(s)):this.state==="running"&&Nr(s.id,"toc-navigation")&&this.showTOC?(e==="left"&&["left","both"].indexOf(this.tocLocation)!==-1&&n.push(s),e==="right"&&["right","both"].indexOf(this.tocLocation)!==-1&&n.push(s)):Nr(s.id,"advanced-header")?(this.state==="running"||this.state==="starting"||this.showHeaderOnCompletePage===!0&&this.state==="completed")&&s.container===e&&n.push(s):(Array.isArray(s.container)&&s.container.indexOf(e)!==-1||s.container===e)&&n.push(s)}return n.sort(function(N,Q){return(N.index||0)-(Q.index||0)}),n},t.prototype.processPopupVisiblityChanged=function(e,n,r){this.onPopupVisibleChanged.fire(this,{question:e,popup:n,visible:r})},t.prototype.processOpenDropdownMenu=function(e,n){var r=Object.assign({question:e},n);this.onOpenDropdownMenu.fire(this,r),n.menuType=r.menuType},t.prototype.getCssTitleExpandableSvg=function(){return null},t.prototype.applyTheme=function(e){var n=this;if(e){if(Object.keys(e).forEach(function(o){o!=="header"&&(o==="isPanelless"?n.isCompact=e[o]:n[o]=e[o])}),this.headerView==="advanced"||"header"in e){this.removeLayoutElement("advanced-header");var r=new Xa;r.fromTheme(e),this.insertAdvancedHeader(r)}this.themeChanged(e)}},t.prototype.themeChanged=function(e){this.getAllQuestions().forEach(function(n){return n.themeChanged(e)})},t.prototype.dispose=function(){if(this.unConnectEditingObj(),this.removeScrollEventListener(),this.destroyResizeObserver(),this.rootElement=void 0,this.layoutElements){for(var e=0;e<this.layoutElements.length;e++)this.layoutElements[e].data&&this.layoutElements[e].data!==this&&this.layoutElements[e].data.dispose&&this.layoutElements[e].data.dispose();this.layoutElements.splice(0,this.layoutElements.length)}if(i.prototype.dispose.call(this),this.editingObj=null,!!this.pages){this.currentPage=null;for(var e=0;e<this.pages.length;e++)this.pages[e].setSurveyImpl(void 0),this.pages[e].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}},t.prototype._isElementShouldBeSticky=function(e){if(!e)return!1;var n=this.rootElement.querySelector(e);return n?this.rootElement.scrollTop>0&&n.getBoundingClientRect().y<=this.rootElement.getBoundingClientRect().y:!1},t.prototype.onScroll=function(){this.rootElement&&(this._isElementShouldBeSticky(".sv-components-container-center")?this.rootElement.classList&&this.rootElement.classList.add("sv-root--sticky-top"):this.rootElement.classList&&this.rootElement.classList.remove("sv-root--sticky-top")),this.onScrollCallback&&this.onScrollCallback()},t.prototype.addScrollEventListener=function(){var e=this,n;this.scrollHandler=function(){e.onScroll()},this.rootElement.addEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].addEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&((n=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])===null||n===void 0||n.addEventListener("scroll",this.scrollHandler))},t.prototype.removeScrollEventListener=function(){var e;this.rootElement&&this.scrollHandler&&(this.rootElement.removeEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].removeEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&((e=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])===null||e===void 0||e.removeEventListener("scroll",this.scrollHandler)))},t.TemplateRendererComponentName="sv-template-renderer",t.platform="unknown",St([D()],t.prototype,"completedCss",void 0),St([D()],t.prototype,"completedBeforeCss",void 0),St([D()],t.prototype,"loadingBodyCss",void 0),St([D()],t.prototype,"containerCss",void 0),St([D({onSet:function(e,n){n.updateCss()}})],t.prototype,"fitToContainer",void 0),St([D({onSet:function(e,n){if(e==="advanced"){var r=n.findLayoutElement("advanced-header");if(!r){var o=new Xa;o.logoPositionX=n.logoPosition==="right"?"right":"left",o.logoPositionY="middle",o.titlePositionX=n.logoPosition==="right"?"left":"right",o.titlePositionY="middle",o.descriptionPositionX=n.logoPosition==="right"?"left":"right",o.descriptionPositionY="middle",n.insertAdvancedHeader(o)}}else n.removeLayoutElement("advanced-header")}})],t.prototype,"headerView",void 0),St([D()],t.prototype,"showBrandInfo",void 0),St([D()],t.prototype,"enterKeyAction",void 0),St([D()],t.prototype,"lazyRenderingFirstBatchSizeValue",void 0),St([D({defaultValue:!0})],t.prototype,"titleIsEmpty",void 0),St([D({defaultValue:{}})],t.prototype,"cssVariables",void 0),St([D()],t.prototype,"_isMobile",void 0),St([D()],t.prototype,"_isCompact",void 0),St([D({onSet:function(e,n){n.updateCss()}})],t.prototype,"backgroundImage",void 0),St([D()],t.prototype,"renderBackgroundImage",void 0),St([D()],t.prototype,"backgroundImageFit",void 0),St([D({onSet:function(e,n){n.updateCss()}})],t.prototype,"backgroundImageAttachment",void 0),St([D()],t.prototype,"backgroundImageStyle",void 0),St([D()],t.prototype,"wrapperFormCss",void 0),St([D({getDefaultValue:function(e){return e.progressBarType==="buttons"}})],t.prototype,"progressBarShowPageTitles",void 0),St([D()],t.prototype,"progressBarShowPageNumbers",void 0),St([D()],t.prototype,"progressBarInheritWidthFrom",void 0),St([D({defaultValue:!0})],t.prototype,"validationEnabled",void 0),St([D()],t.prototype,"rootCss",void 0),St([D({onSet:function(e,n){n.updateGridColumns()}})],t.prototype,"gridLayoutEnabled",void 0),St([D()],t.prototype,"calculatedWidthMode",void 0),St([D({defaultValue:100,onSet:function(e,n,r){n.pages.forEach(function(o){return o.updateRootStyle()})}})],t.prototype,"widthScale",void 0),St([D()],t.prototype,"staticStartWidth",void 0),St([D()],t.prototype,"responsiveStartWidth",void 0),St([be()],t.prototype,"layoutElements",void 0),t}(zo);function Nr(i,t){return!i||!t?!1:i.toUpperCase()===t.toUpperCase()}G.addClass("survey",[{name:"locale",choices:function(){return H.getLocales(!0)},onGetValue:function(i){return i.locale==H.defaultLocale?null:i.locale}},{name:"title",serializationProperty:"locTitle",dependsOn:"locale"},{name:"description:text",serializationProperty:"locDescription",dependsOn:"locale"},{name:"logo:file",serializationProperty:"locLogo"},{name:"logoWidth",default:"300px",minValue:0},{name:"logoHeight",default:"200px",minValue:0},{name:"logoFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"logoPosition",default:"left",choices:["none","left","right","top","bottom"]},{name:"focusFirstQuestionAutomatic:boolean"},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem",isArray:!0},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page",isArray:!0,onSerializeValue:function(i){return i.originalPages||i.pages}},{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(i){return null},onSetValue:function(i,t,e){i.pages.splice(0,i.pages.length);var n=i.addNewPage("");e.toObject({questions:t},n,e==null?void 0:e.options)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue",isArray:!0},{name:"sjsVersion",visible:!1},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving:boolean",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons",default:"bottom",choices:["none","top","bottom","both"]},{name:"showPrevButton:boolean",default:!0,visibleIf:function(i){return i.showNavigationButtons!=="none"}},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem",isArray:!0},{name:"questionsOrder",default:"initial",choices:["initial","random"]},{name:"matrixDragHandleArea",visible:!1,default:"entireItem",choices:["entireItem","icon"]},"showPageNumbers:boolean",{name:"showQuestionNumbers",default:"on",choices:["on","onPage","off"]},{name:"questionTitleLocation",default:"top",choices:["top","bottom","left"]},{name:"questionDescriptionLocation",default:"underTitle",choices:["underInput","underTitle"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","auto","aboveheader","belowheader","bottom","topbottom"]},{name:"progressBarType",default:"pages",choices:["pages","questions","requiredQuestions","correctQuestions"],visibleIf:function(i){return i.showProgressBar!=="off"}},{name:"progressBarShowPageTitles:switch",category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"progressBarShowPageNumbers:switch",default:!1,category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"progressBarInheritWidthFrom",default:"container",choices:["container","survey"],category:"navigation",visibleIf:function(i){return i.showProgressBar!=="off"&&i.progressBarType==="pages"}},{name:"showTOC:switch",default:!1},{name:"tocLocation",default:"left",choices:["left","right"],dependsOn:["showTOC"],visibleIf:function(i){return!!i&&i.showTOC}},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},{name:"goNextPageAutomatic:boolean",onSetValue:function(i,t){t!=="autogonext"&&(t=m.isTwoValueEquals(t,!0)),i.setPropertyValue("goNextPageAutomatic",t)}},{name:"allowCompleteSurveyAutomatic:boolean",default:!0,visibleIf:function(i){return i.goNextPageAutomatic===!0}},{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onComplete"]},{name:"validateVisitedEmptyFields:boolean",dependsOn:"checkErrorsMode",visibleIf:function(i){return i.checkErrorsMode==="onValueChanged"}},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"autoGrowComment:boolean",default:!1},{name:"allowResizeComment:boolean",default:!0},{name:"commentAreaRows:number",minValue:1},{name:"startSurveyText",serializationProperty:"locStartSurveyText",visibleIf:function(i){return i.firstPageIsStarted}},{name:"pagePrevText",serializationProperty:"locPagePrevText",visibleIf:function(i){return i.showNavigationButtons!=="none"&&i.showPrevButton}},{name:"pageNextText",serializationProperty:"locPageNextText",visibleIf:function(i){return i.showNavigationButtons!=="none"}},{name:"completeText",serializationProperty:"locCompleteText",visibleIf:function(i){return i.showNavigationButtons!=="none"}},{name:"previewText",serializationProperty:"locPreviewText",visibleIf:function(i){return i.showPreviewBeforeComplete!=="noPreview"}},{name:"editText",serializationProperty:"locEditText",visibleIf:function(i){return i.showPreviewBeforeComplete!=="noPreview"}},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(i){return!i||i.showQuestionNumbers!=="off"}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(i){return i?i.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["standard","singlePage","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"showTimer:boolean"},{name:"timeLimit:number",alternativeName:"maxTimeToFinish",default:0,minValue:0,enableIf:function(i){return i.showTimer}},{name:"timeLimitPerPage:number",alternativeName:"maxTimeToFinishPage",default:0,minValue:0,enableIf:function(i){return i.showTimer}},{name:"timerLocation",default:"top",choices:["top","bottom"],enableIf:function(i){return i.showTimer}},{name:"timerInfoMode",alternativeName:"showTimerPanelMode",default:"combined",choices:["page","survey","combined"],enableIf:function(i){return i.showTimer}},{name:"showTimerPanel",visible:!1,isSerializable:!1},{name:"widthMode",default:"auto",choices:["auto","static","responsive"]},{name:"gridLayoutEnabled:boolean",default:!1},{name:"width",visibleIf:function(i){return i.widthMode==="static"}},{name:"fitToContainer:boolean",default:!0,visible:!1},{name:"headerView",default:"basic",choices:["basic","advanced"],visible:!1},{name:"backgroundImage:file",visible:!1},{name:"backgroundImageFit",default:"cover",choices:["auto","contain","cover"],visible:!1},{name:"backgroundImageAttachment",default:"scroll",choices:["scroll","fixed"],visible:!1},{name:"backgroundOpacity:number",minValue:0,maxValue:1,default:1,visible:!1},{name:"showBrandInfo:boolean",default:!1,visible:!1}]);var gl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),zn=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},fa=function(i){gl(t,i);function t(e){var n=i.call(this,e)||this;n.otherItemValue=new ge("other"),n.isSettingDefaultValue=!1,n.isSettingComment=!1,n.isRunningChoices=!1,n.isFirstLoadChoicesFromUrl=!0,n.isUpdatingChoicesDependedQuestions=!1,n._renderedChoices=[],n.renderedChoicesAnimation=new Ar(n.getRenderedChoicesAnimationOptions(),function(o){n._renderedChoices=o,n.renderedChoicesChangedCallback&&n.renderedChoicesChangedCallback()},function(){return n._renderedChoices}),n.headItemsCount=0,n.footItemsCount=0,n.prevIsOtherSelected=!1,n.noneItemValue=n.createDefaultItem(z.noneItemValue,"noneText","noneItemText"),n.refuseItemValue=n.createDefaultItem(z.refuseItemValue,"refuseText","refuseItemText"),n.dontKnowItemValue=n.createDefaultItem(z.dontKnowItemValue,"dontKnowText","dontKnowItemText"),n.createItemValues("choices"),n.registerPropertyChangedHandlers(["choices"],function(){n.filterItems()||n.onVisibleChoicesChanged()}),n.registerPropertyChangedHandlers(["choicesFromQuestion","choicesFromQuestionMode","choiceValuesFromQuestion","choiceTextsFromQuestion","showNoneItem","showRefuseItem","showDontKnowItem","isUsingRestful","isMessagePanelVisible"],function(){n.onVisibleChoicesChanged()}),n.registerPropertyChangedHandlers(["hideIfChoicesEmpty"],function(){n.onVisibleChanged()}),n.createNewArray("visibleChoices",function(){return n.updateRenderedChoices()},function(){return n.updateRenderedChoices()}),n.setNewRestfulProperty();var r=n.createLocalizableString("otherText",n.otherItemValue,!0,"otherItemText");return n.createLocalizableString("otherErrorText",n,!0,"otherRequiredError"),n.otherItemValue.locOwner=n,n.otherItemValue.setLocText(r),n.choicesByUrl.createItemValue=function(o){return n.createItemValue(o)},n.choicesByUrl.beforeSendRequestCallback=function(){n.onBeforeSendRequest()},n.choicesByUrl.getResultCallback=function(o){n.onLoadChoicesFromUrl(o)},n.choicesByUrl.updateResultCallback=function(o,s){return n.survey?n.survey.updateChoicesFromServer(n,o,s):o},n}return Object.defineProperty(t.prototype,"waitingChoicesByURL",{get:function(){return!this.isChoicesLoaded&&this.hasChoicesUrl},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"selectbase"},t.prototype.dispose=function(){i.prototype.dispose.call(this);var e=this.getQuestionWithChoices();e&&e.removeDependedQuestion(this)},Object.defineProperty(t.prototype,"otherTextAreaModel",{get:function(){return this.otherTextAreaModelValue||(this.otherTextAreaModelValue=new ho(this.getOtherTextAreaOptions())),this.otherTextAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getOtherTextAreaOptions=function(){var e=this,n={question:this,id:function(){return e.otherId},propertyName:"otherValue",className:function(){return e.cssClasses.other},placeholder:function(){return e.otherPlaceholder},isDisabledAttr:function(){return e.isInputReadOnly||!1},rows:function(){return e.commentAreaRows},maxLength:function(){return e.getOthersMaxLength()},autoGrow:function(){return e.survey&&e.survey.autoGrowComment},ariaRequired:function(){return e.ariaRequired||e.a11y_input_ariaRequired},ariaLabel:function(){return e.ariaLabel||e.a11y_input_ariaLabel},getTextValue:function(){return e.otherValue},onTextAreaChange:function(r){e.onOtherValueChange(r)},onTextAreaInput:function(r){e.onOtherValueInput(r)}};return n},t.prototype.resetDependedQuestion=function(){this.choicesFromQuestion=""},Object.defineProperty(t.prototype,"otherId",{get:function(){return this.id+"_other"},enumerable:!1,configurable:!0}),t.prototype.getCommentElementsId=function(){return[this.commentId,this.otherId]},t.prototype.getItemValueType=function(){return"itemvalue"},t.prototype.createItemValue=function(e,n){var r=G.createClass(this.getItemValueType(),{value:e});return r.locOwner=this,n&&(r.text=n),r},Object.defineProperty(t.prototype,"isUsingCarryForward",{get:function(){return!!this.carryForwardQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"carryForwardQuestionType",{get:function(){return this.getPropertyValue("carryForwardQuestionType")},enumerable:!1,configurable:!0}),t.prototype.setCarryForwardQuestionType=function(e,n){var r=e?"select":n?"array":void 0;this.setPropertyValue("carryForwardQuestionType",r)},Object.defineProperty(t.prototype,"isUsingRestful",{get:function(){return this.getPropertyValueWithoutDefault("isUsingRestful")||!1},enumerable:!1,configurable:!0}),t.prototype.updateIsUsingRestful=function(){this.setPropertyValueDirectly("isUsingRestful",this.hasChoicesUrl)},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.otherValue},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.choicesOrder!=="none"&&(this.updateVisibleChoices(),this.onVisibleChoicesChanged())},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(ge.locStrsChanged(this.choicesFromUrl),ge.locStrsChanged(this.visibleChoices)),this.isUsingCarryForward&&ge.locStrsChanged(this.visibleChoices)},t.prototype.updatePrevOtherErrorValue=function(e){var n=this.otherValue;e!==n&&(this.prevOtherErrorValue=n)},Object.defineProperty(t.prototype,"otherValue",{get:function(){return this.showCommentArea?this.otherValueCore:this.comment},set:function(e){this.updatePrevOtherErrorValue(e),this.showCommentArea?this.setOtherValueInternally(e):this.comment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherValueCore",{get:function(){return this.getPropertyValue("otherValue")},set:function(e){this.setPropertyValue("otherValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNoneSelected",{get:function(){return this.showNoneItem&&this.getIsItemValue(this.renderedValue,this.noneItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNoneItem",{get:function(){return this.getPropertyValue("showNoneItem")},set:function(e){this.setPropertyValue("showNoneItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.showNoneItem},set:function(e){this.showNoneItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText")},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRefuseItem",{get:function(){return this.getPropertyValue("showRefuseItem")},set:function(e){this.setPropertyValue("showRefuseItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refuseItem",{get:function(){return this.refuseItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refuseText",{get:function(){return this.getLocalizableStringText("refuseText")},set:function(e){this.setLocalizableStringText("refuseText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRefuseText",{get:function(){return this.getLocalizableString("refuseText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showDontKnowItem",{get:function(){return this.getPropertyValue("showDontKnowItem")},set:function(e){this.setPropertyValue("showDontKnowItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dontKnowItem",{get:function(){return this.dontKnowItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dontKnowText",{get:function(){return this.getLocalizableStringText("dontKnowText")},set:function(e){this.setLocalizableStringText("dontKnowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDontKnowText",{get:function(){return this.getLocalizableString("dontKnowText")},enumerable:!1,configurable:!0}),t.prototype.createDefaultItem=function(e,n,r){var o=new ge(e),s=this.createLocalizableString(n,o,!0,r);return o.locOwner=this,o.setLocText(s),o},Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){this.filterItems()},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.runItemsEnableCondition(e,n),this.runItemsCondition(e,n),this.choices.forEach(function(r){r.runConditionCore(e,n)})},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),this.prevOtherValue=void 0;var e=this.comment;i.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1,this.comment&&this.getStoreOthersAsComment()&&e!==this.comment&&(this.setValueCore(this.setOtherValueIntoValue(this.value)),this.setCommentIntoData(this.comment))},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(e==null||e==null)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),n=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,n),this.runItemsCondition(e,n)},t.prototype.runItemsCondition=function(e,n){this.setConditionalChoicesRunner();var r=this.runConditionsForItems(e,n);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),r&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),r},t.prototype.runItemsEnableCondition=function(e,n){var r=this;this.setConditionalEnableChoicesRunner();var o=ge.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,n,function(s,c){return c&&r.onEnableItemCallBack(s)});o&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.onSelectedItemValuesChangedHandler=function(e){var n;(n=this.survey)===null||n===void 0||n.loadedChoicesFromServer(this)},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.waitingChoicesByURL?this.createItemValue(e,n):null},t.prototype.getSingleSelectedItem=function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var n=ge.getItemByValue(this.visibleChoices,this.value);return this.onGetSingleSelectedItem(n),!n&&(!e||this.value!=e.id)&&this.updateSelectedItemValues(),n||e||(this.isOtherSelected?this.otherItem:this.getItemIfChoicesNotContainThisValue(this.value))},t.prototype.onGetSingleSelectedItem=function(e){},t.prototype.getMultipleSelectedItems=function(){return[]},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new pn(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new pn(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.canSurveyChangeItemVisibility=function(){return!!this.survey&&this.survey.canChangeChoiceItemsVisibility()},t.prototype.changeItemVisibility=function(){var e=this;return this.canSurveyChangeItemVisibility()?function(n,r){return e.survey.getChoiceItemVisibility(e,n,r)}:null},t.prototype.runConditionsForItems=function(e,n){this.filteredChoicesValue=[];var r=this.changeItemVisibility();return ge.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,n,!this.survey||!this.survey.areInvisibleElementsShowing,function(o,s){return r?r(o,s):s})},t.prototype.getHasOther=function(e){return this.getIsItemValue(e,this.otherItem)},t.prototype.getIsItemValue=function(e,n){return e===n.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new ue},t.prototype.setNewRestfulProperty=function(){this.setPropertyValue("choicesByUrl",this.createRestful()),this.choicesByUrl.owner=this,this.choicesByUrl.loadingOwner=this},Object.defineProperty(t.prototype,"autoOtherMode",{get:function(){return this.getPropertyValue("autoOtherMode")},set:function(e){this.setPropertyValue("autoOtherMode",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionComment=function(){return this.showCommentArea?i.prototype.getQuestionComment.call(this):this.otherValueCore?this.otherValueCore:this.hasComment||this.getStoreOthersAsComment()?i.prototype.getQuestionComment.call(this):this.otherValueCore},t.prototype.selectOtherValueFromComment=function(e){e&&(this.prevIsOtherSelected=!0),this.value=e?this.otherItem.value:void 0},t.prototype.setQuestionComment=function(e){if(this.updatePrevOtherErrorValue(e),this.showCommentArea){i.prototype.setQuestionComment.call(this,e);return}this.onUpdateCommentOnAutoOtherMode(e),this.getStoreOthersAsComment()?i.prototype.setQuestionComment.call(this,e):this.setOtherValueInternally(e),this.updateChoicesDependedQuestions()},t.prototype.onUpdateCommentOnAutoOtherMode=function(e){if(this.autoOtherMode){this.prevOtherValue=void 0;var n=this.isOtherSelected;(!n&&e||n&&!e)&&this.selectOtherValueFromComment(!!e)}},t.prototype.setOtherValueInternally=function(e){!this.isSettingComment&&e!=this.otherValueCore&&(this.isSettingComment=!0,this.otherValueCore=e,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},t.prototype.clearValue=function(e){i.prototype.clearValue.call(this,e),this.prevOtherValue=void 0,this.selectedItemValues=void 0},t.prototype.updateCommentFromSurvey=function(e){i.prototype.updateCommentFromSurvey.call(this,e),this.prevOtherValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(n){if(!this.isReadOnlyAttr){this.setPropertyValue("renderedValue",n);var n=this.rendredValueToData(n);this.isTwoValueEquals(n,this.value)||(this.value=n)}},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(e,n,r){if(n===void 0&&(n=!0),r===void 0&&(r=!0),!(this.isLoadingFromJson||this.isTwoValueEquals(this.value,e))&&(i.prototype.setQuestionValue.call(this,e,n),this.setPropertyValue("renderedValue",this.rendredValueFromData(e)),this.updateChoicesDependedQuestions(),!(this.hasComment||!r))){var o=this.isOtherSelected;if(o&&this.prevOtherValue){var s=this.prevOtherValue;this.prevOtherValue=void 0,this.otherValue=s}!o&&this.otherValue&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevOtherValue=this.otherValue),this.makeCommentEmpty=!0,this.otherValueCore="",this.setPropertyValue("comment",""))}},t.prototype.setValueCore=function(e){i.prototype.setValueCore.call(this,e),this.makeCommentEmpty&&(this.setCommentIntoData(""),this.makeCommentEmpty=!1)},t.prototype.setNewValue=function(e){e=this.valueFromData(e),(!this.choicesByUrl.isRunning&&!this.choicesByUrl.isWaitingForParameters||!this.isValueEmpty(e))&&(this.cachedValueForUrlRequests=e),i.prototype.setNewValue.call(this,e)},t.prototype.valueFromData=function(e){var n=ge.getItemByValue(this.activeChoices,e);return n?n.value:i.prototype.valueFromData.call(this,e)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0,!1)?(this.otherValue=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()&&(e=this.otherValue),e},t.prototype.needConvertRenderedOtherToDataValue=function(){var e=this.otherValue;return!e||(e=e.trim(),!e)?!1:this.hasUnknownValue(e,!0,!1)},t.prototype.getIsQuestionReady=function(){return i.prototype.getIsQuestionReady.call(this)&&!this.waitingChoicesByURL&&!this.waitingGetChoiceDisplayValueResponse},t.prototype.updateSelectedItemValues=function(){var e=this;if(!(this.waitingGetChoiceDisplayValueResponse||!this.survey||this.isEmpty())){var n=this.value,r=Array.isArray(n)?n:[n],o=r.some(function(s){return!ge.getItemByValue(e.choices,s)});o&&(this.choicesLazyLoadEnabled||this.hasChoicesUrl)&&(this.waitingGetChoiceDisplayValueResponse=!0,this.updateIsReady(),this.survey.getChoiceDisplayValue({question:this,values:r,setItems:function(s){for(var c=[],y=1;y<arguments.length;y++)c[y-1]=arguments[y];if(e.waitingGetChoiceDisplayValueResponse=!1,!s||!s.length){e.updateIsReady();return}var w=s.map(function(N,Q){return e.createItemValue(r[Q],N)});e.setCustomValuesIntoItems(w,c),Array.isArray(n)?e.selectedItemValues=w:e.selectedItemValues=w[0],e.updateIsReady()}}))}},t.prototype.setCustomValuesIntoItems=function(e,n){!Array.isArray(n)||n.length===0||n.forEach(function(r){var o=r.values,s=r.propertyName;if(Array.isArray(o))for(var c=0;c<e.length&&c<o.length;c++)e[c][s]=o[c]})},t.prototype.hasUnknownValue=function(e,n,r,o){if(n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),!Array.isArray(e))return this.hasUnknownValueItem(e,n,r,o);for(var s=0;s<e.length;s++)if(this.hasUnknownValueItem(e,n,r,o))return!0;return!1},t.prototype.hasUnknownValueItem=function(e,n,r,o){if(n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),!o&&this.isValueEmpty(e)||n&&e==this.otherItem.value||this.showNoneItem&&e==this.noneItem.value||this.showRefuseItem&&e==this.refuseItem.value||this.showDontKnowItem&&e==this.dontKnowItem.value)return!1;var s=r?this.getFilteredChoices():this.activeChoices;return ge.getItemByValue(s,e)==null},t.prototype.isValueDisabled=function(e){var n=ge.getItemByValue(this.getFilteredChoices(),e);return!!n&&!n.isEnabled},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.updateVisibleChoices()},Object.defineProperty(t.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},set:function(e){e&&(this.setNewRestfulProperty(),this.choicesByUrl.fromJSON(e.toJSON()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestion",{get:function(){return this.getPropertyValue("choicesFromQuestion")},set:function(e){var n=this.getQuestionWithChoices();this.isLockVisibleChoices=!!n&&n.name===e,n&&n.name!==e&&(n.removeDependedQuestion(this),this.isInDesignMode&&!this.isLoadingFromJson&&e&&this.setPropertyValue("choicesFromQuestion",void 0)),this.setPropertyValue("choicesFromQuestion",e),this.isLockVisibleChoices=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestionMode",{get:function(){return this.getPropertyValue("choicesFromQuestionMode")},set:function(e){this.setPropertyValue("choicesFromQuestionMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceValuesFromQuestion",{get:function(){return this.getPropertyValue("choiceValuesFromQuestion")},set:function(e){this.setPropertyValue("choiceValuesFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceTextsFromQuestion",{get:function(){return this.getPropertyValue("choiceTextsFromQuestion")},set:function(e){this.setPropertyValue("choiceTextsFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty")},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){e=e.toLowerCase(),e!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText")},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.otherPlaceholder},set:function(e){this.otherPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText")},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],n=this.visibleChoices,r=0;r<n.length;r++)n[r].isEnabled&&e.push(n[r]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!(this.isLoadingFromJson||this.isDisposed)){var e=new Array,n=this.calcVisibleChoices();n||(n=[]);for(var r=0;r<n.length;r++)e.push(n[r]);var o=this.visibleChoices;(!this.isTwoValueEquals(o,e)||this.choicesLazyLoadEnabled)&&(this.setArrayPropertyDirectly("visibleChoices",e),this.updateRenderedChoices())}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.getFilteredChoices();var e=this.sortVisibleChoices(this.getFilteredChoices().slice());return this.addToVisibleChoices(e,this.isAddDefaultItems),e},t.prototype.canUseFilteredChoices=function(){return!this.isAddDefaultItems&&!this.showNoneItem&&!this.showRefuseItem&&!this.showDontKnowItem&&!this.hasOther&&this.choicesOrder=="none"},t.prototype.setCanShowOptionItemCallback=function(e){this.canShowOptionItemCallback=e,e&&this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"newItem",{get:function(){return this.newItemValue},enumerable:!1,configurable:!0}),t.prototype.addToVisibleChoices=function(e,n){this.headItemsCount=0,this.footItemsCount=0,this.isEmptyActiveChoicesInDesign||this.addNewItemToVisibleChoices(e,n);var r=new Array;this.addNonChoicesItems(r,n),r.sort(function(c,y){return c.index===y.index?0:c.index<y.index?-1:1});for(var o=0;o<r.length;o++){var s=r[o];s.index<0?(e.splice(o,0,s.item),this.headItemsCount++):(e.push(s.item),this.footItemsCount++)}},t.prototype.addNewItemToVisibleChoices=function(e,n){var r=this;n&&(this.newItemValue||(this.newItemValue=this.createItemValue("newitem"),this.newItemValue.isGhost=!0,this.newItemValue.registerFunctionOnPropertyValueChanged("isVisible",function(){r.updateVisibleChoices()})),this.newItemValue.isVisible&&!this.isUsingCarryForward&&this.canShowOptionItem(this.newItemValue,n,!1)&&(this.footItemsCount=1,e.push(this.newItemValue)))},t.prototype.addNonChoicesItems=function(e,n){this.supportNone()&&this.addNonChoiceItem(e,this.noneItem,n,this.showNoneItem,z.specialChoicesOrder.noneItem),this.supportRefuse()&&this.addNonChoiceItem(e,this.refuseItem,n,this.showRefuseItem,z.specialChoicesOrder.refuseItem),this.supportDontKnow()&&this.addNonChoiceItem(e,this.dontKnowItem,n,this.showDontKnowItem,z.specialChoicesOrder.dontKnowItem),this.supportOther()&&this.addNonChoiceItem(e,this.otherItem,n,this.hasOther,z.specialChoicesOrder.otherItem)},t.prototype.addNonChoiceItem=function(e,n,r,o,s){this.canShowOptionItem(n,r,o)&&s.forEach(function(c){return e.push({index:c,item:n})})},t.prototype.canShowOptionItem=function(e,n,r){var o=n&&(this.canShowOptionItemCallback?this.canShowOptionItemCallback(e):!0)||r;if(this.canSurveyChangeItemVisibility()){var s=this.changeItemVisibility();return s(e,o)}return o},t.prototype.isItemInList=function(e){return e===this.otherItem?this.hasOther:e===this.noneItem?this.showNoneItem:e===this.refuseItem?this.showRefuseItem:e===this.dontKnowItem?this.showDontKnowItem:e!==this.newItemValue},Object.defineProperty(t.prototype,"isAddDefaultItems",{get:function(){return z.showDefaultItemsInCreatorV2&&this.isInDesignModeV2&&!this.customWidget},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0,includeQuestionTypes:!1});var r=i.prototype.getPlainData.call(this,e);if(r){var o=Array.isArray(this.value)?this.value:[this.value];r.isNode=!0,r.data=(r.data||[]).concat(o.map(function(s,c){var y=ge.getItemByValue(n.visibleChoices,s),w={name:c,title:"Choice",value:s,displayValue:n.getChoicesDisplayValue(n.visibleChoices,s),getString:function(N){return typeof N=="object"?JSON.stringify(N):N},isNode:!1};return y&&(e.calculations||[]).forEach(function(N){w[N.propertyName]=y[N.propertyName]}),n.isOtherSelected&&n.otherItemValue===y&&(w.isOther=!0,w.displayValue=n.otherValue),w}))}return r},t.prototype.getDisplayValueCore=function(e,n){return this.useDisplayValuesInDynamicTexts?this.getChoicesDisplayValue(this.visibleChoices,n):n},t.prototype.getDisplayValueEmpty=function(){return ge.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,n){if(n==this.otherItemValue.value)return this.otherValue?this.otherValue:this.locOtherText.textOrHtml;var r=this.getSingleSelectedItem();if(r&&this.isTwoValueEquals(r.value,n))return r.locText.textOrHtml;var o=ge.getTextOrHtmlByValue(e,n);return o==""&&n?n:o},t.prototype.getDisplayArrayValue=function(e,n,r){for(var o=this,s=this.visibleChoices,c=[],y=[],w=0;w<n.length;w++)y.push(r?r(w):n[w]);if(m.isTwoValueEquals(this.value,y)&&this.getMultipleSelectedItems().forEach(function(Q,Y){return c.push(o.getItemDisplayValue(Q,y[Y]))}),c.length===0)for(var w=0;w<y.length;w++){var N=this.getChoicesDisplayValue(s,y[w]);N&&c.push(N)}return c.join(z.choicesSeparator)},t.prototype.getItemDisplayValue=function(e,n){if(e===this.otherItem){if(this.hasOther&&this.showCommentArea&&n)return n;if(this.comment)return this.comment}return e.locText.textOrHtml},t.prototype.getFilteredChoices=function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},Object.defineProperty(t.prototype,"activeChoices",{get:function(){var e=this.getCarryForwardQuestion();return this.carryForwardQuestionType==="select"?(e.addDependedQuestion(this),this.getChoicesFromSelectQuestion(e)):this.carryForwardQuestionType==="array"?(e.addDependedQuestion(this),this.getChoicesFromArrayQuestion(e)):this.isEmptyActiveChoicesInDesign?[]:this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMessagePanelVisible",{get:function(){return this.getPropertyValue("isMessagePanelVisible",!1)},set:function(e){this.setPropertyValue("isMessagePanelVisible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmptyActiveChoicesInDesign",{get:function(){return this.isInDesignModeV2&&(this.hasChoicesUrl||this.isMessagePanelVisible)},enumerable:!1,configurable:!0}),t.prototype.getCarryForwardQuestion=function(e){var n=this.findCarryForwardQuestion(e),r=this.getQuestionWithChoicesCore(n),o=r?null:this.getQuestionWithArrayValue(n);return this.setCarryForwardQuestionType(!!r,!!o),r||o?n:null},t.prototype.getIsReadyDependsOn=function(){var e=i.prototype.getIsReadyDependsOn.call(this);return this.carryForwardQuestion&&e.push(this.carryForwardQuestion),e},t.prototype.getQuestionWithChoices=function(){return this.getQuestionWithChoicesCore(this.findCarryForwardQuestion())},t.prototype.findCarryForwardQuestion=function(e){return e||(e=this.data),this.carryForwardQuestion=null,this.choicesFromQuestion&&e&&(this.carryForwardQuestion=e.findQuestionByName(this.choicesFromQuestion)),this.carryForwardQuestion},t.prototype.getQuestionWithChoicesCore=function(e){return e&&e.visibleChoices&&G.isDescendantOf(e.getType(),"selectbase")&&e!==this?e:null},t.prototype.getQuestionWithArrayValue=function(e){return e&&e.isValueArray?e:null},t.prototype.getChoicesFromArrayQuestion=function(e){if(this.isInDesignMode)return[];var n=e.value;if(!Array.isArray(n))return[];for(var r=[],o=0;o<n.length;o++){var s=n[o];if(m.isValueObject(s)){var c=this.getValueKeyName(s);if(c&&!this.isValueEmpty(s[c])){var y=this.choiceTextsFromQuestion?s[this.choiceTextsFromQuestion]:void 0;r.push(this.createItemValue(s[c],y))}}}return r},t.prototype.getValueKeyName=function(e){if(this.choiceValuesFromQuestion)return this.choiceValuesFromQuestion;var n=Object.keys(e);return n.length>0?n[0]:void 0},t.prototype.getChoicesFromSelectQuestion=function(e){if(this.isInDesignMode)return[];for(var n=[],r=this.choicesFromQuestionMode=="selected"?!0:this.choicesFromQuestionMode=="unselected"?!1:void 0,o=e.visibleChoices,s=0;s<o.length;s++)if(!e.isBuiltInChoice(o[s])){if(r===void 0){n.push(this.copyChoiceItem(o[s]));continue}var c=e.isItemSelected(o[s]);(c&&r||!c&&!r)&&n.push(this.copyChoiceItem(o[s]))}return this.choicesFromQuestionMode==="selected"&&!this.showOtherItem&&e.isOtherSelected&&e.comment&&n.push(this.createItemValue(e.otherItem.value,e.comment)),n},t.prototype.copyChoiceItem=function(e){var n=this.createItemValue(e.value);return n.setData(e),n},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;(!e||e.length==0)&&(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var n=0;n<e.length;n++)if(!this.isBuiltInChoice(e[n]))return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e){return this.isNoneItem(e)||e===this.otherItem||e===this.newItemValue},t.prototype.isNoneItem=function(e){return this.getNoneItems().indexOf(e)>-1},t.prototype.getNoneItems=function(){return[this.noneItem,this.refuseItem,this.dontKnowItem]},t.prototype.getChoices=function(){return this.choices},t.prototype.supportOther=function(){return this.isSupportProperty("showOtherItem")},t.prototype.supportNone=function(){return this.isSupportProperty("showNoneItem")},t.prototype.supportRefuse=function(){return this.isSupportProperty("showRefuseItem")},t.prototype.supportDontKnow=function(){return this.isSupportProperty("showDontKnowItem")},t.prototype.isSupportProperty=function(e){return!this.isDesignMode||this.getPropertyByName(e).visible},t.prototype.onCheckForErrors=function(e,n,r){var o=this;if(i.prototype.onCheckForErrors.call(this,e,n,r),!(!this.hasOther||!this.isOtherSelected||this.otherValue||n&&!this.prevOtherErrorValue)){var s=new Ba(this.otherErrorText,this);s.onUpdateErrorTextCallback=function(c){c.text=o.otherErrorText},e.push(s)}},t.prototype.setSurveyImpl=function(e,n){this.isRunningChoices=!0,i.prototype.setSurveyImpl.call(this,e,n),this.isRunningChoices=!1,this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(e){i.prototype.setSurveyCore.call(this,e),e&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return this.isSettingDefaultValue||this.showCommentArea?!1:this.storeOthersAsComment===!0||this.storeOthersAsComment=="default"&&(this.survey!=null?this.survey.storeOthersAsComment:!0)||this.hasChoicesUrl&&!this.choicesFromUrl},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),i.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n),e!=this.getValueName()&&this.runChoicesByUrl();var r=this.choicesFromQuestion;e&&r&&(e===r||n===r)&&this.onVisibleChoicesChanged()},t.prototype.updateValueFromSurvey=function(e,n){var r="";this.hasOther&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(e)&&!this.getHasOther(e)?(r=this.getCommentFromValue(e),e=this.setOtherValueIntoValue(e)):this.data&&(r=this.data.getComment(this.getValueName()))),i.prototype.updateValueFromSurvey.call(this,e,n),(this.isRunningChoices||this.choicesByUrl.isRunning)&&!this.isEmpty()&&(this.cachedValueForUrlRequests=this.value),r&&this.setNewComment(r)},t.prototype.getCommentFromValue=function(e){return e},t.prototype.setOtherValueIntoValue=function(e){return this.otherItem.value},t.prototype.onOtherValueInput=function(e){this.isInputTextUpdate?e.target&&(this.otherValue=e.target.value):this.updateCommentElements()},t.prototype.onOtherValueChange=function(e){this.otherValue=e.target.value,this.otherValue!==e.target.value&&(e.target.value=this.otherValue)},t.prototype.runChoicesByUrl=function(){if(this.updateIsUsingRestful(),!(!this.choicesByUrl||this.isLoadingFromJson||this.isRunningChoices||this.isInDesignModeV2)){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.updateIsReady(),this.isRunningChoices=!0,this.choicesByUrl.run(e),this.isRunningChoices=!1)}},t.prototype.onBeforeSendRequest=function(){z.web.disableQuestionWhileLoadingChoices===!0&&!this.isReadOnly&&(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){this.enableOnLoadingChoices&&(this.readOnly=!1);var n=[];this.isReadOnly||this.choicesByUrl&&this.choicesByUrl.error&&n.push(this.choicesByUrl.error);var r=null,o=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,o=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value);var s=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,o);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(r=new Array,ge.setData(r,e)),r)for(var c=0;c<r.length;c++)r[c].locOwner=this;this.setChoicesFromUrl(r,n,s)},t.prototype.canAvoidSettChoicesFromUrl=function(e){if(this.isFirstLoadChoicesFromUrl)return!1;var n=!e||Array.isArray(e)&&e.length===0;return n&&!this.isEmpty()?!1:m.isTwoValueEquals(this.choicesFromUrl,e)},t.prototype.setChoicesFromUrl=function(e,n,r){if(!this.canAvoidSettChoicesFromUrl(e)){if(this.isFirstLoadChoicesFromUrl=!1,this.choicesFromUrl=e,this.filterItems(),this.onVisibleChoicesChanged(),e){var o=this.updateCachedValueForUrlRequests(r,e);if(o&&!this.isReadOnly){var s=!this.isTwoValueEquals(this.value,o.value);try{this.isValueEmpty(o.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=s,s?this.value=o.value:this.setQuestionValue(o.value)}finally{this.allowNotifyValueChanged=!0}}}!this.isReadOnly&&!e&&!this.isFirstLoadChoicesFromUrl&&(this.value=null),this.errors=n,this.choicesLoaded()}},t.prototype.createCachedValueForUrlRequests=function(e,n){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],o=0;o<e.length;o++)r.push(this.createCachedValueForUrlRequests(e[o],!0));return r}var s=n?!this.hasUnknownValue(e):!0;return{value:e,isExists:s}},t.prototype.updateCachedValueForUrlRequests=function(e,n){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],o=0;o<e.length;o++){var s=this.updateCachedValueForUrlRequests(e[o],n);if(s&&!this.isValueEmpty(s.value)){var c=s.value,w=ge.getItemByValue(n,s.value);w&&(c=w.value),r.push(c)}}return{value:r}}var y=e.isExists&&this.hasUnknownValue(e.value)?null:e.value,w=ge.getItemByValue(n,y);return w&&(y=w.value),{value:y}},t.prototype.updateChoicesDependedQuestions=function(){this.isLoadingFromJson||this.isUpdatingChoicesDependedQuestions||!this.allowNotifyValueChanged||this.choicesByUrl.isRunning||(this.isUpdatingChoicesDependedQuestions=!0,this.updateDependedQuestions(),this.isUpdatingChoicesDependedQuestions=!1)},t.prototype.updateDependedQuestion=function(){this.onVisibleChoicesChanged(),this.clearIncorrectValues()},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),this.updateChoicesDependedQuestions()},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||this.isLockVisibleChoices||(this.updateVisibleChoices(),this.onVisibleChanged(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback(),this.updateChoicesDependedQuestions())},t.prototype.isVisibleCore=function(){var e=i.prototype.isVisibleCore.call(this);if(!this.hideIfChoicesEmpty||!e)return e;var n=this.isUsingCarryForward?this.visibleChoices:this.getFilteredChoices();return!n||n.length>0},t.prototype.sortVisibleChoices=function(e){if(this.isInDesignMode)return e;var n=this.choicesOrder.toLowerCase();return n=="asc"?this.sortArray(e,1):n=="desc"?this.sortArray(e,-1):n=="random"?this.randomizeArray(e):e},t.prototype.sortArray=function(e,n){return e.sort(function(r,o){return m.compareStrings(r.calculatedText,o.calculatedText)*n})},t.prototype.randomizeArray=function(e){return m.randomizeArray(e)},Object.defineProperty(t.prototype,"hasChoicesUrl",{get:function(){return this.choicesByUrl&&!!this.choicesByUrl.url},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(){!this.hasValueToClearIncorrectValues()||!this.canClearIncorrectValues()||(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore())},t.prototype.canClearIncorrectValues=function(){return!(this.carryForwardQuestion&&!this.carryForwardQuestion.isReady||this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1||this.hasChoicesUrl&&(!this.choicesFromUrl||this.choicesFromUrl.length==0))},t.prototype.hasValueToClearIncorrectValues=function(){return this.survey&&this.survey.keepIncorrectValues?!1:!this.keepIncorrectValues&&!this.isEmpty()},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e===this.otherItem?this.isOtherSelected:this.isItemSelectedCore(e)},t.prototype.isItemSelectedCore=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){!this.survey||!this.survey.clearValueOnDisableItems||this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknown(e)&&this.clearValue(!0)},t.prototype.canClearValueAnUnknown=function(e){return!this.getStoreOthersAsComment()&&this.isOtherSelected?!1:this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue(!0)},t.prototype.clearUnusedValues=function(){i.prototype.clearUnusedValues.call(this),this.isOtherSelected||(this.otherValue=""),!this.showCommentArea&&!this.getStoreOthersAsComment()&&!this.isOtherSelected&&(this.comment="")},t.prototype.getColumnClass=function(){return new te().append(this.cssClasses.column).append("sv-q-column-"+this.colCount,this.hasColumns).toString()},t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.getItemClass=function(e){var n={item:e},r=this.getItemClassCore(e,n);return n.css=r,this.survey&&this.survey.updateChoiceItemCss(this,n),n.css},t.prototype.getCurrentColCount=function(){return this.colCount},t.prototype.getItemClassCore=function(e,n){var r=new te().append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&this.colCount===0).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&this.colCount!==0).append(this.cssClasses.itemOnError,this.hasCssError()),o=this.getIsDisableAndReadOnlyStyles(!e.isEnabled),s=o[0],c=o[1],y=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,w=!c&&!y&&!(this.survey&&this.survey.isDesignMode),N=e===this.noneItem;return n.isDisabled=c||s,n.isChecked=y,n.isNone=N,r.append(this.cssClasses.itemDisabled,c).append(this.cssClasses.itemReadOnly,s).append(this.cssClasses.itemPreview,this.isPreviewStyle).append(this.cssClasses.itemChecked,y).append(this.cssClasses.itemHover,w).append(this.cssClasses.itemNone,N).toString()},t.prototype.getLabelClass=function(e){return new te().append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return new te().append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0},t.prototype.updateRenderedChoices=function(){this.renderedChoices=this.onGetRenderedChoicesCallback?this.onGetRenderedChoicesCallback(this.visibleChoices):this.visibleChoices},t.prototype.getRenderedChoicesAnimationOptions=function(){var e=this;return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getKey:function(n){return n!=e.newItemValue?n.value:e.newItemValue},getLeaveOptions:function(n){var r=e.cssClasses.itemLeave;if(e.hasColumns){var o=e.bodyItems.indexOf(n);o!==-1&&o!==e.bodyItems.length-1&&(r="")}return{cssClass:r,onBeforeRunAnimation:Ln,onAfterRunAnimation:hn}},getAnimatedElement:function(n){return n.getRootElement()},getEnterOptions:function(n){var r=e.cssClasses.itemEnter;if(e.hasColumns){var o=e.bodyItems.indexOf(n);o!==-1&&o!==e.bodyItems.length-1&&(r="")}return{cssClass:r,onBeforeRunAnimation:function(s){if(e.getCurrentColCount()==0&&e.bodyItems.indexOf(n)>=0){var c=s.parentElement.firstElementChild.offsetLeft;s.offsetLeft>c&&Yr(s,{moveAnimationDuration:"0s",fadeAnimationDelay:"0s"},"--")}Ln(s)},onAfterRunAnimation:hn}}}},Object.defineProperty(t.prototype,"renderedChoices",{get:function(){return this._renderedChoices},set:function(e){this.renderedChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headItems",{get:function(){for(var e=this.separateSpecialChoices||this.isInDesignMode?this.headItemsCount:0,n=[],r=0;r<e;r++)this.renderedChoices[r]&&n.push(this.renderedChoices[r]);return n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footItems",{get:function(){for(var e=this.separateSpecialChoices||this.isInDesignMode?this.footItemsCount:0,n=[],r=this.renderedChoices,o=0;o<e;o++)this.renderedChoices[r.length-e+o]&&n.push(this.renderedChoices[r.length-e+o]);return n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChoices",{get:function(){var e=this;return this.renderedChoices.filter(function(n){return!e.isBuiltInChoice(n)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.renderedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasHeadItems",{get:function(){return this.headItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFootItems",{get:function(){return this.footItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],n=this.getCurrentColCount();if(this.hasColumns&&this.renderedChoices.length>0){var r=!this.separateSpecialChoices&&!this.isInDesignMode?this.renderedChoices:this.dataChoices;if(z.showItemsInOrder=="column")for(var o=0,s=r.length%n,c=0;c<n;c++){for(var y=[],w=o;w<o+Math.floor(r.length/n);w++)y.push(r[w]);s>0&&(s--,y.push(r[w]),w++),o=w,e.push(y)}else for(var c=0;c<n;c++){for(var y=[],w=c;w<r.length;w+=n)y.push(r[w]);e.push(y)}}return e},enumerable:!1,configurable:!0}),t.prototype.getItemsColumnKey=function(e){return(e||[]).map(function(n){return n.value||""}).join("")},Object.defineProperty(t.prototype,"hasColumns",{get:function(){return!this.isMobile&&this.getCurrentColCount()>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowLayout",{get:function(){return this.getCurrentColCount()==0&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blockedRow",{get:function(){return this.getCurrentColCount()==0&&(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0,this.updateIsReady(),this.survey&&this.survey.loadedChoicesFromServer(this),this.loadedChoicesFromServerCallback&&this.loadedChoicesFromServerCallback()},t.prototype.getItemValueWrapperComponentName=function(e){var n=this.survey;return n?n.getItemValueWrapperComponentName(e,this):zt.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var n=this.survey;return n?n.getItemValueWrapperComponentData(e,this):e},t.prototype.ariaItemChecked=function(e){return this.renderedValue===e.value?"true":"false"},t.prototype.isOtherItem=function(e){return this.hasOther&&e.value==this.otherItem.value},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.getSelectBaseRootCss=function(){return new te().append(this.getQuestionRootCss()).append(this.cssClasses.rootRow,this.rowLayout).toString()},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getAriaItemLabel=function(e){return e.locText.renderedHtml},t.prototype.getItemId=function(e){return this.inputId+"_"+this.getItemIndex(e)},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.getItemEnabled=function(e){return!this.isDisabledAttr&&e.isEnabled},t.prototype.focusOtherComment=function(){var e;sn.FocusElement(this.otherId,!1,(e=this.survey)===null||e===void 0?void 0:e.rootElement)},t.prototype.onValueChanged=function(){i.prototype.onValueChanged.call(this),!this.isDesignMode&&!this.prevIsOtherSelected&&this.isOtherSelected&&this.focusOtherComment(),this.prevIsOtherSelected=this.isOtherSelected},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),zn([D({onSet:function(e,n){n.onSelectedItemValuesChangedHandler(e)}})],t.prototype,"selectedItemValues",void 0),zn([D()],t.prototype,"separateSpecialChoices",void 0),zn([D({localizable:!0})],t.prototype,"otherPlaceholder",void 0),zn([be()],t.prototype,"_renderedChoices",void 0),t}(K),Mi=function(i){gl(t,i);function t(e){return i.call(this,e)||this}return Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:void 0)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){i.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t.prototype.onParentQuestionChanged=function(){this.onVisibleChoicesChanged()},t.prototype.getSearchableItemValueKeys=function(e){e.push("choices")},t}(fa);function si(i,t){var e;if(!i)return!1;if(i.templateQuestion){var n=(e=i.colOwner)===null||e===void 0?void 0:e.data;if(i=i.templateQuestion,!i.getCarryForwardQuestion(n))return!1}return i.carryForwardQuestionType===t}G.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"choicesFromQuestion:question_carryforward",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return ee("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(i){return si(i,"select")}},{name:"choiceValuesFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(i){return si(i,"array")}},{name:"choiceTextsFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(i){return si(i,"array")}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"choicesByUrl",onGetValue:function(i){return i.choicesByUrl.getData()},onSetValue:function(i,t){i.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean","choicesVisibleIf:condition",{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(i){return!i.choicesFromQuestion}},{name:"defaultValue:value",visibleIf:function(i){return!i.choicesFromQuestion},dependsOn:"choicesFromQuestion"},{name:"correctAnswer:value",visibleIf:function(i){return!i.choicesFromQuestion},dependsOn:"choicesFromQuestion"},{name:"separateSpecialChoices:boolean",visible:!1},{name:"showOtherItem:boolean",alternativeName:"hasOther"},{name:"showNoneItem:boolean",alternativeName:"hasNone"},{name:"showRefuseItem:boolean",visible:!1,version:"1.9.128"},{name:"showDontKnowItem:boolean",visible:!1,version:"1.9.128"},{name:"otherPlaceholder",alternativeName:"otherPlaceHolder",serializationProperty:"locOtherPlaceholder",dependsOn:"showOtherItem",visibleIf:function(i){return i.hasOther}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(i){return i.showNoneItem}},{name:"refuseText",serializationProperty:"locRefuseText",dependsOn:"showRefuseItem",visibleIf:function(i){return i.showRefuseItem}},{name:"dontKnowText",serializationProperty:"locDontKnowText",dependsOn:"showDontKnowItem",visibleIf:function(i){return i.showDontKnowItem}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(i){return i.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(i){return i.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),G.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase");var tu=function(){function i(t,e,n,r){this.x=t,this.y=e,this.width=n,this.height=r}return Object.defineProperty(i.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),i}(),nn=function(){function i(){}return i.calculatePosition=function(t,e,n,r,o,s){s===void 0&&(s="flex");var c=t.left,y=t.top;return s==="flex"&&(o=="center"?c=(t.left+t.right-n)/2:o=="left"?c=t.left-n:c=t.right),r=="middle"?y=(t.top+t.bottom-e)/2:r=="top"?y=t.top-e:y=t.bottom,o!="center"&&r!="middle"&&(r=="top"?y=y+t.height:y=y-t.height),{left:Math.round(c),top:Math.round(y)}},i.getCorrectedVerticalDimensions=function(t,e,n,r,o,s){o===void 0&&(o=!0),s===void 0&&(s={top:0,bottom:0});var c,y=n-i.bottomIndent;if(r==="top"&&(c={height:e,top:t}),t<-s.top)c={height:o?e+t:e,top:-s.top};else if(e+t>n){var w=Math.min(e,y-t);c={height:o?w:e,top:o?t:t-(e-w)}}return c&&(c.height=Math.min(c.height,y),c.top=Math.max(c.top,-s.top)),c},i.updateHorizontalDimensions=function(t,e,n,r,o,s){o===void 0&&(o="flex"),s===void 0&&(s={left:0,right:0}),e+=s.left+s.right;var c=void 0,y=t;return r==="center"&&(o==="fixed"?(t+e>n&&(c=n-t),y-=s.left):t<0?(y=s.left,c=Math.min(e,n)):e+t>n&&(y=n-e,y=Math.max(y,s.left),c=Math.min(e,n))),r==="left"&&t<0&&(y=s.left,c=Math.min(e,n)),r==="right"&&e+t>n&&(c=n-t),{width:c-s.left-s.right,left:y}},i.updateVerticalPosition=function(t,e,n,r,o){if(r==="middle")return r;var s=e-(t.top+(n!=="center"?t.height:0)),c=e+t.bottom-(n!=="center"?t.height:0)-o;return s>0&&c<=0&&r=="top"?r="bottom":c>0&&s<=0&&r=="bottom"?r="top":c>0&&s>0&&(r=s<c?"top":"bottom"),r},i.updateHorizontalPosition=function(t,e,n,r){if(n==="center")return n;var o=e-t.left,s=e+t.right-r;return o>0&&s<=0&&n=="left"?n="right":s>0&&o<=0&&n=="right"?n="left":s>0&&o>0&&(n=o<s?"left":"right"),n},i.calculatePopupDirection=function(t,e){var n;return e=="center"&&t!="middle"?n=t:e!="center"&&(n=e),n},i.calculatePointerTarget=function(t,e,n,r,o,s,c){s===void 0&&(s=0),c===void 0&&(c=0);var y={};return o!="center"?(y.top=t.top+t.height/2,y.left=t[o]):r!="middle"&&(y.top=t[r],y.left=t.left+t.width/2),y.left=Math.round(y.left-n),y.top=Math.round(y.top-e),o=="left"&&(y.left-=s+c),o==="center"&&(y.left-=s),y},i.bottomIndent=16,i}(),ml=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),vo=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},zc='input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^="-"])',yl=function(i){ml(t,i);function t(e){var n=i.call(this)||this;return n.popupSelector=".sv-popup",n.fixedPopupContainer=".sv-popup",n.containerSelector=".sv-popup__container",n.scrollingContentSelector=".sv-popup__scrolling-content",n.visibilityAnimation=new to(n,function(r){n._isVisible!==r&&(r?(n.updateBeforeShowing(),n.updateIsVisible(r)):(n.updateOnHiding(),n.updateIsVisible(r),n.updateAfterHiding(),n._isPositionSetValue=!1))},function(){return n._isVisible}),n.onVisibilityChanged=new Tn,n.onModelIsVisibleChangedCallback=function(){n.isVisible=n.model.isVisible},n._isPositionSetValue=!1,n.model=e,n.locale=n.model.locale,n}return t.prototype.updateIsVisible=function(e){this._isVisible=e,this.onVisibilityChanged.fire(this,{isVisible:e})},t.prototype.updateBeforeShowing=function(){this.model.onShow()},t.prototype.updateAfterHiding=function(){this.model.onHiding()},t.prototype.getLeaveOptions=function(){return{cssClass:"sv-popup--leave",onBeforeRunAnimation:function(e){e.setAttribute("inert","")},onAfterRunAnimation:function(e){return e.removeAttribute("inert")}}},t.prototype.getEnterOptions=function(){return{cssClass:"sv-popup--enter"}},t.prototype.getAnimatedElement=function(){return this.getAnimationContainer()},t.prototype.isAnimationEnabled=function(){return this.model.displayMode!=="overlay"&&z.animationEnabled},t.prototype.getRerenderEvent=function(){return this.onElementRerendered},t.prototype.getAnimationContainer=function(){var e;return(e=this.container)===null||e===void 0?void 0:e.querySelector(this.fixedPopupContainer)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this.visibilityAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.containerElement||this.createdContainer},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locale?this.locale:i.prototype.getLocale.call(this)},t.prototype.hidePopup=function(){this.model.isVisible=!1},t.prototype.getStyleClass=function(){return new te().append(this.model.cssClass).append("sv-popup--"+this.model.displayMode,this.isOverlay)},t.prototype.getShowFooter=function(){return this.isOverlay},t.prototype.getShowHeader=function(){return!1},t.prototype.getPopupHeaderTemplate=function(){},t.prototype.createFooterActionBar=function(){var e=this;this.footerToolbarValue=new Qn,this.footerToolbar.updateCallback=function(r){e.footerToolbarValue.actions.forEach(function(o){return o.cssClasses={item:"sv-popup__body-footer-item sv-popup__button sd-btn"}})};var n=[{id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__button--cancel sd-btn",action:function(){e.cancel()}}];n=this.model.updateFooterActions(n),this.footerToolbarValue.setItems(n)},t.prototype.resetDimensionsAndPositionStyleProperties=function(){var e="inherit";this.top=e,this.left=e,this.height=e,this.width=e,this.minWidth=e},t.prototype.onModelChanging=function(e){},t.prototype.setupModel=function(e){this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.onModelChanging(e),this._model=e,e.onVisibilityChanged.add(this.onModelIsVisibleChangedCallback),this.onModelIsVisibleChangedCallback()},Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(e){this.setupModel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.model.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentName",{get:function(){return this.model.contentComponentName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentData",{get:function(){return this.model.contentComponentData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.model.isModal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContent",{get:function(){return this.model.isFocusedContent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContainer",{get:function(){return this.model.isFocusedContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.getShowFooter()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getShowHeader()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupHeaderTemplate",{get:function(){return this.getPopupHeaderTemplate()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOverlay",{get:function(){return this.model.displayMode==="overlay"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleClass",{get:function(){return this.getStyleClass().toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cancelButtonText",{get:function(){return this.getLocalizationString("modalCancelButtonText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.createFooterActionBar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.onKeyDown=function(e){e.key==="Tab"||e.keyCode===9?this.trapFocus(e):(e.key==="Escape"||e.keyCode===27)&&this.hidePopup()},t.prototype.trapFocus=function(e){var n=this.container.querySelectorAll(zc),r=n[0],o=n[n.length-1];e.shiftKey?z.environment.root.activeElement===r&&(o.focus(),e.preventDefault()):z.environment.root.activeElement===o&&(r.focus(),e.preventDefault())},t.prototype.switchFocus=function(){this.isFocusedContent?this.focusFirstInput():this.isFocusedContainer&&this.focusContainer()},Object.defineProperty(t.prototype,"isPositionSet",{get:function(){return this._isPositionSetValue},enumerable:!1,configurable:!0}),t.prototype.updateOnShowing=function(){this.prevActiveElement=z.environment.root.activeElement,this.isOverlay&&this.resetDimensionsAndPositionStyleProperties(),this.switchFocus(),this._isPositionSetValue=!0},t.prototype.updateOnHiding=function(){this.isFocusedContent&&this.prevActiveElement&&this.prevActiveElement.focus({preventScroll:!0})},t.prototype.focusContainer=function(){if(this.container){var e=this.container.querySelector(this.popupSelector);e==null||e.focus()}},t.prototype.focusFirstInput=function(){var e=this;setTimeout(function(){if(e.container){var n=e.container.querySelector(e.model.focusFirstInputSelector||zc);n?n.focus():e.focusContainer()}},100)},t.prototype.clickOutside=function(e){this.hidePopup(),e==null||e.stopPropagation()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.createdContainer&&(this.createdContainer.remove(),this.createdContainer=void 0),this.footerToolbarValue&&this.footerToolbarValue.dispose(),this.resetComponentElement()},t.prototype.initializePopupContainer=function(){if(!this.container){var e=M.createElement("div");this.createdContainer=e,xi(z.environment.popupMountContainer).appendChild(e)}},t.prototype.setComponentElement=function(e){e&&(this.containerElement=e)},t.prototype.resetComponentElement=function(){this.containerElement=void 0,this.prevActiveElement=void 0},t.prototype.preventScrollOuside=function(e,n){for(var r=e.target;r!==this.container;){if(M.getComputedStyle(r).overflowY==="auto"&&r.scrollHeight!==r.offsetHeight){var o=r.scrollHeight,s=r.scrollTop,c=r.clientHeight;if(!(n>0&&Math.abs(o-c-s)<1)&&!(n<0&&s<=0))return}r=r.parentElement}e.cancelable&&e.preventDefault()},vo([D({defaultValue:"0px"})],t.prototype,"top",void 0),vo([D({defaultValue:"0px"})],t.prototype,"left",void 0),vo([D({defaultValue:"auto"})],t.prototype,"height",void 0),vo([D({defaultValue:"auto"})],t.prototype,"width",void 0),vo([D({defaultValue:"auto"})],t.prototype,"minWidth",void 0),vo([D({defaultValue:!1})],t.prototype,"_isVisible",void 0),vo([D()],t.prototype,"locale",void 0),t}(Je),vl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),bl=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function cs(i,t){var e=i||B.getInnerWidth(),n=t||B.getInnerHeight(),r=Math.min(e,n),o=r>=nu.tabletSizeBreakpoint;return o}var nu=function(i){vl(t,i);function t(e){var n=i.call(this,e)||this;return n.scrollEventCallBack=function(r){if(n.isOverlay&&qt){r.stopPropagation(),r.preventDefault();return}n.hidePopup()},n.resizeEventCallback=function(){if(B.isAvailable()){var r=B.getVisualViewport(),o=M.getDocumentElement();o&&r&&o.style.setProperty("--sv-popup-overlay-height",r.height*r.scale+"px")}},n.resizeWindowCallback=function(){n.isOverlay||n.updatePosition(!0,zt.platform==="vue"||zt.platform==="vue3"||zt.platform=="react")},n.clientY=0,n.isTablet=!1,n.touchStartEventCallback=function(r){n.clientY=r.touches[0].clientY},n.touchMoveEventCallback=function(r){n.preventScrollOuside(r,n.clientY-r.changedTouches[0].clientY)},n.model.onRecalculatePosition.add(n.recalculatePositionHandler),n}return t.prototype.calculateIsTablet=function(e,n){this.isTablet=cs(e,n)},t.prototype.getAvailableAreaRect=function(){var e=this.model.getAreaCallback?this.model.getAreaCallback(this.container):void 0;if(e){var n=e.getBoundingClientRect();return new tu(n.x,n.y,n.width,n.height)}return new tu(0,0,B.getInnerWidth(),B.getInnerHeight())},t.prototype.getTargetElementRect=function(){var e=this.container,n=this.model.getTargetCallback?this.model.getTargetCallback(e):void 0;if(e&&e.parentElement&&!this.isModal&&!n&&(n=e.parentElement),!n)return null;var r=n.getBoundingClientRect(),o=this.getAvailableAreaRect();return new tu(r.left-o.left,r.top-o.top,r.width,r.height)},t.prototype._updatePosition=function(){var e,n,r,o=this.getTargetElementRect();if(o){var s=this.getAvailableAreaRect(),c=(e=this.container)===null||e===void 0?void 0:e.querySelector(this.containerSelector);if(c){var y=(n=this.container)===null||n===void 0?void 0:n.querySelector(this.fixedPopupContainer),w=c.querySelector(this.scrollingContentSelector),N=M.getComputedStyle(c),Q=parseFloat(N.marginLeft)||0,Y=parseFloat(N.marginRight)||0,ce=parseFloat(N.marginTop)||0,fe=parseFloat(N.marginBottom)||0,Oe=c.offsetHeight-w.offsetHeight+w.scrollHeight,Ee=c.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=o.width+"px");var me=this.model.verticalPosition,ze=this.getActualHorizontalPosition();if(B.isAvailable()){var Wt=[Oe,B.getInnerHeight()*.9,(r=B.getVisualViewport())===null||r===void 0?void 0:r.height];Oe=Math.ceil(Math.min.apply(Math,Wt.filter(function(xo){return typeof xo=="number"}))),me=nn.updateVerticalPosition(o,Oe,this.model.horizontalPosition,this.model.verticalPosition,s.height),ze=nn.updateHorizontalPosition(o,Ee,ze,s.width)}this.popupDirection=nn.calculatePopupDirection(me,ze);var Zt=nn.calculatePosition(o,Oe,Ee+Q+Y,me,ze,this.model.positionMode);if(B.isAvailable()){var sr=nn.getCorrectedVerticalDimensions(Zt.top,Oe,s.height,me,this.model.canShrink,{top:ce,bottom:fe});if(sr&&(this.height=sr.height+"px",Zt.top=sr.top),this.model.setWidthByTarget)this.width=o.width+"px",Zt.left=o.left;else{var wr=nn.updateHorizontalDimensions(Zt.left,Ee,B.getInnerWidth(),ze,this.model.positionMode,{left:Q,right:Y});wr&&(this.width=wr.width?wr.width+"px":void 0,Zt.left=wr.left)}}if(y){var xs=y.getBoundingClientRect();Zt.top-=xs.top,Zt.left-=xs.left}Zt.left+=s.left,Zt.top+=s.top,this.left=Zt.left+"px",this.top=Zt.top+"px",this.showHeader&&(this.pointerTarget=nn.calculatePointerTarget(o,Zt.top,Zt.left,me,ze,Q,Y),this.pointerTarget.top+="px",this.pointerTarget.left+="px")}}},t.prototype.getActualHorizontalPosition=function(){var e=this.model.horizontalPosition;if(M.isAvailable()){var n=M.getComputedStyle(M.getBody()).direction=="rtl";n&&(this.model.horizontalPosition==="left"?e="right":this.model.horizontalPosition==="right"&&(e="left"))}return e},t.prototype.getStyleClass=function(){var e=this.model.overlayDisplayMode;return i.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--dropdown-overlay",this.isOverlay&&e!=="plain").append("sv-popup--tablet",this.isOverlay&&(e=="tablet-dropdown-overlay"||e=="auto"&&this.isTablet)).append("sv-popup--show-pointer",!this.isOverlay&&this.showHeader).append("sv-popup--"+this.popupDirection,!this.isOverlay&&(this.showHeader||this.popupDirection=="top"||this.popupDirection=="bottom"))},t.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},t.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},t.prototype.setComponentElement=function(e){i.prototype.setComponentElement.call(this,e)},t.prototype.resetComponentElement=function(){i.prototype.resetComponentElement.call(this)},t.prototype.updateOnShowing=function(){var e=z.environment.root;this.prevActiveElement=e.activeElement,this.isOverlay?this.resetDimensionsAndPositionStyleProperties():this.updatePosition(!0,!1),this.switchFocus(),B.addEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(B.getVisualViewport().addEventListener("resize",this.resizeEventCallback),this.container&&(this.container.addEventListener("touchstart",this.touchStartEventCallback),this.container.addEventListener("touchmove",this.touchMoveEventCallback)),this.calculateIsTablet(),this.resizeEventCallback()),B.addEventListener("scroll",this.scrollEventCallBack),this._isPositionSetValue=!0},Object.defineProperty(t.prototype,"shouldCreateResizeCallback",{get:function(){return!!B.getVisualViewport()&&this.isOverlay&&qt},enumerable:!1,configurable:!0}),t.prototype.updatePosition=function(e,n){var r=this;n===void 0&&(n=!0),e&&(this.height="auto"),n?setTimeout(function(){r._updatePosition()},1):this._updatePosition()},t.prototype.updateOnHiding=function(){i.prototype.updateOnHiding.call(this),B.removeEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(B.getVisualViewport().removeEventListener("resize",this.resizeEventCallback),this.container&&(this.container.removeEventListener("touchstart",this.touchStartEventCallback),this.container.removeEventListener("touchmove",this.touchMoveEventCallback))),B.removeEventListener("scroll",this.scrollEventCallBack),this.isDisposed||(this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.minWidth=void 0)},t.prototype.onModelChanging=function(e){var n=this;this.model&&this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler||(this.recalculatePositionHandler=function(r,o){n.isOverlay||n.updatePosition(o.isResetHeight)}),i.prototype.onModelChanging.call(this,e),e.onRecalculatePosition.add(this.recalculatePositionHandler)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.updateOnHiding(),this.model&&(this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler=void 0),this.resetComponentElement()},t.tabletSizeBreakpoint=600,bl([D()],t.prototype,"isTablet",void 0),bl([D({defaultValue:"left"})],t.prototype,"popupDirection",void 0),bl([D({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(yl),Zp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),_i=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ji=function(i){Zp(t,i);function t(e,n){var r=i.call(this)||this;r.question=e,r.onSelectionChanged=n,r.minPageSize=25,r.loadingItemHeight=40,r.timer=void 0,r._markdownMode=!1,r.filteredItems=void 0,r.selectedItemSelector=".sv-list__item--selected",r.itemSelector=".sv-list__item",r.itemsSettings={skip:0,take:0,totalCount:0,items:[]},r.listModelFilterStringChanged=function(s){r.filterString!==s&&(r.filterString=s)},r.questionPropertyChangedHandler=function(s,c){r.onPropertyChangedHandler(s,c)},r.htmlCleanerElement=M.createElement("div"),e.onPropertyChanged.add(r.questionPropertyChangedHandler),r.showInputFieldComponent=r.question.showInputFieldComponent,r.listModel=r.createListModel(),r.updateAfterListModelCreated(r.listModel),r.setChoicesLazyLoadEnabled(r.question.choicesLazyLoadEnabled),r.setSearchEnabled(r.question.searchEnabled),r.setTextWrapEnabled(r.question.textWrapEnabled),r.createPopup(),r.resetItemsSettings();var o=e.cssClasses;return r.updateCssClasses(o.popup,o.list),r}return Object.defineProperty(t.prototype,"focusFirstInputSelector",{get:function(){return this.getFocusFirstInputSelector()},enumerable:!1,configurable:!0}),t.prototype.getFocusFirstInputSelector=function(){return qt?this.isValueEmpty(this.question.value)?this.itemSelector:this.selectedItemSelector:!this.listModel.showFilter&&this.question.value?this.selectedItemSelector:""},t.prototype.resetItemsSettings=function(){this.itemsSettings.skip=0,this.itemsSettings.take=Math.max(this.minPageSize,this.question.choicesLazyLoadPageSize),this.itemsSettings.totalCount=0,this.itemsSettings.items=[]},t.prototype.setItems=function(e,n){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.itemsSettings.totalCount=n,this.listModel.isAllDataLoaded=this.question.choicesLazyLoadEnabled&&this.itemsSettings.items.length==this.itemsSettings.totalCount,this.question.choices=this.itemsSettings.items},t.prototype.loadQuestionChoices=function(e){var n=this;this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:function(r,o){n.setItems(r||[],o||0),n.popupRecalculatePosition(n.itemsSettings.skip===n.itemsSettings.take),e&&e()}}),this.itemsSettings.skip+=this.itemsSettings.take},t.prototype.updateQuestionChoices=function(e){var n=this,r=this.itemsSettings.skip+1<this.itemsSettings.totalCount;(!this.itemsSettings.skip||r)&&(this.resetTimer(),this.filterString&&z.dropdownSearchDelay>0?this.timer=setTimeout(function(){n.loadQuestionChoices(e)},z.dropdownSearchDelay):this.loadQuestionChoices(e))},t.prototype.resetTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=void 0)},t.prototype.updatePopupFocusFirstInputSelector=function(){this._popupModel.focusFirstInputSelector=this.focusFirstInputSelector},t.prototype.getDropdownMenuOptions=function(){var e=B.getInnerWidth(),n=B.getInnerHeight(),r=cs(e,n),o="dropdown",s="desktop";return qt&&(o=r?"popup":"overlay",s=r?"tablet":"mobile"),{menuType:o,deviceType:s,hasTouchScreen:qt,screenHeight:n,screenWidth:e}},t.prototype.createPopup=function(){var e=this,n={verticalPosition:"bottom",horizontalPosition:"center",showPointer:!1};this._popupModel=new vi("sv-list",{model:this.listModel},n),this._popupModel.displayMode=qt?"overlay":"popup",this._popupModel.positionMode="fixed",this._popupModel.isFocusedContainer=!1,this._popupModel.isFocusedContent=qt,this._popupModel.setWidthByTarget=!qt,this._popupModel.locale=this.question.getLocale(),this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers(["showFilter"],function(){e.updatePopupFocusFirstInputSelector()}),this._popupModel.onVisibilityChanged.add(function(r,o){if(o.isVisible&&(e.listModel.renderElements=!0),o.isVisible&&e.question.choicesLazyLoadEnabled&&(e.listModel.actions=[],e.resetItemsSettings(),e.updateQuestionChoices()),o.isVisible){e.updatePopupFocusFirstInputSelector();var s=e.getDropdownMenuOptions(),c=s.menuType;e.question.processOpenDropdownMenu(s),c!==s.menuType&&(e._popupModel.updateDisplayMode(s.menuType),e.listModel.setSearchEnabled(e.searchEnabled&&s.menuType!=="dropdown")),e.question.onOpenedCallBack&&e.question.onOpenedCallBack()}o.isVisible||(e.onHidePopup(),e.question.choicesLazyLoadEnabled&&e.resetItemsSettings()),e.question.ariaExpanded=o.isVisible?"true":"false",e.question.processPopupVisiblilityChanged(e.popupModel,o.isVisible)})},t.prototype.setFilterStringToListModel=function(e){var n=this;if(this.listModel.filterString=e,this.listModel.resetFocusedItem(),this.question.selectedItem&&this.question.selectedItem.text.indexOf(e)>=0){this.listModel.focusedItem=this.getAvailableItems().filter(function(r){return r.id==n.question.selectedItem.value})[0],this.listModel.filterString&&this.listModel.actions.map(function(r){return r.selectedValue=!1});return}(!this.listModel.focusedItem||!this.listModel.isItemVisible(this.listModel.focusedItem))&&this.listModel.focusFirstVisibleItem()},t.prototype.setTextWrapEnabled=function(e){this.listModel.textWrapEnabled=e},t.prototype.popupRecalculatePosition=function(e){var n=this;setTimeout(function(){n.popupModel.recalculatePosition(e)},1)},t.prototype.onHidePopup=function(){this.resetFilterString(),this.question.suggestedItem=null},t.prototype.getAvailableItems=function(){return this.question.visibleChoices},t.prototype.setOnTextSearchCallbackForListModel=function(e){var n=this;e.setOnTextSearchCallback(function(r,o){if(n.filteredItems)return n.filteredItems.indexOf(r)>=0;var s=r.text.toLocaleLowerCase();s=z.comparator.normalizeTextCallback(s,"filter");var c=s.indexOf(o.toLocaleLowerCase());return n.question.searchMode=="startsWith"?c==0:c>-1})},t.prototype.createListModel=function(){var e=this,n=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(c){e.question.value=c.id,e.question.searchEnabled&&e.applyInputString(c),e.popupModel.hide()});var o={items:n,onSelectionChanged:r,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},s=new dr(o);return this.setOnTextSearchCallbackForListModel(s),s.renderElements=!1,s.forceShowFilter=!0,s.areSameItemsCallback=function(c,y){return c===y},s},t.prototype.updateAfterListModelCreated=function(e){var n=this;e.isItemSelected=function(r){return!!r.selected},e.onPropertyChanged.add(function(r,o){o.name=="hasVerticalScroller"&&(n.hasScroll=o.newValue)}),e.isAllDataLoaded=!this.question.choicesLazyLoadEnabled,e.actions.forEach(function(r){return r.disableTabStop=!0})},t.prototype.getPopupCssClasses=function(){return"sv-single-select-list"},t.prototype.updateCssClasses=function(e,n){this.popupModel.cssClass=new te().append(e).append(this.getPopupCssClasses()).toString(),this.listModel.cssClasses=n},t.prototype.resetFilterString=function(){this.filterString&&(this.filterString=void 0)},t.prototype.clear=function(){this.inputString=null,this.hintString="",this.resetFilterString()},t.prototype.onSetFilterString=function(){var e=this;if(this.filteredItems=void 0,!(!this.filterString&&!this.popupModel.isVisible)){var n={question:this.question,choices:this.getAvailableItems(),filter:this.filterString,filteredChoices:void 0};this.question.survey.onChoicesSearch.fire(this.question.survey,n),this.filteredItems=n.filteredChoices,this.filterString&&!this.popupModel.isVisible&&this.popupModel.show();var r=function(){e.setFilterStringToListModel(e.filterString),e.popupRecalculatePosition(!0)};this.question.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(r)):r()}},Object.defineProperty(t.prototype,"isAllDataLoaded",{get:function(){return!!this.itemsSettings.totalCount&&this.itemsSettings.items.length==this.itemsSettings.totalCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowSelectedItem",{get:function(){return!this.focused||this._markdownMode||!this.searchEnabled},enumerable:!1,configurable:!0}),t.prototype.applyInputString=function(e){var n=e==null?void 0:e.locText.hasHtml;n||this.question.inputFieldComponentName?(this._markdownMode=!0,this.inputString=this.cleanHtml(e==null?void 0:e.locText.getHtmlValue()),this.hintString=""):(this.inputString=e==null?void 0:e.title,this.hintString=e==null?void 0:e.title)},t.prototype.cleanHtml=function(e){return this.htmlCleanerElement?(this.htmlCleanerElement.innerHTML=e,this.htmlCleanerElement.textContent):""},t.prototype.fixInputCase=function(){var e=this.hintStringMiddle;e&&this.inputString!=e&&(this.inputString=e)},t.prototype.applyHintString=function(e){var n=e==null?void 0:e.locText.hasHtml;n||this.question.inputFieldComponentName?(this._markdownMode=!0,this.hintString=""):this.hintString=e==null?void 0:e.title},Object.defineProperty(t.prototype,"inputStringRendered",{get:function(){return this.inputString||""},set:function(e){this.inputString=e,this.filterString=e,e?this.applyHintString(this.listModel.focusedItem||this.question.selectedItem):this.hintString=""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderRendered",{get:function(){return this.hintString?"":this.question.readOnlyText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"listElementId",{get:function(){return this.question.inputId+"_list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringLC",{get:function(){var e;return((e=this.hintString)===null||e===void 0?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputStringLC",{get:function(){var e;return((e=this.inputString)===null||e===void 0?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintPrefix",{get:function(){return!!this.inputString&&this.hintStringLC.indexOf(this.inputStringLC)>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringPrefix",{get:function(){return this.inputString?this.hintString.substring(0,this.hintStringLC.indexOf(this.inputStringLC)):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintString",{get:function(){return!!this.question.searchEnabled&&this.hintStringLC&&this.hintStringLC.indexOf(this.inputStringLC)>=0||!this.question.searchEnabled&&this.hintStringLC&&this.question.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringSuffix",{get:function(){return this.hintString.substring(this.hintStringLC.indexOf(this.inputStringLC)+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringMiddle",{get:function(){var e=this.hintStringLC.indexOf(this.inputStringLC);return e==-1?null:this.hintString.substring(e,e+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this._popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noTabIndex",{get:function(){return this.question.isInputReadOnly||this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterReadOnly",{get:function(){return this.question.isInputReadOnly||!this.searchEnabled||!this.focused},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterStringEnabled",{get:function(){return!this.question.isInputReadOnly&&this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputMode",{get:function(){return qt?"none":"text"},enumerable:!1,configurable:!0}),t.prototype.setSearchEnabled=function(e){this.listModel.setSearchEnabled(qt&&e),this.searchEnabled=e},t.prototype.setChoicesLazyLoadEnabled=function(e){this.listModel.setOnFilterStringChangedCallback(e?this.listModelFilterStringChanged:void 0)},t.prototype.updateItems=function(){this.listModel.setItems(this.getAvailableItems())},t.prototype.onClick=function(e){this.question.readOnly||this.question.isDesignMode||this.question.isPreviewStyle||this.question.isReadOnlyAttr||(this._popupModel.toggleVisibility(),this.focusItemOnClickAndPopup(),this.question.focusInputElement(!1))},t.prototype.chevronPointerDown=function(e){this._popupModel.isVisible&&e.preventDefault()},t.prototype.onPropertyChangedHandler=function(e,n){n.name=="value"&&(this.showInputFieldComponent=this.question.showInputFieldComponent),n.name=="textWrapEnabled"&&this.setTextWrapEnabled(n.newValue)},t.prototype.focusItemOnClickAndPopup=function(){this._popupModel.isVisible&&this.question.value&&this.changeSelectionWithKeyboard(!1)},t.prototype.onClear=function(e){this.question.clearValue(!0),this._popupModel.hide(),e&&(e.preventDefault(),e.stopPropagation())},t.prototype.getSelectedAction=function(){return this.question.selectedItem||null},t.prototype.changeSelectionWithKeyboard=function(e){var n,r=this.listModel.focusedItem;!r&&this.question.selectedItem?ge.getItemByValue(this.question.visibleChoices,this.question.value)&&(this.listModel.focusedItem=this.question.selectedItem):e?this.listModel.focusPrevVisibleItem():this.listModel.focusNextVisibleItem(),this.beforeScrollToFocusedItem(r),this.scrollToFocusedItem(),this.afterScrollToFocusedItem(),this.ariaActivedescendant=(n=this.listModel.focusedItem)===null||n===void 0?void 0:n.elementId},t.prototype.beforeScrollToFocusedItem=function(e){this.question.value&&e&&(e.selectedValue=!1,this.listModel.focusedItem.selectedValue=!this.listModel.filterString,this.question.suggestedItem=this.listModel.focusedItem)},t.prototype.afterScrollToFocusedItem=function(){var e;this.question.value&&!this.listModel.filterString&&this.question.searchEnabled?this.applyInputString(this.listModel.focusedItem||this.question.selectedItem):this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.fixInputCase(),this.ariaActivedescendant=(e=this.listModel.focusedItem)===null||e===void 0?void 0:e.elementId},t.prototype.keyHandler=function(e){var n=e.which||e.keyCode;if(this.popupModel.isVisible&&e.keyCode===38?(this.changeSelectionWithKeyboard(!0),e.preventDefault(),e.stopPropagation()):e.keyCode===40&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()),e.keyCode===9)this.popupModel.hide();else if(!this.popupModel.isVisible&&(e.keyCode===13||e.keyCode===32))e.keyCode===32&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1)),e.keyCode===13&&this.question.survey.questionEditFinishCallback(this.question,e),e.preventDefault(),e.stopPropagation();else if(this.popupModel.isVisible&&(e.keyCode===13||e.keyCode===32&&(!this.question.searchEnabled||!this.inputString)))e.keyCode===13&&this.question.searchEnabled&&!this.inputString&&this.question instanceof bo&&!this._markdownMode&&this.question.value?(this._popupModel.hide(),this.onClear(e)):(this.listModel.selectFocusedItem(),this.onFocus(e)),e.preventDefault(),e.stopPropagation();else if(n===46||n===8)this.searchEnabled||this.onClear(e);else if(e.keyCode===27)this._popupModel.hide(),this.hintString="",this.onEscape();else{if((e.keyCode===38||e.keyCode===40||e.keyCode===32&&!this.question.searchEnabled)&&(e.preventDefault(),e.stopPropagation()),e.keyCode===32&&this.question.searchEnabled)return;oo(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly})}},t.prototype.onEscape=function(){this.question.searchEnabled&&this.applyInputString(this.question.selectedItem)},t.prototype.onScroll=function(e){var n=e.target;n.scrollHeight-(n.scrollTop+n.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()},t.prototype.onBlur=function(e){if(this.focused=!1,this.popupModel.isVisible&&qt){this._popupModel.show();return}Ma(e),this._popupModel.hide(),this.resetFilterString(),this.inputString=null,this.hintString="",e.stopPropagation()},t.prototype.onFocus=function(e){this.focused=!0,this.setInputStringFromSelectedItem(this.question.selectedItem)},t.prototype.setInputStringFromSelectedItem=function(e){this.focused&&(this.question.searchEnabled&&e?this.applyInputString(e):this.inputString=null)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.question&&this.question.onPropertyChanged.remove(this.questionPropertyChangedHandler),this.questionPropertyChangedHandler=void 0,this.listModel&&this.listModel.dispose(),this.popupModel&&this.popupModel.dispose(),this.htmlCleanerElement=void 0},t.prototype.scrollToFocusedItem=function(){this.listModel.scrollToFocusedItem()},_i([D({defaultValue:!1})],t.prototype,"focused",void 0),_i([D({defaultValue:!0})],t.prototype,"searchEnabled",void 0),_i([D({defaultValue:"",onSet:function(e,n){n.onSetFilterString()}})],t.prototype,"filterString",void 0),_i([D({defaultValue:"",onSet:function(e,n){n.question.inputHasValue=!!e}})],t.prototype,"inputString",void 0),_i([D({})],t.prototype,"showInputFieldComponent",void 0),_i([D()],t.prototype,"ariaActivedescendant",void 0),_i([D({defaultValue:!1,onSet:function(e,n){e?n.listModel.addScrollEventListener(function(r){n.onScroll(r)}):n.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),_i([D({defaultValue:""})],t.prototype,"hintString",void 0),t}(Je),Kp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ai=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},bo=function(i){Kp(t,i);function t(e){var n=i.call(this,e)||this;return n.lastSelectedItemValue=null,n.minMaxChoices=[],n.onOpened=n.addEvent(),n.ariaExpanded="false",n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.registerPropertyChangedHandlers(["choicesMin","choicesMax","choicesStep"],function(){n.onVisibleChoicesChanged()}),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],function(){n.updateReadOnlyText()}),n.updateReadOnlyText(),n}return t.prototype.updateReadOnlyText=function(){var e=this.selectedItem?"":this.placeholder;this.renderAs=="select"&&(this.isOtherSelected?e=this.otherText:this.isNoneSelected?e=this.noneText:this.selectedItem&&(e=this.selectedItemText)),this.readOnlyText=e},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.updateReadOnlyText()},Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.allowClear},set:function(e){this.allowClear=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||z.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"dropdown"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),t.prototype.onGetSingleSelectedItem=function(e){e&&(this.lastSelectedItemValue=e)},t.prototype.supportGoNextPageAutomatic=function(){return!this.isOtherSelected},t.prototype.getChoices=function(){var e=i.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return e;for(var n=[],r=0;r<e.length;r++)n.push(e[r]);if(this.minMaxChoices.length===0||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1){this.minMaxChoices=[];for(var r=this.choicesMin;r<=this.choicesMax;r+=this.choicesStep)this.minMaxChoices.push(this.createItemValue(r))}return n=n.concat(this.minMaxChoices),n},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin")},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax")},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep")},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete","")},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return new te().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).append(this.cssClasses.controlInputFieldComponent,!!this.inputFieldComponentName).toString()},t.prototype.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),this.useDropdownList&&ao(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this.suggestedItem||this.selectedItem;return e==null?void 0:e.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputFieldComponentName",{get:function(){return this.inputFieldComponent||this.itemComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.inputHasValue&&!this.inputFieldComponentName&&!!this.selectedItemLocText&&this.dropdownListModel.canShowSelectedItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInputFieldComponent",{get:function(){return!this.inputHasValue&&!!this.inputFieldComponentName&&!this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemText",{get:function(){var e=this.selectedItem;return e?e.text:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useDropdownList",{get:function(){return this.renderAs!=="select"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.useDropdownList&&!this.dropdownListModelValue&&(this.dropdownListModelValue=new ji(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this.dropdownListModel.popupModel},enumerable:!1,configurable:!0}),t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onSelectedItemValuesChangedHandler=function(e){var n;(n=this.dropdownListModelValue)===null||n===void 0||n.setInputStringFromSelectedItem(e),i.prototype.onSelectedItemValuesChangedHandler.call(this,e)},t.prototype.hasUnknownValue=function(e,n,r,o){return this.choicesLazyLoadEnabled?!1:i.prototype.hasUnknownValue.call(this,e,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var e,n=(e=this.otherValue)===null||e===void 0?void 0:e.trim();return n?i.prototype.hasUnknownValue.call(this,n,!0,!1):!1},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.choicesLazyLoadEnabled?this.createItemValue(e,n):i.prototype.getItemIfChoicesNotContainThisValue.call(this,e,n)},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.dropdownListModelValue&&this.dropdownListModel.updateItems()},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.clearValue=function(e){var n;i.prototype.clearValue.call(this,e),this.lastSelectedItemValue=null,(n=this.dropdownListModelValue)===null||n===void 0||n.clear()},t.prototype.afterRenderCore=function(e){i.prototype.afterRenderCore.call(this,e),this.dropdownListModelValue&&this.dropdownListModelValue.clear()},t.prototype.onClick=function(e){this.onOpenedCallBack&&this.onOpenedCallBack()},t.prototype.onKeyUp=function(e){var n=e.which||e.keyCode;n===46&&(this.clearValue(!0),e.preventDefault(),e.stopPropagation())},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.onBlurCore=function(e){this.dropdownListModel.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.dropdownListModel.onFocus(e),i.prototype.onFocusCore.call(this,e)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},ai([D()],t.prototype,"allowClear",void 0),ai([D({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),ai([D()],t.prototype,"searchMode",void 0),ai([D()],t.prototype,"textWrapEnabled",void 0),ai([D({defaultValue:!1})],t.prototype,"inputHasValue",void 0),ai([D({defaultValue:""})],t.prototype,"readOnlyText",void 0),ai([D({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),ai([D()],t.prototype,"choicesLazyLoadPageSize",void 0),ai([D()],t.prototype,"suggestedItem",void 0),t}(fa);G.addClass("dropdown",[{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",alternativeName:"showOptionsCaption",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1},{name:"autocomplete",alternativeName:"autoComplete",choices:z.questions.dataList},{name:"textWrapEnabled:boolean",default:!0},{name:"renderAs",default:"default",visible:!1},{name:"searchEnabled:boolean",default:!0,visible:!1},{name:"searchMode",default:"contains",choices:["contains","startsWith"]},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"inputFieldComponent",visible:!1},{name:"itemComponent",visible:!1,default:""}],function(){return new bo("")},"selectbase"),bt.Instance.registerQuestion("dropdown",function(i){var t=new bo(i);return t.choices=bt.DefaultChoices,t});var ru=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Uc=function(i){ru(t,i);function t(e,n,r,o){var s=i.call(this)||this;return s.item=e,s.fullName=n,s.data=r,s.setValueDirectly(o),s.cellClick=function(c){s.value=c.value},s.registerPropertyChangedHandlers(["value"],function(){s.data&&s.data.onMatrixRowChanged(s)}),s.data&&s.data.hasErrorInRow(s)&&(s.hasError=!0),s}return Object.defineProperty(t.prototype,"name",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){this.isReadOnly||this.setValueDirectly(this.data.getCorrectedRowValue(e))},enumerable:!1,configurable:!0}),t.prototype.setValueDirectly=function(e){this.setPropertyValue("value",e)},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!this.item.enabled||this.data.isInputReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyAttr",{get:function(){return this.data.isReadOnlyAttr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabledAttr",{get:function(){return!this.item.enabled||this.data.isDisabledAttr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTextClasses",{get:function(){return new te().append(this.data.cssClasses.rowTextCell).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasError",{get:function(){return this.getPropertyValue("hasError",!1)},set:function(e){this.setPropertyValue("hasError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowClasses",{get:function(){var e=this.data.cssClasses;return new te().append(e.row).append(e.rowError,this.hasError).append(e.rowReadOnly,this.isReadOnly).append(e.rowDisabled,this.data.isDisabledStyle).toString()},enumerable:!1,configurable:!0}),t}(Je),Wc=function(i){ru(t,i);function t(e){var n=i.call(this)||this;return n.cellsOwner=e,n.values={},n.locs={},n}return t.prototype.getType=function(){return"cells"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return Object.keys(this.values).length==0},enumerable:!1,configurable:!0}),t.prototype.valuesChanged=function(){!this.locNotification&&this.onValuesChanged&&this.onValuesChanged()},t.prototype.getDefaultCellLocText=function(e){return this.getCellLocCore(this.defaultRowValue,e)},t.prototype.getCellDisplayLocText=function(e,n){return this.getCellLocCore(e,n)},t.prototype.getCellLocCore=function(e,n){var r=this;if(e=this.getCellRowColumnValue(e,this.rows),n=this.getCellRowColumnValue(n,this.columns),m.isValueEmpty(e)||m.isValueEmpty(n))return null;this.locs[e]||(this.locs[e]={});var o=this.locs[e][n];return o||(o=this.createString(),o.setJson(this.getCellLocData(e,n)),o.onGetTextCallback=function(s){if(!s){var c=ge.getItemByValue(r.columns,n);if(c)return c.locText.getJson()||c.value}return s},o.onStrChanged=function(s,c){r.updateValues(e,n,c)},this.locs[e][n]=o),o},Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return z.matrix.defaultRowName},enumerable:!1,configurable:!0}),t.prototype.getCellLocData=function(e,n){var r=this.getCellLocDataFromValue(e,n);return r||this.getCellLocDataFromValue(this.defaultRowValue,n)},t.prototype.getCellLocDataFromValue=function(e,n){return!this.values[e]||!this.values[e][n]?null:this.values[e][n]},t.prototype.getCellText=function(e,n){var r=this.getCellLocCore(e,n);return r?r.calculatedText:null},t.prototype.setCellText=function(e,n,r){var o=this.getCellLocCore(e,n);o&&(o.text=r)},t.prototype.updateValues=function(e,n,r){r?(this.values[e]||(this.values[e]={}),this.values[e][n]=r,this.valuesChanged()):this.values[e]&&this.values[e][n]&&(delete this.values[e][n],Object.keys(this.values[e]).length==0&&delete this.values[e],this.valuesChanged())},t.prototype.getDefaultCellText=function(e){var n=this.getCellLocCore(this.defaultRowValue,e);return n?n.calculatedText:null},t.prototype.setDefaultCellText=function(e,n){this.setCellText(this.defaultRowValue,e,n)},t.prototype.getCellDisplayText=function(e,n){var r=this.getCellDisplayLocText(e,n);return r?r.calculatedText:null},Object.defineProperty(t.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!1,configurable:!0}),t.prototype.getCellRowColumnValue=function(e,n){if(e==null)return null;if(typeof e=="number"){if(e<0||e>=n.length)return null;e=n[e].value}return e.value?e.value:e},t.prototype.getJson=function(){if(this.isEmpty)return null;var e=this.values[this.defaultRowValue],n={};for(var r in this.values){var o={},s=this.values[r];for(var c in s)(r===this.defaultRowValue||!e||e[c]!==s[c])&&(o[c]=s[c]);n[r]=o}return n},t.prototype.setJson=function(e,n){var r=this;if(this.values={},e){for(var o in e)if(o!="pos"){var s=e[o];this.values[o]={};for(var c in s)c!="pos"&&(this.values[o][c]=s[c])}}this.locNotification=!0,this.runFuncOnLocs(function(y,w,N){return N.setJson(r.getCellLocData(y,w))}),this.locNotification=!1,this.valuesChanged()},t.prototype.locStrsChanged=function(){this.runFuncOnLocs(function(e,n,r){return r.strChanged()})},t.prototype.runFuncOnLocs=function(e){for(var n in this.locs){var r=this.locs[n];for(var o in r)e(n,o,r[o])}},t.prototype.createString=function(){return new ut(this.cellsOwner,!0)},t}(Je),Cl=function(i){ru(t,i);function t(e){var n=i.call(this,e)||this;return n.isRowChanging=!1,n.emptyLocalizableString=new ut(n),n.cellsValue=new Wc(n),n.cellsValue.onValuesChanged=function(){n.updateHasCellText(),n.propertyValueChanged("cells",n.cells,n.cells)},n.registerPropertyChangedHandlers(["columns"],function(){n.onColumnsChanged()}),n.registerPropertyChangedHandlers(["rows"],function(){n.runCondition(n.getDataFilteredValues(),n.getDataFilteredProperties()),n.onRowsChanged()}),n.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){n.updateVisibilityBasedOnRows()}),n}return t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"cellComponent",{get:function(){return this.getPropertyValue("cellComponent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemComponent",{set:function(e){this.setPropertyValue("cellComponent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired")},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eachRowUnique",{get:function(){return this.getPropertyValue("eachRowUnique")},set:function(e){this.setPropertyValue("eachRowUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){e=e.toLowerCase(),e!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.addColumn=function(e,n){var r=new ge(e,n);return this.columns.push(r),r},t.prototype.getItemClass=function(e,n){var r=e.value==n.value,o=this.isReadOnly,s=!r&&!o,c=this.hasCellText,y=this.cssClasses;return new te().append(y.cell,c).append(c?y.cellText:y.label).append(y.itemOnError,!c&&(this.isAllRowRequired||this.eachRowUnique?e.hasError:this.hasCssError())).append(c?y.cellTextSelected:y.itemChecked,r).append(c?y.cellTextDisabled:y.itemDisabled,this.isDisabledStyle).append(c?y.cellTextReadOnly:y.itemReadOnly,this.isReadOnlyStyle).append(c?y.cellTextPreview:y.itemPreview,this.isPreviewStyle).append(y.itemHover,s&&!c).toString()},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.cells.locStrsChanged()},t.prototype.getQuizQuestionCount=function(){for(var e=0,n=0;n<this.rows.length;n++)this.isValueEmpty(this.correctAnswer[this.rows[n].value])||e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,n=this.value,r=0;r<this.rows.length;r++){var o=this.rows[r].value;!this.isValueEmpty(n[o])&&this.isTwoValueEquals(this.correctAnswer[o],n[o])&&e++}return e},t.prototype.runCondition=function(e,n){ge.runEnabledConditionsForItems(this.rows,void 0,e,n),i.prototype.runCondition.call(this,e,n)},t.prototype.createRowsVisibleIfRunner=function(){return this.rowsVisibleIf?new pn(this.rowsVisibleIf):null},t.prototype.onRowsChanged=function(){this.clearGeneratedRows(),i.prototype.onRowsChanged.call(this)},t.prototype.getVisibleRows=function(){if(this.generatedVisibleRows)return this.generatedVisibleRows;var e=new Array,n=this.value;n||(n={});for(var r=this.filteredRows||this.rows,o=0;o<r.length;o++){var s=r[o];if(!this.isValueEmpty(s.value)){var c=this.id+"_"+s.value.toString().replace(/\s/g,"_");e.push(this.createMatrixRow(s,c,n[s.value]))}}return this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){if(this.survey&&this.survey.isDesignMode)return e;var n=this.rowsOrder.toLowerCase();return n==="random"?m.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows),this.onRowsChanged(),this.onColumnsChanged()},t.prototype.isNewValueCorrect=function(e){return m.isValueObject(e,!0)},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return this.getPropertyValue("hasCellText",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasCellText=function(){this.setPropertyValue("hasCellText",!this.cells.isEmpty)},t.prototype.setCellText=function(e,n,r){this.cells.setCellText(e,n,r)},t.prototype.getCellText=function(e,n){return this.cells.getCellText(e,n)},t.prototype.setDefaultCellText=function(e,n){this.cells.setDefaultCellText(e,n)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,n){return this.cells.getCellDisplayText(e,n)},t.prototype.getCellDisplayLocText=function(e,n){var r=this.cells.getCellDisplayLocText(e,n);return r||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return this.isMouseDown===!0&&this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),!n||this.hasCssError()){var o={noValue:!1,isNotUnique:!1};this.checkErrorsAllRows(r,o),o.noValue&&e.push(new Fa(null,this)),o.isNotUnique&&e.push(new Ti(null,this))}},t.prototype.hasValuesInAllRows=function(){var e={noValue:!1,isNotUnique:!1};return this.checkErrorsAllRows(!1,e,!0),!e.noValue},t.prototype.checkErrorsAllRows=function(e,n,r){var o=this,s=this.generatedVisibleRows;if(s||(s=this.visibleRows),!!s){var c=this.isAllRowRequired||r,y=this.eachRowUnique;if(n.noValue=!1,n.isNotUnique=!1,e&&(this.errorsInRow=void 0),!(!c&&!y)){for(var w={},N=0;N<s.length;N++){var Q=s[N].value,Y=this.isValueEmpty(Q),ce=y&&!Y&&w[Q]===!0;Y=Y&&c,e&&(Y||ce)&&this.addErrorIntoRow(s[N]),Y||(w[Q]=!0),n.noValue=n.noValue||Y,n.isNotUnique=n.isNotUnique||ce}e&&s.forEach(function(fe){fe.hasError=o.hasErrorInRow(fe)})}}},t.prototype.addErrorIntoRow=function(e){this.errorsInRow||(this.errorsInRow={}),this.errorsInRow[e.name]=!0,e.hasError=!0},t.prototype.refreshRowsErrors=function(){this.errorsInRow&&this.checkErrorsAllRows(!0,{noValue:!1,isNotUnique:!1})},t.prototype.getIsAnswered=function(){return i.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,n,r){var o=new Uc(e,n,this,r);return this.onMatrixRowCreated(o),o},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(e,n){if(n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,this.isRowChanging||n),!(!this.generatedVisibleRows||this.generatedVisibleRows.length==0)){this.isRowChanging=!0;var r=this.value;if(r||(r={}),this.rows.length==0)this.generatedVisibleRows[0].setValueDirectly(r);else for(var o=0;o<this.generatedVisibleRows.length;o++){var s=this.generatedVisibleRows[o],c=r[s.name];this.isValueEmpty(c)&&(c=null),this.generatedVisibleRows[o].setValueDirectly(c)}this.refreshRowsErrors(),this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,n){var r={};for(var o in n){var s=e?ge.getTextOrHtmlByValue(this.rows,o):o;s||(s=o);var c=ge.getTextOrHtmlByValue(this.columns,n[o]);c||(c=n[o]),r[s]=c}return r},t.prototype.getPlainData=function(e){var n=this;e===void 0&&(e={includeEmpty:!0});var r=i.prototype.getPlainData.call(this,e);if(r){var o=this.createValueCopy();r.isNode=!0,r.data=Object.keys(o||{}).map(function(s){var c=n.rows.filter(function(N){return N.value===s})[0],y={name:s,title:c?c.text:"row",value:o[s],displayValue:ge.getTextOrHtmlByValue(n.visibleColumns,o[s]),getString:function(N){return typeof N=="object"?JSON.stringify(N):N},isNode:!1},w=ge.getItemByValue(n.visibleColumns,o[s]);return w&&(e.calculations||[]).forEach(function(N){y[N.propertyName]=w[N.propertyName]}),y})}return r},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=0;r<this.rows.length;r++){var o=this.rows[r];o.value&&e.push({name:this.getValueName()+"."+o.value,text:this.processedTitle+"."+o.calculatedText,question:this})}},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=new bo(n);r.choices=this.columns;var o=new Vt().toJsonObject(r);return o.type=r.getType(),o},t.prototype.clearIncorrectValues=function(){this.clearInvisibleValuesInRowsAndColumns(!0,!0,!0),i.prototype.clearIncorrectValues.call(this)},t.prototype.clearValueIfInvisibleCore=function(e){i.prototype.clearValueIfInvisibleCore.call(this,e),this.clearInvisibleValuesInRowsAndColumns(!0,!0,!1)},t.prototype.clearInvisibleColumnValues=function(){this.clearInvisibleValuesInRowsAndColumns(!1,!0,!1)},t.prototype.clearInvisibleValuesInRows=function(){this.clearInvisibleValuesInRowsAndColumns(!0,!1,!1)},t.prototype.clearInvisibleValuesInRowsAndColumns=function(e,n,r){if(!this.isEmpty()){for(var o=this.getUnbindValue(this.value),s={},c=this.rows,y=0;y<c.length;y++){var w=c[y].value;o[w]&&(e&&!c[y].isVisible||n&&!this.getVisibleColumnByValue(o[w])?delete o[w]:s[w]=o[w])}r&&(o=s),!this.isTwoValueEquals(o,this.value)&&(this.value=o)}},t.prototype.getVisibleColumnByValue=function(e){var n=ge.getItemByValue(this.columns,e);return n&&n.isVisible?n:null},t.prototype.getFirstInputElementId=function(){var e=this.generatedVisibleRows;return e||(e=this.visibleRows),e.length>0&&this.visibleColumns.length>0?this.inputId+"_"+e[0].name+"_0":i.prototype.getFirstInputElementId.call(this)},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,!this.hasRows)this.setNewValue(e.value);else{var n=this.value;n||(n={}),n[e.name]=e.value,this.setNewValue(n)}this.isRowChanging=!1}},t.prototype.getCorrectedRowValue=function(e){for(var n=0;n<this.columns.length;n++)if(e===this.columns[n].value)return e;for(var n=0;n<this.columns.length;n++)if(this.isTwoValueEquals(e,this.columns[n].value))return this.columns[n].value;return e},t.prototype.hasErrorInRow=function(e){return!!this.errorsInRow&&!!this.errorsInRow[e.name]},t.prototype.getSearchableItemValueKeys=function(e){e.push("columns"),e.push("rows")},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({column:e},"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({column:e},"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({row:e},"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({row:e},"row-header")},t}(Pn);G.addClass("matrix",["rowTitleWidth",{name:"columns:itemvalue[]",uniqueProperty:"value",baseValue:function(){return ee("matrix_column")}},{name:"rows:itemvalue[]",uniqueProperty:"value",baseValue:function(){return ee("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean",{name:"eachRowUnique:boolean",category:"validation"},"hideIfRowsEmpty:boolean",{name:"cellComponent",visible:!1,default:"survey-matrix-cell"}],function(){return new Cl("")},"matrixbase"),bt.Instance.registerQuestion("matrix",function(i){var t=new Cl(i);return t.rows=bt.DefaultRows,t.columns=bt.DefaultColums,t});var wl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),iu=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},$c=function(i){wl(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.updateRemainingCharacterCounter=function(e,n){this.remainingCharacterCounter=m.getRemainingCharacterCounterText(e,n)},iu([D()],t.prototype,"remainingCharacterCounter",void 0),t}(Je),fs=function(i){wl(t,i);function t(e){var n=i.call(this,e)||this;return n.characterCounter=new $c,n}return t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e),this.updateRemainingCharacterCounter(this.value)},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return m.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},t.prototype.updateRemainingCharacterCounter=function(e){this.characterCounter.updateRemainingCharacterCounter(e,this.getMaxLength())},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"textbase"},t.prototype.isEmpty=function(){return i.prototype.isEmpty.call(this)||this.value===""},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return this.textUpdateMode=="default"?i.prototype.getIsInputTextUpdate.call(this):this.textUpdateMode=="onTyping"},Object.defineProperty(t.prototype,"renderedPlaceholder",{get:function(){var e=this,n=function(){return e.hasPlaceholder()?e.placeHolder:void 0};return this.getPropertyValue("renderedPlaceholder",void 0,n)},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){i.prototype.onReadOnlyChanged.call(this),this.resetRenderedPlaceholder()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.resetRenderedPlaceholder()},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.resetRenderedPlaceholder=function(){this.resetPropertyValue("renderedPlaceholder")},t.prototype.hasPlaceholder=function(){return!this.isReadOnly},t.prototype.setNewValue=function(e){i.prototype.setNewValue.call(this,e),this.updateRemainingCharacterCounter(e)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.updateRemainingCharacterCounter(e)},t.prototype.convertToCorrectValue=function(e){return Array.isArray(e)?e.join(this.getValueSeparator()):e},t.prototype.getValueSeparator=function(){return", "},t.prototype.getControlCssClassBuilder=function(){return new te().append(this.cssClasses.root).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle)},t.prototype.getControlClass=function(){return this.getControlCssClassBuilder().toString()},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),iu([D({localizable:!0,onSet:function(e,n){return n.resetRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(K);G.addClass("textbase",[],function(){return new fs("")},"question");var Gc=function(){function i(t,e,n){var r=this;this.inputMaskInstance=t,this.inputElement=e,this.prevUnmaskedValue=void 0,this.inputMaskInstancePropertyChangedHandler=function(s,c){if(c.name!=="saveMaskedValue"){var y=r.inputMaskInstance.getMaskedValue(r.prevUnmaskedValue);r.inputElement.value=y}},this.clickHandler=function(s){r.inputElement.value==r.inputMaskInstance.getMaskedValue("")&&r.inputElement.setSelectionRange(0,0)},this.beforeInputHandler=function(s){var c=r.createArgs(s),y=r.inputMaskInstance.processInput(c);r.inputElement.value=y.value,r.inputElement.setSelectionRange(y.caretPosition,y.caretPosition),y.cancelPreventDefault||s.preventDefault()},this.changeHandler=function(s){var c=r.inputMaskInstance.processInput({prevValue:"",insertedChars:s.target.value,selectionStart:0,selectionEnd:0});r.inputElement.value=c.value};var o=n;o==null&&(o=""),this.inputElement.value=t.getMaskedValue(o),this.prevUnmaskedValue=o,t.onPropertyChanged.add(this.inputMaskInstancePropertyChangedHandler),this.addInputEventListener()}return i.prototype.createArgs=function(t){var e={insertedChars:t.data,selectionStart:t.target.selectionStart,selectionEnd:t.target.selectionEnd,prevValue:t.target.value,inputDirection:"forward"};return t.inputType==="deleteContentBackward"&&(e.inputDirection="backward",e.selectionStart===e.selectionEnd&&(e.selectionStart=Math.max(e.selectionStart-1,0))),t.inputType==="deleteContentForward"&&e.selectionStart===e.selectionEnd&&(e.selectionEnd+=1),e},i.prototype.addInputEventListener=function(){this.inputElement&&(this.inputElement.addEventListener("beforeinput",this.beforeInputHandler),this.inputElement.addEventListener("click",this.clickHandler),this.inputElement.addEventListener("focus",this.clickHandler),this.inputElement.addEventListener("change",this.changeHandler))},i.prototype.removeInputEventListener=function(){this.inputElement&&(this.inputElement.removeEventListener("beforeinput",this.beforeInputHandler),this.inputElement.removeEventListener("click",this.clickHandler),this.inputElement.removeEventListener("focus",this.clickHandler),this.inputElement.removeEventListener("change",this.changeHandler))},i.prototype.dispose=function(){this.removeInputEventListener(),this.inputElement=void 0,this.inputMaskInstance.onPropertyChanged.remove(this.inputMaskInstancePropertyChangedHandler)},i}(),ou=/[0-9]/;function Pl(){var i=G.getChildrenClasses("masksettings")||[],t=i.map(function(e){var n=e.name;return e.name.indexOf("mask")!==-1&&(n=n.slice(0,n.indexOf("mask"))),n});return t.unshift("none"),t}var su=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),xl=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},pa=function(i){su(t,i);function t(e){var n=i.call(this,e)||this;return n._isWaitingForEnter=!1,n.onCompositionUpdate=function(r){n.isInputTextUpdate&&setTimeout(function(){n.updateValueOnEvent(r)},1),n.updateRemainingCharacterCounter(r.target.value)},n.onKeyUp=function(r){n.updateDateValidationMessage(r),n.isInputTextUpdate?(!n._isWaitingForEnter||r.keyCode===13)&&(n.updateValueOnEvent(r),n._isWaitingForEnter=!1):r.keyCode===13&&n.updateValueOnEvent(r),n.updateRemainingCharacterCounter(r.target.value)},n.onKeyDown=function(r){n.onKeyDownPreprocess&&n.onKeyDownPreprocess(r),n.isInputTextUpdate&&(n._isWaitingForEnter=r.keyCode===229),n.onTextKeyDownHandler(r)},n.onChange=function(r){n.updateDateValidationMessage(r);var o=r.target===z.environment.root.activeElement;o?n.isInputTextUpdate&&n.updateValueOnEvent(r):n.updateValueOnEvent(r),n.updateRemainingCharacterCounter(r.target.value)},n.createLocalizableString("minErrorText",n,!0,"minError"),n.createLocalizableString("maxErrorText",n,!0,"maxError"),n.setNewMaskSettingsProperty(),n.locDataListValue=new Et(n),n.locDataListValue.onValueChanged=function(r,o){n.propertyValueChanged("dataList",r,o)},n.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],function(){n.setRenderedMinMax()}),n.registerPropertyChangedHandlers(["inputType","size"],function(){n.updateInputSize(),n.resetRenderedPlaceholder()}),n}return t.prototype.createMaskAdapter=function(){this.input&&!this.maskTypeIsEmpty&&(this.maskInputAdapter=new Gc(this.maskInstance,this.input,this.value))},t.prototype.deleteMaskAdapter=function(){this.maskInputAdapter&&(this.maskInputAdapter.dispose(),this.maskInputAdapter=void 0)},t.prototype.updateMaskAdapter=function(){this.deleteMaskAdapter(),this.createMaskAdapter()},t.prototype.onSetMaskType=function(e){this.setNewMaskSettingsProperty(),this.updateMaskAdapter()},Object.defineProperty(t.prototype,"maskTypeIsEmpty",{get:function(){switch(this.inputType){case"tel":case"text":return this.maskType==="none";default:return!0}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskSettings",{get:function(){return this.getPropertyValue("maskSettings")},set:function(e){e&&(this.setNewMaskSettingsProperty(),this.maskSettings.fromJSON(e.toJSON()),this.updateMaskAdapter())},enumerable:!1,configurable:!0}),t.prototype.setNewMaskSettingsProperty=function(){this.setPropertyValue("maskSettings",this.createMaskSettings())},t.prototype.createMaskSettings=function(){var e=!this.maskType||this.maskType==="none"?"masksettings":this.maskType+"mask";G.findClass(e)||(e="masksettings");var n=G.createClass(e);return n.owner=this.survey,n},t.prototype.isTextValue=function(){return this.isDateInputType||["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){e=e.toLowerCase(),(e==="datetime_local"||e==="datetime")&&(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0),this.updateMaskAdapter()},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return this.isTextInput?i.prototype.getMaxLength.call(this):null},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(e,n)},t.prototype.getDisplayValueCore=function(e,n){return!this.maskTypeIsEmpty&&!m.isValueEmpty(n)?this.maskInstance.getMaskedValue(n):i.prototype.getDisplayValueCore.call(this,e,n)},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTextInput",{get:function(){return["text","search","tel","url","email","password"].indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputSize",{get:function(){return this.getPropertyValue("inputSize",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputSize",{get:function(){return this.getPropertyValue("inputSize")||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputWidth",{get:function(){return this.getPropertyValue("inputWidth")},enumerable:!1,configurable:!0}),t.prototype.updateInputSize=function(){var e=this.isTextInput&&this.size>0?this.size:0;this.isTextInput&&e<1&&this.parent&&this.parent.itemSize&&(e=this.parent.itemSize),this.setPropertyValue("inputSize",e),this.setPropertyValue("inputWidth",e>0?"auto":"")},Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete",null)},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){if(this.isValueExpression(e)){this.minValueExpression=e.substring(1);return}this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){if(this.isValueExpression(e)){this.maxValueExpression=e.substring(1);return}this.setPropertyValue("max",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(e){this.setPropertyValue("minValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(e){this.setPropertyValue("maxValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minErrorText",{get:function(){return this.getLocalizableStringText("minErrorText")},set:function(e){this.setLocalizableStringText("minErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinErrorText",{get:function(){return this.getLocalizableString("minErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxErrorText",{get:function(){return this.getLocalizableStringText("maxErrorText")},set:function(e){this.setLocalizableStringText("maxErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxErrorText",{get:function(){return this.getLocalizableString("maxErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMinMaxType",{get:function(){return qr(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskInstance",{get:function(){return this.maskSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputValue",{get:function(){return!this._inputValue&&!this.maskTypeIsEmpty?this.maskInstance.getMaskedValue(""):this._inputValue},set:function(e){var n=e;this._inputValue=e,this.maskTypeIsEmpty||(n=this.maskInstance.getUnmaskedValue(e),this._inputValue=this.maskInstance.getMaskedValue(n),n&&this.maskSettings.saveMaskedValue&&(n=this.maskInstance.getMaskedValue(n))),this.value=n},enumerable:!1,configurable:!0}),t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.updateInputValue()},t.prototype.updateInputValue=function(){this.maskTypeIsEmpty?this._inputValue=this.value:this.maskSettings.saveMaskedValue?this._inputValue=this.value?this.value:this.maskInstance.getMaskedValue(""):this._inputValue=this.maskInstance.getMaskedValue(this.value)},t.prototype.hasToConvertToUTC=function(e){return z.storeUtcDates&&this.isDateTimeLocaleType()&&!!e},t.prototype.createDate=function(e){return j("question-text",e)},t.prototype.valueForSurveyCore=function(e){return this.hasToConvertToUTC(e)&&(e=this.createDate(e).toISOString()),i.prototype.valueForSurveyCore.call(this,e)},t.prototype.valueFromDataCore=function(e){if(this.hasToConvertToUTC(e)){var n=this.createDate(e),r=this.createDate(n.getTime()-n.getTimezoneOffset()*60*1e3),o=r.toISOString();e=o.substring(0,o.length-2)}return i.prototype.valueFromDataCore.call(this,e)},t.prototype.onCheckForErrors=function(e,n,r){var o=this;if(i.prototype.onCheckForErrors.call(this,e,n,r),!n){if(this.isValueLessMin){var s=new bn(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);s.onUpdateErrorTextCallback=function(Q){Q.text=o.getMinMaxErrorText(o.minErrorText,o.getCalculatedMinMax(o.renderedMin))},e.push(s)}if(this.isValueGreaterMax){var c=new bn(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);c.onUpdateErrorTextCallback=function(Q){Q.text=o.getMinMaxErrorText(o.maxErrorText,o.getCalculatedMinMax(o.renderedMax))},e.push(c)}this.dateValidationMessage&&e.push(new bn(this.dateValidationMessage,this));var y=this.getValidatorTitle(),w=new ts;if(w.errorOwner=this,this.inputType==="email"&&!this.validators.some(function(Q){return Q.getType()==="emailvalidator"})){var N=w.validate(this.value,y);N&&N.error&&e.push(N.error)}}},t.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var e=!this.isValueLessMin&&!this.isValueGreaterMax;return(!e||this.errors.length>0)&&this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),e},t.prototype.convertFuncValuetoQuestionValue=function(e){var n=this.maskTypeIsEmpty?this.inputType:this.maskSettings.getTypeForExpressions();return m.convertValToQuestionVal(e,n)},t.prototype.getMinMaxErrorText=function(e,n){if(m.isValueEmpty(n))return e;var r=n.toString();return this.inputType==="date"&&n.toDateString&&(r=n.toDateString()),e.replace("{0}",r)},Object.defineProperty(t.prototype,"isValueLessMin",{get:function(){return!this.isValueEmpty(this.renderedMin)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)<this.getCalculatedMinMax(this.renderedMin)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueGreaterMax",{get:function(){return!this.isValueEmpty(this.renderedMax)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)>this.getCalculatedMinMax(this.renderedMax)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDateInputType",{get:function(){return this.inputType==="date"||this.isDateTimeLocaleType()},enumerable:!1,configurable:!0}),t.prototype.isDateTimeLocaleType=function(){return this.inputType==="datetime-local"},t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?this.createDate(e):e},t.prototype.setRenderedMinMax=function(e,n){var r=this;e===void 0&&(e=null),n===void 0&&(n=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,function(o){!o&&r.isDateInputType&&z.minDate&&(o=z.minDate),r.setPropertyValue("renderedMin",o)},e,n),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,function(o){!o&&r.isDateInputType&&(o=z.maxDate?z.maxDate:"2999-12-31"),r.setPropertyValue("renderedMax",o)},e,n)},Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStep",{get:function(){return this.isValueEmpty(this.step)?this.inputType!=="number"?void 0:"any":this.step},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return this.maskTypeIsEmpty?i.prototype.getIsInputTextUpdate.call(this):!1},t.prototype.supportGoNextPageAutomatic=function(){return!this.getIsInputTextUpdate()&&!this.isDateInputType},t.prototype.supportGoNextPageError=function(){return!this.isDateInputType},Object.defineProperty(t.prototype,"dataList",{get:function(){return this.locDataList.value},set:function(e){this.locDataList.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDataList",{get:function(){return this.locDataListValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataListId",{get:function(){return this.locDataList.hasValue()?this.id+"_datalist":void 0},enumerable:!1,configurable:!0}),t.prototype.setNewValue=function(e){e=this.correctValueType(e),e&&(this.dateValidationMessage=void 0),i.prototype.setNewValue.call(this,e)},t.prototype.correctValueType=function(e){if(!e)return e;if(this.inputType==="number"||this.inputType==="range")return m.isNumber(e)?m.getNumber(e):"";if(this.inputType==="month"){var n=this.createDate(e),r=n.toISOString().indexOf(e)==0&&e.indexOf("T")==-1,o=r?n.getUTCMonth():n.getMonth(),s=r?n.getUTCFullYear():n.getFullYear(),c=o+1;return s+"-"+(c<10?"0":"")+c}return e},t.prototype.hasPlaceholder=function(){return!this.isReadOnly&&this.inputType!=="range"},t.prototype.getControlCssClassBuilder=function(){var e=this.getMaxLength();return i.prototype.getControlCssClassBuilder.call(this).append(this.cssClasses.constrolWithCharacterCounter,!!e).append(this.cssClasses.characterCounterBig,e>99)},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&z.readOnly.textRenderMode==="div"},Object.defineProperty(t.prototype,"inputStyle",{get:function(){var e={};return e.width=this.inputWidth,this.updateTextAlign(e),e},enumerable:!1,configurable:!0}),t.prototype.updateTextAlign=function(e){this.inputTextAlignment!=="auto"?e.textAlign=this.inputTextAlignment:!this.maskTypeIsEmpty&&this.maskSettings.getTextAlignment()!=="auto"&&(e.textAlign=this.maskSettings.getTextAlignment())},t.prototype.updateValueOnEvent=function(e){var n=e.target.value;this.isTwoValueEquals(this.value,n)||(this.inputValue=n)},t.prototype.updateDateValidationMessage=function(e){this.dateValidationMessage=this.isDateInputType&&e.target?e.target.validationMessage:void 0},t.prototype.onBlurCore=function(e){this.updateDateValidationMessage(e),this.updateValueOnEvent(e),this.updateRemainingCharacterCounter(e.target.value),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.updateRemainingCharacterCounter(e.target.value),i.prototype.onFocusCore.call(this,e)},t.prototype.afterRenderQuestionElement=function(e){e&&(this.input=e instanceof HTMLInputElement?e:e.querySelector("input"),this.createMaskAdapter()),i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){this.deleteMaskAdapter(),this.input=void 0},xl([D({onSet:function(e,n){n.onSetMaskType(e)}})],t.prototype,"maskType",void 0),xl([D()],t.prototype,"inputTextAlignment",void 0),xl([D()],t.prototype,"_inputValue",void 0),t}(fs),Jc=["number","range","date","datetime-local","month","time","week"];function qr(i){var t=i?i.inputType:"";return t?Jc.indexOf(t)>-1:!1}function Vl(i,t){var e=i.split(t);return e.length!==2||!m.isNumber(e[0])||!m.isNumber(e[1])?-1:parseFloat(e[0])*60+parseFloat(e[1])}function Yp(i,t,e){var n=Vl(i,e),r=Vl(t,e);return n<0||r<0?!1:n>r}function au(i,t,e,n){var r=n?e:t;if(!qr(i)||m.isValueEmpty(t)||m.isValueEmpty(e))return r;if(i.inputType.indexOf("date")===0||i.inputType==="month"){var o=i.inputType==="month",s="question-text-minmax",c=j(s,o?t+"-01":t),y=j(s,o?e+"-01":e);if(!c||!y)return r;if(c>y)return n?t:e}if(i.inputType==="week"||i.inputType==="time"){var w=i.inputType==="week"?"-W":":";return Yp(t,e,w)?n?t:e:r}if(i.inputType==="number"){if(!m.isNumber(t)||!m.isNumber(e))return r;if(m.getNumber(t)>m.getNumber(e))return n?t:e}return typeof t=="string"||typeof e=="string"?r:t>e?n?t:e:r}function Sl(i,t){i&&i.inputType&&(t.inputType=i.inputType!=="range"?i.inputType:"number",t.textUpdateMode="onBlur")}G.addClass("text",[{name:"inputType",default:"text",choices:z.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"autocomplete",alternativeName:"autoComplete",choices:z.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(i){return qr(i)},onPropertyEditorUpdate:function(i,t){Sl(i,t)},onSettingValue:function(i,t){return au(i,t,i.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(i){return qr(i)},onSettingValue:function(i,t){return au(i,i.min,t,!0)},onPropertyEditorUpdate:function(i,t){Sl(i,t)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return qr(i)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return qr(i)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(i){return qr(i)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(i){return qr(i)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"]},{name:"maskType",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"||i.inputType==="tel"},choices:function(i){var t=Pl();return t}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:["inputType","maskType"],visibleIf:function(i){return i.inputType==="text"||i.inputType==="tel"},onGetValue:function(i){return i.maskSettings.getData()},onSetValue:function(i,t){i.maskSettings.setData(t)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(i){return i?i.inputType==="number"||i.inputType==="range":!1}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",dependsOn:"inputType",visibleIf:function(i){return i?i.isTextInput:!1}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(i){return i?i.inputType==="text":!1}}],function(){return new pa("")},"textbase"),bt.Instance.registerQuestion("text",function(i){return new pa(i)});var Ni=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),El=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},uu=function(i){Ni(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return null},enumerable:!1,configurable:!0}),t}(pa),Xe=function(i){Ni(t,i);function t(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.call(this)||this;return r.focusIn=function(){r.editor.focusIn()},r.editorValue=r.createEditor(e),r.maskSettings=r.editorValue.maskSettings,r.editor.questionTitleTemplateCallback=function(){return""},r.editor.titleLocation="left",n&&(r.title=n),r.editor.onPropertyChanged.add(function(o,s){r.onPropertyChanged.fire(r,s)}),r}return t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!1,configurable:!0}),t.prototype.getOriginalObj=function(){return this.editor},Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!1,configurable:!0}),t.prototype.createEditor=function(e){return new uu(e)},t.prototype.addUsedLocales=function(e){i.prototype.addUsedLocales.call(this,e),this.editor.addUsedLocales(e)},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this),this.editor.localeChanged()},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e,this.editor.setParentQuestion(e))},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return m.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.editor.placeholder},set:function(e){this.editor.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.editor.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.editor.size},set:function(e){this.editor.size=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.editor.defaultValueExpression},set:function(e){this.editor.defaultValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.editor.minValueExpression},set:function(e){this.editor.minValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.editor.maxValueExpression},set:function(e){this.editor.maxValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},Object.defineProperty(t.prototype,"maskType",{get:function(){return this.editor.maskType},set:function(e){this.editor.maskType=e,this.maskSettings=this.editor.maskSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskSettings",{get:function(){return this.getPropertyValue("maskSettings")},set:function(e){this.setPropertyValue("maskSettings",e),this.editor.maskSettings!==e&&(this.editor.maskSettings=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputTextAlignment",{get:function(){return this.editor.inputTextAlignment},set:function(e){this.editor.inputTextAlignment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){this.data!=null&&this.data.setMultipleTextValue(this.name,e)},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this.editor.isEmpty()},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,n){this.data&&this.data.setMultipleTextValue(e,n)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,n){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,n){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.findQuestionByName=function(e){var n=this.getSurvey();return n?n.getQuestionByName(e):null},t.prototype.getEditingSurveyElement=function(){},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(Je),lu=function(i){Ni(t,i);function t(e){var n=i.call(this,e)||this;return n.isMultipleItemValueChanging=!1,n.createNewArray("items",function(r){r.setData(n),n.survey&&n.survey.multipleTextItemAdded(n,r)}),n.registerPropertyChangedHandlers(["items","colCount","itemErrorLocation"],function(){n.calcVisibleRows()}),n.registerPropertyChangedHandlers(["itemSize"],function(){n.updateItemsSize()}),n}return t.addDefaultItems=function(e){for(var n=bt.DefaultMutlipleTextItems,r=0;r<n.length;r++)e.addItem(n[r])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n);for(var r=0;r<this.items.length;r++)this.items[r].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){var n;(n=this.items)===null||n===void 0||n.map(function(r,o){return r.editor.id=e+"_"+o}),this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),i.prototype.onSurveyLoad.call(this)},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),i.prototype.setQuestionValue.call(this,e,n),this.performForEveryEditor(function(r){r.editor.updateValueFromSurvey(r.value)}),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),this.performForEveryEditor(function(n){n.editor.onSurveyValueChanged(n.value)})},t.prototype.updateItemsSize=function(){this.performForEveryEditor(function(e){e.editor.updateInputSize()})},t.prototype.editorsOnSurveyLoad=function(){this.performForEveryEditor(function(e){e.editor.onSurveyLoad()})},t.prototype.performForEveryEditor=function(e){for(var n=0;n<this.items.length;n++){var r=this.items[n];r.editor&&e(r)}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!1,configurable:!0}),t.prototype.addItem=function(e,n){n===void 0&&(n=null);var r=this.createTextItem(e,n);return this.items.push(r),r},t.prototype.getItemByName=function(e){for(var n=0;n<this.items.length;n++)if(this.items[n].name==e)return this.items[n];return null},t.prototype.getElementsInDesign=function(e){e===void 0&&(e=!1);var n;return n=i.prototype.getElementsInDesign.call(this,e),n.concat(this.items)},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=0;r<this.items.length;r++){var o=this.items[r];e.push({name:this.getValueName()+"."+o.name,text:this.processedTitle+"."+o.fullTitle,question:this})}},t.prototype.collectNestedQuestionsCore=function(e,n){this.items.forEach(function(r){return r.editor.collectNestedQuestions(e,n)})},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=this.getItemByName(n);if(!r)return null;var o=new Vt().toJsonObject(r);return o.type="text",o},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=0;e<this.items.length;e++)this.items[e].locStrsChanged()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.items.length;e++)this.items[e].localeChanged()},Object.defineProperty(t.prototype,"itemErrorLocation",{get:function(){return this.getPropertyValue("itemErrorLocation")},set:function(e){this.setPropertyValue("itemErrorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionErrorLocation=function(){return this.itemErrorLocation!=="default"?this.itemErrorLocation:this.getErrorLocation()},Object.defineProperty(t.prototype,"showItemErrorOnTop",{get:function(){return this.getQuestionErrorLocation()=="top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemErrorOnBottom",{get:function(){return this.getQuestionErrorLocation()=="bottom"},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(e){return this.getQuestionErrorLocation()},t.prototype.isNewValueCorrect=function(e){return m.isValueObject(e,!0)},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())return!1;return!0},Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<1||e>5||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTitleWidth",{get:function(){return this.getPropertyValue("itemTitleWidth")||""},set:function(e){this.setPropertyValue("itemTitleWidth",e)},enumerable:!1,configurable:!0}),t.prototype.onRowCreated=function(e){return e},t.prototype.calcVisibleRows=function(){for(var e=this.colCount,n=this.items,r=0,o,s,c=[],y=0;y<n.length;y++)r==0&&(o=this.onRowCreated(new Ol),s=this.onRowCreated(new ps),this.showItemErrorOnTop?(c.push(s),c.push(o)):(c.push(o),c.push(s))),o.cells.push(new cu(n[y],this)),s.cells.push(new Zc(n[y],this)),r++,(r>=e||y==n.length-1)&&(r=0,s.onAfterCreated());this.rows=c},t.prototype.getRows=function(){return m.isValueEmpty(this.rows)&&this.calcVisibleRows(),this.rows},t.prototype.onValueChanged=function(){i.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,n){return new Xe(e,n)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var n=null;this.value&&this.items[e].name in this.value&&(n=this.value[this.items[e].name]),this.items[e].onValueChanged(n)}},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.items.forEach(function(r){return r.editor.runCondition(e,n)})},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;for(var e=0;e<this.items.length;e++)if(this.items[e].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(e,n){var r=this;e===void 0&&(e=!0),n===void 0&&(n=null);for(var o=!1,s=0;s<this.items.length;s++)this.items[s].editor.onCompletedAsyncValidators=function(c){r.raiseOnCompletedAsyncValidators()},!(n&&n.isOnValueChanged===!0&&this.items[s].editor.isEmpty())&&(o=this.items[s].editor.hasErrors(e,n)||o);return i.prototype.hasErrors.call(this,e)||o},t.prototype.getAllErrors=function(){for(var e=i.prototype.getAllErrors.call(this),n=0;n<this.items.length;n++){var r=this.items[n].editor.getAllErrors();r&&r.length>0&&(e=e.concat(r))}return e},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this);for(var e=0;e<this.items.length;e++)this.items[e].editor.clearErrors()},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;for(var n=this.items,r=0;r<n.length;r++)if(n[r].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!i.prototype.getIsAnswered.call(this))return!1;for(var e=0;e<this.items.length;e++){var n=this.items[e].editor;if(n.isVisible&&!n.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],n=0;n<this.items.length;n++)e.push(this.items[n].editor);return sn.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,n){if(!n)return n;for(var r={},o=0;o<this.items.length;o++){var s=this.items[o],c=n[s.name];if(!m.isValueEmpty(c)){var y=s.name;e&&s.title&&(y=s.title),r[y]=s.editor.getDisplayValue(e,c)}}return r},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,n){this.isMultipleItemValueChanging=!0,this.isValueEmpty(n)&&(n=void 0);var r=this.value;r||(r={}),r[e]=n,this.setNewValue(r),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.addElement=function(e,n){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getColumsForElement=function(e){return[]},t.prototype.updateColumns=function(){},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return-1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.onQuestionValueChanged=function(e){},t.prototype.getItemLabelCss=function(e){return new te().append(this.cssClasses.itemLabel).append(this.cssClasses.itemLabelDisabled,this.isDisabledStyle).append(this.cssClasses.itemLabelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.itemLabelPreview,this.isPreviewStyle).append(this.cssClasses.itemLabelAnswered,e.editor.isAnswered).append(this.cssClasses.itemLabelAllowFocus,!this.isDesignMode).append(this.cssClasses.itemLabelOnError,e.editor.errors.length>0).append(this.cssClasses.itemWithCharacterCounter,!!e.getMaxLength()).toString()},t.prototype.getItemCss=function(){return new te().append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return new te().append(this.cssClasses.itemTitle).toString()},El([be()],t.prototype,"rows",void 0),t}(K),Ol=function(i){Ni(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isVisible=!0,e.cells=[],e}return El([D()],t.prototype,"isVisible",void 0),El([be()],t.prototype,"cells",void 0),t}(Je),ps=function(i){Ni(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.onAfterCreated=function(){var e=this,n=function(){e.isVisible=e.cells.some(function(r){var o,s;return((o=r.item)===null||o===void 0?void 0:o.editor)&&((s=r.item)===null||s===void 0?void 0:s.editor.hasVisibleErrors)})};this.cells.forEach(function(r){var o,s;!((o=r.item)===null||o===void 0)&&o.editor&&((s=r.item)===null||s===void 0||s.editor.registerFunctionOnPropertyValueChanged("hasVisibleErrors",n))}),n()},t}(Ol),cu=function(){function i(t,e){this.item=t,this.question=e,this.isErrorsCell=!1}return i.prototype.getClassName=function(){return new te().append(this.question.cssClasses.cell).toString()},Object.defineProperty(i.prototype,"className",{get:function(){return this.getClassName()},enumerable:!1,configurable:!0}),i}(),Zc=function(i){Ni(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isErrorsCell=!0,e}return t.prototype.getClassName=function(){return new te().append(i.prototype.getClassName.call(this)).append(this.question.cssClasses.cellError).append(this.question.cssClasses.cellErrorTop,this.question.showItemErrorOnTop).append(this.question.cssClasses.cellErrorBottom,this.question.showItemErrorOnBottom).toString()},t}(cu);G.addClass("multipletextitem",[{name:"!name",isUnique:!0},"isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:z.questions.inputTypes},{name:"maskType",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"},choices:function(i){var t=Pl();return t}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:"inputType",visibleIf:function(i){return i.inputType==="text"},onGetValue:function(i){return i.maskSettings.getData()},onSetValue:function(i,t){i.maskSettings.setData(t)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"]},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"size:number",minValue:0},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"defaultValueExpression:expression",visible:!1},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return qr(i)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(i){return qr(i)}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new Xe("")}),G.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem",isArray:!0},{name:"itemSize:number",minValue:0,visible:!1},{name:"colCount:number",default:1,choices:[1,2,3,4,5]},{name:"itemErrorLocation",default:"default",choices:["default","top","bottom"],visible:!1},{name:"itemTitleWidth",category:"layout"}],function(){return new lu("")},"question"),bt.Instance.registerQuestion("multipletext",function(i){var t=new lu(i);return lu.addDefaultItems(t),t});var Xp=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Un=function(i){Xp(t,i);function t(e){e===void 0&&(e="");var n=i.call(this,e)||this;return n.createLocalizableString("content",n,!0),n.registerPropertyChangedHandlers(["content"],function(){n.onContentChanged()}),n}return t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!1,configurable:!0}),t.prototype.onContentChanged=function(){var e="";this.onCustomHtmlProducing?e=this.onCustomHtmlProducing():e=this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],n=/{(.*?(element:)[^$].*?)}/g,r=this.content,o=0,s=null;(s=n.exec(r))!==null;){s.index>o&&(e.push(r.substring(o,s.index)),o=s.index);var c=this.getQuestionFromText(s[0]);c?e.push(this.getHtmlForQuestion(c)):e.push(r.substring(o,s.index+s[0].length)),o=s.index+s[0].length}return o<r.length&&e.push(r.substring(o,r.length)),e.join("").replace(new RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=e.substring(1,e.length-1),e=e.replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(e,n){i.prototype.onAddElement.call(this,e,n),this.addElementToContent(e),e.renderWidth=""},t.prototype.onRemoveElement=function(e){var n=this.getElementContentText(e);this.content=this.content.replace(n,""),i.prototype.onRemoveElement.call(this,e)},t.prototype.dragDropMoveElement=function(e,n,r){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var n=this.getElementContentText(e);this.insertTextAtCursor(n)||(this.content=this.content+n)}},t.prototype.insertTextAtCursor=function(e,n){if(n===void 0&&(n=null),!this.isDesignMode||!B.isAvailable())return!1;var r=B.getSelection();if(r.getRangeAt&&r.rangeCount){var o=r.getRangeAt(0);o.deleteContents();var s=new Text(e);o.insertNode(s);var c=this;if(c.getContent){var y=c.getContent(n);this.content=y}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(us);G.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],function(){return new Un},"panel");var ed=function(){function i(){}return i.getIconCss=function(t,e){return new te().append(t.icon).append(t.iconExpanded,!e).toString()},i}(),fu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ds=function(i){fu(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,n){return!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,n){},t.prototype.getConditionJson=function(e,n){return null},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),t}(K);G.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"clearIfInvisible",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"showCommentArea",visible:!1},{name:"useDisplayValuesInDynamicTexts",alternativeName:"useDisplayValuesInTitle",visible:!1}],function(){return new ds("")},"question");var Kc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Tl=function(i){Kc(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"empty"},t}(K);G.addClass("empty",[],function(){return new Tl("")},"question");var Wn=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),nr=function(i){Wn(t,i);function t(e){var n=i.call(this,e)||this;return n.invisibleOldValues={},n.isChangingValueOnClearIncorrect=!1,n.selectAllItemValue=new ge(""),n.selectAllItemValue.id="selectall",n.selectAllItemText=n.createLocalizableString("selectAllText",n.selectAllItem,!0,"selectAllItemText"),n.selectAllItem.locOwner=n,n.selectAllItem.setLocText(n.selectAllItemText),n.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],function(){n.onVisibleChoicesChanged()}),n}return t.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){i.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"valuePropertyName",{get:function(){return this.getPropertyValue("valuePropertyName")},set:function(e){this.setPropertyValue("valuePropertyName",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,n){if(e&&e===this.valuePropertyName){var r=this.value;if(Array.isArray(r)&&n<r.length)return this}return null},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText")},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectAllItem",{get:function(){return this.getPropertyValue("showSelectAllItem")},set:function(e){this.setPropertyValue("showSelectAllItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.showSelectAllItem},set:function(e){this.showSelectAllItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){return this.allElementsSelected()},set:function(e){e?this.selectAll():this.clearValue(!0)},enumerable:!1,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.allElementsSelected=function(){for(var e=this.getNoneItems(),n=0;n<e.length;n++)if(this.isItemSelected(e[n]))return!1;var r=this.getVisibleEnableItems();if(r.length===0)return!1;var o=this.value;if(!o||!Array.isArray(o)||o.length===0||o.length<r.length)return!1;for(var s=[],n=0;n<o.length;n++)s.push(this.getRealValue(o[n]));for(var n=0;n<r.length;n++)if(s.indexOf(r[n].value)<0)return!1;return!0},t.prototype.selectAll=function(){for(var e=[],n=this.getVisibleEnableItems(),r=0;r<n.length;r++)e.push(n[r].value);this.renderedValue=e},t.prototype.clickItemHandler=function(e,n){if(!this.isReadOnlyAttr)if(e===this.selectAllItem)n===!0||n===!1?this.isAllSelected=n:this.toggleSelectAll();else if(this.isNoneItem(e))this.renderedValue=n?[e.value]:[];else{var r=[].concat(this.renderedValue||[]),o=r.indexOf(e.value);n?o<0&&r.push(e.value):o>-1&&r.splice(o,1),this.renderedValue=r}},t.prototype.isItemSelectedCore=function(e){if(e===this.selectAllItem)return this.isAllSelected;var n=this.renderedValue;if(!n||!Array.isArray(n))return!1;for(var r=0;r<n.length;r++)if(this.isTwoValueEquals(n[r],e.value))return!0;return!1},t.prototype.hasUnknownValueItem=function(e,n,r,o){n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1);var s=this.valuePropertyName;return s&&typeof e=="object"&&e[s]!==void 0&&(e=e[s]),i.prototype.hasUnknownValueItem.call(this,e,n,r,o)},t.prototype.convertFuncValuetoQuestionValue=function(e){var n=this;if(this.valuePropertyName&&Array.isArray(e)&&e.length>0){var r=[];e.forEach(function(o){var s=typeof o=="object",c=s?o:{};s||(c[n.valuePropertyName]=o),r.push(c)}),e=r}return i.prototype.convertDefaultValue.call(this,e)},t.prototype.getRealValue=function(e){return e&&(this.valuePropertyName?e[this.valuePropertyName]:e)},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSelectedChoices",{get:function(){return this.getPropertyValue("maxSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("maxSelectedChoices",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minSelectedChoices",{get:function(){return this.getPropertyValue("minSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("minSelectedChoices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChoices",{get:function(){var e=this.renderedValue,n=this.visibleChoices,r=this.selectedItemValues;if(this.isEmpty())return[];var o=this.defaultSelectedItemValues?[].concat(this.defaultSelectedItemValues,n):n,s=e.map(function(y){return ge.getItemByValue(o,y)}).filter(function(y){return!!y});!s.length&&!r&&this.updateSelectedItemValues();var c=this.validateItemValues(s);return c},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this.selectedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilteredValue",{get:function(){return!!this.valuePropertyName},enumerable:!1,configurable:!0}),t.prototype.getFilteredName=function(){var e=i.prototype.getFilteredName.call(this);return this.hasFilteredValue&&(e+="-unwrapped"),e},t.prototype.getFilteredValue=function(){return this.hasFilteredValue?this.renderedValue:i.prototype.getFilteredValue.call(this)},t.prototype.getMultipleSelectedItems=function(){return this.selectedChoices},t.prototype.validateItemValues=function(e){var n=this;if(e.length)return e;var r=this.selectedItemValues;if(r&&r.length)return this.defaultSelectedItemValues=[].concat(r),r;var o=this.renderedValue;return o.map(function(s){return n.createItemValue(s)})},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!0},t.prototype.onCheckForErrors=function(e,n,r){if(i.prototype.onCheckForErrors.call(this,e,n,r),!n&&this.minSelectedChoices>0&&this.checkMinSelectedChoicesUnreached()){var o=new bn(this.getLocalizationFormatString("minSelectError",this.minSelectedChoices),this);e.push(o)}},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.updateSelectAllItemProps()},t.prototype.onEnableItemCallBack=function(e){return this.shouldCheckMaxSelectedChoices()?this.isItemSelected(e):!0},t.prototype.onAfterRunItemsEnableCondition=function(){if(this.updateSelectAllItemProps(),this.maxSelectedChoices<1){this.otherItem.setIsEnabled(!0);return}this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected)},t.prototype.updateSelectAllItemProps=function(){this.hasSelectAll&&this.selectAllItem.setIsEnabled(this.getSelectAllEnabled())},t.prototype.getSelectAllEnabled=function(){if(!this.hasSelectAll)return!0;this.activeChoices;var e=this.getVisibleEnableItems().length,n=this.maxSelectedChoices;return n>0&&n<e?!1:e>0},t.prototype.getVisibleEnableItems=function(){for(var e=new Array,n=this.activeChoices,r=0;r<n.length;r++){var o=n[r];o.isEnabled&&o.isVisible&&e.push(o)}return e},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value,n=Array.isArray(e)?e.length:0;return n>=this.maxSelectedChoices},t.prototype.checkMinSelectedChoicesUnreached=function(){if(this.minSelectedChoices<1)return!1;var e=this.value,n=Array.isArray(e)?e.length:0;return n<this.minSelectedChoices},t.prototype.getItemClassCore=function(e,n){return this.value,n.isSelectAllItem=e===this.selectAllItem,new te().append(i.prototype.getItemClassCore.call(this,e,n)).append(this.cssClasses.itemSelectAll,n.isSelectAllItem).toString()},t.prototype.updateValueFromSurvey=function(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),this.invisibleOldValues={}},t.prototype.setDefaultValue=function(){i.prototype.setDefaultValue.call(this);var e=this.defaultValue;if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=this.getRealValue(e[n]);this.canClearValueAnUnknown(r)&&this.addIntoInvisibleOldValues(r)}},t.prototype.addIntoInvisibleOldValues=function(e){this.invisibleOldValues[e]=e},t.prototype.hasValueToClearIncorrectValues=function(){return i.prototype.hasValueToClearIncorrectValues.call(this)||!m.isValueEmpty(this.invisibleOldValues)},t.prototype.setNewValue=function(e){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues={}),e=this.valueFromData(e);var n=this.value;e||(e=[]),n||(n=[]),!this.isTwoValueEquals(n,e)&&(this.removeNoneItemsValues(n,e),i.prototype.setNewValue.call(this,e))},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var n=this.getFirstUnknownIndex(e);return n<0?"":e[n]},t.prototype.getStoreOthersAsComment=function(){return this.valuePropertyName?!1:i.prototype.getStoreOthersAsComment.call(this)},t.prototype.setOtherValueIntoValue=function(e){var n=this.getFirstUnknownIndex(e);if(n<0)return e;var r=this.otherItem.value,o=this.valuePropertyName;if(o){var s={};s[o]=r,r=s}return e.splice(n,1,r),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(this.hasUnknownValueItem(e[n],!1,!1))return n;return-1},t.prototype.removeNoneItemsValues=function(e,n){var r=[];if(this.showNoneItem&&r.push(this.noneItem.value),this.showRefuseItem&&r.push(this.refuseItem.value),this.showDontKnowItem&&r.push(this.dontKnowItem.value),r.length>0){var o=this.noneIndexInArray(e,r),s=this.noneIndexInArray(n,r);if(o.index>-1)if(o.val===s.val)n.length>0&&n.splice(s.index,1);else{var c=this.noneIndexInArray(n,[o.val]);c.index>-1&&c.index<n.length-1&&n.splice(c.index,1)}else if(s.index>-1&&n.length>1){var y=this.convertValueToObject([s.val])[0];n.splice(0,n.length,y)}}},t.prototype.noneIndexInArray=function(e,n){if(!Array.isArray(e))return{index:-1,val:void 0};for(var r=e.length-1;r>=0;r--){var o=n.indexOf(this.getRealValue(e[r]));if(o>-1)return{index:r,val:n[o]}}return{index:-1,val:void 0}},t.prototype.canUseFilteredChoices=function(){return!this.hasSelectAll&&i.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("showSelectAllItem")},t.prototype.addNonChoicesItems=function(e,n){i.prototype.addNonChoicesItems.call(this,e,n),this.supportSelectAll()&&this.addNonChoiceItem(e,this.selectAllItem,n,this.hasSelectAll,z.specialChoicesOrder.selectAllItem)},t.prototype.isBuiltInChoice=function(e){return e===this.selectAllItem||i.prototype.isBuiltInChoice.call(this,e)},t.prototype.isItemInList=function(e){return e==this.selectAllItem?this.hasSelectAll:i.prototype.isItemInList.call(this,e)},t.prototype.getDisplayValueEmpty=function(){var e=this;return ge.getTextOrHtmlByValue(this.visibleChoices.filter(function(n){return n!=e.selectAllItemValue}),void 0)},t.prototype.getDisplayValueCore=function(e,n){if(!Array.isArray(n))return i.prototype.getDisplayValueCore.call(this,e,n);var r=this.valuePropertyName,o=function(s){var c=n[s];return r&&c[r]&&(c=c[r]),c};return this.getDisplayArrayValue(e,n,o)},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var n=this.value,r=!1,o=this.restoreValuesFromInvisible();if(!(!n&&o.length==0)){if(!Array.isArray(n)||n.length==0){if(this.isChangingValueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue(!0)),this.isChangingValueOnClearIncorrect=!1,o.length==0)return;n=[]}for(var s=[],c=0;c<n.length;c++){var y=this.getRealValue(n[c]),w=this.canClearValueAnUnknown(y);!e&&!w||e&&!this.isValueDisabled(y)?s.push(n[c]):(r=!0,w&&this.addIntoInvisibleOldValues(n[c]))}for(var c=0;c<o.length;c++)s.push(o[c]),r=!0;r&&(this.isChangingValueOnClearIncorrect=!0,s.length==0?this.clearValue(!0):this.value=s,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],n=this.visibleChoices,r=0;r<n.length;r++){var o=n[r];if(o!==this.selectAllItem){var s=n[r].value;m.isTwoValueEquals(s,this.invisibleOldValues[s])&&(this.isItemSelected(o)||e.push(s),delete this.invisibleOldValues[s])}}return e},t.prototype.getConditionJson=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.prototype.getConditionJson.call(this,e,n);return(e=="contains"||e=="notcontains")&&(r.type="radiogroup"),r.maxSelectedChoices=0,r.minSelectedChoices=0,r},t.prototype.isAnswerCorrect=function(){return m.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getIsItemValue=function(e,n){return!e||!Array.isArray(e)?!1:e.indexOf(n.value)>=0},t.prototype.valueFromData=function(e){if(!e)return e;if(!Array.isArray(e))return[i.prototype.valueFromData.call(this,e)];for(var n=[],r=0;r<e.length;r++){var o=ge.getItemByValue(this.activeChoices,e[r]);o?n.push(o.value):n.push(e[r])}return n},t.prototype.rendredValueFromData=function(e){return e=this.convertValueFromObject(e),i.prototype.rendredValueFromData.call(this,e)},t.prototype.rendredValueToData=function(e){return e=i.prototype.rendredValueToData.call(this,e),this.convertValueToObject(e)},t.prototype.convertValueFromObject=function(e){return this.valuePropertyName?m.convertArrayObjectToValue(e,this.valuePropertyName):e},t.prototype.convertValueToObject=function(e){if(!this.valuePropertyName)return e;var n=void 0;return this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1&&(n=this.data.getValue(this.getValueName())),m.convertArrayValueToObject(e,this.valuePropertyName,n)},t.prototype.renderedValueFromDataCore=function(e){if((!e||!Array.isArray(e))&&(e=[]),!this.hasActiveChoices)return e;for(var n=0;n<e.length;n++){if(e[n]==this.otherItem.value)return e;if(this.hasUnknownValueItem(e[n],!0,!1)){this.otherValue=e[n];var r=e.slice();return r[n]=this.otherItem.value,r}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var n=0;n<e.length;n++)if(e[n]==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()){var r=e.slice();return r[n]=this.otherValue,r}return e},t.prototype.selectOtherValueFromComment=function(e){var n=[],r=this.renderedValue;if(Array.isArray(r))for(var o=0;o<r.length;o++)r[o]!==this.otherItem.value&&n.push(r[o]);e&&n.push(this.otherItem.value),this.value=n},Object.defineProperty(t.prototype,"checkBoxSvgPath",{get:function(){return"M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),t}(Mi);G.addClass("checkbox",[{name:"showSelectAllItem:boolean",alternativeName:"hasSelectAll"},{name:"separateSpecialChoices",visible:!0},{name:"maxSelectedChoices:number",default:0,onSettingValue:function(i,t){if(t<=0)return 0;var e=i.minSelectedChoices;return e>0&&t<e?e:t}},{name:"minSelectedChoices:number",default:0,onSettingValue:function(i,t){if(t<=0)return 0;var e=i.maxSelectedChoices;return e>0&&t>e?e:t}},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"showSelectAllItem",visibleIf:function(i){return i.hasSelectAll}},{name:"valuePropertyName",category:"data"},{name:"itemComponent",visible:!1,default:"survey-checkbox-item"}],function(){return new nr("")},"checkboxbase"),bt.Instance.registerQuestion("checkbox",function(i){var t=new nr(i);return t.choices=bt.DefaultChoices,t});var Il=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Yc=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},da=function(i){Il(t,i);function t(e){var n=i.call(this,e)||this;return n.onItemClick=function(r){n.isItemDisabled(r)||(n.isExpanded=!1,n.isItemSelected(r)?(n.selectedItems.splice(n.selectedItems.indexOf(r),1)[0],n.onSelectionChanged&&n.onSelectionChanged(r,"removed")):(n.selectedItems.push(r),n.onSelectionChanged&&n.onSelectionChanged(r,"added")))},n.isItemDisabled=function(r){return r.enabled!==void 0&&!r.enabled},n.isItemSelected=function(r){return!!n.allowSelection&&n.selectedItems.filter(function(o){return n.areSameItems(o,r)}).length>0},n.setSelectedItems(e.selectedItems||[]),n}return t.prototype.updateItemState=function(){var e=this;this.actions.forEach(function(n){var r=e.isItemSelected(n);n.visible=e.hideSelectedItems?!r:!0})},t.prototype.updateState=function(){var e=this;this.updateItemState(),this.isEmpty=this.renderedActions.filter(function(n){return e.isItemVisible(n)}).length===0},t.prototype.setSelectedItems=function(e){this.selectedItems=e,this.updateState()},t.prototype.selectFocusedItem=function(){i.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},Yc([D()],t.prototype,"hideSelectedItems",void 0),t}(dr),Xc=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),hs=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Rl=function(i){Xc(t,i);function t(e,n){var r=i.call(this,e,n)||this;return r.setHideSelectedItems(e.hideSelectedItems),r.syncFilterStringPlaceholder(),r.closeOnSelect=e.closeOnSelect,r}return t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this),this.syncFilterStringPlaceholder()},t.prototype.updateListState=function(){this.listModel.updateState(),this.syncFilterStringPlaceholder()},t.prototype.syncFilterStringPlaceholder=function(){var e=this.getSelectedActions();e.length||this.question.selectedItems.length||this.listModel.focusedItem?this.filterStringPlaceholder=void 0:this.filterStringPlaceholder=this.question.placeholder},t.prototype.getSelectedActions=function(){return this.listModel.actions.filter(function(e){return e.selected})},t.prototype.getFocusFirstInputSelector=function(){return this.listModel.hideSelectedItems&&qt&&!this.isValueEmpty(this.question.value)?this.itemSelector:i.prototype.getFocusFirstInputSelector.call(this)},t.prototype.getPopupCssClasses=function(){return"sv-multi-select-list"},t.prototype.createListModel=function(){var e=this,n=this.getAvailableItems(),r=this.onSelectionChanged;r||(r=function(c,y){e.resetFilterString(),c.id==="selectall"?e.selectAllItems():y==="added"&&c.value===z.noneItemValue?e.selectNoneItem():y==="added"?e.selectItem(c.value):y==="removed"&&e.deselectItem(c.value),e.popupRecalculatePosition(!1),e.closeOnSelect&&(e.popupModel.isVisible=!1)});var o={items:n,onSelectionChanged:r,allowSelection:!1,locOwner:this.question,elementId:this.listElementId},s=new da(o);return this.setOnTextSearchCallbackForListModel(s),s.forceShowFilter=!0,s},t.prototype.resetFilterString=function(){i.prototype.resetFilterString.call(this),this.inputString=null,this.hintString=""},Object.defineProperty(t.prototype,"shouldResetAfterCancel",{get:function(){return qt&&!this.closeOnSelect},enumerable:!1,configurable:!0}),t.prototype.createPopup=function(){var e=this;i.prototype.createPopup.call(this),this.popupModel.onFooterActionsCreated.add(function(n,r){e.shouldResetAfterCancel&&r.actions.push({id:"sv-dropdown-done-button",title:e.doneButtonCaption,innerCss:"sv-popup__button--done",needSpace:!0,action:function(){e.popupModel.isVisible=!1},enabled:new Lt(function(){return!e.isTwoValueEquals(e.question.renderedValue,e.previousValue)})})}),this.popupModel.onVisibilityChanged.add(function(n,r){e.shouldResetAfterCancel&&r.isVisible&&(e.previousValue=[].concat(e.question.renderedValue||[]))}),this.popupModel.onCancel=function(){e.shouldResetAfterCancel&&(e.question.renderedValue=e.previousValue,e.updateListState())}},t.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.question.isAllSelected&&this.question.hideSelectedItems&&this.popupModel.hide(),this.updateListState()},t.prototype.selectNoneItem=function(){this.question.renderedValue=[z.noneItemValue],this.updateListState()},t.prototype.selectItem=function(e){var n=[].concat(this.question.renderedValue||[]);n.push(e),this.question.renderedValue=n,this.updateListState()},t.prototype.deselectItem=function(e){var n=[].concat(this.question.renderedValue||[]);n.splice(n.indexOf(e),1),this.question.renderedValue=n,this.applyHintString(this.listModel.focusedItem),this.updateListState()},t.prototype.clear=function(){i.prototype.clear.call(this),this.syncFilterStringPlaceholder()},t.prototype.onClear=function(e){i.prototype.onClear.call(this,e),this.updateListState()},t.prototype.setHideSelectedItems=function(e){this.listModel.hideSelectedItems=e,this.updateListState()},t.prototype.removeLastSelectedItem=function(){this.deselectItem(this.question.renderedValue[this.question.renderedValue.length-1]),this.popupRecalculatePosition(!1)},t.prototype.inputKeyHandler=function(e){e.keyCode===8&&!this.filterString&&(this.removeLastSelectedItem(),e.preventDefault(),e.stopPropagation())},t.prototype.setInputStringFromSelectedItem=function(e){this.question.searchEnabled&&(this.inputString=null)},t.prototype.focusItemOnClickAndPopup=function(){},t.prototype.onEscape=function(){},t.prototype.beforeScrollToFocusedItem=function(e){},t.prototype.afterScrollToFocusedItem=function(){var e;!((e=this.listModel.focusedItem)===null||e===void 0)&&e.selected?this.hintString="":this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.syncFilterStringPlaceholder()},t.prototype.onPropertyChangedHandler=function(e,n){i.prototype.onPropertyChangedHandler.call(this,e,n),(n.name==="value"||n.name==="renderedValue"||n.name==="placeholder")&&this.syncFilterStringPlaceholder()},hs([D({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),hs([D({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),hs([D()],t.prototype,"previousValue",void 0),hs([D({localizable:{defaultStr:"tagboxDoneButtonCaption"}})],t.prototype,"doneButtonCaption",void 0),t}(ji),Al=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Br=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Fr=function(i){Al(t,i);function t(e){var n=i.call(this,e)||this;return n.itemDisplayNameMap={},n.onOpened=n.addEvent(),n.ariaExpanded="false",n.createLocalizableString("placeholder",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.createLocalizableString("readOnlyText",n,!0),n.deselectAllItemText=n.createLocalizableString("deselectAllText",n.selectAllItem,!0,"deselectAllItemText"),n.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],function(){n.updateReadOnlyText()}),n.updateReadOnlyText(),n}return t.prototype.locStrsChanged=function(){var e;i.prototype.locStrsChanged.call(this),this.updateReadOnlyText(),(e=this.dropdownListModelValue)===null||e===void 0||e.locStrsChanged()},t.prototype.updateReadOnlyText=function(){this.readOnlyText=this.displayValue||this.placeholder},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.dropdownListModelValue||(this.dropdownListModelValue=new Rl(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.getLocalizableStringText("readOnlyText")},set:function(e){this.setLocalizableStringText("readOnlyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locReadOnlyText",{get:function(){return this.getLocalizableString("readOnlyText")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"tagbox"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this.dropdownListModel.popupModel},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return new te().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlEditable,!this.isDisabledStyle&&!this.isReadOnlyStyle&&!this.isPreviewStyle).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()},t.prototype.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),ao(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(n.popup,n.list),n},t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.hasUnknownValue=function(e,n,r,o){return n===void 0&&(n=!1),r===void 0&&(r=!0),o===void 0&&(o=!1),this.choicesLazyLoadEnabled?!1:i.prototype.hasUnknownValue.call(this,e,n,r,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var e,n=(e=this.otherValue)===null||e===void 0?void 0:e.trim();return n?i.prototype.hasUnknownValue.call(this,n,!0,!1):!1},t.prototype.onVisibleChoicesChanged=function(){i.prototype.onVisibleChoicesChanged.call(this),this.dropdownListModelValue&&this.dropdownListModel.updateItems()},t.prototype.getItemIfChoicesNotContainThisValue=function(e,n){return this.choicesLazyLoadEnabled?this.createItemValue(e,n):i.prototype.getItemIfChoicesNotContainThisValue.call(this,e,n)},t.prototype.validateItemValues=function(e){var n=this;this.updateItemDisplayNameMap();var r=this.renderedValue;if(e.length&&e.length===r.length)return e;var o=this.selectedItemValues;if(!e.length&&o&&o.length)return this.defaultSelectedItemValues=[].concat(o),o;var s=e.map(function(c){return c.value});return r.filter(function(c){return s.indexOf(c)===-1}).forEach(function(c){var y=n.getItemIfChoicesNotContainThisValue(c,n.itemDisplayNameMap[c]);y&&e.push(y)}),e.sort(function(c,y){return r.indexOf(c.value)-r.indexOf(y.value)}),e},t.prototype.updateItemDisplayNameMap=function(){var e=this,n=function(r){e.itemDisplayNameMap[r.value]=r.text};(this.defaultSelectedItemValues||[]).forEach(n),(this.selectedItemValues||[]).forEach(n),this.visibleChoices.forEach(n)},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.onBlurCore=function(e){this.dropdownListModel.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.onFocusCore=function(e){this.dropdownListModel.onFocus(e),i.prototype.onFocusCore.call(this,e)},t.prototype.allElementsSelected=function(){var e=i.prototype.allElementsSelected.call(this);return this.updateSelectAllItemText(e),e},t.prototype.updateSelectAllItemText=function(e){this.selectAllItem.setLocText(e?this.deselectAllItemText:this.selectAllItemText)},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},t.prototype.clearValue=function(e){var n;i.prototype.clearValue.call(this,e),(n=this.dropdownListModelValue)===null||n===void 0||n.clear()},Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||z.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),Br([D()],t.prototype,"searchMode",void 0),Br([D()],t.prototype,"allowClear",void 0),Br([D({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),Br([D({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),Br([D({onSet:function(e,n){n.dropdownListModelValue&&n.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),Br([D()],t.prototype,"choicesLazyLoadPageSize",void 0),Br([D({getDefaultValue:function(){return z.tagboxCloseOnSelect}})],t.prototype,"closeOnSelect",void 0),Br([D()],t.prototype,"textWrapEnabled",void 0),t}(nr);G.addClass("tagbox",[{name:"placeholder",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",default:!0},{name:"searchEnabled:boolean",default:!0},{name:"textWrapEnabled:boolean",default:!0},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"hideSelectedItems:boolean",default:!1},{name:"closeOnSelect:boolean"},{name:"itemComponent",visible:!1,default:""},{name:"searchMode",default:"contains",choices:["contains","startsWith"]}],function(){return new Fr("")},"checkbox"),bt.Instance.registerQuestion("tagbox",function(i){var t=new Fr(i);return t.choices=bt.DefaultChoices,t});var td=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),ui=function(i){td(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.doDragOver=function(){if(e.parentElement.getType()!=="imagepicker"){var n=e.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button");n.style.cursor="grabbing"}},e.doBanDropHere=function(){if(e.parentElement.getType()!=="imagepicker"){var n=e.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button");n.style.cursor="not-allowed"}},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){if(this.parentElement.getType()==="imagepicker")return this.createImagePickerShortcut(this.draggedElement,e,n,r);var o=M.createElement("div");if(o){o.className="sv-drag-drop-choices-shortcut";var s=!0,c=n.closest("[data-sv-drop-target-item-value]").cloneNode(s);c.classList.add("sv-drag-drop-choices-shortcut__content");var y=c.querySelector(".svc-item-value-controls__drag-icon");y.style.visibility="visible";var w=c.querySelector(".svc-item-value-controls__remove");w.style.backgroundColor="transparent",c.classList.remove("svc-item-value--moveup"),c.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,o.appendChild(c);var N=n.getBoundingClientRect();return o.shortcutXOffset=r.clientX-N.x,o.shortcutYOffset=r.clientY-N.y,this.isBottom=null,typeof this.onShortcutCreated=="function"&&this.onShortcutCreated(o),o}},t.prototype.createImagePickerShortcut=function(e,n,r,o){var s=M.createElement("div");if(s){s.style.cssText=` 
-      cursor: grabbing;
-      position: absolute;
-      z-index: 10000;
-      box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));
-      background-color: var(--sjs-general-backcolor, var(--background, #fff));
-      padding: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
-      border-radius: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));
-    `;var c=r.closest("[data-sv-drop-target-item-value]");this.imagepickerControlsNode=c.querySelector(".svc-image-item-value-controls");var y=c.querySelector(".sd-imagepicker__image-container"),w=c.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="none"),y.style.width=w.width+"px",y.style.height=w.height+"px",w.style.objectFit="cover",w.style.borderRadius="4px",s.appendChild(w),s}},t.prototype.getDropTargetByDataAttributeValue=function(e){var n;return n=this.parentElement.choices.filter(function(r){return""+r.value==e})[0],n},t.prototype.getVisibleChoices=function(){var e=this.parentElement;return e.getType()==="ranking"?e.selectToRankEnabled?e.visibleChoices:e.rankingChoices:e.visibleChoices},t.prototype.isDropTargetValid=function(e,n){var r=this.getVisibleChoices();if(this.parentElement.getType()!=="imagepicker"){var o=r.indexOf(this.dropTarget),s=r.indexOf(this.draggedElement);if(s>o&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(s<o&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return r.indexOf(e)!==-1},t.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},t.prototype.calculateIsBottom=function(e,n){var r=n.getBoundingClientRect();return e>=r.y+r.height/2},t.prototype.afterDragOver=function(e){var n=this.getVisibleChoices(),r=n.indexOf(this.dropTarget),o=n.indexOf(this.draggedElement);if(o<r&&this.isBottom===!0)n.splice(o,1),n.splice(r,0,this.draggedElement);else if(o>r&&this.isBottom===!1)n.splice(r,1),n.splice(o,0,this.dropTarget);else return;this.parentElement.getType()!=="imagepicker"&&(o!==r&&(e.classList.remove("svc-item-value--moveup"),e.classList.remove("svc-item-value--movedown"),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),o>r&&(this.dropTarget.isDragDropMoveDown=!0),o<r&&(this.dropTarget.isDragDropMoveUp=!0),i.prototype.ghostPositionChanged.call(this))},t.prototype.doDrop=function(){var e=this.parentElement.choices,n=this.getVisibleChoices().filter(function(s){return e.indexOf(s)!==-1}),r=e.indexOf(this.draggedElement),o=n.indexOf(this.draggedElement);return e.splice(r,1),e.splice(o,0,this.draggedElement),this.parentElement},t.prototype.clear=function(){this.parentElement&&this.updateVisibleChoices(this.parentElement),this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="flex",this.imagepickerControlsNode=null),i.prototype.clear.call(this)},t.prototype.updateVisibleChoices=function(e){e.getType()==="ranking"?e.updateRankingChoices():e.updateVisibleChoices()},t}(Mn),ef=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Dl=function(i){ef(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isDragOverRootNode=!1,e.doDragOver=function(){var n=e.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item");n.style.cursor="grabbing"},e.reorderRankedItem=function(n,r,o){if(r!=o){var s=n.rankingChoices,c=s[r];n.isValueSetByUser=!0,s.splice(r,1),s.splice(o,0,c),e.updateDraggedElementShortcut(o+1)}},e.doBanDropHere=function(){if(e.isDragOverRootNode){e.allowDropHere=!0;return}var n=e.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item");n.style.cursor="not-allowed"},e}return Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,n,r){var o=M.createElement("div");if(o){o.className=this.shortcutClass+" sv-ranking-shortcut";var s=!0,c=n.cloneNode(s);o.appendChild(c);var y=n.getBoundingClientRect();o.style.left=y.x,o.style.top=y.y,this.domAdapter.rootElement.append(o);var w=o.offsetHeight,N=r.clientY;return N>y.y+w&&(N=y.y+w-10),o.shortcutXOffset=r.clientX-y.x,o.shortcutYOffset=N-y.y,this.parentElement&&this.parentElement.useFullItemSizeForShortcut&&(o.style.width=n.offsetWidth+"px",o.style.height=n.offsetHeight+"px"),o}},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return new te().append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,Ja).toString()},enumerable:!1,configurable:!0}),t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.findDropTargetNodeByDragOverNode=function(e){return this.isDragOverRootNode=this.getIsDragOverRootNode(e),i.prototype.findDropTargetNodeByDragOverNode.call(this,e)},t.prototype.getIsDragOverRootNode=function(e){return typeof e.className=="string"&&e.className.indexOf("sv-ranking")!==-1},t.prototype.isDropTargetValid=function(e,n){var r=this.parentElement.rankingChoices;return r.indexOf(e)!==-1},t.prototype.calculateIsBottom=function(e,n){return this.dropTarget instanceof ge&&this.draggedElement!==this.dropTarget?i.prototype.calculateIsBottom.call(this,e,n):!1},t.prototype.getIndices=function(e,n,r){var o=n.indexOf(this.draggedElement),s=r.indexOf(this.dropTarget);if(o<0&&this.draggedElement&&(this.draggedElement=ge.getItemByValue(n,this.draggedElement.value)||this.draggedElement,o=n.indexOf(this.draggedElement)),s===-1){var c=e.value.length;s=c}else n==r?(!this.isBottom&&o<s&&s--,this.isBottom&&o>s&&s++):n!=r&&this.isBottom&&s++;return{fromIndex:o,toIndex:s}},t.prototype.afterDragOver=function(e){var n=this.getIndices(this.parentElement,this.parentElement.rankingChoices,this.parentElement.rankingChoices),r=n.fromIndex,o=n.toIndex;this.reorderRankedItem(this.parentElement,r,o)},t.prototype.updateDraggedElementShortcut=function(e){var n;if(!((n=this.domAdapter)===null||n===void 0)&&n.draggedElementShortcut){var r=e!==null?e+"":"",o=this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item__index");o.innerText=r}},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,i.prototype.ghostPositionChanged.call(this)},t.prototype.doDrop=function(){return this.parentElement.setValue(),this.parentElement},t.prototype.clear=function(){this.parentElement&&(this.parentElement.dropTargetNodeMove=null,this.parentElement.updateRankingChoices(!0)),i.prototype.clear.call(this)},t}(ui),Ll=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),tf=function(i){Ll(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.selectToRank=function(n,r,o){var s=[].concat(n.rankingChoices),c=n.unRankingChoices,y=c[r];s.splice(o,0,y),e.updateChoices(n,s)},e.unselectFromRank=function(n,r,o){var s=[].concat(n.rankingChoices);s.splice(r,1),e.updateChoices(n,s)},e}return t.prototype.findDropTargetNodeByDragOverNode=function(e){if(e.dataset.ranking==="from-container"||e.dataset.ranking==="to-container")return e;var n=e.closest("[data-ranking='to-container']"),r=e.closest("[data-ranking='from-container']");return this.parentElement.unRankingChoices.length===0&&r?r:this.parentElement.rankingChoices.length===0&&n?n:i.prototype.findDropTargetNodeByDragOverNode.call(this,e)},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]||this.parentElement.unRankingChoices[e]},t.prototype.getDropTargetByNode=function(e,n){return e.dataset.ranking==="to-container"?"to-container":e.dataset.ranking==="from-container"||e.closest("[data-ranking='from-container']")?"from-container":i.prototype.getDropTargetByNode.call(this,e,n)},t.prototype.isDropTargetValid=function(e,n){return e==="to-container"||e==="from-container"?!0:i.prototype.isDropTargetValid.call(this,e,n)},t.prototype.afterDragOver=function(e){var n=this.parentElement,r=n.rankingChoices,o=n.unRankingChoices;if(this.isDraggedElementUnranked&&this.isDropTargetRanked){this.doRankBetween(e,o,r,this.selectToRank);return}if(this.isDraggedElementRanked&&this.isDropTargetRanked){this.doRankBetween(e,r,r,this.reorderRankedItem);return}if(this.isDraggedElementRanked&&!this.isDropTargetRanked){this.doRankBetween(e,r,o,this.unselectFromRank);return}},t.prototype.doRankBetween=function(e,n,r,o){var s=this.parentElement,c=this.getIndices(s,n,r),y=c.fromIndex,w=c.toIndex;o(s,y,w,e)},Object.defineProperty(t.prototype,"isDraggedElementRanked",{get:function(){return this.parentElement.rankingChoices.indexOf(this.draggedElement)!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDropTargetRanked",{get:function(){return this.dropTarget==="to-container"?!0:this.parentElement.rankingChoices.indexOf(this.dropTarget)!==-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDraggedElementUnranked",{get:function(){return!this.isDraggedElementRanked},enumerable:!1,configurable:!0}),t.prototype.updateChoices=function(e,n){e.isValueSetByUser=!0,e.rankingChoices=n,e.updateUnRankingChoices(n)},t}(Dl),nd=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),qi=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},pu=function(i){nd(t,i);function t(e){var n=i.call(this,e)||this;return n.domNode=null,n.onVisibleChoicesChanged=function(){if(i.prototype.onVisibleChoicesChanged.call(n),n.carryForwardStartUnranked&&!n.isValueSetByUser&&!n.selectToRankEnabled&&!n.defaultValue&&(n.value=[]),n.visibleChoices.length===1&&!n.selectToRankEnabled){n.value=[],n.value.push(n.visibleChoices[0].value),n.updateRankingChoices();return}if(n.isEmpty()){n.updateRankingChoices();return}if(n.selectToRankEnabled){n.updateRankingChoices();return}n.visibleChoices.length>n.value.length&&n.addToValueByVisibleChoices(),n.visibleChoices.length<n.value.length&&n.removeFromValueByVisibleChoices(),n.updateRankingChoices()},n.localeChanged=function(){i.prototype.localeChanged.call(n),n.updateRankingChoicesSync()},n._rankingChoicesAnimation=new Ar(n.getChoicesAnimationOptions(!0),function(r){n._renderedRankingChoices=r},function(){return n.renderedRankingChoices}),n._unRankingChoicesAnimation=new Ar(n.getChoicesAnimationOptions(!1),function(r){n._renderedUnRankingChoices=r},function(){return n.renderedUnRankingChoices}),n.rankingChoices=[],n.unRankingChoices=[],n._renderedRankingChoices=[],n._renderedUnRankingChoices=[],n.handlePointerDown=function(r,o,s){var c=r.target;n.isDragStartNodeValid(c)&&n.isAllowStartDrag(c,o)&&(n.draggedChoiceValue=o.value,n.draggedTargetNode=s,n.dragOrClickHelper.onPointerDown(r))},n.startDrag=function(r){var o=ge.getItemByValue(n.activeChoices,n.draggedChoiceValue);n.dragDropRankingChoices.startDrag(r,o,n,n.draggedTargetNode)},n.handlePointerUp=function(r,o,s){if(n.selectToRankEnabled){var c=r.target;n.isAllowStartDrag(c,o)&&n.handleKeydownSelectToRank(r,o," ",!1)}},n.handleKeydown=function(r,o){if(!n.isReadOnlyAttr&&!n.isDesignMode){var s=r.key,c=n.rankingChoices.indexOf(o);if(n.selectToRankEnabled){n.handleKeydownSelectToRank(r,o);return}if(s==="ArrowUp"&&c||s==="ArrowDown"&&c!==n.rankingChoices.length-1){var y=s=="ArrowUp"?c-1:c+1;n.dragDropRankingChoices.reorderRankedItem(n,c,y),n.setValueAfterKeydown(y,"",!0,r)}}},n.focusItem=function(r,o){if(n.domNode)if(n.selectToRankEnabled&&o){var s="[data-ranking='"+o+"']",c=n.domNode.querySelectorAll(s+" ."+n.cssClasses.item);c[r].focus()}else{var c=n.domNode.querySelectorAll("."+n.cssClasses.item);c[r].focus()}},n.isValueSetByUser=!1,n.setValue=function(){var r=[];n.rankingChoices.forEach(function(o){r.push(o.value)}),n.value=r,n.isValueSetByUser=!0},n.registerFunctionOnPropertyValueChanged("selectToRankEnabled",function(){n.clearValue(!0),n.setDragDropRankingChoices(),n.updateRankingChoicesSync()}),n.dragOrClickHelper=new al(n.startDrag),n}return t.prototype.getType=function(){return"ranking"},t.prototype.getItemTabIndex=function(e){if(!(this.isDesignMode||e.disabled))return 0},t.prototype.supportContainerQueries=function(){return this.selectToRankEnabled},Object.defineProperty(t.prototype,"rootClass",{get:function(){return new te().append(this.cssClasses.root).append(this.cssClasses.rootMobileMod,this.isMobileMode()).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDesignMode,!!this.isDesignMode).append(this.cssClasses.itemOnError,this.hasCssError()).append(this.cssClasses.rootDragHandleAreaIcon,z.rankingDragHandleArea==="icon").append(this.cssClasses.rootSelectToRankMod,this.selectToRankEnabled).append(this.cssClasses.rootSelectToRankEmptyValueMod,this.isEmpty()).append(this.cssClasses.rootSelectToRankAlignHorizontal,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="horizontal").append(this.cssClasses.rootSelectToRankAlignVertical,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="vertical").append(this.cssClasses.rootSelectToRankSwapAreas,this.selectToRankEnabled&&this.renderedSelectToRankAreasLayout==="horizontal"&&this.selectToRankSwapAreas).toString()},enumerable:!1,configurable:!0}),t.prototype.isItemSelectedCore=function(e){return this.selectToRankEnabled?i.prototype.isItemSelectedCore.call(this,e):!0},t.prototype.getItemClassCore=function(e,n){return new te().append(i.prototype.getItemClassCore.call(this,e,n)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===e).toString()},t.prototype.getContainerClasses=function(e){var n=!1,r=e==="to",o=e==="from";return r?n=this.renderedRankingChoices.length===0:o&&(n=this.renderedUnRankingChoices.length===0),new te().append(this.cssClasses.container).append(this.cssClasses.containerToMode,r).append(this.cssClasses.containerFromMode,o).append(this.cssClasses.containerEmptyMode,n).toString()},t.prototype.isItemCurrentDropTarget=function(e){return this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return this.ghostPosition==="top"?this.cssClasses.dragDropGhostPositionTop:this.ghostPosition==="bottom"?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getItemIndexClasses=function(e){var n;return this.selectToRankEnabled?n=this.unRankingChoices.indexOf(e)!==-1:n=this.isEmpty(),new te().append(this.cssClasses.itemIndex).append(this.cssClasses.itemIndexEmptyMode,n).toString()},t.prototype.getNumberByIndex=function(e){return this.isEmpty()?"":e+1+""},t.prototype.updateRankingChoicesSync=function(){this.blockAnimations(),this.updateRankingChoices(),this.releaseAnimations()},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.setDragDropRankingChoices(),this.updateRankingChoicesSync()},t.prototype.isAnswerCorrect=function(){return m.isArraysEqual(this.value,this.correctAnswer,!1)},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(e){i.prototype.onSurveyValueChanged.call(this,e),!this.isLoadingFromJson&&this.updateRankingChoices()},t.prototype.onSurveyLoad=function(){this.blockAnimations(),i.prototype.onSurveyLoad.call(this),this.updateRankingChoices(),this.releaseAnimations()},t.prototype.updateValueFromSurvey=function(e,n){i.prototype.updateValueFromSurvey.call(this,e,n),e&&(this.isValueSetByUser=!0)},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach(function(n){e.indexOf(n.value)===-1&&e.push(n.value)}),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){for(var e=this.value.slice(),n=this.visibleChoices,r=this.value.length-1;r>=0;r--)ge.getItemByValue(n,this.value[r])||e.splice(r,1);this.value=e},t.prototype.getChoicesAnimationOptions=function(e){var n=this;return{getKey:function(r){return r.value},getRerenderEvent:function(){return n.onElementRerendered},isAnimationEnabled:function(){return n.animationAllowed&&!n.isDesignMode&&n.isVisible&&!!n.domNode},getReorderOptions:function(r,o){var s="";return r!==n.currentDropTarget&&(s=o?"sv-dragdrop-movedown":"sv-dragdrop-moveup"),{cssClass:s}},getLeaveOptions:function(r){var o=e?n.renderedRankingChoices:n.renderedUnRankingChoices;return n.renderedSelectToRankAreasLayout=="vertical"&&o.length==1&&o.indexOf(r)>=0?{cssClass:"sv-ranking-item--animate-item-removing-empty"}:{cssClass:"sv-ranking-item--animate-item-removing",onBeforeRunAnimation:function(s){s.style.setProperty("--animation-height",s.offsetHeight+"px")}}},getEnterOptions:function(r){var o=e?n.renderedRankingChoices:n.renderedUnRankingChoices;return n.renderedSelectToRankAreasLayout=="vertical"&&o.length==1&&o.indexOf(r)>=0?{cssClass:"sv-ranking-item--animate-item-adding-empty"}:{cssClass:"sv-ranking-item--animate-item-adding",onBeforeRunAnimation:function(s){s.style.setProperty("--animation-height",s.offsetHeight+"px")}}},getAnimatedElement:function(r){var o,s=n.cssClasses,c="";n.selectToRankEnabled&&(!e&&s.containerFromMode?c=kt(s.containerFromMode):e&&s.containerToMode&&(c=kt(s.containerToMode)));var y=e?n.renderedRankingChoices.indexOf(r):n.renderedUnRankingChoices.indexOf(r);return(o=n.domNode)===null||o===void 0?void 0:o.querySelector(c+" [data-sv-drop-target-ranking-item='"+y+"']")},allowSyncRemovalAddition:!0}},Object.defineProperty(t.prototype,"rankingChoicesAnimation",{get:function(){return this._rankingChoicesAnimation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unRankingChoicesAnimation",{get:function(){return this._unRankingChoicesAnimation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedRankingChoices",{get:function(){return this._renderedRankingChoices},set:function(e){this.rankingChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedUnRankingChoices",{get:function(){return this._renderedUnRankingChoices},set:function(e){this.unRankingChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.updateRenderedRankingChoices=function(){this.renderedRankingChoices=this.rankingChoices},t.prototype.updateRenderedUnRankingChoices=function(){this.renderedUnRankingChoices=this.unRankingChoices},t.prototype.updateRankingChoices=function(e){var n=this;if(e===void 0&&(e=!1),this.selectToRankEnabled){this.updateRankingChoicesSelectToRankMode(e);return}var r=[];if(e&&(this.rankingChoices=[]),this.isEmpty()){this.rankingChoices=this.visibleChoices;return}this.value.forEach(function(o){n.visibleChoices.forEach(function(s){s.value===o&&r.push(s)})}),this.rankingChoices=r},t.prototype.updateUnRankingChoices=function(e){var n=[];this.visibleChoices.forEach(function(r){n.push(r)}),e.forEach(function(r){n.forEach(function(o,s){o.value===r.value&&n.splice(s,1)})}),this.unRankingChoices=n},t.prototype.updateRankingChoicesSelectToRankMode=function(e){var n=this,r=[];this.isEmpty()||this.value.forEach(function(o){n.visibleChoices.forEach(function(s){s.value===o&&r.push(s)})}),this.updateUnRankingChoices(r),this.rankingChoices=r},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.setDragDropRankingChoices()},t.prototype.setDragDropRankingChoices=function(){this.dragDropRankingChoices=this.createDragDropRankingChoices()},t.prototype.createDragDropRankingChoices=function(){return this.selectToRankEnabled?new tf(this.survey,null,this.longTap):new Dl(this.survey,null,this.longTap)},t.prototype.isDragStartNodeValid=function(e){return z.rankingDragHandleArea==="icon"?e.classList.contains(this.cssClasses.itemIconHoverMod):!0},t.prototype.isAllowStartDrag=function(e,n){return!this.isReadOnly&&!this.isDesignMode&&this.canStartDragDueMaxSelectedChoices(e)&&this.canStartDragDueItemEnabled(n)},t.prototype.canStartDragDueMaxSelectedChoices=function(e){if(!this.selectToRankEnabled)return!0;var n=e.closest("[data-ranking='from-container']");return n?this.checkMaxSelectedChoicesUnreached():!0},t.prototype.canStartDragDueItemEnabled=function(e){return e.enabled},t.prototype.checkMaxSelectedChoicesUnreached=function(){if(this.maxSelectedChoices<1)return!0;var e=this.value,n=Array.isArray(e)?e.length:0;return n<this.maxSelectedChoices},t.prototype.afterRenderQuestionElement=function(e){this.domNode=e,i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){this.domNode=void 0,i.prototype.beforeDestroyQuestionElement.call(this,e)},t.prototype.supportSelectAll=function(){return!1},t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.supportRefuse=function(){return!1},t.prototype.supportDontKnow=function(){return!1},t.prototype.handleKeydownSelectToRank=function(e,n,r,o){if(o===void 0&&(o=!0),!this.isDesignMode){var s=e.key;if(r&&(s=r),!(s!==" "&&s!=="ArrowUp"&&s!=="ArrowDown")){var c=this.dragDropRankingChoices,y=this.rankingChoices,w=y.indexOf(n)!==-1,N=w?y:this.unRankingChoices,Q=N.indexOf(n);if(!(Q<0)){var Y;if(s===" "&&!w){if(!this.checkMaxSelectedChoicesUnreached()||!this.canStartDragDueItemEnabled(n))return;Y=this.value.length,c.selectToRank(this,Q,Y),this.setValueAfterKeydown(Y,"to-container",o,e);return}if(w){if(s===" "){c.unselectFromRank(this,Q),Y=this.unRankingChoices.indexOf(n),this.setValueAfterKeydown(Y,"from-container",o,e);return}var ce=s==="ArrowUp"?-1:s==="ArrowDown"?1:0;ce!==0&&(Y=Q+ce,!(Y<0||Y>=y.length)&&(c.reorderRankedItem(this,Q,Y),this.setValueAfterKeydown(Y,"to-container",o,e)))}}}}},t.prototype.setValueAfterKeydown=function(e,n,r,o){var s=this;r===void 0&&(r=!0),this.setValue(),r&&setTimeout(function(){s.focusItem(e,n)},1),o&&o.preventDefault()},t.prototype.getIconHoverCss=function(){return new te().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return new te().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()},Object.defineProperty(t.prototype,"longTap",{get:function(){return this.getPropertyValue("longTap")},set:function(e){this.setPropertyValue("longTap",e)},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return"sv-ranking-item"},Object.defineProperty(t.prototype,"selectToRankEnabled",{get:function(){return this.getPropertyValue("selectToRankEnabled",!1)},set:function(e){this.setPropertyValue("selectToRankEnabled",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankSwapAreas",{get:function(){return this.getPropertyValue("selectToRankSwapAreas",!1)},set:function(e){this.setPropertyValue("selectToRankSwapAreas",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankAreasLayout",{get:function(){return this.getPropertyValue("selectToRankAreasLayout")},set:function(e){this.setPropertyValue("selectToRankAreasLayout",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedSelectToRankAreasLayout",{get:function(){return this.isMobileMode()?"vertical":this.selectToRankAreasLayout},enumerable:!1,configurable:!0}),t.prototype.isMobileMode=function(){return Ja},Object.defineProperty(t.prototype,"useFullItemSizeForShortcut",{get:function(){return this.getPropertyValue("useFullItemSizeForShortcut")},set:function(e){this.setPropertyValue("useFullItemSizeForShortcut",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dragDropSvgIcon",{get:function(){return this.cssClasses.dragDropSvgIconId||"#icon-drag-24x24"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arrowsSvgIcon",{get:function(){return this.cssClasses.arrowsSvgIconId||"#icon-reorder-24x24"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dashSvgIcon",{get:function(){return this.cssClasses.dashSvgIconId||"#icon-rankingundefined-16x16"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),qi([be({onSet:function(e,n){return n.updateRenderedRankingChoices()},onRemove:function(e,n,r){return r.updateRenderedRankingChoices()},onPush:function(e,n,r){return r.updateRenderedRankingChoices()}})],t.prototype,"rankingChoices",void 0),qi([be({onSet:function(e,n){return n.updateRenderedUnRankingChoices()},onRemove:function(e,n,r){return r.updateRenderedUnRankingChoices()},onPush:function(e,n,r){return r.updateRenderedUnRankingChoices()}})],t.prototype,"unRankingChoices",void 0),qi([be()],t.prototype,"_renderedRankingChoices",void 0),qi([be()],t.prototype,"_renderedUnRankingChoices",void 0),qi([D({defaultValue:null})],t.prototype,"currentDropTarget",void 0),qi([D({defaultValue:!0})],t.prototype,"carryForwardStartUnranked",void 0),qi([D({localizable:{defaultStr:"selectToRankEmptyRankedAreaText"}})],t.prototype,"selectToRankEmptyRankedAreaText",void 0),qi([D({localizable:{defaultStr:"selectToRankEmptyUnrankedAreaText"}})],t.prototype,"selectToRankEmptyUnrankedAreaText",void 0),t}(nr);G.addClass("ranking",[{name:"showOtherItem",visible:!1,isSerializable:!1},{name:"otherText",visible:!1,isSerializable:!1},{name:"otherErrorText",visible:!1,isSerializable:!1},{name:"storeOthersAsComment",visible:!1,isSerializable:!1},{name:"showNoneItem",visible:!1,isSerializable:!1},{name:"showRefuseItem",visible:!1,isSerializable:!1},{name:"showDontKnowItem",visible:!1,isSerializable:!1},{name:"noneText",visible:!1,isSerializable:!1},{name:"showSelectAllItem",visible:!1,isSerializable:!1},{name:"selectAllText",visible:!1,isSerializable:!1},{name:"colCount:number",visible:!1,isSerializable:!1},{name:"separateSpecialChoices",visible:!1,isSerializable:!1},{name:"longTap",default:!0,visible:!1,isSerializable:!1},{name:"selectToRankEnabled:switch",default:!1,visible:!0,isSerializable:!0},{name:"selectToRankSwapAreas:switch",default:!1,visible:!1,isSerializable:!0,dependsOn:"selectToRankEnabled"},{name:"selectToRankAreasLayout",default:"horizontal",choices:["horizontal","vertical"],dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},visible:!0,isSerializable:!0},{name:"selectToRankEmptyRankedAreaText:text",serializationProperty:"locSelectToRankEmptyRankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled}},{name:"selectToRankEmptyUnrankedAreaText:text",serializationProperty:"locSelectToRankEmptyUnrankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled}},{name:"maxSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},isSerializable:!0},{name:"minSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(i){return!!i.selectToRankEnabled},isSerializable:!0},{name:"itemComponent",visible:!1,default:"sv-ranking-item"}],function(){return new pu("")},"checkbox"),bt.Instance.registerQuestion("ranking",function(i){var t=new pu(i);return t.choices=bt.DefaultChoices,t});var nf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ml=function(i){nf(t,i);function t(e){return i.call(this,e)||this}return Object.defineProperty(t.prototype,"textAreaModel",{get:function(){return this.textAreaModelValue||(this.textAreaModelValue=new ho(this.getTextAreaOptions())),this.textAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getTextAreaOptions=function(){var e=this,n=this,r=function(s){m.isTwoValueEquals(n.value,s,!1,!0,!1)||(n.value=s)},o={question:this,id:function(){return e.inputId},propertyName:"value",className:function(){return e.className},placeholder:function(){return e.renderedPlaceholder},isDisabledAttr:function(){return e.isDisabledAttr},isReadOnlyAttr:function(){return e.isReadOnlyAttr},autoGrow:function(){return e.renderedAutoGrow},maxLength:function(){return e.getMaxLength()},rows:function(){return e.rows},cols:function(){return e.cols},ariaRequired:function(){return e.a11y_input_ariaRequired},ariaLabel:function(){return e.a11y_input_ariaLabel},ariaLabelledBy:function(){return e.a11y_input_ariaLabelledBy},ariaDescribedBy:function(){return e.a11y_input_ariaDescribedBy},ariaInvalid:function(){return e.a11y_input_ariaInvalid},ariaErrormessage:function(){return e.a11y_input_ariaErrormessage},getTextValue:function(){return e.value},onTextAreaChange:function(s){r(s.target.value)},onTextAreaInput:function(s){e.onInput(s)},onTextAreaKeyDown:function(s){e.onKeyDown(s)},onTextAreaFocus:function(s){e.onFocus(s)},onTextAreaBlur:function(s){e.onBlur(s)}};return o},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptCarriageReturn",{get:function(){return this.getPropertyValue("acceptCarriageReturn")},set:function(e){this.setPropertyValue("acceptCarriageReturn",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrow",{get:function(){return this.getPropertyValue("autoGrow")},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedAutoGrow",{get:function(){var e=this.autoGrow;return e===void 0&&this.survey?this.survey.autoGrowComment:!!e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResize",{get:function(){return this.getPropertyValue("allowResize")},set:function(e){this.setPropertyValue("allowResize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedAllowResize",{get:function(){var e=this.allowResize;return e===void 0&&this.survey?this.survey.allowResizeComment:!!e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.renderedAllowResize?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.afterRenderQuestionElement=function(e){var n=z.environment.root;this.element=n.getElementById(this.inputId)||e,i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.element=void 0},t.prototype.onInput=function(e){this.isInputTextUpdate&&(this.value=e.target.value),this.updateRemainingCharacterCounter(e.target.value)},t.prototype.onBlurCore=function(e){i.prototype.onBlurCore.call(this,e)},t.prototype.onKeyDown=function(e){this.onKeyDownPreprocess&&this.onKeyDownPreprocess(e),!this.acceptCarriageReturn&&(e.key==="Enter"||e.keyCode===13)&&(e.preventDefault(),e.stopPropagation())},t.prototype.setNewValue=function(e){!this.acceptCarriageReturn&&e&&(e=e.replace(new RegExp(`(\r
-|
-|\r)`,"gm"),"")),i.prototype.setNewValue.call(this,e)},t.prototype.getValueSeparator=function(){return`
-`},t.prototype.notifyStateChanged=function(e){i.prototype.notifyStateChanged.call(this,e),this.isCollapsed||this.textAreaModel.updateElement()},Object.defineProperty(t.prototype,"className",{get:function(){return(this.cssClasses?this.getControlClass():"panel-comment-root")||void 0},enumerable:!1,configurable:!0}),t}(fs);G.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50,visible:!1,isSerializable:!1},{name:"rows:number",default:4},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]},{name:"autoGrow:boolean",defaultFunc:function(){}},{name:"allowResize:boolean",defaultFunc:function(){}},{name:"acceptCarriageReturn:boolean",default:!0,visible:!1}],function(){return new Ml("")},"textbase"),bt.Instance.registerQuestion("comment",function(i){return new Ml(i)});var gs="environment",li="user",_n=function(){function i(){this.canFlipValue=void 0}return i.clear=function(){i.cameraList=void 0,i.cameraIndex=-1},i.setCameraList=function(t){var e=function(n){var r=n.label.toLocaleLowerCase();return r.indexOf(li)>-1?li:r.indexOf(gs)>-1?gs:r.indexOf("front")>-1?li:r.indexOf("back")>-1?gs:""};i.clear(),Array.isArray(t)&&t.length>0&&(i.cameraIndex=-1,t.sort(function(n,r){if(n===r)return 0;if(n.label!==r.label){var o=e(n),s=e(r);if(o!==s){if(o===li)return-1;if(s===li)return 1;if(o===gs)return-1;if(s===gs)return 1}}var c=t.indexOf(n),y=t.indexOf(r);return c<y?-1:1})),i.cameraList=t},i.prototype.hasCamera=function(t){var e=this;if(i.cameraList!==void 0){this.hasCameraCallback(t);return}if(i.mediaDevicesCallback){var n=function(r){e.setVideoInputs(r),e.hasCameraCallback(t)};i.mediaDevicesCallback(n);return}typeof navigator<"u"&&navigator.mediaDevices?navigator.mediaDevices.enumerateDevices().then(function(r){e.setVideoInputs(r),e.hasCameraCallback(t),e.updateCanFlipValue()}).catch(function(r){i.cameraList=null,e.hasCameraCallback(t)}):(i.cameraList=null,this.hasCameraCallback(t))},i.prototype.getMediaConstraints=function(t){var e=i.cameraList;if(!(!Array.isArray(e)||e.length<1)){i.cameraIndex<0&&(i.cameraIndex=0);var n=e[i.cameraIndex],r={};return n&&n.deviceId?r.deviceId={exact:n.deviceId}:r.facingMode=i.cameraFacingMode,t&&(t!=null&&t.height&&(r.height={ideal:t.height}),t!=null&&t.width&&(r.width={ideal:t.width})),{video:r,audio:!1}}},i.prototype.startVideo=function(t,e,n,r){var o=this;if(!t){e(void 0);return}t.style.width="100%",t.style.height="auto",t.style.height="100%",t.style.objectFit="contain";var s=this.getMediaConstraints({width:n,height:r});navigator.mediaDevices.getUserMedia(s).then(function(c){var y;t.srcObject=c,!(!((y=i.cameraList[i.cameraIndex])===null||y===void 0)&&y.deviceId)&&c.getTracks()[0].getCapabilities().facingMode&&(i.canSwitchFacingMode=!0,o.updateCanFlipValue()),t.play(),e(c)}).catch(function(c){e(void 0)})},i.prototype.getImageSize=function(t){return{width:t.videoWidth,height:t.videoHeight}},i.prototype.snap=function(t,e){if(!t||!M.isAvailable())return!1;var n=M.getDocument(),r=n.createElement("canvas"),o=this.getImageSize(t);r.height=o.height,r.width=o.width;var s=r.getContext("2d");return s.clearRect(0,0,r.width,r.height),s.drawImage(t,0,0,r.width,r.height),r.toBlob(e,"image/png"),!0},i.prototype.updateCanFlipValue=function(){var t=i.cameraList;this.canFlipValue=Array.isArray(t)&&t.length>1||i.canSwitchFacingMode,this.onCanFlipChangedCallback&&this.onCanFlipChangedCallback(this.canFlipValue)},i.prototype.canFlip=function(t){return this.canFlipValue===void 0&&this.updateCanFlipValue(),t&&(this.onCanFlipChangedCallback=t),this.canFlipValue},i.prototype.flip=function(){this.canFlip()&&(i.canSwitchFacingMode?i.cameraFacingMode=i.cameraFacingMode===li?"environment":li:i.cameraIndex>=i.cameraList.length-1?i.cameraIndex=0:i.cameraIndex++)},i.prototype.hasCameraCallback=function(t){t(Array.isArray(i.cameraList))},i.prototype.setVideoInputs=function(t){var e=[];t.forEach(function(n){n.kind==="videoinput"&&e.push(n)}),i.setCameraList(e.length>0?e:null)},i.cameraIndex=-1,i.cameraFacingMode=li,i.canSwitchFacingMode=!1,i}(),rr=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Qt=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function rd(i,t,e){var n=atob(i.split(",")[1]),r=new Uint8Array(n.split("").map(function(o){return o.charCodeAt(0)})).buffer;return new File([r],t,{type:e})}var ha=function(i){rr(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.isUploading=!1,e.onUploadStateChanged=e.addEvent(),e.onStateChanged=e.addEvent(),e}return t.prototype.stateChanged=function(e){this.currentState!=e&&(e==="loading"&&(this.isUploading=!0),e==="loaded"&&(this.isUploading=!1),e==="error"&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e}),this.onUploadStateChanged.fire(this,{state:e}))},Object.defineProperty(t.prototype,"showLoadingIndicator",{get:function(){return this.isUploading&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload")},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(e){this.clearOnDeletingContainer(),i.prototype.clearValue.call(this,e)},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,function(){})},t.prototype.onCheckForErrors=function(e,n,r){i.prototype.onCheckForErrors.call(this,e,n,r),this.isUploading&&this.waitForUpload&&e.push(new fo(this.getLocalizationString("uploadingFile"),this))},t.prototype.uploadFiles=function(e){var n=this;this.survey&&(this.stateChanged("loading"),this.survey.uploadFiles(this,this.name,e,function(r,o){Array.isArray(r)&&(n.setValueFromResult(r),Array.isArray(o)&&(o.forEach(function(s){return n.errors.push(new fo(s,n))}),n.stateChanged("error"))),r==="success"&&Array.isArray(o)&&n.setValueFromResult(o),r==="error"&&(typeof o=="string"&&n.errors.push(new fo(o,n)),Array.isArray(o)&&o.length>0&&o.forEach(function(s){return n.errors.push(new fo(s,n))}),n.stateChanged("error")),n.stateChanged("loaded")}))},t.prototype.loadPreview=function(e){},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.stateChanged(this.isEmpty()?"empty":"loaded")},t.prototype.getIsQuestionReady=function(){return i.prototype.getIsQuestionReady.call(this)&&!this.isFileLoading},Object.defineProperty(t.prototype,"isFileLoading",{get:function(){return this.isFileLoadingValue},set:function(e){this.isFileLoadingValue=e,this.updateIsReady()},enumerable:!1,configurable:!0}),Qt([D()],t.prototype,"isUploading",void 0),Qt([D({defaultValue:"empty"})],t.prototype,"currentState",void 0),t}(K),Co=function(i){rr(t,i);function t(e,n){var r=i.call(this)||this;return r.question=e,r.index=n,r.id=t.getId(),r}return t.getId=function(){return"sv_sfp_"+t.pageCounter++},Object.defineProperty(t.prototype,"css",{get:function(){return this.question.cssClasses.page},enumerable:!1,configurable:!0}),t.pageCounter=0,Qt([be({})],t.prototype,"items",void 0),t}(Je),du=function(i){rr(t,i);function t(e){var n=i.call(this,e)||this;return n.isDragging=!1,n.fileNavigator=new Qn,n.canFlipCameraValue=void 0,n.prevPreviewLength=0,n._renderedPages=[],n.pagesAnimation=new Qo(n.getPagesAnimationOptions(),function(r){n._renderedPages=r},function(){return n.renderedPages}),n.calcAvailableItemsCount=function(r,o,s){var c=Math.floor(r/(o+s));return(c+1)*(o+s)-s<=r&&c++,c},n.dragCounter=0,n.onDragEnter=function(r){n.canDragDrop()&&(r.preventDefault(),n.isDragging=!0,n.dragCounter++)},n.onDragOver=function(r){if(!n.canDragDrop())return r.returnValue=!1,!1;r.dataTransfer.dropEffect="copy",r.preventDefault()},n.onDrop=function(r){if(n.canDragDrop()){n.isDragging=!1,n.dragCounter=0,r.preventDefault();var o=r.dataTransfer;n.onChange(o)}},n.onDragLeave=function(r){n.canDragDrop()&&(n.dragCounter--,n.dragCounter===0&&(n.isDragging=!1))},n.doChange=function(r){var o=r.target||r.srcElement;n.onChange(o)},n.doClean=function(){if(n.needConfirmRemoveFile){Jr({message:n.confirmRemoveAllMessage,funcOnYes:function(){n.clearFilesCore()},locale:n.getLocale(),rootElement:n.survey.rootElement,cssClass:n.cssClasses.confirmDialog});return}n.clearFilesCore()},n.doDownloadFileFromContainer=function(r){r.stopPropagation();var o=r.currentTarget;if(o&&o.getElementsByTagName){var s=o.getElementsByTagName("a")[0];s==null||s.click()}},n.doDownloadFile=function(r,o){r.stopPropagation(),no()&&(r.preventDefault(),Wo(o.content,o.name))},n.createLocalizableString("takePhotoCaption",n,!1,!0),n.createLocalizableString("clearCaption",n,!1,!0),n.actionsContainer=new Qn,n.actionsContainer.locOwner=n,n.fileIndexAction=new pt({id:"fileIndex",title:n.getFileIndexCaption(),enabled:!1}),n.prevFileAction=new pt({id:"prevPage",iconSize:16,action:function(){n.navigationDirection="left",n.indexToShow=n.previewValue.length&&(n.indexToShow-1+n.pagesCount)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.nextFileAction=new pt({id:"nextPage",iconSize:16,action:function(){n.navigationDirection="right",n.indexToShow=n.previewValue.length&&(n.indexToShow+1)%n.pagesCount||0,n.fileIndexAction.title=n.getFileIndexCaption()}}),n.takePictureAction=new pt({iconName:"icon-takepicture",id:"sv-file-take-picture",iconSize:"auto",innerCss:new Lt(function(){return new te().append(n.cssClasses.contextButton).append(n.cssClasses.takePictureButton).toString()}),locTitle:n.locTakePhotoCaption,showTitle:!1,action:function(){n.snapPicture()}}),n.closeCameraAction=new pt({iconName:"icon-closecamera",id:"sv-file-close-camera",iconSize:"auto",innerCss:new Lt(function(){return new te().append(n.cssClasses.contextButton).append(n.cssClasses.closeCameraButton).toString()}),action:function(){n.stopVideo()}}),n.changeCameraAction=new pt({iconName:"icon-changecamera",id:"sv-file-change-camera",iconSize:"auto",innerCss:new Lt(function(){return new te().append(n.cssClasses.contextButton).append(n.cssClasses.changeCameraButton).toString()}),visible:new Lt(function(){return n.canFlipCamera()}),action:function(){n.flipCamera()}}),n.chooseFileAction=new pt({iconName:"icon-choosefile",id:"sv-file-choose-file",iconSize:"auto",data:{question:n},enabledIf:function(){return!n.isInputReadOnly},component:"sv-file-choose-btn"}),n.startCameraAction=new pt({iconName:"icon-takepicture_24x24",id:"sv-file-start-camera",iconSize:"auto",locTitle:n.locTakePhotoCaption,showTitle:new Lt(function(){return!n.isAnswered}),enabledIf:function(){return!n.isInputReadOnly},action:function(){n.startVideo()}}),n.cleanAction=new pt({iconName:"icon-clear",id:"sv-file-clean",iconSize:"auto",locTitle:n.locClearButtonCaption,showTitle:!1,enabledIf:function(){return!n.isInputReadOnly},innerCss:new Lt(function(){return n.cssClasses.removeButton}),action:function(){n.doClean()}}),[n.closeCameraAction,n.changeCameraAction,n.takePictureAction].forEach(function(r){r.cssClasses={}}),n.registerFunctionOnPropertiesValueChanged(["sourceType","currentMode","isAnswered"],function(){n.updateActionsVisibility()}),n.actionsContainer.actions=[n.chooseFileAction,n.startCameraAction,n.cleanAction],n.fileNavigator.actions=[n.prevFileAction,n.fileIndexAction,n.nextFileAction],n}return Object.defineProperty(t.prototype,"supportFileNavigator",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fileNavigatorVisible",{get:function(){var e=this.isUploading,n=this.isPlayingVideo,r=this.containsMultiplyFiles,o=this.pageSize<this.previewValue.length;return!e&&!n&&r&&o&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagesCount",{get:function(){return Math.ceil(this.previewValue.length/this.pageSize)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionsContainerVisible",{get:function(){var e=this.isUploading,n=this.isPlayingVideo,r=this.isDefaultV2Theme;return!e&&!n&&r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoId",{get:function(){return this.id+"_video"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVideoUI",{get:function(){return this.currentMode!=="file"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFileUI",{get:function(){return this.currentMode!=="camera"},enumerable:!1,configurable:!0}),t.prototype.startVideo=function(){var e=this;this.currentMode==="file"||this.isDesignMode||this.isPlayingVideo||(this.setIsPlayingVideo(!0),setTimeout(function(){e.startVideoInCamera()},0))},Object.defineProperty(t.prototype,"videoHtmlElement",{get:function(){var e;return(e=this.rootElement)===null||e===void 0?void 0:e.querySelector("#"+this.videoId)},enumerable:!1,configurable:!0}),t.prototype.startVideoInCamera=function(){var e=this;this.camera.startVideo(this.videoHtmlElement,function(n){e.videoStream=n,n||e.stopVideo()},Ut(this.imageWidth),Ut(this.imageHeight))},t.prototype.stopVideo=function(){this.setIsPlayingVideo(!1),this.closeVideoStream()},t.prototype.snapPicture=function(){var e=this;if(this.isPlayingVideo){var n=function(r){if(r){var o=new File([r],"snap_picture.png",{type:"image/png"});e.loadFiles([o])}};this.camera.snap(this.videoHtmlElement,n),this.stopVideo()}},t.prototype.canFlipCamera=function(){var e=this;return this.canFlipCameraValue===void 0&&(this.canFlipCameraValue=this.camera.canFlip(function(n){e.canFlipCameraValue=n})),this.canFlipCameraValue},t.prototype.flipCamera=function(){this.canFlipCamera()&&(this.closeVideoStream(),this.camera.flip(),this.startVideoInCamera())},t.prototype.closeVideoStream=function(){this.videoStream&&(this.videoStream.getTracks().forEach(function(e){e.stop()}),this.videoStream=void 0)},t.prototype.onHidingContent=function(){i.prototype.onHidingContent.call(this),this.stopVideo()},t.prototype.updateElementCssCore=function(e){i.prototype.updateElementCssCore.call(this,e),this.prevFileAction.iconName=this.cssClasses.leftIconId,this.nextFileAction.iconName=this.cssClasses.rightIconId,this.updateCurrentMode()},t.prototype.getFileIndexCaption=function(){return this.getLocalizationFormatString("indexText",this.indexToShow+1,this.pagesCount)},t.prototype.updateFileNavigator=function(){this.updatePages(),this.navigationDirection=void 0,this.indexToShow=this.previewValue.length&&(this.indexToShow+this.pagesCount)%this.pagesCount||0,this.fileIndexAction.title=this.getFileIndexCaption()},t.prototype.updateRenderedPages=function(){this.pages&&this.pages[this.indexToShow]&&(this.renderedPages=[this.pages[this.indexToShow]])},t.prototype.updatePages=function(){var e=this;this.blockAnimations();var n;this.pages=[],this.renderedPages=[],this.previewValue.forEach(function(r,o){o%e.pageSize==0&&(n=new Co(e,e.pages.length),e.pages.push(n)),n.items.push(r)}),this.releaseAnimations(),this.updateRenderedPages()},t.prototype.previewValueChanged=function(){var e=this;this.navigationDirection=void 0,this.previewValue.length!==this.prevPreviewLength&&(this.previewValue.length>0?this.prevPreviewLength>this.previewValue.length?this.indexToShow>=this.pagesCount&&this.indexToShow>0&&(this.indexToShow=this.pagesCount-1,this.navigationDirection="left-delete"):this.indexToShow=Math.floor(this.prevPreviewLength/this.pageSize):this.indexToShow=0),this.updatePages(),this.fileIndexAction.title=this.getFileIndexCaption(),this.containsMultiplyFiles=this.previewValue.length>1,this.previewValue.length>0&&!this.calculatedGapBetweenItems&&!this.calculatedItemWidth&&setTimeout(function(){e.processResponsiveness(0,e._width)},1),this.prevPreviewLength=this.previewValue.length},t.prototype.getType=function(){return"file"},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.isLoadingFromJson||this.loadPreview(e)},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple")},set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize")},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!1,configurable:!0}),t.prototype.chooseFile=function(e){var n=this;if(this.rootElement){var r=this.rootElement.querySelector("#"+this.inputId);r&&(e.preventDefault(),e.stopImmediatePropagation(),r&&(this.survey?this.survey.chooseFiles(r,function(o){return n.loadFiles(o)},{element:this,elementType:this.getType(),propertyName:this.name}):r.click()))}},Object.defineProperty(t.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(e){this.setPropertyValue("needConfirmRemoveFile",e)},enumerable:!1,configurable:!0}),t.prototype.getConfirmRemoveMessage=function(e){return this.confirmRemoveMessage.format(e)},Object.defineProperty(t.prototype,"takePhotoCaption",{get:function(){return this.getLocalizableStringText("takePhotoCaption")},set:function(e){this.setLocalizableStringText("takePhotoCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTakePhotoCaption",{get:function(){return this.getLocalizableString("takePhotoCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearButtonCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRenderedPlaceholder",{get:function(){var e=this;return this.locRenderedPlaceholderValue===void 0&&(this.locRenderedPlaceholderValue=new Lt(function(){var n=e.isReadOnly,r=!e.isDesignMode&&e.hasFileUI||e.isDesignMode&&e.sourceType!="camera",o=!e.isDesignMode&&e.hasVideoUI||e.isDesignMode&&e.sourceType!="file",s;return n?s=e.locNoFileChosenCaption:r&&o?s=e.locFileOrPhotoPlaceholder:r?s=e.locFilePlaceholder:s=e.locPhotoPlaceholder,s})),this.locRenderedPlaceholderValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentMode",{get:function(){return this.getPropertyValue("currentMode",this.sourceType)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlayingVideo",{get:function(){return this.getPropertyValue("isPlayingVideo",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsPlayingVideo=function(e){this.setPropertyValue("isPlayingVideo",e)},t.prototype.updateCurrentMode=function(){var e=this;!this.isDesignMode&&this.survey&&(this.sourceType!=="file"?this.camera.hasCamera(function(n){e.setPropertyValue("currentMode",n&&e.isDefaultV2Theme?e.sourceType:"file")}):this.setPropertyValue("currentMode",this.sourceType))},t.prototype.updateActionsVisibility=function(){var e=this.isDesignMode;this.chooseFileAction.visible=!e&&this.hasFileUI||e&&this.sourceType!=="camera",this.startCameraAction.visible=!e&&this.hasVideoUI||e&&this.sourceType!=="file",this.cleanAction.visible=!!this.isAnswered},Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:" "},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chooseButtonText",{get:function(){return this.isEmpty()||this.allowMultiple?this.chooseButtonCaption:this.replaceButtonCaption},enumerable:!1,configurable:!0}),t.prototype.clear=function(e){var n=this;this.survey&&(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,null,function(r,o){r==="success"&&(n.value=void 0,n.errors=[],e&&e(),n.indexToShow=0,n.fileIndexAction.title=n.getFileIndexCaption())}))},Object.defineProperty(t.prototype,"renderCapture",{get:function(){return this.allowCameraAccess?"user":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multipleRendered",{get:function(){return this.allowMultiple?"multiple":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showChooseButton",{get:function(){return!this.isReadOnly&&!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFileDecorator",{get:function(){var e=this.isPlayingVideo,n=this.showLoadingIndicator;return!e&&!n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowShowPreview",{get:function(){var e=this.showLoadingIndicator,n=this.isPlayingVideo;return!e&&!n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPreviewContainer",{get:function(){return this.previewValue&&this.previewValue.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonCore",{get:function(){var e=this.showLoadingIndicator,n=this.isReadOnly,r=this.isEmpty();return!n&&!r&&!e&&!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButton",{get:function(){return this.showRemoveButtonCore&&this.cssClasses.removeButton},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonBottom",{get:function(){var e=new te().append(this.cssClasses.removeButtonBottom).append(this.cssClasses.contextButton).toString();return this.showRemoveButtonCore&&e},enumerable:!1,configurable:!0}),t.prototype.defaultImage=function(e){return!this.canPreviewImage(e)&&!!this.cssClasses.defaultImage},t.prototype.removeFile=function(e){this.removeFileByContent(this.value.filter(function(n){return n.name===e})[0])},t.prototype.removeFileByContent=function(e){var n=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,function(r,o){if(r==="success"){var s=n.value;Array.isArray(s)?n.value=s.filter(function(c){return!m.isTwoValueEquals(c,e,!0,!1,!1)}):n.value=void 0}})},t.prototype.setValueFromResult=function(e){this.value=(this.value||[]).concat(e.map(function(n){return{name:n.file.name,type:n.file.type,content:n.content}}))},t.prototype.loadFiles=function(e){var n=this;if(this.survey&&(this.errors=[],!!this.allFilesOk(e))){var r=function(){n.stateChanged("loading");var o=[];n.storeDataAsText?e.forEach(function(s){var c=new FileReader;c.onload=function(y){o=o.concat([{name:s.name,type:s.type,content:c.result}]),o.length===e.length&&(n.value=(n.value||[]).concat(o))},c.readAsDataURL(s)}):n.uploadFiles(e)};this.allowMultiple?r():this.clear(r)}},Object.defineProperty(t.prototype,"camera",{get:function(){return this.cameraValue||(this.cameraValue=new _n),this.cameraValue},enumerable:!1,configurable:!0}),t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.loadPreview=function(e){var n=this;if(!(this.showPreview&&this.prevLoadedPreviewValue===e)&&(this.previewValue.splice(0,this.previewValue.length),!(!this.showPreview||!e))){this.prevLoadedPreviewValue=e;var r=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?(r.forEach(function(o){var s=o.content||o;n.previewValue.push({name:o.name,type:o.type,content:s})}),this.previewValueChanged()):(this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new _l(this,function(o,s){o!=="error"&&(s.forEach(function(c){n.previewValue.push(c)}),n.previewValueChanged()),n.isFileLoading=!1,n._previewLoader.dispose(),n._previewLoader=void 0}),this._previewLoader.load(r))}},t.prototype.allFilesOk=function(e){var n=this,r=this.errors?this.errors.length:0;return(e||[]).forEach(function(o){n.maxSize>0&&o.size>n.maxSize&&n.errors.push(new es(n.maxSize,n))}),r===this.errors.length},t.prototype.isFileImage=function(e){if(!e||!e.content||!e.content.substring)return!1;var n="data:image",r=e.content&&e.content.substring(0,n.length);r=r&&r.toLowerCase();var o=r===n||!!e.type&&e.type.toLowerCase().indexOf("image/")===0;return o},t.prototype.getPlainData=function(e){e===void 0&&(e={includeEmpty:!0});var n=i.prototype.getPlainData.call(this,e);if(n&&!this.isEmpty()){n.isNode=!1;var r=Array.isArray(this.value)?this.value:[this.value];n.data=r.map(function(o,s){return{name:s,title:"File",value:o.content&&o.content||o,displayValue:o.name&&o.name||o,getString:function(c){return typeof c=="object"?JSON.stringify(c):c},isNode:!1}})}return n},t.prototype.getImageWrapperCss=function(e){return new te().append(this.cssClasses.imageWrapper).append(this.cssClasses.imageWrapperDefaultImage,this.defaultImage(e)).toString()},t.prototype.getActionsContainerCss=function(e){return new te().append(e.actionsContainer).append(e.actionsContainerAnswered,this.isAnswered).toString()},t.prototype.getRemoveButtonCss=function(){return new te().append(this.cssClasses.removeFileButton).append(this.cssClasses.contextButton).toString()},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;return new te().append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.chooseFileAsText,!e).append(this.cssClasses.chooseFileAsTextDisabled,!e&&this.isInputReadOnly).append(this.cssClasses.contextButton,e).append(this.cssClasses.chooseFileAsIcon,e).toString()},t.prototype.getReadOnlyFileCss=function(){return new te().append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return new te().append(this.cssClasses.root).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDragging,this.isDragging).append(this.cssClasses.rootAnswered,this.isAnswered).append(this.cssClasses.single,!this.allowMultiple).append(this.cssClasses.singleImage,!this.allowMultiple&&this.isAnswered&&this.canPreviewImage(this.value[0])).append(this.cssClasses.mobile,this.isMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getFileDecoratorCss=function(){return new te().append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(B.isFileReaderAvailable()&&!(!e||!e.files||e.files.length<1)){for(var n=[],r=this.allowMultiple?e.files.length:1,o=0;o<r;o++)n.push(e.files[o]);e.value="",this.loadFiles(n)}},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.actionsContainer.cssClasses=e.actionBar,this.actionsContainer.cssClasses.itemWithTitle=this.actionsContainer.cssClasses.item,this.actionsContainer.cssClasses.item="",this.actionsContainer.cssClasses.itemAsIcon=n.contextButton,this.actionsContainer.containerCss=n.actionsContainer,n},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.updateCurrentMode(),this.updateActionsVisibility(),this.loadPreview(this.value)},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getObservedElementSelector=function(){return kt(this.cssClasses.dragArea)},t.prototype.getFileListSelector=function(){return kt(this.cssClasses.fileList)},Object.defineProperty(t.prototype,"renderedPages",{get:function(){return this._renderedPages},set:function(e){this.pagesAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.getPagesAnimationOptions=function(){var e=this;return{getEnterOptions:function(n){var r=e.cssClasses.page;return{cssClass:r?new te().append(r+"--enter-from-left",e.navigationDirection=="left"||e.navigationDirection=="left-delete").append(r+"--enter-from-right",e.navigationDirection=="right").toString():""}},getLeaveOptions:function(n){var r=e.cssClasses.page;return{cssClass:r?new te().append(r+"--leave-to-left",e.navigationDirection=="right").append(r+"--leave-to-right",e.navigationDirection=="left").toString():""}},getAnimatedElement:function(n){var r;return(r=e.rootElement)===null||r===void 0?void 0:r.querySelector("#"+n.id)},isAnimationEnabled:function(){return e.animationAllowed&&!!e.rootElement},getRerenderEvent:function(){return e.onElementRerendered}}},t.prototype.triggerResponsiveness=function(e){e&&(this.calculatedGapBetweenItems=void 0,this.calculatedItemWidth=void 0),i.prototype.triggerResponsiveness.call(this)},t.prototype.processResponsiveness=function(e,n){if(this._width=n,this.rootElement&&(!this.calculatedGapBetweenItems||!this.calculatedItemWidth)&&this.allowMultiple){var r=this.getFileListSelector(),o=r?this.rootElement.querySelector(this.getFileListSelector()):void 0;if(o){var s=o.querySelector(kt(this.cssClasses.page));if(s){var c=s.querySelector(kt(this.cssClasses.previewItem));this.calculatedGapBetweenItems=Math.ceil(Number.parseFloat(M.getComputedStyle(s).gap)),c&&(this.calculatedItemWidth=Math.ceil(Number.parseFloat(M.getComputedStyle(c).width)))}}}return this.calculatedGapBetweenItems&&this.calculatedItemWidth?(this.pageSize=this.calcAvailableItemsCount(n,this.calculatedItemWidth,this.calculatedGapBetweenItems),!0):!1},t.prototype.canDragDrop=function(){return!this.isInputReadOnly&&this.currentMode!=="camera"&&!this.isPlayingVideo},t.prototype.afterRenderQuestionElement=function(e){this.rootElement=e},t.prototype.beforeDestroyQuestionElement=function(e){this.rootElement=void 0},t.prototype.clearFilesCore=function(){if(this.rootElement){var e=this.rootElement.querySelectorAll("input")[0];e&&(e.value="")}this.clear()},t.prototype.doRemoveFile=function(e,n){var r=this;if(n.stopPropagation(),this.needConfirmRemoveFile){Jr({message:this.getConfirmRemoveMessage(e.name),funcOnYes:function(){r.clearFilesCore()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.removeFileCore(e)},t.prototype.removeFileCore=function(e){var n=this.previewValue.indexOf(e);this.removeFileByContent(n===-1?e:this.value[n])},t.prototype.dispose=function(){this.cameraValue=void 0,this.closeVideoStream(),i.prototype.dispose.call(this)},Qt([D()],t.prototype,"isDragging",void 0),Qt([be({})],t.prototype,"previewValue",void 0),Qt([be({})],t.prototype,"pages",void 0),Qt([D({defaultValue:0,onSet:function(e,n){n.updateRenderedPages()}})],t.prototype,"indexToShow",void 0),Qt([D({defaultValue:1,onSet:function(e,n){n.updateFileNavigator()}})],t.prototype,"pageSize",void 0),Qt([D({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),Qt([D()],t.prototype,"allowCameraAccess",void 0),Qt([D({onSet:function(e,n){n.isLoadingFromJson||n.updateCurrentMode()}})],t.prototype,"sourceType",void 0),Qt([D()],t.prototype,"canFlipCameraValue",void 0),Qt([D({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),Qt([D({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),Qt([D({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),Qt([D({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),Qt([D({localizable:{defaultStr:"replaceFileCaption"}})],t.prototype,"replaceButtonCaption",void 0),Qt([D({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),Qt([D({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),Qt([D({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),Qt([D({localizable:{defaultStr:"fileOrPhotoPlaceholder"}})],t.prototype,"fileOrPhotoPlaceholder",void 0),Qt([D({localizable:{defaultStr:"photoPlaceholder"}})],t.prototype,"photoPlaceholder",void 0),Qt([D({localizable:{defaultStr:"filePlaceholder"}})],t.prototype,"filePlaceholder",void 0),Qt([D()],t.prototype,"locRenderedPlaceholderValue",void 0),Qt([be()],t.prototype,"_renderedPages",void 0),t}(ha);G.addClass("file",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"showPreview:boolean",default:!0,visible:!1},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0,dependsOn:"showPreview",visibleIf:function(i){return!!i.showPreview}},"imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},{name:"maxSize:number",default:0},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"validators",visible:!1},{name:"needConfirmRemoveFile:boolean"},{name:"sourceType",choices:["file","camera","file-camera"],default:"file",category:"general",visible:!0,visibleIf:function(){return z.supportCreatorV2}},{name:"fileOrPhotoPlaceholder:text",serializationProperty:"locFileOrPhotoPlaceholder",category:"general",visibleIf:function(){return z.supportCreatorV2}},{name:"photoPlaceholder:text",serializationProperty:"locPhotoPlaceholder",category:"general",visibleIf:function(){return z.supportCreatorV2}},{name:"filePlaceholder:text",serializationProperty:"locFilePlaceholder",category:"general",visibleIf:function(){return z.supportCreatorV2}},{name:"allowCameraAccess:switch",category:"general",visible:!1}],function(){return new du("")},"question"),bt.Instance.registerQuestion("file",function(i){return new du(i)});var _l=function(){function i(t,e){this.fileQuestion=t,this.callback=e,this.loaded=[]}return i.prototype.load=function(t){var e=this,n=0;this.loaded=new Array(t.length),t.forEach(function(r,o){e.fileQuestion.survey&&e.fileQuestion.survey.downloadFile(e.fileQuestion,e.fileQuestion.name,r,function(s,c){!e.fileQuestion||!e.callback||(s!=="error"?(e.loaded[o]={content:c,name:r.name,type:r.type},n++,n===t.length&&e.callback(s,e.loaded)):e.callback("error",e.loaded))})})},i.prototype.dispose=function(){this.fileQuestion=void 0,this.callback=void 0},i}(),id=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),hu=function(i){id(t,i);function t(e){var n=i.call(this,e)||this,r=n.createLocalizableString("html",n);return r.onGetTextCallback=function(o){return n.survey&&!n.ignoreHtmlProgressing?n.processHtml(o):o},n}return t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(e){return this.ignoreHtmlProgressing?e:i.prototype.getProcessedText.call(this,e)},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.processHtml(this.html)},enumerable:!1,configurable:!0}),t.prototype.processHtml=function(e){return this.survey?this.survey.processHtml(e,"html-question"):this.html},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return new te().append(this.cssClasses.root).append(this.cssClasses.nested,this.getIsNested()).toString()||void 0},enumerable:!1,configurable:!0}),t}(ds);G.addClass("html",[{name:"html:html",serializationProperty:"locHtml"},{name:"hideNumber",visible:!1},{name:"state",visible:!1},{name:"titleLocation",visible:!1},{name:"descriptionLocation",visible:!1},{name:"errorLocation",visible:!1},{name:"indent",visible:!1},{name:"width",visible:!1}],function(){return new hu("")},"nonvalue"),bt.Instance.registerQuestion("html",function(i){return new hu(i)});var ms=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),wo=function(i){ms(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getDefaultItemComponent=function(){return"survey-radiogroup-item"},t.prototype.getType=function(){return"radiogroup"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton")},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return this.isMouseDown===!0&&!this.isOtherSelected},t.prototype.getConditionJson=function(e,n){e===void 0&&(e=null),n===void 0&&(n=null);var r=i.prototype.getConditionJson.call(this,e,n);return delete r.showClearButton,r},t.prototype.setNewComment=function(e){this.isMouseDown=!0,i.prototype.setNewComment.call(this,e),this.isMouseDown=!1},Object.defineProperty(t.prototype,"showClearButtonInContent",{get:function(){return!this.isDefaultV2Theme&&this.canShowClearButton},enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e){this.isReadOnlyAttr||(this.renderedValue=e.value)},t.prototype.getDefaultTitleActions=function(){var e=this,n=[];if(this.isDefaultV2Theme&&!this.isDesignMode){var r=new pt({locTitleName:"clearCaption",id:"sv-clr-btn-"+this.id,action:function(){e.clearValue(!0)},innerCss:this.cssClasses.clearButton,visible:new Lt(function(){return e.canShowClearButton})});n.push(r)}return n},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"radiogroup"},enumerable:!1,configurable:!0}),t}(Mi);G.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],function(){return new wo("")},"checkboxbase"),bt.Instance.registerQuestion("radiogroup",function(i){var t=new wo(i);return t.choices=bt.DefaultChoices,t});var jl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),An=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ga=function(i){jl(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this)||this;return r.itemValue=e,r.locString=n,r.locText.onStringChanged.add(r.onStringChangedCallback.bind(r)),r.onStringChangedCallback(),r}return t.prototype.onStringChangedCallback=function(){this.text=this.itemValue.text},Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue.getPropertyValue("value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locString||this.itemValue.locText},enumerable:!1,configurable:!0}),An([D({defaultValue:""})],t.prototype,"highlight",void 0),An([D({defaultValue:""})],t.prototype,"text",void 0),An([D()],t.prototype,"style",void 0),t}(Je),gu=function(i){jl(t,i);function t(e,n,r){var o=i.call(this,e,n)||this;return o.description=r,o}return t}(ge),mu=function(i){jl(t,i);function t(e){var n=i.call(this,e)||this;return n._syncPropertiesChanging=!1,n.iCounter=0,n.createItemValues("rateValues"),n.createLocalizableString("ratingOptionsCaption",n,!1,!0),n.registerFunctionOnPropertiesValueChanged(["rateMin","rateMax","minRateDescription","maxRateDescription","rateStep","displayRateDescriptionsAsExtremeItems"],function(){return n.resetRenderedItems()}),n.registerFunctionOnPropertiesValueChanged(["rateType"],function(){n.setIconsToRateValues(),n.resetRenderedItems(),n.updateRateCount()}),n.registerFunctionOnPropertiesValueChanged(["rateValues"],function(){n.setIconsToRateValues(),n.resetRenderedItems()}),n.registerSychProperties(["rateValues"],function(){n.autoGenerate=n.rateValues.length==0,n.setIconsToRateValues(),n.resetRenderedItems()}),n.registerFunctionOnPropertiesValueChanged(["rateColorMode","scaleColorMode"],function(){n.updateColors(n.survey.themeVariables)}),n.registerFunctionOnPropertiesValueChanged(["displayMode"],function(){n.updateRenderAsBasedOnDisplayMode(!0)}),n.registerSychProperties(["autoGenerate"],function(){!n.autoGenerate&&n.rateValues.length===0&&n.setPropertyValue("rateValues",n.visibleRateValues),n.autoGenerate&&(n.rateValues.splice(0,n.rateValues.length),n.updateRateMax()),n.resetRenderedItems()}),n.createLocalizableString("minRateDescription",n,!0).onStringChanged.add(function(r,o){n.hasMinRateDescription=!r.isEmpty}),n.createLocalizableString("maxRateDescription",n,!0).onStringChanged.add(function(r,o){n.hasMaxRateDescription=!r.isEmpty}),n.initPropertyDependencies(),n}return t.prototype.setIconsToRateValues=function(){var e=this;this.rateType=="smileys"&&this.rateValues.map(function(n){return n.icon=e.getItemSmiley(n)})},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.jsonObj.rateMin!==void 0&&this.jsonObj.rateCount!==void 0&&this.jsonObj.rateMax===void 0&&this.updateRateMax(),this.jsonObj.rateMax!==void 0&&this.jsonObj.rateCount!==void 0&&this.jsonObj.rateMin===void 0&&this.updateRateMin(),this.jsonObj.autoGenerate===void 0&&this.jsonObj.rateValues!==void 0&&(this.autoGenerate=!this.jsonObj.rateValues.length),this.updateRateCount(),this.setIconsToRateValues()},t.prototype.registerSychProperties=function(e,n){var r=this;this.registerFunctionOnPropertiesValueChanged(e,function(){r._syncPropertiesChanging||(r._syncPropertiesChanging=!0,n(),r._syncPropertiesChanging=!1)})},t.prototype.useRateValues=function(){return!!this.rateValues.length&&!this.autoGenerate},t.prototype.updateRateMax=function(){this.rateMax=this.rateMin+this.rateStep*(this.rateCount-1)},t.prototype.updateRateMin=function(){this.rateMin=this.rateMax-this.rateStep*(this.rateCount-1)},t.prototype.updateRateCount=function(){var e=0;this.useRateValues()?e=this.rateValues.length:e=Math.trunc((this.rateMax-this.rateMin)/(this.rateStep||1))+1,e>10&&this.rateDisplayMode=="smileys"&&(e=10),this.rateCount=e,this.rateValues.length>e&&this.rateValues.splice(e,this.rateValues.length-e)},t.prototype.initPropertyDependencies=function(){var e=this;this.registerSychProperties(["rateCount"],function(){if(!e.useRateValues())e.rateMax=e.rateMin+e.rateStep*(e.rateCount-1);else if(e.rateCount<e.rateValues.length){if(e.rateCount>=10&&e.rateDisplayMode=="smileys")return;e.rateValues.splice(e.rateCount,e.rateValues.length-e.rateCount)}else for(var n=e.rateValues.length;n<e.rateCount;n++)e.rateValues.push(new ge(ee("choices_Item")+(n+1)))}),this.registerSychProperties(["rateMin","rateMax","rateStep","rateValues"],function(){e.updateRateCount()})},Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.readOnly&&!this.inputHasValue&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this,n;return!this.readOnly&&((n=this.visibleRateValues.filter(function(r){return r.value==e.value})[0])===null||n===void 0?void 0:n.locText)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){this.setPropertyValue("rateMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){this.setPropertyValue("rateMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){this.setPropertyValue("rateStep",e)},enumerable:!1,configurable:!0}),t.prototype.updateColors=function(e){if(this.colorMode==="monochrome"||!M.isAvailable()||t.colorsCalculated)return;function n(o){var s=getComputedStyle(M.getDocumentElement());return s.getPropertyValue&&s.getPropertyValue(o)}function r(o,s){var c=!!e&&e[o];if(c||(c=n(s)),!c)return null;var y=M.createElement("canvas");if(!y)return null;var w=y.getContext("2d");w.fillStyle=c,w.fillStyle=="#000000"&&(w.fillStyle=n(s));var N=w.fillStyle;if(N.startsWith("rgba"))return N.substring(5,N.length-1).split(",").map(function(Y){return+Y.trim()});var Q=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(N);return Q?[parseInt(Q[1],16),parseInt(Q[2],16),parseInt(Q[3],16),1]:null}t.badColor=r("--sjs-special-red","--sd-rating-bad-color"),t.normalColor=r("--sjs-special-yellow","--sd-rating-normal-color"),t.goodColor=r("--sjs-special-green","--sd-rating-good-color"),t.badColorLight=r("--sjs-special-red-light","--sd-rating-bad-color-light"),t.normalColorLight=r("--sjs-special-yellow-light","--sd-rating-normal-color-light"),t.goodColorLight=r("--sjs-special-green-light","--sd-rating-good-color-light"),this.colorsCalculated=!0,this.resetRenderedItems()},t.prototype.getDisplayValueCore=function(e,n){if(!this.useRateValues)return i.prototype.getDisplayValueCore.call(this,e,n);var r=ge.getTextOrHtmlByValue(this.visibleRateValues,n);return r||n},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map(function(e){return e.itemValue})},enumerable:!1,configurable:!0}),t.prototype.supportEmptyValidation=function(){return this.renderAs==="dropdown"},t.prototype.itemValuePropertyChanged=function(e,n,r,o){!this.useRateValues()&&o!==void 0&&(this.autoGenerate=!1),i.prototype.itemValuePropertyChanged.call(this,e,n,r,o)},t.prototype.runConditionCore=function(e,n){i.prototype.runConditionCore.call(this,e,n),this.runRateItesmCondition(e,n)},t.prototype.runRateItesmCondition=function(e,n){var r;if(this.useRateValues()){var o=!1;if(!((r=this.survey)===null||r===void 0)&&r.areInvisibleElementsShowing?this.rateValues.forEach(function(c){o=o||!c.isVisible,c.setIsVisible(c,!0)}):o=ge.runConditionsForItems(this.rateValues,void 0,void 0,e,n,!0),o&&(this.resetRenderedItems(),!this.isEmpty()&&!this.isReadOnly)){var s=ge.getItemByValue(this.rateValues,this.value);s&&!s.isVisible&&this.clearValue()}}},t.prototype.getRateValuesCore=function(){if(!this.useRateValues())return this.createRateValues();var e=new Array;return this.rateValues.forEach(function(n){n.isVisible&&e.push(n)}),e},t.prototype.calculateRateValues=function(){var e=this.getRateValuesCore();return this.rateType=="smileys"&&e.length>10&&(e=e.slice(0,10)),e},t.prototype.calculateRenderedRateItems=function(){var e=this,n=this.calculateRateValues();return n.map(function(r,o){var s=null;return e.displayRateDescriptionsAsExtremeItems&&(o==0&&(s=new ga(r,e.minRateDescription&&e.locMinRateDescription||r.locText)),o==n.length-1&&(s=new ga(r,e.maxRateDescription&&e.locMaxRateDescription||r.locText))),s||(s=new ga(r)),s})},t.prototype.calculateVisibleChoices=function(){var e=this,n=this.calculateRateValues();return n.map(function(r,o){return e.getRatingItemValue(r,o)})},t.prototype.resetRenderedItems=function(){if(this.autoGenerate){var e=this.getRateValuesCore();this.rateMax=e[e.length-1].value}Array.isArray(this.getPropertyValueWithoutDefault("renderedRateItems"))&&this.setArrayPropertyDirectly("renderedRateItems",this.calculateRenderedRateItems()),Array.isArray(this.getPropertyValueWithoutDefault("visibleChoices"))&&this.setArrayPropertyDirectly("visibleChoices",this.calculateVisibleChoices)},Object.defineProperty(t.prototype,"renderedRateItems",{get:function(){var e=this;return this.getPropertyValue("renderedRateItems",void 0,function(){return e.calculateRenderedRateItems()})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){var e=this;return this.getPropertyValue("visibleChoices",void 0,function(){return e.calculateVisibleChoices()})},enumerable:!1,configurable:!0}),t.prototype.createRateValues=function(){for(var e=[],n=this.rateMin,r=this.rateStep;n<=this.rateMax&&e.length<z.ratingMaximumRateValueCount;){var o=new ge(n);o.locOwner=this,o.ownerPropertyName="rateValues",e.push(o),n=this.correctValue(n+r,r)}return e},t.prototype.getRatingItemValue=function(e,n){if(!e)return null;var r=e.value,o;r===this.rateMin&&(o=this.minRateDescription&&this.locMinRateDescription),(r===this.rateMax||n===z.ratingMaximumRateValueCount)&&(o=this.maxRateDescription&&this.locMaxRateDescription);var s=new gu(r,e.text,o);return s.locOwner=e.locOwner,s.ownerPropertyName=e.ownerPropertyName,s},t.prototype.correctValue=function(e,n){if(!e||Math.round(e)==e)return e;for(var r=0;Math.round(n)!=n;)n*=10,r++;return parseFloat(e.toFixed(r))},t.prototype.getType=function(){return"rating"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},t.prototype.getInputId=function(e){return this.inputId+"_"+e},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return this.isMouseDown===!0||this.renderAs==="dropdown"},t.prototype.supportOther=function(){return!1},t.prototype.getPlainDataCalculatedValue=function(e){var n=i.prototype.getPlainDataCalculatedValue.call(this,e);if(n!==void 0||!this.useRateValues||this.isEmpty())return n;var r=ge.getItemByValue(this.visibleRateValues,this.value);return r?r[e]:void 0},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMinLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMinRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMaxLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMaxRateDescription},enumerable:!1,configurable:!0}),t.prototype.updateRenderAsBasedOnDisplayMode=function(e){this.isDesignMode?(e||this.renderAs==="dropdown")&&(this.renderAs="default"):(e||this.displayMode!=="auto")&&(this.renderAs=this.displayMode==="dropdown"?"dropdown":"default")},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.renderAs==="dropdown"&&this.displayMode==="auto"?this.displayMode=this.renderAs:this.updateRenderAsBasedOnDisplayMode()},Object.defineProperty(t.prototype,"rateDisplayMode",{get:function(){return this.rateType},set:function(e){this.rateType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStar",{get:function(){return this.rateType=="stars"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSmiley",{get:function(){return this.rateType=="smileys"},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return this.renderAs=="dropdown"?"sv-rating-dropdown-item":this.isStar?"sv-rating-item-star":this.isSmiley?"sv-rating-item-smiley":"sv-rating-item"},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),t.prototype.valueToData=function(e){if(this.useRateValues()){var n=ge.getItemByValue(this.rateValues,e);return n?n.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){if(!this.isReadOnlyAttr){this.value===(typeof this.value=="string"?e:parseFloat(e))?this.clearValue(!0):this.value=e;for(var n=0;n<this.renderedRateItems.length;n++)this.renderedRateItems[n].highlight="none"}},t.prototype.onItemMouseIn=function(e){if(!qt&&!(this.isReadOnly||!e.itemValue.isEnabled||this.isDesignMode)){var n=!0,r=this.value!=null;if(this.rateType!=="stars"){e.highlight="highlighted";return}for(var o=0;o<this.renderedRateItems.length;o++)this.renderedRateItems[o].highlight=n&&!r&&"highlighted"||!n&&r&&"unhighlighted"||"none",this.renderedRateItems[o]==e&&(n=!1),this.renderedRateItems[o].itemValue.value==this.value&&(r=!1)}},t.prototype.onItemMouseOut=function(e){qt||this.renderedRateItems.forEach(function(n){return n.highlight="none"})},Object.defineProperty(t.prototype,"itemSmallMode",{get:function(){return this.inMatrixMode&&z.matrix.rateSize=="small"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ratingRootCss",{get:function(){var e=(this.displayMode=="buttons"||this.survey&&this.survey.isDesignMode)&&this.cssClasses.rootWrappable?this.cssClasses.rootWrappable:"",n="";return(this.hasMaxLabel||this.hasMinLabel)&&(this.rateDescriptionLocation=="top"&&(n=this.cssClasses.rootLabelsTop),this.rateDescriptionLocation=="bottom"&&(n=this.cssClasses.rootLabelsBottom),this.rateDescriptionLocation=="topBottom"&&(n=this.cssClasses.rootLabelsDiagonal)),new te().append(this.cssClasses.root).append(e).append(n).append(this.cssClasses.itemSmall,this.itemSmallMode&&this.rateType!="labels").toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIcon",{get:function(){return this.itemSmallMode?"icon-rating-star-small":"icon-rating-star"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIconAlt",{get:function(){return this.itemStarIcon+"-2"},enumerable:!1,configurable:!0}),t.prototype.getItemSmiley=function(e){var n=["terrible","very-poor","poor","not-good","average","normal","good","very-good","excellent","perfect"],r=["very-good","not-good","normal","good","average","excellent","poor","perfect","very-poor","terrible"],o=this.useRateValues()?this.rateValues.length:this.rateMax-this.rateMin+1,s=r.slice(0,o),c=n.filter(function(y){return s.indexOf(y)!=-1});return this.useRateValues()?c[this.rateValues.indexOf(e)]:c[e.value-this.rateMin]},t.prototype.getItemSmileyIconName=function(e){return"icon-"+this.getItemSmiley(e)},t.prototype.getItemClassByText=function(e,n){return this.getItemClass(e)},t.prototype.getRenderedItemColor=function(e,n){var r=n?t.badColorLight:t.badColor,o=n?t.goodColorLight:t.goodColor,s=(this.rateCount-1)/2,c=n?t.normalColorLight:t.normalColor;if(e<s?o=c:(r=c,e-=s),!r||!o)return null;for(var y=[0,0,0,0],w=0;w<4;w++)y[w]=r[w]+(o[w]-r[w])*e/s,w<3&&(y[w]=Math.trunc(y[w]));return"rgba("+y[0]+", "+y[1]+", "+y[2]+", "+y[3]+")"},t.prototype.getItemStyle=function(e,n){if(n===void 0&&(n="none"),this.scaleColorMode==="monochrome"&&this.rateColorMode=="default"||this.isPreviewStyle||this.isReadOnlyStyle)return{};var r=this.visibleRateValues.indexOf(e),o=this.getRenderedItemColor(r,!1),s=n=="highlighted"&&this.scaleColorMode==="colored"&&this.getRenderedItemColor(r,!0);return s?{"--sd-rating-item-color":o,"--sd-rating-item-color-light":s}:{"--sd-rating-item-color":o}},t.prototype.getItemClass=function(e,n){var r=this,o=this.value==e.value;this.isStar&&(this.useRateValues()?o=this.rateValues.indexOf(this.rateValues.filter(function(xo){return xo.value==r.value})[0])>=this.rateValues.indexOf(e):o=this.value>=e.value);var s=this.isReadOnly||!e.isEnabled,c=!s&&this.value!=e.value&&!(this.survey&&this.survey.isDesignMode),y=this.renderedRateItems.filter(function(xo){return xo.itemValue==e})[0],w=this.isStar&&(y==null?void 0:y.highlight)=="highlighted",N=this.isStar&&(y==null?void 0:y.highlight)=="unhighlighted",Q=this.cssClasses.item,Y=this.cssClasses.selected,ce=this.cssClasses.itemDisabled,fe=this.cssClasses.itemReadOnly,Oe=this.cssClasses.itemPreview,Ee=this.cssClasses.itemHover,me=this.cssClasses.itemOnError,ze=null,Wt=null,Zt=null,sr=null,wr=null;this.isStar&&(Q=this.cssClasses.itemStar,Y=this.cssClasses.itemStarSelected,ce=this.cssClasses.itemStarDisabled,fe=this.cssClasses.itemStarReadOnly,Oe=this.cssClasses.itemStarPreview,Ee=this.cssClasses.itemStarHover,me=this.cssClasses.itemStarOnError,ze=this.cssClasses.itemStarHighlighted,Wt=this.cssClasses.itemStarUnhighlighted,wr=this.cssClasses.itemStarSmall),this.isSmiley&&(Q=this.cssClasses.itemSmiley,Y=this.cssClasses.itemSmileySelected,ce=this.cssClasses.itemSmileyDisabled,fe=this.cssClasses.itemSmileyReadOnly,Oe=this.cssClasses.itemSmileyPreview,Ee=this.cssClasses.itemSmileyHover,me=this.cssClasses.itemSmileyOnError,ze=this.cssClasses.itemSmileyHighlighted,Zt=this.cssClasses.itemSmileyScaleColored,sr=this.cssClasses.itemSmileyRateColored,wr=this.cssClasses.itemSmileySmall);var xs=!this.isStar&&!this.isSmiley&&(!this.displayRateDescriptionsAsExtremeItems||this.useRateValues()&&e!=this.rateValues[0]&&e!=this.rateValues[this.rateValues.length-1]||!this.useRateValues()&&e.value!=this.rateMin&&e.value!=this.rateMax)&&e.locText.calculatedText.length<=2&&Number.isInteger(Number(e.locText.calculatedText));return new te().append(Q).append(Y,o).append(ce,this.isDisabledStyle).append(fe,this.isReadOnlyStyle).append(Oe,this.isPreviewStyle).append(Ee,c).append(ze,w).append(Zt,this.scaleColorMode=="colored").append(sr,this.rateColorMode=="scale"&&o).append(Wt,N).append(me,this.hasCssError()).append(wr,this.itemSmallMode).append(this.cssClasses.itemFixedSize,xs).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),new te().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("ratingOptionsCaption")},set:function(e){this.setLocalizableStringText("ratingOptionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("ratingOptionsCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchEnabled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){return e.value==this.value},Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.readOnly?this.displayValue||this.placeholder:this.isEmpty()?this.placeholder:""},enumerable:!1,configurable:!0}),t.prototype.needResponsiveWidth=function(){this.getPropertyValue("rateValues");var e=this.getPropertyValue("rateStep"),n=this.getPropertyValue("rateMax"),r=this.getPropertyValue("rateMin");return this.displayMode!="dropdown"&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(n-r)/e>9)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.onBeforeSetCompactRenderer=function(){this.dropdownListModelValue||(this.dropdownListModelValue=new ji(this),this.ariaExpanded="false")},t.prototype.getCompactRenderAs=function(){return this.displayMode=="buttons"?"default":"dropdown"},t.prototype.getDesktopRenderAs=function(){return this.displayMode=="dropdown"?"dropdown":"default"},Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.renderAs==="dropdown"&&this.onBeforeSetCompactRenderer(),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e,this.ariaExpanded=e?"false":void 0,this.updateElementCss()},enumerable:!1,configurable:!0}),t.prototype.onBlurCore=function(e){var n;(n=this.dropdownListModel)===null||n===void 0||n.onBlur(e),i.prototype.onBlurCore.call(this,e)},t.prototype.updateCssClasses=function(e,n){i.prototype.updateCssClasses.call(this,e,n),ao(e,n)},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e);return this.dropdownListModelValue&&this.dropdownListModelValue.updateCssClasses(n.popup,n.list),n},t.prototype.themeChanged=function(e){this.colorsCalculated=!1,this.updateColors(e.cssVariables)},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.survey&&(this.updateColors(this.survey.themeVariables),this.updateRenderAsBasedOnDisplayMode())},t.prototype.dispose=function(){i.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},t.colorsCalculated=!1,An([D({defaultValue:!1})],t.prototype,"inputHasValue",void 0),An([D()],t.prototype,"autoGenerate",void 0),An([D()],t.prototype,"rateCount",void 0),An([D({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),An([D({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),An([D()],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),An([D()],t.prototype,"displayMode",void 0),An([D()],t.prototype,"rateDescriptionLocation",void 0),An([D()],t.prototype,"rateType",void 0),An([D()],t.prototype,"scaleColorMode",void 0),An([D()],t.prototype,"rateColorMode",void 0),t}(K);G.addClass("rating",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"rateType",alternativeName:"rateDisplayMode",default:"labels",category:"rateValues",choices:["labels","stars","smileys"],visibleIndex:1},{name:"scaleColorMode",category:"rateValues",default:"monochrome",choices:["monochrome","colored"],visibleIf:function(i){return i.rateDisplayMode=="smileys"},visibleIndex:2},{name:"rateColorMode",category:"rateValues",default:"scale",choices:["default","scale"],visibleIf:function(i){return i.rateDisplayMode=="smileys"&&i.scaleColorMode=="monochrome"},visibleIndex:3},{name:"autoGenerate",category:"rateValues",default:!0,choices:[!0,!1],visibleIndex:5},{name:"rateCount:number",default:5,category:"rateValues",visibleIndex:4,onSettingValue:function(i,t){return t<2?2:t>z.ratingMaximumRateValueCount&&t>i.rateValues.length?z.ratingMaximumRateValueCount:t>10&&i.rateDisplayMode=="smileys"?10:t}},{name:"rateValues:itemvalue[]",baseValue:function(){return ee("choices_Item")},category:"rateValues",visibleIf:function(i){return!i.autoGenerate},visibleIndex:6},{name:"rateMin:number",default:1,onSettingValue:function(i,t){return t>i.rateMax-i.rateStep?i.rateMax-i.rateStep:t},visibleIf:function(i){return!!i.autoGenerate},visibleIndex:7},{name:"rateMax:number",default:5,onSettingValue:function(i,t){return t<i.rateMin+i.rateStep?i.rateMin+i.rateStep:t},visibleIf:function(i){return!!i.autoGenerate},visibleIndex:8},{name:"rateStep:number",default:1,minValue:.1,onSettingValue:function(i,t){return t<=0&&(t=1),t>i.rateMax-i.rateMin&&(t=i.rateMax-i.rateMin),t},visibleIf:function(i){return!!i.autoGenerate},visibleIndex:9},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription",visibleIndex:18},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription",visibleIndex:19},{name:"displayRateDescriptionsAsExtremeItems:boolean",default:!1,visibleIndex:21,visibleIf:function(i){return i.rateType=="labels"}},{name:"rateDescriptionLocation",default:"leftRight",choices:["leftRight","top","bottom","topBottom"],visibleIndex:20},{name:"displayMode",default:"auto",choices:["auto","buttons","dropdown"],visibleIndex:0},{name:"itemComponent",visible:!1,defaultFunc:function(i){return i?(i.getOriginalObj&&(i=i.getOriginalObj()),i.getDefaultItemComponent()):"sv-rating-item"}}],function(){return new mu("")},"question"),bt.Instance.registerQuestion("rating",function(i){return new mu(i)});var yu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Bi=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ys=function(i){yu(t,i);function t(e){var n=i.call(this,e)||this;return n.createLocalizableString("labelFalse",n,!0,"booleanUncheckedLabel"),n.createLocalizableString("labelTrue",n,!0,"booleanCheckedLabel"),n}return t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return this.renderAs!=="checkbox"},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"booleanValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isReadOnly||this.isDesignMode||this.setBooleanValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.booleanValue},set:function(e){this.booleanValue=e},enumerable:!1,configurable:!0}),t.prototype.setBooleanValue=function(e){this.isValueEmpty(e)?(this.value=void 0,this.booleanValueRendered=void 0):(this.value=e==!0?this.getValueTrue():this.getValueFalse(),this.booleanValueRendered=e)},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){e===!0&&(e="true"),e===!1&&(e="false"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){var e=this.defaultValue;if(!(e==="indeterminate"||e===void 0||e===null))return e=="true"?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"locTitle",{get:function(){var e=this.getLocalizableString("title");return!this.isValueEmpty(this.locLabel.text)&&(this.isValueEmpty(e.text)||this.isLabelRendered&&!this.showTitle)?this.locLabel:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelRenderedAriaID",{get:function(){return this.isLabelRendered?this.ariaTitleId:null},enumerable:!1,configurable:!0}),t.prototype.beforeDestroyQuestionElement=function(e){i.prototype.beforeDestroyQuestionElement.call(this,e),this.leftAnswerElement=void 0},Object.defineProperty(t.prototype,"isLabelRendered",{get:function(){return this.titleLocation==="hidden"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRenderLabelDescription",{get:function(){return this.isLabelRendered&&this.hasDescription&&(this.hasDescriptionUnderTitle||this.hasDescriptionUnderInput)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDeterminated",{get:function(){return this.booleanValue!==null&&this.booleanValue!==void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelLeft",{get:function(){return this.swapOrder?this.getLocalizableString("labelTrue"):this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelRight",{get:function(){return this.swapOrder?this.getLocalizableString("labelFalse"):this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),t.prototype.getValueTrue=function(){return this.valueTrue!==void 0?this.valueTrue:!0},t.prototype.getValueFalse=function(){return this.valueFalse!==void 0?this.valueFalse:!1},t.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1);var e=this.defaultValue;(e==="indeterminate"||e===null||e===void 0)&&this.setBooleanValue(void 0)},t.prototype.isDefaultValueSet=function(e,n){return this.defaultValue==e||n!==void 0&&this.defaultValue===n},t.prototype.getDisplayValueCore=function(e,n){return n==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCssValue=function(e){return new te().append(e.item).append(e.itemOnError,this.hasCssError()).append(e.itemDisabled,this.isDisabledStyle).append(e.itemReadOnly,this.isReadOnlyStyle).append(e.itemPreview,this.isPreviewStyle).append(e.itemHover,!this.isDesignMode).append(e.itemChecked,!!this.booleanValue).append(e.itemExchanged,!!this.swapOrder).append(e.itemIndeterminate,!this.isDeterminated).toString()},t.prototype.getItemCss=function(){return this.getItemCssValue(this.cssClasses)},t.prototype.getCheckboxItemCss=function(){return this.getItemCssValue({item:this.cssClasses.checkboxItem,itemOnError:this.cssClasses.checkboxItemOnError,itemDisabled:this.cssClasses.checkboxItemDisabled,itemDisable:this.cssClasses.checkboxItemDisabled,itemReadOnly:this.cssClasses.checkboxItemReadOnly,itemPreview:this.cssClasses.checkboxItemPreview,itemChecked:this.cssClasses.checkboxItemChecked,itemIndeterminate:this.cssClasses.checkboxItemIndeterminate})},t.prototype.getLabelCss=function(e){return new te().append(this.cssClasses.label).append(this.cssClasses.disabledLabel,this.booleanValue===!e||this.isDisabledStyle).append(this.cssClasses.labelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.labelPreview,this.isPreviewStyle).append(this.cssClasses.labelTrue,!this.isIndeterminate&&e===!this.swapOrder).append(this.cssClasses.labelFalse,!this.isIndeterminate&&e===this.swapOrder).toString()},t.prototype.updateValueFromSurvey=function(e,n){n===void 0&&(n=!1),i.prototype.updateValueFromSurvey.call(this,e,n)},t.prototype.onValueChanged=function(){i.prototype.onValueChanged.call(this)},Object.defineProperty(t.prototype,"svgIcon",{get:function(){return this.booleanValue&&this.cssClasses.svgIconCheckedId?this.cssClasses.svgIconCheckedId:!this.isDeterminated&&this.cssClasses.svgIconIndId?this.cssClasses.svgIconIndId:!this.booleanValue&&this.cssClasses.svgIconUncheckedId?this.cssClasses.svgIconUncheckedId:this.cssClasses.svgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClick",{get:function(){return this.isIndeterminate&&!this.isInputReadOnly},enumerable:!1,configurable:!0}),t.prototype.getCheckedLabel=function(){if(this.booleanValue===!0)return this.locLabelTrue;if(this.booleanValue===!1)return this.locLabelFalse},t.prototype.setQuestionValue=function(e,n){n===void 0&&(n=!0),e==="true"&&this.valueTrue!=="true"&&(e=!0),e==="false"&&this.valueFalse!=="false"&&(e=!1),(e==="indeterminate"||e===null)&&(e=void 0),i.prototype.setQuestionValue.call(this,e,n)},t.prototype.onLabelClick=function(e,n){return this.allowClick&&(jt(e),this.booleanValue=n),!0},t.prototype.calculateBooleanValueByEvent=function(e,n){var r=!1;M.isAvailable()&&(r=M.getComputedStyle(e.target).direction=="rtl"),this.booleanValue=r?!n:n},t.prototype.onSwitchClickModel=function(e){if(this.allowClick){jt(e);var n=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,n);return}return!0},t.prototype.onKeyDownCore=function(e){return(e.key==="ArrowLeft"||e.key==="ArrowRight")&&(e.stopPropagation(),this.calculateBooleanValueByEvent(e,e.key==="ArrowRight")),!0},t.prototype.getRadioItemClass=function(e,n){var r=void 0;return e.radioItem&&(r=e.radioItem),e.radioItemChecked&&n===this.booleanValue&&(r=(r?r+" ":"")+e.radioItemChecked),this.isDisabledStyle&&(r+=" "+e.radioItemDisabled),this.isReadOnlyStyle&&(r+=" "+e.radioItemReadOnly),this.isPreviewStyle&&(r+=" "+e.radioItemPreview),r},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"radio"},t.prototype.createActionContainer=function(e){return i.prototype.createActionContainer.call(this,this.renderAs!=="checkbox")},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"switch"},enumerable:!1,configurable:!0}),Bi([D()],t.prototype,"booleanValueRendered",void 0),Bi([D()],t.prototype,"showTitle",void 0),Bi([D({localizable:!0})],t.prototype,"label",void 0),Bi([D({defaultValue:!1})],t.prototype,"swapOrder",void 0),Bi([D()],t.prototype,"valueTrue",void 0),Bi([D()],t.prototype,"valueFalse",void 0),t}(K);G.addClass("boolean",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"label:text",serializationProperty:"locLabel",isSerializable:!1,visible:!1},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"valueTrue","valueFalse",{name:"swapOrder:boolean",category:"general"},{name:"renderAs",default:"default",visible:!1}],function(){return new ys("")},"question"),bt.Instance.registerQuestion("boolean",function(i){return new ys(i)});var rf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),vr=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ma=function(i){rf(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="imageitemvalue");var o=i.call(this,e,n,r)||this;return o.typeName=r,o.createLocalizableString("imageLink",o,!1),o}return t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e),this.imageNotLoaded=!1,this.videoNotLoaded=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,n){return this.locOwner?this.locOwner.getMarkdownHtml(e,n):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},Object.defineProperty(t.prototype,"contentNotLoaded",{get:function(){return this.locOwner instanceof vs&&this.locOwner.contentMode=="video"?this.videoNotLoaded:this.imageNotLoaded},set:function(e){this.locOwner instanceof vs&&this.locOwner.contentMode=="video"?this.videoNotLoaded=e:this.imageNotLoaded=e},enumerable:!1,configurable:!0}),vr([D({defaultValue:!1})],t.prototype,"videoNotLoaded",void 0),vr([D({defaultValue:!1})],t.prototype,"imageNotLoaded",void 0),t}(ge),vs=function(i){rf(t,i);function t(e){var n=i.call(this,e)||this;return n.isResponsiveValue=!1,n.onContentLoaded=function(r,o){r.contentNotLoaded=!1;var s=o.target;n.contentMode=="video"?r.aspectRatio=s.videoWidth/s.videoHeight:r.aspectRatio=s.naturalWidth/s.naturalHeight,n._width&&n.processResponsiveness(0,n._width)},n.colCount=0,n.registerPropertyChangedHandlers(["minImageWidth","maxImageWidth","minImageHeight","maxImageHeight","visibleChoices","colCount","isResponsiveValue"],function(){n._width&&n.processResponsiveness(0,n._width)}),n.registerPropertyChangedHandlers(["imageWidth","imageHeight"],function(){n.calcIsResponsive()}),n.calcIsResponsive(),n}return t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!this.multiSelect},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.supportRefuse=function(){return!1},t.prototype.supportDontKnow=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.multiSelect?m.isArrayContainsEqual(this.value,this.correctAnswer):i.prototype.isAnswerCorrect.call(this)},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect")},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){var n=this.value,r=e;if(this.isValueEmpty(n)||!r.imageLink||r.contentNotLoaded)return!1;if(!this.multiSelect)return this.isTwoValueEquals(n,e.value);if(!Array.isArray(n))return!1;for(var o=0;o<n.length;o++)if(this.isTwoValueEquals(n[o],e.value))return!0;return!1},t.prototype.getItemEnabled=function(e){var n=e;return!n.imageLink||n.contentNotLoaded?!1:i.prototype.getItemEnabled.call(this,e)},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var e=this.value;if(!e)return;if(!Array.isArray(e)||e.length==0){this.clearValue(!0);return}for(var n=[],r=0;r<e.length;r++)this.hasUnknownValue(e[r],!0)||n.push(e[r]);if(n.length==e.length)return;n.length==0?this.clearValue(!0):this.value=n}else i.prototype.clearIncorrectValues.call(this)},t.prototype.getDisplayValueCore=function(e,n){return!this.multiSelect&&!Array.isArray(n)?i.prototype.getDisplayValueCore.call(this,e,n):this.getDisplayArrayValue(e,n)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel")},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value")),this.calcIsResponsive()},t.prototype.getValueCore=function(){var e=i.prototype.getValueCore.call(this);return e!==void 0?e:this.multiSelect?[]:e},t.prototype.convertValToArrayForMultSelect=function(e){return!this.multiSelect||this.isValueEmpty(e)||Array.isArray(e)?e:[e]},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageScale",{get:function(){return this.survey?this.survey.widthScale/100:1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageHeight",{get:function(){var e=this.isResponsive?Math.floor(this.responsiveImageHeight):this.imageHeight*this.imageScale;return e||150*this.imageScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageWidth",{get:function(){var e=this.isResponsive?Math.floor(this.responsiveImageWidth):this.imageWidth*this.imageScale;return e||200*this.imageScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),e==="video"&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.multiSelect?"checkbox":"radio"},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e){return!1},t.prototype.addToVisibleChoices=function(e,n){this.addNewItemToVisibleChoices(e,n)},t.prototype.getSelectBaseRootCss=function(){return new te().append(i.prototype.getSelectBaseRootCss.call(this)).append(this.cssClasses.rootColumn,this.getCurrentColCount()==1).toString()},Object.defineProperty(t.prototype,"isResponsive",{get:function(){return this.isResponsiveValue&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exactSizesAreEmpty",{get:function(){var e=this;return!["imageHeight","imageWidth"].some(function(n){return e[n]!==void 0&&e[n]!==null})},enumerable:!1,configurable:!0}),t.prototype.calcIsResponsive=function(){this.isResponsiveValue=this.exactSizesAreEmpty},t.prototype.getObservedElementSelector=function(){return kt(this.cssClasses.root)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.needResponsiveWidth=function(){return this.colCount>2},t.prototype.getCurrentColCount=function(){return this.responsiveColCount===void 0||this.colCount===0?this.colCount:this.responsiveColCount},t.prototype.processResponsiveness=function(e,n){this._width=n=Math.floor(n);var r=function(ze,Wt,Zt){var sr=Math.floor(ze/(Wt+Zt));return(sr+1)*(Wt+Zt)-Zt<=ze&&sr++,sr};if(this.isResponsive){var o=this.choices.length+(this.isDesignMode?1:0),s=(this.gapBetweenItems||0)*this.imageScale,c=this.minImageWidth*this.imageScale,y=this.maxImageWidth*this.imageScale,w=this.maxImageHeight*this.imageScale,N=this.minImageHeight*this.imageScale,Q=this.colCount,Y;if(Q===0)if((s+c)*o-s>n){var ce=r(n,c,s);Y=Math.floor((n-s*(ce-1))/ce)}else Y=Math.floor((n-s*(o-1))/o);else{var fe=r(n,c,s);fe<Q?(this.responsiveColCount=fe>=1?fe:1,Q=this.responsiveColCount):this.responsiveColCount=Q,Y=Math.floor((n-s*(Q-1))/Q)}Y=Math.max(c,Math.min(Y,y));var Oe=Number.MIN_VALUE;this.choices.forEach(function(ze){var Wt=Y/ze.aspectRatio;Oe=Wt>Oe?Wt:Oe}),Oe>w?Oe=w:Oe<N&&(Oe=N);var Ee=this.responsiveImageWidth,me=this.responsiveImageHeight;return this.responsiveImageWidth=Y,this.responsiveImageHeight=Oe,Ee!==this.responsiveImageWidth||me!==this.responsiveImageHeight}return!1},t.prototype.triggerResponsiveness=function(e){e===void 0&&(e=!0),e&&this.reCalcGapBetweenItemsCallback&&this.reCalcGapBetweenItemsCallback(),i.prototype.triggerResponsiveness.call(this,e)},t.prototype.afterRender=function(e){var n=this;i.prototype.afterRender.call(this,e);var r=this.getObservedElementSelector(),o=e&&r?e.querySelector(r):void 0;o&&(this.reCalcGapBetweenItemsCallback=function(){n.gapBetweenItems=Math.ceil(Number.parseFloat(M.getComputedStyle(o).gap))||16},this.reCalcGapBetweenItemsCallback())},vr([D({})],t.prototype,"responsiveImageHeight",void 0),vr([D({})],t.prototype,"responsiveImageWidth",void 0),vr([D({})],t.prototype,"isResponsiveValue",void 0),vr([D({})],t.prototype,"maxImageWidth",void 0),vr([D({})],t.prototype,"minImageWidth",void 0),vr([D({})],t.prototype,"maxImageHeight",void 0),vr([D({})],t.prototype,"minImageHeight",void 0),vr([D({})],t.prototype,"responsiveColCount",void 0),t}(Mi);G.addClass("imageitemvalue",[{name:"imageLink:file",serializationProperty:"locImageLink"}],function(i){return new ma(i)},"itemvalue"),G.addClass("responsiveImageSize",[],void 0,"number"),G.addClass("imagepicker",[{name:"showOtherItem",visible:!1},{name:"otherText",visible:!1},{name:"showNoneItem",visible:!1},{name:"showRefuseItem",visible:!1},{name:"showDontKnowItem",visible:!1},{name:"noneText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",minValue:0},{name:"imageWidth:number",minValue:0},{name:"minImageWidth:responsiveImageSize",default:200,minValue:0,visibleIf:function(){return z.supportCreatorV2}},{name:"minImageHeight:responsiveImageSize",default:133,minValue:0,visibleIf:function(){return z.supportCreatorV2}},{name:"maxImageWidth:responsiveImageSize",default:400,minValue:0,visibleIf:function(){return z.supportCreatorV2}},{name:"maxImageHeight:responsiveImageSize",default:266,minValue:0,visibleIf:function(){return z.supportCreatorV2}}],function(){return new vs("")},"checkboxbase"),G.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),G.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),G.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),G.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),bt.Instance.registerQuestion("imagepicker",function(i){var t=new vs(i);return t});var Nl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),od=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ql=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],ci="https://www.youtube.com/",Bl="embed",vu=function(i){Nl(t,i);function t(e){var n=i.call(this,e)||this,r=n.createLocalizableString("imageLink",n,!1);return r.onGetTextCallback=function(o){return sd(o,n.contentMode=="youtube")},n.createLocalizableString("altText",n,!1),n.registerPropertyChangedHandlers(["contentMode","imageLink"],function(){return n.calculateRenderedMode()}),n}return t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.calculateRenderedMode()},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"altText",{get:function(){return this.getLocalizableStringText("altText")},set:function(e){this.setLocalizableStringText("altText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAltText",{get:function(){return this.getLocalizableString("altText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleHeight",{get:function(){return this.imageHeight?Zo(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?Ut(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleWidth",{get:function(){return this.imageWidth?Zo(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?Ut(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),e==="video"&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMode",{get:function(){return this.getPropertyValue("renderedMode","image")},enumerable:!1,configurable:!0}),t.prototype.getImageCss=function(){var e=this.getPropertyByName("imageHeight"),n=this.getPropertyByName("imageWidth"),r=e.isDefaultValue(this.imageHeight)&&n.isDefaultValue(this.imageWidth);return new te().append(this.cssClasses.image).append(this.cssClasses.adaptive,r).toString()},t.prototype.onLoadHandler=function(){this.contentNotLoaded=!1},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},t.prototype.setRenderedMode=function(e){this.setPropertyValue("renderedMode",e)},t.prototype.calculateRenderedMode=function(){this.contentMode!=="auto"?this.setRenderedMode(this.contentMode):this.isYoutubeVideo()?this.setRenderedMode("youtube"):this.isVideo()?this.setRenderedMode("video"):this.setRenderedMode("image")},t.prototype.isYoutubeVideo=function(){return m.isUrlYoutubeVideo(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var n=0;n<ql.length;n++)if(e.endsWith(ql[n]))return!0;return!1},od([D({defaultValue:!1})],t.prototype,"contentNotLoaded",void 0),t}(ds);function sd(i,t){if(!i||!m.isUrlYoutubeVideo(i))return t?"":i;var e=i.toLocaleLowerCase();if(e.indexOf(Bl)>-1)return i;for(var n="",r=i.length-1;r>=0&&!(i[r]==="="||i[r]==="/");r--)n=i[r]+n;return ci+Bl+"/"+n}G.addClass("image",[{name:"imageLink:file",serializationProperty:"locImageLink"},{name:"altText",serializationProperty:"locAltText",alternativeName:"text",category:"general"},{name:"contentMode",default:"auto",choices:["auto","image","video","youtube"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight",default:"150"},{name:"imageWidth",default:"200"}],function(){return new vu("")},"nonvalue"),bt.Instance.registerQuestion("image",function(i){return new vu(i)});/*!
- * Signature Pad v4.2.0 | https://github.com/szimek/signature_pad
- * (c) 2024 Szymon Nowak | Released under the MIT license
- */class ya{constructor(t,e,n,r){if(isNaN(t)||isNaN(e))throw new Error(`Point is invalid: (${t}, ${e})`);this.x=+t,this.y=+e,this.pressure=n||0,this.time=r||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}class Fl{static fromPoints(t,e){const n=this.calculateControlPoints(t[0],t[1],t[2]).c2,r=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new Fl(t[1],n,r,t[2],e.start,e.end)}static calculateControlPoints(t,e,n){const r=t.x-e.x,o=t.y-e.y,s=e.x-n.x,c=e.y-n.y,y={x:(t.x+e.x)/2,y:(t.y+e.y)/2},w={x:(e.x+n.x)/2,y:(e.y+n.y)/2},N=Math.sqrt(r*r+o*o),Q=Math.sqrt(s*s+c*c),Y=y.x-w.x,ce=y.y-w.y,fe=Q/(N+Q),Oe={x:w.x+Y*fe,y:w.y+ce*fe},Ee=e.x-Oe.x,me=e.y-Oe.y;return{c1:new ya(y.x+Ee,y.y+me),c2:new ya(w.x+Ee,w.y+me)}}constructor(t,e,n,r,o,s){this.startPoint=t,this.control2=e,this.control1=n,this.endPoint=r,this.startWidth=o,this.endWidth=s}length(){let e=0,n,r;for(let o=0;o<=10;o+=1){const s=o/10,c=this.point(s,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),y=this.point(s,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const w=c-n,N=y-r;e+=Math.sqrt(w*w+N*N)}n=c,r=y}return e}point(t,e,n,r,o){return e*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*r*(1-t)*t*t+o*t*t*t}}class ad{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(t,e,n){this._et.addEventListener(t,e,n)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,e,n){this._et.removeEventListener(t,e,n)}}function fi(i,t=250){let e=0,n=null,r,o,s;const c=()=>{e=Date.now(),n=null,r=i.apply(o,s),n||(o=null,s=[])};return function(...w){const N=Date.now(),Q=t-(N-e);return o=this,s=w,Q<=0||Q>t?(n&&(clearTimeout(n),n=null),e=N,r=i.apply(o,s),n||(o=null,s=[])):n||(n=window.setTimeout(c,Q)),r}}class bs extends ad{constructor(t,e={}){super(),this.canvas=t,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=n=>{n.buttons===1&&this._strokeBegin(n)},this._handleMouseMove=n=>{this._strokeMoveUpdate(n)},this._handleMouseUp=n=>{n.buttons===1&&this._strokeEnd(n)},this._handleTouchStart=n=>{if(n.cancelable&&n.preventDefault(),n.targetTouches.length===1){const r=n.changedTouches[0];this._strokeBegin(r)}},this._handleTouchMove=n=>{n.cancelable&&n.preventDefault();const r=n.targetTouches[0];this._strokeMoveUpdate(r)},this._handleTouchEnd=n=>{if(n.target===this.canvas){n.cancelable&&n.preventDefault();const o=n.changedTouches[0];this._strokeEnd(o)}},this._handlePointerStart=n=>{n.preventDefault(),this._strokeBegin(n)},this._handlePointerMove=n=>{this._strokeMoveUpdate(n)},this._handlePointerEnd=n=>{this._drawingStroke&&(n.preventDefault(),this._strokeEnd(n))},this.velocityFilterWeight=e.velocityFilterWeight||.7,this.minWidth=e.minWidth||.5,this.maxWidth=e.maxWidth||2.5,this.throttle="throttle"in e?e.throttle:16,this.minDistance="minDistance"in e?e.minDistance:5,this.dotSize=e.dotSize||0,this.penColor=e.penColor||"black",this.backgroundColor=e.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=e.compositeOperation||"source-over",this.canvasContextOptions="canvasContextOptions"in e?e.canvasContextOptions:{},this._strokeMoveUpdate=this.throttle?fi(bs.prototype._strokeUpdate,this.throttle):bs.prototype._strokeUpdate,this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:t,canvas:e}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(t,e={}){return new Promise((n,r)=>{const o=new Image,s=e.ratio||window.devicePixelRatio||1,c=e.width||this.canvas.width/s,y=e.height||this.canvas.height/s,w=e.xOffset||0,N=e.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,w,N,c,y),n()},o.onerror=Q=>{r(Q)},o.crossOrigin="anonymous",o.src=t,this._isEmpty=!1})}toDataURL(t="image/png",e){switch(t){case"image/svg+xml":return typeof e!="object"&&(e=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(e))}`;default:return typeof e!="number"&&(e=void 0),this.canvas.toDataURL(t,e)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(t,{clear:e=!0}={}){e&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;this._drawingStroke=!0;const n=this._getPointGroupOptions(),r=Object.assign(Object.assign({},n),{points:[]});this._data.push(r),this._reset(n),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const e=t.clientX,n=t.clientY,r=t.pressure!==void 0?t.pressure:t.force!==void 0?t.force:0,o=this._createPoint(e,n,r),s=this._data[this._data.length-1],c=s.points,y=c.length>0&&c[c.length-1],w=y?o.distanceTo(y)<=this.minDistance:!1,N=this._getPointGroupOptions(s);if(!y||!(y&&w)){const Q=this._addPoint(o,N);y?Q&&this._drawCurve(Q,N):this._drawDot(o,N),c.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t){this._drawingStroke&&(this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,e,n){const r=this.canvas.getBoundingClientRect();return new ya(t-r.left,e-r.top,n,new Date().getTime())}_addPoint(t,e){const{_lastPoints:n}=this;if(n.push(t),n.length>2){n.length===3&&n.unshift(n[0]);const r=this._calculateCurveWidths(n[1],n[2],e),o=Fl.fromPoints(n,r);return n.shift(),o}return null}_calculateCurveWidths(t,e,n){const r=n.velocityFilterWeight*e.velocityFrom(t)+(1-n.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(r,n),s={end:o,start:this._lastWidth};return this._lastVelocity=r,this._lastWidth=o,s}_strokeWidth(t,e){return Math.max(e.maxWidth/(t+1),e.minWidth)}_drawCurveSegment(t,e,n){const r=this._ctx;r.moveTo(t,e),r.arc(t,e,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,e){const n=this._ctx,r=t.endWidth-t.startWidth,o=Math.ceil(t.length())*2;n.beginPath(),n.fillStyle=e.penColor;for(let s=0;s<o;s+=1){const c=s/o,y=c*c,w=y*c,N=1-c,Q=N*N,Y=Q*N;let ce=Y*t.startPoint.x;ce+=3*Q*c*t.control1.x,ce+=3*N*y*t.control2.x,ce+=w*t.endPoint.x;let fe=Y*t.startPoint.y;fe+=3*Q*c*t.control1.y,fe+=3*N*y*t.control2.y,fe+=w*t.endPoint.y;const Oe=Math.min(t.startWidth+w*r,e.maxWidth);this._drawCurveSegment(ce,fe,Oe)}n.closePath(),n.fill()}_drawDot(t,e){const n=this._ctx,r=e.dotSize>0?e.dotSize:(e.minWidth+e.maxWidth)/2;n.beginPath(),this._drawCurveSegment(t.x,t.y,r),n.closePath(),n.fillStyle=e.penColor,n.fill()}_fromData(t,e,n){for(const r of t){const{points:o}=r,s=this._getPointGroupOptions(r);if(o.length>1)for(let c=0;c<o.length;c+=1){const y=o[c],w=new ya(y.x,y.y,y.pressure,y.time);c===0&&this._reset(s);const N=this._addPoint(w,s);N&&e(N,s)}else this._reset(s),n(o[0],s)}}toSVG({includeBackgroundColor:t=!1}={}){const e=this._data,n=Math.max(window.devicePixelRatio||1,1),r=0,o=0,s=this.canvas.width/n,c=this.canvas.height/n,y=document.createElementNS("http://www.w3.org/2000/svg","svg");if(y.setAttribute("xmlns","http://www.w3.org/2000/svg"),y.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),y.setAttribute("viewBox",`${r} ${o} ${s} ${c}`),y.setAttribute("width",s.toString()),y.setAttribute("height",c.toString()),t&&this.backgroundColor){const w=document.createElement("rect");w.setAttribute("width","100%"),w.setAttribute("height","100%"),w.setAttribute("fill",this.backgroundColor),y.appendChild(w)}return this._fromData(e,(w,{penColor:N})=>{const Q=document.createElement("path");if(!isNaN(w.control1.x)&&!isNaN(w.control1.y)&&!isNaN(w.control2.x)&&!isNaN(w.control2.y)){const Y=`M ${w.startPoint.x.toFixed(3)},${w.startPoint.y.toFixed(3)} C ${w.control1.x.toFixed(3)},${w.control1.y.toFixed(3)} ${w.control2.x.toFixed(3)},${w.control2.y.toFixed(3)} ${w.endPoint.x.toFixed(3)},${w.endPoint.y.toFixed(3)}`;Q.setAttribute("d",Y),Q.setAttribute("stroke-width",(w.endWidth*2.25).toFixed(3)),Q.setAttribute("stroke",N),Q.setAttribute("fill","none"),Q.setAttribute("stroke-linecap","round"),y.appendChild(Q)}},(w,{penColor:N,dotSize:Q,minWidth:Y,maxWidth:ce})=>{const fe=document.createElement("circle"),Oe=Q>0?Q:(Y+ce)/2;fe.setAttribute("r",Oe.toString()),fe.setAttribute("cx",w.x.toString()),fe.setAttribute("cy",w.y.toString()),fe.setAttribute("fill",N),y.appendChild(fe)}),y.outerHTML}}var kl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),br=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},bu=300,Cs=200,Be=function(i){kl(t,i);function t(e){var n=i.call(this,e)||this;return n.valueIsUpdatingInternally=!1,n._loadedData=void 0,n.updateValueHandler=function(){n._loadedData=void 0,n.scaleCanvas(!1,!0),n.loadPreview(n.value)},n}return t.prototype.getPenColorFromTheme=function(){var e=this.survey;return!!e&&!!e.themeVariables&&e.themeVariables["--sjs-primary-backcolor"]},t.prototype.updateColors=function(e){var n=this.getPenColorFromTheme(),r=this.getPropertyByName("penColor");e.penColor=this.penColor||n||r.defaultValue||"#1ab394";var o=this.getPropertyByName("backgroundColor"),s=n?"transparent":void 0,c=this.backgroundImage?"transparent":this.backgroundColor;e.backgroundColor=c||s||o.defaultValue||"#ffffff"},t.prototype.getCssRoot=function(e){return new te().append(i.prototype.getCssRoot.call(this,e)).append(e.small,this.signatureWidth.toString()==="300").toString()},t.prototype.getFormat=function(){return this.dataFormat==="jpeg"?"image/jpeg":this.dataFormat==="svg"?"image/svg+xml":""},t.prototype.updateValue=function(){if(this.signaturePad){var e=this.signaturePad.toDataURL(this.getFormat());this.valueIsUpdatingInternally=!0,this.value=e,this.valueIsUpdatingInternally=!1}},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(e){e&&(this.isDesignMode||this.initSignaturePad(e),this.element=e),i.prototype.afterRenderQuestionElement.call(this,e)},t.prototype.beforeDestroyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.themeChanged=function(e){this.signaturePad&&this.updateColors(this.signaturePad)},t.prototype.resizeCanvas=function(){this.canvas.width=this.containerWidth,this.canvas.height=this.containerHeight},t.prototype.scaleCanvas=function(e,n){e===void 0&&(e=!0),n===void 0&&(n=!1);var r=this.canvas,o=r.offsetWidth/this.containerWidth;(this.scale!=o||n)&&(this.scale=o,r.style.width=this.renderedCanvasWidth,this.resizeCanvas(),this.signaturePad.minWidth=this.penMinWidth*o,this.signaturePad.maxWidth=this.penMaxWidth*o,r.getContext("2d").scale(1/o,1/o),e&&this.loadPreview(this.value))},t.prototype.fromUrl=function(e){var n=this;if(this.isFileLoading=!0,Go(e))this.fromDataUrl(e),this.isFileLoading=!1;else{var r=new Image;r.crossOrigin="anonymous",r.src=e,r.onload=function(){if(n.canvas){var o=M.createElement("canvas");o.width=n.containerWidth,o.height=n.containerHeight;var s=o.getContext("2d");s.drawImage(r,0,0);var c=o.toDataURL(n.getFormat());n.fromDataUrl(c)}n.isFileLoading=!1},r.onerror=function(){n.isFileLoading=!1}}},t.prototype.fromDataUrl=function(e){this._loadedData=e,this.signaturePad&&this.signaturePad.fromDataURL(e,{width:this.canvas.width*this.scale,height:this.canvas.height*this.scale})},Object.defineProperty(t.prototype,"loadedData",{get:function(){return this._loadedData},enumerable:!1,configurable:!0}),t.prototype.loadPreview=function(e){var n=this;if(!e){this.signaturePad&&this.canvas&&(this.canvas.getContext("2d").clearRect(0,0,this.canvas.width*this.scale,this.canvas.height*this.scale),this.signaturePad.clear()),this.valueWasChangedFromLastUpload=!1;return}if(this.storeDataAsText)this.fromDataUrl(e);else if(this.loadedData)this.fromDataUrl(this.loadedData);else{var r=e?[e]:[];this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new _l(this,function(o,s){o==="success"&&s&&s.length>0&&s[0].content?(n.fromDataUrl(s[0].content),n.isFileLoading=!1):o==="skipped"&&n.fromUrl(e),n._previewLoader.dispose(),n._previewLoader=void 0}),this._previewLoader.load(r)}},t.prototype.onChangeQuestionValue=function(e){i.prototype.onChangeQuestionValue.call(this,e),this.isLoadingFromJson||(this._loadedData=void 0,this.loadPreview(e))},t.prototype.onSurveyLoad=function(){i.prototype.onSurveyLoad.call(this),this.loadPreview(this.value)},t.prototype.initSignaturePad=function(e){var n=this,r=e.getElementsByTagName("canvas")[0];this.canvas=r,this.resizeCanvas();var o=new bs(r,{backgroundColor:"#ffffff"});this.signaturePad=o,this.isInputReadOnly&&o.off(),this.readOnlyChangedCallback=function(){n.isInputReadOnly?o.off():o.on()},this.updateColors(o),o.addEventListener("beginStroke",function(){n.scaleCanvas(),n.isDrawingValue=!0,r.focus()},{once:!1}),o.addEventListener("endStroke",function(){n.isDrawingValue=!1,n.storeDataAsText?n.updateValue():n.valueWasChangedFromLastUpload=!0},{once:!1}),this.updateValueHandler(),this.readOnlyChangedCallback();var s=function(c,y){(y.name==="signatureWidth"||y.name==="signatureHeight")&&(n.valueIsUpdatingInternally||n.updateValueHandler())};this.onPropertyChanged.add(s),this.signaturePad.propertyChangedHandler=s},t.prototype.destroySignaturePad=function(e){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null},Object.defineProperty(t.prototype,"dataFormat",{get:function(){return this.getPropertyValue("dataFormat")},set:function(e){this.setPropertyValue("dataFormat",ws(e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureWidth",{get:function(){return this.getPropertyValue("signatureWidth")},set:function(e){this.setPropertyValue("signatureWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureHeight",{get:function(){return this.getPropertyValue("signatureHeight")},set:function(e){this.setPropertyValue("signatureHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerHeight",{get:function(){return this.signatureHeight||Cs},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerWidth",{get:function(){return this.signatureWidth||bu},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedCanvasWidth",{get:function(){return this.signatureAutoScaleEnabled?"100%":this.containerWidth+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){this.setPropertyValue("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return this.getPropertyValue("allowClear")},set:function(e){this.setPropertyValue("allowClear",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){var e=!this.nothingIsDrawn(),n=this.isUploading;return!this.isInputReadOnly&&this.allowClear&&e&&!n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(e){this.setPropertyValue("penColor",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.getPropertyValue("backgroundColor")},set:function(e){this.setPropertyValue("backgroundColor",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getPropertyValue("backgroundImage")},set:function(e){this.setPropertyValue("backgroundImage",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRenderedPlaceholder",{get:function(){return this.isReadOnly?this.locPlaceholderReadOnly:this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.nothingIsDrawn=function(){var e=this.isDrawingValue,n=this.isEmpty(),r=this.isUploading,o=this.valueWasChangedFromLastUpload;return!e&&n&&!r&&!o},t.prototype.needShowPlaceholder=function(){return this.showPlaceholder&&this.nothingIsDrawn()},t.prototype.onBlurCore=function(e){if(i.prototype.onBlurCore.call(this,e),!this.storeDataAsText&&!this.element.contains(e.relatedTarget)){if(!this.valueWasChangedFromLastUpload)return;this.uploadFiles([rd(this.signaturePad.toDataURL(this.getFormat()),this.name+"."+ws(this.dataFormat),this.getFormat())]),this.valueWasChangedFromLastUpload=!1}},t.prototype.uploadResultItemToValue=function(e){return e.content},t.prototype.setValueFromResult=function(e){this.valueIsUpdatingInternally=!0,this.value=e!=null&&e.length?e.map(function(n){return n.content})[0]:void 0,this.valueIsUpdatingInternally=!1},t.prototype.clearValue=function(e){this.valueWasChangedFromLastUpload=!1,i.prototype.clearValue.call(this,e),this._loadedData=void 0,this.loadPreview(this.value)},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.signatureWidth===300&&this.width&&typeof this.width=="number"&&this.width&&(mt.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),this.signatureHeight===200&&this.height&&(mt.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},br([D({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),br([D({defaultValue:!1})],t.prototype,"isReadyForUpload",void 0),br([D({defaultValue:!1})],t.prototype,"valueWasChangedFromLastUpload",void 0),br([D()],t.prototype,"signatureAutoScaleEnabled",void 0),br([D()],t.prototype,"penMinWidth",void 0),br([D()],t.prototype,"penMaxWidth",void 0),br([D({})],t.prototype,"showPlaceholder",void 0),br([D({localizable:{defaultStr:"signaturePlaceHolder"}})],t.prototype,"placeholder",void 0),br([D({localizable:{defaultStr:"signaturePlaceHolderReadOnly"}})],t.prototype,"placeholderReadOnly",void 0),t}(ha);function ws(i){return i||(i="png"),i=i.replace("image/","").replace("+xml",""),i!=="jpeg"&&i!=="svg"&&(i="png"),i}G.addClass("signaturepad",[{name:"signatureWidth:number",category:"general",default:300},{name:"signatureHeight:number",category:"general",default:200},{name:"signatureAutoScaleEnabled:boolean",category:"general",default:!1},{name:"penMinWidth:number",category:"general",default:.5},{name:"penMaxWidth:number",category:"general",default:2.5},{name:"height:number",category:"general",visible:!1},{name:"allowClear:boolean",category:"general",default:!0},{name:"showPlaceholder:boolean",category:"general",default:!0},{name:"placeholder:text",serializationProperty:"locPlaceholder",category:"general",dependsOn:"showPlaceholder",visibleIf:function(i){return i.showPlaceholder}},{name:"placeholderReadOnly:text",serializationProperty:"locPlaceholderReadOnly",category:"general",dependsOn:"showPlaceholder",visibleIf:function(i){return i.showPlaceholder}},{name:"backgroundImage:file",category:"general"},{name:"penColor:color",category:"general"},{name:"backgroundColor:color",category:"general"},{name:"dataFormat",category:"general",default:"png",choices:[{value:"png",text:"PNG"},{value:"jpeg",text:"JPEG"},{value:"svg",text:"SVG"}],onSettingValue:function(i,t){return ws(t)}},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1}],function(){return new Be("")},"question"),bt.Instance.registerQuestion("signaturepad",function(i){return new Be(i)});var Cu=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Cr=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ud=function(i,t){for(var e=0,n=t.length,r=i.length;e<n;e++,r++)i[r]=t[e];return i},Ql=function(i){Cu(t,i);function t(e,n,r){var o=i.call(this,r)||this;return o.data=e,o.panelItem=n,o.variableName=r,o.sharedQuestions={},o}return Object.defineProperty(t.prototype,"survey",{get:function(){return this.panelItem.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelItem.panel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelIndex",{get:function(){return this.data?this.data.getItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelIndex",{get:function(){return this.data?this.data.getVisibleItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.panelItem.getAllValues()},t.prototype.getQuestionByName=function(e){var n=i.prototype.getQuestionByName.call(this,e);if(n)return n;var r=this.panelIndex;n=r>-1?this.data.getSharedQuestionFromArray(e,r):void 0;var o=n?n.name:e;return this.sharedQuestions[o]=e,n},t.prototype.getQuestionDisplayText=function(e){var n=this.sharedQuestions[e.name];if(!n)return i.prototype.getQuestionDisplayText.call(this,e);var r=this.panelItem.getValue(n);return e.getDisplayValue(!0,r)},t.prototype.onCustomProcessText=function(e){if(e.name==Vn.IndexVariableName){var n=this.panelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(e.name==Vn.VisibleIndexVariableName){var n=this.visiblePanelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(e.name.toLowerCase().indexOf(Vn.ParentItemVariableName+".")==0){var r=this.data;if(r&&r.parentQuestion&&r.parent&&r.parent.data){var o=new t(r.parentQuestion,r.parent.data,Vn.ItemVariableName),s=Vn.ItemVariableName+e.name.substring(Vn.ParentItemVariableName.length),c=o.processValue(s,e.returnDisplayValue);e.isExists=c.isExists,e.value=c.value}return!0}return!1},t}(ei),Vn=function(){function i(t,e){this.data=t,this.panelValue=e,this.textPreProcessor=new Ql(t,this,i.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(i.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),i.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},i.prototype.getValue=function(t){var e=this.getAllValues();return e[t]},i.prototype.setValue=function(t,e){var n=this.data.getPanelItemData(this),r=n?n[t]:void 0;if(!m.isTwoValueEquals(e,r,!1,!0,!1)){this.data.setPanelItemData(this,t,m.getUnbindValue(e));for(var o=this.panel.questions,s=i.ItemVariableName+"."+t,c=0;c<o.length;c++){var y=o[c];y.getValueName()!==t&&y.checkBindings(t,e),y.runTriggers(s,e)}}},i.prototype.getVariable=function(t){},i.prototype.setVariable=function(t,e){},i.prototype.getComment=function(t){var e=this.getValue(t+z.commentSuffix);return e||""},i.prototype.setComment=function(t,e,n){this.setValue(t+z.commentSuffix,e)},i.prototype.findQuestionByName=function(t){if(t){var e=i.ItemVariableName+".";if(t.indexOf(e)===0)return this.panel.getQuestionByName(t.substring(e.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},i.prototype.getEditingSurveyElement=function(){},i.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},i.prototype.getFilteredValues=function(){var t={},e=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var n in e)t[n]=e[n];if(t[i.ItemVariableName]=this.getAllValues(),this.data){var r=i.IndexVariableName,o=i.VisibleIndexVariableName;delete t[r],delete t[o],t[r.toLowerCase()]=this.data.getItemIndex(this),t[o.toLowerCase()]=this.data.getVisibleItemIndex(this);var s=this.data;s&&s.parentQuestion&&s.parent&&(t[i.ParentItemVariableName]=s.parent.getValue())}return t},i.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},i.prototype.getSurveyData=function(){return this},i.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},i.prototype.getTextProcessor=function(){return this.textPreProcessor},i.ItemVariableName="panel",i.ParentItemVariableName="parentpanel",i.IndexVariableName="panelIndex",i.VisibleIndexVariableName="visiblePanelIndex",i}(),Sn=function(){function i(t){this.data=t}return i.prototype.getSurveyData=function(){return null},i.prototype.getSurvey=function(){return this.data.getSurvey()},i.prototype.getTextProcessor=function(){return null},i}(),Hl=function(i){Cu(t,i);function t(e){var n=i.call(this,e)||this;return n._renderedPanels=[],n.isPanelsAnimationRunning=!1,n.isAddingNewPanels=!1,n.isSetPanelItemData={},n.createNewArray("panels",function(r){n.onPanelAdded(r)},function(r){n.onPanelRemoved(r)}),n.createNewArray("visiblePanels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n,n.template.addElementCallback=function(r){n.addOnPropertyChangedCallback(r),n.rebuildPanels()},n.template.removeElementCallback=function(){n.rebuildPanels()},n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.createLocalizableString("panelAddText",n,!1,"addPanel"),n.createLocalizableString("panelRemoveText",n,!1,"removePanel"),n.createLocalizableString("panelPrevText",n,!1,"pagePrevText"),n.createLocalizableString("panelNextText",n,!1,"pageNextText"),n.createLocalizableString("noEntriesText",n,!1,"noEntriesText"),n.createLocalizableString("templateTabTitle",n,!0,"panelDynamicTabTextFormat"),n.createLocalizableString("tabTitlePlaceholder",n,!0,"tabTitlePlaceholder"),n.registerPropertyChangedHandlers(["panelsState"],function(){n.setPanelsState()}),n.registerPropertyChangedHandlers(["newPanelPosition","displayMode","showProgressBar"],function(){n.updateFooterActions()}),n.registerPropertyChangedHandlers(["allowAddPanel"],function(){n.updateNoEntriesTextDefaultLoc()}),n.registerPropertyChangedHandlers(["minPanelCount"],function(){n.onMinPanelCountChanged()}),n.registerPropertyChangedHandlers(["maxPanelCount"],function(){n.onMaxPanelCountChanged()}),n}return Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFirstQuestionToFocus=function(e){for(var n=0;n<this.visiblePanelsCore.length;n++){var r=this.visiblePanelsCore[n].getFirstQuestionToFocus(e);if(r)return r}return this.showAddPanelButton&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.showAddPanelButton?this.addButtonId:i.prototype.getFirstInputElementId.call(this)},t.prototype.setSurveyImpl=function(e,n){i.prototype.setSurveyImpl.call(this,e,n),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,n=0;n<e.length;n++)this.addOnPropertyChangedCallback(e[n])},t.prototype.addOnPropertyChangedCallback=function(e){var n=this;e.isQuestion&&e.setParentQuestion(this),e.onPropertyChanged.add(function(r,o){n.onTemplateElementPropertyChanged(r,o)}),e.isPanel&&(e.addElementCallback=function(r){n.addOnPropertyChangedCallback(r)})},t.prototype.onTemplateElementPropertyChanged=function(e,n){if(!(this.isLoadingFromJson||this.useTemplatePanel||this.panelsCore.length==0)){var r=G.findProperty(e.getType(),n.name);if(r)for(var o=this.panelsCore,s=0;s<o.length;s++){var c=o[s].getQuestionByName(e.name);c&&c[n.name]!==n.newValue&&(c[n.name]=n.newValue)}}},Object.defineProperty(t.prototype,"useTemplatePanel",{get:function(){return this.isDesignMode&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"paneldynamic"},t.prototype.clearOnDeletingContainer=function(){this.panelsCore.forEach(function(e){e.clearOnDeletingContainer()})},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.template},Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTabTitle",{get:function(){return this.locTemplateTabTitle.text},set:function(e){this.locTemplateTabTitle.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTabTitle",{get:function(){return this.getLocalizableString("templateTabTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabTitlePlaceholder",{get:function(){return this.locTabTitlePlaceholder.text},set:function(e){this.locTabTitlePlaceholder.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTabTitlePlaceholder",{get:function(){return this.getLocalizableString("tabTitlePlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateVisibleIf",{get:function(){return this.getPropertyValue("templateVisibleIf")},set:function(e){this.setPropertyValue("templateVisibleIf",e),this.template.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],n=0;n<this.panelsCore.length;n++)e.push(this.panelsCore[n].data);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.buildPanelsFirstTime(this.canBuildPanels),this.panelsCore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanels",{get:function(){return this.buildPanelsFirstTime(this.canBuildPanels),this.visiblePanelsCore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsCore",{get:function(){return this.getPropertyValue("panels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelsCore",{get:function(){return this.getPropertyValue("visiblePanels")},enumerable:!1,configurable:!0}),t.prototype.onPanelAdded=function(e){if(this.onPanelRemovedCore(e),!!e.visible){for(var n=0,r=this.panelsCore,o=0;o<r.length&&r[o]!==e;o++)r[o].visible&&n++;this.visiblePanelsCore.splice(n,0,e),this.addTabFromToolbar(e,n),this.currentPanel||(this.currentPanel=e),this.updateRenderedPanels()}},t.prototype.onPanelRemoved=function(e){var n=this.onPanelRemovedCore(e);if(this.currentPanel===e){var r=this.visiblePanelsCore;n>=r.length&&(n=r.length-1),this.currentPanel=n>=0?r[n]:null}this.updateRenderedPanels()},t.prototype.onPanelRemovedCore=function(e){var n=this.visiblePanelsCore,r=n.indexOf(e);return r>-1&&(n.splice(r,1),this.removeTabFromToolbar(e)),r},Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.useTemplatePanel?0:this.visiblePanelsCore.indexOf(this.currentPanel)},set:function(e){e<0||this.visiblePanelCount<1||(e>=this.visiblePanelCount&&(e=this.visiblePanelCount-1),this.currentPanel=this.visiblePanelsCore[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){if(this.isDesignMode)return this.template;if(this.isRenderModeList||this.useTemplatePanel)return null;var e=this.getPropertyValue("currentPanel",null);return!e&&this.visiblePanelCount>0&&(e=this.visiblePanelsCore[0],this.currentPanel=e),e},set:function(e){if(!(this.isRenderModeList||this.useTemplatePanel)){var n=this.getPropertyValue("currentPanel"),r=e?this.visiblePanelsCore.indexOf(e):-1;if(!(e&&r<0||e===n)&&(n&&n.onHidingContent(),this.setPropertyValue("currentPanel",e),this.updateRenderedPanels(),this.updateFooterActions(),this.updateTabToolbarItemsPressedState(),this.fireCallback(this.currentIndexChangedCallback),r>-1&&this.survey)){var o={panel:e,visiblePanelIndex:r};this.survey.dynamicPanelCurrentIndexChanged(this,o)}}},enumerable:!1,configurable:!0}),t.prototype.updateRenderedPanels=function(){this.isRenderModeList?this.renderedPanels=[].concat(this.visiblePanels):this.currentPanel?this.renderedPanels=[this.currentPanel]:this.renderedPanels=[]},Object.defineProperty(t.prototype,"renderedPanels",{get:function(){return this._renderedPanels},set:function(e){this.renderedPanels.length==0||e.length==0?(this.blockAnimations(),this.panelsAnimation.sync(e),this.releaseAnimations()):(this.isPanelsAnimationRunning=!0,this.panelsAnimation.sync(e))},enumerable:!1,configurable:!0}),t.prototype.getPanelsAnimationOptions=function(){var e=this,n=function(){if(e.isRenderModeList)return"";var r=new te,o=!1,s=e.renderedPanels.filter(function(y){return y!==e.currentPanel})[0],c=e.visiblePanels.indexOf(s);return c<0&&(o=!0,c=e.removedPanelIndex),r.append("sv-pd-animation-adding",!!e.focusNewPanelCallback).append("sv-pd-animation-removing",o).append("sv-pd-animation-left",c<=e.currentIndex).append("sv-pd-animation-right",c>e.currentIndex).toString()};return{getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(r){var o,s;if(r&&e.cssContent){var c=kt(e.cssContent);return(s=(o=e.getWrapperElement())===null||o===void 0?void 0:o.querySelector(":scope "+c+" #"+r.id))===null||s===void 0?void 0:s.parentElement}},getEnterOptions:function(){var r=new te().append(e.cssClasses.panelWrapperEnter).append(n()).toString();return{onBeforeRunAnimation:function(o){if(e.focusNewPanelCallback){var s=e.isRenderModeList?o:o.parentElement;sn.ScrollElementToViewCore(s,!1,!1,{behavior:"smooth"})}!e.isRenderModeList&&o.parentElement?Yr(o.parentElement,{heightTo:o.offsetHeight+"px"}):Ln(o)},onAfterRunAnimation:function(o){hn(o),o.parentElement&&hn(o.parentElement)},cssClass:r}},getLeaveOptions:function(){var r=new te().append(e.cssClasses.panelWrapperLeave).append(n()).toString();return{onBeforeRunAnimation:function(o){!e.isRenderModeList&&o.parentElement?Yr(o.parentElement,{heightFrom:o.offsetHeight+"px"}):Ln(o)},onAfterRunAnimation:function(o){hn(o),o.parentElement&&hn(o.parentElement)},cssClass:r}},isAnimationEnabled:function(){return e.animationAllowed&&!!e.getWrapperElement()}}},t.prototype.disablePanelsAnimations=function(){this.panelsCore.forEach(function(e){e.blockAnimations()})},t.prototype.enablePanelsAnimations=function(){this.panelsCore.forEach(function(e){e.releaseAnimations()})},t.prototype.updatePanelsAnimation=function(){var e=this;this._panelsAnimations=new(this.isRenderModeList?Ar:Qo)(this.getPanelsAnimationOptions(),function(n,r){e._renderedPanels=n,r||(e.isPanelsAnimationRunning=!1,e.focusNewPanel())},function(){return e._renderedPanels})},Object.defineProperty(t.prototype,"panelsAnimation",{get:function(){return this._panelsAnimations||this.updatePanelsAnimation(),this._panelsAnimations},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){i.prototype.onHidingContent.call(this),this.currentPanel?this.currentPanel.onHidingContent():this.visiblePanelsCore.forEach(function(e){return e.onHidingContent()})},Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText")},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText")},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText")},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText")},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return this.displayMode=="carousel"&&(this.progressBarLocation==="top"||this.progressBarLocation==="topBottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return this.displayMode=="carousel"&&(this.progressBarLocation==="bottom"||this.progressBarLocation==="topBottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonVisible",{get:function(){return this.currentIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.isPrevButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonVisible",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.visiblePanelCount-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.isNextButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.visiblePanelCount>1},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return e===void 0&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:i.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(e){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=e):i.prototype.setValueCore.call(this,e)},t.prototype.setIsMobile=function(e){i.prototype.setIsMobile.call(this,e),(this.panelsCore||[]).forEach(function(n){return n.getQuestions(!0).forEach(function(r){r.setIsMobile(e)})})},t.prototype.themeChanged=function(e){i.prototype.themeChanged.call(this,e),(this.panelsCore||[]).forEach(function(n){return n.getQuestions(!0).forEach(function(r){r.themeChanged(e)})})},Object.defineProperty(t.prototype,"panelCount",{get:function(){return!this.canBuildPanels||this.wasNotRenderedInSurvey?this.getPropertyValue("panelCount"):this.panelsCore.length},set:function(e){if(!(e<0)){if(!this.canBuildPanels||this.wasNotRenderedInSurvey){this.setPropertyValue("panelCount",e);return}if(!(e==this.panelsCore.length||this.useTemplatePanel)){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var n=this.panelCount;n<e;n++){var r=this.createNewPanel();this.panelsCore.push(r),this.displayMode=="list"&&this.panelsState!="default"&&(this.panelsState==="expanded"?r.expand():r.title&&r.collapse())}e<this.panelCount&&this.panelsCore.splice(e,this.panelCount-e),this.disablePanelsAnimations(),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.enablePanelsAnimations()}}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelCount",{get:function(){return this.visiblePanels.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!1,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.useTemplatePanel?this.surveyImpl:new Sn(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panelsCore.length;e++){var n=this.panelsCore[e];n!=this.template&&n.setSurveyImpl(n.data)}},t.prototype.setPanelsState=function(){if(!(this.useTemplatePanel||this.displayMode!="list"||!this.templateTitle))for(var e=0;e<this.panelsCore.length;e++){var n=this.panelsState;n==="firstExpanded"&&(n=e===0?"expanded":"collapsed"),this.panelsCore[e].state=n}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if((!e||!Array.isArray(e))&&(e=[]),e.length!=this.panelCount){for(var n=e.length;n<this.panelCount;n++){var r=this.panels[n].getValue(),o=m.isValueEmpty(r)?{}:r;e.push(o)}e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minPanelCount",e)},enumerable:!1,configurable:!0}),t.prototype.onMinPanelCountChanged=function(){var e=this.minPanelCount;e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e)},Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){e<=0||(e>z.panel.maxPanelCount&&(e=z.panel.maxPanelCount),this.setPropertyValue("maxPanelCount",e),this.updateFooterActions())},enumerable:!1,configurable:!0}),t.prototype.onMaxPanelCountChanged=function(){var e=this.maxPanelCount;e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e),this.updateFooterActions()},Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addButtonId",{get:function(){return this.id+"addPanel"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newPanelPosition",{get:function(){return this.getPropertyValue("newPanelPosition")},set:function(e){this.setPropertyValue("newPanelPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateErrorLocation",{get:function(){return this.getPropertyValue("templateErrorLocation")},set:function(e){this.setPropertyValue("templateErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible,!0)},enumerable:!1,configurable:!0}),t.prototype.notifySurveyOnChildrenVisibilityChanged=function(){return this.showQuestionNumbers==="onSurvey"},Object.defineProperty(t.prototype,"panelRemoveButtonLocation",{get:function(){return this.getPropertyValue("panelRemoveButtonLocation")},set:function(e){this.setPropertyValue("panelRemoveButtonLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.showProgressBar},set:function(e){this.showProgressBar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){var e=this.displayMode;if(e=="carousel"){var n=this.progressBarLocation;if(n=="top")return"progressTop";if(n=="bottom")return"progressBottom";if(n=="topBottom")return"progressTopBottom"}return e},set:function(e){(e||"").startsWith("progress")?(e=="progressTop"?this.progressBarLocation="top":e=="progressBottom"?this.progressBarLocation="bottom":e=="progressTopBottom"&&(this.progressBarLocation="topBottom"),this.displayMode="carousel"):this.displayMode=e},enumerable:!1,configurable:!0}),t.prototype.updatePanelView=function(){this.blockAnimations(),this.updateRenderedPanels(),this.releaseAnimations(),this.updatePanelsAnimation()},Object.defineProperty(t.prototype,"tabAlign",{get:function(){return this.getPropertyValue("tabAlign")},set:function(e){this.setPropertyValue("tabAlign",e),this.isRenderModeTab&&(this.additionalTitleToolbar.containerCss=this.getAdditionalTitleToolbarCss())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return this.displayMode==="list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeTab",{get:function(){return this.displayMode==="tab"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(this.isRenderModeTab&&this.visiblePanelCount>0)return!0;if(!this.hasTitle)return!1;var e=this.getTitleLocation();return e==="left"||e==="top"},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(e){if(!this.isVisible)return 0;for(var n=this.showQuestionNumbers==="onSurvey",r=n?e:0,o=this.isDesignMode?[this.template]:this.visiblePanelsCore,s=0;s<o.length;s++){var c=this.setPanelVisibleIndex(o[s],r,this.showQuestionNumbers!="off");n&&(r+=c)}return i.prototype.setVisibleIndex.call(this,n?-1:e),n?r-e:1},t.prototype.setPanelVisibleIndex=function(e,n,r){return r?e.setVisibleIndex(n):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return this.isDesignMode||this.isDefaultV2Theme&&!this.legacyNavigation&&!this.isRenderModeList&&this.currentIndex<this.visiblePanelCount-1&&this.newPanelPosition!=="next"?!1:this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return this.isDesignMode?!1:this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var n=[];if(this.useTemplatePanel)new Vn(this,this.template),n.push(this.template);else for(var r=0;r<this.panelCount;r++)this.createNewPanel(),n.push(this.createNewPanel());(e=this.panelsCore).splice.apply(e,ud([0,this.panelsCore.length],n)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.updateTabToolbar()}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel")},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return i.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultPanelValue)||!this.isValueEmpty(this.defaultValue)){i.prototype.setDefaultValue.call(this);return}if(!(!this.isEmpty()||this.panelCount==0)){for(var e=[],n=0;n<this.panelCount;n++)e.push(this.defaultPanelValue);this.value=e}},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var n=0;n<e.length;n++)if(!this.isRowEmpty(e[n]))return!1;return!0},t.prototype.getProgressInfo=function(){return sn.getProgressInfoByElements(this.visiblePanelsCore,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var n in e)if(e.hasOwnProperty(n))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel||!this.canLeaveCurrentPanel())return null;var e=this.addPanel();return this.displayMode==="list"&&this.panelsState!=="default"&&e.expand(),this.focusNewPanelCallback=function(){e.focusFirstQuestion()},this.isPanelsAnimationRunning||this.focusNewPanel(),e},t.prototype.focusNewPanel=function(){this.focusNewPanelCallback&&(this.focusNewPanelCallback(),this.focusNewPanelCallback=void 0)},t.prototype.addPanel=function(e){var n=this.currentIndex;return e===void 0&&(e=n<0?this.panelCount:n+1),(e<0||e>this.panelCount)&&(e=this.panelCount),this.updateValueOnAddingPanel(n<0?this.panelCount-1:n,e),this.isRenderModeList||(this.currentIndex=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panelsCore[e]},t.prototype.updateValueOnAddingPanel=function(e,n){this.panelCount++;var r=this.value;if(!(!Array.isArray(r)||r.length!==this.panelCount)){var o=!1,s=this.panelCount-1;if(n<s){o=!0;var c=r[s];r.splice(s,1),r.splice(n,0,c)}if(this.isValueEmpty(this.defaultPanelValue)||(o=!0,this.copyValue(r[n],this.defaultPanelValue)),this.defaultValueFromLastPanel&&r.length>1){var y=e>-1&&e<=s?e:s;o=!0,this.copyValue(r[n],r[y])}o&&(this.value=r)}},t.prototype.canLeaveCurrentPanel=function(){return!(this.displayMode!=="list"&&this.currentPanel&&this.currentPanel.hasErrors(!0,!0))},t.prototype.copyValue=function(e,n){for(var r in n)e[r]=n[r]},t.prototype.removePanelUI=function(e){var n=this,r=this.getVisualPanelIndex(e);if(!(r<0||r>=this.visiblePanelCount)&&this.canRemovePanel){var o=function(){var s;n.removePanel(r);var c=n.visiblePanelCount,y=r>=c?c-1:r,w=c===0?n.addButtonId:y>-1?n.getPanelRemoveButtonId(n.visiblePanels[y]):"";w&&sn.FocusElement(w,!0,(s=n.survey)===null||s===void 0?void 0:s.rootElement)};this.isRequireConfirmOnDelete(e)?Jr({message:this.confirmDeleteText,funcOnYes:function(){o()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog}):o()}},t.prototype.getPanelRemoveButtonId=function(e){return e.id+"_remove_button"},t.prototype.isRequireConfirmOnDelete=function(e){if(!this.confirmDelete)return!1;var n=this.getVisualPanelIndex(e);if(n<0||n>=this.visiblePanelCount)return!1;var r=this.visiblePanelsCore[n].getValue();return!this.isValueEmpty(r)&&(this.isValueEmpty(this.defaultPanelValue)||!this.isTwoValueEquals(r,this.defaultPanelValue))},t.prototype.goToNextPanel=function(){return this.currentIndex<0||!this.canLeaveCurrentPanel()?!1:(this.currentIndex++,!0)},t.prototype.goToPrevPanel=function(){this.currentIndex<0||this.currentIndex--},t.prototype.removePanel=function(s){var n=this.getVisualPanelIndex(s);if(!(n<0||n>=this.visiblePanelCount)){this.removedPanelIndex=n;var r=this.visiblePanelsCore[n],o=this.panelsCore.indexOf(r);if(!(o<0)&&!(this.survey&&!this.survey.dynamicPanelRemoving(this,o,r))){this.panelsCore.splice(o,1),this.updateBindings("panelCount",this.panelCount);var s=this.value;!s||!Array.isArray(s)||o>=s.length||(this.isValueChangingInternally=!0,s.splice(o,1),this.value=s,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,o,r),this.isValueChangingInternally=!1)}}},t.prototype.getVisualPanelIndex=function(e){if(m.isNumber(e))return e;for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r]===e||n[r].data===e)return r;return-1},t.prototype.getPanelVisibleIndexById=function(e){for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r].id===e)return r;return-1},t.prototype.locStrsChanged=function(){i.prototype.locStrsChanged.call(this);for(var e=this.panelsCore,n=0;n<e.length;n++)e[n].locStrsChanged();this.additionalTitleToolbar&&this.additionalTitleToolbar.locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panelsCore.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){i.prototype.clearErrors.call(this);for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].clearErrors()},t.prototype.getQuestionFromArray=function(e,n){return n<0||n>=this.panelsCore.length?null:this.panelsCore[n].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var n=this.panelsCore[e];n.clearIncorrectValues();var r=this.value,o=r&&e<r.length?r[e]:null;if(o){var s=!1;for(var c in o)if(!this.getSharedQuestionFromArray(c,e)){var y=n.getQuestionByName(c);y||this.iscorrectValueWithPostPrefix(n,c,z.commentSuffix)||this.iscorrectValueWithPostPrefix(n,c,z.matrix.totalsSuffix)||(delete o[c],s=!0)}s&&(r[e]=o,this.value=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,n,r){return n.indexOf(r)!==n.length-r.length?!1:!!e.getQuestionByName(n.substring(0,n.indexOf(r)))},t.prototype.getSharedQuestionFromArray=function(e,n){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,n):null},t.prototype.addConditionObjectsByContext=function(e,n){for(var r=n!=null&&n.isValidator?n.errorOwner:n,o=!!n&&(n===!0||this.template.questions.indexOf(r)>-1),s=new Array,c=this.template.questions,y=0;y<c.length;y++)c[y].addConditionObjectsByContext(s,n);for(var w=0;w<z.panel.maxPanelCountInCondition;w++)for(var N="["+w+"].",Q=this.getValueName()+N,Y=this.processedTitle+N,y=0;y<s.length;y++)s[y].context?e.push(s[y]):e.push({name:Q+s[y].name,text:Y+s[y].text,question:s[y].question});if(o){for(var Q=n===!0?this.getValueName()+".":"",Y=n===!0?this.processedTitle+".":"",y=0;y<s.length;y++)if(s[y].question!=n){var ce={name:Q+Vn.ItemVariableName+"."+s[y].name,text:Y+Vn.ItemVariableName+"."+s[y].text,question:s[y].question};ce.context=this,e.push(ce)}}},t.prototype.collectNestedQuestionsCore=function(e,n){var r=n?this.visiblePanelsCore:this.panelsCore;Array.isArray(r)&&r.forEach(function(o){o.questions.forEach(function(s){return s.collectNestedQuestions(e,n)})})},t.prototype.getConditionJson=function(e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),!n)return i.prototype.getConditionJson.call(this,e);var r=n,o=n.indexOf(".");o>-1&&(r=n.substring(0,o),n=n.substring(o+1));var s=this.template.getQuestionByName(r);return s?s.getConditionJson(e,n):null},t.prototype.onReadOnlyChanged=function(){var e=this.isReadOnly;this.template.readOnly=e;for(var n=0;n<this.panelsCore.length;n++)this.panelsCore[n].readOnly=e;this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),i.prototype.onReadOnlyChanged.call(this)},t.prototype.updateNoEntriesTextDefaultLoc=function(){var e=this.getLocalizableString("noEntriesText");e&&(e.localizationName=this.isReadOnly||!this.allowAddPanel?"noEntriesReadonlyText":"noEntriesText")},t.prototype.onSurveyLoad=function(){this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.panelCount<this.minPanelCount&&(this.panelCount=this.minPanelCount),this.panelCount>this.maxPanelCount&&(this.panelCount=this.maxPanelCount),this.buildPanelsFirstTime(),i.prototype.onSurveyLoad.call(this)},t.prototype.buildPanelsFirstTime=function(e){if(e===void 0&&(e=!1),!this.hasPanelBuildFirstTime&&!(!e&&this.wasNotRenderedInSurvey)){if(this.blockAnimations(),this.hasPanelBuildFirstTime=!0,this.isBuildingPanelsFirstTime=!0,this.getPropertyValue("panelCount")>0&&(this.panelCount=this.getPropertyValue("panelCount")),this.useTemplatePanel&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),this.survey)for(var n=0;n<this.panelCount;n++)this.survey.dynamicPanelAdded(this);this.updateIsReady(),this.showAddPanelButton||this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),this.isBuildingPanelsFirstTime=!1,this.releaseAnimations()}},Object.defineProperty(t.prototype,"showAddPanelButton",{get:function(){return this.allowAddPanel&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasNotRenderedInSurvey",{get:function(){return!this.hasPanelBuildFirstTime&&!this.wasRendered&&!!this.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canBuildPanels",{get:function(){return!this.isLoadingFromJson&&!this.useTemplatePanel},enumerable:!1,configurable:!0}),t.prototype.onFirstRenderingCore=function(){i.prototype.onFirstRenderingCore.call(this),this.buildPanelsFirstTime(),this.template.onFirstRendering();for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].onFirstRendering()},t.prototype.localeChanged=function(){i.prototype.localeChanged.call(this);for(var e=0;e<this.panelsCore.length;e++)this.panelsCore[e].localeChanged()},t.prototype.runCondition=function(e,n){i.prototype.runCondition.call(this,e,n),this.runPanelsCondition(this.panelsCore,e,n)},t.prototype.runTriggers=function(e,n,r){i.prototype.runTriggers.call(this,e,n,r),this.visiblePanelsCore.forEach(function(o){o.questions.forEach(function(s){return s.runTriggers(e,n,r)})})},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,n,r){var o={};n&&n instanceof Object&&(o=JSON.parse(JSON.stringify(n))),this.parentQuestion&&this.parent&&(o[Vn.ParentItemVariableName]=this.parent.getValue()),this.isValueChangingInternally=!0;for(var s=0;s<e.length;s++){var c=e[s],y=this.getPanelItemData(c.data),w=m.createCopy(o),N=Vn.ItemVariableName;w[N]=y,w[Vn.IndexVariableName.toLowerCase()]=s;var Q=m.createCopy(r);Q[N]=c,c.runCondition(w,Q)}this.isValueChangingInternally=!1},t.prototype.onAnyValueChanged=function(e,n){i.prototype.onAnyValueChanged.call(this,e,n);for(var r=0;r<this.panelsCore.length;r++)this.panelsCore[r].onAnyValueChanged(e,n),this.panelsCore[r].onAnyValueChanged(Vn.ItemVariableName,"")},t.prototype.hasKeysDuplicated=function(e,n){n===void 0&&(n=null);for(var r=[],o,s=0;s<this.panelsCore.length;s++)o=this.isValueDuplicated(this.panelsCore[s],r,n,e)||o;return o},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion,n=e.parent;n;)n.updateContainsErrors(),n=n.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(e,n){if(e===void 0&&(e=!0),n===void 0&&(n=null),this.isValueChangingInternally||this.isBuildingPanelsFirstTime)return!1;var r=!1;if(this.changingValueQuestion){var r=this.changingValueQuestion.hasErrors(e,n);r=this.hasKeysDuplicated(e,n)||r,this.updatePanelsContainsErrors()}else r=this.hasErrorInPanels(e,n);return i.prototype.hasErrors.call(this,e,n)||r},t.prototype.getContainsErrors=function(){var e=i.prototype.getContainsErrors.call(this);if(e)return e;for(var n=this.panelsCore,r=0;r<n.length;r++)if(n[r].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!i.prototype.getIsAnswered.call(this))return!1;for(var e=this.visiblePanelsCore,n=0;n<e.length;n++){var r=[];e[n].addQuestionsToList(r,!0);for(var o=0;o<r.length;o++)if(!r[o].isAnswered)return!1}return!0},t.prototype.clearValueOnHidding=function(e){if(!e){if(this.survey&&this.survey.getQuestionClearIfInvisible("onHidden")==="none")return;this.clearValueInPanelsIfInvisible("onHiddenContainer")}i.prototype.clearValueOnHidding.call(this,e)},t.prototype.clearValueIfInvisible=function(e){e===void 0&&(e="onHidden");var n=e==="onHidden"?"onHiddenContainer":e;this.clearValueInPanelsIfInvisible(n),i.prototype.clearValueIfInvisible.call(this,e)},t.prototype.clearValueInPanelsIfInvisible=function(e){for(var n=0;n<this.panelsCore.length;n++){var r=this.panelsCore[n],o=r.questions;this.isSetPanelItemData={};for(var s=0;s<o.length;s++){var c=o[s];c.visible&&!r.isVisible||(c.clearValueIfInvisible(e),this.isSetPanelItemData[c.getValueName()]=this.maxCheckCount+1)}}this.isSetPanelItemData={}},t.prototype.getIsRunningValidators=function(){if(i.prototype.getIsRunningValidators.call(this))return!0;for(var e=0;e<this.panelsCore.length;e++)for(var n=this.panelsCore[e].questions,r=0;r<n.length;r++)if(n[r].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var e=i.prototype.getAllErrors.call(this),n=this.visiblePanelsCore,r=0;r<n.length;r++)for(var o=n[r].questions,s=0;s<o.length;s++){var c=o[s].getAllErrors();c&&c.length>0&&(e=e.concat(c))}return e},t.prototype.getDisplayValueCore=function(e,n){var r=this.getUnbindValue(n);if(!r||!Array.isArray(r))return r;for(var o=0;o<this.panelsCore.length&&o<r.length;o++){var s=r[o];s&&(r[o]=this.getPanelDisplayValue(o,s,e))}return r},t.prototype.getPanelDisplayValue=function(e,n,r){if(!n)return n;for(var o=this.panelsCore[e],s=Object.keys(n),c=0;c<s.length;c++){var y=s[c],w=o.getQuestionByValueName(y);if(w||(w=this.getSharedQuestionFromArray(y,e)),w){var N=w.getDisplayValue(r,n[y]);n[y]=N,r&&w.title&&w.title!==y&&(n[w.title]=N,delete n[y])}}return n},t.prototype.hasErrorInPanels=function(e,n){for(var r=!1,o=this.visiblePanels,s=[],c=0;c<o.length;c++)this.setOnCompleteAsyncInPanel(o[c]);for(var y=!!n&&n.focusOnFirstError,w=0;w<o.length;w++){var N=o[w].hasErrors(e,y,n);N=this.isValueDuplicated(o[w],s,n,e)||N,!this.isRenderModeList&&N&&!r&&y&&(this.currentIndex=w),r=N||r}return r},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var n=this,r=e.questions,o=0;o<r.length;o++)r[o].onCompletedAsyncValidators=function(s){n.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,n,r,o){if(!this.keyName)return!1;var s=e.getQuestionByValueName(this.keyName);if(!s||s.isEmpty())return!1;var c=s.value;this.changingValueQuestion&&s!=this.changingValueQuestion&&s.hasErrors(o,r);for(var y=0;y<n.length;y++)if(c==n[y])return o&&s.addError(new Qa(this.keyDuplicationError,this)),r&&!r.firstErrorQuestion&&(r.firstErrorQuestion=s),!0;return n.push(c),!1},t.prototype.getPanelActions=function(e){var n=this,r=e.footerActions;return this.panelRemoveButtonLocation!=="right"&&r.push(new pt({id:"remove-panel-"+e.id,component:"sv-paneldynamic-remove-btn",visible:new Lt(function(){return[n.canRemovePanel,e.state!=="collapsed",n.panelRemoveButtonLocation!=="right"].every(function(o){return o===!0})}),data:{question:this,panel:e}})),this.survey&&(r=this.survey.getUpdatedPanelFooterActions(e,r,this)),r},t.prototype.createNewPanel=function(){var e=this,n=this.createAndSetupNewPanelObject(),r=this.template.toJSON();new Vt().toObject(r,n),n.renderWidth="100%",n.updateCustomWidgets(),new Vn(this,n),!this.isDesignMode&&!this.isReadOnly&&!this.isValueEmpty(n.getValue())&&this.runPanelsCondition([n],this.getDataFilteredValues(),this.getDataFilteredProperties());for(var o=n.questions,s=0;s<o.length;s++)o[s].setParentQuestion(this);return this.wasRendered&&(n.onFirstRendering(),n.locStrsChanged()),n.onGetFooterActionsCallback=function(){return e.getPanelActions(n)},n.onGetFooterToolbarCssCallback=function(){return e.cssClasses.panelFooter},n.registerPropertyChangedHandlers(["visible"],function(){n.visible?e.onPanelAdded(n):e.onPanelRemoved(n),e.updateFooterActions()}),n},t.prototype.createAndSetupNewPanelObject=function(){var e=this,n=this.createNewPanelObject();return n.isInteractiveDesignElement=!1,n.setParentQuestion(this),n.onGetQuestionTitleLocation=function(){return e.getTemplateQuestionTitleLocation()},n},t.prototype.getTemplateQuestionTitleLocation=function(){return this.templateTitleLocation!="default"?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.getChildErrorLocation=function(e){return this.templateErrorLocation!=="default"?this.templateErrorLocation:i.prototype.getChildErrorLocation.call(this,e)},t.prototype.createNewPanelObject=function(){return G.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!(this.isValueChangingInternally||this.useTemplatePanel)){var e=this.value,n=e&&Array.isArray(e)?e.length:0;n==0&&this.getPropertyValue("panelCount")>0&&(n=this.getPropertyValue("panelCount")),this.settingPanelCountBasedOnValue=!0,this.panelCount=n,this.settingPanelCountBasedOnValue=!1}},t.prototype.setQuestionValue=function(e){if(!this.settingPanelCountBasedOnValue){i.prototype.setQuestionValue.call(this,e,!1),this.setPanelCountBasedOnValue();for(var n=0;n<this.panelsCore.length;n++)this.panelUpdateValueFromSurvey(this.panelsCore[n]);this.updateIsAnswered()}},t.prototype.onSurveyValueChanged=function(e){if(!(e===void 0&&this.isAllPanelsEmpty())){i.prototype.onSurveyValueChanged.call(this,e);for(var n=0;n<this.panelsCore.length;n++)this.panelSurveyValueChanged(this.panelsCore[n]);e===void 0&&this.setValueBasedOnPanelCount(),this.updateIsReady()}},t.prototype.isAllPanelsEmpty=function(){for(var e=0;e<this.panelsCore.length;e++)if(!m.isValueEmpty(this.panelsCore[e].getValue()))return!1;return!0},t.prototype.panelUpdateValueFromSurvey=function(e){for(var n=e.questions,r=this.getPanelItemData(e.data),o=0;o<n.length;o++){var s=n[o];s.updateValueFromSurvey(r[s.getValueName()]),s.updateCommentFromSurvey(r[s.getValueName()+z.commentSuffix]),s.initDataUI()}},t.prototype.panelSurveyValueChanged=function(e){for(var n=e.questions,r=this.getPanelItemData(e.data),o=0;o<n.length;o++){var s=n[o];s.onSurveyValueChanged(r[s.getValueName()])}},t.prototype.onSetData=function(){i.prototype.onSetData.call(this),!this.isLoadingFromJson&&this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.getItemIndex=function(e){var n=this.items.indexOf(e);return n>-1?n:this.items.length},t.prototype.getVisibleItemIndex=function(e){for(var n=this.visiblePanelsCore,r=0;r<n.length;r++)if(n[r].data===e)return r;return n.length},t.prototype.getPanelItemData=function(e){var n=this.items,r=n.indexOf(e),o=this.value;return r<0&&Array.isArray(o)&&o.length>n.length&&(r=n.length),r<0?{}:!o||!Array.isArray(o)||o.length<=r?{}:o[r]},t.prototype.setPanelItemData=function(e,n,r){if(!(this.isSetPanelItemData[n]>this.maxCheckCount)){this.isSetPanelItemData[n]||(this.isSetPanelItemData[n]=0),this.isSetPanelItemData[n]++;var o=this.items,s=o.indexOf(e);s<0&&(s=o.length);var c=this.getUnbindValue(this.value);if((!c||!Array.isArray(c))&&(c=[]),c.length<=s)for(var y=c.length;y<=s;y++)c.push({});if(c[s]||(c[s]={}),this.isValueEmpty(r)?delete c[s][n]:c[s][n]=r,s>=0&&s<this.panelsCore.length&&(this.changingValueQuestion=this.panelsCore[s].getQuestionByValueName(n)),this.value=c,this.changingValueQuestion=null,this.survey){var w={question:this,panel:e.panel,name:n,itemIndex:s,itemValue:c[s],value:r};this.survey.dynamicPanelItemValueChanged(this,w)}this.isSetPanelItemData[n]--,this.isSetPanelItemData[n]-1&&delete this.isSetPanelItemData[n]}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(e){e===void 0&&(e={includeEmpty:!0});var n=i.prototype.getPlainData.call(this,e);if(n){n.isNode=!0;var r=Array.isArray(n.data)?[].concat(n.data):[];n.data=this.panels.map(function(o,s){var c={name:o.name||s,title:o.title||"Panel",value:o.getValue(),displayValue:o.getValue(),getString:function(y){return typeof y=="object"?JSON.stringify(y):y},isNode:!0,data:o.questions.map(function(y){return y.getPlainData(e)}).filter(function(y){return!!y})};return(e.calculations||[]).forEach(function(y){c[y.propertyName]=o[y.propertyName]}),c}),n.data=n.data.concat(r)}return n},t.prototype.updateElementCss=function(e){i.prototype.updateElementCss.call(this,e);for(var n=0;n<this.panelsCore.length;n++){var r=this.panelsCore[n];r.updateElementCss(e)}},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.visiblePanelCount;return this.getLocalizationFormatString("panelDynamicProgressText",this.currentIndex+1,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return(this.currentIndex+1)/this.visiblePanelCount*100+"%"},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return new te().append(i.prototype.getRootCss.call(this)).append(this.cssClasses.empty,this.getShowNoEntriesPlaceholder()).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){var e=this.isRenderModeTab&&!!this.visiblePanelCount;return new te().append(this.cssClasses.header).append(this.cssClasses.headerTop,this.hasTitleOnTop||e).append(this.cssClasses.headerTab,e).toString()},enumerable:!1,configurable:!0}),t.prototype.getPanelWrapperCss=function(e){return new te().append(this.cssClasses.panelWrapper,!e||e.visible).append(this.cssClasses.panelWrapperList,this.isRenderModeList).append(this.cssClasses.panelWrapperInRow,this.panelRemoveButtonLocation==="right").toString()},t.prototype.getPanelRemoveButtonCss=function(){return new te().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,this.panelRemoveButtonLocation==="right").toString()},t.prototype.getAddButtonCss=function(){return new te().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode",this.displayMode==="list").toString()},t.prototype.getPrevButtonCss=function(){return new te().append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()},t.prototype.getNextButtonCss=function(){return new te().append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNextDisabled,!this.isNextButtonVisible).toString()},Object.defineProperty(t.prototype,"noEntriesText",{get:function(){return this.getLocalizableStringText("noEntriesText")},set:function(e){this.setLocalizableStringText("noEntriesText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoEntriesText",{get:function(){return this.getLocalizableString("noEntriesText")},enumerable:!1,configurable:!0}),t.prototype.getShowNoEntriesPlaceholder=function(){return!!this.cssClasses.noEntriesPlaceholder&&!this.isDesignMode&&this.visiblePanelCount===0},t.prototype.needResponsiveWidth=function(){var e=this.getPanel();return!!(e&&e.needResponsiveWidth())},Object.defineProperty(t.prototype,"hasAdditionalTitleToolbar",{get:function(){return this.isRenderModeTab&&this.visiblePanels.length>0},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return this.isRenderModeTab?(this.additionalTitleToolbarValue||(this.additionalTitleToolbarValue=new Ci,this.additionalTitleToolbarValue.dotsItem.popupModel.showPointer=!1,this.additionalTitleToolbarValue.dotsItem.popupModel.verticalPosition="bottom",this.additionalTitleToolbarValue.dotsItem.popupModel.horizontalPosition="center",this.updateElementCss(!1)),this.additionalTitleToolbarValue):null},Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.initFooterToolbar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.updateFooterActions=function(){this.updateFooterActionsCallback&&this.updateFooterActionsCallback()},t.prototype.initFooterToolbar=function(){var e=this;this.footerToolbarValue=this.createActionContainer();var n=[],r=new pt({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),o=new pt({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),s=new pt({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),c=new pt({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),y=new pt({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),w=new pt({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});n.push(r,o,s,c,y,w),this.updateFooterActionsCallback=function(){var N=e.legacyNavigation,Q=e.isRenderModeList,Y=e.isMobile,ce=!N&&!Q;r.visible=ce&&e.currentIndex>0,o.visible=ce&&e.currentIndex<e.visiblePanelCount-1,o.needSpace=Y&&o.visible&&r.visible,s.visible=e.canAddPanel,s.needSpace=e.isMobile&&!o.visible&&r.visible,y.visible=!e.isRenderModeList&&!Y,y.needSpace=!N&&!e.isMobile;var fe=N&&!Q;c.visible=fe,w.visible=fe,c.needSpace=fe},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(n)},t.prototype.createTabByPanel=function(e,n){var r=this;if(this.isRenderModeTab){var o=new ut(e,!0);o.onGetTextCallback=function(y){if(y||(y=r.locTabTitlePlaceholder.renderedHtml),!r.survey)return y;var w={title:y,panel:e,visiblePanelIndex:n};return r.survey.dynamicPanelGetTabTitle(r,w),w.title},o.sharedData=this.locTemplateTabTitle;var s=this.getPanelVisibleIndexById(e.id)===this.currentIndex,c=new pt({id:e.id,pressed:s,locTitle:o,disableHide:s,action:function(){r.currentIndex=r.getPanelVisibleIndexById(c.id)}});return c}},t.prototype.getAdditionalTitleToolbarCss=function(e){var n=e??this.cssClasses;return new te().append(n.tabsRoot).append(n.tabsLeft,this.tabAlign==="left").append(n.tabsRight,this.tabAlign==="right").append(n.tabsCenter,this.tabAlign==="center").toString()},t.prototype.updateTabToolbarItemsPressedState=function(){if(this.isRenderModeTab&&!(this.currentIndex<0||this.currentIndex>=this.visiblePanelCount)){var e=this.visiblePanelsCore[this.currentIndex];this.additionalTitleToolbar.renderedActions.forEach(function(n){var r=n.id===e.id;n.pressed=r,n.disableHide=r,n.mode==="popup"&&n.disableHide&&n.raiseUpdate()})}},t.prototype.updateTabToolbar=function(){var e=this;if(this.isRenderModeTab){for(var n=[],r=this.visiblePanelsCore,o=function(y){s.visiblePanelsCore.forEach(function(w){return n.push(e.createTabByPanel(r[y],y))})},s=this,c=0;c<r.length;c++)o(c);this.additionalTitleToolbar.setItems(n)}},t.prototype.addTabFromToolbar=function(e,n){if(this.isRenderModeTab){var r=this.createTabByPanel(e,n);this.additionalTitleToolbar.actions.splice(n,0,r),this.updateTabToolbarItemsPressedState()}},t.prototype.removeTabFromToolbar=function(e){if(this.isRenderModeTab){var n=this.additionalTitleToolbar.getActionById(e.id);n&&(this.additionalTitleToolbar.actions.splice(this.additionalTitleToolbar.actions.indexOf(n),1),this.updateTabToolbarItemsPressedState())}},Object.defineProperty(t.prototype,"showLegacyNavigation",{get:function(){return!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigation",{get:function(){return this.isReadOnly&&this.visiblePanelCount==1?!1:this.visiblePanelCount>0&&!this.showLegacyNavigation&&!!this.cssClasses.footer},enumerable:!1,configurable:!0}),t.prototype.showSeparator=function(e){return this.isRenderModeList&&e<this.renderedPanels.length-1},t.prototype.calcCssClasses=function(e){var n=i.prototype.calcCssClasses.call(this,e),r=this.additionalTitleToolbar;return r&&(r.containerCss=this.getAdditionalTitleToolbarCss(n),r.cssClasses=n.tabs,r.dotsItem.cssClasses=n.tabs,r.dotsItem.popupModel.contentComponentData.model.cssClasses=e.list),n},t.prototype.onMobileChanged=function(){i.prototype.onMobileChanged.call(this),this.updateFooterActions()},t.maxCheckCount=3,Cr([be({})],t.prototype,"_renderedPanels",void 0),Cr([D({onSet:function(e,n){n.fireCallback(n.renderModeChangedCallback),n.updatePanelView()}})],t.prototype,"displayMode",void 0),Cr([D({onSet:function(e,n){n.fireCallback(n.currentIndexChangedCallback)}})],t.prototype,"showProgressBar",void 0),Cr([D({onSet:function(e,n){}})],t.prototype,"progressBarLocation",void 0),Cr([D({defaultValue:!1,onSet:function(e,n){n.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(K);G.addClass("paneldynamic",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"templateElements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateTabTitle",serializationProperty:"locTemplateTabTitle",visibleIf:function(i){return i.displayMode==="tab"}},{name:"tabTitlePlaceholder",serializationProperty:"locTabTitlePlaceholder",visibleIf:function(i){return i.displayMode==="tab"}},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"noEntriesText:text",serializationProperty:"locNoEntriesText"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"newPanelPosition",choices:["next","last"],default:"last",category:"layout"},{name:"panelCount:number",isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",defaultFunc:function(){return z.panel.maxPanelCount}},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"],visibleIf:function(i){return i.displayMode==="list"}},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText",visibleIf:function(i){return i.confirmDelete}},{name:"panelAddText",serializationProperty:"locPanelAddText",visibleIf:function(i){return i.allowAddPanel}},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText",visibleIf:function(i){return i.allowRemovePanel}},{name:"panelPrevText",serializationProperty:"locPanelPrevText",visibleIf:function(i){return i.displayMode!=="list"}},{name:"panelNextText",serializationProperty:"locPanelNextText",visibleIf:function(i){return i.displayMode!=="list"}},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"showRangeInProgress:boolean",default:!0,visible:!1},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom","tab"],visible:!1},{name:"displayMode",default:"list",choices:["list","carousel","tab"]},{name:"showProgressBar:boolean",default:!0,visibleIf:function(i){return i.displayMode==="carousel"}},{name:"progressBarLocation",default:"top",choices:["top","bottom","topBottom"],visibleIf:function(i){return i.showProgressBar}},{name:"tabAlign",default:"center",choices:["left","center","right"],visibleIf:function(i){return i.displayMode==="tab"}},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]},{name:"templateErrorLocation",default:"default",choices:["default","top","bottom"]},{name:"templateVisibleIf:expression",category:"logic"},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"],visibleIf:function(i){return i.allowRemovePanel}}],function(){return new Hl("")},"question"),bt.Instance.registerQuestion("paneldynamic",function(i){return new Hl(i)});var ld=function(){function i(){}return i.getProgressTextInBarCss=function(t){return new te().append(t.progressText).append(t.progressTextInBar).toString()},i.getProgressTextUnderBarCss=function(t){return new te().append(t.progressText).append(t.progressTextUnderBar).toString()},i}(),pi=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),of=function(i){pi(t,i);function t(){var e=i.call(this)||this;return e.idValue=t.idCounter++,e.registerPropertyChangedHandlers(["operator","value","name"],function(){e.oldPropertiesChanged()}),e.registerPropertyChangedHandlers(["expression"],function(){e.onExpressionChanged()}),e}return Object.defineProperty(t,"operators",{get:function(){return t.operatorsValue!=null||(t.operatorsValue={empty:function(e,n){return!e},notempty:function(e,n){return!!e},equal:function(e,n){return e==n},notequal:function(e,n){return e!=n},contains:function(e,n){return e&&e.indexOf&&e.indexOf(n)>-1},notcontains:function(e,n){return!e||!e.indexOf||e.indexOf(n)==-1},greater:function(e,n){return e>n},less:function(e,n){return e<n},greaterorequal:function(e,n){return e>=n},lessorequal:function(e,n){return e<=n}}),t.operatorsValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),n=this.expression?this.expression:this.buildExpression();return n&&(e+=", "+n),e},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isGhost===!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!0},t.prototype.canBeExecutedOnComplete=function(){return!1},t.prototype.checkExpression=function(e,n,r,o,s){s===void 0&&(s=null),this.isExecutingOnNextPage=e,this.canBeExecuted(e)&&(n&&!this.canBeExecutedOnComplete()||this.isCheckRequired(r)&&(this.conditionRunner?this.perform(o,s):this.canSuccessOnEmptyExpression()&&this.triggerResult(!0,o,s)))},t.prototype.canSuccessOnEmptyExpression=function(){return!1},t.prototype.check=function(e){var n=t.operators[this.operator](e,this.value);n?this.onSuccess({},null):this.onFailure()},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.perform=function(e,n){var r=this;this.conditionRunner.onRunComplete=function(o){r.triggerResult(o,e,n)},this.conditionRunner.run(e,n)},t.prototype.triggerResult=function(e,n,r){e?(this.onSuccess(n,r),this.onSuccessExecuted()):this.onFailure()},t.prototype.onSuccess=function(e,n){},t.prototype.onFailure=function(){},t.prototype.onSuccessExecuted=function(){},t.prototype.endLoadingFromJson=function(){i.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.conditionRunner=null},t.prototype.buildExpression=function(){return!this.name||this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+fn.toOperandString(this.value)},t.prototype.isCheckRequired=function(e){return e?(this.createConditionRunner(),this.conditionRunner&&this.conditionRunner.hasFunction()===!0?!0:new ke().isAnyKeyChanged(e,this.getUsedVariables())):!1},t.prototype.getUsedVariables=function(){if(!this.conditionRunner)return[];var e=this.conditionRunner.getVariables();if(Array.isArray(e))for(var n="-unwrapped",r=e.length-1;r>=0;r--){var o=e[r];o.endsWith(n)&&e.push(o.substring(0,o.length-n.length))}return e},t.prototype.createConditionRunner=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new pn(e))}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return this.operator!=="empty"&&this.operator!="notempty"},enumerable:!1,configurable:!0}),t.idCounter=1,t.operatorsValue=null,t}(Je),Fi=function(i){pi(t,i);function t(){var e=i.call(this)||this;return e.ownerValue=null,e}return Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!1,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},t.prototype.getSurvey=function(e){return this.owner&&this.owner.getSurvey?this.owner.getSurvey():null},t.prototype.isRealExecution=function(){return!0},t.prototype.onSuccessExecuted=function(){this.owner&&this.isRealExecution()&&this.owner.triggerExecuted(this)},t}(of),sf=function(i){pi(t,i);function t(){var e=i.call(this)||this;return e.pages=[],e.questions=[],e}return t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,n){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var n=this.owner.getObjects(this.pages,this.questions),r=0;r<n.length;r++)e(n[r])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(Fi),af=function(i){pi(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isRealExecution=function(){return!z.triggers.executeCompleteOnValueChanged===this.isExecutingOnNextPage},t.prototype.onSuccess=function(e,n){this.owner&&(this.isRealExecution()?this.owner.setCompleted(this):this.owner.canBeCompleted(this,!0))},t.prototype.onFailure=function(){this.owner.canBeCompleted(this,!1)},t}(Fi),uf=function(i){pi(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName},t.prototype.onPropertyValueChanged=function(e,n,r){if(i.prototype.onPropertyValueChanged.call(this,e,n,r),e==="setToName"){var o=this.getSurvey();o&&!o.isLoadingFromJson&&o.isDesignMode&&(this.setValue=void 0)}},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable")},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,n){!this.setToName||!this.owner||this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(Fi),kr=function(i){pi(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return this.canBeExecuted(!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return e===!z.triggers.executeSkipOnValueChanged},t.prototype.onSuccess=function(e,n){!this.gotoName||!this.owner||this.owner.focusQuestion(this.gotoName)},t}(Fi),En=function(i){pi(t,i);function t(){return i.call(this)||this}return t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!e},t.prototype.onSuccess=function(e,n){var r=this;if(!(!this.owner||!this.runExpression)){var o=new Ir(this.runExpression);o.canRun&&(o.onRunComplete=function(s){r.onCompleteRunExpression(s)},o.run(e,n))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&e!==void 0&&this.owner.setTriggerValue(this.setToName,m.convertValToQuestionVal(e),!1)},t}(Fi),wu=function(i){pi(t,i);function t(){return i.call(this)||this}return t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName&&!!this.fromName},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyDisplayValue",{get:function(){return this.getPropertyValue("copyDisplayValue")},set:function(e){this.setPropertyValue("copyDisplayValue",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,n){!this.setToName||!this.owner||this.owner.copyTriggerValue(this.setToName,this.fromName,this.copyDisplayValue)},t.prototype.canSuccessOnEmptyExpression=function(){return!0},t.prototype.getUsedVariables=function(){var e=i.prototype.getUsedVariables.call(this);return e.length===0&&this.fromName&&e.push(this.fromName),e},t}(Fi);G.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),G.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),G.addClass("visibletrigger",["pages:pages","questions:questions"],function(){return new sf},"surveytrigger"),G.addClass("completetrigger",[],function(){return new af},"surveytrigger"),G.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(i){return!!i&&!!i.setToName}},{name:"isVariable:boolean",visible:!1}],function(){return new uf},"surveytrigger"),G.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"},{name:"copyDisplayValue:boolean",visible:!1}],function(){return new wu},"surveytrigger"),G.addClass("skiptrigger",[{name:"!gotoName:question"}],function(){return new kr},"surveytrigger"),G.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],function(){return new En},"surveytrigger");var lf=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),zl=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},cf=function(i){lf(t,i);function t(e,n){n===void 0&&(n=null);var r=i.call(this)||this;return r.closeOnCompleteTimeout=0,n?r.surveyValue=n:r.surveyValue=r.createSurvey(e),r.surveyValue.fitToContainer=!0,r.windowElement=M.createElement("div"),r.survey.onComplete.add(function(o,s){r.onSurveyComplete()}),r.registerPropertyChangedHandlers(["isShowing"],function(){r.showingChangedCallback&&r.showingChangedCallback()}),r.registerPropertyChangedHandlers(["isExpanded"],function(){r.onExpandedChanged()}),r.width=new Lt(function(){return r.survey.width}),r.width=r.survey.width,r.updateCss(),r.onCreating(),r}return t.prototype.onCreating=function(){},t.prototype.getType=function(){return"popupsurvey"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.setPropertyValue("isShowing",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFullScreen",{get:function(){return this.getPropertyValue("isFullScreen",!1)},set:function(e){!this.isExpanded&&e&&(this.isExpanded=!0),this.setPropertyValue("isFullScreen",e),this.setCssRoot()},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},t.prototype.toggleFullScreen=function(){this.isFullScreen=!this.isFullScreen},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(e){this.isFullScreen&&!e&&(this.isFullScreen=!1),this.setPropertyValue("isExpanded",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return!this.isExpanded},enumerable:!1,configurable:!0}),t.prototype.onExpandedChanged=function(){this.expandedChangedCallback&&this.expandedChangedCallback(),this.updateCssButton()},Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle.isEmpty?null:this.survey.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.survey.locTitle.isEmpty?null:this.survey.locDescription},enumerable:!1,configurable:!0}),t.prototype.expand=function(){this.isExpanded=!0},t.prototype.collapse=function(){this.isExpanded=!1},t.prototype.changeExpandCollapse=function(){this.isExpanded=!this.isExpanded},Object.defineProperty(t.prototype,"allowClose",{get:function(){return this.getPropertyValue("allowClose",!1)},set:function(e){this.setPropertyValue("allowClose",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowFullScreen",{get:function(){return this.getPropertyValue("allowFullScreen",!1)},set:function(e){this.setPropertyValue("allowFullScreen",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssButton",{get:function(){return this.getPropertyValue("cssButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){var e=this.getPropertyValue("cssRoot","");return this.isCollapsed&&(e+=" "+this.getPropertyValue("cssRootCollapsedMod","")),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRootCollapsedMod",{get:function(){return this.getPropertyValue("cssRootCollapsedMod")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRootContent",{get:function(){return this.getPropertyValue("cssRootContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssBody",{get:function(){return this.getPropertyValue("cssBody","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderRoot",{get:function(){return this.getPropertyValue("cssHeaderRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderTitleCollapsed",{get:function(){return this.getPropertyValue("cssHeaderTitleCollapsed","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderButtonsContainer",{get:function(){return this.getPropertyValue("cssHeaderButtonsContainer","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderCollapseButton",{get:function(){return this.getPropertyValue("cssHeaderCollapseButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderCloseButton",{get:function(){return this.getPropertyValue("cssHeaderCloseButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderFullScreenButton",{get:function(){return this.getPropertyValue("cssHeaderFullScreenButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width","60%");return e&&!isNaN(e)&&(e=e+"px"),e},enumerable:!1,configurable:!0}),t.prototype.updateCss=function(){if(!(!this.css||!this.css.window)){var e=this.css.window;this.setCssRoot(),this.setPropertyValue("cssRootCollapsedMod",e.rootCollapsedMod),this.setPropertyValue("cssRootContent",e.rootContent),this.setPropertyValue("cssBody",e.body);var n=e.header;n&&(this.setPropertyValue("cssHeaderRoot",n.root),this.setPropertyValue("cssHeaderTitleCollapsed",n.titleCollapsed),this.setPropertyValue("cssHeaderButtonsContainer",n.buttonsContainer),this.setPropertyValue("cssHeaderCollapseButton",n.collapseButton),this.setPropertyValue("cssHeaderCloseButton",n.closeButton),this.setPropertyValue("cssHeaderFullScreenButton",n.fullScreenButton),this.updateCssButton())}},t.prototype.setCssRoot=function(){var e=this.css.window;this.isFullScreen?this.setPropertyValue("cssRoot",e.root+" "+e.rootFullScreenMode):this.setPropertyValue("cssRoot",e.root)},t.prototype.updateCssButton=function(){var e=this.css.window?this.css.window.header:null;e&&this.setCssButton(this.isExpanded?e.buttonExpanded:e.buttonCollapsed)},t.prototype.setCssButton=function(e){e&&this.setPropertyValue("cssButton",e)},t.prototype.createSurvey=function(e){return new zt(e)},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(this.closeOnCompleteTimeout==0)this.hide();else{var e=this,n=null,r=function(){e.hide(),clearInterval(n)};n=setInterval(r,this.closeOnCompleteTimeout*1e3)}},t.prototype.onScroll=function(){this.survey.onScroll()},zl([D()],t.prototype,"width",void 0),t}(Je),cd=function(i){lf(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t}(cf),va=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Pu=function(i){va(t,i);function t(e){var n=i.call(this,e)||this;return n.onScrollOutsideCallback=function(r){n.preventScrollOuside(r,r.deltaY)},n}return t.prototype.getStyleClass=function(){return i.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},t.prototype.getShowFooter=function(){return!0},t.prototype.createFooterActionBar=function(){var e=this;i.prototype.createFooterActionBar.call(this),this.footerToolbar.containerCss="sv-footer-action-bar",this.footerToolbarValue.addAction({id:"apply",visibleIndex:20,title:this.applyButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--apply sd-btn sd-btn--action",action:function(){e.apply()}})},Object.defineProperty(t.prototype,"applyButtonText",{get:function(){return this.getLocalizationString("modalApplyButtonText")},enumerable:!1,configurable:!0}),t.prototype.apply=function(){this.model.onApply&&!this.model.onApply()||this.hidePopup()},t.prototype.clickOutside=function(){},t.prototype.onKeyDown=function(e){(e.key==="Escape"||e.keyCode===27)&&this.model.onCancel(),i.prototype.onKeyDown.call(this,e)},t.prototype.updateOnShowing=function(){this.container&&this.container.addEventListener("wheel",this.onScrollOutsideCallback,{passive:!1}),i.prototype.updateOnShowing.call(this)},t.prototype.updateOnHiding=function(){this.container&&this.container.removeEventListener("wheel",this.onScrollOutsideCallback),i.prototype.updateOnHiding.call(this)},t}(yl),xu=function(){return xu=Object.assign||function(i){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},xu.apply(this,arguments)};function fd(i,t){var e,n=xu({},i);n.verticalPosition="top",n.horizontalPosition="left",n.showPointer=!1,n.isModal=!0,n.displayMode=i.displayMode||"popup";var r=new vi(i.componentName,i.data,n);r.isFocusedContent=(e=i.isFocusedContent)!==null&&e!==void 0?e:!0;var o=new Pu(r);if(t&&t.appendChild){var s=M.createElement("div");t.appendChild(s),o.setComponentElement(s)}o.container||o.initializePopupContainer();var c=function(y,w){w.isVisible||s&&o.resetComponentElement(),o.onVisibilityChanged.remove(c)};return o.onVisibilityChanged.add(c),o}function pd(i){return i.isModal?new Pu(i):new nu(i)}var ff=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Ul=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Wl=function(i){ff(t,i);function t(e,n,r){n===void 0&&(n=null),r===void 0&&(r="buttongroupitemvalue");var o=i.call(this,e,n,r)||this;return o.typeName=r,o}return t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},Ul([D()],t.prototype,"iconName",void 0),Ul([D()],t.prototype,"iconSize",void 0),Ul([D()],t.prototype,"showCaption",void 0),t}(ge),$l=function(i){ff(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(Mi);G.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],function(){return new $l("")},"checkboxbase"),G.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],function(i){return new Wl(i)},"itemvalue");var dd=function(){function i(t,e,n){this.question=t,this.item=e,this.index=n}return Object.defineProperty(i.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"showCaption",{get:function(){return this.item.showCaption||this.item.showCaption===void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"labelClass",{get:function(){return new te().append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"css",{get:function(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}},enumerable:!1,configurable:!0}),i.prototype.onChange=function(){this.question.renderedValue=this.item.value},i}(),Gl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),pf=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},ki=function(i){Gl(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getSurvey=function(e){return this.owner},t.prototype.getType=function(){return"masksettings"},t.prototype.setData=function(e){var n=this,r=G.getProperties(this.getType());r.forEach(function(o){var s=e[o.name];n[o.name]=s!==void 0?s:o.getDefaultValue(n)})},t.prototype.getData=function(){var e=this,n={},r=G.getProperties(this.getType());return r.forEach(function(o){var s=e[o.name];o.isDefaultValue(s)||(n[o.name]=s)}),n},t.prototype.processInput=function(e){return{value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1}},t.prototype.getUnmaskedValue=function(e){return e},t.prototype.getMaskedValue=function(e){return e},t.prototype.getTextAlignment=function(){return"auto"},t.prototype.getTypeForExpressions=function(){return"text"},pf([D()],t.prototype,"saveMaskedValue",void 0),t}(Je);G.addClass("masksettings",[{name:"saveMaskedValue:boolean",visibleIf:function(i){return i?i.getType()!=="masksettings":!1}}],function(){return new ki});var Jl=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),df=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function Vu(i){for(var t=[],e=!1,n=Object.keys(z.maskSettings.patternDefinitions),r=0;r<i.length;r++){var o=i[r];o===z.maskSettings.patternEscapeChar?e=!0:e?(e=!1,t.push({type:"fixed",value:o})):t.push({type:n.indexOf(o)!==-1?"regex":"const",value:o})}return t}function Su(i,t,e){for(var n=z.maskSettings.patternDefinitions[e.value];t<i.length;){if(i[t].match(n))return t;t++}return t}function hf(i,t,e){for(var n=i??"",r="",o=0,s=typeof t=="string"?Vu(t):t,c=0;c<s.length;c++)switch(s[c].type){case"regex":if(o<n.length&&(o=Su(n,o,s[c])),o<n.length)r+=n[o];else if(e)r+=z.maskSettings.patternPlaceholderChar;else return r;o++;break;case"const":case"fixed":r+=s[c].value,s[c].value===n[o]&&o++;break}return r}function ir(i,t,e,n){n===void 0&&(n=!1);var r="";if(!i)return r;for(var o=typeof t=="string"?Vu(t):t,s=0;s<o.length;s++)if(o[s].type==="fixed"&&!n&&(r+=o[s].value),o[s].type==="regex"){var c=z.maskSettings.patternDefinitions[o[s].value];if(i[s]&&i[s].match(c))r+=i[s];else if(e){r="";break}else break}return r}var di=function(i){Jl(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.literals=[],e}return t.prototype.updateLiterals=function(){this.literals=Vu(this.pattern||"")},t.prototype.onPropertyValueChanged=function(e,n,r){e==="pattern"&&this.updateLiterals()},t.prototype.getType=function(){return"patternmask"},t.prototype.fromJSON=function(e,n){i.prototype.fromJSON.call(this,e,n),this.updateLiterals()},t.prototype._getMaskedValue=function(e,n){n===void 0&&(n=!1);var r=e??"";return hf(r,this.literals,n)},t.prototype._getUnmaskedValue=function(e,n){n===void 0&&(n=!1);var r=e??"";return ir(r,this.literals,n)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1};if(!e.insertedChars&&e.selectionStart===e.selectionEnd)return n;var r=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),o=ir(e.prevValue.slice(0,e.selectionStart),this.literals.slice(0,e.selectionStart),!1),s=ir(e.prevValue.slice(e.selectionEnd),this.literals.slice(e.selectionEnd),!1,!0);return n.value=this._getMaskedValue(o+(e.insertedChars||"")+s,!0),!e.insertedChars&&e.inputDirection==="backward"?n.caretPosition=e.selectionStart:n.caretPosition=this._getMaskedValue(r).length,n},t.prototype.getMaskedValue=function(e){return this._getMaskedValue(e,!0)},t.prototype.getUnmaskedValue=function(e){return this._getUnmaskedValue(e,!0)},df([D()],t.prototype,"pattern",void 0),t}(ki);G.addClass("patternmask",[{name:"pattern"}],function(){return new di},"masksettings");var hd=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Po=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function gd(i,t,e){t===void 0&&(t=!0),e===void 0&&(e=3);var n=[];if(t){for(var r=i.length-e;r>-e;r-=e)n.push(i.substring(r,r+e));n=n.reverse()}else for(var r=0;r<i.length;r+=e)n.push(i.substring(r,r+e));return n}var Zl=function(i){hd(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.calccaretPosition=function(e,n,r){for(var o=e?this.displayNumber(this.parseNumber(e),!1).length:0,s=0,c=n.selectionStart,y=!n.insertedChars&&n.inputDirection==="forward",w=0;w<r.length;w++){var N=r[w];if(N!==this.thousandsSeparator&&s++,s===o+(y?1:0)){y?c=w:c=w+1;break}}return c},t.prototype.numericalCompositionIsEmpty=function(e){return!e.integralPart&&!e.fractionalPart},t.prototype.displayNumber=function(e,n,r){n===void 0&&(n=!0),r===void 0&&(r=!1);var o=e.integralPart;n&&o&&(o=gd(o).join(this.thousandsSeparator));var s=e.fractionalPart,c=e.isNegative?"-":"";if(s===""){if(r)return!o||o==="0"?o:c+o;var y=e.hasDecimalSeparator&&!r?this.decimalSeparator:"",w=o+y;return w==="0"?w:c+w}else return o=o||"0",s=s.substring(0,this.precision),[c+o,s].join(this.decimalSeparator)},t.prototype.convertNumber=function(e){var n,r=e.isNegative?"-":"";return e.fractionalPart?n=parseFloat(r+(e.integralPart||"0")+"."+e.fractionalPart.substring(0,this.precision)):n=parseInt(r+e.integralPart||"0"),n},t.prototype.validateNumber=function(e,n){var r=this.min||Number.MIN_SAFE_INTEGER,o=this.max||Number.MAX_SAFE_INTEGER;if(this.numericalCompositionIsEmpty(e))return!0;if(this.min!==void 0||this.max!==void 0){var s=this.convertNumber(e);if(Number.isNaN(s)||s>=r&&s<=o)return!0;if(!n){if(!e.hasDecimalSeparator&&s!=0){var c=s,y=s;if(s>0){if(s+1>r&&s<=o)return!0;for(;c=c*10+9,y=y*10,!(y>o);)if(c>r)return!0;return!1}if(s<0){if(s>=r&&s-1<o)return!0;for(;c=c*10,y=y*10-9,!(c<r);)if(y<o)return!0;return!1}}else{var w=Math.pow(.1,(e.fractionalPart||"").length);if(s>=0)return s+w>r&&s<=o;if(s<0)return s>=r&&s-w<o}return s>=0&&s<=o||s<0&&s>=r}return!1}return!0},t.prototype.parseNumber=function(e){for(var n={integralPart:"",fractionalPart:"",hasDecimalSeparator:!1,isNegative:!1},r=e==null?"":e.toString(),o=0,s=0;s<r.length;s++){var c=r[s];switch(c){case"-":{this.allowNegativeValues&&(this.min===void 0||this.min<0)&&o++;break}case this.decimalSeparator:{this.precision>0&&(n.hasDecimalSeparator=!0);break}case this.thousandsSeparator:break;default:c.match(ou)&&(n.hasDecimalSeparator?n.fractionalPart+=c:n.integralPart+=c)}}return n.isNegative=o%2!==0,n.integralPart.length>1&&n.integralPart[0]==="0"&&(n.integralPart=n.integralPart.slice(1)),n},t.prototype.getNumberMaskedValue=function(e,n){n===void 0&&(n=!1);var r=this.parseNumber(e);if(!this.validateNumber(r,n))return null;var o=this.displayNumber(r,!0,n);return o},t.prototype.getNumberUnmaskedValue=function(e){var n=this.parseNumber(e);if(!this.numericalCompositionIsEmpty(n))return this.convertNumber(n)},t.prototype.getTextAlignment=function(){return"right"},t.prototype.getMaskedValue=function(e){var n=e==null?"":e.toString();return n=n.replace(".",this.decimalSeparator),this.getNumberMaskedValue(n,!0)},t.prototype.getUnmaskedValue=function(e){return this.getNumberUnmaskedValue(e)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},r=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),o=e.prevValue.slice(e.selectionEnd),s=r+o,c=this.parseNumber(s);if(!this.validateNumber(c,!1))return n;var y=this.getNumberMaskedValue(s),w=this.calccaretPosition(r,e,y);return n.value=y,n.caretPosition=w,n},t.prototype.getType=function(){return"numericmask"},t.prototype.isPropertyEmpty=function(e){return e===""||e===void 0||e===null},Po([D()],t.prototype,"allowNegativeValues",void 0),Po([D()],t.prototype,"decimalSeparator",void 0),Po([D()],t.prototype,"precision",void 0),Po([D()],t.prototype,"thousandsSeparator",void 0),Po([D()],t.prototype,"min",void 0),Po([D()],t.prototype,"max",void 0),t}(ki);G.addClass("numericmask",[{name:"allowNegativeValues:boolean",default:!0},{name:"decimalSeparator",default:".",maxLength:1},{name:"thousandsSeparator",default:",",maxLength:1},{name:"precision:number",default:2,minValue:0},{name:"min:number"},{name:"max:number"}],function(){return new Zl},"masksettings");var md=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),Eu=function(){return Eu=Object.assign||function(i){for(var t,e=1,n=arguments.length;e<n;e++){t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},Eu.apply(this,arguments)},gf=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};function mf(i,t){switch(i){case"hour":case"minute":case"second":case"day":case"month":return 2;case"timeMarker":case"year":return t;default:return 1}}function yd(i,t){var e=t;return i.count<i.maxCount&&(i.type==="day"&&parseInt(t[0])===0||i.type==="month"&&parseInt(t[0])===0)&&(e=t.slice(1,t.length)),e}function vd(i){for(var t=[],e,n=function(s,c,y){if(y===void 0&&(y=!1),e&&e===s){t[t.length-1].count++;var w=mf(s,t[t.length-1].count);t[t.length-1].maxCount=w}else{var w=mf(s,1);t.push({type:s,value:c,count:1,maxCount:w,upperCase:y})}},r=0;r<i.length;r++){var o=i[r];switch(o){case"m":n("month",o);break;case"d":n("day",o);break;case"y":n("year",o);break;case"h":n("hour",o,!1);break;case"H":n("hour",o,!0);break;case"M":n("minute",o);break;case"s":n("second",o);break;case"t":n("timeMarker",o);break;case"T":n("timeMarker",o,!0);break;default:t.push({type:"separator",value:o,count:1,maxCount:1,upperCase:!1});break}e=t[t.length-1].type}return t}var yf=function(i){md(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.defaultDate="1970-01-01T",e.turnOfTheCentury=68,e.twelve=12,e.lexems=[],e.inputDateTimeData=[],e.validBeginningOfNumbers={hour:1,hourU:2,minute:5,second:5,day:3,month:1},e}return Object.defineProperty(t.prototype,"hasDatePart",{get:function(){return this.lexems.some(function(e){return e.type==="day"||e.type==="month"||e.type==="year"})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTimePart",{get:function(){return this.lexems.some(function(e){return e.type==="hour"||e.type==="minute"||e.type==="second"})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"is12Hours",{get:function(){return this.lexems.filter(function(e){return e.type==="hour"&&!e.upperCase}).length>0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"datetimemask"},t.prototype.getTypeForExpressions=function(){return this.hasTimePart?"datetime-local":"datetime"},t.prototype.updateLiterals=function(){this.lexems=vd(this.pattern||"")},t.prototype.leaveOnlyNumbers=function(e){for(var n="",r=0;r<e.length;r++)e[r].match(ou)&&(n+=e[r]);return n},t.prototype.getMaskedStrFromISO=function(e){var n=this,r=new Date(e);return this.initInputDateTimeData(),this.hasTimePart||(r=new Date(e+"T00:00:00")),this.hasDatePart||(r=new Date(this.defaultDate+e)),isNaN(r)||this.lexems.forEach(function(o,s){var c=n.inputDateTimeData[s];switch(c.isCompleted=!0,o.type){case"hour":{n.is12Hours?c.value=((r.getHours()-1)%n.twelve+1).toString():c.value=r.getHours().toString();break}case"minute":{c.value=r.getMinutes().toString();break}case"second":{c.value=r.getSeconds().toString();break}case"timeMarker":{var y=r.getHours()>=n.twelve?"pm":"am";c.value=o.upperCase?y.toUpperCase():y;break}case"day":{c.value=r.getDate().toString();break}case"month":{c.value=(r.getMonth()+1).toString();break}case"year":{var w=r.getFullYear();o.count==2&&(w=w%100),c.value=w.toString();break}}}),this.getFormatedString(!0)},t.prototype.initInputDateTimeData=function(){var e=this;this.inputDateTimeData=[],this.lexems.forEach(function(n){e.inputDateTimeData.push({lexem:n,isCompleted:!1,value:void 0})})},t.prototype.getISO_8601Format=function(e){var n=[],r=[];if(e.year!==void 0){var o=this.getPlaceholder(4,e.year.toString(),"0")+e.year;n.push(o)}if(e.month!==void 0&&e.year!==void 0){var s=this.getPlaceholder(2,e.month.toString(),"0")+e.month;n.push(s)}if(e.day!==void 0&&e.month!==void 0&&e.year!==void 0){var c=this.getPlaceholder(2,e.day.toString(),"0")+e.day;n.push(c)}if(e.hour!==void 0){var y=this.getPlaceholder(2,e.hour.toString(),"0")+e.hour;r.push(y)}if(e.minute!==void 0&&e.hour!==void 0){var w=this.getPlaceholder(2,e.minute.toString(),"0")+e.minute;r.push(w)}if(e.second!==void 0&&e.minute!==void 0&&e.hour!==void 0){var N=this.getPlaceholder(2,e.second.toString(),"0")+e.second;r.push(N)}var Q=[];return n.length>0&&Q.push(n.join("-")),r.length>1&&Q.push(r.join(":")),Q.join("T")},t.prototype.isYearValid=function(e){if(e.min===void 0&&e.max===void 0)return!1;var n=e.year.toString(),r=e.min.toISOString().slice(0,n.length),o=e.max.toISOString().slice(0,n.length);return e.year>=parseInt(r)&&e.year<=parseInt(o)},t.prototype.createIDateTimeCompositionWithDefaults=function(e,n){var r=e.day==29&&e.month==2,o=e.min.getFullYear(),s=e.max.getFullYear();r&&(o=Math.ceil(o/4)*4,s=Math.floor(o/4)*4,o>s&&(o=void 0,s=void 0));var c=e.year!==void 0?e.year:n?s:o,y=e.month!==void 0?e.month:n&&this.hasDatePart?12:1,w=e.day!==void 0?e.day:n&&this.hasDatePart?this.getMaxDateForMonth(c,y):1,N=e.hour!==void 0?e.hour:n?23:0,Q=e.minute!==void 0?e.minute:n?59:0,Y=e.second!==void 0?e.second:n?59:0;return{year:c,month:y,day:w,hour:N,minute:Q,second:Y}},t.prototype.getMaxDateForMonth=function(e,n){return n==2?e%4==0&&e%100!=0||e%400?29:28:[31,28,31,30,31,30,31,31,30,31,30,31][n-1]},t.prototype.isDateValid=function(e){var n=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!1))),r=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!0)));return!isNaN(n)&&(n.getDate()===e.day||e.day===void 0)&&(n.getMonth()===e.month-1||e.month===void 0)&&(n.getFullYear()===e.year||e.year===void 0)&&r>=e.min&&n<=e.max},t.prototype.getPlaceholder=function(e,n,r){var o=e-(n||"").length,s=o>0?r.repeat(o):"";return s},t.prototype.isDateValid12=function(e){return this.is12Hours?this.is12Hours&&e.hour>this.twelve?!1:e.timeMarker?e.timeMarker[0].toLowerCase()==="p"?(e.hour!==this.twelve&&(e.hour+=this.twelve),this.isDateValid(e)):(e.hour===this.twelve&&(e.hour=0),this.isDateValid(e)):this.isDateValid(e)?!0:(e.hour+=this.twelve,this.isDateValid(e)):this.isDateValid(e)},t.prototype.updateTimeMarkerInputDateTimeData=function(e,n){var r=e.value;if(r){var o="timeMarker",s=Eu({},n);s[o]=r,this.isDateValid12(s)?e.isCompleted=!0:r=r.slice(0,r.length-1),e.value=r||void 0,n[o]=r||void 0}},t.prototype.updateInputDateTimeData=function(e,n){var r=e.value;if(r){var o=e.lexem.type,s=Eu({},n);if(s[o]=parseInt(this.parseTwoDigitYear(e)),r.length===e.lexem.maxCount)if(this.isDateValid12(s)){e.isCompleted=!0,e.value=r||void 0,n[o]=parseInt(r)>0?parseInt(r):void 0;return}else r=r.slice(0,r.length-1);s[o]=parseInt(r);var c=parseInt(r[0]),y=this.validBeginningOfNumbers[o+(e.lexem.upperCase?"U":"")];o==="year"&&!this.isYearValid(s)?(r=r.slice(0,r.length-1),e.isCompleted=!1):y!==void 0&&c>y?this.isDateValid12(s)?e.isCompleted=!0:r=r.slice(0,r.length-1):y!==void 0&&c!==0&&c<=y&&(this.checkValidationDateTimePart(s,o,e),e.isCompleted&&!this.isDateValid12(s)&&(r=r.slice(0,r.length-1))),e.value=r||void 0,n[o]=parseInt(r)>0?parseInt(r):void 0}},t.prototype.checkValidationDateTimePart=function(e,n,r){var o=e[n],s=o*10,c=10;n==="month"&&(c=3),n==="hour"&&(c=this.is12Hours?3:5),r.isCompleted=!0;for(var y=0;y<c;y++)if(e[n]=s+y,this.isDateValid12(e)){r.isCompleted=!1;break}e[n]=o},t.prototype.getCorrectDatePartFormat=function(e,n){var r=e.lexem,o=e.value||"";if(o&&r.type==="timeMarker")return n&&(o=o+this.getPlaceholder(r.count,o,r.value)),o;if(o&&e.isCompleted&&(o=parseInt(o).toString()),o&&e.isCompleted){var s=this.getPlaceholder(r.count,o,"0");o=s+o}else o=yd(r,o),n&&(o+=this.getPlaceholder(r.count,o,r.value));return o},t.prototype.createIDateTimeComposition=function(){var e,n;this.hasDatePart?(e=this.min||"0001-01-01",n=this.max||"9999-12-31"):(e=this.defaultDate+(this.min||"00:00:00"),n=this.defaultDate+(this.max||"23:59:59"));var r={hour:void 0,minute:void 0,second:void 0,day:void 0,month:void 0,year:void 0,min:new Date(e),max:new Date(n)};return r},t.prototype.parseTwoDigitYear=function(e){var n=e.value;if(e.lexem.type!=="year"||e.lexem.count>2)return n;this.max&&this.max.length>=4&&(this.turnOfTheCentury=parseInt(this.max.slice(2,4)));var r=parseInt(n),o=(r>this.turnOfTheCentury?"19":"20")+n;return o},t.prototype.getFormatedString=function(e){var n="",r="",o=!1,s=this.inputDateTimeData.length-1;if(!e){var c=this.inputDateTimeData.filter(function(Y){return!!Y.value});s=this.inputDateTimeData.indexOf(c[c.length-1])}for(var y=0;y<this.inputDateTimeData.length;y++){var w=this.inputDateTimeData[y];switch(w.lexem.type){case"timeMarker":case"hour":case"minute":case"second":case"day":case"month":case"year":if(w.value===void 0&&!e)return n+=o?r:"",n;var N=e||s>y,Q=this.getCorrectDatePartFormat(w,N);n+=r+Q,o=w.isCompleted;break;case"separator":r=w.lexem.value;break}}return n},t.prototype.cleanTimeMarker=function(e,n){var r="";e=e.toUpperCase();for(var o=0;o<e.length;o++)(!r&&(e[o]=="P"||e[o]=="A")||r&&e[o]=="M")&&(r+=e[o]);return n?r=r.toUpperCase():r=r.toLowerCase(),r},t.prototype.setInputDateTimeData=function(e){var n=this,r=0;this.initInputDateTimeData(),this.lexems.forEach(function(o,s){if(e.length>0&&r<e.length){if(o.type==="separator")return;var c=n.inputDateTimeData[s],y=e[r],w=void 0;o.type==="timeMarker"?w=n.cleanTimeMarker(y,o.upperCase):w=n.leaveOnlyNumbers(y),c.value=w.slice(0,o.maxCount),r++}})},t.prototype._getMaskedValue=function(e,n){var r=this;n===void 0&&(n=!0);var o=e==null?"":e.toString(),s=this.getParts(o);this.setInputDateTimeData(s);var c=this.createIDateTimeComposition();this.inputDateTimeData.forEach(function(w){w.lexem.type==="timeMarker"?r.updateTimeMarkerInputDateTimeData(w,c):r.updateInputDateTimeData(w,c)});var y=this.getFormatedString(n);return y},t.prototype.getParts=function(e){for(var n=[],r=this.lexems.filter(function(Q){return Q.type!=="separator"}),o=this.lexems.filter(function(Q){return Q.type==="separator"}).map(function(Q){return Q.value}),s="",c=!1,y=!1,w=0;w<e.length;w++){var N=e[w];if(N.match(ou)||N===r[n.length].value||r[n.length].type==="timeMarker"?(c=!1,y=!1,s+=N):o.indexOf(N)!==-1?y||(c=!0,n.push(s),s=""):c||(y=!0,n.push(s),s=""),n.length>=r.length){c=!1;break}}return(s!=""||c)&&n.push(s),n},t.prototype.getUnmaskedValue=function(e){var n=this,r,o=e==null?"":e.toString(),s=this.getParts(o);this.setInputDateTimeData(s);var c=(r=this.inputDateTimeData.filter(function(N){return N.lexem.type==="timeMarker"})[0])===null||r===void 0?void 0:r.value.toLowerCase()[0],y=this.createIDateTimeComposition(),w=!1;return this.inputDateTimeData.forEach(function(N){var Q=N.value;if(!(N.lexem.type=="timeMarker"||N.lexem.type=="separator")){if(!Q||Q.length<N.lexem.count){w=!0;return}var Y=parseInt(n.parseTwoDigitYear(N));N.lexem.type=="hour"&&c==="p"&&Y!=n.twelve&&(Y+=n.twelve),y[N.lexem.type]=Y}}),w?"":this.getISO_8601Format(y)},t.prototype.getMaskedValue=function(e){return this.getMaskedStrFromISO(e)},t.prototype.processInput=function(e){var n={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},r=e.prevValue.slice(0,e.selectionStart),o=e.prevValue.slice(e.selectionEnd);return n.value=this._getMaskedValue(r+(e.insertedChars||"")+o),!e.insertedChars&&e.inputDirection==="backward"?n.caretPosition=e.selectionStart:n.caretPosition=this._getMaskedValue(r+(e.insertedChars||""),!1).length,n},gf([D()],t.prototype,"min",void 0),gf([D()],t.prototype,"max",void 0),t}(di);G.addClass("datetimemask",[{name:"min",type:"datetime",enableIf:function(i){return!!i.pattern}},{name:"max",type:"datetime",enableIf:function(i){return!!i.pattern}}],function(){return new yf},"patternmask");var bd=function(){var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),vf=function(i,t,e,n){var r=arguments.length,o=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,n);else for(var c=i.length-1;c>=0;c--)(s=i[c])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o},Kl=function(i){bd(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getType=function(){return"currencymask"},t.prototype.wrapText=function(e){var n=this.prefix||"",r=this.suffix||"",o=e;return o&&(o.indexOf(n)===-1&&(o=n+o),o.indexOf(r)===-1&&(o+=r),o)},t.prototype.unwrapInputArgs=function(e){var n=e.prevValue;if(n){if(this.prefix&&n.indexOf(this.prefix)!==-1){n=n.slice(n.indexOf(this.prefix)+this.prefix.length);var r=(this.prefix||"").length;e.selectionStart=Math.max(e.selectionStart-r,0),e.selectionEnd-=r}this.suffix&&n.indexOf(this.suffix)!==-1&&(n=n.slice(0,n.indexOf(this.suffix))),e.prevValue=n}},t.prototype.processInput=function(e){this.unwrapInputArgs(e);var n=i.prototype.processInput.call(this,e),r=(this.prefix||"").length;return n.value&&(n.caretPosition+=r),n.value=this.wrapText(n.value),n},t.prototype.getMaskedValue=function(e){var n=i.prototype.getMaskedValue.call(this,e);return this.wrapText(n)},vf([D()],t.prototype,"prefix",void 0),vf([D()],t.prototype,"suffix",void 0),t}(Zl);G.addClass("currencymask",[{name:"prefix"},{name:"suffix"}],function(){return new Kl},"numericmask");var Ps,Ou;Ps="1.12.20",z.version=Ps,Ou="2025-01-21";function Cd(i,t){if(Ps!=i){var e="survey-core has version '"+Ps+"' and "+t+" has version '"+i+"'. SurveyJS libraries should have the same versions to work correctly.";console.error(e)}}function wd(i){bf(i)}function bf(i){Pd(i,wf,Ou)}function Cf(i){return wf[i.toString()]===!0}var wf={};function Pd(i,t,e){if(i){var n=function(s){var c={},y,w=0,N,Q=0,Y,ce="",fe=String.fromCharCode,Oe=s.length,Ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(y=0;y<64;y++)c[Ee.charAt(y)]=y;for(N=0;N<Oe;N++){var me=c[s.charAt(N)];for(w=(w<<6)+me,Q+=6;Q>=8;)((Y=w>>>(Q-=8)&255)||N<Oe-2)&&(ce+=fe(Y))}return ce},r=n(i);if(r){var o=r.indexOf(";");o<0||xd(r.substring(0,o))&&(r=r.substring(o+1),r.split(",").forEach(function(s){var c=s.indexOf("=");c>0&&(t[s.substring(0,c)]=new Date(e)<=new Date(s.substring(c+1)))}))}}}function xd(i){if(!i)return!0;var t="domains:",e=i.indexOf(t);if(e<0)return!0;var n=i.substring(e+t.length).toLowerCase().split(",");if(!Array.isArray(n)||n.length===0)return!0;var r=B.getLocation();if(r&&r.hostname){var o=r.hostname.toLowerCase();n.push("localhost");for(var s=0;s<n.length;s++)if(o.indexOf(n[s])>-1)return!0;return!1}return!0}var Vd={"$main-color":"#1ab394","$add-button-color":"#1948b3","$remove-button-color":"#ff1800","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-slider-color":"#cfcfcf","$error-color":"#d52901","$text-color":"#404040","$light-text-color":"#fff","$checkmark-color":"#fff","$progress-buttons-color":"#8dd9ca","$inputs-background-color":"transparent","$main-hover-color":"#9f9f9f","$body-container-background-color":"#f4f4f4","$text-border-color":"#d4d4d4","$disabled-text-color":"rgba(64, 64, 64, 0.5)","$border-color":"rgb(64, 64, 64, 0.5)","$header-background-color":"#e7e7e7","$answer-background-color":"rgba(26, 179, 148, 0.2)","$error-background-color":"rgba(213, 41, 1, 0.2)","$radio-checked-color":"#404040","$clean-button-color":"#1948b3","$body-background-color":"#ffffff","$foreground-light":"#909090","$font-family":"Raleway"},Sd={"$header-background-color":"#e7e7e7","$body-container-background-color":"#f4f4f4","$main-color":"#1ab394","$main-hover-color":"#0aa384","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#6d7072","$text-input-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4"},Ed={"$header-background-color":"#4a4a4a","$body-container-background-color":"#f8f8f8","$main-color":"#f78119","$main-hover-color":"#e77109","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#f7b781","$progress-buttons-line-color":"#d4d4d4"},or={"$header-background-color":"#d9d8dd","$body-container-background-color":"#f6f7f2","$main-color":"#3c4f6d","$main-hover-color":"#2c3f5d","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#839ec9","$progress-buttons-line-color":"#d4d4d4"},Od={"$header-background-color":"#ddd2ce","$body-container-background-color":"#f7efed","$main-color":"#68656e","$main-hover-color":"#58555e","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#c6bed4","$progress-buttons-line-color":"#d4d4d4"},Td={"$header-background-color":"#cdccd2","$body-container-background-color":"#efedf4","$main-color":"#0f0f33","$main-hover-color":"#191955","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#0f0f33","$text-input-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#747491","$progress-buttons-line-color":"#d4d4d4"},Id={"$header-background-color":"#82b8da","$body-container-background-color":"#dae1e7","$main-color":"#3c3b40","$main-hover-color":"#1e1d20","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#d1c9f5","$progress-buttons-line-color":"#d4d4d4"},Pf={"$header-background-color":"#323232","$body-container-background-color":"#f8f8f8","$main-color":"#5ac8fa","$main-hover-color":"#06a1e7","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#acdcf2","$progress-buttons-line-color":"#d4d4d4"};function Rd(i,t){Object.keys(i||{}).forEach(function(e){var n=e.substring(1);t.style.setProperty("--"+n,i[e])})}var xf=function(){function i(){i.autoApplyTheme()}return i.autoApplyTheme=function(){if(!(tn.currentType==="bootstrap"||tn.currentType==="bootstrapmaterial")){var t=i.getIncludedThemeCss();t.length===1&&i.applyTheme(t[0].name)}},i.getAvailableThemes=function(){var t=tn.getAvailableThemes().filter(function(e){return["defaultV2","default","modern"].indexOf(e)!==-1}).map(function(e){return{name:e,theme:tn[e]}});return t},i.getIncludedThemeCss=function(){if(typeof z.environment>"u")return[];var t=z.environment.rootElement,e=i.getAvailableThemes(),n=ro(t)?t.host:t;if(n){var r=getComputedStyle(n);if(r.length)return e.filter(function(o){return o.theme.variables&&r.getPropertyValue(o.theme.variables.themeMark)})}return[]},i.findSheet=function(t){if(typeof z.environment>"u")return null;for(var e=z.environment.root.styleSheets,n=0;n<e.length;n++)if(e[n].ownerNode&&e[n].ownerNode.id===t)return e[n];return null},i.createSheet=function(t){var e=z.environment.stylesSheetsMountContainer,n=M.createElement("style");return n.id=t,n.appendChild(new Text("")),xi(e).appendChild(n),i.Logger&&i.Logger.log("style sheet "+t+" created"),n.sheet},i.applyTheme=function(t,e){if(t===void 0&&(t="default"),!(typeof z.environment>"u")){var n=z.environment.rootElement,r=ro(n)?n.host:n;if(tn.currentType=t,i.Enabled){if(t!=="bootstrap"&&t!=="bootstrapmaterial"){Rd(i.ThemeColors[t],r),i.Logger&&i.Logger.log("apply theme "+t+" completed");return}var o=i.ThemeCss[t];if(!o){tn.currentType="defaultV2";return}i.insertStylesRulesIntoDocument();var s=e||i.ThemeSelector[t]||i.ThemeSelector.default,c=(t+s).trim(),y=i.findSheet(c);if(!y){y=i.createSheet(c);var w=i.ThemeColors[t]||i.ThemeColors.default;Object.keys(o).forEach(function(N){var Q=o[N];Object.keys(w||{}).forEach(function(Y){return Q=Q.replace(new RegExp("\\"+Y,"g"),w[Y])});try{N.indexOf("body")===0?y.insertRule(N+" { "+Q+" }",0):y.insertRule(s+N+" { "+Q+" }",0)}catch{}})}}i.Logger&&i.Logger.log("apply theme "+t+" completed")}},i.insertStylesRulesIntoDocument=function(){if(i.Enabled){var t=i.findSheet(i.SurveyJSStylesSheetId);t||(t=i.createSheet(i.SurveyJSStylesSheetId)),Object.keys(i.Styles).length&&Object.keys(i.Styles).forEach(function(e){try{t.insertRule(e+" { "+i.Styles[e]+" }",0)}catch{}}),Object.keys(i.Media).length&&Object.keys(i.Media).forEach(function(e){try{t.insertRule(i.Media[e].media+" { "+e+" { "+i.Media[e].style+" } }",0)}catch{}})}},i.SurveyJSStylesSheetId="surveyjs-styles",i.Styles={},i.Media={},i.ThemeColors={modern:Vd,default:Sd,orange:Ed,darkblue:or,darkrose:Od,stone:Td,winter:Id,winterstone:Pf},i.ThemeCss={},i.ThemeSelector={default:".sv_main ",modern:".sv-root-modern "},i.Enabled=!0,i}();zt.prototype.onBeforeRunConstructor=function(){B.isAvailable()&&xf.autoApplyTheme()};var Qi={root:"sv_main sv_default_css",rootProgress:"sv_progress",container:"sv_container",header:"sv_header",bodyContainer:"sv-components-row",body:"sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"sv_nav_btn",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",titleExpandable:"sv_q_title_expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell",icon:"sv_question_icon",iconExpanded:"sv_expanded",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",rootRadio:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qcbc sv_qbln",checkboxItem:"sv-boolean",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyvisible",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator",checkboxItemDecorator:"sv-item__svg sv-boolean__svg"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},comment:{remainingCharacterCounter:"sv-remaining-character-counter"},dropdown:{root:"",popup:"sv-dropdown-popup",control:"sv_q_dropdown_control",controlInputFieldComponent:"sv_q_dropdown_control__input-field-component",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other",cleanButton:"sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv_q_dropdown__value",filterStringInput:"sv_q_dropdown__filter-string-input",hintPrefix:"sv_q_dropdown__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image",noImage:"sv-image__no-image",noImageSvgIconId:"icon-no-image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cell:"sv_q_m_cell",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv_q_m_cell_responsive_title"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",cellResponsiveTitle:"sv_matrix_cell_responsive_title",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",rowTextCell:"sv-table__cell--row-text",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"sv_matrix_dynamic_button--add",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",cell:"sv_matrix_cell",cellResponsiveTitle:"sv_matrix_cell_responsive_title",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",header:"sv-paneldynamic__header sv_header",headerTab:"sv-paneldynamic__header-tab",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_btn",buttonRemoveRight:"sv_p_remove_btn_right",buttonPrev:"sv-paneldynamic__prev-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",row:"sv_q_mt_row",itemLabel:"sv_q_mt_label",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column",itemNoImage:"sv_q_imgsel__no-image",itemNoImageSvgIcon:"sv_q_imgsel__no-image-svg",itemNoImageSvgIconId:"icon-no-image"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",itemFixedSize:"sv_q_rating_item_fixed",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",itemStar:"sv_q_rating__item-star",itemStarSelected:"sv_q_rating__item-star--selected",itemSmiley:"sv_q_rating__item-smiley",itemSmileySelected:"sv_q_rating__item-smiley--selected"},text:{root:"sv_q_text_root",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv_q_file",placeholderInput:"sv-visuallyhidden",previewItem:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv-visuallyhidden",removeFile:"sv_q_file_remove",fileDecorator:"sv-file__decorator",fileSign:"sv_q_file_sign",chooseFile:"sv_q_file_choose_button",noFileChosen:"sv_q_file_placeholder",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas",backgroundImage:"sjs_sp__background-image",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-default-mark"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv_q_row__question--small",selectWrapper:"sv_select_wrapper sv_q_tagbox_wrapper",other:"sv_q_input sv_q_comment sv_q_selectbase__other",cleanButton:"sv_q_tagbox_clean-button sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_tagbox_clean-button-svg sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv_q_tagbox-item_clean-button",cleanItemButtonSvg:"sv_q_tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv_q_input sv_q_tagbox sv_q_dropdown_control",controlValue:"sv_q_tagbox__value sv_q_dropdown__value",controlEmpty:"sv_q_dropdown--empty sv_q_tagbox--empty",placeholderInput:"sv_q_tagbox__placeholder",filterStringInput:"sv_q_tagbox__filter-string-input sv_q_dropdown__filter-string-input",hint:"sv_q_tagbox__hint",hintPrefix:"sv_q_dropdown__hint-prefix sv_q_tagbox__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix sv_q_tagbox__hint-suffix",hintSuffixWrapper:"sv_q_tagbox__hint-suffix-wrapper"}};tn.default=Qi,tn.orange=Qi,tn.darkblue=Qi,tn.darkrose=Qi,tn.stone=Qi,tn.winter=Qi,tn.winterstone=Qi;var Vf={root:"sv-root-modern",rootProgress:"sv-progress",timerRoot:"sv-body__timer",container:"sv-container-modern",header:"sv-title sv-container-modern__title",headerClose:"sv-container-modern__close",bodyContainer:"sv-components-row",body:"sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"sv-btn sv-btn--navigation",completedPage:"sv-completedpage",navigation:{complete:"sv-footer__complete-btn",prev:"sv-footer__prev-btn",next:"sv-footer__next-btn",start:"sv-footer__start-btn",preview:"sv-footer__preview-btn",edit:"sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv-panel__title--expanded",titleCollapsed:"sv-panel__title--collapsed",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator",panelWrapper:"sv-paneldynamic__panel-wrapper",panelWrapperInRow:"sv-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbutton",footer:""},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",number:"sv-page__num",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",answered:"sv-question--answered",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv-question__title--expanded",titleCollapsed:"sv-question__title--collapsed",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"},checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",itemSvgIconId:"#icon-moderncheck",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",itemSvgIconId:"#icon-modernradio",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},boolean:{root:"sv_qbln",rootRadio:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qbln",checkboxItem:"sv-boolean sv-item",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyhidden",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator ",checkboxItemDecorator:"sv-item__svg  sv-boolean__svg",indeterminatePath:"sv-boolean__indeterminate-path",svgIconCheckedId:"#icon-modernbooleancheckchecked",svgIconUncheckedId:"#icon-modernbooleancheckunchecked",svgIconIndId:"#icon-modernbooleancheckind"},text:{root:"sv-text",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemLabel:"sv-multipletext__item-label",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv-dropdown__filter-string-input",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",hintPrefix:"sv-dropdown__hint-prefix",hintSuffix:"sv-dropdown__hint-suffix"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",selectWrapper:"sv_select_wrapper sv-tagbox_wrapper",other:"sv-input sv-comment sv-selectbase__other",cleanButton:"sv-tagbox_clean-button sv-dropdown_clean-button",cleanButtonSvg:"sv-tagbox_clean-button-svg sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv-tagbox__item_clean-button",cleanItemButtonSvg:"sv-tagbox__item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv-input sv-tagbox sv-dropdown",controlValue:"sv-tagbox__value sv-dropdown__value",controlEmpty:"sv-dropdown--empty sv-tagbox--empty",placeholderInput:"sv-tagbox__placeholder",filterStringInput:"sv-tagbox__filter-string-input sv-dropdown__filter-string-input"},imagepicker:{root:"sv-selectbase sv-imagepicker",column:"sv-selectbase__column",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control sv-visuallyhidden",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table sv-matrix-root",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled",cellResponsiveTitle:"sv-matrix__cell-responsive-title",itemSvgIconId:"#icon-modernradio"},matrixdropdown:{root:"sv-table sv-matrixdropdown",cell:"sv-table__cell",cellResponsiveTitle:"sv-table__responsive-title",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",rowTextCell:"sv-table__cell--row-text",rowAdditional:"sv-table__row--additional",detailRow:"sv-table__row--detail",detailRowText:"sv-table__cell--detail-rowtext",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions"},matrixdynamic:{root:"sv-table sv-matrixdynamic",cell:"sv-table__cell",cellResponsiveTitle:"sv-table__responsive-title",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",row:"sv-table__row",detailRow:"sv-table__row--detail",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions",emptyRowsSection:"sv-table__empty--rows--section",emptyRowsText:"sv-table__empty--rows--text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",itemDisabled:"sv-rating--disabled",filterStringInput:"sv-dropdown__filter-string-input",control:"sv-dropdown",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",itemSmiley:"sv-rating__item-smiley",itemStar:"sv-rating__item-star",itemSmileySelected:"sv-rating__item-smiley--selected",itemStarSelected:"sv-rating__item-star--selected"},comment:{root:"sv-comment",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",previewItem:"sd-file__preview-item",fileSignBottom:"sv-file__sign",fileDecorator:"sv-file__decorator",fileInput:"sv-visuallyhidden",noFileChosen:"sv-description sv-file__no-file-chosen",chooseFile:"sv-btn sv-file__choose-btn",controlDisabled:"sv-file__choose-btn--disabled",removeButton:"sv-hidden",removeButtonBottom:"sv-btn sv-file__clean-btn",removeFile:"sv-hidden",removeFileSvg:"sv-file__remove-svg",removeFileSvgIconId:"icon-removefile",wrapper:"sv-file__wrapper",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv-signaturepad sjs_sp_container",small:"sv-row__question--small",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas",backgroundImage:"sjs_sp__background-image",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-modern-mark"}};tn.modern=Vf;var Tu=function(){function i(){this.icons={},this.iconPrefix="icon-",this.onIconsChanged=new Tn}return i.prototype.processId=function(t,e){return t.indexOf(e)==0&&(t=t.substring(e.length)),t=yn[t]||t,t},i.prototype.registerIconFromSymbol=function(t,e){this.icons[t]=e},i.prototype.registerIconFromSvgViaElement=function(t,e,n){if(n===void 0&&(n=this.iconPrefix),!!M.isAvailable()){t=this.processId(t,n);var r=M.createElement("div");r.innerHTML=e;var o=M.createElement("symbol"),s=r.querySelector("svg");o.innerHTML=s.innerHTML;for(var c=0;c<s.attributes.length;c++)o.setAttributeNS("http://www.w3.org/2000/svg",s.attributes[c].name,s.attributes[c].value);o.id=n+t,this.registerIconFromSymbol(t,o.outerHTML)}},i.prototype.registerIconFromSvg=function(t,e,n){n===void 0&&(n=this.iconPrefix),t=this.processId(t,n);var r="<svg ",o="</svg>";e=e.trim();var s=e.toLowerCase();return s.substring(0,r.length)===r&&s.substring(s.length-o.length,s.length)===o?(this.registerIconFromSymbol(t,'<symbol id="'+n+t+'" '+e.substring(r.length,s.length-o.length)+"</symbol>"),!0):!1},i.prototype.registerIconsFromFolder=function(t){var e=this;t.keys().forEach(function(n){e.registerIconFromSvg(n.substring(2,n.length-4).toLowerCase(),t(n))})},i.prototype.registerIcons=function(t){for(var e in t)this.registerIconFromSvg(e,t[e]);this.updateMarkup()},i.prototype.iconsRenderedHtml=function(){var t=this;return Object.keys(this.icons).map(function(e){return t.icons[e]}).join("")},i.prototype.updateMarkup=function(){this.onIconsChanged.fire(this,{})},i}(),Ad=new Tu,Iu={};function Dd(i,t){Iu[i]||(Iu[i]={});var e=Iu[i];for(var n in t)e[n]=t[n]}}})})}(Ep)),Ep.exports}var Ca=Kg(),Op={exports:{}};/*!
- * surveyjs - Survey JavaScript library v1.12.20
- * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
- * License: MIT (http://www.opensource.org/licenses/mit-license.php)
- */var tv=Op.exports,Dg;function nv(){return Dg||(Dg=1,function(v,P){(function(T,E){v.exports=E(qm(),Bm(),Kg())})(tv,function(V,T,E){return function(B){var M={};function j(O){if(M[O])return M[O].exports;var m=M[O]={i:O,l:!1,exports:{}};return B[O].call(m.exports,m,m.exports,j),m.l=!0,m.exports}return j.m=B,j.c=M,j.d=function(O,m,A){j.o(O,m)||Object.defineProperty(O,m,{enumerable:!0,get:A})},j.r=function(O){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(O,"__esModule",{value:!0})},j.t=function(O,m){if(m&1&&(O=j(O)),m&8||m&4&&typeof O=="object"&&O&&O.__esModule)return O;var A=Object.create(null);if(j.r(A),Object.defineProperty(A,"default",{enumerable:!0,value:O}),m&2&&typeof O!="string")for(var H in O)j.d(A,H,(function(ee){return O[ee]}).bind(null,H));return A},j.n=function(O){var m=O&&O.__esModule?function(){return O.default}:function(){return O};return j.d(m,"a",m),m},j.o=function(O,m){return Object.prototype.hasOwnProperty.call(O,m)},j.p="",j(j.s="./src/entries/react-ui.ts")}({"./build/survey-core/icons/iconsV1.js":function(B,M,j){/*!
- * surveyjs - Survey JavaScript library v1.12.20
- * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
- * License: MIT (http://www.opensource.org/licenses/mit-license.php)
- */(function(m,A){B.exports=A()})(this,function(){return function(O){var m={};function A(H){if(m[H])return m[H].exports;var ee=m[H]={i:H,l:!1,exports:{}};return O[H].call(ee.exports,ee,ee.exports,A),ee.l=!0,ee.exports}return A.m=O,A.c=m,A.d=function(H,ee,he){A.o(H,ee)||Object.defineProperty(H,ee,{enumerable:!0,get:he})},A.r=function(H){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(H,"__esModule",{value:!0})},A.t=function(H,ee){if(ee&1&&(H=A(H)),ee&8||ee&4&&typeof H=="object"&&H&&H.__esModule)return H;var he=Object.create(null);if(A.r(he),Object.defineProperty(he,"default",{enumerable:!0,value:H}),ee&2&&typeof H!="string")for(var se in H)A.d(he,se,(function(ve){return H[ve]}).bind(null,se));return he},A.n=function(H){var ee=H&&H.__esModule?function(){return H.default}:function(){return H};return A.d(ee,"a",ee),ee},A.o=function(H,ee){return Object.prototype.hasOwnProperty.call(H,ee)},A.p="",A(A.s="./packages/survey-core/src/iconsV1.ts")}({"./packages/survey-core/src/iconsV1.ts":function(O,m,A){A.r(m),A.d(m,"icons",function(){return ee});var H=A("./packages/survey-core/src/images-v1 sync recursive \\.svg$"),ee={};H.keys().forEach(function(he){ee[he.substring(2,he.length-4).toLowerCase()]=H(he)})},"./packages/survey-core/src/images-v1 sync recursive \\.svg$":function(O,m,A){var H={"./ModernBooleanCheckChecked.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./packages/survey-core/src/images-v1/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./packages/survey-core/src/images-v1/ModernCheck.svg","./ModernRadio.svg":"./packages/survey-core/src/images-v1/ModernRadio.svg","./ProgressButton.svg":"./packages/survey-core/src/images-v1/ProgressButton.svg","./RemoveFile.svg":"./packages/survey-core/src/images-v1/RemoveFile.svg","./TimerCircle.svg":"./packages/survey-core/src/images-v1/TimerCircle.svg","./add-24x24.svg":"./packages/survey-core/src/images-v1/add-24x24.svg","./arrowleft-16x16.svg":"./packages/survey-core/src/images-v1/arrowleft-16x16.svg","./arrowright-16x16.svg":"./packages/survey-core/src/images-v1/arrowright-16x16.svg","./camera-24x24.svg":"./packages/survey-core/src/images-v1/camera-24x24.svg","./camera-32x32.svg":"./packages/survey-core/src/images-v1/camera-32x32.svg","./cancel-24x24.svg":"./packages/survey-core/src/images-v1/cancel-24x24.svg","./check-16x16.svg":"./packages/survey-core/src/images-v1/check-16x16.svg","./check-24x24.svg":"./packages/survey-core/src/images-v1/check-24x24.svg","./chevrondown-24x24.svg":"./packages/survey-core/src/images-v1/chevrondown-24x24.svg","./chevronright-16x16.svg":"./packages/survey-core/src/images-v1/chevronright-16x16.svg","./clear-16x16.svg":"./packages/survey-core/src/images-v1/clear-16x16.svg","./clear-24x24.svg":"./packages/survey-core/src/images-v1/clear-24x24.svg","./close-16x16.svg":"./packages/survey-core/src/images-v1/close-16x16.svg","./close-24x24.svg":"./packages/survey-core/src/images-v1/close-24x24.svg","./collapse-16x16.svg":"./packages/survey-core/src/images-v1/collapse-16x16.svg","./collapsedetails-16x16.svg":"./packages/survey-core/src/images-v1/collapsedetails-16x16.svg","./delete-24x24.svg":"./packages/survey-core/src/images-v1/delete-24x24.svg","./drag-24x24.svg":"./packages/survey-core/src/images-v1/drag-24x24.svg","./draghorizontal-24x16.svg":"./packages/survey-core/src/images-v1/draghorizontal-24x16.svg","./expand-16x16.svg":"./packages/survey-core/src/images-v1/expand-16x16.svg","./expanddetails-16x16.svg":"./packages/survey-core/src/images-v1/expanddetails-16x16.svg","./file-72x72.svg":"./packages/survey-core/src/images-v1/file-72x72.svg","./flip-24x24.svg":"./packages/survey-core/src/images-v1/flip-24x24.svg","./folder-24x24.svg":"./packages/survey-core/src/images-v1/folder-24x24.svg","./fullsize-16x16.svg":"./packages/survey-core/src/images-v1/fullsize-16x16.svg","./image-48x48.svg":"./packages/survey-core/src/images-v1/image-48x48.svg","./loading-48x48.svg":"./packages/survey-core/src/images-v1/loading-48x48.svg","./maximize-16x16.svg":"./packages/survey-core/src/images-v1/maximize-16x16.svg","./minimize-16x16.svg":"./packages/survey-core/src/images-v1/minimize-16x16.svg","./more-24x24.svg":"./packages/survey-core/src/images-v1/more-24x24.svg","./navmenu-24x24.svg":"./packages/survey-core/src/images-v1/navmenu-24x24.svg","./noimage-48x48.svg":"./packages/survey-core/src/images-v1/noimage-48x48.svg","./ranking-arrows.svg":"./packages/survey-core/src/images-v1/ranking-arrows.svg","./rankingundefined-16x16.svg":"./packages/survey-core/src/images-v1/rankingundefined-16x16.svg","./rating-star-2.svg":"./packages/survey-core/src/images-v1/rating-star-2.svg","./rating-star-small-2.svg":"./packages/survey-core/src/images-v1/rating-star-small-2.svg","./rating-star-small.svg":"./packages/survey-core/src/images-v1/rating-star-small.svg","./rating-star.svg":"./packages/survey-core/src/images-v1/rating-star.svg","./reorder-24x24.svg":"./packages/survey-core/src/images-v1/reorder-24x24.svg","./restoredown-16x16.svg":"./packages/survey-core/src/images-v1/restoredown-16x16.svg","./search-24x24.svg":"./packages/survey-core/src/images-v1/search-24x24.svg","./smiley-rate1-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate1-24x24.svg","./smiley-rate10-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate10-24x24.svg","./smiley-rate2-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate2-24x24.svg","./smiley-rate3-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate3-24x24.svg","./smiley-rate4-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate4-24x24.svg","./smiley-rate5-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate5-24x24.svg","./smiley-rate6-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate6-24x24.svg","./smiley-rate7-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate7-24x24.svg","./smiley-rate8-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate8-24x24.svg","./smiley-rate9-24x24.svg":"./packages/survey-core/src/images-v1/smiley-rate9-24x24.svg"};function ee(se){var ve=he(se);return A(ve)}function he(se){if(!A.o(H,se)){var ve=new Error("Cannot find module '"+se+"'");throw ve.code="MODULE_NOT_FOUND",ve}return H[se]}ee.keys=function(){return Object.keys(H)},ee.resolve=he,O.exports=ee,ee.id="./packages/survey-core/src/images-v1 sync recursive \\.svg$"},"./packages/survey-core/src/images-v1/ModernBooleanCheckChecked.svg":function(O,m){O.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./packages/survey-core/src/images-v1/ModernBooleanCheckInd.svg":function(O,m){O.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./packages/survey-core/src/images-v1/ModernBooleanCheckUnchecked.svg":function(O,m){O.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./packages/survey-core/src/images-v1/ModernCheck.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./packages/survey-core/src/images-v1/ModernRadio.svg":function(O,m){O.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./packages/survey-core/src/images-v1/ProgressButton.svg":function(O,m){O.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./packages/survey-core/src/images-v1/RemoveFile.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./packages/survey-core/src/images-v1/TimerCircle.svg":function(O,m){O.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./packages/survey-core/src/images-v1/add-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 11H17V13H13V17H11V13H7V11H11V7H13V11ZM23 12C23 18.1 18.1 23 12 23C5.9 23 1 18.1 1 12C1 5.9 5.9 1 12 1C18.1 1 23 5.9 23 12ZM21 12C21 7 17 3 12 3C7 3 3 7 3 12C3 17 7 21 12 21C17 21 21 17 21 12Z"></path></svg>'},"./packages/survey-core/src/images-v1/arrowleft-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 8.99999H4.4L8.7 13.3L7.3 14.7L0.599998 7.99999L7.3 1.29999L8.7 2.69999L4.4 6.99999H15V8.99999Z"></path></svg>'},"./packages/survey-core/src/images-v1/arrowright-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.99999H11.6L7.3 2.69999L8.7 1.29999L15.4 7.99999L8.7 14.7L7.3 13.3L11.6 8.99999H1V6.99999Z"></path></svg>'},"./packages/survey-core/src/images-v1/camera-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.01 4H18.4C18.2 4 18.01 3.9 17.9 3.73L16.97 2.34C16.41 1.5 15.48 1 14.47 1H9.54C8.53 1 7.6 1.5 7.04 2.34L6.11 3.73C6 3.9 5.81 4 5.61 4H4C2.35 4 1 5.35 1 7V19C1 20.65 2.35 22 4 22H20C21.65 22 23 20.65 23 19V7C23 5.35 21.65 4 20 4H20.01ZM21.01 19C21.01 19.55 20.56 20 20.01 20H4.01C3.46 20 3.01 19.55 3.01 19V7C3.01 6.45 3.46 6 4.01 6H5.62C6.49 6 7.3 5.56 7.79 4.84L8.72 3.45C8.91 3.17 9.22 3 9.55 3H14.48C14.81 3 15.13 3.17 15.31 3.45L16.24 4.84C16.72 5.56 17.54 6 18.41 6H20.02C20.57 6 21.02 6.45 21.02 7V19H21.01ZM12.01 6C8.7 6 6.01 8.69 6.01 12C6.01 15.31 8.7 18 12.01 18C15.32 18 18.01 15.31 18.01 12C18.01 8.69 15.32 6 12.01 6ZM12.01 16C9.8 16 8.01 14.21 8.01 12C8.01 9.79 9.8 8 12.01 8C14.22 8 16.01 9.79 16.01 12C16.01 14.21 14.22 16 12.01 16ZM13.01 10C13.01 10.55 12.56 11 12.01 11C11.46 11 11.01 11.45 11.01 12C11.01 12.55 10.56 13 10.01 13C9.46 13 9.01 12.55 9.01 12C9.01 10.35 10.36 9 12.01 9C12.56 9 13.01 9.45 13.01 10Z"></path></svg>'},"./packages/survey-core/src/images-v1/camera-32x32.svg":function(O,m){O.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M27 6H23.8C23.34 6 22.92 5.77 22.66 5.39L22.25 4.78C21.51 3.66 20.26 3 18.92 3H13.06C11.72 3 10.48 3.67 9.73 4.78L9.32 5.39C9.07 5.77 8.64 6 8.18 6H4.98C2.79 6 1 7.79 1 10V24C1 26.21 2.79 28 5 28H27C29.21 28 31 26.21 31 24V10C31 7.79 29.21 6 27 6ZM29 24C29 25.1 28.1 26 27 26H5C3.9 26 3 25.1 3 24V10C3 8.9 3.9 8 5 8H8.2C9.33 8 10.38 7.44 11 6.5L11.41 5.89C11.78 5.33 12.41 5 13.07 5H18.93C19.6 5 20.22 5.33 20.59 5.89L21 6.5C21.62 7.44 22.68 8 23.8 8H27C28.1 8 29 8.9 29 10V24ZM16 9C12.13 9 9 12.13 9 16C9 19.87 12.13 23 16 23C19.87 23 23 19.87 23 16C23 12.13 19.87 9 16 9ZM16 21C13.24 21 11 18.76 11 16C11 13.24 13.24 11 16 11C18.76 11 21 13.24 21 16C21 18.76 18.76 21 16 21ZM17 13C17 13.55 16.55 14 16 14C14.9 14 14 14.9 14 16C14 16.55 13.55 17 13 17C12.45 17 12 16.55 12 16C12 13.79 13.79 12 16 12C16.55 12 17 12.45 17 13Z"></path></svg>'},"./packages/survey-core/src/images-v1/cancel-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.40005 14.6C0.600049 15.4 0.600049 16.6 1.40005 17.4L6.00005 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.80005L2.80005 16L6.20005 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.60005 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./packages/survey-core/src/images-v1/check-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.003 14.413L0.292999 9.70303L1.703 8.29303L5.003 11.583L14.293 2.29303L15.703 3.70303L5.003 14.413Z"></path></svg>'},"./packages/survey-core/src/images-v1/check-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 20.1L1 12L3.1 9.9L9 15.9L20.9 4L23 6.1L9 20.1Z"></path></svg>'},"./packages/survey-core/src/images-v1/chevrondown-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 15L17 10H7L12 15Z"></path></svg>'},"./packages/survey-core/src/images-v1/chevronright-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M5.64648 12.6465L6.34648 13.3465L11.7465 8.04648L6.34648 2.64648L5.64648 3.34648L10.2465 8.04648L5.64648 12.6465Z"></path></svg>'},"./packages/survey-core/src/images-v1/clear-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},"./packages/survey-core/src/images-v1/clear-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.40005 14.6C0.600049 15.4 0.600049 16.6 1.40005 17.4L6.00005 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.80005L2.80005 16L6.20005 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.60005 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},"./packages/survey-core/src/images-v1/close-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M9.43 8.0025L13.7 3.7225C14.09 3.3325 14.09 2.6925 13.7 2.2925C13.31 1.9025 12.67 1.9025 12.27 2.2925L7.99 6.5725L3.72 2.3025C3.33 1.9025 2.69 1.9025 2.3 2.3025C1.9 2.6925 1.9 3.3325 2.3 3.7225L6.58 8.0025L2.3 12.2825C1.91 12.6725 1.91 13.3125 2.3 13.7125C2.69 14.1025 3.33 14.1025 3.73 13.7125L8.01 9.4325L12.29 13.7125C12.68 14.1025 13.32 14.1025 13.72 13.7125C14.11 13.3225 14.11 12.6825 13.72 12.2825L9.44 8.0025H9.43Z"></path></svg>'},"./packages/survey-core/src/images-v1/close-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.4101 12L20.7001 4.71C21.0901 4.32 21.0901 3.69 20.7001 3.3C20.3101 2.91 19.6801 2.91 19.2901 3.3L12.0001 10.59L4.71006 3.29C4.32006 2.9 3.68006 2.9 3.29006 3.29C2.90006 3.68 2.90006 4.32 3.29006 4.71L10.5801 12L3.29006 19.29C2.90006 19.68 2.90006 20.31 3.29006 20.7C3.49006 20.9 3.74006 20.99 4.00006 20.99C4.26006 20.99 4.51006 20.89 4.71006 20.7L12.0001 13.41L19.2901 20.7C19.4901 20.9 19.7401 20.99 20.0001 20.99C20.2601 20.99 20.5101 20.89 20.7101 20.7C21.1001 20.31 21.1001 19.68 20.7101 19.29L13.4201 12H13.4101Z"></path></svg>'},"./packages/survey-core/src/images-v1/collapse-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2 6L3 5L8 10L13 5L14 6L8 12L2 6Z"></path></svg>'},"./packages/survey-core/src/images-v1/collapsedetails-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/delete-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 4H20H16V2C16 0.9 15.1 0 14 0H10C8.9 0 8 0.9 8 2V4H4H2V6H4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V6H22V4ZM10 2H14V4H10V2ZM18 20H6V6H8H16H18V20ZM14 8H16V18H14V8ZM11 8H13V18H11V8ZM8 8H10V18H8V8Z"></path></svg>'},"./packages/survey-core/src/images-v1/drag-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13 6C13 4.9 13.9 4 15 4C16.1 4 17 4.9 17 6C17 7.1 16.1 8 15 8C13.9 8 13 7.1 13 6ZM9 4C7.9 4 7 4.9 7 6C7 7.1 7.9 8 9 8C10.1 8 11 7.1 11 6C11 4.9 10.1 4 9 4ZM15 10C13.9 10 13 10.9 13 12C13 13.1 13.9 14 15 14C16.1 14 17 13.1 17 12C17 10.9 16.1 10 15 10ZM9 10C7.9 10 7 10.9 7 12C7 13.1 7.9 14 9 14C10.1 14 11 13.1 11 12C11 10.9 10.1 10 9 10ZM15 16C13.9 16 13 16.9 13 18C13 19.1 13.9 20 15 20C16.1 20 17 19.1 17 18C17 16.9 16.1 16 15 16ZM9 16C7.9 16 7 16.9 7 18C7 19.1 7.9 20 9 20C10.1 20 11 19.1 11 18C11 16.9 10.1 16 9 16Z"></path></svg>'},"./packages/survey-core/src/images-v1/draghorizontal-24x16.svg":function(O,m){O.exports='<svg viewBox="0 0 24 16" xmlns="http://www.w3.org/2000/svg"><path d="M18 9C19.1 9 20 9.9 20 11C20 12.1 19.1 13 18 13C16.9 13 16 12.1 16 11C16 9.9 16.9 9 18 9ZM20 5C20 3.9 19.1 3 18 3C16.9 3 16 3.9 16 5C16 6.1 16.9 7 18 7C19.1 7 20 6.1 20 5ZM14 11C14 9.9 13.1 9 12 9C10.9 9 10 9.9 10 11C10 12.1 10.9 13 12 13C13.1 13 14 12.1 14 11ZM14 5C14 3.9 13.1 3 12 3C10.9 3 10 3.9 10 5C10 6.1 10.9 7 12 7C13.1 7 14 6.1 14 5ZM8 11C8 9.9 7.1 9 6 9C4.9 9 4 9.9 4 11C4 12.1 4.9 13 6 13C7.1 13 8 12.1 8 11ZM8 5C8 3.9 7.1 3 6 3C4.9 3 4 3.9 4 5C4 6.1 4.9 7 6 7C7.1 7 8 6.1 8 5Z"></path></svg>'},"./packages/survey-core/src/images-v1/expand-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6 14L5 13L10 8L5 3L6 2L12 8L6 14Z"></path></svg>'},"./packages/survey-core/src/images-v1/expanddetails-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H9V3H7V7H3V9H7V13H9V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/file-72x72.svg":function(O,m){O.exports='<svg viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><path d="M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z"></path></svg>'},"./packages/survey-core/src/images-v1/flip-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M23 12.0037C23 14.2445 21.7794 16.3052 19.5684 17.8257C19.3984 17.9458 19.1983 18.0058 19.0082 18.0058C18.688 18.0058 18.3779 17.8557 18.1778 17.5756C17.8677 17.1155 17.9777 16.4953 18.4379 16.1852C20.0887 15.0448 21.0091 13.5643 21.0091 12.0138C21.0091 8.70262 16.9673 6.01171 12.005 6.01171C11.4948 6.01171 10.9945 6.04172 10.5043 6.09173L11.7149 7.30215C12.105 7.69228 12.105 8.32249 11.7149 8.71263C11.5148 8.9127 11.2647 9.00273 11.0045 9.00273C10.7444 9.00273 10.4943 8.90269 10.2942 8.71263L6.58254 5.00136L10.2842 1.2901C10.6744 0.899964 11.3047 0.899964 11.6949 1.2901C12.085 1.68023 12.085 2.31045 11.6949 2.70058L10.3042 4.09105C10.8545 4.03103 11.4147 4.00102 11.985 4.00102C18.0578 4.00102 22.99 7.59225 22.99 12.0037H23ZM12.2851 15.2949C11.895 15.685 11.895 16.3152 12.2851 16.7054L13.4957 17.9158C13.0055 17.9758 12.4952 17.9958 11.995 17.9958C7.03274 17.9958 2.99091 15.3049 2.99091 11.9937C2.99091 10.4332 3.90132 8.95271 5.56207 7.82232C6.02228 7.51222 6.13233 6.89201 5.82219 6.43185C5.51205 5.97169 4.89177 5.86166 4.43156 6.17176C2.22055 7.69228 1 9.76299 1 11.9937C1 16.4052 5.93224 19.9965 12.005 19.9965C12.5753 19.9965 13.1355 19.9665 13.6858 19.9064L12.2951 21.2969C11.905 21.6871 11.905 22.3173 12.2951 22.7074C12.4952 22.9075 12.7453 22.9975 13.0055 22.9975C13.2656 22.9975 13.5157 22.8975 13.7158 22.7074L17.4275 18.9961L13.7158 15.2849C13.3256 14.8947 12.6953 14.8947 12.3051 15.2849L12.2851 15.2949Z"></path></svg>'},"./packages/survey-core/src/images-v1/folder-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21.93 9H21V7C21 6.46957 20.7893 5.96086 20.4142 5.58579C20.0391 5.21071 19.5304 5 19 5H10L8 3H4C3.46957 3 2.96086 3.21071 2.58579 3.58579C2.21071 3.96086 2 4.46957 2 5L2 21H21L23.89 11.63C23.9916 11.3244 24.0179 10.9988 23.9667 10.6809C23.9155 10.363 23.7882 10.0621 23.5958 9.80392C23.4034 9.54571 23.1514 9.33779 22.8614 9.19782C22.5714 9.05786 22.2519 8.99 21.93 9ZM4 5H7.17L8.59 6.41L9.17 7H19V9H6L4 15V5ZM22 11L19.54 19H4.77L7.44 11H22Z"></path></svg>'},"./packages/survey-core/src/images-v1/fullsize-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12 13H4C2.9 13 2 12.1 2 11V5C2 3.9 2.9 3 4 3H12C13.1 3 14 3.9 14 5V11C14 12.1 13.1 13 12 13ZM4 5V11H12V5H4Z"></path></svg>'},"./packages/survey-core/src/images-v1/image-48x48.svg":function(O,m){O.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M36 8H12C9.79 8 8 9.79 8 12V36C8 38.21 9.79 40 12 40H36C38.21 40 40 38.21 40 36V12C40 9.79 38.21 8 36 8ZM38 36C38 37.1 37.1 38 36 38H12C10.9 38 10 37.1 10 36V12C10 10.9 10.9 10 12 10H36C37.1 10 38 10.9 38 12V36ZM14 17C14 15.34 15.34 14 17 14C18.66 14 20 15.34 20 17C20 18.66 18.66 20 17 20C15.34 20 14 18.66 14 17ZM27 24L36 36H12L19 27L23 29L27 24Z"></path></svg>'},"./packages/survey-core/src/images-v1/loading-48x48.svg":function(O,m){O.exports='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_19679_369428)"><path opacity="0.1" d="M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z" fill="black" fill-opacity="0.91"></path><path d="M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z" fill="#19B394"></path></g><defs><clipPath id="clip0_19679_369428"><rect width="32" height="32" fill="white" transform="translate(8 8)"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v1/maximize-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M6.71 10.71L4.42 13H6.01C6.56 13 7.01 13.45 7.01 14C7.01 14.55 6.56 15 6.01 15H2C1.45 15 1 14.55 1 14V10C1 9.45 1.45 9 2 9C2.55 9 3 9.45 3 10V11.59L5.29 9.3C5.68 8.91 6.31 8.91 6.7 9.3C7.09 9.69 7.09 10.32 6.7 10.71H6.71ZM14 1H10C9.45 1 9 1.45 9 2C9 2.55 9.45 3 10 3H11.59L9.3 5.29C8.91 5.68 8.91 6.31 9.3 6.7C9.5 6.9 9.75 6.99 10.01 6.99C10.27 6.99 10.52 6.89 10.72 6.7L13.01 4.41V6C13.01 6.55 13.46 7 14.01 7C14.56 7 15.01 6.55 15.01 6V2C15.01 1.45 14.56 1 14.01 1H14Z"></path></svg>'},"./packages/survey-core/src/images-v1/minimize-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 9H3C2.45 9 2 8.55 2 8C2 7.45 2.45 7 3 7H13C13.55 7 14 7.45 14 8C14 8.55 13.55 9 13 9Z"></path></svg>'},"./packages/survey-core/src/images-v1/more-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 12C6 13.1 5.1 14 4 14C2.9 14 2 13.1 2 12C2 10.9 2.9 10 4 10C5.1 10 6 10.9 6 12ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM20 10C18.9 10 18 10.9 18 12C18 13.1 18.9 14 20 14C21.1 14 22 13.1 22 12C22 10.9 21.1 10 20 10Z"></path></svg>'},"./packages/survey-core/src/images-v1/navmenu-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16 7H2V5H16V7ZM2 11V13H22V11H2ZM2 19H10V17H2V19Z"></path></svg>'},"./packages/survey-core/src/images-v1/noimage-48x48.svg":function(O,m){O.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M14 17.01C14 16.4167 14.1759 15.8366 14.5056 15.3433C14.8352 14.8499 15.3038 14.4654 15.8519 14.2384C16.4001 14.0113 17.0033 13.9519 17.5853 14.0676C18.1672 14.1834 18.7018 14.4691 19.1213 14.8887C19.5409 15.3082 19.8266 15.8428 19.9424 16.4247C20.0581 17.0067 19.9987 17.6099 19.7716 18.1581C19.5446 18.7062 19.1601 19.1748 18.6667 19.5044C18.1734 19.8341 17.5933 20.01 17 20.01C16.2044 20.01 15.4413 19.6939 14.8787 19.1313C14.3161 18.5687 14 17.8056 14 17.01ZM27.09 24.14L20 36.01H36L27.09 24.14ZM36.72 8.14L35.57 10.01H36C36.5304 10.01 37.0391 10.2207 37.4142 10.5958C37.7893 10.9709 38 11.4796 38 12.01V36.01C38 36.5404 37.7893 37.0491 37.4142 37.4242C37.0391 37.7993 36.5304 38.01 36 38.01H18.77L17.57 40.01H36C37.0609 40.01 38.0783 39.5886 38.8284 38.8384C39.5786 38.0883 40 37.0709 40 36.01V12.01C39.9966 11.0765 39.6668 10.1737 39.0678 9.45778C38.4688 8.74188 37.6382 8.25802 36.72 8.09V8.14ZM36.86 4.5L12.86 44.5L11.14 43.5L13.23 40.01H12C10.9391 40.01 9.92172 39.5886 9.17157 38.8384C8.42143 38.0883 8 37.0709 8 36.01V12.01C8 10.9491 8.42143 9.93172 9.17157 9.18157C9.92172 8.43143 10.9391 8.01 12 8.01H32.43L35.14 3.5L36.86 4.5ZM14.43 38.01L15.63 36.01H12L19 27.01L20.56 27.8L31.23 10.01H12C11.4696 10.01 10.9609 10.2207 10.5858 10.5958C10.2107 10.9709 10 11.4796 10 12.01V36.01C10 36.5404 10.2107 37.0491 10.5858 37.4242C10.9609 37.7993 11.4696 38.01 12 38.01H14.43Z"></path></svg>'},"./packages/survey-core/src/images-v1/ranking-arrows.svg":function(O,m){O.exports='<svg viewBox="0 0 10 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 5L5 0L0 5H4V9H6V5H10Z"></path><path d="M6 19V15H4V19H0L5 24L10 19H6Z"></path></svg>'},"./packages/survey-core/src/images-v1/rankingundefined-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},"./packages/survey-core/src/images-v1/rating-star-2.svg":function(O,m){O.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.3981 33.1305L24 32.9206L23.6019 33.1305L15.8715 37.2059L17.3542 28.5663L17.43 28.1246L17.1095 27.8113L10.83 21.6746L19.4965 20.4049L19.9405 20.3399L20.1387 19.9373L24 12.0936L27.8613 19.9373L28.0595 20.3399L28.5035 20.4049L37.17 21.6746L30.8905 27.8113L30.57 28.1246L30.6458 28.5663L32.1285 37.2059L24.3981 33.1305Z" stroke-width="1.70746"></path></svg>'},"./packages/survey-core/src/images-v1/rating-star-small-2.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./packages/survey-core/src/images-v1/rating-star-small.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z"></path></g></svg>'},"./packages/survey-core/src/images-v1/rating-star.svg":function(O,m){O.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z"></path></g></svg>'},"./packages/survey-core/src/images-v1/reorder-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M17 5L12 0L7 5H11V9H13V5H17Z"></path><path d="M13 19V15H11V19H7L12 24L17 19H13Z"></path></svg>'},"./packages/survey-core/src/images-v1/restoredown-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 6C15 6.55 14.55 7 14 7H10C9.45 7 9 6.55 9 6V2C9 1.45 9.45 1 10 1C10.55 1 11 1.45 11 2V3.59L13.29 1.29C13.49 1.09 13.74 1 14 1C14.26 1 14.51 1.1 14.71 1.29C15.1 1.68 15.1 2.31 14.71 2.7L12.42 4.99H14.01C14.56 4.99 15.01 5.44 15.01 5.99L15 6ZM6 9H2C1.45 9 0.999998 9.45 0.999998 10C0.999998 10.55 1.45 11 2 11H3.59L1.29 13.29C0.899998 13.68 0.899998 14.31 1.29 14.7C1.68 15.09 2.31 15.09 2.7 14.7L4.99 12.41V14C4.99 14.55 5.44 15 5.99 15C6.54 15 6.99 14.55 6.99 14V10C6.99 9.45 6.54 9 5.99 9H6Z"></path></svg>'},"./packages/survey-core/src/images-v1/search-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14 2C9.6 2 6 5.6 6 10C6 11.8 6.6 13.5 7.7 14.9L2.3 20.3C1.9 20.7 1.9 21.3 2.3 21.7C2.5 21.9 2.7 22 3 22C3.3 22 3.5 21.9 3.7 21.7L9.1 16.3C10.5 17.4 12.2 18 14 18C18.4 18 22 14.4 22 10C22 5.6 18.4 2 14 2ZM14 16C10.7 16 8 13.3 8 10C8 6.7 10.7 4 14 4C17.3 4 20 6.7 20 10C20 13.3 17.3 16 14 16Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate1-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate10-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate2-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.51001C4.47291 4.51001 4.08291 4.25001 3.94291 3.84001C3.76291 3.32001 4.03291 2.75001 4.55291 2.57001L8.32291 1.25001C8.84291 1.06001 9.41291 1.34001 9.59291 1.86001C9.77291 2.38001 9.50291 2.95001 8.98291 3.13001L5.20291 4.45001C5.09291 4.49001 4.98291 4.51001 4.87291 4.51001H4.88291ZM19.8129 3.89001C20.0229 3.38001 19.7729 2.79001 19.2629 2.59001L15.5529 1.07001C15.0429 0.860007 14.4529 1.11001 14.2529 1.62001C14.0429 2.13001 14.2929 2.72001 14.8029 2.92001L18.5029 4.43001C18.6229 4.48001 18.7529 4.50001 18.8829 4.50001C19.2729 4.50001 19.6529 4.27001 19.8129 3.88001V3.89001ZM3.50291 6.00001C2.64291 6.37001 1.79291 6.88001 1.00291 7.48001C0.79291 7.64001 0.64291 7.87001 0.59291 8.14001C0.48291 8.73001 0.87291 9.29001 1.45291 9.40001C2.04291 9.51001 2.60291 9.12001 2.71291 8.54001C2.87291 7.69001 3.12291 6.83001 3.50291 5.99001V6.00001ZM21.0429 8.55001C21.6029 10.48 24.2429 8.84001 22.7529 7.48001C21.9629 6.88001 21.1129 6.37001 20.2529 6.00001C20.6329 6.84001 20.8829 7.70001 21.0429 8.55001ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 10 11.8829 10C7.47291 10 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v1/smiley-rate3-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate4-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate5-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate6-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate7-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate8-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./packages/survey-core/src/images-v1/smiley-rate9-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'}})})},"./build/survey-core/icons/iconsV2.js":function(B,M,j){/*!
- * surveyjs - Survey JavaScript library v1.12.20
- * Copyright (c) 2015-2025 Devsoft Baltic OÜ  - http://surveyjs.io/
- * License: MIT (http://www.opensource.org/licenses/mit-license.php)
- */(function(m,A){B.exports=A()})(this,function(){return function(O){var m={};function A(H){if(m[H])return m[H].exports;var ee=m[H]={i:H,l:!1,exports:{}};return O[H].call(ee.exports,ee,ee.exports,A),ee.l=!0,ee.exports}return A.m=O,A.c=m,A.d=function(H,ee,he){A.o(H,ee)||Object.defineProperty(H,ee,{enumerable:!0,get:he})},A.r=function(H){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(H,"__esModule",{value:!0})},A.t=function(H,ee){if(ee&1&&(H=A(H)),ee&8||ee&4&&typeof H=="object"&&H&&H.__esModule)return H;var he=Object.create(null);if(A.r(he),Object.defineProperty(he,"default",{enumerable:!0,value:H}),ee&2&&typeof H!="string")for(var se in H)A.d(he,se,(function(ve){return H[ve]}).bind(null,se));return he},A.n=function(H){var ee=H&&H.__esModule?function(){return H.default}:function(){return H};return A.d(ee,"a",ee),ee},A.o=function(H,ee){return Object.prototype.hasOwnProperty.call(H,ee)},A.p="",A(A.s="./packages/survey-core/src/iconsV2.ts")}({"./packages/survey-core/src/iconsV2.ts":function(O,m,A){A.r(m),A.d(m,"icons",function(){return ee});var H=A("./packages/survey-core/src/images-v2 sync recursive \\.svg$"),ee={};H.keys().forEach(function(he){ee[he.substring(2,he.length-4).toLowerCase()]=H(he)})},"./packages/survey-core/src/images-v2 sync recursive \\.svg$":function(O,m,A){var H={"./ModernBooleanCheckChecked.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./packages/survey-core/src/images-v2/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./packages/survey-core/src/images-v2/ModernCheck.svg","./ModernRadio.svg":"./packages/survey-core/src/images-v2/ModernRadio.svg","./ProgressButton.svg":"./packages/survey-core/src/images-v2/ProgressButton.svg","./RemoveFile.svg":"./packages/survey-core/src/images-v2/RemoveFile.svg","./TimerCircle.svg":"./packages/survey-core/src/images-v2/TimerCircle.svg","./add-24x24.svg":"./packages/survey-core/src/images-v2/add-24x24.svg","./arrowleft-16x16.svg":"./packages/survey-core/src/images-v2/arrowleft-16x16.svg","./arrowright-16x16.svg":"./packages/survey-core/src/images-v2/arrowright-16x16.svg","./camera-24x24.svg":"./packages/survey-core/src/images-v2/camera-24x24.svg","./camera-32x32.svg":"./packages/survey-core/src/images-v2/camera-32x32.svg","./cancel-24x24.svg":"./packages/survey-core/src/images-v2/cancel-24x24.svg","./check-16x16.svg":"./packages/survey-core/src/images-v2/check-16x16.svg","./check-24x24.svg":"./packages/survey-core/src/images-v2/check-24x24.svg","./chevrondown-24x24.svg":"./packages/survey-core/src/images-v2/chevrondown-24x24.svg","./chevronright-16x16.svg":"./packages/survey-core/src/images-v2/chevronright-16x16.svg","./clear-16x16.svg":"./packages/survey-core/src/images-v2/clear-16x16.svg","./clear-24x24.svg":"./packages/survey-core/src/images-v2/clear-24x24.svg","./close-16x16.svg":"./packages/survey-core/src/images-v2/close-16x16.svg","./close-24x24.svg":"./packages/survey-core/src/images-v2/close-24x24.svg","./collapse-16x16.svg":"./packages/survey-core/src/images-v2/collapse-16x16.svg","./collapsedetails-16x16.svg":"./packages/survey-core/src/images-v2/collapsedetails-16x16.svg","./delete-24x24.svg":"./packages/survey-core/src/images-v2/delete-24x24.svg","./drag-24x24.svg":"./packages/survey-core/src/images-v2/drag-24x24.svg","./draghorizontal-24x16.svg":"./packages/survey-core/src/images-v2/draghorizontal-24x16.svg","./expand-16x16.svg":"./packages/survey-core/src/images-v2/expand-16x16.svg","./expanddetails-16x16.svg":"./packages/survey-core/src/images-v2/expanddetails-16x16.svg","./file-72x72.svg":"./packages/survey-core/src/images-v2/file-72x72.svg","./flip-24x24.svg":"./packages/survey-core/src/images-v2/flip-24x24.svg","./folder-24x24.svg":"./packages/survey-core/src/images-v2/folder-24x24.svg","./fullsize-16x16.svg":"./packages/survey-core/src/images-v2/fullsize-16x16.svg","./image-48x48.svg":"./packages/survey-core/src/images-v2/image-48x48.svg","./loading-48x48.svg":"./packages/survey-core/src/images-v2/loading-48x48.svg","./maximize-16x16.svg":"./packages/survey-core/src/images-v2/maximize-16x16.svg","./minimize-16x16.svg":"./packages/survey-core/src/images-v2/minimize-16x16.svg","./more-24x24.svg":"./packages/survey-core/src/images-v2/more-24x24.svg","./navmenu-24x24.svg":"./packages/survey-core/src/images-v2/navmenu-24x24.svg","./noimage-48x48.svg":"./packages/survey-core/src/images-v2/noimage-48x48.svg","./ranking-arrows.svg":"./packages/survey-core/src/images-v2/ranking-arrows.svg","./rankingundefined-16x16.svg":"./packages/survey-core/src/images-v2/rankingundefined-16x16.svg","./rating-star-2.svg":"./packages/survey-core/src/images-v2/rating-star-2.svg","./rating-star-small-2.svg":"./packages/survey-core/src/images-v2/rating-star-small-2.svg","./rating-star-small.svg":"./packages/survey-core/src/images-v2/rating-star-small.svg","./rating-star.svg":"./packages/survey-core/src/images-v2/rating-star.svg","./reorder-24x24.svg":"./packages/survey-core/src/images-v2/reorder-24x24.svg","./restoredown-16x16.svg":"./packages/survey-core/src/images-v2/restoredown-16x16.svg","./search-24x24.svg":"./packages/survey-core/src/images-v2/search-24x24.svg","./smiley-rate1-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate1-24x24.svg","./smiley-rate10-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate10-24x24.svg","./smiley-rate2-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate2-24x24.svg","./smiley-rate3-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate3-24x24.svg","./smiley-rate4-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate4-24x24.svg","./smiley-rate5-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate5-24x24.svg","./smiley-rate6-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate6-24x24.svg","./smiley-rate7-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate7-24x24.svg","./smiley-rate8-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate8-24x24.svg","./smiley-rate9-24x24.svg":"./packages/survey-core/src/images-v2/smiley-rate9-24x24.svg"};function ee(se){var ve=he(se);return A(ve)}function he(se){if(!A.o(H,se)){var ve=new Error("Cannot find module '"+se+"'");throw ve.code="MODULE_NOT_FOUND",ve}return H[se]}ee.keys=function(){return Object.keys(H)},ee.resolve=he,O.exports=ee,ee.id="./packages/survey-core/src/images-v2 sync recursive \\.svg$"},"./packages/survey-core/src/images-v2/ModernBooleanCheckChecked.svg":function(O,m){O.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},"./packages/survey-core/src/images-v2/ModernBooleanCheckInd.svg":function(O,m){O.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},"./packages/survey-core/src/images-v2/ModernBooleanCheckUnchecked.svg":function(O,m){O.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},"./packages/survey-core/src/images-v2/ModernCheck.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},"./packages/survey-core/src/images-v2/ModernRadio.svg":function(O,m){O.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},"./packages/survey-core/src/images-v2/ProgressButton.svg":function(O,m){O.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},"./packages/survey-core/src/images-v2/RemoveFile.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},"./packages/survey-core/src/images-v2/TimerCircle.svg":function(O,m){O.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},"./packages/survey-core/src/images-v2/add-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M15.75 12C15.75 12.41 15.41 12.75 15 12.75H12.75V15C12.75 15.41 12.41 15.75 12 15.75C11.59 15.75 11.25 15.41 11.25 15V12.75H9C8.59 12.75 8.25 12.41 8.25 12C8.25 11.59 8.59 11.25 9 11.25H11.25V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9V11.25H15C15.41 11.25 15.75 11.59 15.75 12ZM21.75 12C21.75 17.38 17.38 21.75 12 21.75C6.62 21.75 2.25 17.38 2.25 12C2.25 6.62 6.62 2.25 12 2.25C17.38 2.25 21.75 6.62 21.75 12ZM20.25 12C20.25 7.45 16.55 3.75 12 3.75C7.45 3.75 3.75 7.45 3.75 12C3.75 16.55 7.45 20.25 12 20.25C16.55 20.25 20.25 16.55 20.25 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/arrowleft-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.7475 7.9975C14.7475 8.4075 14.4075 8.7475 13.9975 8.7475H3.8075L7.5275 12.4675C7.8175 12.7575 7.8175 13.2375 7.5275 13.5275C7.3775 13.6775 7.1875 13.7475 6.9975 13.7475C6.8075 13.7475 6.6175 13.6775 6.4675 13.5275L1.4675 8.5275C1.1775 8.2375 1.1775 7.7575 1.4675 7.4675L6.4675 2.4675C6.7575 2.1775 7.2375 2.1775 7.5275 2.4675C7.8175 2.7575 7.8175 3.2375 7.5275 3.5275L3.8075 7.2475H13.9975C14.4075 7.2475 14.7475 7.5875 14.7475 7.9975Z"></path></svg>'},"./packages/survey-core/src/images-v2/arrowright-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.53 8.5275L9.53 13.5275C9.38 13.6775 9.19 13.7475 9 13.7475C8.81 13.7475 8.62 13.6775 8.47 13.5275C8.18 13.2375 8.18 12.7575 8.47 12.4675L12.19 8.7475H2C1.59 8.7475 1.25 8.4075 1.25 7.9975C1.25 7.5875 1.59 7.2475 2 7.2475H12.19L8.47 3.5275C8.18 3.2375 8.18 2.7575 8.47 2.4675C8.76 2.1775 9.24 2.1775 9.53 2.4675L14.53 7.4675C14.82 7.7575 14.82 8.2375 14.53 8.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/camera-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.19 4.25H17.12C16.72 4.25 16.35 4.03 16.17 3.67C15.73 2.8 14.86 2.25 13.88 2.25H10.12C9.14 2.25 8.27 2.79 7.83 3.67C7.65 4.03 7.29 4.25 6.88 4.25H4.81C3.4 4.25 2.25 5.4 2.25 6.81V18.19C2.25 19.6 3.4 20.75 4.81 20.75H19.19C20.6 20.75 21.75 19.6 21.75 18.19V6.81C21.75 5.4 20.6 4.25 19.19 4.25ZM20.25 18.19C20.25 18.77 19.78 19.25 19.19 19.25H4.81C4.23 19.25 3.75 18.78 3.75 18.19V6.81C3.75 6.23 4.22 5.75 4.81 5.75H6.88C7.86 5.75 8.73 5.21 9.17 4.33C9.35 3.97 9.71 3.75 10.12 3.75H13.88C14.28 3.75 14.65 3.97 14.83 4.33C15.27 5.2 16.14 5.75 17.12 5.75H19.19C19.77 5.75 20.25 6.22 20.25 6.81V18.19ZM12 6.25C8.83 6.25 6.25 8.83 6.25 12C6.25 15.17 8.83 17.75 12 17.75C15.17 17.75 17.75 15.17 17.75 12C17.75 8.83 15.17 6.25 12 6.25ZM12 16.25C9.66 16.25 7.75 14.34 7.75 12C7.75 9.66 9.66 7.75 12 7.75C14.34 7.75 16.25 9.66 16.25 12C16.25 14.34 14.34 16.25 12 16.25ZM14.75 12C14.75 13.52 13.52 14.75 12 14.75C11.59 14.75 11.25 14.41 11.25 14C11.25 13.59 11.59 13.25 12 13.25C12.69 13.25 13.25 12.69 13.25 12C13.25 11.59 13.59 11.25 14 11.25C14.41 11.25 14.75 11.59 14.75 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/camera-32x32.svg":function(O,m){O.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><path d="M25 7.25H22.19C21.73 7.25 21.31 7 21.09 6.59L20.89 6.22C20.23 5.01 18.97 4.25 17.59 4.25H14.41C13.03 4.25 11.77 5 11.11 6.22L10.91 6.6C10.69 7 10.27 7.26 9.81 7.26H7C4.93 7.26 3.25 8.94 3.25 11.01V24.01C3.25 26.08 4.93 27.76 7 27.76H25C27.07 27.76 28.75 26.08 28.75 24.01V11C28.75 8.93 27.07 7.25 25 7.25ZM27.25 24C27.25 25.24 26.24 26.25 25 26.25H7C5.76 26.25 4.75 25.24 4.75 24V11C4.75 9.76 5.76 8.75 7 8.75H9.81C10.82 8.75 11.75 8.2 12.23 7.31L12.43 6.94C12.82 6.21 13.58 5.76 14.41 5.76H17.59C18.42 5.76 19.18 6.21 19.57 6.94L19.77 7.31C20.25 8.2 21.18 8.76 22.19 8.76H25C26.24 8.76 27.25 9.77 27.25 11.01V24.01V24ZM16 10.25C12.28 10.25 9.25 13.28 9.25 17C9.25 20.72 12.28 23.75 16 23.75C19.72 23.75 22.75 20.72 22.75 17C22.75 13.28 19.72 10.25 16 10.25ZM16 22.25C13.11 22.25 10.75 19.89 10.75 17C10.75 14.11 13.11 11.75 16 11.75C18.89 11.75 21.25 14.11 21.25 17C21.25 19.89 18.89 22.25 16 22.25ZM19.75 17C19.75 19.07 18.07 20.75 16 20.75C15.59 20.75 15.25 20.41 15.25 20C15.25 19.59 15.59 19.25 16 19.25C17.24 19.25 18.25 18.24 18.25 17C18.25 16.59 18.59 16.25 19 16.25C19.41 16.25 19.75 16.59 19.75 17Z"></path></svg>'},"./packages/survey-core/src/images-v2/cancel-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.8099 11.75L15.2799 9.28C15.5699 8.99 15.5699 8.51 15.2799 8.22C14.9899 7.93 14.5099 7.93 14.2199 8.22L11.7499 10.69L9.27994 8.22C8.98994 7.93 8.50994 7.93 8.21994 8.22C7.92994 8.51 7.92994 8.99 8.21994 9.28L10.6899 11.75L8.21994 14.22C7.92994 14.51 7.92994 14.99 8.21994 15.28C8.36994 15.43 8.55994 15.5 8.74994 15.5C8.93994 15.5 9.12994 15.43 9.27994 15.28L11.7499 12.81L14.2199 15.28C14.3699 15.43 14.5599 15.5 14.7499 15.5C14.9399 15.5 15.1299 15.43 15.2799 15.28C15.5699 14.99 15.5699 14.51 15.2799 14.22L12.8099 11.75Z"></path></svg>'},"./packages/survey-core/src/images-v2/check-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.0275 5.0275L6.5275 12.5275C6.3775 12.6775 6.1875 12.7475 5.9975 12.7475C5.8075 12.7475 5.6175 12.6775 5.4675 12.5275L2.4675 9.5275C2.1775 9.2375 2.1775 8.7575 2.4675 8.4675C2.7575 8.1775 3.2375 8.1775 3.5275 8.4675L5.9975 10.9375L12.9675 3.9675C13.2575 3.6775 13.7375 3.6775 14.0275 3.9675C14.3175 4.2575 14.3175 4.7375 14.0275 5.0275Z"></path></svg>'},"./packages/survey-core/src/images-v2/check-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5275 7.5275L9.5275 17.5275C9.3775 17.6775 9.1875 17.7475 8.9975 17.7475C8.8075 17.7475 8.6175 17.6775 8.4675 17.5275L4.4675 13.5275C4.1775 13.2375 4.1775 12.7575 4.4675 12.4675C4.7575 12.1775 5.2375 12.1775 5.5275 12.4675L8.9975 15.9375L18.4675 6.4675C18.7575 6.1775 19.2375 6.1775 19.5275 6.4675C19.8175 6.7575 19.8175 7.2375 19.5275 7.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/chevrondown-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M16.5275 10.5275L12.5275 14.5275C12.3775 14.6775 12.1875 14.7475 11.9975 14.7475C11.8075 14.7475 11.6175 14.6775 11.4675 14.5275L7.4675 10.5275C7.1775 10.2375 7.1775 9.7575 7.4675 9.4675C7.7575 9.1775 8.2375 9.1775 8.5275 9.4675L11.9975 12.9375L15.4675 9.4675C15.7575 9.1775 16.2375 9.1775 16.5275 9.4675C16.8175 9.7575 16.8175 10.2375 16.5275 10.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/chevronright-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.35 8.34627L7.35 12.3463C7.25 12.4463 7.12 12.4963 7 12.4963C6.88 12.4963 6.74 12.4463 6.65 12.3463C6.45 12.1463 6.45 11.8363 6.65 11.6363L10.3 7.98627L6.65 4.34627C6.45 4.15627 6.45 3.83627 6.65 3.64627C6.85 3.45627 7.16 3.44627 7.35 3.64627L11.35 7.64627C11.55 7.84627 11.55 8.15627 11.35 8.35627V8.34627Z"></path></svg>'},"./packages/survey-core/src/images-v2/clear-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12.35 11.65C12.55 11.85 12.55 12.16 12.35 12.36C12.25 12.46 12.12 12.51 12 12.51C11.88 12.51 11.74 12.46 11.65 12.36L8 8.71L4.35 12.36C4.25 12.46 4.12 12.51 4 12.51C3.88 12.51 3.74 12.46 3.65 12.36C3.45 12.16 3.45 11.85 3.65 11.65L7.3 8L3.65 4.35C3.45 4.16 3.45 3.84 3.65 3.65C3.85 3.46 4.16 3.45 4.35 3.65L8 7.3L11.65 3.65C11.85 3.45 12.16 3.45 12.36 3.65C12.56 3.85 12.56 4.16 12.36 4.36L8.71 8.01L12.36 11.66L12.35 11.65Z"></path></svg>'},"./packages/survey-core/src/images-v2/clear-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.12 10.9325C20.64 10.4125 20.93 9.7225 20.93 8.9925C20.93 8.2625 20.64 7.5725 20.12 7.0525L16.95 3.8825C15.88 2.8125 14.13 2.8125 13.06 3.8825L3.88 13.0525C3.36 13.5725 3.07 14.2625 3.07 14.9925C3.07 15.7225 3.36 16.4125 3.88 16.9325L5.64 18.6925C6.57 19.6225 7.78 20.0825 9 20.0825C10.22 20.0825 11.43 19.6225 12.36 18.6925L20.12 10.9325ZM14.12 4.9325C14.36 4.6925 14.67 4.5625 15 4.5625C15.33 4.5625 15.65 4.6925 15.88 4.9325L19.05 8.1025C19.54 8.5925 19.54 9.3825 19.05 9.8725L12.99 15.9325L8.05 10.9925L14.12 4.9325ZM6.7 17.6325L4.94 15.8725C4.45 15.3825 4.45 14.5925 4.94 14.1025L7 12.0425L11.94 16.9825L11.3 17.6225C10.07 18.8525 7.93 18.8525 6.7 17.6225V17.6325ZM22.75 20.9925C22.75 21.4025 22.41 21.7425 22 21.7425H14C13.59 21.7425 13.25 21.4025 13.25 20.9925C13.25 20.5825 13.59 20.2425 14 20.2425H22C22.41 20.2425 22.75 20.5825 22.75 20.9925ZM4.75 20.9925C4.75 21.4025 4.41 21.7425 4 21.7425H2C1.59 21.7425 1.25 21.4025 1.25 20.9925C1.25 20.5825 1.59 20.2425 2 20.2425H4C4.41 20.2425 4.75 20.5825 4.75 20.9925Z"></path></svg>'},"./packages/survey-core/src/images-v2/close-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.5275 12.4675C13.8175 12.7575 13.8175 13.2375 13.5275 13.5275C13.3775 13.6775 13.1875 13.7475 12.9975 13.7475C12.8075 13.7475 12.6175 13.6775 12.4675 13.5275L7.9975 9.0575L3.5275 13.5275C3.3775 13.6775 3.1875 13.7475 2.9975 13.7475C2.8075 13.7475 2.6175 13.6775 2.4675 13.5275C2.1775 13.2375 2.1775 12.7575 2.4675 12.4675L6.9375 7.9975L2.4675 3.5275C2.1775 3.2375 2.1775 2.7575 2.4675 2.4675C2.7575 2.1775 3.2375 2.1775 3.5275 2.4675L7.9975 6.9375L12.4675 2.4675C12.7575 2.1775 13.2375 2.1775 13.5275 2.4675C13.8175 2.7575 13.8175 3.2375 13.5275 3.5275L9.0575 7.9975L13.5275 12.4675Z"></path></svg>'},"./packages/survey-core/src/images-v2/close-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19.5275 18.4675C19.8175 18.7575 19.8175 19.2375 19.5275 19.5275C19.3775 19.6775 19.1875 19.7475 18.9975 19.7475C18.8075 19.7475 18.6175 19.6775 18.4675 19.5275L11.9975 13.0575L5.5275 19.5275C5.3775 19.6775 5.1875 19.7475 4.9975 19.7475C4.8075 19.7475 4.6175 19.6775 4.4675 19.5275C4.1775 19.2375 4.1775 18.7575 4.4675 18.4675L10.9375 11.9975L4.4675 5.5275C4.1775 5.2375 4.1775 4.7575 4.4675 4.4675C4.7575 4.1775 5.2375 4.1775 5.5275 4.4675L11.9975 10.9375L18.4675 4.4675C18.7575 4.1775 19.2375 4.1775 19.5275 4.4675C19.8175 4.7575 19.8175 5.2375 19.5275 5.5275L13.0575 11.9975L19.5275 18.4675Z"></path></svg>'},"./packages/survey-core/src/images-v2/collapse-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/collapsedetails-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/delete-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.75 9V17C12.75 17.41 12.41 17.75 12 17.75C11.59 17.75 11.25 17.41 11.25 17V9C11.25 8.59 11.59 8.25 12 8.25C12.41 8.25 12.75 8.59 12.75 9ZM14.25 9V17C14.25 17.41 14.59 17.75 15 17.75C15.41 17.75 15.75 17.41 15.75 17V9C15.75 8.59 15.41 8.25 15 8.25C14.59 8.25 14.25 8.59 14.25 9ZM9 8.25C8.59 8.25 8.25 8.59 8.25 9V17C8.25 17.41 8.59 17.75 9 17.75C9.41 17.75 9.75 17.41 9.75 17V9C9.75 8.59 9.41 8.25 9 8.25ZM20.75 6C20.75 6.41 20.41 6.75 20 6.75H18.75V18C18.75 19.52 17.52 20.75 16 20.75H8C6.48 20.75 5.25 19.52 5.25 18V6.75H4C3.59 6.75 3.25 6.41 3.25 6C3.25 5.59 3.59 5.25 4 5.25H8.25V4C8.25 3.04 9.04 2.25 10 2.25H14C14.96 2.25 15.75 3.04 15.75 4V5.25H20C20.41 5.25 20.75 5.59 20.75 6ZM9.75 5.25H14.25V4C14.25 3.86 14.14 3.75 14 3.75H10C9.86 3.75 9.75 3.86 9.75 4V5.25ZM17.25 6.75H6.75V18C6.75 18.69 7.31 19.25 8 19.25H16C16.69 19.25 17.25 18.69 17.25 18V6.75Z"></path></svg>'},"./packages/survey-core/src/images-v2/drag-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 8.75C15.19 8.75 15.75 8.19 15.75 7.5C15.75 6.81 15.19 6.25 14.5 6.25C13.81 6.25 13.25 6.81 13.25 7.5C13.25 8.19 13.81 8.75 14.5 8.75ZM14.5 7.25C14.64 7.25 14.75 7.36 14.75 7.5C14.75 7.78 14.25 7.78 14.25 7.5C14.25 7.36 14.36 7.25 14.5 7.25ZM9.5 6.25C8.81 6.25 8.25 6.81 8.25 7.5C8.25 8.19 8.81 8.75 9.5 8.75C10.19 8.75 10.75 8.19 10.75 7.5C10.75 6.81 10.19 6.25 9.5 6.25ZM9.25 7.5C9.25 7.36 9.36 7.25 9.5 7.25C9.64 7.25 9.75 7.36 9.75 7.5C9.75 7.78 9.25 7.78 9.25 7.5ZM14.5 11.25C13.81 11.25 13.25 11.81 13.25 12.5C13.25 13.19 13.81 13.75 14.5 13.75C15.19 13.75 15.75 13.19 15.75 12.5C15.75 11.81 15.19 11.25 14.5 11.25ZM14.25 12.5C14.25 12.36 14.36 12.25 14.5 12.25C14.64 12.25 14.75 12.36 14.75 12.5C14.75 12.78 14.25 12.78 14.25 12.5ZM9.5 11.25C8.81 11.25 8.25 11.81 8.25 12.5C8.25 13.19 8.81 13.75 9.5 13.75C10.19 13.75 10.75 13.19 10.75 12.5C10.75 11.81 10.19 11.25 9.5 11.25ZM9.25 12.5C9.25 12.36 9.36 12.25 9.5 12.25C9.64 12.25 9.75 12.36 9.75 12.5C9.75 12.78 9.25 12.78 9.25 12.5ZM14.5 16.25C13.81 16.25 13.25 16.81 13.25 17.5C13.25 18.19 13.81 18.75 14.5 18.75C15.19 18.75 15.75 18.19 15.75 17.5C15.75 16.81 15.19 16.25 14.5 16.25ZM14.25 17.5C14.25 17.36 14.36 17.25 14.5 17.25C14.64 17.25 14.75 17.36 14.75 17.5C14.75 17.78 14.25 17.78 14.25 17.5ZM9.5 16.25C8.81 16.25 8.25 16.81 8.25 17.5C8.25 18.19 8.81 18.75 9.5 18.75C10.19 18.75 10.75 18.19 10.75 17.5C10.75 16.81 10.19 16.25 9.5 16.25ZM9.25 17.5C9.25 17.36 9.36 17.25 9.5 17.25C9.64 17.25 9.75 17.36 9.75 17.5C9.75 17.78 9.25 17.78 9.25 17.5Z"></path></svg>'},"./packages/survey-core/src/images-v2/draghorizontal-24x16.svg":function(O,m){O.exports='<svg viewBox="0 0 24 16" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 9.25C16.81 9.25 16.25 9.81 16.25 10.5C16.25 11.19 16.81 11.75 17.5 11.75C18.19 11.75 18.75 11.19 18.75 10.5C18.75 9.81 18.19 9.25 17.5 9.25ZM17.25 10.5C17.25 10.36 17.36 10.25 17.5 10.25C17.64 10.25 17.75 10.36 17.75 10.5C17.75 10.78 17.25 10.78 17.25 10.5ZM17.5 6.75C18.19 6.75 18.75 6.19 18.75 5.5C18.75 4.81 18.19 4.25 17.5 4.25C16.81 4.25 16.25 4.81 16.25 5.5C16.25 6.19 16.81 6.75 17.5 6.75ZM17.5 5.25C17.64 5.25 17.75 5.36 17.75 5.5C17.75 5.78 17.25 5.78 17.25 5.5C17.25 5.36 17.36 5.25 17.5 5.25ZM12.5 9.25C11.81 9.25 11.25 9.81 11.25 10.5C11.25 11.19 11.81 11.75 12.5 11.75C13.19 11.75 13.75 11.19 13.75 10.5C13.75 9.81 13.19 9.25 12.5 9.25ZM12.25 10.5C12.25 10.36 12.36 10.25 12.5 10.25C12.64 10.25 12.75 10.36 12.75 10.5C12.75 10.78 12.25 10.78 12.25 10.5ZM12.5 4.25C11.81 4.25 11.25 4.81 11.25 5.5C11.25 6.19 11.81 6.75 12.5 6.75C13.19 6.75 13.75 6.19 13.75 5.5C13.75 4.81 13.19 4.25 12.5 4.25ZM12.25 5.5C12.25 5.36 12.36 5.25 12.5 5.25C12.64 5.25 12.75 5.36 12.75 5.5C12.75 5.78 12.25 5.78 12.25 5.5ZM7.5 9.25C6.81 9.25 6.25 9.81 6.25 10.5C6.25 11.19 6.81 11.75 7.5 11.75C8.19 11.75 8.75 11.19 8.75 10.5C8.75 9.81 8.19 9.25 7.5 9.25ZM7.25 10.5C7.25 10.36 7.36 10.25 7.5 10.25C7.64 10.25 7.75 10.36 7.75 10.5C7.75 10.78 7.25 10.78 7.25 10.5ZM7.5 4.25C6.81 4.25 6.25 4.81 6.25 5.5C6.25 6.19 6.81 6.75 7.5 6.75C8.19 6.75 8.75 6.19 8.75 5.5C8.75 4.81 8.19 4.25 7.5 4.25ZM7.25 5.5C7.25 5.36 7.36 5.25 7.5 5.25C7.64 5.25 7.75 5.36 7.75 5.5C7.75 5.78 7.25 5.78 7.25 5.5Z"></path></svg>'},"./packages/survey-core/src/images-v2/expand-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/expanddetails-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H8.75V11C8.75 11.41 8.41 11.75 8 11.75C7.59 11.75 7.25 11.41 7.25 11V8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H7.25V5C7.25 4.59 7.59 4.25 8 4.25C8.41 4.25 8.75 4.59 8.75 5V7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/file-72x72.svg":function(O,m){O.exports='<svg viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg"><path d="M62.83 12.83L53.17 3.17C52.7982 2.79866 52.357 2.50421 51.8714 2.30346C51.3858 2.1027 50.8654 1.99959 50.34 2H14C12.4087 2 10.8826 2.63214 9.75735 3.75736C8.63214 4.88258 8 6.4087 8 8V64C8 65.5913 8.63214 67.1174 9.75735 68.2426C10.8826 69.3679 12.4087 70 14 70H58C59.5913 70 61.1174 69.3679 62.2426 68.2426C63.3679 67.1174 64 65.5913 64 64V15.66C64.0004 15.1346 63.8973 14.6142 63.6965 14.1286C63.4958 13.643 63.2013 13.2018 62.83 12.83ZM52 4.83L61.17 14H56C54.9391 14 53.9217 13.5786 53.1716 12.8284C52.4214 12.0783 52 11.0609 52 10V4.83ZM62 64C62 65.0609 61.5786 66.0783 60.8284 66.8284C60.0783 67.5786 59.0609 68 58 68H14C12.9391 68 11.9217 67.5786 11.1716 66.8284C10.4214 66.0783 10 65.0609 10 64V8C10 6.93914 10.4214 5.92172 11.1716 5.17157C11.9217 4.42143 12.9391 4 14 4H50V10C50 11.5913 50.6321 13.1174 51.7574 14.2426C52.8826 15.3679 54.4087 16 56 16H62V64ZM22 26H50V28H22V26ZM22 32H50V34H22V32ZM22 38H50V40H22V38ZM22 44H50V46H22V44Z"></path></svg>'},"./packages/survey-core/src/images-v2/flip-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14.53 17.4775C14.82 17.7675 14.82 18.2475 14.53 18.5375L11.53 21.5375C11.38 21.6875 11.19 21.7575 11 21.7575C10.81 21.7575 10.62 21.6875 10.47 21.5375C10.18 21.2475 10.18 20.7675 10.47 20.4775L12.2 18.7475C12.13 18.7475 12.07 18.7475 12 18.7475C6.62 18.7475 2.25 15.7475 2.25 12.0575C2.25 10.2975 3.22 8.6375 4.99 7.3875C5.33 7.1475 5.8 7.2275 6.03 7.5675C6.27 7.9075 6.19 8.3775 5.85 8.6075C4.49 9.5675 3.74 10.7875 3.74 12.0575C3.74 14.9175 7.44 17.2475 11.99 17.2475C12.05 17.2475 12.11 17.2475 12.17 17.2475L10.46 15.5375C10.17 15.2475 10.17 14.7675 10.46 14.4775C10.75 14.1875 11.23 14.1875 11.52 14.4775L14.52 17.4775H14.53ZM12 5.2575C11.93 5.2575 11.87 5.2575 11.8 5.2575L13.53 3.5275C13.82 3.2375 13.82 2.7575 13.53 2.4675C13.24 2.1775 12.76 2.1775 12.47 2.4675L9.47 5.4675C9.18 5.7575 9.18 6.2375 9.47 6.5275L12.47 9.5275C12.62 9.6775 12.81 9.7475 13 9.7475C13.19 9.7475 13.38 9.6775 13.53 9.5275C13.82 9.2375 13.82 8.7575 13.53 8.4675L11.82 6.7575C11.88 6.7575 11.94 6.7575 12 6.7575C16.55 6.7575 20.25 9.0875 20.25 11.9475C20.25 13.2075 19.5 14.4375 18.14 15.3975C17.8 15.6375 17.72 16.1075 17.96 16.4475C18.11 16.6575 18.34 16.7675 18.57 16.7675C18.72 16.7675 18.87 16.7275 19 16.6275C20.77 15.3775 21.75 13.7175 21.75 11.9575C21.75 8.2675 17.38 5.2675 12 5.2675V5.2575Z"></path></svg>'},"./packages/survey-core/src/images-v2/folder-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M21.72 9.24C21.45 8.92 21.12 8.67 20.75 8.5V8C20.75 6.48 19.52 5.25 18 5.25H10.65C10.32 4.1 9.26 3.25 8 3.25H6C4.48 3.25 3.25 4.48 3.25 6V18C3.25 19.52 4.48 20.75 6 20.75H18.33C19.66 20.75 20.8 19.8 21.04 18.49L22.31 11.49C22.46 10.69 22.24 9.86 21.72 9.24ZM4.75 18V6C4.75 5.31 5.31 4.75 6 4.75H8C8.69 4.75 9.25 5.31 9.25 6C9.25 6.41 9.59 6.75 10 6.75H18C18.69 6.75 19.25 7.31 19.25 8V8.25H9.27C7.94 8.25 6.8 9.2 6.56 10.51L5.29 17.51C5.19 18.07 5.27 18.64 5.51 19.15C5.06 18.96 4.75 18.52 4.75 18ZM20.83 11.22L19.56 18.22C19.45 18.81 18.94 19.25 18.33 19.25H8C7.63 19.25 7.28 19.09 7.04 18.8C6.8 18.51 6.7 18.14 6.77 17.78L8.04 10.78C8.15 10.19 8.66 9.75 9.27 9.75H19.6C19.97 9.75 20.32 9.91 20.56 10.2C20.8 10.49 20.9 10.86 20.83 11.22Z"></path></svg>'},"./packages/survey-core/src/images-v2/fullsize-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M12 3.25H4C3.04 3.25 2.25 4.04 2.25 5V11C2.25 11.96 3.04 12.75 4 12.75H12C12.96 12.75 13.75 11.96 13.75 11V5C13.75 4.04 12.96 3.25 12 3.25ZM12.25 11C12.25 11.14 12.14 11.25 12 11.25H4C3.86 11.25 3.75 11.14 3.75 11V5C3.75 4.86 3.86 4.75 4 4.75H12C12.14 4.75 12.25 4.86 12.25 5V11Z"></path></svg>'},"./packages/survey-core/src/images-v2/image-48x48.svg":function(O,m){O.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M33 10.25H15C12.38 10.25 10.25 12.38 10.25 15V33C10.25 35.62 12.38 37.75 15 37.75H33C35.62 37.75 37.75 35.62 37.75 33V15C37.75 12.38 35.62 10.25 33 10.25ZM36.25 33C36.25 34.79 34.79 36.25 33 36.25H15C13.21 36.25 11.75 34.79 11.75 33V15C11.75 13.21 13.21 11.75 15 11.75H33C34.79 11.75 36.25 13.21 36.25 15V33ZM30.5 14.25C28.71 14.25 27.25 15.71 27.25 17.5C27.25 19.29 28.71 20.75 30.5 20.75C32.29 20.75 33.75 19.29 33.75 17.5C33.75 15.71 32.29 14.25 30.5 14.25ZM30.5 19.25C29.54 19.25 28.75 18.46 28.75 17.5C28.75 16.54 29.54 15.75 30.5 15.75C31.46 15.75 32.25 16.54 32.25 17.5C32.25 18.46 31.46 19.25 30.5 19.25ZM29.26 26.28C28.94 25.92 28.49 25.71 28.01 25.7C27.54 25.68 27.07 25.87 26.73 26.2L24.95 27.94L22.28 25.23C21.94 24.89 21.5 24.71 21 24.71C20.52 24.71 20.06 24.93 19.74 25.28L14.74 30.78C14.25 31.3 14.12 32.06 14.41 32.72C14.69 33.36 15.28 33.75 15.95 33.75H32.07C32.74 33.75 33.33 33.35 33.61 32.72C33.89 32.06 33.77 31.31 33.29 30.79L29.27 26.29L29.26 26.28ZM32.22 32.12C32.18 32.2 32.13 32.25 32.06 32.25H15.94C15.87 32.25 15.81 32.21 15.78 32.12C15.77 32.09 15.71 31.93 15.83 31.8L20.84 26.29C20.9 26.22 20.99 26.21 21.02 26.21C21.06 26.21 21.14 26.22 21.2 26.29L24.4 29.54C24.69 29.83 25.16 29.84 25.46 29.54L27.77 27.27C27.83 27.21 27.9 27.2 27.94 27.2C28.01 27.2 28.06 27.21 28.13 27.28L32.16 31.79C32.16 31.79 32.16 31.79 32.17 31.8C32.29 31.93 32.23 32.09 32.22 32.12Z"></path></svg>'},"./packages/survey-core/src/images-v2/loading-48x48.svg":function(O,m){O.exports='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_19679_369428)"><path opacity="0.1" d="M24 40C15.18 40 8 32.82 8 24C8 15.18 15.18 8 24 8C32.82 8 40 15.18 40 24C40 32.82 32.82 40 24 40ZM24 12C17.38 12 12 17.38 12 24C12 30.62 17.38 36 24 36C30.62 36 36 30.62 36 24C36 17.38 30.62 12 24 12Z" fill="black" fill-opacity="0.91"></path><path d="M10 26C8.9 26 8 25.1 8 24C8 15.18 15.18 8 24 8C25.1 8 26 8.9 26 10C26 11.1 25.1 12 24 12C17.38 12 12 17.38 12 24C12 25.1 11.1 26 10 26Z" fill="#19B394"></path></g><defs><clipPath id="clip0_19679_369428"><rect width="32" height="32" fill="white" transform="translate(8 8)"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v2/maximize-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.75 3V7C13.75 7.41 13.41 7.75 13 7.75C12.59 7.75 12.25 7.41 12.25 7V4.81L9.53 7.53C9.38 7.68 9.19 7.75 9 7.75C8.81 7.75 8.62 7.68 8.47 7.53C8.18 7.24 8.18 6.76 8.47 6.47L11.19 3.75H9C8.59 3.75 8.25 3.41 8.25 3C8.25 2.59 8.59 2.25 9 2.25H13C13.1 2.25 13.19 2.27 13.29 2.31C13.47 2.39 13.62 2.53 13.7 2.72C13.74 2.81 13.76 2.91 13.76 3.01L13.75 3ZM7.53 8.47C7.24 8.18 6.76 8.18 6.47 8.47L3.75 11.19V9C3.75 8.59 3.41 8.25 3 8.25C2.59 8.25 2.25 8.59 2.25 9V13C2.25 13.1 2.27 13.19 2.31 13.29C2.39 13.47 2.53 13.62 2.72 13.7C2.81 13.74 2.91 13.76 3.01 13.76H7.01C7.42 13.76 7.76 13.42 7.76 13.01C7.76 12.6 7.42 12.26 7.01 12.26H4.82L7.54 9.54C7.83 9.25 7.83 8.77 7.54 8.48L7.53 8.47Z"></path></svg>'},"./packages/survey-core/src/images-v2/minimize-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.75 8C13.75 8.41 13.41 8.75 13 8.75H3C2.59 8.75 2.25 8.41 2.25 8C2.25 7.59 2.59 7.25 3 7.25H13C13.41 7.25 13.75 7.59 13.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/more-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 10.25C11.04 10.25 10.25 11.04 10.25 12C10.25 12.96 11.04 13.75 12 13.75C12.96 13.75 13.75 12.96 13.75 12C13.75 11.04 12.96 10.25 12 10.25ZM11.75 12C11.75 11.86 11.86 11.75 12 11.75C12.14 11.75 12.25 11.86 12.25 12C12.25 12.28 11.75 12.28 11.75 12ZM19 10.25C18.04 10.25 17.25 11.04 17.25 12C17.25 12.96 18.04 13.75 19 13.75C19.96 13.75 20.75 12.96 20.75 12C20.75 11.04 19.96 10.25 19 10.25ZM18.75 12C18.75 11.86 18.86 11.75 19 11.75C19.14 11.75 19.25 11.86 19.25 12C19.25 12.28 18.75 12.28 18.75 12ZM5 10.25C4.04 10.25 3.25 11.04 3.25 12C3.25 12.96 4.04 13.75 5 13.75C5.96 13.75 6.75 12.96 6.75 12C6.75 11.04 5.96 10.25 5 10.25ZM4.75 12C4.75 11.86 4.86 11.75 5 11.75C5.14 11.75 5.25 11.86 5.25 12C5.25 12.28 4.75 12.28 4.75 12Z"></path></svg>'},"./packages/survey-core/src/images-v2/navmenu-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3.25 7C3.25 6.59 3.59 6.25 4 6.25H15C15.41 6.25 15.75 6.59 15.75 7C15.75 7.41 15.41 7.75 15 7.75H4C3.59 7.75 3.25 7.41 3.25 7ZM20 11.25H4C3.59 11.25 3.25 11.59 3.25 12C3.25 12.41 3.59 12.75 4 12.75H20C20.41 12.75 20.75 12.41 20.75 12C20.75 11.59 20.41 11.25 20 11.25ZM9 16.25H4C3.59 16.25 3.25 16.59 3.25 17C3.25 17.41 3.59 17.75 4 17.75H9C9.41 17.75 9.75 17.41 9.75 17C9.75 16.59 9.41 16.25 9 16.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/noimage-48x48.svg":function(O,m){O.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M30.4975 14.2475C28.7075 14.2475 27.2475 15.7075 27.2475 17.4975C27.2475 19.2875 28.7075 20.7475 30.4975 20.7475C32.2875 20.7475 33.7475 19.2875 33.7475 17.4975C33.7475 15.7075 32.2875 14.2475 30.4975 14.2475ZM30.4975 19.2475C29.5375 19.2475 28.7475 18.4575 28.7475 17.4975C28.7475 16.5375 29.5375 15.7475 30.4975 15.7475C31.4575 15.7475 32.2475 16.5375 32.2475 17.4975C32.2475 18.4575 31.4575 19.2475 30.4975 19.2475ZM13.5175 11.2175C13.4375 10.8075 13.7075 10.4175 14.1175 10.3375C14.4275 10.2775 14.7175 10.2475 14.9975 10.2475H32.9975C35.6175 10.2475 37.7475 12.3775 37.7475 14.9975V32.9975C37.7475 33.2775 37.7175 33.5675 37.6575 33.8775C37.5875 34.2375 37.2775 34.4875 36.9175 34.4875C36.8675 34.4875 36.8275 34.4875 36.7775 34.4775C36.3675 34.3975 36.1075 34.0075 36.1775 33.5975C36.2175 33.3775 36.2375 33.1775 36.2375 32.9975V14.9975C36.2375 13.2075 34.7775 11.7475 32.9875 11.7475H14.9975C14.8075 11.7475 14.6175 11.7675 14.3975 11.8075C13.9875 11.8875 13.5975 11.6175 13.5175 11.2075V11.2175ZM34.4775 36.7775C34.5575 37.1875 34.2875 37.5775 33.8775 37.6575C33.5675 37.7175 33.2775 37.7475 32.9975 37.7475H14.9975C12.3775 37.7475 10.2475 35.6175 10.2475 32.9975V14.9975C10.2475 14.7175 10.2775 14.4275 10.3375 14.1175C10.4175 13.7075 10.8075 13.4375 11.2175 13.5175C11.6275 13.5975 11.8875 13.9875 11.8175 14.3975C11.7775 14.6175 11.7575 14.8175 11.7575 14.9975V32.9975C11.7575 34.7875 13.2175 36.2475 15.0075 36.2475H33.0075C33.1975 36.2475 33.3875 36.2275 33.6075 36.1875C34.0075 36.1075 34.4075 36.3775 34.4875 36.7875L34.4775 36.7775ZM15.8275 31.7975C15.6975 31.9375 15.7575 32.0875 15.7775 32.1175C15.8175 32.1975 15.8675 32.2475 15.9375 32.2475H29.8175C30.2275 32.2475 30.5675 32.5875 30.5675 32.9975C30.5675 33.4075 30.2275 33.7475 29.8175 33.7475H15.9375C15.2675 33.7475 14.6775 33.3475 14.3975 32.7175C14.1075 32.0575 14.2375 31.2975 14.7275 30.7775L19.7275 25.2775C20.0475 24.9275 20.5075 24.7175 20.9875 24.7075C21.4875 24.7275 21.9375 24.8875 22.2675 25.2275L25.4675 28.4775C25.7575 28.7675 25.7575 29.2475 25.4675 29.5375C25.1675 29.8275 24.6975 29.8275 24.4075 29.5375L21.2075 26.2875C21.1475 26.2175 21.0675 26.1875 21.0275 26.2075C20.9875 26.2075 20.9075 26.2175 20.8475 26.2875L15.8375 31.7975H15.8275ZM38.5275 38.5275C38.3775 38.6775 38.1875 38.7475 37.9975 38.7475C37.8075 38.7475 37.6175 38.6775 37.4675 38.5275L9.4675 10.5275C9.1775 10.2375 9.1775 9.7575 9.4675 9.4675C9.7575 9.1775 10.2375 9.1775 10.5275 9.4675L38.5275 37.4675C38.8175 37.7575 38.8175 38.2375 38.5275 38.5275Z"></path></svg>'},"./packages/survey-core/src/images-v2/ranking-arrows.svg":function(O,m){O.exports='<svg viewBox="0 0 10 24" xmlns="http://www.w3.org/2000/svg"><path d="M10 5L5 0L0 5H4V9H6V5H10Z"></path><path d="M6 19V15H4V19H0L5 24L10 19H6Z"></path></svg>'},"./packages/survey-core/src/images-v2/rankingundefined-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M11.75 8C11.75 8.41 11.41 8.75 11 8.75H5C4.59 8.75 4.25 8.41 4.25 8C4.25 7.59 4.59 7.25 5 7.25H11C11.41 7.25 11.75 7.59 11.75 8Z"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-2.svg":function(O,m){O.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z" fill="none" stroke-width="2"></path><path d="M24.3981 33.1305L24 32.9206L23.6019 33.1305L15.8715 37.2059L17.3542 28.5663L17.43 28.1246L17.1095 27.8113L10.83 21.6746L19.4965 20.4049L19.9405 20.3399L20.1387 19.9373L24 12.0936L27.8613 19.9373L28.0595 20.3399L28.5035 20.4049L37.17 21.6746L30.8905 27.8113L30.57 28.1246L30.6458 28.5663L32.1285 37.2059L24.3981 33.1305Z" stroke-width="1.70746"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-small-2.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z" fill="none" stroke-width="2"></path><path d="M12 15.9472L8.58001 17.7572L9.23001 13.9272L6.45001 11.2072L10.29 10.6472L12 7.17725L13.71 10.6472L17.55 11.2072L14.77 13.9272L15.42 17.7572L12 15.9472Z"></path></svg>'},"./packages/survey-core/src/images-v2/rating-star-small.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path d="M12 19.3373L6.13001 22.4373C5.50001 22.7673 4.77001 22.2373 4.89001 21.5373L6.01001 14.9773L1.26001 10.3273C0.750007 9.83728 1.03001 8.96728 1.73001 8.86728L8.29001 7.90728L11.23 1.93728C11.54 1.29728 12.45 1.29728 12.77 1.93728L15.7 7.90728L22.26 8.86728C22.96 8.96728 23.24 9.83728 22.73 10.3273L17.98 14.9773L19.1 21.5373C19.22 22.2373 18.49 22.7773 17.86 22.4373L11.99 19.3373H12Z"></path></g></svg>'},"./packages/survey-core/src/images-v2/rating-star.svg":function(O,m){O.exports='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><g><path d="M24 39.5057L11.7226 45.9839C10.4095 46.6739 8.87606 45.5622 9.12525 44.096L11.4734 30.373L1.54411 20.6556C0.480254 19.6207 1.06489 17.8095 2.53128 17.5986L16.2559 15.5957L22.3994 3.10891C23.0512 1.77685 24.9488 1.77685 25.6102 3.10891L31.7441 15.5957L45.4687 17.5986C46.9351 17.8095 47.5197 19.6207 46.4559 20.6556L36.5266 30.373L38.8748 44.096C39.1239 45.5622 37.5905 46.6835 36.2774 45.9839L24 39.5057Z"></path></g></svg>'},"./packages/survey-core/src/images-v2/reorder-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M8.9444 10.75H15.0544C15.7144 10.75 16.3144 10.39 16.6144 9.80002C16.9144 9.22002 16.8644 8.52002 16.4844 7.98002L13.4244 3.71002C12.7644 2.79002 11.2344 2.79002 10.5744 3.71002L7.5244 7.99002C7.1444 8.53002 7.0944 9.22002 7.3944 9.81002C7.6944 10.4 8.2944 10.76 8.9544 10.76L8.9444 10.75ZM8.7444 8.86002L11.7944 4.58002C11.8644 4.49002 11.9544 4.48002 11.9944 4.48002C12.0344 4.48002 12.1344 4.49002 12.1944 4.58002L15.2544 8.86002C15.3344 8.97002 15.3044 9.07002 15.2744 9.12002C15.2444 9.17002 15.1844 9.26002 15.0544 9.26002H8.9444C8.8144 9.26002 8.7444 9.18002 8.7244 9.12002C8.7044 9.06002 8.6644 8.97002 8.7444 8.86002ZM15.0544 13.25H8.9444C8.2844 13.25 7.6844 13.61 7.3844 14.2C7.0844 14.78 7.1344 15.48 7.5144 16.02L10.5744 20.3C10.9044 20.76 11.4344 21.03 11.9944 21.03C12.5544 21.03 13.0944 20.76 13.4144 20.3L16.4744 16.02C16.8544 15.48 16.9044 14.79 16.6044 14.2C16.3044 13.61 15.7044 13.25 15.0444 13.25H15.0544ZM15.2644 15.15L12.2044 19.43C12.0744 19.61 11.9244 19.61 11.7944 19.43L8.7344 15.15C8.6544 15.04 8.6844 14.94 8.7144 14.89C8.7444 14.84 8.8044 14.75 8.9344 14.75H15.0444C15.1744 14.75 15.2444 14.83 15.2644 14.89C15.2844 14.95 15.3244 15.04 15.2444 15.15H15.2644Z"></path></svg>'},"./packages/survey-core/src/images-v2/restoredown-16x16.svg":function(O,m){O.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M7.69 8.71C7.73 8.8 7.75 8.9 7.75 9V13C7.75 13.41 7.41 13.75 7 13.75C6.59 13.75 6.25 13.41 6.25 13V10.81L3.53 13.53C3.38 13.68 3.19 13.75 3 13.75C2.81 13.75 2.62 13.68 2.47 13.53C2.18 13.24 2.18 12.76 2.47 12.47L5.19 9.75H3C2.59 9.75 2.25 9.41 2.25 9C2.25 8.59 2.59 8.25 3 8.25H7C7.1 8.25 7.19 8.27 7.29 8.31C7.47 8.39 7.62 8.53 7.7 8.72L7.69 8.71ZM13 6.25H10.81L13.53 3.53C13.82 3.24 13.82 2.76 13.53 2.47C13.24 2.18 12.76 2.18 12.47 2.47L9.75 5.19V3C9.75 2.59 9.41 2.25 9 2.25C8.59 2.25 8.25 2.59 8.25 3V7C8.25 7.1 8.27 7.19 8.31 7.29C8.39 7.47 8.53 7.62 8.72 7.7C8.81 7.74 8.91 7.76 9.01 7.76H13.01C13.42 7.76 13.76 7.42 13.76 7.01C13.76 6.6 13.42 6.26 13.01 6.26L13 6.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/search-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M13.9975 2.25C9.7275 2.25 6.2475 5.73 6.2475 10C6.2475 11.87 6.9075 13.58 8.0175 14.92L2.4675 20.47C2.1775 20.76 2.1775 21.24 2.4675 21.53C2.6175 21.68 2.8075 21.75 2.9975 21.75C3.1875 21.75 3.3775 21.68 3.5275 21.53L9.0775 15.98C10.4175 17.08 12.1275 17.75 13.9975 17.75C18.2675 17.75 21.7475 14.27 21.7475 10C21.7475 5.73 18.2675 2.25 13.9975 2.25ZM13.9975 16.25C10.5475 16.25 7.7475 13.45 7.7475 10C7.7475 6.55 10.5475 3.75 13.9975 3.75C17.4475 3.75 20.2475 6.55 20.2475 10C20.2475 13.45 17.4475 16.25 13.9975 16.25Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate1-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate10-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate2-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_15894_140103)"><path d="M4.88291 4.51001C4.47291 4.51001 4.08291 4.25001 3.94291 3.84001C3.76291 3.32001 4.03291 2.75001 4.55291 2.57001L8.32291 1.25001C8.84291 1.06001 9.41291 1.34001 9.59291 1.86001C9.77291 2.38001 9.50291 2.95001 8.98291 3.13001L5.20291 4.45001C5.09291 4.49001 4.98291 4.51001 4.87291 4.51001H4.88291ZM19.8129 3.89001C20.0229 3.38001 19.7729 2.79001 19.2629 2.59001L15.5529 1.07001C15.0429 0.860007 14.4529 1.11001 14.2529 1.62001C14.0429 2.13001 14.2929 2.72001 14.8029 2.92001L18.5029 4.43001C18.6229 4.48001 18.7529 4.50001 18.8829 4.50001C19.2729 4.50001 19.6529 4.27001 19.8129 3.88001V3.89001ZM3.50291 6.00001C2.64291 6.37001 1.79291 6.88001 1.00291 7.48001C0.79291 7.64001 0.64291 7.87001 0.59291 8.14001C0.48291 8.73001 0.87291 9.29001 1.45291 9.40001C2.04291 9.51001 2.60291 9.12001 2.71291 8.54001C2.87291 7.69001 3.12291 6.83001 3.50291 5.99001V6.00001ZM21.0429 8.55001C21.6029 10.48 24.2429 8.84001 22.7529 7.48001C21.9629 6.88001 21.1129 6.37001 20.2529 6.00001C20.6329 6.84001 20.8829 7.70001 21.0429 8.55001ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 10 11.8829 10C7.47291 10 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z"></path></g><defs><clipPath id="clip0_15894_140103"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg>'},"./packages/survey-core/src/images-v2/smiley-rate3-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate4-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate5-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate6-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate7-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate8-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>'},"./packages/survey-core/src/images-v2/smiley-rate9-24x24.svg":function(O,m){O.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'}})})},"./src/entries/react-ui.ts":function(B,M,j){j.r(M),j.d(M,"Survey",function(){return pr}),j.d(M,"attachKey2click",function(){return Wi}),j.d(M,"ReactSurveyElementsWrapper",function(){return ee}),j.d(M,"SurveyNavigationBase",function(){return $r}),j.d(M,"SurveyTimerPanel",function(){return Ls}),j.d(M,"SurveyPage",function(){return Er}),j.d(M,"SurveyRow",function(){return Re}),j.d(M,"SurveyPanel",function(){return fn}),j.d(M,"SurveyFlowPanel",function(){return Mo}),j.d(M,"SurveyQuestion",function(){return cn}),j.d(M,"SurveyElementErrors",function(){return qn}),j.d(M,"SurveyQuestionAndErrorsCell",function(){return Hr}),j.d(M,"ReactSurveyElement",function(){return ve}),j.d(M,"SurveyElementBase",function(){return se}),j.d(M,"SurveyQuestionElementBase",function(){return de}),j.d(M,"SurveyQuestionCommentItem",function(){return Ht}),j.d(M,"SurveyQuestionComment",function(){return Xt}),j.d(M,"SurveyQuestionCheckbox",function(){return Sa}),j.d(M,"SurveyQuestionCheckboxItem",function(){return Ms}),j.d(M,"SurveyQuestionRanking",function(){return _s}),j.d(M,"SurveyQuestionRankingItem",function(){return js}),j.d(M,"SurveyQuestionRankingItemContent",function(){return Ns}),j.d(M,"RatingItem",function(){return Ir}),j.d(M,"RatingItemStar",function(){return Bs}),j.d(M,"RatingItemSmiley",function(){return Ea}),j.d(M,"RatingDropdownItem",function(){return Je}),j.d(M,"TagboxFilterString",function(){return Gi}),j.d(M,"SurveyQuestionOptionItem",function(){return Fs}),j.d(M,"SurveyQuestionDropdownBase",function(){return qo}),j.d(M,"SurveyQuestionDropdown",function(){return ks}),j.d(M,"SurveyQuestionTagboxItem",function(){return Zi}),j.d(M,"SurveyQuestionTagbox",function(){return Rr}),j.d(M,"SurveyQuestionDropdownSelect",function(){return wn}),j.d(M,"SurveyQuestionMatrix",function(){return dr}),j.d(M,"SurveyQuestionMatrixRow",function(){return Hs}),j.d(M,"SurveyQuestionMatrixCell",function(){return mn}),j.d(M,"SurveyQuestionHtml",function(){return zs}),j.d(M,"SurveyQuestionFile",function(){return hr}),j.d(M,"SurveyFileChooseButton",function(){return Ki}),j.d(M,"SurveyFilePreview",function(){return Ci}),j.d(M,"SurveyQuestionMultipleText",function(){return wi}),j.d(M,"SurveyQuestionRadiogroup",function(){return eo}),j.d(M,"SurveyQuestionRadioItem",function(){return to}),j.d(M,"SurveyQuestionText",function(){return Qo}),j.d(M,"SurveyQuestionBoolean",function(){return In}),j.d(M,"SurveyQuestionBooleanCheckbox",function(){return Uo}),j.d(M,"SurveyQuestionBooleanRadio",function(){return Aa}),j.d(M,"SurveyQuestionEmpty",function(){return Et}),j.d(M,"SurveyQuestionMatrixDropdownCell",function(){return Dr}),j.d(M,"SurveyQuestionMatrixDropdownBase",function(){return xi}),j.d(M,"SurveyQuestionMatrixDropdown",function(){return Go}),j.d(M,"SurveyQuestionMatrixDynamic",function(){return Jo}),j.d(M,"SurveyQuestionMatrixDynamicAddButton",function(){return io}),j.d(M,"SurveyQuestionPanelDynamic",function(){return Zr}),j.d(M,"SurveyProgress",function(){return kt}),j.d(M,"SurveyProgressButtons",function(){return Ko}),j.d(M,"SurveyProgressToc",function(){return uo}),j.d(M,"SurveyQuestionRating",function(){return Na}),j.d(M,"SurveyQuestionRatingDropdown",function(){return Yr}),j.d(M,"SurveyQuestionExpression",function(){return hn}),j.d(M,"PopupSurvey",function(){return lo}),j.d(M,"SurveyWindow",function(){return Ys}),j.d(M,"ReactQuestionFactory",function(){return He}),j.d(M,"ReactElementFactory",function(){return H}),j.d(M,"SurveyQuestionImagePicker",function(){return z}),j.d(M,"SurveyQuestionImage",function(){return co}),j.d(M,"SurveyQuestionSignaturePad",function(){return Xo}),j.d(M,"SurveyQuestionButtonGroup",function(){return Xu}),j.d(M,"SurveyQuestionCustom",function(){return fo}),j.d(M,"SurveyQuestionComposite",function(){return Fa}),j.d(M,"Popup",function(){return st}),j.d(M,"ListItemContent",function(){return ka}),j.d(M,"ListItemGroup",function(){return bn}),j.d(M,"List",function(){return ao}),j.d(M,"TitleActions",function(){return ct}),j.d(M,"TitleElement",function(){return Ft}),j.d(M,"SurveyActionBar",function(){return ke}),j.d(M,"LogoImage",function(){return en}),j.d(M,"SurveyHeader",function(){return fr}),j.d(M,"SvgIcon",function(){return De}),j.d(M,"SurveyQuestionMatrixDynamicRemoveButton",function(){return Xs}),j.d(M,"SurveyQuestionMatrixDetailButton",function(){return ea}),j.d(M,"SurveyQuestionMatrixDynamicDragDropIcon",function(){return Wo}),j.d(M,"SurveyQuestionPanelDynamicAddButton",function(){return Gs}),j.d(M,"SurveyQuestionPanelDynamicRemoveButton",function(){return Rn}),j.d(M,"SurveyQuestionPanelDynamicPrevButton",function(){return dn}),j.d(M,"SurveyQuestionPanelDynamicNextButton",function(){return Ut}),j.d(M,"SurveyQuestionPanelDynamicProgressText",function(){return oo}),j.d(M,"SurveyNavigationButton",function(){return ta}),j.d(M,"QuestionErrorComponent",function(){return ho}),j.d(M,"MatrixRow",function(){return Jr}),j.d(M,"Skeleton",function(){return $}),j.d(M,"NotifierComponent",function(){return Zn}),j.d(M,"ComponentsContainer",function(){return Le}),j.d(M,"CharacterCounterComponent",function(){return Rt}),j.d(M,"HeaderMobile",function(){return K}),j.d(M,"HeaderCell",function(){return Ve}),j.d(M,"Header",function(){return Ge}),j.d(M,"SurveyLocStringViewer",function(){return po}),j.d(M,"SurveyLocStringEditor",function(){return ge}),j.d(M,"LoadingIndicatorComponent",function(){return at}),j.d(M,"SvgBundleComponent",function(){return Ao}),j.d(M,"PopupModal",function(){return Do}),j.d(M,"SurveyModel",function(){return O.SurveyModel}),j.d(M,"SurveyWindowModel",function(){return O.SurveyWindowModel}),j.d(M,"Model",function(){return O.SurveyModel}),j.d(M,"settings",function(){return O.settings}),j.d(M,"surveyLocalization",function(){return O.surveyLocalization}),j.d(M,"surveyStrings",function(){return O.surveyStrings});var O=j("survey-core"),m=j("react"),A=j.n(m),H=function(){function d(){this.creatorHash={}}return d.prototype.registerElement=function(l,a){this.creatorHash[l]=a},d.prototype.getAllTypes=function(){var l=new Array;for(var a in this.creatorHash)l.push(a);return l.sort()},d.prototype.isElementRegistered=function(l){return!!this.creatorHash[l]},d.prototype.createElement=function(l,a){var f=this.creatorHash[l];return f==null?null:f(a)},d.Instance=new d,d}(),ee=function(){function d(){}return d.wrapRow=function(l,a,f){var h=l.getRowWrapperComponentName(f),b=l.getRowWrapperComponentData(f);return H.Instance.createElement(h,{element:a,row:f,componentData:b})},d.wrapElement=function(l,a,f){var h=l.getElementWrapperComponentName(f),b=l.getElementWrapperComponentData(f);return H.Instance.createElement(h,{element:a,question:f,componentData:b})},d.wrapQuestionContent=function(l,a,f){var h=l.getQuestionContentWrapperComponentName(f),b=l.getElementWrapperComponentData(f);return H.Instance.createElement(h,{element:a,question:f,componentData:b})},d.wrapItemValue=function(l,a,f,h){var b=l.getItemValueWrapperComponentName(h,f),W=l.getItemValueWrapperComponentData(h,f);return H.Instance.createElement(b,{key:a==null?void 0:a.key,element:a,question:f,item:h,componentData:W})},d.wrapMatrixCell=function(l,a,f,h){h===void 0&&(h="cell");var b=l.getElementWrapperComponentName(f,h),W=l.getElementWrapperComponentData(f,h);return H.Instance.createElement(b,{element:a,cell:f,componentData:W})},d}();O.SurveyModel.platform="react";var he=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),se=function(d){he(l,d);function l(a){var f=d.call(this,a)||this;return f._allowComponentUpdate=!0,f.prevStateElements=[],f}return l.renderLocString=function(a,f,h){return f===void 0&&(f=null),H.Instance.createElement(a.renderAs,{locStr:a.renderAsData,style:f,key:h})},l.renderQuestionDescription=function(a){var f=l.renderLocString(a.locDescription);return m.createElement("div",{style:a.hasDescription?void 0:{display:"none"},id:a.ariaDescriptionId,className:a.cssDescription},f)},l.prototype.componentDidMount=function(){this.makeBaseElementsReact()},l.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact(),this.disableStateElementsRerenderEvent(this.getStateElements())},l.prototype.componentDidUpdate=function(a,f){var h;this.makeBaseElementsReact();var b=this.getStateElements();this.disableStateElementsRerenderEvent(((h=this.prevStateElements)!==null&&h!==void 0?h:[]).filter(function(W){return!b.includes(W)})),this.prevStateElements=[],this.getStateElements().forEach(function(W){W.afterRerender()})},l.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},l.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},l.prototype.shouldComponentUpdate=function(a,f){return this._allowComponentUpdate&&(this.unMakeBaseElementsReact(),this.prevStateElements=this.getStateElements()),this._allowComponentUpdate},l.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var a=this.renderElement();return this.startEndRendering(-1),a&&(a=this.wrapElement(a)),this.changedStatePropNameValue=void 0,a},l.prototype.wrapElement=function(a){return a},Object.defineProperty(l.prototype,"isRendering",{get:function(){for(var a=this.getRenderedElements(),f=0,h=a;f<h.length;f++){var b=h[f];if(b.reactRendering>0)return!0}return!1},enumerable:!1,configurable:!0}),l.prototype.getRenderedElements=function(){return this.getStateElements()},l.prototype.startEndRendering=function(a){for(var f=this.getRenderedElements(),h=0,b=f;h<b.length;h++){var W=b[h];W.reactRendering||(W.reactRendering=0),W.reactRendering+=a}},l.prototype.canRender=function(){return!0},l.prototype.renderElement=function(){return null},Object.defineProperty(l.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),l.prototype.makeBaseElementsReact=function(){for(var a=this.getStateElements(),f=0;f<a.length;f++)a[f].enableOnElementRerenderedEvent(),this.makeBaseElementReact(a[f])},l.prototype.unMakeBaseElementsReact=function(){for(var a=this.getStateElements(),f=0;f<a.length;f++)this.unMakeBaseElementReact(a[f])},l.prototype.disableStateElementsRerenderEvent=function(a){a.forEach(function(f){f.disableOnElementRerenderedEvent()})},l.prototype.getStateElements=function(){var a=this.getStateElement();return a?[a]:[]},l.prototype.getStateElement=function(){return null},Object.defineProperty(l.prototype,"isDisplayMode",{get:function(){var a=this.props;return a.isDisplayMode||!1},enumerable:!1,configurable:!0}),l.prototype.renderLocString=function(a,f,h){return f===void 0&&(f=null),l.renderLocString(a,f,h)},l.prototype.canMakeReact=function(a){return!!a&&!!a.iteratePropertiesHash},l.prototype.makeBaseElementReact=function(a){var f=this;this.canMakeReact(a)&&(a.iteratePropertiesHash(function(h,b){if(f.canUsePropInState(b)){var W=h[b];if(Array.isArray(W)){var W=W;W.onArrayChanged=function(ue){f.isRendering||(f.changedStatePropNameValue=b,f.setState(function(Se){var Fe={};return Fe[b]=W,Fe}))}}}}),a.setPropertyValueCoreHandler=function(h,b,W){if(h[b]!==W){if(h[b]=W,!f.canUsePropInState(b)||f.isRendering)return;f.changedStatePropNameValue=b,f.setState(function(ne){var ue={};return ue[b]=W,ue})}})},l.prototype.canUsePropInState=function(a){return!0},l.prototype.unMakeBaseElementReact=function(a){this.canMakeReact(a)&&(a.setPropertyValueCoreHandler=void 0,a.iteratePropertiesHash(function(f,h){var b=f[h];if(Array.isArray(b)){var b=b;b.onArrayChanged=function(){}}}))},l}(m.Component),ve=function(d){he(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),l}(se),de=function(d){he(l,d);function l(a){return d.call(this,a)||this}return l.prototype.componentDidUpdate=function(a,f){d.prototype.componentDidUpdate.call(this,a,f),this.updateDomElement()},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.updateDomElement()},l.prototype.componentWillUnmount=function(){if(d.prototype.componentWillUnmount.call(this),this.questionBase){var a=this.content||this.control;this.questionBase.beforeDestroyQuestionElement(a),a&&a.removeAttribute("data-rendered")}},l.prototype.updateDomElement=function(){var a=this.content||this.control;a&&a.getAttribute("data-rendered")!=="r"&&(a.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(a))},Object.defineProperty(l.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},l.prototype.shouldComponentUpdate=function(a,f){return d.prototype.shouldComponentUpdate.call(this,a,f)?!this.questionBase.customWidget||!!this.questionBase.customWidgetData.isNeedRender||!!this.questionBase.customWidget.widgetJson.isDefaultRender||!!this.questionBase.customWidget.widgetJson.render:!1},Object.defineProperty(l.prototype,"isDisplayMode",{get:function(){var a=this.props;return a.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),l.prototype.wrapCell=function(a,f,h){if(!h)return f;var b=this.questionBase.survey,W=null;return b&&(W=ee.wrapMatrixCell(b,f,a,h)),W??f},l.prototype.setControl=function(a){a&&(this.control=a)},l.prototype.setContent=function(a){a&&(this.content=a)},l}(se),nt=function(d){he(l,d);function l(a){var f=d.call(this,a)||this;return f.updateValueOnEvent=function(h){O.Helpers.isTwoValueEquals(f.questionBase.value,h.target.value,!1,!0,!1)||f.setValueCore(h.target.value)},f.updateValueOnEvent=f.updateValueOnEvent.bind(f),f}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.setValueCore=function(a){this.questionBase.value=a},l.prototype.getValueCore=function(){return this.questionBase.value},l.prototype.updateDomElement=function(){if(this.control){var a=this.control,f=this.getValueCore();O.Helpers.isTwoValueEquals(f,a.value,!1,!0,!1)||(a.value=this.getValue(f))}d.prototype.updateDomElement.call(this)},l.prototype.getValue=function(a){return O.Helpers.isValueEmpty(a)?"":a},l}(de),_e=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),pe=function(d){_e(l,d);function l(a){var f=d.call(this,a)||this;return f.element.cssClasses,f.rootRef=m.createRef(),f}return l.prototype.getStateElement=function(){return this.element},Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.rootRef.current&&this.element.setWrapperElement(this.rootRef.current)},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.element.setWrapperElement(void 0)},l.prototype.shouldComponentUpdate=function(a,f){return d.prototype.shouldComponentUpdate.call(this,a,f)?(a.element!==this.element&&(a.element&&a.element.setWrapperElement(this.rootRef.current),this.element&&this.element.setWrapperElement(void 0)),this.element.cssClasses,!0):!1},l.prototype.renderElement=function(){var a=this.element,f=this.createElement(a,this.index),h=a.cssClassesValue,b=function(){var W=a;W&&W.isQuestion&&W.focusIn()};return m.createElement("div",{className:h.questionWrapper,style:a.rootStyle,"data-key":f.key,key:f.key,onFocus:b,ref:this.rootRef},f)},l.prototype.createElement=function(a,f){var h=f?"-"+f:0;if(!this.row.isNeedRender)return H.Instance.createElement(a.skeletonComponentName,{key:a.name+h,element:a,css:this.css});var b=a.getTemplate();return H.Instance.isElementRegistered(b)||(b="question"),H.Instance.createElement(b,{key:a.name+h,element:a,creator:this.creator,survey:this.survey,css:this.css})},l}(se),D=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Re=function(d){D(l,d);function l(a){var f=d.call(this,a)||this;return f.rootRef=m.createRef(),f.recalculateCss(),f}return l.prototype.recalculateCss=function(){this.row.visibleElements.map(function(a){return a.cssClasses})},l.prototype.getStateElement=function(){return this.row},Object.defineProperty(l.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator},l.prototype.renderElementContent=function(){var a=this,f=this.row.visibleElements.map(function(h,b){var W=b?"-"+b:0,ne=h.name+W;return m.createElement(pe,{element:h,index:b,row:a.row,survey:a.survey,creator:a.creator,css:a.css,key:ne})});return m.createElement("div",{ref:this.rootRef,className:this.row.getRowCss()},f)},l.prototype.renderElement=function(){var a=this.survey,f=this.renderElementContent(),h=ee.wrapRow(a,f,this.row);return h||f},l.prototype.componentDidMount=function(){var a=this;d.prototype.componentDidMount.call(this);var f=this.rootRef.current;if(this.rootRef.current&&this.row.setRootElement(this.rootRef.current),f&&!this.row.isNeedRender){var h=f;setTimeout(function(){a.row.startLazyRendering(h)},10)}},l.prototype.shouldComponentUpdate=function(a,f){return d.prototype.shouldComponentUpdate.call(this,a,f)?(a.row!==this.row&&(a.row.isNeedRender=this.row.isNeedRender,a.row.setRootElement(this.rootRef.current),this.row.setRootElement(void 0),this.stopLazyRendering()),this.recalculateCss(),!0):!1},l.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.row.setRootElement(void 0),this.stopLazyRendering()},l.prototype.createElement=function(a,f){var h=f?"-"+f:0,b=a.getType();return H.Instance.isElementRegistered(b)||(b="question"),H.Instance.createElement(b,{key:a.name+h,element:a,creator:this.creator,survey:this.survey,css:this.css})},l}(se),be=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Ze=function(d){be(l,d);function l(a){var f=d.call(this,a)||this;return f.rootRef=m.createRef(),f}return l.prototype.getStateElement=function(){return this.panelBase},l.prototype.canUsePropInState=function(a){return a!=="elements"&&d.prototype.canUsePropInState.call(this,a)},Object.defineProperty(l.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),l.prototype.getPanelBase=function(){return this.props.element||this.props.question},l.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},l.prototype.getCss=function(){return this.props.css},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.doAfterRender()},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this);var a=this.rootRef.current;a&&a.removeAttribute("data-rendered")},l.prototype.componentDidUpdate=function(a,f){d.prototype.componentDidUpdate.call(this,a,f),!(a.page&&this.survey&&this.survey.activePage&&a.page.id===this.survey.activePage.id)&&this.doAfterRender()},l.prototype.doAfterRender=function(){var a=this.rootRef.current;a&&this.survey&&(this.panelBase.isPanel?this.panelBase.afterRender(a):this.survey.afterRenderPage(a))},l.prototype.getIsVisible=function(){return this.panelBase.isVisible},l.prototype.canRender=function(){return d.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&!!this.panelBase.survey&&this.getIsVisible()},l.prototype.renderRows=function(a){var f=this;return this.panelBase.visibleRows.map(function(h){return f.createRow(h,a)})},l.prototype.createRow=function(a,f){return m.createElement(Re,{key:a.id,row:a,survey:this.survey,creator:this.creator,css:f})},l}(se),rt=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),De=function(d){rt(l,d);function l(a){var f=d.call(this,a)||this;return f.svgIconRef=A.a.createRef(),f}return l.prototype.updateSvg=function(){this.props.iconName&&Object(O.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},l.prototype.componentDidUpdate=function(){this.updateSvg()},l.prototype.render=function(){var a="sv-svg-icon";return this.props.className&&(a+=" "+this.props.className),this.props.iconName?A.a.createElement("svg",{className:a,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img"},A.a.createElement("use",null)):null},l.prototype.componentDidMount=function(){this.updateSvg()},l}(A.a.Component);H.Instance.registerElement("sv-svg-icon",function(d){return A.a.createElement(De,d)});var Bt=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Ae=function(d){Bt(l,d);function l(a){return d.call(this,a)||this}return l.prototype.render=function(){var a="sv-action-bar-separator "+this.props.cssClasses;return A.a.createElement("div",{className:a})},l}(A.a.Component);H.Instance.registerElement("sv-action-bar-separator",function(d){return A.a.createElement(Ae,d)});var ot=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),$e=function(d){ot(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.renderElement=function(){var a=this.item.getActionRootCss(),f=this.item.needSeparator?A.a.createElement(Ae,null):null,h=H.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return A.a.createElement("div",{className:a,id:this.item.id},A.a.createElement("div",{className:"sv-action__content"},f,h))},l}(se),lt=function(d){ot(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.renderElement=function(){return A.a.createElement(A.a.Fragment,null,this.renderInnerButton())},l.prototype.renderText=function(){if(!this.item.hasTitle)return null;var a=this.item.getActionBarItemTitleCss();return A.a.createElement("span",{className:a},this.item.title)},l.prototype.renderButtonContent=function(){var a=this.renderText(),f=this.item.iconName?A.a.createElement(De,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return A.a.createElement(A.a.Fragment,null,f,a)},l.prototype.renderInnerButton=function(){var a=this,f=this.item.getActionBarItemCss(),h=this.item.tooltip||this.item.title,b=this.renderButtonContent(),W=this.item.disableTabStop?-1:void 0,ne=Wi(A.a.createElement("button",{className:f,type:"button",disabled:this.item.disabled,onMouseDown:function(ue){return a.item.doMouseDown(ue)},onFocus:function(ue){return a.item.doFocus(ue)},onClick:function(ue){return a.item.doAction(ue)},title:h,tabIndex:W,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},b),this.item,{processEsc:!1});return ne},l}(se);H.Instance.registerElement("sv-action-bar-item",function(d){return A.a.createElement(lt,d)});var xt=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),st=function(d){xt(l,d);function l(a){var f=d.call(this,a)||this;return f.containerRef=A.a.createRef(),f.createModel(),f}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.model},l.prototype.createModel=function(){this.popup=Object(O.createPopupViewModel)(this.props.model)},l.prototype.setTargetElement=function(){var a=this.containerRef.current;this.popup.setComponentElement(a)},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.setTargetElement()},l.prototype.componentDidUpdate=function(a,f){d.prototype.componentDidUpdate.call(this,a,f),this.setTargetElement()},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.popup.resetComponentElement()},l.prototype.shouldComponentUpdate=function(a,f){var h;if(!d.prototype.shouldComponentUpdate.call(this,a,f))return!1;var b=a.model!==this.popup.model;return b&&((h=this.popup)===null||h===void 0||h.dispose(),this.createModel()),b},l.prototype.render=function(){this.popup.model=this.model;var a;return this.model.isModal?a=A.a.createElement(gt,{model:this.popup}):a=A.a.createElement(It,{model:this.popup}),A.a.createElement("div",{ref:this.containerRef},a)},l}(se);H.Instance.registerElement("sv-popup",function(d){return A.a.createElement(st,d)});var gt=function(d){xt(l,d);function l(a){var f=d.call(this,a)||this;return f.handleKeydown=function(h){f.model.onKeyDown(h)},f.clickInside=function(h){h.stopPropagation()},f}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.model},l.prototype.componentDidUpdate=function(a,f){d.prototype.componentDidUpdate.call(this,a,f),!this.model.isPositionSet&&this.model.isVisible&&this.model.updateOnShowing()},l.prototype.renderContainer=function(a){var f=this,h=a.showHeader?this.renderHeaderPopup(a):null,b=a.title?this.renderHeaderContent():null,W=this.renderContent(),ne=a.showFooter?this.renderFooter(this.model):null;return A.a.createElement("div",{className:"sv-popup__container",style:{left:a.left,top:a.top,height:a.height,width:a.width,minWidth:a.minWidth},onClick:function(ue){f.clickInside(ue)}},h,A.a.createElement("div",{className:"sv-popup__body-content"},b,A.a.createElement("div",{className:"sv-popup__scrolling-content"},W),ne))},l.prototype.renderHeaderContent=function(){return A.a.createElement("div",{className:"sv-popup__body-header"},this.model.title)},l.prototype.renderContent=function(){var a=H.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return A.a.createElement("div",{className:"sv-popup__content"},a)},l.prototype.renderHeaderPopup=function(a){return null},l.prototype.renderFooter=function(a){return A.a.createElement("div",{className:"sv-popup__body-footer"},A.a.createElement(ke,{model:a.footerToolbar}))},l.prototype.render=function(){var a=this,f=this.renderContainer(this.model),h=new O.CssClassBuilder().append("sv-popup").append(this.model.styleClass).toString(),b={display:this.model.isVisible?"":"none"};return A.a.createElement("div",{tabIndex:-1,className:h,style:b,onClick:function(W){a.model.clickOutside(W)},onKeyDown:this.handleKeydown},f)},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.model.isVisible&&this.model.updateOnShowing()},l}(se),It=function(d){xt(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return l.prototype.renderHeaderPopup=function(a){var f=a;return f?A.a.createElement("span",{style:{left:f.pointerTarget.left,top:f.pointerTarget.top},className:"sv-popup__pointer"}):null},l}(gt),Vt=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),G=function(d){Vt(l,d);function l(a){return d.call(this,a)||this}return l.prototype.renderInnerButton=function(){var a=d.prototype.renderInnerButton.call(this);return A.a.createElement(A.a.Fragment,null,a,A.a.createElement(st,{model:this.item.popupModel}))},l.prototype.componentDidMount=function(){this.viewModel=new O.ActionDropdownViewModel(this.item)},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},l}(lt);H.Instance.registerElement("sv-action-bar-item-dropdown",function(d){return A.a.createElement(G,d)});var yt=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),ke=function(d){yt(l,d);function l(a){var f=d.call(this,a)||this;return f.rootRef=A.a.createRef(),f}return Object.defineProperty(l.prototype,"handleClick",{get:function(){return this.props.handleClick!==void 0?this.props.handleClick:!0},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){if(d.prototype.componentDidMount.call(this),!!this.model.hasActions){var a=this.rootRef.current;a&&this.model.initResponsivityManager(a,function(f){setTimeout(f,100)})}},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.model.resetResponsivityManager()},l.prototype.componentDidUpdate=function(a,f){if(d.prototype.componentDidUpdate.call(this,a,f),a.model!=this.props.model&&a.model.resetResponsivityManager(),this.model.hasActions){var h=this.rootRef.current;h&&this.model.initResponsivityManager(h,function(b){setTimeout(b,100)})}},l.prototype.getStateElement=function(){return this.model},l.prototype.renderElement=function(){if(!this.model.hasActions)return null;var a=this.renderItems();return A.a.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(f){f.stopPropagation()}:void 0},a)},l.prototype.renderItems=function(){return this.model.renderedActions.map(function(a,f){return A.a.createElement($e,{item:a,key:"item"+f})})},l}(se);H.Instance.registerElement("sv-action-bar",function(d){return A.a.createElement(ke,d)});var mt=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Ne=function(d){mt(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),l.prototype.render=function(){if(this.element.isTitleRenderedAsString)return se.renderLocString(this.element.locTitle);var a=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return A.a.createElement(A.a.Fragment,null,a)},l.prototype.renderTitleSpans=function(a,f){var h=function(ne){return A.a.createElement("span",{"data-key":ne,key:ne}," ")},b=[];a.isRequireTextOnStart&&(b.push(this.renderRequireText(a)),b.push(h("req-sp")));var W=a.no;return W&&(b.push(A.a.createElement("span",{"data-key":"q_num",key:"q_num",className:a.cssTitleNumber,style:{position:"static"},"aria-hidden":!0},W)),b.push(h("num-sp"))),a.isRequireTextBeforeTitle&&(b.push(this.renderRequireText(a)),b.push(h("req-sp"))),b.push(se.renderLocString(a.locTitle,null,"q_title")),a.isRequireTextAfterTitle&&(b.push(h("req-sp")),b.push(this.renderRequireText(a))),b},l.prototype.renderRequireText=function(a){return A.a.createElement("span",{"data-key":"req-text",key:"req-text",className:a.cssRequiredText,"aria-hidden":!0},a.requiredText)},l}(A.a.Component),Ye=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),ct=function(d){Ye(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),l.prototype.render=function(){var a=A.a.createElement(Ne,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?A.a.createElement("div",{className:"sv-title-actions"},A.a.createElement("span",{className:"sv-title-actions__title"},a),A.a.createElement(ke,{model:this.element.getTitleToolbar()})):a},l}(A.a.Component);O.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),H.Instance.registerElement("sv-title-actions",function(d){return A.a.createElement(ct,d)});var on=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Ft=function(d){on(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),l.prototype.renderTitleExpandableSvg=function(){if(!this.element.getCssTitleExpandableSvg())return null;var a=this.element.isExpanded?"icon-collapse-16x16":"icon-expand-16x16";return A.a.createElement(De,{className:this.element.getCssTitleExpandableSvg(),iconName:a,size:"auto"})},l.prototype.render=function(){var a=this.element;if(!a||!a.hasTitle)return null;var f=a.titleAriaLabel||void 0,h=this.renderTitleExpandableSvg(),b=A.a.createElement(ct,{element:a,cssClasses:a.cssClasses}),W=void 0,ne=void 0;a.hasTitleEvents&&(ne=function(Se){Object(O.doKey2ClickUp)(Se.nativeEvent)});var ue=a.titleTagName;return A.a.createElement(ue,{className:a.cssTitle,id:a.ariaTitleId,"aria-label":f,tabIndex:a.titleTabIndex,"aria-expanded":a.titleAriaExpanded,role:a.titleAriaRole,onClick:W,onKeyUp:ne},h,b)},l}(A.a.Component),He=function(){function d(){this.creatorHash={}}return d.prototype.registerQuestion=function(l,a){this.creatorHash[l]=a},d.prototype.getAllTypes=function(){var l=new Array;for(var a in this.creatorHash)l.push(a);return l.sort()},d.prototype.createQuestion=function(l,a){var f=this.creatorHash[l];return f==null?null:f(a)},d.Instance=new d,d}(),Qe=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Rt=function(d){Qe(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return l.prototype.getStateElement=function(){return this.props.counter},l.prototype.renderElement=function(){return A.a.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},l}(se);H.Instance.registerElement("sv-character-counter",function(d){return A.a.createElement(Rt,d)});var At=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Gt=function(d){At(l,d);function l(a){var f=d.call(this,a)||this;return f.initialValue=f.viewModel.getTextValue()||"",f.textareaRef=A.a.createRef(),f}return Object.defineProperty(l.prototype,"viewModel",{get:function(){return this.props.viewModel},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.viewModel.question},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this);var a=this.textareaRef.current;a&&this.viewModel.setElement(a)},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.viewModel.resetElement()},l.prototype.renderElement=function(){var a=this;return A.a.createElement("textarea",{id:this.viewModel.id,className:this.viewModel.className,ref:this.textareaRef,disabled:this.viewModel.isDisabledAttr,readOnly:this.viewModel.isReadOnlyAttr,rows:this.viewModel.rows,cols:this.viewModel.cols,placeholder:this.viewModel.placeholder,maxLength:this.viewModel.maxLength,defaultValue:this.initialValue,onChange:function(f){a.viewModel.onTextAreaInput(f)},onFocus:function(f){a.viewModel.onTextAreaFocus(f)},onBlur:function(f){a.viewModel.onTextAreaBlur(f)},onKeyDown:function(f){a.viewModel.onTextAreaKeyDown(f)},"aria-required":this.viewModel.ariaRequired,"aria-label":this.viewModel.ariaLabel,"aria-labelledby":this.viewModel.ariaLabelledBy,"aria-describedby":this.viewModel.ariaDescribedBy,"aria-invalid":this.viewModel.ariaInvalid,"aria-errormessage":this.viewModel.ariaErrormessage,style:{resize:this.viewModel.question.resizeStyle}})},l}(se);H.Instance.registerElement("sv-text-area",function(d){return A.a.createElement(Gt,d)});var Dt=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Xt=function(d){Dt(l,d);function l(a){return d.call(this,a)||this}return l.prototype.renderCharacterCounter=function(){var a=null;return this.question.getMaxLength()&&(a=m.createElement(Rt,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter})),a},l.prototype.renderElement=function(){if(this.question.isReadOnlyRenderDiv())return m.createElement("div",null,this.question.value);var a=this.renderCharacterCounter(),f=this.props.question.textAreaModel;return m.createElement(m.Fragment,null,m.createElement(Gt,{viewModel:f}),a)},l}(nt),Ht=function(d){Dt(l,d);function l(a){var f=d.call(this,a)||this;return f.textAreaModel=f.getTextAreaModel(),f}return l.prototype.canRender=function(){return!!this.props.question},l.prototype.getTextAreaModel=function(){return this.props.question.commentTextAreaModel},l.prototype.renderElement=function(){var a=this.props.question;if(a.isReadOnlyRenderDiv()){var f=this.textAreaModel.getTextValue()||"";return m.createElement("div",null,f)}return m.createElement(Gt,{viewModel:this.textAreaModel})},l}(ve),_t=function(d){Dt(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return l.prototype.getTextAreaModel=function(){return this.props.question.otherTextAreaModel},l}(Ht);He.Instance.registerQuestion("comment",function(d){return m.createElement(Xt,d)});var cr=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Sr=function(d){cr(l,d);function l(a){var f=d.call(this,a)||this;return f.widgetRef=m.createRef(),f}return l.prototype._afterRender=function(){if(this.questionBase.customWidget){var a=this.widgetRef.current;a&&(this.questionBase.customWidget.afterRender(this.questionBase,a),this.questionBase.customWidgetData.isNeedRender=!1)}},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},l.prototype.componentDidUpdate=function(a,f){d.prototype.componentDidUpdate.call(this,a,f);var h=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!h&&this._afterRender()},l.prototype.componentWillUnmount=function(){if(d.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var a=this.widgetRef.current;a&&this.questionBase.customWidget.willUnmount(this.questionBase,a)}},l.prototype.canRender=function(){return d.prototype.canRender.call(this)&&this.questionBase.visible},l.prototype.renderElement=function(){var a=this.questionBase.customWidget;if(a.isDefaultRender)return m.createElement("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var f=null;if(a.widgetJson.render)f=a.widgetJson.render(this.questionBase);else if(a.htmlTemplate){var h={__html:a.htmlTemplate};return m.createElement("div",{ref:this.widgetRef,dangerouslySetInnerHTML:h})}return m.createElement("div",{ref:this.widgetRef},f)},l}(de),Nn=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),an=function(d){Nn(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),l.prototype.render=function(){var a=this.element,f=a.hasTitle?A.a.createElement(Ft,{element:a}):null,h=a.hasDescriptionUnderTitle?se.renderQuestionDescription(this.element):null,b=a.hasAdditionalTitleToolbar?A.a.createElement(ke,{model:a.additionalTitleToolbar}):null,W={width:void 0};return a instanceof O.Question&&(W.width=a.titleWidth),A.a.createElement("div",{className:a.cssHeader,onClick:function(ne){return a.clickTitleFunction&&a.clickTitleFunction(ne.nativeEvent)},style:W},f,h,b)},l}(A.a.Component),On=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),cn=function(d){On(l,d);function l(a){var f=d.call(this,a)||this;return f.isNeedFocus=!1,f.rootRef=m.createRef(),f}return l.renderQuestionBody=function(a,f){var h=f.customWidget;return h?m.createElement(Sr,{creator:a,question:f}):a.createQuestionElement(f)},l.prototype.getStateElement=function(){return this.question},Object.defineProperty(l.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var a=this.rootRef.current;a&&a.removeAttribute("data-rendered")},l.prototype.componentDidUpdate=function(a,f){d.prototype.componentDidUpdate.call(this,a,f),this.doAfterRender()},l.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var a=this.rootRef.current;a&&a.getAttribute("data-rendered")!=="r"&&(a.setAttribute("data-rendered","r"),a.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(a))}},l.prototype.canRender=function(){return d.prototype.canRender.call(this)&&!!this.question&&!!this.creator},l.prototype.renderQuestionContent=function(){var a=this.question,f={display:this.question.renderedIsExpanded?"":"none"},h=a.cssClasses,b=this.renderQuestion(),W=this.question.showErrorOnTop?this.renderErrors(h,"top"):null,ne=this.question.showErrorOnBottom?this.renderErrors(h,"bottom"):null,ue=a&&a.hasComment?this.renderComment(h):null,Se=a.hasDescriptionUnderInput?this.renderDescription():null;return m.createElement("div",{className:a.cssContent||void 0,style:f,role:"presentation"},W,b,ue,ne,Se)},l.prototype.renderElement=function(){var a=this.question,f=a.cssClasses,h=this.renderHeader(a),b=a.hasTitleOnLeftTop?h:null,W=a.hasTitleOnBottom?h:null,ne=this.question.showErrorsAboveQuestion?this.renderErrors(f,""):null,ue=this.question.showErrorsBelowQuestion?this.renderErrors(f,""):null,Se=a.getRootStyle(),Fe=this.wrapQuestionContent(this.renderQuestionContent());return m.createElement(m.Fragment,null,m.createElement("div",{ref:this.rootRef,id:a.id,className:a.getRootCss(),style:Se,role:a.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":a.ariaLabelledBy,"aria-describedby":a.ariaDescribedBy,"aria-expanded":a.ariaExpanded},ne,b,Fe,W,ue))},l.prototype.wrapElement=function(a){var f=this.question.survey,h=null;return f&&(h=ee.wrapElement(f,a,this.question)),h??a},l.prototype.wrapQuestionContent=function(a){var f=this.question.survey,h=null;return f&&(h=ee.wrapQuestionContent(f,a,this.question)),h??a},l.prototype.renderQuestion=function(){return l.renderQuestionBody(this.creator,this.question)},l.prototype.renderDescription=function(){return se.renderQuestionDescription(this.question)},l.prototype.renderComment=function(a){var f=se.renderLocString(this.question.locCommentText);return m.createElement("div",{className:this.question.getCommentAreaCss()},m.createElement("div",null,f),m.createElement(Ht,{question:this.question,cssClasses:a,otherCss:a.other,isDisplayMode:this.question.isInputReadOnly}))},l.prototype.renderHeader=function(a){return m.createElement(an,{element:a})},l.prototype.renderErrors=function(a,f){return m.createElement(qn,{element:this.question,cssClasses:a,creator:this.creator,location:f,id:this.question.id+"_errors"})},l}(se);H.Instance.registerElement("question",function(d){return m.createElement(cn,d)});var qn=function(d){On(l,d);function l(a){var f=d.call(this,a)||this;return f.state=f.getState(),f}return Object.defineProperty(l.prototype,"id",{get:function(){return this.props.element.id+"_errors"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),l.prototype.getState=function(a){return a===void 0&&(a=null),a?{error:a.error+1}:{error:0}},l.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},l.prototype.componentWillUnmount=function(){},l.prototype.renderElement=function(){for(var a=[],f=0;f<this.element.errors.length;f++){var h="error"+f;a.push(this.creator.renderError(h,this.element.errors[f],this.cssClasses,this.element))}return m.createElement("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id},a)},l}(ve),Bn=function(d){On(l,d);function l(a){return d.call(this,a)||this}return l.prototype.getStateElement=function(){return this.question},Object.defineProperty(l.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),l.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(l.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.doAfterRender()},l.prototype.componentDidUpdate=function(a,f){d.prototype.componentDidUpdate.call(this,a,f),this.doAfterRender()},l.prototype.doAfterRender=function(){},l.prototype.canRender=function(){return!!this.question},l.prototype.renderContent=function(){var a=this.renderQuestion();return m.createElement(m.Fragment,null,a)},l.prototype.getShowErrors=function(){return this.question.isVisible},l.prototype.renderQuestion=function(){return cn.renderQuestionBody(this.creator,this.question)},l}(ve),Hr=function(d){On(l,d);function l(a){var f=d.call(this,a)||this;return f.cellRef=m.createRef(),f}return l.prototype.componentWillUnmount=function(){if(d.prototype.componentWillUnmount.call(this),this.question){var a=this.cellRef.current;a&&a.removeAttribute("data-rendered")}},l.prototype.renderCellContent=function(){return m.createElement("div",{className:this.props.cell.cellQuestionWrapperClassName},this.renderQuestion())},l.prototype.renderElement=function(){var a=this.getCellStyle(),f=this.props.cell,h=function(){f.focusIn()};return m.createElement("td",{ref:this.cellRef,className:this.itemCss,colSpan:f.colSpans,title:f.getTitle(),style:a,onFocus:h},this.wrapCell(this.props.cell,this.renderCellContent()))},l.prototype.getCellStyle=function(){return null},l.prototype.getHeaderText=function(){return""},l.prototype.wrapCell=function(a,f){if(!a)return f;var h=this.question.survey,b=null;return h&&(b=ee.wrapMatrixCell(h,f,a,this.props.reason)),b??f},l}(Bn),Fn=function(d){On(l,d);function l(a){var f=d.call(this,a)||this;return f.state={changed:0},f.question&&f.registerCallback(f.question),f}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.update=function(){this.setState({changed:this.state.changed+1})},l.prototype.getQuestionPropertiesToTrack=function(){return["errors"]},l.prototype.registerCallback=function(a){var f=this;a.registerFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),function(){f.update()},"__reactSubscription")},l.prototype.unRegisterCallback=function(a){a.unRegisterFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),"__reactSubscription")},l.prototype.componentDidUpdate=function(a){a.question&&a.question!==this.question&&this.unRegisterCallback(a.cell),this.question&&this.registerCallback(this.question)},l.prototype.componentWillUnmount=function(){this.question&&this.unRegisterCallback(this.question)},l.prototype.render=function(){return m.createElement(qn,{element:this.question,creator:this.props.creator,cssClasses:this.question.cssClasses})},l}(m.Component),kn=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Er=function(d){kn(l,d);function l(a){return d.call(this,a)||this}return l.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(l.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this.renderTitle(),f=this.renderDescription(),h=this.renderRows(this.panelBase.cssClasses),b=m.createElement(qn,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator});return m.createElement("div",{ref:this.rootRef,className:this.page.cssRoot},a,f,b,h)},l.prototype.renderTitle=function(){return m.createElement(Ft,{element:this.page})},l.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var a=se.renderLocString(this.page.locDescription);return m.createElement("div",{className:this.panelBase.cssClasses.page.description},a)},l}(Ze),zr=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),fr=function(d){zr(l,d);function l(a){var f=d.call(this,a)||this;return f.state={changed:0},f.rootRef=A.a.createRef(),f}return Object.defineProperty(l.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){var a=this;this.survey.afterRenderHeader(this.rootRef.current),this.survey.locLogo.onChanged=function(){a.setState({changed:a.state.changed+1})}},l.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},l.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var a=se.renderLocString(this.survey.locDescription);return A.a.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},A.a.createElement(Ft,{element:this.survey}),this.survey.renderedHasDescription?A.a.createElement("div",{className:this.css.description},a):null)},l.prototype.renderLogoImage=function(a){if(!a)return null;var f=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),h=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return H.Instance.createElement(f,{data:h})},l.prototype.render=function(){return this.survey.renderedHasHeader?A.a.createElement("div",{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),A.a.createElement("div",{className:this.css.headerClose})):null},l}(A.a.Component);H.Instance.registerElement("survey-header",function(d){return A.a.createElement(fr,d)});var Or=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Ur=function(d){Or(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return l.prototype.render=function(){return A.a.createElement("div",{className:"sv-brand-info"},A.a.createElement("a",{className:"sv-brand-info__logo",href:"https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"},A.a.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),A.a.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",A.a.createElement("a",{href:"https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey"},"create a survey")),A.a.createElement("div",{className:"sv-brand-info__terms"},A.a.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},l}(A.a.Component),Wr=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Zn=function(d){Wr(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.notifier},l.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var a={visibility:this.notifier.active?"visible":"hidden"};return A.a.createElement("div",{className:this.notifier.css,style:a,role:"alert","aria-live":"polite"},A.a.createElement("span",null,this.notifier.message),A.a.createElement(ke,{model:this.notifier.actionBar}))},l}(se);H.Instance.registerElement("sv-notifier",function(d){return A.a.createElement(Zn,d)});var Kn=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Le=function(d){Kn(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return l.prototype.render=function(){var a=this,f=this.props.survey.getContainerContent(this.props.container),h=this.props.needRenderWrapper!==!1;return f.length==0?null:h?A.a.createElement("div",{className:"sv-components-column sv-components-container-"+this.props.container},f.map(function(b){return H.Instance.createElement(b.component,{survey:a.props.survey,model:b.data,container:a.props.container,key:b.id})})):A.a.createElement(A.a.Fragment,null,f.map(function(b){return H.Instance.createElement(b.component,{survey:a.props.survey,model:b.data,container:a.props.container,key:b.id})}))},l}(A.a.Component);H.Instance.registerElement("sv-components-container",function(d){return A.a.createElement(Le,d)});var Yn=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Ao=function(d){Yn(l,d);function l(a){var f=d.call(this,a)||this;return f.onIconsChanged=function(){f.containerRef.current&&(f.containerRef.current.innerHTML=O.SvgRegistry.iconsRenderedHtml())},f.containerRef=A.a.createRef(),f}return l.prototype.componentDidMount=function(){this.onIconsChanged(),O.SvgRegistry.onIconsChanged.add(this.onIconsChanged)},l.prototype.componentWillUnmount=function(){O.SvgRegistry.onIconsChanged.remove(this.onIconsChanged)},l.prototype.render=function(){var a={display:"none"};return A.a.createElement("svg",{style:a,id:"sv-icon-holder-global-container",ref:this.containerRef})},l}(A.a.Component),$u=j("react-dom"),As=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Do=function(d){As(l,d);function l(a){var f=d.call(this,a)||this;return f.isInitialized=!1,f.init=function(){f.isInitialized||(O.settings.showModal=function(h,b,W,ne,ue,Se,Fe){Fe===void 0&&(Fe="popup");var vt=Object(O.createDialogOptions)(h,b,W,ne,void 0,void 0,ue,Se,Fe);return f.showDialog(vt)},O.settings.showDialog=function(h,b){return f.showDialog(h,b)},f.isInitialized=!0)},f.clean=function(){f.isInitialized&&(O.settings.showModal=void 0,O.settings.showDialog=void 0,f.isInitialized=!1)},f.state={changed:0},f.descriptor={init:f.init,clean:f.clean},f}return l.addModalDescriptor=function(a){O.settings.showModal||a.init(),this.modalDescriptors.push(a)},l.removeModalDescriptor=function(a){a.clean(),this.modalDescriptors.splice(this.modalDescriptors.indexOf(a),1),!O.settings.showModal&&this.modalDescriptors[0]&&this.modalDescriptors[0].init()},l.prototype.renderElement=function(){return this.model?Object($u.createPortal)(A.a.createElement(gt,{model:this.model}),this.model.container):null},l.prototype.showDialog=function(a,f){var h=this;this.model=Object(O.createPopupModalViewModel)(a,f);var b=function(W,ne){ne.isVisible||(h.model.dispose(),h.model=void 0,h.setState({changed:h.state.changed+1}))};return this.model.onVisibilityChanged.add(b),this.model.model.isVisible=!0,this.setState({changed:this.state.changed+1}),this.model},l.prototype.componentDidMount=function(){l.addModalDescriptor(this.descriptor)},l.prototype.componentWillUnmount=function(){this.model&&(this.model.dispose(),this.model=void 0),l.removeModalDescriptor(this.descriptor)},l.modalDescriptors=[],l}(se),xa=j("./build/survey-core/icons/iconsV1.js"),Gu=j("./build/survey-core/icons/iconsV2.js"),Ju=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Tr=function(){return Tr=Object.assign||function(d){for(var l,a=1,f=arguments.length;a<f;a++){l=arguments[a];for(var h in l)Object.prototype.hasOwnProperty.call(l,h)&&(d[h]=l[h])}return d},Tr.apply(this,arguments)};Object(O.addIconsToThemeSet)("v1",xa.icons),Object(O.addIconsToThemeSet)("v2",Gu.icons),O.SvgRegistry.registerIcons(xa.icons);var pr=function(d){Ju(l,d);function l(a){var f=d.call(this,a)||this;return f.previousJSON={},f.isSurveyUpdated=!1,f.createSurvey(a),f.updateSurvey(a,{}),f.rootRef=m.createRef(),f.rootNodeId=a.id||null,f.rootNodeClassName=a.className||"",f}return Object.defineProperty(l,"cssType",{get:function(){return O.surveyCss.currentType},set:function(a){O.StylesManager.applyTheme(a)},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.survey},l.prototype.onSurveyUpdated=function(){if(this.survey){var a=this.rootRef.current;a&&this.survey.afterRenderSurvey(a),this.survey.startTimerFromUI(),this.setSurveyEvents()}},l.prototype.shouldComponentUpdate=function(a,f){return d.prototype.shouldComponentUpdate.call(this,a,f)?(this.isModelJSONChanged(a)&&(this.destroySurvey(),this.createSurvey(a),this.updateSurvey(a,{}),this.isSurveyUpdated=!0),!0):!1},l.prototype.componentDidUpdate=function(a,f){d.prototype.componentDidUpdate.call(this,a,f),this.updateSurvey(this.props,a),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.onSurveyUpdated()},l.prototype.destroySurvey=function(){this.survey&&(this.survey.renderCallback=void 0,this.survey.onPartialSend.clear(),this.survey.stopTimer(),this.survey.destroyResizeObserver())},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.destroySurvey()},l.prototype.doRender=function(){var a;this.survey.state=="completed"?a=this.renderCompleted():this.survey.state=="completedbefore"?a=this.renderCompletedBefore():this.survey.state=="loading"?a=this.renderLoading():this.survey.state=="empty"?a=this.renderEmptySurvey():a=this.renderSurvey();var f=this.survey.backgroundImage?m.createElement("div",{className:this.css.rootBackgroundImage,style:this.survey.backgroundImageStyle}):null,h=this.survey.headerView==="basic"?m.createElement(fr,{survey:this.survey}):null,b=function(Se){Se.preventDefault()},W=m.createElement("div",{className:"sv_custom_header"});this.survey.hasLogo&&(W=null);var ne=this.survey.getRootCss(),ue=this.rootNodeClassName?this.rootNodeClassName+" "+ne:ne;return m.createElement("div",{id:this.rootNodeId,ref:this.rootRef,className:ue,style:this.survey.themeVariables,lang:this.survey.locale||"en",dir:this.survey.localeDir},this.survey.needRenderIcons?m.createElement(Ao,null):null,m.createElement(Do,null),m.createElement("div",{className:this.survey.wrapperFormCss},f,m.createElement("form",{onSubmit:b},W,m.createElement("div",{className:this.css.container},h,m.createElement(Le,{survey:this.survey,container:"header",needRenderWrapper:!1}),a,m.createElement(Le,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),m.createElement(Zn,{notifier:this.survey.notifier})))},l.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(l.prototype,"css",{get:function(){return this.survey.css},set:function(a){this.survey.css=a},enumerable:!1,configurable:!0}),l.prototype.renderCompleted=function(){if(!this.survey.showCompletedPage)return null;var a={__html:this.survey.processedCompletedHtml};return m.createElement(m.Fragment,null,m.createElement("div",{dangerouslySetInnerHTML:a,className:this.survey.completedCss}),m.createElement(Le,{survey:this.survey,container:"completePage",needRenderWrapper:!1}))},l.prototype.renderCompletedBefore=function(){var a={__html:this.survey.processedCompletedBeforeHtml};return m.createElement("div",{dangerouslySetInnerHTML:a,className:this.survey.completedBeforeCss})},l.prototype.renderLoading=function(){var a={__html:this.survey.processedLoadingHtml};return m.createElement("div",{dangerouslySetInnerHTML:a,className:this.survey.loadingBodyCss})},l.prototype.renderSurvey=function(){var a=this.survey.activePage?this.renderPage(this.survey.activePage):null;this.survey.isShowStartingPage;var f=this.survey.activePage?this.survey.activePage.id:"",h=this.survey.bodyCss,b={};return this.survey.renderedWidth&&(b.maxWidth=this.survey.renderedWidth),m.createElement("div",{className:this.survey.bodyContainerCss},m.createElement(Le,{survey:this.survey,container:"left"}),m.createElement("div",{className:"sv-components-column sv-components-column--expandable"},m.createElement(Le,{survey:this.survey,container:"center"}),m.createElement("div",{id:f,className:h,style:b},m.createElement(Le,{survey:this.survey,container:"contentTop"}),a,m.createElement(Le,{survey:this.survey,container:"contentBottom"}),this.survey.showBrandInfo?m.createElement(Ur,null):null)),m.createElement(Le,{survey:this.survey,container:"right"}))},l.prototype.renderPage=function(a){return m.createElement(Er,{survey:this.survey,page:a,css:this.css,creator:this})},l.prototype.renderEmptySurvey=function(){return m.createElement("div",{className:this.css.bodyEmpty},this.survey.emptySurveyText)},l.prototype.createSurvey=function(a){a||(a={}),this.previousJSON={},a?a.model?this.survey=a.model:a.json&&(this.previousJSON=a.json,this.survey=new O.SurveyModel(a.json)):this.survey=new O.SurveyModel,a.css&&(this.survey.css=this.css)},l.prototype.isModelJSONChanged=function(a){return a.model?this.survey!==a.model:a.json?!O.Helpers.isTwoValueEquals(a.json,this.previousJSON):!1},l.prototype.updateSurvey=function(a,f){if(a){f=f||{};for(var h in a)if(!(h=="model"||h=="children"||h=="json")){if(h=="css"){this.survey.mergeValues(a.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss();continue}a[h]!==f[h]&&(h.indexOf("on")==0&&this.survey[h]&&this.survey[h].add?(f[h]&&this.survey[h].remove(f[h]),this.survey[h].add(a[h])):this.survey[h]=a[h])}}},l.prototype.setSurveyEvents=function(){var a=this;this.survey.renderCallback=function(){var f=a.state&&a.state.modelChanged?a.state.modelChanged:0;a.setState({modelChanged:f+1})},this.survey.onPartialSend.add(function(f){a.state&&a.setState(a.state)})},l.prototype.createQuestionElement=function(a){return He.Instance.createQuestion(a.isDefaultRendering()?a.getTemplate():a.getComponentName(),{question:a,isDisplayMode:a.isInputReadOnly,creator:this})},l.prototype.renderError=function(a,f,h,b){return H.Instance.createElement(this.survey.questionErrorComponent,{key:a,error:f,cssClasses:h,element:b})},l.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},l.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},l}(se);H.Instance.registerElement("survey",function(d){return m.createElement(pr,d)});function Wi(d,l,a){return a===void 0&&(a={processEsc:!0,disableTabStop:!1}),l&&l.disableTabStop||a&&a.disableTabStop?m.cloneElement(d,{tabIndex:-1}):(a=Tr({},a),m.cloneElement(d,{tabIndex:0,onKeyUp:function(f){return f.preventDefault(),f.stopPropagation(),Object(O.doKey2ClickUp)(f,a),!1},onKeyDown:function(f){return Object(O.doKey2ClickDown)(f,a)},onBlur:function(f){return Object(O.doKey2ClickBlur)(f)}}))}var Ds=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),$r=function(d){Ds(l,d);function l(a){var f=d.call(this,a)||this;return f.updateStateFunction=null,f.state={update:0},f}return Object.defineProperty(l.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){if(this.survey){var a=this;this.updateStateFunction=function(){a.setState({update:a.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},l.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},l}(m.Component),$i=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Ls=function(d){$i(l,d);function l(a){var f=d.call(this,a)||this;return f.circleLength=440,f}return l.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(l.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),l.prototype.render=function(){if(!this.timerModel.isRunning)return null;var a=m.createElement("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var f={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},h=this.timerModel.showProgress?m.createElement(De,{className:this.timerModel.getProgressCss(),style:f,iconName:"icon-timercircle",size:"auto"}):null;a=m.createElement("div",{className:this.timerModel.rootCss},h,m.createElement("div",{className:this.timerModel.textContainerCss},m.createElement("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?m.createElement("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return a},l}(ve);H.Instance.registerElement("sv-timerpanel",function(d){return m.createElement(Ls,d)});var Lo=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),fn=function(d){Lo(l,d);function l(a){var f=d.call(this,a)||this;return f.hasBeenExpanded=!1,f}return Object.defineProperty(l.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,f=this.renderHeader(),h=m.createElement(qn,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),b={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.renderedIsExpanded?void 0:"none"},W=null;if(this.panel.renderedIsExpanded){var ne=this.renderRows(this.panelBase.cssClasses),ue=this.panelBase.cssClasses.panel.content;W=this.renderContent(b,ne,ue)}var Se=function(){a.panelBase&&a.panelBase.focusIn()};return m.createElement("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:Se,id:this.panelBase.id},this.panel.showErrorsAbovePanel?h:null,f,this.panel.showErrorsAbovePanel?null:h,W)},l.prototype.renderHeader=function(){return!this.panel.hasTitle&&!this.panel.hasDescription?null:m.createElement(an,{element:this.panel})},l.prototype.wrapElement=function(a){var f=this.panel.survey,h=null;return f&&(h=ee.wrapElement(f,a,this.panel)),h??a},l.prototype.renderContent=function(a,f,h){var b=this.renderBottom();return m.createElement("div",{style:a,className:h,id:this.panel.contentId},f,b)},l.prototype.renderTitle=function(){return this.panelBase.title?m.createElement(Ft,{element:this.panelBase}):null},l.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var a=se.renderLocString(this.panelBase.locDescription);return m.createElement("div",{className:this.panel.cssClasses.panel.description},a)},l.prototype.renderBottom=function(){var a=this.panel.getFooterToolbar();return a.hasActions?m.createElement(ke,{model:a}):null},l.prototype.getIsVisible=function(){return this.panelBase.getIsContentVisible()},l}(Ze);H.Instance.registerElement("panel",function(d){return m.createElement(fn,d)});var Zu=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Mo=function(d){Zu(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},l.prototype.getQuestion=function(a){return this.flowPanel.getQuestionByName(a)},l.prototype.renderQuestion=function(a){return"<question>"+a.name+"</question>"},l.prototype.renderRows=function(){var a=this.renderHtml();return a?[a]:[]},l.prototype.getNodeIndex=function(){return this.renderedIndex++},l.prototype.renderHtml=function(){if(!this.flowPanel)return null;var a="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser){var f={__html:a};return m.createElement("div",{dangerouslySetInnerHTML:f})}var h=new DOMParser().parseFromString(a,"text/xml");return this.renderedIndex=0,this.renderParentNode(h)},l.prototype.renderNodes=function(a){for(var f=[],h=0;h<a.length;h++){var b=this.renderNode(a[h]);b&&f.push(b)}return f},l.prototype.getStyle=function(a){var f={};return a.toLowerCase()==="b"&&(f.fontWeight="bold"),a.toLowerCase()==="i"&&(f.fontStyle="italic"),a.toLowerCase()==="u"&&(f.textDecoration="underline"),f},l.prototype.renderParentNode=function(a){var f=a.nodeName.toLowerCase(),h=this.renderNodes(this.getChildDomNodes(a));return f==="div"?m.createElement("div",{key:this.getNodeIndex()},h):m.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(f)},h)},l.prototype.renderNode=function(a){if(!this.hasTextChildNodesOnly(a))return this.renderParentNode(a);var f=a.nodeName.toLowerCase();if(f==="question"){var h=this.flowPanel.getQuestionByName(a.textContent);if(!h)return null;var b=m.createElement(cn,{key:h.name,element:h,creator:this.creator,css:this.css});return m.createElement("span",{key:this.getNodeIndex()},b)}return f==="div"?m.createElement("div",{key:this.getNodeIndex()},a.textContent):m.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(f)},a.textContent)},l.prototype.getChildDomNodes=function(a){for(var f=[],h=0;h<a.childNodes.length;h++)f.push(a.childNodes[h]);return f},l.prototype.hasTextChildNodesOnly=function(a){for(var f=a.childNodes,h=0;h<f.length;h++)if(f[h].nodeName.toLowerCase()!=="#text")return!1;return!0},l.prototype.renderContent=function(a,f){return m.createElement("f-panel",{style:a},f)},l}(fn);H.Instance.registerElement("flowpanel",function(d){return m.createElement(Mo,d)});var Va=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Sa=function(d){Va(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,f=this.question.cssClasses;return m.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(h){return a.setControl(h)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},m.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.getHeader(),this.question.hasColumns?this.getColumnedBody(f):this.getBody(f),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},l.prototype.getHeader=function(){var a=this;if(this.question.hasHeadItems)return this.question.headItems.map(function(f,h){return a.renderItem(f,!1,a.question.cssClasses)})},l.prototype.getFooter=function(){var a=this;if(this.question.hasFootItems)return this.question.footItems.map(function(f,h){return a.renderItem(f,!1,a.question.cssClasses)})},l.prototype.getColumnedBody=function(a){return m.createElement("div",{className:a.rootMultiColumn},this.getColumns(a))},l.prototype.getColumns=function(a){var f=this;return this.question.columns.map(function(h,b){var W=h.map(function(ne,ue){return f.renderItem(ne,b===0&&ue===0,a,""+b+ue)});return m.createElement("div",{key:"column"+b+f.question.getItemsColumnKey(h),className:f.question.getColumnClass(),role:"presentation"},W)})},l.prototype.getBody=function(a){return this.question.blockedRow?m.createElement("div",{className:a.rootRow},this.getItems(a,this.question.dataChoices)):m.createElement(m.Fragment,null,this.getItems(a,this.question.bodyItems))},l.prototype.getItems=function(a,f){for(var h=[],b=0;b<f.length;b++){var W=f[b];""+W.value;var ne=this.renderItem(W,b==0,a,""+b);ne&&h.push(ne)}return h},Object.defineProperty(l.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),l.prototype.renderOther=function(){var a=this.question.cssClasses;return m.createElement("div",{className:this.question.getCommentAreaCss(!0)},m.createElement(_t,{question:this.question,otherCss:a.other,cssClasses:a,isDisplayMode:this.isDisplayMode}))},l.prototype.renderItem=function(a,f,h,b){var W=H.Instance.createElement(this.question.itemComponent,{key:a.value,question:this.question,cssClasses:h,isDisplayMode:this.isDisplayMode,item:a,textStyle:this.textStyle,index:b,isFirst:f}),ne=this.question.survey,ue=null;return ne&&W&&(ue=ee.wrapItemValue(ne,W,this.question,a)),ue??W},l}(de),Ms=function(d){Va(l,d);function l(a){var f=d.call(this,a)||this;return f.handleOnChange=function(h){f.question.clickItemHandler(f.item,h.target.checked)},f.rootRef=m.createRef(),f}return l.prototype.getStateElement=function(){return this.item},Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hideCaption",{get:function(){return this.props.hideCaption===!0},enumerable:!1,configurable:!0}),l.prototype.componentDidUpdate=function(a,f){d.prototype.componentDidUpdate.call(this,a,f),a.item!==this.props.item&&!this.question.isDesignMode&&(this.props.item&&this.props.item.setRootElement(this.rootRef.current),a.item&&a.item.setRootElement(void 0))},l.prototype.shouldComponentUpdate=function(a,f){return d.prototype.shouldComponentUpdate.call(this,a,f)?!this.question.customWidget||!!this.question.customWidgetData.isNeedRender||!!this.question.customWidget.widgetJson.isDefaultRender||!!this.question.customWidget.widgetJson.render:!1},l.prototype.canRender=function(){return!!this.item&&!!this.question},l.prototype.renderElement=function(){var a=this.question.isItemSelected(this.item);return this.renderCheckbox(a,null)},Object.defineProperty(l.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),l.prototype.renderCheckbox=function(a,f){var h=this.question.getItemId(this.item),b=this.question.getItemClass(this.item),W=this.question.getLabelClass(this.item),ne=this.hideCaption?null:m.createElement("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return m.createElement("div",{className:b,role:"presentation",ref:this.rootRef},m.createElement("label",{className:W},m.createElement("input",{className:this.cssClasses.itemControl,type:"checkbox",name:this.question.name+this.item.id,value:this.item.value,id:h,style:this.inputStyle,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,checked:a,onChange:this.handleOnChange,required:this.question.hasRequiredError()}),this.cssClasses.materialDecorator?m.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?m.createElement("svg",{className:this.cssClasses.itemDecorator},m.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,ne),f)},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},l}(ve);H.Instance.registerElement("survey-checkbox-item",function(d){return m.createElement(Ms,d)}),He.Instance.registerQuestion("checkbox",function(d){return m.createElement(Sa,d)});var _o=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),_s=function(d){_o(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this;if(this.question.selectToRankEnabled){var f=!0;return m.createElement("div",{className:this.question.rootClass,ref:function(h){return a.setControl(h)}},m.createElement("div",{className:this.question.getContainerClasses("from"),"data-ranking":"from-container"},this.getItems(this.question.renderedUnRankingChoices,f),this.question.renderedUnRankingChoices.length===0?m.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText)," "):null),m.createElement("div",{className:this.question.cssClasses.containersDivider}),m.createElement("div",{className:this.question.getContainerClasses("to"),"data-ranking":"to-container"},this.getItems(),this.question.renderedRankingChoices.length===0?m.createElement("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText)," "):null))}else return m.createElement("div",{className:this.question.rootClass,ref:function(h){return a.setControl(h)}},this.getItems())},l.prototype.getItems=function(a,f){var h=this;a===void 0&&(a=this.question.renderedRankingChoices);for(var b=[],W=function(Se){var Fe=a[Se];b.push(ne.renderItem(Fe,Se,function(vt){h.question.handleKeydown.call(h.question,vt,Fe)},function(vt){vt.persist(),h.question.handlePointerDown.call(h.question,vt,Fe,vt.currentTarget)},function(vt){vt.persist(),h.question.handlePointerUp.call(h.question,vt,Fe,vt.currentTarget)},ne.question.cssClasses,ne.question.getItemClass(Fe),ne.question,f))},ne=this,ue=0;ue<a.length;ue++)W(ue);return b},l.prototype.renderItem=function(a,f,h,b,W,ne,ue,Se,Fe){""+a.renderedId;var vt=this.renderLocString(a.locText),Pn=f,Cn=this.question.getNumberByIndex(Pn),Ri=this.question.getItemTabIndex(a),Mr=m.createElement(js,{key:a.value,text:vt,index:Pn,indexText:Cn,itemTabIndex:Ri,handleKeydown:h,handlePointerDown:b,handlePointerUp:W,cssClasses:ne,itemClass:ue,question:Se,unrankedItem:Fe,item:a}),ei=this.question.survey,xn=null;return ei&&(xn=ee.wrapItemValue(ei,Mr,this.question,a)),xn??Mr},l}(de),js=function(d){_o(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"handlePointerUp",{get:function(){return this.props.handlePointerUp},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"itemClass",{get:function(){return this.props.itemClass},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"itemTabIndex",{get:function(){return this.props.itemTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"unrankedItem",{get:function(){return this.props.unrankedItem},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.renderEmptyIcon=function(){return m.createElement("svg",null,m.createElement("use",{xlinkHref:this.question.dashSvgIcon}))},l.prototype.renderElement=function(){var a=H.Instance.createElement(this.question.itemComponent,{item:this.item,cssClasses:this.cssClasses});return m.createElement("div",{tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,"data-sv-drop-target-ranking-item":this.index},m.createElement("div",{tabIndex:-1,style:{outline:"none"}},m.createElement("div",{className:this.cssClasses.itemGhostNode}),m.createElement("div",{className:this.cssClasses.itemContent},m.createElement("div",{className:this.cssClasses.itemIconContainer},m.createElement("svg",{className:this.question.getIconHoverCss()},m.createElement("use",{xlinkHref:this.question.dragDropSvgIcon})),m.createElement("svg",{className:this.question.getIconFocusCss()},m.createElement("use",{xlinkHref:this.question.arrowsSvgIcon}))),m.createElement("div",{className:this.question.getItemIndexClasses(this.item)},!this.unrankedItem&&this.indexText?this.indexText:this.renderEmptyIcon()),a)))},l}(ve),Ns=function(d){_o(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){return m.createElement("div",{className:this.cssClasses.controlLabel},se.renderLocString(this.item.locText))},l}(ve);H.Instance.registerElement("sv-ranking-item",function(d){return m.createElement(Ns,d)}),He.Instance.registerQuestion("ranking",function(d){return m.createElement(_s,d)});var qs=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),pn=function(d){qs(l,d);function l(a){var f=d.call(this,a)||this;return f.handleOnMouseDown=f.handleOnMouseDown.bind(f),f}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.handleOnMouseDown=function(a){this.question.onMouseDown()},l}(se),Ir=function(d){qs(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return l.prototype.render=function(){var a=this.renderLocString(this.item.locText);return A.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},A.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),A.a.createElement("span",{className:this.question.cssClasses.itemText,"data-text":this.item.text},a))},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this)},l}(pn);H.Instance.registerElement("sv-rating-item",function(d){return A.a.createElement(Ir,d)});var Ku=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Bs=function(d){Ku(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return l.prototype.render=function(){var a=this;return A.a.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(f){return a.question.onItemMouseIn(a.item)},onMouseOut:function(f){return a.question.onItemMouseOut(a.item)}},A.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),A.a.createElement(De,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),A.a.createElement(De,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},l}(pn);H.Instance.registerElement("sv-rating-item-star",function(d){return A.a.createElement(Bs,d)});var jo=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Ea=function(d){jo(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return l.prototype.render=function(){var a=this;return A.a.createElement("label",{onMouseDown:this.handleOnMouseDown,style:this.question.getItemStyle(this.item.itemValue,this.item.highlight),className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(f){return a.question.onItemMouseIn(a.item)},onMouseOut:function(f){return a.question.onItemMouseOut(a.item)}},A.a.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),A.a.createElement(De,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},l}(pn);H.Instance.registerElement("sv-rating-item-smiley",function(d){return A.a.createElement(Ea,d)});var Lt=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Je=function(d){Lt(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.render=function(){if(!this.item)return null;var a=this.props.item,f=this.renderDescription(a);return A.a.createElement("div",{className:"sd-rating-dropdown-item"},A.a.createElement("span",{className:"sd-rating-dropdown-item_text"},a.title),f)},l.prototype.renderDescription=function(a){return a.description?A.a.createElement("div",{className:"sd-rating-dropdown-item_description"},this.renderLocString(a.description,void 0,"locString")):null},l}(se);H.Instance.registerElement("sv-rating-dropdown-item",function(d){return A.a.createElement(Je,d)});var Gr=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Gi=function(d){Gr(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.componentDidUpdate=function(a,f){d.prototype.componentDidUpdate.call(this,a,f),this.updateDomElement()},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.updateDomElement()},l.prototype.updateDomElement=function(){if(this.inputElement){var a=this.inputElement,f=this.model.inputStringRendered;O.Helpers.isTwoValueEquals(f,a.value,!1,!0,!1)||(a.value=this.model.inputStringRendered)}},l.prototype.onChange=function(a){var f=O.settings.environment.root;a.target===f.activeElement&&(this.model.inputStringRendered=a.target.value)},l.prototype.keyhandler=function(a){this.model.inputKeyHandler(a)},l.prototype.onBlur=function(a){this.question.onBlur(a)},l.prototype.onFocus=function(a){this.question.onFocus(a)},l.prototype.getStateElement=function(){return this.model},l.prototype.render=function(){var a=this;return m.createElement("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?m.createElement("div",{className:this.question.cssClasses.hintPrefix},m.createElement("span",null,this.model.hintStringPrefix)):null,m.createElement("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?m.createElement("div",{className:this.question.cssClasses.hintSuffix},m.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),m.createElement("span",null,this.model.hintStringSuffix)):null,m.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(f){return a.inputElement=f},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:this.model.filterReadOnly?!0:void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":this.model.listElementId,"aria-activedescendant":this.model.ariaActivedescendant,placeholder:this.model.filterStringPlaceholder,onKeyDown:function(f){a.keyhandler(f)},onChange:function(f){a.onChange(f)},onBlur:function(f){a.onBlur(f)},onFocus:function(f){a.onFocus(f)}})))},l}(se);He.Instance.registerQuestion("sv-tagbox-filter",function(d){return m.createElement(Gi,d)});var Tn=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Fs=function(d){Tn(l,d);function l(a){var f=d.call(this,a)||this;return f.state={changed:0},f.setupModel(),f}return l.prototype.componentDidUpdate=function(a,f){d.prototype.componentDidUpdate.call(this,a,f),this.setupModel()},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.setupModel()},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},l.prototype.setupModel=function(){if(this.item.locText){var a=this;this.item.locText.onChanged=function(){a.setState({changed:a.state.changed+1})}}},l.prototype.getStateElement=function(){return this.item},Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.item},l.prototype.renderElement=function(){return m.createElement("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},l}(ve),No=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),qo=function(d){No(l,d);function l(){var a=d!==null&&d.apply(this,arguments)||this;return a.click=function(f){var h;(h=a.question.dropdownListModel)===null||h===void 0||h.onClick(f)},a.chevronPointerDown=function(f){var h;(h=a.question.dropdownListModel)===null||h===void 0||h.chevronPointerDown(f)},a.clear=function(f){var h;(h=a.question.dropdownListModel)===null||h===void 0||h.onClear(f)},a.keyhandler=function(f){var h;(h=a.question.dropdownListModel)===null||h===void 0||h.keyHandler(f)},a.blur=function(f){a.updateInputDomElement(),a.question.onBlur(f)},a.focus=function(f){a.question.onFocus(f)},a}return l.prototype.getStateElement=function(){return this.question.dropdownListModel},l.prototype.setValueCore=function(a){this.questionBase.renderedValue=a},l.prototype.getValueCore=function(){return this.questionBase.renderedValue},l.prototype.renderReadOnlyElement=function(){return m.createElement("div",null,this.question.readOnlyText)},l.prototype.renderSelect=function(a){var f=this,h,b,W=null;if(this.question.isReadOnly){var ne=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";W=m.createElement("div",{id:this.question.inputId,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,tabIndex:this.question.isDisabledAttr?void 0:0,className:this.question.getControlClass(),ref:function(ue){return f.setControl(ue)}},ne,this.renderReadOnlyElement())}else W=m.createElement(m.Fragment,null,this.renderInput(this.question.dropdownListModel),m.createElement(st,{model:(b=(h=this.question)===null||h===void 0?void 0:h.dropdownListModel)===null||b===void 0?void 0:b.popupModel}));return m.createElement("div",{className:a.selectWrapper,onClick:this.click},W,this.createChevronButton())},l.prototype.renderValueElement=function(a){return this.question.showInputFieldComponent?H.Instance.createElement(this.question.inputFieldComponentName,{item:a.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},l.prototype.renderInput=function(a){var f=this,h=this.renderValueElement(a),b=O.settings.environment.root,W=function(ne){ne.target===b.activeElement&&(a.inputStringRendered=ne.target.value)};return m.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:a.noTabIndex?void 0:0,disabled:this.question.isDisabledAttr,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,onFocus:this.focus,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":this.question.ariaExpanded,"aria-controls":a.listElementId,"aria-activedescendant":a.ariaActivedescendant,ref:function(ne){return f.setControl(ne)}},a.showHintPrefix?m.createElement("div",{className:this.question.cssClasses.hintPrefix},m.createElement("span",null,a.hintStringPrefix)):null,m.createElement("div",{className:this.question.cssClasses.controlValue},a.showHintString?m.createElement("div",{className:this.question.cssClasses.hintSuffix},m.createElement("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},a.inputStringRendered),m.createElement("span",null,a.hintStringSuffix)):null,h,m.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(ne){return f.inputElement=ne},className:this.question.cssClasses.filterStringInput,role:a.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":a.listElementId,"aria-activedescendant":a.ariaActivedescendant,placeholder:a.placeholderRendered,readOnly:a.filterReadOnly?!0:void 0,tabIndex:a.noTabIndex?void 0:-1,disabled:this.question.isDisabledAttr,inputMode:a.inputMode,onChange:function(ne){W(ne)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},l.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var a={display:this.question.showClearButton?"":"none"};return m.createElement("div",{className:this.question.cssClasses.cleanButton,style:a,onClick:this.clear,"aria-hidden":"true"},m.createElement(De,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},l.prototype.createChevronButton=function(){return this.question.cssClasses.chevronButtonIconId?m.createElement("div",{className:this.question.cssClasses.chevronButton,"aria-hidden":"true",onPointerDown:this.chevronPointerDown},m.createElement(De,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:"auto"})):null},l.prototype.renderOther=function(a){return m.createElement("div",{className:this.question.getCommentAreaCss(!0)},m.createElement(_t,{question:this.question,otherCss:a.other,cssClasses:a,isDisplayMode:this.isDisplayMode,isOther:!0}))},l.prototype.componentDidUpdate=function(a,f){d.prototype.componentDidUpdate.call(this,a,f),this.updateInputDomElement()},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.updateInputDomElement()},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.question.dropdownListModel&&(this.question.dropdownListModel.focused=!1)},l.prototype.updateInputDomElement=function(){if(this.inputElement){var a=this.inputElement,f=this.question.dropdownListModel.inputStringRendered;O.Helpers.isTwoValueEquals(f,a.value,!1,!0,!1)||(a.value=this.question.dropdownListModel.inputStringRendered)}},l}(nt),te=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),ks=function(d){te(l,d);function l(a){return d.call(this,a)||this}return l.prototype.renderElement=function(){var a=this.question.cssClasses,f=this.question.isOtherSelected?this.renderOther(a):null,h=this.renderSelect(a);return m.createElement("div",{className:this.question.renderCssRoot},h,f)},l}(qo);He.Instance.registerQuestion("dropdown",function(d){return m.createElement(ks,d)});var Ji=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Zi=function(d){Ji(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.item&&!!this.question},l.prototype.renderElement=function(){var a=this,f=this.renderLocString(this.item.locText),h=function(b){a.question.dropdownListModel.deselectItem(a.item.value),b.stopPropagation()};return m.createElement("div",{className:"sv-tagbox__item"},m.createElement("div",{className:"sv-tagbox__item-text"},f),m.createElement("div",{className:this.question.cssClasses.cleanItemButton,onClick:h},m.createElement(De,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},l}(ve),Qn=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Rr=function(d){Qn(l,d);function l(a){return d.call(this,a)||this}return l.prototype.renderItem=function(a,f){var h=m.createElement(Zi,{key:a,question:this.question,item:f});return h},l.prototype.renderInput=function(a){var f=this,h=a,b=this.question.selectedChoices.map(function(W,ne){return f.renderItem("item"+ne,W)});return m.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:a.noTabIndex?void 0:0,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":this.question.ariaExpanded,"aria-controls":a.listElementId,"aria-activedescendant":a.ariaActivedescendant,ref:function(W){return f.setControl(W)}},m.createElement("div",{className:this.question.cssClasses.controlValue},b,m.createElement(Gi,{model:h,question:this.question})),this.createClearButton())},l.prototype.renderElement=function(){var a=this.question.cssClasses,f=this.question.isOtherSelected?this.renderOther(a):null,h=this.renderSelect(a);return m.createElement("div",{className:this.question.renderCssRoot},h,f)},l.prototype.renderReadOnlyElement=function(){return this.question.locReadOnlyText?this.renderLocString(this.question.locReadOnlyText):null},l}(qo);He.Instance.registerQuestion("tagbox",function(d){return m.createElement(Rr,d)});var Qs=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),wn=function(d){Qs(l,d);function l(a){return d.call(this,a)||this}return l.prototype.renderSelect=function(a){var f=this,h=function(ne){f.question.onClick(ne)},b=function(ne){f.question.onKeyUp(ne)},W=this.isDisplayMode?m.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):m.createElement("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(ne){return f.setControl(ne)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:h,onKeyUp:b,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,required:this.question.isRequired},this.question.allowClear?m.createElement("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map(function(ne,ue){return m.createElement(Fs,{key:"item"+ue,item:ne})}));return m.createElement("div",{className:a.selectWrapper},W,this.createChevronButton())},l}(ks);He.Instance.registerQuestion("sv-dropdown-select",function(d){return m.createElement(wn,d)}),O.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select");var Bo=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),dr=function(d){Bo(l,d);function l(a){var f=d.call(this,a)||this;return f.state={rowsChanged:0},f}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){if(d.prototype.componentDidMount.call(this),this.question){var a=this;this.question.visibleRowsChangedCallback=function(){a.setState({rowsChanged:a.state.rowsChanged+1})}}},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},l.prototype.renderElement=function(){for(var a=this,f=this.question.cssClasses,h=this.question.hasRows?m.createElement("td",null):null,b=[],W=0;W<this.question.visibleColumns.length;W++){var ne=this.question.visibleColumns[W],ue="column"+W,Se=this.renderLocString(ne.locText),Fe={};this.question.columnMinWidth&&(Fe.minWidth=this.question.columnMinWidth,Fe.width=this.question.columnMinWidth),b.push(m.createElement("th",{className:this.question.cssClasses.headerCell,style:Fe,key:ue},this.wrapCell({column:ne},Se,"column-header")))}for(var vt=[],Pn=this.question.visibleRows,W=0;W<Pn.length;W++){var Cn=Pn[W],ue="row-"+Cn.name+"-"+W;vt.push(m.createElement(Hs,{key:ue,question:this.question,cssClasses:f,row:Cn,isFirst:W==0}))}var Ri=this.question.showHeader?m.createElement("thead",null,m.createElement("tr",null,h,b)):null;return m.createElement("div",{className:f.tableWrapper,ref:function(Mr){return a.setControl(Mr)}},m.createElement("fieldset",null,m.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),m.createElement("table",{className:this.question.getTableCss()},Ri,m.createElement("tbody",null,vt))))},l}(de),Hs=function(d){Bo(l,d);function l(a){return d.call(this,a)||this}return l.prototype.getStateElement=function(){return this.row?this.row.item:d.prototype.getStateElement.call(this)},Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),l.prototype.wrapCell=function(a,f,h){if(!h)return f;var b=this.question.survey,W=null;return b&&(W=ee.wrapMatrixCell(b,f,a,h)),W??f},l.prototype.canRender=function(){return!!this.row},l.prototype.renderElement=function(){var a=null;if(this.question.hasRows){var f=this.renderLocString(this.row.locText),h={};this.question.rowTitleWidth&&(h.minWidth=this.question.rowTitleWidth,h.width=this.question.rowTitleWidth),a=m.createElement("td",{style:h,className:this.row.rowTextClasses},this.wrapCell({row:this.row},f,"row-header"))}var b=this.generateTds();return m.createElement("tr",{className:this.row.rowClasses||void 0},a,b)},l.prototype.generateTds=function(){for(var a=this,f=[],h=this.row,b=this.question.cellComponent,W=function(){var Se=null,Fe=ne.question.visibleColumns[ue],vt="value"+ue,Pn=ne.question.getItemClass(h,Fe);if(ne.question.hasCellText){var Cn=function(Mr){return function(){return a.cellClick(h,Mr)}};Se=m.createElement("td",{key:vt,className:Pn,onClick:Cn?Cn(Fe):function(){}},ne.renderLocString(ne.question.getCellDisplayLocText(h.name,Fe)))}else{var Ri=H.Instance.createElement(b,{question:ne.question,row:ne.row,column:Fe,columnIndex:ue,cssClasses:ne.cssClasses,cellChanged:function(){a.cellClick(a.row,Fe)}});Se=m.createElement("td",{key:vt,"data-responsive-title":Fe.locText.renderedHtml,className:ne.question.cssClasses.cell},Ri)}f.push(Se)},ne=this,ue=0;ue<this.question.visibleColumns.length;ue++)W();return f},l.prototype.cellClick=function(a,f){a.value=f.value,this.setState({value:this.row.value})},l}(ve),mn=function(d){Bo(l,d);function l(a){var f=d.call(this,a)||this;return f.handleOnMouseDown=f.handleOnMouseDown.bind(f),f.handleOnChange=f.handleOnChange.bind(f),f}return l.prototype.handleOnChange=function(a){this.props.cellChanged&&this.props.cellChanged()},l.prototype.handleOnMouseDown=function(a){this.question.onMouseDown()},Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"columnIndex",{get:function(){return this.props.columnIndex},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return!!this.question&&!!this.row},l.prototype.renderElement=function(){var a=this.row.value==this.column.value,f=this.question.inputId+"_"+this.row.name+"_"+this.columnIndex,h=this.question.getItemClass(this.row,this.column),b=this.question.isMobile?m.createElement("span",{className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(this.column.locText)):void 0;return m.createElement("label",{onMouseDown:this.handleOnMouseDown,className:h},this.renderInput(f,a),m.createElement("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?m.createElement("svg",{className:this.cssClasses.itemDecorator},m.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null),b)},l.prototype.renderInput=function(a,f){return m.createElement("input",{id:a,type:"radio",className:this.cssClasses.itemValue,name:this.row.fullName,value:this.column.value,disabled:this.row.isDisabledAttr,readOnly:this.row.isReadOnlyAttr,checked:f,onChange:this.handleOnChange,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.getCellAriaLabel(this.row.locText.renderedHtml,this.column.locText.renderedHtml),"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage})},l}(ve);H.Instance.registerElement("survey-matrix-cell",function(d){return m.createElement(mn,d)}),He.Instance.registerQuestion("matrix",function(d){return m.createElement(dr,d)});var vi=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),zs=function(d){vi(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){this.reactOnStrChanged()},l.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},l.prototype.componentDidUpdate=function(a,f){this.reactOnStrChanged()},l.prototype.reactOnStrChanged=function(){var a=this;this.question.locHtml.onChanged=function(){a.setState({changed:a.state&&a.state.changed?a.state.changed+1:1})}},l.prototype.canRender=function(){return d.prototype.canRender.call(this)&&!!this.question.html},l.prototype.renderElement=function(){var a={__html:this.question.locHtml.renderedHtml};return m.createElement("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:a})},l}(de);He.Instance.registerQuestion("html",function(d){return m.createElement(zs,d)});var Fo=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),at=function(d){Fo(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return l.prototype.render=function(){return m.createElement("div",{className:"sd-loading-indicator"},m.createElement(De,{iconName:"icon-loading",size:"auto"}))},l}(m.Component),Oa=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Ki=function(d){Oa(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),l.prototype.render=function(){var a=this;return Wi(A.a.createElement("label",{tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonText,onClick:function(f){return a.question.chooseFile(f.nativeEvent)}},this.question.cssClasses.chooseFileIconId?A.a.createElement(De,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null,A.a.createElement("span",null,this.question.chooseButtonText)))},l}(ve);H.Instance.registerElement("sv-file-choose-btn",function(d){return A.a.createElement(Ki,d)});var Yi=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),hr=function(d){Yi(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,f=this.question.allowShowPreview?this.renderPreview():null,h=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,b=this.question.isPlayingVideo?this.renderVideo():null,W=this.question.showFileDecorator?this.renderFileDecorator():null,ne=this.question.showRemoveButton?this.renderClearButton(this.question.cssClasses.removeButton):null,ue=this.question.showRemoveButtonBottom?this.renderClearButton(this.question.cssClasses.removeButtonBottom):null,Se=this.question.fileNavigatorVisible?m.createElement(ke,{model:this.question.fileNavigator}):null,Fe;return this.question.isReadOnlyAttr?Fe=m.createElement("input",{readOnly:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(vt){return a.setControl(vt)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.isDisabledAttr?Fe=m.createElement("input",{disabled:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(vt){return a.setControl(vt)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.hasFileUI?Fe=m.createElement("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(vt){return a.setControl(vt)},style:this.isDisplayMode?{color:"transparent"}:{},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes,capture:this.question.renderCapture}):Fe=null,m.createElement("div",{className:this.question.fileRootCss,ref:function(vt){return a.setContent(vt)}},Fe,m.createElement("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},W,h,b,ne,f,ue,Se))},l.prototype.renderFileDecorator=function(){var a=this.question.showChooseButton?this.renderChooseButton():null,f=this.question.actionsContainerVisible?m.createElement(ke,{model:this.question.actionsContainer}):null,h=this.question.isEmpty()?m.createElement("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption):null;return m.createElement("div",{className:this.question.getFileDecoratorCss()},m.createElement("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.renderLocString(this.question.locRenderedPlaceholder)),m.createElement("div",{className:this.question.cssClasses.wrapper},a,f,h))},l.prototype.renderChooseButton=function(){return m.createElement(Ki,{data:{question:this.question}})},l.prototype.renderClearButton=function(a){return this.question.isUploading?null:m.createElement("button",{type:"button",onClick:this.question.doClean,className:a},m.createElement("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?m.createElement(De,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null)},l.prototype.renderPreview=function(){return H.Instance.createElement("sv-file-preview",{question:this.question})},l.prototype.renderLoadingIndicator=function(){return m.createElement("div",{className:this.question.cssClasses.loadingIndicator},m.createElement(at,null))},l.prototype.renderVideo=function(){return m.createElement("div",{className:this.question.cssClasses.videoContainer},m.createElement($e,{item:this.question.changeCameraAction}),m.createElement($e,{item:this.question.closeCameraAction}),m.createElement("video",{autoPlay:!0,playsInline:!0,id:this.question.videoId,className:this.question.cssClasses.video}),m.createElement($e,{item:this.question.takePictureAction}))},l}(de);He.Instance.registerQuestion("file",function(d){return m.createElement(hr,d)});var Us=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),bi=function(d){Us(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.renderFileSign=function(a,f){var h=this;return!a||!f.name?null:A.a.createElement("div",{className:a},A.a.createElement("a",{href:f.content,onClick:function(b){h.question.doDownloadFile(b,f)},title:f.name,download:f.name,style:{width:this.question.imageWidth}},f.name))},l.prototype.renderElement=function(){var a=this,f=this.item;return A.a.createElement("span",{className:this.question.cssClasses.previewItem,onClick:function(h){return a.question.doDownloadFileFromContainer(h)}},this.renderFileSign(this.question.cssClasses.fileSign,f),A.a.createElement("div",{className:this.question.getImageWrapperCss(f)},this.question.canPreviewImage(f)?A.a.createElement("img",{src:f.content,style:{height:this.question.imageHeight,width:this.question.imageWidth},alt:"File preview"}):this.question.cssClasses.defaultImage?A.a.createElement(De,{iconName:this.question.cssClasses.defaultImageIconId,size:"auto",className:this.question.cssClasses.defaultImage}):null,f.name&&!this.question.isReadOnly?A.a.createElement("div",{className:this.question.getRemoveButtonCss(),onClick:function(h){return a.question.doRemoveFile(f,h)}},A.a.createElement("span",{className:this.question.cssClasses.removeFile},this.question.removeFileCaption),this.question.cssClasses.removeFileSvgIconId?A.a.createElement(De,{title:this.question.removeFileCaption,iconName:this.question.cssClasses.removeFileSvgIconId,size:"auto",className:this.question.cssClasses.removeFileSvg}):null):null),this.renderFileSign(this.question.cssClasses.fileSignBottom,f))},l.prototype.canRender=function(){return this.question.showPreviewContainer},l}(se),pt=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Ta=function(d){pt(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"page",{get:function(){return this.props.page},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,f=this.page.items.map(function(h,b){return A.a.createElement(bi,{item:h,question:a.question,key:b})});return A.a.createElement("div",{className:this.page.css,id:this.page.id},f)},l}(se),Ia=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Ci=function(d){Ia(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.renderFileSign=function(a,f){var h=this;return!a||!f.name?null:A.a.createElement("div",{className:a},A.a.createElement("a",{href:f.content,onClick:function(b){h.question.doDownloadFile(b,f)},title:f.name,download:f.name,style:{width:this.question.imageWidth}},f.name))},l.prototype.renderElement=function(){var a=this,f=this.question.supportFileNavigator?this.question.renderedPages.map(function(h,b){return A.a.createElement(Ta,{page:h,question:a.question,key:h.id})}):this.question.previewValue.map(function(h,b){return A.a.createElement(bi,{item:h,question:a.question,key:b})});return A.a.createElement("div",{className:this.question.cssClasses.fileList||void 0},f)},l.prototype.canRender=function(){return this.question.showPreviewContainer},l}(se);H.Instance.registerElement("sv-file-preview",function(d){return A.a.createElement(Ci,d)});var ko=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),wi=function(d){ko(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){for(var a=this.question.cssClasses,f=this.question.getRows(),h=[],b=0;b<f.length;b++)f[b].isVisible&&h.push(this.renderRow(b,f[b].cells,a));return m.createElement("table",{className:this.question.getQuestionRootCss()},m.createElement("tbody",null,h))},l.prototype.renderCell=function(a,f,h){var b,W=function(){a.item.focusIn()};return a.isErrorsCell?b=m.createElement(Fn,{question:a.item.editor,creator:this.creator}):b=m.createElement(Ws,{question:this.question,item:a.item,creator:this.creator,cssClasses:f}),m.createElement("td",{key:"item"+h,className:a.className,onFocus:W},b)},l.prototype.renderRow=function(a,f,h){for(var b="item"+a,W=[],ne=0;ne<f.length;ne++){var ue=f[ne];W.push(this.renderCell(ue,h,ne))}return m.createElement("tr",{key:b,className:h.row},W)},l}(de),Ws=function(d){ko(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this.item,f=this.cssClasses,h={};return this.question.itemTitleWidth&&(h.minWidth=this.question.itemTitleWidth,h.width=this.question.itemTitleWidth),m.createElement("label",{className:this.question.getItemLabelCss(a)},m.createElement("span",{className:f.itemTitle,style:h},m.createElement(Ne,{element:a.editor,cssClasses:a.editor.cssClasses})),m.createElement(Ra,{cssClasses:f,itemCss:this.question.getItemCss(),question:a.editor,creator:this.creator}))},l}(ve),Ra=function(d){ko(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return l.prototype.renderElement=function(){return m.createElement("div",{className:this.itemCss},this.renderContent())},l}(Bn);He.Instance.registerQuestion("multipletext",function(d){return m.createElement(wi,d)});var Xi=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),eo=function(d){Xi(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,f=this.question.cssClasses,h=null;return this.question.showClearButtonInContent&&(h=m.createElement("div",null,m.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return a.question.clearValue(!0)},value:this.question.clearButtonCaption}))),m.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(b){return a.setControl(b)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},this.question.hasColumns?this.getColumnedBody(f):this.getBody(f),this.getFooter(),this.question.isOtherSelected?this.renderOther(f):null,h)},l.prototype.getFooter=function(){var a=this;if(this.question.hasFootItems)return this.question.footItems.map(function(f,h){return a.renderItem(f,!1,a.question.cssClasses)})},l.prototype.getColumnedBody=function(a){return m.createElement("div",{className:a.rootMultiColumn},this.getColumns(a))},l.prototype.getColumns=function(a){var f=this,h=this.getStateValue();return this.question.columns.map(function(b,W){var ne=b.map(function(ue,Se){return f.renderItem(ue,h,a,""+W+Se)});return m.createElement("div",{key:"column"+W+f.question.getItemsColumnKey(b),className:f.question.getColumnClass(),role:"presentation"},ne)})},l.prototype.getBody=function(a){return this.question.blockedRow?m.createElement("div",{className:a.rootRow},this.getItems(a,this.question.dataChoices)):m.createElement(m.Fragment,null,this.getItems(a,this.question.bodyItems))},l.prototype.getItems=function(a,f){for(var h=[],b=this.getStateValue(),W=0;W<f.length;W++){var ne=f[W],ue=this.renderItem(ne,b,a,""+W);h.push(ue)}return h},Object.defineProperty(l.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),l.prototype.renderOther=function(a){return m.createElement("div",{className:this.question.getCommentAreaCss(!0)},m.createElement(_t,{question:this.question,otherCss:a.other,cssClasses:a,isDisplayMode:this.isDisplayMode}))},l.prototype.renderItem=function(a,f,h,b){var W=H.Instance.createElement(this.question.itemComponent,{key:a.value,question:this.question,cssClasses:h,isDisplayMode:this.isDisplayMode,item:a,textStyle:this.textStyle,index:b,isChecked:f===a.value}),ne=this.question.survey,ue=null;return ne&&(ue=ee.wrapItemValue(ne,W,this.question,a)),ue??W},l.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},l}(de),to=function(d){Xi(l,d);function l(a){var f=d.call(this,a)||this;return f.rootRef=m.createRef(),f.handleOnChange=f.handleOnChange.bind(f),f.handleOnMouseDown=f.handleOnMouseDown.bind(f),f}return l.prototype.getStateElement=function(){return this.item},Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hideCaption",{get:function(){return this.props.hideCaption===!0},enumerable:!1,configurable:!0}),l.prototype.shouldComponentUpdate=function(a,f){return!d.prototype.shouldComponentUpdate.call(this,a,f)||!this.question?!1:!this.question.customWidget||!!this.question.customWidgetData.isNeedRender||!!this.question.customWidget.widgetJson.isDefaultRender||!!this.question.customWidget.widgetJson.render},l.prototype.handleOnChange=function(a){this.question.clickItemHandler(this.item)},l.prototype.handleOnMouseDown=function(a){this.question.onMouseDown()},l.prototype.canRender=function(){return!!this.question&&!!this.item},l.prototype.componentDidUpdate=function(a,f){d.prototype.componentDidUpdate.call(this,a,f),a.item!==this.props.item&&!this.question.isDesignMode&&(this.props.item&&this.props.item.setRootElement(this.rootRef.current),a.item&&a.item.setRootElement(void 0))},l.prototype.renderElement=function(){var a=this.question.getItemClass(this.item),f=this.question.getLabelClass(this.item),h=this.question.getControlLabelClass(this.item),b=this.hideCaption?null:m.createElement("span",{className:h},this.renderLocString(this.item.locText,this.textStyle));return m.createElement("div",{className:a,role:"presentation",ref:this.rootRef},m.createElement("label",{onMouseDown:this.handleOnMouseDown,className:f},m.createElement("input",{"aria-errormessage":this.question.ariaErrormessage,className:this.cssClasses.itemControl,id:this.question.getItemId(this.item),type:"radio",name:this.question.questionName,checked:this.isChecked,value:this.item.value,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange}),this.cssClasses.materialDecorator?m.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?m.createElement("svg",{className:this.cssClasses.itemDecorator},m.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,b))},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},l}(ve);H.Instance.registerElement("survey-radiogroup-item",function(d){return m.createElement(to,d)}),He.Instance.registerQuestion("radiogroup",function(d){return m.createElement(eo,d)});var Ar=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Qo=function(d){Ar(l,d);function l(a){return d.call(this,a)||this}return l.prototype.renderInput=function(){var a=this,f=this.question.getControlClass(),h=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return m.createElement("div",null,this.question.inputValue);var b=this.question.getMaxLength()?m.createElement(Rt,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return m.createElement(m.Fragment,null,m.createElement("input",{id:this.question.inputId,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:f,type:this.question.inputType,ref:function(W){return a.setControl(W)},style:this.question.inputStyle,maxLength:this.question.getMaxLength(),min:this.question.renderedMin,max:this.question.renderedMax,step:this.question.renderedStep,size:this.question.inputSize,placeholder:h,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:function(W){a.question.onBlur(W)},onFocus:function(W){a.question.onFocus(W)},onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(W){return a.question.onCompositionUpdate(W.nativeEvent)},"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),b)},l.prototype.renderElement=function(){return this.question.dataListId?m.createElement("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},l.prototype.setValueCore=function(a){this.question.inputValue=a},l.prototype.getValueCore=function(){return this.question.inputValue},l.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var a=this.question.dataList;if(a.length==0)return null;for(var f=[],h=0;h<a.length;h++)f.push(m.createElement("option",{key:"item"+h,value:a[h]}));return m.createElement("datalist",{id:this.question.dataListId},f)},l}(nt);He.Instance.registerQuestion("text",function(d){return m.createElement(Qo,d)});var Ho=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),In=function(d){Ho(l,d);function l(a){var f=d.call(this,a)||this;return f.handleOnChange=f.handleOnChange.bind(f),f.handleOnClick=f.handleOnClick.bind(f),f.handleOnLabelClick=f.handleOnLabelClick.bind(f),f.handleOnSwitchClick=f.handleOnSwitchClick.bind(f),f.handleOnKeyDown=f.handleOnKeyDown.bind(f),f.checkRef=m.createRef(),f}return l.prototype.getStateElement=function(){return this.question},Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.doCheck=function(a){this.question.booleanValue=a},l.prototype.handleOnChange=function(a){this.doCheck(a.target.checked)},l.prototype.handleOnClick=function(a){this.question.onLabelClick(a,!0)},l.prototype.handleOnSwitchClick=function(a){this.question.onSwitchClickModel(a.nativeEvent)},l.prototype.handleOnLabelClick=function(a,f){this.question.onLabelClick(a,f)},l.prototype.handleOnKeyDown=function(a){this.question.onKeyDownCore(a)},l.prototype.updateDomElement=function(){if(this.question){var a=this.checkRef.current;a&&(a.indeterminate=this.question.isIndeterminate),this.setControl(a),d.prototype.updateDomElement.call(this)}},l.prototype.renderElement=function(){var a=this,f=this.question.cssClasses,h=this.question.getItemCss();return m.createElement("div",{className:f.root,onKeyDown:this.handleOnKeyDown},m.createElement("label",{className:h,onClick:this.handleOnClick},m.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:this.question.booleanValue===null?"":this.question.booleanValue,id:this.question.inputId,className:f.control,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),m.createElement("div",{className:f.sliderGhost,onClick:function(b){return a.handleOnLabelClick(b,a.question.swapOrder)}},m.createElement("span",{className:this.question.getLabelCss(this.question.swapOrder)},this.renderLocString(this.question.locLabelLeft))),m.createElement("div",{className:f.switch,onClick:this.handleOnSwitchClick},m.createElement("span",{className:f.slider},this.question.isDeterminated&&f.sliderText?m.createElement("span",{className:f.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),m.createElement("div",{className:f.sliderGhost,onClick:function(b){return a.handleOnLabelClick(b,!a.question.swapOrder)}},m.createElement("span",{className:this.question.getLabelCss(!this.question.swapOrder)},this.renderLocString(this.question.locLabelRight)))))},l}(de);He.Instance.registerQuestion("boolean",function(d){return m.createElement(In,d)});var zo=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Uo=function(d){zo(l,d);function l(a){return d.call(this,a)||this}return l.prototype.renderElement=function(){var a=this.question.cssClasses,f=this.question.getCheckboxItemCss(),h=this.question.canRenderLabelDescription?se.renderQuestionDescription(this.question):null;return m.createElement("div",{className:a.rootCheckbox},m.createElement("div",{className:f},m.createElement("label",{className:a.checkboxLabel},m.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:this.question.booleanValue===null?"":this.question.booleanValue,id:this.question.inputId,className:a.controlCheckbox,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),m.createElement("span",{className:a.checkboxMaterialDecorator},this.question.svgIcon?m.createElement("svg",{className:a.checkboxItemDecorator},m.createElement("use",{xlinkHref:this.question.svgIcon})):null,m.createElement("span",{className:"check"})),this.question.isLabelRendered&&m.createElement("span",{className:a.checkboxControlLabel,id:this.question.labelRenderedAriaID},m.createElement(ct,{element:this.question,cssClasses:this.question.cssClasses}))),h))},l}(In);He.Instance.registerQuestion("sv-boolean-checkbox",function(d){return m.createElement(Uo,d)}),O.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox");var sn=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Aa=function(d){sn(l,d);function l(a){var f=d.call(this,a)||this;return f.handleOnChange=function(h){f.question.booleanValue=h.nativeEvent.target.value=="true"},f}return l.prototype.renderRadioItem=function(a,f){var h=this.question.cssClasses;return m.createElement("div",{role:"presentation",className:this.question.getRadioItemClass(h,a)},m.createElement("label",{className:h.radioLabel},m.createElement("input",{type:"radio",name:this.question.name,value:a,"aria-errormessage":this.question.ariaErrormessage,checked:a===this.question.booleanValueRendered,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:h.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?m.createElement("span",{className:h.materialRadioDecorator},this.question.itemSvgIcon?m.createElement("svg",{className:h.itemRadioDecorator},m.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,m.createElement("span",{className:h.radioControlLabel},this.renderLocString(f))))},l.prototype.renderElement=function(){var a=this.question.cssClasses;return m.createElement("div",{className:a.rootRadio},m.createElement("fieldset",{role:"presentation",className:a.radioFieldset},this.question.swapOrder?m.createElement(m.Fragment,null,this.renderRadioItem(!0,this.question.locLabelTrue),this.renderRadioItem(!1,this.question.locLabelFalse)):m.createElement(m.Fragment,null,this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue))))},l}(In);He.Instance.registerQuestion("sv-boolean-radio",function(d){return m.createElement(Aa,d)}),O.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio");var ut=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Et=function(d){ut(l,d);function l(a){var f=d.call(this,a)||this;return f.state={value:f.question.value},f}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){return m.createElement("div",null)},l}(de);He.Instance.registerQuestion("empty",function(d){return m.createElement(Et,d)});var Da=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Jr=function(d){Da(l,d);function l(a){var f=d.call(this,a)||this;return f.root=A.a.createRef(),f.onPointerDownHandler=function(h){f.parentMatrix.onPointerDown(h.nativeEvent,f.model.row)},f}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.model},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.root.current&&this.model.setRootElement(this.root.current)},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.model.setRootElement(void 0)},l.prototype.shouldComponentUpdate=function(a,f){return d.prototype.shouldComponentUpdate.call(this,a,f)?(a.model!==this.model&&(a.element&&a.element.setRootElement(this.root.current),this.model&&this.model.setRootElement(void 0)),!0):!1},l.prototype.render=function(){var a=this,f=this.model;return f.visible?A.a.createElement("tr",{ref:this.root,className:f.className,"data-sv-drop-target-matrix-row":f.row&&f.row.id,onPointerDown:function(h){return a.onPointerDownHandler(h)}},this.props.children):null},l}(se);H.Instance.registerElement("sv-matrix-row",function(d){return A.a.createElement(Jr,d)});var no=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Wo=function(d){no(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){return A.a.createElement("div",null,this.renderIcon())},l.prototype.renderIcon=function(){return this.question.iconDragElement?A.a.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},A.a.createElement("use",{xlinkHref:this.question.iconDragElement})):A.a.createElement("span",{className:this.question.cssClasses.iconDrag})},l}(ve);H.Instance.registerElement("sv-matrix-drag-drop-icon",function(d){return A.a.createElement(Wo,d)});var Pi=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),ro=function(d){Pi(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"table",{get:function(){return this.question.renderedTable},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.table},l.prototype.wrapCell=function(a,f,h){return this.props.wrapCell(a,f,h)},l.prototype.renderHeader=function(){var a=this.question.renderedTable;if(!a.showHeader)return null;for(var f=[],h=a.headerRow.cells,b=0;b<h.length;b++){var W=h[b],ne="column"+b,ue={};W.width&&(ue.width=W.width),W.minWidth&&(ue.minWidth=W.minWidth);var Se=this.renderCellContent(W,"column-header",{}),Fe=W.hasTitle?m.createElement("th",{className:W.className,key:ne,style:ue}," ",Se," "):m.createElement("td",{className:W.className,key:ne,style:ue});f.push(Fe)}return m.createElement("thead",null,m.createElement("tr",null,f))},l.prototype.renderFooter=function(){var a=this.question.renderedTable;if(!a.showFooter)return null;var f=this.renderRow("footer",a.footerRow,this.question.cssClasses,"row-footer");return m.createElement("tfoot",null,f)},l.prototype.renderRows=function(){for(var a=this.question.cssClasses,f=[],h=this.question.renderedTable.renderedRows,b=0;b<h.length;b++)f.push(this.renderRow(h[b].id,h[b],a));return m.createElement("tbody",null,f)},l.prototype.renderRow=function(a,f,h,b){for(var W=[],ne=f.cells,ue=0;ue<ne.length;ue++)W.push(this.renderCell(ne[ue],h,b));var Se="row"+a;return m.createElement(m.Fragment,{key:Se},b=="row-footer"?m.createElement("tr",null,W):m.createElement(Jr,{model:f,parentMatrix:this.question},W))},l.prototype.renderCell=function(a,f,h){var b="cell"+a.id;if(a.hasQuestion)return m.createElement(Dr,{key:b,cssClasses:f,cell:a,creator:this.creator,reason:h});if(a.isErrorsCell&&a.isErrorsCell)return m.createElement(Jt,{cell:a,key:b,keyValue:b,question:a.question,creator:this.creator});var W=h;W||(W=a.hasTitle?"row-header":"");var ne=this.renderCellContent(a,W,f),ue=null;return(a.width||a.minWidth)&&(ue={},a.width&&(ue.width=a.width),a.minWidth&&(ue.minWidth=a.minWidth)),m.createElement("td",{className:a.className,key:b,style:ue,colSpan:a.colSpans,title:a.getTitle()},ne)},l.prototype.renderCellContent=function(a,f,h){var b=null,W=null;if((a.width||a.minWidth)&&(W={},a.width&&(W.width=a.width),a.minWidth&&(W.minWidth=a.minWidth)),a.hasTitle){f="row-header";var ne=this.renderLocString(a.locTitle),ue=a.column?m.createElement(Vi,{column:a.column,question:this.question}):null;b=m.createElement(m.Fragment,null,ne,ue)}if(a.isDragHandlerCell&&(b=m.createElement(m.Fragment,null,m.createElement(Wo,{item:{data:{row:a.row,question:this.question}}}))),a.isActionsCell&&(b=H.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:h,cell:a,model:a.item.getData()})),a.hasPanel&&(b=m.createElement(fn,{key:a.panel.id,element:a.panel,survey:this.question.survey,cssClasses:h,isDisplayMode:this.isDisplayMode,creator:this.creator})),!b)return null;var Se=m.createElement(m.Fragment,null,b);return this.wrapCell(a,Se,f)},l.prototype.renderElement=function(){var a=this.renderHeader(),f=this.renderFooter(),h=this.renderRows();return m.createElement("table",{className:this.question.getTableCss()},a,h,f)},l}(se),xi=function(d){Pi(l,d);function l(a){var f=d.call(this,a)||this;return f.question.renderedTable,f.state=f.getState(),f}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.getState=function(a){return a===void 0&&(a=null),{rowCounter:a?a.rowCounter+1:0}},l.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},l.prototype.componentDidMount=function(){var a=this;d.prototype.componentDidMount.call(this),this.question.onRenderedTableResetCallback=function(){a.updateStateOnCallback()}},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.question.onRenderedTableResetCallback=function(){}},l.prototype.renderElement=function(){return this.renderTableDiv()},l.prototype.renderTableDiv=function(){var a=this,f=this.question.showHorizontalScroll?{overflowX:"scroll"}:{};return m.createElement("div",{style:f,className:this.question.cssClasses.tableWrapper,ref:function(h){return a.setControl(h)}},m.createElement(ro,{question:this.question,creator:this.creator,wrapCell:function(h,b,W){return a.wrapCell(h,b,W)}}))},l}(de),Yu=function(d){Pi(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){return m.createElement(ke,{model:this.model,handleClick:!1})},l}(ve),Jt=function(d){Pi(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"key",{get:function(){return this.props.keyValue},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),l.prototype.render=function(){return this.cell.isVisible?m.createElement("td",{className:this.cell.className,key:this.key,colSpan:this.cell.colSpans,title:this.cell.getTitle()},d.prototype.render.call(this)):null},l.prototype.getQuestionPropertiesToTrack=function(){return d.prototype.getQuestionPropertiesToTrack.call(this).concat(["visible"])},l}(Fn);H.Instance.registerElement("sv-matrixdynamic-actions-cell",function(d){return m.createElement(Yu,d)});var Vi=function(d){Pi(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.column},l.prototype.renderElement=function(){return this.column.isRenderedRequired?m.createElement(m.Fragment,null,m.createElement("span",null," "),m.createElement("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},l}(ve),Dr=function(d){Pi(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),l.prototype.getQuestion=function(){var a=d.prototype.getQuestion.call(this);return a||(this.cell?this.cell.question:null)},l.prototype.doAfterRender=function(){var a=this.cellRef.current;if(a&&this.cell&&this.question&&this.question.survey&&a.getAttribute("data-rendered")!=="r"){a.setAttribute("data-rendered","r");var f={cell:this.cell,cellQuestion:this.question,htmlElement:a,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,f),this.question.afterRenderCore(a)}},l.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},l.prototype.getCellStyle=function(){var a=d.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(a||(a={}),this.cell.width&&(a.width=this.cell.width),this.cell.minWidth&&(a.minWidth=this.cell.minWidth)),a},l.prototype.getHeaderText=function(){return this.cell.headers},l.prototype.renderElement=function(){return this.cell.isVisible?d.prototype.renderElement.call(this):null},l.prototype.renderCellContent=function(){var a=d.prototype.renderCellContent.call(this),f=this.cell.showResponsiveTitle?m.createElement("span",{className:this.cell.responsiveTitleCss},this.renderLocString(this.cell.responsiveLocTitle),m.createElement(Vi,{column:this.cell.column,question:this.cell.matrix})):null;return m.createElement(m.Fragment,null,f,a)},l.prototype.renderQuestion=function(){return this.question.isVisible?this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():cn.renderQuestionBody(this.creator,this.question):m.createElement(m.Fragment,null)},l.prototype.renderOtherComment=function(){var a=this.cell.question,f=a.cssClasses||{};return m.createElement(_t,{question:a,cssClasses:f,otherCss:f.other,isDisplayMode:a.isInputReadOnly})},l.prototype.renderCellCheckboxButton=function(){var a=this.cell.question.id+"item"+this.cell.choiceIndex;return m.createElement(Ms,{key:a,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,isFirst:this.cell.isFirstChoice,index:this.cell.choiceIndex.toString(),hideCaption:!0})},l.prototype.renderCellRadiogroupButton=function(){var a=this.cell.question.id+"item"+this.cell.choiceIndex;return m.createElement(to,{key:a,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,index:this.cell.choiceIndex.toString(),isChecked:this.cell.question.value===this.cell.item.value,isDisabled:this.cell.question.isReadOnly||!this.cell.item.isEnabled,hideCaption:!0})},l}(Hr),$o=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Go=function(d){$o(l,d);function l(a){return d.call(this,a)||this}return l}(xi);He.Instance.registerQuestion("matrixdropdown",function(d){return m.createElement(Go,d)});var yn=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Jo=function(d){yn(l,d);function l(a){var f=d.call(this,a)||this;return f.handleOnRowAddClick=f.handleOnRowAddClick.bind(f),f}return Object.defineProperty(l.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.handleOnRowAddClick=function(a){this.matrix.addRowUI()},l.prototype.renderElement=function(){var a=this.question.cssClasses,f=this.question.renderedTable.showTable,h=f?this.renderTableDiv():this.renderNoRowsContent(a);return m.createElement("div",null,this.renderAddRowButtonOnTop(a),h,this.renderAddRowButtonOnBottom(a))},l.prototype.renderAddRowButtonOnTop=function(a){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(a):null},l.prototype.renderAddRowButtonOnBottom=function(a){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(a):null},l.prototype.renderNoRowsContent=function(a){var f=this.renderLocString(this.matrix.locEmptyRowsText),h=m.createElement("div",{className:a.emptyRowsText},f),b=this.matrix.renderedTable.showAddRow?this.renderAddRowButton(a,!0):void 0;return m.createElement("div",{className:a.emptyRowsSection},h,b)},l.prototype.renderAddRowButton=function(a,f){return f===void 0&&(f=!1),H.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:a,isEmptySection:f})},l}(xi);He.Instance.registerQuestion("matrixdynamic",function(d){return m.createElement(Jo,d)});var io=function(d){yn(l,d);function l(a){var f=d.call(this,a)||this;return f.handleOnRowAddClick=f.handleOnRowAddClick.bind(f),f}return Object.defineProperty(l.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.handleOnRowAddClick=function(a){this.matrix.addRowUI()},l.prototype.renderElement=function(){var a=this.renderLocString(this.matrix.locAddRowText),f=m.createElement("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},a,m.createElement("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?f:m.createElement("div",{className:this.props.cssClasses.footer},f)},l}(ve);H.Instance.registerElement("sv-matrixdynamic-add-btn",function(d){return m.createElement(io,d)});var $s=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Si=function(d){$s(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),l}(ve),Gs=function(d){$s(l,d);function l(){var a=d!==null&&d.apply(this,arguments)||this;return a.handleClick=function(f){a.question.addPanelUI()},a}return l.prototype.renderElement=function(){if(!this.question.canAddPanel)return null;var a=this.renderLocString(this.question.locPanelAddText);return A.a.createElement("button",{type:"button",id:this.question.addButtonId,className:this.question.getAddButtonCss(),onClick:this.handleClick},A.a.createElement("span",{className:this.question.cssClasses.buttonAddText},a))},l}(Si);H.Instance.registerElement("sv-paneldynamic-add-btn",function(d){return A.a.createElement(Gs,d)});var La=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Ut=function(d){La(l,d);function l(){var a=d!==null&&d.apply(this,arguments)||this;return a.handleClick=function(f){a.question.goToNextPanel()},a}return l.prototype.renderElement=function(){return A.a.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},A.a.createElement(De,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},l}(Si);H.Instance.registerElement("sv-paneldynamic-next-btn",function(d){return A.a.createElement(Ut,d)});var Zo=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),dn=function(d){Zo(l,d);function l(){var a=d!==null&&d.apply(this,arguments)||this;return a.handleClick=function(f){a.question.goToPrevPanel()},a}return l.prototype.renderElement=function(){return A.a.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},A.a.createElement(De,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},l}(Si);H.Instance.registerElement("sv-paneldynamic-prev-btn",function(d){return A.a.createElement(dn,d)});var Ma=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),oo=function(d){Ma(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return l.prototype.renderElement=function(){return A.a.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},l}(Si);H.Instance.registerElement("sv-paneldynamic-progress-text",function(d){return A.a.createElement(oo,d)});var gr=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Zr=function(d){gr(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var a=this;this.question.panelCountChangedCallback=function(){a.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){a.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){a.updateQuestionRendering()}},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},l.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},l.prototype.renderElement=function(){var a=this,f=[];this.question.renderedPanels.forEach(function(Se,Fe){f.push(m.createElement(Js,{key:Se.id,element:Se,question:a.question,index:Fe,cssClasses:a.question.cssClasses,isDisplayMode:a.isDisplayMode,creator:a.creator}))});var h=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,b=this.question.isProgressTopShowing?this.renderNavigator():null,W=this.question.isProgressBottomShowing?this.renderNavigator():null,ne=this.renderNavigatorV2(),ue=this.renderPlaceholder();return m.createElement("div",{className:this.question.cssClasses.root},ue,b,m.createElement("div",{className:this.question.cssClasses.panelsContainer},f),W,h,ne)},l.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)return this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null;var a=this.question.isRangeShowing?this.renderRange():null,f=this.rendrerPrevButton(),h=this.rendrerNextButton(),b=this.renderAddRowButton(),W=this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom;return m.createElement("div",{className:W},m.createElement("div",{style:{clear:"both"}},m.createElement("div",{className:this.question.cssClasses.progressContainer},f,a,h),b,this.renderProgressText()))},l.prototype.renderProgressText=function(){return m.createElement(oo,{data:{question:this.question}})},l.prototype.rendrerPrevButton=function(){return m.createElement(dn,{data:{question:this.question}})},l.prototype.rendrerNextButton=function(){return m.createElement(Ut,{data:{question:this.question}})},l.prototype.renderRange=function(){return m.createElement("div",{className:this.question.cssClasses.progress},m.createElement("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},l.prototype.renderAddRowButton=function(){return H.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},l.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var a=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return m.createElement("div",{className:this.question.cssClasses.footer},m.createElement("hr",{className:this.question.cssClasses.separator}),a,this.question.footerToolbar.visibleActions.length?m.createElement("div",{className:this.question.cssClasses.footerButtonsContainer},m.createElement(ke,{model:this.question.footerToolbar})):null)},l.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?m.createElement("div",{className:this.question.cssClasses.noEntriesPlaceholder},m.createElement("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},l}(de),Js=function(d){gr(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),l.prototype.getSurvey=function(){return this.question?this.question.survey:null},l.prototype.getCss=function(){var a=this.getSurvey();return a?a.getCss():{}},l.prototype.render=function(){var a=d.prototype.render.call(this),f=this.renderButton(),h=this.question.showSeparator(this.index)?m.createElement("hr",{className:this.question.cssClasses.separator}):null;return m.createElement(m.Fragment,null,m.createElement("div",{className:this.question.getPanelWrapperCss(this.panel)},a,f),h)},l.prototype.renderButton=function(){return this.question.panelRemoveButtonLocation!=="right"||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:H.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},l}(fn);He.Instance.registerQuestion("paneldynamic",function(d){return m.createElement(Zr,d)});var jt=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),kt=function(d){jt(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),l.prototype.render=function(){var a={width:this.progress+"%"};return m.createElement("div",{className:this.survey.getProgressCssClasses(this.props.container)},m.createElement("div",{style:a,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},m.createElement("span",{className:O.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),m.createElement("span",{className:O.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},l}($r);H.Instance.registerElement("sv-progress-pages",function(d){return m.createElement(kt,d)}),H.Instance.registerElement("sv-progress-questions",function(d){return m.createElement(kt,d)}),H.Instance.registerElement("sv-progress-correctquestions",function(d){return m.createElement(kt,d)}),H.Instance.registerElement("sv-progress-requiredquestions",function(d){return m.createElement(kt,d)});var so=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Ko=function(d){so(l,d);function l(a){var f=d.call(this,a)||this;return f.listContainerRef=m.createRef(),f}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"container",{get:function(){return this.props.container},enumerable:!1,configurable:!0}),l.prototype.onResize=function(a){this.setState({canShowItemTitles:a}),this.setState({canShowHeader:!a})},l.prototype.onUpdateScroller=function(a){this.setState({hasScroller:a})},l.prototype.onUpdateSettings=function(){this.setState({canShowItemTitles:this.model.showItemTitles}),this.setState({canShowFooter:!this.model.showItemTitles})},l.prototype.render=function(){var a=this;return m.createElement("div",{className:this.model.getRootCss(this.props.container),style:{maxWidth:this.model.progressWidth},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},this.state.canShowHeader?m.createElement("div",{className:this.css.progressButtonsHeader},m.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.headerText},this.model.headerText)):null,m.createElement("div",{className:this.css.progressButtonsContainer},m.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!0),role:"button",onClick:function(){return a.clickScrollButton(a.listContainerRef.current,!0)}}),m.createElement("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},m.createElement("ul",{className:this.css.progressButtonsList},this.getListElements())),m.createElement("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!1),role:"button",onClick:function(){return a.clickScrollButton(a.listContainerRef.current,!1)}})),this.state.canShowFooter?m.createElement("div",{className:this.css.progressButtonsFooter},m.createElement("div",{className:this.css.progressButtonsPageTitle,title:this.model.footerText},this.model.footerText)):null)},l.prototype.getListElements=function(){var a=this,f=[];return this.survey.visiblePages.forEach(function(h,b){f.push(a.renderListElement(h,b))}),f},l.prototype.renderListElement=function(a,f){var h=this,b=se.renderLocString(a.locNavigationTitle);return m.createElement("li",{key:"listelement"+f,className:this.model.getListElementCss(f),onClick:this.model.isListElementClickable(f)?function(){return h.model.clickListElement(a)}:void 0,"data-page-number":this.model.getItemNumber(a)},m.createElement("div",{className:this.css.progressButtonsConnector}),this.state.canShowItemTitles?m.createElement(m.Fragment,null,m.createElement("div",{className:this.css.progressButtonsPageTitle,title:a.renderedNavigationTitle},b),m.createElement("div",{className:this.css.progressButtonsPageDescription,title:a.navigationDescription},a.navigationDescription)):null,m.createElement("div",{className:this.css.progressButtonsButton},m.createElement("div",{className:this.css.progressButtonsButtonBackground}),m.createElement("div",{className:this.css.progressButtonsButtonContent}),m.createElement("span",null,this.model.getItemNumber(a))))},l.prototype.clickScrollButton=function(a,f){a&&(a.scrollLeft+=(f?-1:1)*70)},l.prototype.componentDidMount=function(){var a=this;d.prototype.componentDidMount.call(this),setTimeout(function(){a.respManager=new O.ProgressButtonsResponsivityManager(a.model,a.listContainerRef.current,a)},10)},l.prototype.componentWillUnmount=function(){this.respManager&&this.respManager.dispose(),d.prototype.componentWillUnmount.call(this)},l}($r);H.Instance.registerElement("sv-progress-buttons",function(d){return m.createElement(Ko,d)});var Zs=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),_a=function(d){Zs(l,d);function l(){var a=d!==null&&d.apply(this,arguments)||this;return a.handleKeydown=function(f){a.model.onKeyDown(f)},a}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.render=function(){var a=this;if(!this.item)return null;var f=this.model.getItemClass(this.item),h=this.item.component||this.model.itemComponent,b=H.Instance.createElement(h,{item:this.item,key:this.item.id,model:this.model}),W=A.a.createElement("div",{style:this.model.getItemStyle(this.item),className:this.model.cssClasses.itemBody,title:this.item.getTooltip(),onMouseOver:function(Fe){a.model.onItemHover(a.item)},onMouseLeave:function(Fe){a.model.onItemLeave(a.item)}},b),ne=this.item.needSeparator?A.a.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,ue=this.model.isItemVisible(this.item),Se={display:ue?null:"none"};return Wi(A.a.createElement("li",{className:f,role:"option",style:Se,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(Fe){a.model.onItemClick(a.item),Fe.stopPropagation()},onPointerDown:function(Fe){return a.model.onPointerDown(Fe,a.item)}},ne,W),this.item)},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},l}(se);H.Instance.registerElement("sv-list-item",function(d){return A.a.createElement(_a,d)});var Ei=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),ao=function(d){Ei(l,d);function l(a){var f=d.call(this,a)||this;return f.handleKeydown=function(h){f.model.onKeyDown(h)},f.handleMouseMove=function(h){f.model.onMouseMove(h)},f.state={filterString:f.model.filterString||""},f.listContainerRef=A.a.createRef(),f}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.model},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},l.prototype.componentDidUpdate=function(a,f){var h;d.prototype.componentDidUpdate.call(this,a,f),this.model!==a.model&&(this.model&&(!((h=this.listContainerRef)===null||h===void 0)&&h.current)&&this.model.initListContainerHtmlElement(this.listContainerRef.current),a.model&&a.model.initListContainerHtmlElement(void 0))},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.model&&this.model.initListContainerHtmlElement(void 0)},l.prototype.renderElement=function(){return A.a.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},l.prototype.renderList=function(){if(!this.model.renderElements)return null;var a=this.renderItems(),f={display:this.model.isEmpty?"none":null};return A.a.createElement("ul",{className:this.model.getListClass(),style:f,role:"listbox",id:this.model.elementId,onMouseDown:function(h){h.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},a)},l.prototype.renderItems=function(){var a=this;if(!this.model)return null;var f=this.model.renderedActions;return f?f.map(function(h,b){return A.a.createElement(_a,{model:a.model,item:h,key:"item"+b})}):null},l.prototype.searchElementContent=function(){var a=this;if(this.model.showFilter){var f=function(W){var ne=O.settings.environment.root;W.target===ne.activeElement&&(a.model.filterString=W.target.value)},h=function(W){a.model.goToItems(W)},b=this.model.showSearchClearButton&&this.model.filterString?A.a.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(W){a.model.onClickSearchClearButton(W)}},A.a.createElement(De,{iconName:"icon-searchclear",size:"auto"})):null;return A.a.createElement("div",{className:this.model.cssClasses.filter},A.a.createElement("div",{className:this.model.cssClasses.filterIcon},A.a.createElement(De,{iconName:"icon-search",size:"auto"})),A.a.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:h,onChange:f}),b)}else return null},l.prototype.emptyContent=function(){var a={display:this.model.isEmpty?null:"none"};return A.a.createElement("div",{className:this.model.cssClasses.emptyContainer,style:a},A.a.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},l}(se);H.Instance.registerElement("sv-list",function(d){return A.a.createElement(ao,d)});var ja=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),uo=function(d){ja(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return l.prototype.render=function(){var a=this.props.model,f;return a.isMobile?f=m.createElement("div",{onClick:a.togglePopup},m.createElement(De,{iconName:a.icon,size:24}),m.createElement(st,{model:a.popupModel})):f=m.createElement(ao,{model:a.listModel}),m.createElement("div",{className:a.containerCss},f)},l}($r);H.Instance.registerElement("sv-navigation-toc",function(d){return m.createElement(uo,d)});var Kr=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Na=function(d){Kr(l,d);function l(a){var f=d.call(this,a)||this;return f.handleOnClick=f.handleOnClick.bind(f),f}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.handleOnClick=function(a){this.question.setValueFromClick(a.target.value),this.setState({value:this.question.value})},l.prototype.renderItem=function(a,f){var h=H.Instance.createElement(this.question.itemComponent,{question:this.question,item:a,index:f,key:"value"+f,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode});return h},l.prototype.renderElement=function(){var a=this,f=this.question.cssClasses,h=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,b=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return m.createElement("div",{className:this.question.ratingRootCss,ref:function(W){return a.setControl(W)}},m.createElement("fieldset",{role:"radiogroup"},m.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?m.createElement("span",{className:f.minText},h):null,this.question.renderedRateItems.map(function(W,ne){return a.renderItem(W,ne)}),this.question.hasMaxLabel?m.createElement("span",{className:f.maxText},b):null))},l}(de);He.Instance.registerQuestion("rating",function(d){return m.createElement(Na,d)});var qa=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Yr=function(d){qa(l,d);function l(a){return d.call(this,a)||this}return l.prototype.renderElement=function(){var a=this.question.cssClasses,f=this.renderSelect(a);return m.createElement("div",{className:this.question.cssClasses.rootDropdown},f)},l}(qo);He.Instance.registerQuestion("sv-rating-dropdown",function(d){return m.createElement(Yr,d)}),O.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown");var Ln=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),hn=function(d){Ln(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,f=this.question.cssClasses;return m.createElement("div",{id:this.question.inputId,className:f.root,ref:function(h){return a.setControl(h)}},this.question.formatedValue)},l}(de);He.Instance.registerQuestion("expression",function(d){return m.createElement(hn,d)});var Ks=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),lo=function(d){Ks(l,d);function l(a){var f=d.call(this,a)||this;return f.handleOnExpanded=f.handleOnExpanded.bind(f),f}return l.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},l.prototype.handleOnExpanded=function(a){this.popup.changeExpandCollapse()},l.prototype.canRender=function(){return d.prototype.canRender.call(this)&&this.popup.isShowing},l.prototype.renderElement=function(){var a=this,f=this.renderWindowHeader(),h=this.renderBody(),b={};return this.popup.renderedWidth&&(b.width=this.popup.renderedWidth,b.maxWidth=this.popup.renderedWidth),m.createElement("div",{className:this.popup.cssRoot,style:b,onScroll:function(){return a.popup.onScroll()}},m.createElement("div",{className:this.popup.cssRootContent},f,h))},l.prototype.renderWindowHeader=function(){var a=this.popup,f=a.cssHeaderRoot,h=null,b,W=null,ne=null;return a.isCollapsed?(f+=" "+a.cssRootCollapsedMod,h=this.renderTitleCollapsed(a),b=this.renderExpandIcon()):b=this.renderCollapseIcon(),a.allowClose&&(W=this.renderCloseButton(this.popup)),a.allowFullScreen&&(ne=this.renderAllowFullScreenButon(this.popup)),m.createElement("div",{className:a.cssHeaderRoot},h,m.createElement("div",{className:a.cssHeaderButtonsContainer},ne,m.createElement("div",{className:a.cssHeaderCollapseButton,onClick:this.handleOnExpanded},b),W))},l.prototype.renderTitleCollapsed=function(a){return a.locTitle?m.createElement("div",{className:a.cssHeaderTitleCollapsed},a.locTitle.renderedHtml):null},l.prototype.renderExpandIcon=function(){return m.createElement(De,{iconName:"icon-restore_16x16",size:16})},l.prototype.renderCollapseIcon=function(){return m.createElement(De,{iconName:"icon-minimize_16x16",size:16})},l.prototype.renderCloseButton=function(a){var f=this;return m.createElement("div",{className:a.cssHeaderCloseButton,onClick:function(){a.hide(),typeof f.props.onClose=="function"&&f.props.onClose()}},m.createElement(De,{iconName:"icon-close_16x16",size:16}))},l.prototype.renderAllowFullScreenButon=function(a){var f;return a.isFullScreen?f=m.createElement(De,{iconName:"icon-back-to-panel_16x16",size:16}):f=m.createElement(De,{iconName:"icon-full-screen_16x16",size:16}),m.createElement("div",{className:a.cssHeaderFullScreenButton,onClick:function(){a.toggleFullScreen()}},f)},l.prototype.renderBody=function(){return m.createElement("div",{className:this.popup.cssBody},this.doRender())},l.prototype.createSurvey=function(a){a||(a={}),d.prototype.createSurvey.call(this,a),this.popup=new O.PopupSurveyModel(null,this.survey),a.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=a.closeOnCompleteTimeout),this.popup.allowClose=a.allowClose,this.popup.allowFullScreen=a.allowFullScreen,this.popup.isShowing=!0,!this.popup.isExpanded&&(a.expanded||a.isExpanded)&&this.popup.expand()},l}(pr),Ys=function(d){Ks(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return l}(lo),Yo=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),z=function(d){Yo(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this.question.cssClasses;return m.createElement("fieldset",{className:this.question.getSelectBaseRootCss()},m.createElement("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.question.hasColumns?this.getColumns(a):this.getItems(a))},l.prototype.getColumns=function(a){var f=this;return this.question.columns.map(function(h,b){var W=h.map(function(ne,ue){return f.renderItem("item"+ue,ne,a)});return m.createElement("div",{key:"column"+b+f.question.getItemsColumnKey(h),className:f.question.getColumnClass(),role:"presentation"},W)})},l.prototype.getItems=function(a){for(var f=[],h=0;h<this.question.visibleChoices.length;h++){var b=this.question.visibleChoices[h],W="item"+h;f.push(this.renderItem(W,b,a))}return f},Object.defineProperty(l.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),l.prototype.renderItem=function(a,f,h){var b=m.createElement(vn,{key:a,question:this.question,item:f,cssClasses:h}),W=this.question.survey,ne=null;return W&&(ne=ee.wrapItemValue(W,b,this.question,f)),ne??b},l}(de),vn=function(d){Yo(l,d);function l(a){var f=d.call(this,a)||this;return f.handleOnChange=f.handleOnChange.bind(f),f}return l.prototype.getStateElement=function(){return this.item},l.prototype.componentDidMount=function(){d.prototype.componentDidMount.call(this),this.reactOnStrChanged()},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},l.prototype.componentDidUpdate=function(a,f){d.prototype.componentDidUpdate.call(this,a,f),this.reactOnStrChanged()},l.prototype.reactOnStrChanged=function(){var a=this;this.item.locImageLink.onChanged=function(){a.setState({locImageLinkchanged:a.state&&a.state.locImageLink?a.state.locImageLink+1:1})}},Object.defineProperty(l.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),l.prototype.handleOnChange=function(a){if(!this.question.isReadOnlyAttr){if(this.question.multiSelect)if(a.target.checked)this.question.value=this.question.value.concat(a.target.value);else{var f=this.question.value;f.splice(this.question.value.indexOf(a.target.value),1),this.question.value=f}else this.question.value=a.target.value;this.setState({value:this.question.value})}},l.prototype.renderElement=function(){var a=this,f=this.item,h=this.question,b=this.cssClasses,W=h.isItemSelected(f),ne=h.getItemClass(f),ue=null;h.showLabel&&(ue=m.createElement("span",{className:h.cssClasses.itemText},f.text?se.renderLocString(f.locText):f.value));var Se={objectFit:this.question.imageFit},Fe=null;if(f.locImageLink.renderedHtml&&this.question.contentMode==="image"&&(Fe=m.createElement("img",{className:b.image,src:f.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:f.locText.renderedHtml,style:Se,onLoad:function(Cn){a.question.onContentLoaded(f,Cn.nativeEvent)},onError:function(Cn){f.onErrorHandler(f,Cn.nativeEvent)}})),f.locImageLink.renderedHtml&&this.question.contentMode==="video"&&(Fe=m.createElement("video",{controls:!0,className:b.image,src:f.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:Se,onLoadedMetadata:function(Cn){a.question.onContentLoaded(f,Cn.nativeEvent)},onError:function(Cn){f.onErrorHandler(f,Cn.nativeEvent)}})),!f.locImageLink.renderedHtml||f.contentNotLoaded){var vt={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};Fe=m.createElement("div",{className:b.itemNoImage,style:vt},b.itemNoImageSvgIcon?m.createElement(De,{className:b.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}var Pn=m.createElement("div",{className:ne},m.createElement("label",{className:b.label},m.createElement("input",{className:b.itemControl,id:this.question.getItemId(f),type:this.question.inputType,name:this.question.questionName,checked:W,value:f.value,disabled:!this.question.getItemEnabled(f),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),m.createElement("div",{className:this.question.cssClasses.itemDecorator},m.createElement("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?m.createElement("span",{className:this.question.cssClasses.checkedItemDecorator,"aria-hidden":"true"},this.question.cssClasses.checkedItemSvgIconId?m.createElement(De,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,Fe),ue)));return Pn},l}(ve);He.Instance.registerQuestion("imagepicker",function(d){return m.createElement(z,d)});var Nt=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),co=function(d){Nt(l,d);function l(a){return d.call(this,a)||this}return l.prototype.componentDidMount=function(){var a=this;d.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){a.forceUpdate()}},l.prototype.componentWillUnmount=function(){d.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,f=this.question.getImageCss(),h={objectFit:this.question.imageFit,width:this.question.renderedStyleWidth,height:this.question.renderedStyleHeight};(!this.question.imageLink||this.question.contentNotLoaded)&&(h.display="none");var b=null;this.question.renderedMode==="image"&&(b=m.createElement("img",{className:f,src:this.question.locImageLink.renderedHtml||null,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:h,onLoad:function(ne){a.question.onLoadHandler()},onError:function(ne){a.question.onErrorHandler()}})),this.question.renderedMode==="video"&&(b=m.createElement("video",{controls:!0,className:f,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:h,onLoadedMetadata:function(ne){a.question.onLoadHandler()},onError:function(ne){a.question.onErrorHandler()}})),this.question.renderedMode==="youtube"&&(b=m.createElement("iframe",{className:f,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:h}));var W=null;return(!this.question.imageLink||this.question.contentNotLoaded)&&(W=m.createElement("div",{className:this.question.cssClasses.noImage},m.createElement(De,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),m.createElement("div",{className:this.question.cssClasses.root},b,W)},l}(de);He.Instance.registerQuestion("image",function(d){return m.createElement(co,d)});var Oi=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Xo=function(d){Oi(l,d);function l(a){var f=d.call(this,a)||this;return f.state={value:f.question.value},f}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.renderElement=function(){var a=this,f=this.question.cssClasses,h=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,b=this.renderCleanButton();return m.createElement("div",{className:f.root,ref:function(W){return a.setControl(W)},style:{width:this.question.renderedCanvasWidth}},m.createElement("div",{className:f.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.renderLocString(this.question.locRenderedPlaceholder)),m.createElement("div",null,this.renderBackgroundImage(),m.createElement("canvas",{tabIndex:-1,className:this.question.cssClasses.canvas,onBlur:function(W){a.question.onBlur(W)}})),b,h)},l.prototype.renderBackgroundImage=function(){return this.question.backgroundImage?m.createElement("img",{className:this.question.cssClasses.backgroundImage,src:this.question.backgroundImage,style:{width:this.question.renderedCanvasWidth}}):null},l.prototype.renderLoadingIndicator=function(){return m.createElement("div",{className:this.question.cssClasses.loadingIndicator},m.createElement(at,null))},l.prototype.renderCleanButton=function(){var a=this;if(!this.question.canShowClearButton)return null;var f=this.question.cssClasses;return m.createElement("div",{className:f.controls},m.createElement("button",{type:"button",className:f.clearButton,title:this.question.clearButtonCaption,onClick:function(){return a.question.clearValue(!0)}},this.question.cssClasses.clearButtonIconId?m.createElement(De,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):m.createElement("span",null,"✖")))},l}(de);He.Instance.registerQuestion("signaturepad",function(d){return m.createElement(Xo,d)});var es=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Xu=function(d){es(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.question},l.prototype.renderElement=function(){var a=this.renderItems();return A.a.createElement("div",{className:this.question.cssClasses.root},a)},l.prototype.renderItems=function(){var a=this;return this.question.visibleChoices.map(function(f,h){return A.a.createElement(el,{key:a.question.inputId+"_"+h,item:f,question:a.question,index:h})})},l}(de),el=function(d){es(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.renderElement=function(){this.model=new O.ButtonGroupItemModel(this.question,this.item,this.index);var a=this.renderIcon(),f=this.renderInput(),h=this.renderCaption();return A.a.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},f,A.a.createElement("div",{className:this.model.css.decorator},a,h))},l.prototype.renderIcon=function(){return this.model.iconName?A.a.createElement(De,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},l.prototype.renderInput=function(){var a=this;return A.a.createElement("input",{className:this.model.css.control,id:this.model.id,type:"radio",name:this.model.name,checked:this.model.selected,value:this.model.value,disabled:this.model.readOnly,onChange:function(){a.model.onChange()},"aria-required":this.model.isRequired,"aria-label":this.model.caption.renderedHtml,"aria-invalid":this.model.hasErrors,"aria-errormessage":this.model.describedBy,role:"radio"})},l.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var a=this.renderLocString(this.model.caption);return A.a.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},a)},l}(se),Ba=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),fo=function(d){Ba(l,d);function l(a){return d.call(this,a)||this}return l.prototype.getStateElements=function(){var a=d.prototype.getStateElements.call(this);return this.question.contentQuestion&&a.push(this.question.contentQuestion),a},l.prototype.renderElement=function(){return cn.renderQuestionBody(this.creator,this.question.contentQuestion)},l}(nt),Fa=function(d){Ba(l,d);function l(a){return d.call(this,a)||this}return l.prototype.canRender=function(){return!!this.question.contentPanel},l.prototype.renderElement=function(){return m.createElement(fn,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},l}(nt);He.Instance.registerQuestion("custom",function(d){return m.createElement(fo,d)}),He.Instance.registerQuestion("composite",function(d){return m.createElement(Fa,d)});var Ti=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),ka=function(d){Ti(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.render=function(){if(!this.item)return null;var a=this.renderLocString(this.item.locTitle,void 0,"locString"),f=this.item.iconName?A.a.createElement(De,{className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title}):null,h=this.item.markerIconName?A.a.createElement(De,{className:this.item.cssClasses.itemMarkerIcon,iconName:this.item.markerIconName,size:"auto"}):null;return A.a.createElement(A.a.Fragment,null,f,a,h)},l}(se);H.Instance.registerElement("sv-list-item-content",function(d){return A.a.createElement(ka,d)});var Qa=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),bn=function(d){Qa(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.item},l.prototype.render=function(){var a;if(!this.item)return null;var f=H.Instance.createElement("sv-list-item-content",{item:this.item,key:"content"+this.item.id,model:this.model});return A.a.createElement(A.a.Fragment,null,f,A.a.createElement(st,{model:(a=this.item)===null||a===void 0?void 0:a.popupModel}))},l}(se);H.Instance.registerElement("sv-list-item-group",function(d){return A.a.createElement(bn,d)});var Lr=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),en=function(d){Lr(l,d);function l(a){return d.call(this,a)||this}return Object.defineProperty(l.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),l.prototype.render=function(){var a=[];return a.push(A.a.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},A.a.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml||null,alt:this.survey.locTitle.renderedHtml,width:this.survey.renderedLogoWidth,height:this.survey.renderedLogoHeight,style:{objectFit:this.survey.logoFit,width:this.survey.renderedStyleLogoWidth,height:this.survey.renderedStyleLogoHeight}}))),A.a.createElement(A.a.Fragment,null,a)},l}(A.a.Component);H.Instance.registerElement("sv-logo-image",function(d){return A.a.createElement(en,d)});var Xn=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Xs=function(d){Xn(l,d);function l(a){var f=d.call(this,a)||this;return f.handleOnRowRemoveClick=f.handleOnRowRemoveClick.bind(f),f}return Object.defineProperty(l.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),l.prototype.handleOnRowRemoveClick=function(a){this.question.removeRowUI(this.row)},l.prototype.renderElement=function(){var a=this.renderLocString(this.question.locRemoveRowText);return A.a.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},a,A.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},l}(ve);H.Instance.registerElement("sv-matrix-remove-button",function(d){return A.a.createElement(Xs,d)});var Ha=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),ea=function(d){Ha(l,d);function l(a){var f=d.call(this,a)||this;return f.handleOnShowHideClick=f.handleOnShowHideClick.bind(f),f}return l.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),l.prototype.handleOnShowHideClick=function(a){this.row.showHideDetailPanelClick()},l.prototype.renderElement=function(){var a=this.row.isDetailPanelShowing,f=a,h=a?this.row.detailPanelId:void 0;return A.a.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":f,"aria-controls":h},A.a.createElement(De,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},l}(ve);H.Instance.registerElement("sv-matrix-detail-button",function(d){return A.a.createElement(ea,d)});var Xr=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),Rn=function(d){Xr(l,d);function l(){var a=d!==null&&d.apply(this,arguments)||this;return a.handleClick=function(f){a.question.removePanelUI(a.data.panel)},a}return l.prototype.renderElement=function(){var a=this.renderLocString(this.question.locPanelRemoveText),f=this.question.getPanelRemoveButtonId(this.data.panel);return A.a.createElement("button",{id:f,className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},A.a.createElement("span",{className:this.question.cssClasses.buttonRemoveText},a),A.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},l}(Si);H.Instance.registerElement("sv-paneldynamic-remove-btn",function(d){return A.a.createElement(Rn,d)});var ts=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),ta=function(d){ts(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),l.prototype.canRender=function(){return this.item.isVisible},l.prototype.renderElement=function(){return A.a.createElement("input",{className:this.item.innerCss,type:"button",disabled:this.item.disabled,onMouseDown:this.item.data&&this.item.data.mouseDown,onClick:this.item.action,title:this.item.getTooltip(),value:this.item.title})},l}(ve);H.Instance.registerElement("sv-nav-btn",function(d){return A.a.createElement(ta,d)});var za=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),po=function(d){za(l,d);function l(a){var f=d.call(this,a)||this;return f.onChangedHandler=function(h,b){f.isRendering||f.setState({changed:f.state&&f.state.changed?f.state.changed+1:1})},f.rootRef=A.a.createRef(),f}return Object.defineProperty(l.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){this.reactOnStrChanged()},l.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},l.prototype.componentDidUpdate=function(a,f){a.locStr&&a.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},l.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},l.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var a=this.renderString();return this.isRendering=!1,a},l.prototype.renderString=function(){var a=this.locStr.allowLineBreaks?"sv-string-viewer sv-string-viewer--multiline":"sv-string-viewer";if(this.locStr.hasHtml){var f={__html:this.locStr.renderedHtml};return A.a.createElement("span",{ref:this.rootRef,className:a,style:this.style,dangerouslySetInnerHTML:f})}return A.a.createElement("span",{ref:this.rootRef,className:a,style:this.style},this.locStr.renderedHtml)},l}(A.a.Component);H.Instance.registerElement(O.LocalizableString.defaultRenderer,function(d){return A.a.createElement(po,d)});var Ua=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),ho=function(d){Ua(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return l.prototype.render=function(){return A.a.createElement("div",null,A.a.createElement("span",{className:this.props.cssClasses.error.icon||void 0,"aria-hidden":"true"}),A.a.createElement("span",{className:this.props.cssClasses.error.item||void 0},A.a.createElement(po,{locStr:this.props.error.locText})))},l}(A.a.Component);H.Instance.registerElement("sv-question-error",function(d){return A.a.createElement(ho,d)});var Ii=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),$=function(d){Ii(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return l.prototype.render=function(){var a,f;return A.a.createElement("div",{className:"sv-skeleton-element",id:(a=this.props.element)===null||a===void 0?void 0:a.id,style:{height:(f=this.props.element)===null||f===void 0?void 0:f.skeletonHeight}})},l}(A.a.Component);H.Instance.registerElement("sv-skeleton",function(d){return A.a.createElement($,d)});var re=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),K=function(d){re(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.renderLogoImage=function(){var a=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),f=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return H.Instance.createElement(a,{data:f})},l.prototype.render=function(){return A.a.createElement("div",{className:"sv-header--mobile"},this.model.survey.hasLogo?A.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.survey.hasTitle?A.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},A.a.createElement(Ft,{element:this.model.survey})):null,this.model.survey.renderedHasDescription?A.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},A.a.createElement("div",{className:this.model.survey.css.description},se.renderLocString(this.model.survey.locDescription))):null)},l}(A.a.Component),Ve=function(d){re(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.renderLogoImage=function(){var a=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),f=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return H.Instance.createElement(a,{data:f})},l.prototype.render=function(){return A.a.createElement("div",{className:this.model.css,style:this.model.style},A.a.createElement("div",{className:"sv-header__cell-content",style:this.model.contentStyle},this.model.showLogo?A.a.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.showTitle?A.a.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},A.a.createElement(Ft,{element:this.model.survey})):null,this.model.showDescription?A.a.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},A.a.createElement("div",{className:this.model.survey.css.description},se.renderLocString(this.model.survey.locDescription))):null))},l}(A.a.Component),Ge=function(d){re(l,d);function l(){return d!==null&&d.apply(this,arguments)||this}return Object.defineProperty(l.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),l.prototype.getStateElement=function(){return this.model},l.prototype.renderElement=function(){if(this.model.survey=this.props.survey,this.props.survey.headerView!=="advanced")return null;var a=null;return this.props.survey.isMobile?a=A.a.createElement(K,{model:this.model}):a=A.a.createElement("div",{className:this.model.contentClasses,style:{maxWidth:this.model.maxWidth}},this.model.cells.map(function(f,h){return A.a.createElement(Ve,{key:h,model:f})})),A.a.createElement("div",{className:this.model.headerClasses,style:{height:this.model.renderedHeight}},this.model.backgroundImage?A.a.createElement("div",{style:this.model.backgroundImageStyle,className:this.model.backgroundImageClasses}):null,a)},l}(se);H.Instance.registerElement("sv-header",function(d){return A.a.createElement(Ge,d)});var dt=function(){var d=function(l,a){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var b in h)Object.prototype.hasOwnProperty.call(h,b)&&(f[b]=h[b])},d(l,a)};return function(l,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");d(l,a);function f(){this.constructor=l}l.prototype=a===null?Object.create(a):(f.prototype=a.prototype,new f)}}(),ge=function(d){dt(l,d);function l(a){var f=d.call(this,a)||this;return f.onInput=function(h){f.locStr.text=h.target.innerText},f.onClick=function(h){h.preventDefault(),h.stopPropagation()},f.state={changed:0},f}return Object.defineProperty(l.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),l.prototype.componentDidMount=function(){if(this.locStr){var a=this;this.locStr.onChanged=function(){a.setState({changed:a.state.changed+1})}}},l.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},l.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var a={__html:this.locStr.renderedHtml};return A.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:a,onBlur:this.onInput,onClick:this.onClick})}return A.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},l}(A.a.Component);H.Instance.registerElement(O.LocalizableString.editableRenderer,function(d){return A.a.createElement(ge,d)}),Object(O.checkLibraryVersion)("1.12.20","survey-react-ui")},react:function(B,M){B.exports=V},"react-dom":function(B,M){B.exports=T},"survey-core":function(B,M){B.exports=E}})})}(Op)),Op.exports}var rv=nv(),Wu=(v=>(v.Unverified="unverified",v.Verified="verified",v.Edited="edited",v))(Wu||{}),yi=(v=>(v.closed="closed",v.open="open",v.preview="preview",v.published="published",v))(yi||{});function Lg(v,P){var V,T;if(P.column.indexValue==0&&"item"in P.row){const E=P.row.item;E.customDescription!==void 0&&((V=P.htmlElement.parentElement)==null||V.children[0].children[0].setAttribute("description",E.customDescription),(T=P.htmlElement.parentElement)==null||T.children[0].children[0].classList.add("survey-tooltip"))}}function Mg(v,P){if(P.question.hideCheckboxLabels){const V=P.cssClasses;V.root+=" hidden-checkbox-labels"}}function iv(v,P){var E;const V='[data-name="'+P.question.name+'"]',T=(E=document.querySelector(V))==null?void 0:E.querySelector("h5");T&&!T.classList.contains("sv-header-flex")&&P.question.updateElementCss()}function _g(v,P){if(P.name!=="description")return;let V=P.text;if(!V.length)return;const T=["e.g.","i.e.","etc.","vs."];for(const j of T)V.includes(j)&&(V=V.replace(j,j.slice(0,-1)));const E=V.split(". ");for(let j=0;j<E.length;j++)if(E[j].length!=0)for(const O of T)E[j].includes(O.slice(0,-1))&&(E[j]=E[j].replace(O.slice(0,-1),O));const B=j=>j.includes("*")?j.split("*").map((O,m)=>m==0?O:m==1?`<ul><li>${O}</li>`:`<li>${O}</li>`).join("")+"</ul>":j.endsWith(".")?j:j+".",M=E.map(j=>j.length?`<p>${B(j)}</p>`:null).join("");P.html=M}function ov(v){var M;const P=!!v.visibleIf,V='[data-name="'+v.name+'"]',T=document.querySelector(V),E=T==null?void 0:T.querySelector("h5");if(P){T.style.display="none";return}E&&(E.style.textDecoration="line-through");const B=(M=document.querySelector(V))==null?void 0:M.querySelector(".sv-question__content");B&&(B.style.display="none")}function wg(v,P,V){var j;V.verificationStatus.set(v.name,P);const T=document.createElement("button");T.type="button",T.className="sv-action-bar-item verification",T.innerHTML=P,P==Wu.Unverified?(T.innerHTML="No change from previous year",T.className+=" verification-required",T.onclick=function(){V.mode!="display"&&(v.validate(),wg(v,Wu.Verified,V))}):(T.innerHTML="Answer updated",T.className+=" verification-ok");const E='[data-name="'+v.name+'"]',B=(j=document.querySelector(E))==null?void 0:j.querySelector("h5"),M=B==null?void 0:B.querySelector(".verification");M?M.replaceWith(T):B==null||B.appendChild(T)}function sv(v){const P=lr.c(2),{surveyModel:V}=v,T=(M,j)=>{var A;const O=V.verificationStatus.get(j.question.name),m=(A=j.question)==null?void 0:A.readOnly;O&&!m?wg(j.question,O,V):m&&ov(j.question)},E=(M,j)=>{V.verificationStatus.get(j.question.name)==Wu.Unverified&&wg(j.question,Wu.Edited,V)};V.onAfterRenderQuestion.hasFunc(T)||(V.onAfterRenderQuestion.add(T),V.onAfterRenderQuestion.add(iv)),V.onValueChanged.hasFunc(E)||V.onValueChanged.add(E),V.onUpdateQuestionCssClasses.hasFunc(Mg)||V.onUpdateQuestionCssClasses.add(Mg),V.onMatrixAfterCellRender.hasFunc(Lg)||V.onMatrixAfterCellRender.add(Lg),V.onTextMarkdown.hasFunc(_g)||V.onTextMarkdown.add(_g);let B;return P[0]!==V?(B=F.jsx(rv.Survey,{model:V}),P[0]=V,P[1]=B):B=P[1],B}function av(v){const P=lr.c(14),{surveyModel:V,pageNoSetter:T}=v;let E;P[0]===Symbol.for("react.memo_cache_sentinel")?(E=[],P[0]=E):E=P[0];const[B,M]=ye.useState(E),j=lv;let O,m;P[1]!==V?(O=()=>{const se=ve=>{if(ve&&ve.pages){const de=[];ve.pages.forEach(nt=>{const _e=nt.questions.filter(uv),pe=_e.length,D=_e.filter(j).length,Re=pe-D,be=D/pe;de.push({completionPercentage:be*100,unansweredPercentage:Re/pe*100,totalPages:ve.pages.length,pageTitle:nt.title})}),M(de)}};V.onValueChanged.add(ve=>{se(ve)}),se(V)},m=[V],P[1]=V,P[2]=O,P[3]=m):(O=P[2],m=P[3]),ye.useEffect(O,m);let A;P[4]===Symbol.for("react.memo_cache_sentinel")?(A={height:"0.5rem",transition:"width 0.3s ease"},P[4]=A):A=P[4];const H=A;let ee;if(P[5]!==T||P[6]!==B||P[7]!==V.currentPageNo){let se;P[9]!==T||P[10]!==V.currentPageNo?(se=(ve,de)=>F.jsx(Fm,{xs:12,md:!0,onClick:()=>T(de),style:{cursor:"pointer",margin:"0.5rem"},children:F.jsxs("div",{children:[F.jsx("span",{style:{whiteSpace:"nowrap",fontSize:"1.5rem",marginRight:"0.25rem",fontWeight:"bold",color:"#2db394"},children:de+1}),F.jsx("span",{style:{whiteSpace:"nowrap",...V.currentPageNo==de&&{fontWeight:"bold"}},children:ve.pageTitle}),F.jsxs("div",{style:{display:"flex",flexWrap:"wrap"},children:[F.jsx("div",{style:{...H,width:`${ve.completionPercentage}%`,backgroundColor:"#262261"}}),F.jsx("div",{style:{...H,width:`${ve.unansweredPercentage}%`,backgroundColor:"#cdcdcd"}})]})]})},de),P[9]=T,P[10]=V.currentPageNo,P[11]=se):se=P[11],ee=B.map(se),P[5]=T,P[6]=B,P[7]=V.currentPageNo,P[8]=ee}else ee=P[8];let he;return P[12]!==ee?(he=F.jsx(wa,{className:"survey-progress",children:F.jsx(To,{children:ee})}),P[12]=ee,P[13]=he):he=P[13],he}function uv(v){return v.startWithNewLine}function lv(v){return!(v.value===null||v.value===void 0||v.value===""||v.getType()==="checkbox"&&v.value.length==0||v.getType()==="multipletext"&&(Object.keys(v.value).length===1&&Object.values(v.value)[0]===void 0||Object.keys(v.value).length===0))}function cv(v){const P=lr.c(86),{surveyModel:V,surveyActions:T,year:E,nren:B,children:M,onPageChange:j}=v,[O,m]=ye.useState(0),[A,H]=ye.useState(!1),[ee,he]=ye.useState(""),[se,ve]=ye.useState(""),{user:de}=ye.useContext(Ip);let nt;P[0]!==V.currentPageNo||P[1]!==V.lockedBy||P[2]!==V.mode||P[3]!==V.status?(nt=()=>{H(V.mode=="edit"),he(V.lockedBy),m(V.currentPageNo),ve(V.status)},P[0]=V.currentPageNo,P[1]=V.lockedBy,P[2]=V.mode,P[3]=V.status,P[4]=nt):nt=P[4];const _e=nt;let pe,D;P[5]!==_e?(pe=()=>{_e()},D=[_e],P[5]=_e,P[6]=pe,P[7]=D):(pe=P[6],D=P[7]),ye.useEffect(pe,D);let Re;P[8]!==j?(Re=G=>{m(G),j(G)},P[8]=j,P[9]=Re):Re=P[9];const be=Re;let Ze;P[10]!==be||P[11]!==V.currentPageNo?(Ze=()=>{be(V.currentPageNo+1)},P[10]=be,P[11]=V.currentPageNo,P[12]=Ze):Ze=P[12];const rt=Ze;let De;P[13]!==_e||P[14]!==T?(De=async G=>{await T[G](),_e()},P[13]=_e,P[14]=T,P[15]=De):De=P[15];const Bt=De;let Ae,ot,$e,lt,xt,st,gt;if(P[16]!==M||P[17]!==Bt||P[18]!==A||P[19]!==rt||P[20]!==ee||P[21]!==de||P[22]!==B||P[23]!==O||P[24]!==be||P[25]!==se||P[26]!==V||P[27]!==E){const G=(cr,Sr)=>yt(cr,()=>Bt(Sr)),yt=fv,ke=()=>F.jsxs("div",{className:"survey-edit-buttons-block",children:[!A&&!ee&&V.editAllowed&&G("Start editing","startEdit"),!A&&ee&&ee==de.name&&G("Discard any unsaved changes and release your lock","releaseLock"),A&&G("Save progress","save"),A&&G("Save and stop editing","saveAndStopEdit"),A&&G("Complete Survey","complete"),O!==V.visiblePages.length-1&&yt("Next Section",rt)]});ot=wa;let mt;P[35]!==E?(mt=F.jsxs("span",{className:"survey-title",children:[E," Compendium Survey "]}),P[35]=E,P[36]=mt):mt=P[36];let Ne;P[37]!==B?(Ne=F.jsxs("span",{className:"survey-title-nren",children:[" ",B," "]}),P[37]=B,P[38]=Ne):Ne=P[38];let Ye;P[39]!==se?(Ye=F.jsxs("span",{children:[" - ",se]}),P[39]=se,P[40]=Ye):Ye=P[40];let ct;P[41]!==mt||P[42]!==Ne||P[43]!==Ye?(ct=F.jsxs("h2",{children:[mt,Ne,Ye]}),P[41]=mt,P[42]=Ne,P[43]=Ye,P[44]=ct):ct=P[44];let on,Ft;P[45]===Symbol.for("react.memo_cache_sentinel")?(on={marginTop:"1rem",textAlign:"justify"},Ft=F.jsxs("p",{children:["To get started, click “","Start editing","” to end read-only mode. Different people from your NREN (Compendium administrators) can contribute to the survey if needed, but agreement should be reached internally before completing the survey as the administration team will treat responses as a single source of truth from the NREN. You can start editing only when nobody else from your NREN is currently working on the survey."]}),P[45]=on,P[46]=Ft):(on=P[45],Ft=P[46]);let He;P[47]!==E?(He=F.jsxs("p",{children:[F.jsxs("b",{children:["In a small change, the survey now asks about this calendar year, i.e. ",E]})," (or the current financial year if your budget or staffing data does not match the calendar year). For network questions, please provide data from the 12 months preceding you answering the question. Where available, the survey questions are pre-filled with answers from the previous survey. You can edit the pre-filled answer to provide new information, or press the “no change from previous year” button."]}),P[47]=E,P[48]=He):He=P[48];let Qe,Rt;P[49]===Symbol.for("react.memo_cache_sentinel")?(Qe=F.jsxs("p",{children:["Press the “","Save progress","“ or “","Save and stop editing","“ button to save all answers in the survey. When you reach the last section of the survey (Services), you will find a “","Complete Survey","“ button which saves all answers in the survey and lets the Compendium team know that your answers are ready to be published. As long as the survey remains open, any Compendium administrator from your NREN can add answers or amend existing ones, even after using the “","Complete Survey","“ button."]}),Rt=F.jsx("p",{children:"Some fields require specific data, such as numerical data, valid http-addresses, and in some questions, the answer has to add up to 100%. If an answer does not fulfil the set criteria, the question will turn pink and an error message will appear. Fields can be left blank if you prefer not to answer a question. If you notice any errors after the survey was closed, please contact us for correcting those."}),P[49]=Qe,P[50]=Rt):(Qe=P[49],Rt=P[50]);let At;P[51]!==He?(At=F.jsxs("div",{style:on,children:[Ft,He,Qe,Rt]}),P[51]=He,P[52]=At):At=P[52];let Gt;P[53]===Symbol.for("react.memo_cache_sentinel")?(Gt=F.jsx("a",{href:"mailto:Partner-Relations@geant.org",children:F.jsx("span",{children:"Partner-Relations@geant.org"})}),P[53]=Gt):Gt=P[53];let Dt;P[54]!==E?(Dt=F.jsxs("p",{children:["Thank you for taking the time to fill in the ",E," Compendium Survey. Any questions or requests can be sent to ",Gt]}),P[54]=E,P[55]=Dt):Dt=P[55];let Xt;P[56]!==A?(Xt=A&&F.jsxs(F.Fragment,{children:[F.jsx("br",{}),F.jsxs("b",{children:["Remember to click “","Save and stop editing","” before leaving the page."]})]}),P[56]=A,P[57]=Xt):Xt=P[57],P[58]!==ct||P[59]!==At||P[60]!==Dt||P[61]!==Xt?(st=F.jsxs(To,{className:"survey-content",children:[ct,At,Dt,Xt]}),P[58]=ct,P[59]=At,P[60]=Dt,P[61]=Xt,P[62]=st):st=P[62],gt=F.jsx(To,{children:ke()});let Ht;P[63]!==A||P[64]!==ee||P[65]!==de||P[66]!==V.editAllowed?(Ht=!A&&F.jsxs("div",{className:"survey-edit-explainer",children:[!ee&&V.editAllowed&&"The survey is in read-only mode; click the “Start editing“ button to begin editing the answers.",!ee&&!V.editAllowed&&"The survey is in read-only mode and can not be edited by you.",ee&&ee!=de.name&&"The survey is in read-only mode and currently being edited by: "+ee+". To start editing the survey, ask them to complete their edits.",ee&&ee==de.name&&'The survey is in read-only mode because you started editing in another tab, browser or device. To start editing the survey, either complete those edits or click the "Discard any unsaved changes" button.']}),P[63]=A,P[64]=ee,P[65]=de,P[66]=V.editAllowed,P[67]=Ht):Ht=P[67],P[68]!==Ht?($e=F.jsx(To,{className:"survey-content",children:Ht}),P[68]=Ht,P[69]=$e):$e=P[69];let _t;P[70]!==be||P[71]!==V?(_t=F.jsx(av,{surveyModel:V,pageNoSetter:be}),P[70]=be,P[71]=V,P[72]=_t):_t=P[72],P[73]!==M||P[74]!==_t?(lt=F.jsxs(To,{children:[_t,M]}),P[73]=M,P[74]=_t,P[75]=lt):lt=P[75],Ae=To,xt=ke(),P[16]=M,P[17]=Bt,P[18]=A,P[19]=rt,P[20]=ee,P[21]=de,P[22]=B,P[23]=O,P[24]=be,P[25]=se,P[26]=V,P[27]=E,P[28]=Ae,P[29]=ot,P[30]=$e,P[31]=lt,P[32]=xt,P[33]=st,P[34]=gt}else Ae=P[28],ot=P[29],$e=P[30],lt=P[31],xt=P[32],st=P[33],gt=P[34];let It;P[76]!==Ae||P[77]!==xt?(It=F.jsx(Ae,{children:xt}),P[76]=Ae,P[77]=xt,P[78]=It):It=P[78];let Vt;return P[79]!==ot||P[80]!==$e||P[81]!==lt||P[82]!==It||P[83]!==st||P[84]!==gt?(Vt=F.jsxs(ot,{children:[st,gt,$e,lt,It]}),P[79]=ot,P[80]=$e,P[81]=lt,P[82]=It,P[83]=st,P[84]=gt,P[85]=Vt):Vt=P[85],Vt}function fv(v,P){return F.jsx("button",{className:"sv-btn sv-btn--navigation",onClick:P,children:v})}function pv(v){const P=lr.c(5),V=v.when,T=v.onPageExit;let E;P[0]!==V||P[1]!==T||P[2]!==v.message?(E=()=>{if(V()){const M=window.confirm(v.message);return M&&T(),!M}return!1},P[0]=V,P[1]=T,P[2]=v.message,P[3]=E):E=P[3],km(E);let B;return P[4]===Symbol.for("react.memo_cache_sentinel")?(B=F.jsx("div",{}),P[4]=B):B=P[4],B}function dv(v,P=!1){if(!P&&(v==null||v==null||v==""))return!0;try{return v=v.trim(),v.includes(" ")?!1:(v.includes(":/")||(v="https://"+v),!!new URL(v))}catch{return!1}}const hv={validateWebsiteUrl:dv},gv={data_protection_contact:(...v)=>!0};function mv(v){let P=v[0];if(P==null||P==null||P=="")return!0;try{return P=P.trim(),P.includes(" ")?!1:(P.includes(":/")||(P="https://"+P),!!new URL(P))}catch{return!1}}function yv(v){try{const P=this.question,V=v[0]||void 0,T=P.data&&"name"in P.data;let E;T?E=P.data.name:E=P.name;const B=P.value,M=gv[E];if(M)return M(B,...v.slice(1));const j=hv[V];if(!j)throw new Error(`Validation function ${V} not found for question ${E}`);return j(B,...v.slice(1))}catch(P){return console.error(P),!1}}Ca.Serializer.addProperty("itemvalue","customDescription:text");Ca.Serializer.addProperty("question","hideCheckboxLabels:boolean");function mg({loadFrom:v}){const[P,V]=ye.useState(),{year:T,nren:E}=Qm(),[B,M]=ye.useState("loading survey..."),{user:j}=ye.useContext(Ip),m=!!j.id?j.permissions.admin:!1;Ca.FunctionFactory.Instance.hasFunction("validateQuestion")||Ca.FunctionFactory.Instance.register("validateQuestion",yv),Ca.FunctionFactory.Instance.hasFunction("validateWebsiteUrl")||Ca.FunctionFactory.Instance.register("validateWebsiteUrl",mv);const{trackPageView:A}=qg(),H=ye.useCallback(_e=>(_e.preventDefault(),_e.returnValue=""),[]),ee=ye.useCallback(()=>{window.navigator.sendBeacon("/api/response/unlock/"+T+"/"+E)},[]),he=ye.useCallback(()=>{window.navigator.sendBeacon("/api/response/unlock/"+T+"/"+E),removeEventListener("beforeunload",H,{capture:!0}),removeEventListener("pagehide",ee)},[]);if(ye.useEffect(()=>{async function _e(){const pe=await fetch(v+T+(E?"/"+E:"")),D=await pe.json();if(!pe.ok)throw"message"in D?new Error(D.message):new Error(`Request failed with status ${pe.status}`);const Re=new Ca.Model(D.model);Re.setVariable("surveyyear",T),Re.setVariable("previousyear",parseInt(T)-1),Re.showNavigationButtons=!1,Re.requiredText="",Re.verificationStatus=new Map;for(const be in D.verification_status)Re.verificationStatus.set(be,D.verification_status[be]);Re.data=D.data,Re.clearIncorrectValues(!0),Re.currentPageNo=D.page,Re.mode=D.mode,Re.lockedBy=D.locked_by,Re.status=D.status,Re.editAllowed=D.edit_allowed,V(Re)}_e().catch(pe=>M("Error when loading survey: "+pe.message)).then(()=>{A({documentTitle:`Survey for ${E} (${T})`})})},[]),!P)return B;const se=async(_e,pe)=>{if(!E)return"Saving not available in inpect/try mode";const D={lock_uuid:_e.lockUUID,new_state:pe,data:_e.data,page:_e.currentPageNo,verification_status:Object.fromEntries(_e.verificationStatus)};try{const Re=await fetch("/api/response/save/"+T+"/"+E,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(D)}),be=await Re.json();if(!Re.ok)return be.message;P.mode=be.mode,P.lockedBy=be.locked_by,P.status=be.status}catch(Re){return"Unknown Error: "+Re.message}},ve=(_e,pe=!0)=>{let D="";const Re=(Ze,rt)=>{Ze.verificationStatus.get(rt.name)==Wu.Unverified&&(D==""&&(D=rt.name),rt.error='Please verify that last years data is correct by editing the answer or pressing the "No change from previous year" button!')};pe&&P.onValidateQuestion.add(Re);const be=_e();return pe&&P.onValidateQuestion.remove(Re),be||Yt("Validation failed!"),be},de={save:async()=>{if(!ve(P.validate.bind(P,!0,!0),!1)){Yt("Please correct the invalid fields before saving!");return}const pe=await se(P,"editing");Yt(pe?"Failed saving survey: "+pe:"Survey saved!")},complete:async()=>{if(ve(P.validate.bind(P,!0,!0))){const pe=await se(P,"completed");pe?Yt("Failed completing survey: "+pe):(Yt("Survey completed!"),removeEventListener("beforeunload",H,{capture:!0}),removeEventListener("pagehide",ee))}},saveAndStopEdit:async()=>{if(!ve(P.validate.bind(P,!0,!0),!1)){Yt("Please correct the invalid fields before saving.");return}const pe=await se(P,"readonly");pe?Yt("Failed saving survey: "+pe):(Yt("Survey saved!"),removeEventListener("beforeunload",H,{capture:!0}),removeEventListener("pagehide",ee))},startEdit:async()=>{const _e=await fetch("/api/response/lock/"+T+"/"+E,{method:"POST"}),pe=await _e.json();if(!_e.ok){Yt("Failed starting edit: "+pe.message);return}addEventListener("pagehide",ee),addEventListener("beforeunload",H,{capture:!0});for(const Re in pe.verification_status)P.verificationStatus.set(Re,pe.verification_status[Re]);if(P.data=pe.data,P.clearIncorrectValues(!0),P.mode=pe.mode,P.lockedBy=pe.locked_by,P.lockUUID=pe.lock_uuid,P.status=pe.status,!ve(P.validate.bind(P,!0,!0),!1)){Yt("Some fields are invalid, please correct them.");return}},releaseLock:async()=>{const _e=await fetch("/api/response/unlock/"+T+"/"+E,{method:"POST"}),pe=await _e.json();if(!_e.ok){Yt("Failed releasing lock: "+pe.message);return}P.mode=pe.mode,P.lockedBy=pe.locked_by,P.status=pe.status},validatePage:()=>{ve(P.validatePage.bind(P))&&Yt("Page validation successful!")}};P.css.question.title.includes("sv-header-flex")||(P.css.question.title="sv-title sv-question__title sv-header-flex",P.css.question.titleOnError="sv-question__title--error sv-error-color-fix");const nt=_e=>{P.currentPageNo=_e};return F.jsxs(F.Fragment,{children:[m?F.jsx(Lp,{}):null,F.jsxs(wa,{className:"survey-container",children:[F.jsx(Sg,{}),F.jsx(pv,{message:"Are you sure you want to leave this page? Information you've entered may not be saved.",when:()=>P.mode=="edit"&&!!E,onPageExit:he}),F.jsx(cv,{onPageChange:nt,surveyModel:P,surveyActions:de,year:T,nren:E,children:F.jsx(sv,{surveyModel:P})})]})]})}function vv(v){return Rp({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M362.6 192.9L345 174.8c-.7-.8-1.8-1.2-2.8-1.2-1.1 0-2.1.4-2.8 1.2l-122 122.9-44.4-44.4c-.8-.8-1.8-1.2-2.8-1.2-1 0-2 .4-2.8 1.2l-17.8 17.8c-1.6 1.6-1.6 4.1 0 5.7l56 56c3.6 3.6 8 5.7 11.7 5.7 5.3 0 9.9-3.9 11.6-5.5h.1l133.7-134.4c1.4-1.7 1.4-4.2-.1-5.7z"},child:[]},{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]}]})(v)}function bv(v){return Rp({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm106.5 150.5L228.8 332.8h-.1c-1.7 1.7-6.3 5.5-11.6 5.5-3.8 0-8.1-2.1-11.7-5.7l-56-56c-1.6-1.6-1.6-4.1 0-5.7l17.8-17.8c.8-.8 1.8-1.2 2.8-1.2 1 0 2 .4 2.8 1.2l44.4 44.4 122-122.9c.8-.8 1.8-1.2 2.8-1.2 1.1 0 2.1.4 2.8 1.2l17.5 18.1c1.8 1.7 1.8 4.2.2 5.8z"},child:[]}]})(v)}function Cv(v){return Rp({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M331.3 308.7L278.6 256l52.7-52.7c6.2-6.2 6.2-16.4 0-22.6-6.2-6.2-16.4-6.2-22.6 0L256 233.4l-52.7-52.7c-6.2-6.2-15.6-7.1-22.6 0-7.1 7.1-6 16.6 0 22.6l52.7 52.7-52.7 52.7c-6.7 6.7-6.4 16.3 0 22.6 6.4 6.4 16.4 6.2 22.6 0l52.7-52.7 52.7 52.7c6.2 6.2 16.4 6.2 22.6 0 6.3-6.2 6.3-16.4 0-22.6z"},child:[]},{tag:"path",attr:{d:"M256 76c48.1 0 93.3 18.7 127.3 52.7S436 207.9 436 256s-18.7 93.3-52.7 127.3S304.1 436 256 436c-48.1 0-93.3-18.7-127.3-52.7S76 304.1 76 256s18.7-93.3 52.7-127.3S207.9 76 256 76m0-28C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]}]})(v)}function wv(v){return Rp({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm52.7 283.3L256 278.6l-52.7 52.7c-6.2 6.2-16.4 6.2-22.6 0-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3l52.7-52.7-52.7-52.7c-3.1-3.1-4.7-7.2-4.7-11.3 0-4.1 1.6-8.2 4.7-11.3 6.2-6.2 16.4-6.2 22.6 0l52.7 52.7 52.7-52.7c6.2-6.2 16.4-6.2 22.6 0 6.2 6.2 6.2 16.4 0 22.6L278.6 256l52.7 52.7c6.2 6.2 6.2 16.4 0 22.6-6.2 6.3-16.4 6.3-22.6 0z"},child:[]}]})(v)}function Pv(v){const P=lr.c(2),{status:V}=v;let T;return P[0]!==V?(T={completed:F.jsx(bv,{title:V,size:24,color:"green"}),started:F.jsx(vv,{title:V,size:24,color:"rgb(217, 117, 10)"}),"did not respond":F.jsx(wv,{title:V,size:24,color:"red"}),"not started":F.jsx(Cv,{title:V,size:24})},P[0]=V,P[1]=T):T=P[1],T[V]||V}var wc={exports:{}};/**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */var xv=wc.exports,jg;function Vv(){return jg||(jg=1,function(v,P){(function(){var V,T="4.17.21",E=200,B="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",M="Expected a function",j="Invalid `variable` option passed into `_.template`",O="__lodash_hash_undefined__",m=500,A="__lodash_placeholder__",H=1,ee=2,he=4,se=1,ve=2,de=1,nt=2,_e=4,pe=8,D=16,Re=32,be=64,Ze=128,rt=256,De=512,Bt=30,Ae="...",ot=800,$e=16,lt=1,xt=2,st=3,gt=1/0,It=9007199254740991,Vt=17976931348623157e292,G=NaN,yt=4294967295,ke=yt-1,mt=yt>>>1,Ne=[["ary",Ze],["bind",de],["bindKey",nt],["curry",pe],["curryRight",D],["flip",De],["partial",Re],["partialRight",be],["rearg",rt]],Ye="[object Arguments]",ct="[object Array]",on="[object AsyncFunction]",Ft="[object Boolean]",He="[object Date]",Qe="[object DOMException]",Rt="[object Error]",At="[object Function]",Gt="[object GeneratorFunction]",Dt="[object Map]",Xt="[object Number]",Ht="[object Null]",_t="[object Object]",cr="[object Promise]",Sr="[object Proxy]",Nn="[object RegExp]",an="[object Set]",On="[object String]",cn="[object Symbol]",qn="[object Undefined]",Bn="[object WeakMap]",Hr="[object WeakSet]",Fn="[object ArrayBuffer]",kn="[object DataView]",Er="[object Float32Array]",zr="[object Float64Array]",fr="[object Int8Array]",Or="[object Int16Array]",Ur="[object Int32Array]",Wr="[object Uint8Array]",Zn="[object Uint8ClampedArray]",Kn="[object Uint16Array]",Le="[object Uint32Array]",Yn=/\b__p \+= '';/g,Ao=/\b(__p \+=) '' \+/g,$u=/(__e\(.*?\)|\b__t\)) \+\n'';/g,As=/&(?:amp|lt|gt|quot|#39);/g,Do=/[&<>"']/g,xa=RegExp(As.source),Gu=RegExp(Do.source),Ju=/<%-([\s\S]+?)%>/g,Tr=/<%([\s\S]+?)%>/g,pr=/<%=([\s\S]+?)%>/g,Wi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ds=/^\w*$/,$r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$i=/[\\^$.*+?()[\]{}|]/g,Ls=RegExp($i.source),Lo=/^\s+/,fn=/\s/,Zu=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Mo=/\{\n\/\* \[wrapped with (.+)\] \*/,Va=/,? & /,Sa=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ms=/[()=,{}\[\]\/\s]/,_o=/\\(\\)?/g,_s=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,js=/\w*$/,Ns=/^[-+]0x[0-9a-f]+$/i,qs=/^0b[01]+$/i,pn=/^\[object .+?Constructor\]$/,Ir=/^0o[0-7]+$/i,Ku=/^(?:0|[1-9]\d*)$/,Bs=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jo=/($^)/,Ea=/['\n\r\u2028\u2029\\]/g,Lt="\\ud800-\\udfff",Je="\\u0300-\\u036f",Gr="\\ufe20-\\ufe2f",Gi="\\u20d0-\\u20ff",Tn=Je+Gr+Gi,Fs="\\u2700-\\u27bf",No="a-z\\xdf-\\xf6\\xf8-\\xff",qo="\\xac\\xb1\\xd7\\xf7",te="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ks="\\u2000-\\u206f",Ji=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Zi="A-Z\\xc0-\\xd6\\xd8-\\xde",Qn="\\ufe0e\\ufe0f",Rr=qo+te+ks+Ji,Qs="['’]",wn="["+Lt+"]",Bo="["+Rr+"]",dr="["+Tn+"]",Hs="\\d+",mn="["+Fs+"]",vi="["+No+"]",zs="[^"+Lt+Rr+Hs+Fs+No+Zi+"]",Fo="\\ud83c[\\udffb-\\udfff]",at="(?:"+dr+"|"+Fo+")",Oa="[^"+Lt+"]",Ki="(?:\\ud83c[\\udde6-\\uddff]){2}",Yi="[\\ud800-\\udbff][\\udc00-\\udfff]",hr="["+Zi+"]",Us="\\u200d",bi="(?:"+vi+"|"+zs+")",pt="(?:"+hr+"|"+zs+")",Ta="(?:"+Qs+"(?:d|ll|m|re|s|t|ve))?",Ia="(?:"+Qs+"(?:D|LL|M|RE|S|T|VE))?",Ci=at+"?",ko="["+Qn+"]?",wi="(?:"+Us+"(?:"+[Oa,Ki,Yi].join("|")+")"+ko+Ci+")*",Ws="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ra="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xi=ko+Ci+wi,eo="(?:"+[mn,Ki,Yi].join("|")+")"+Xi,to="(?:"+[Oa+dr+"?",dr,Ki,Yi,wn].join("|")+")",Ar=RegExp(Qs,"g"),Qo=RegExp(dr,"g"),Ho=RegExp(Fo+"(?="+Fo+")|"+to+Xi,"g"),In=RegExp([hr+"?"+vi+"+"+Ta+"(?="+[Bo,hr,"$"].join("|")+")",pt+"+"+Ia+"(?="+[Bo,hr+bi,"$"].join("|")+")",hr+"?"+bi+"+"+Ta,hr+"+"+Ia,Ra,Ws,Hs,eo].join("|"),"g"),zo=RegExp("["+Us+Lt+Tn+Qn+"]"),Uo=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,sn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Aa=-1,ut={};ut[Er]=ut[zr]=ut[fr]=ut[Or]=ut[Ur]=ut[Wr]=ut[Zn]=ut[Kn]=ut[Le]=!0,ut[Ye]=ut[ct]=ut[Fn]=ut[Ft]=ut[kn]=ut[He]=ut[Rt]=ut[At]=ut[Dt]=ut[Xt]=ut[_t]=ut[Nn]=ut[an]=ut[On]=ut[Bn]=!1;var Et={};Et[Ye]=Et[ct]=Et[Fn]=Et[kn]=Et[Ft]=Et[He]=Et[Er]=Et[zr]=Et[fr]=Et[Or]=Et[Ur]=Et[Dt]=Et[Xt]=Et[_t]=Et[Nn]=Et[an]=Et[On]=Et[cn]=Et[Wr]=Et[Zn]=Et[Kn]=Et[Le]=!0,Et[Rt]=Et[At]=Et[Bn]=!1;var Da={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Jr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},no={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Wo={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pi=parseFloat,ro=parseInt,xi=typeof Pp=="object"&&Pp&&Pp.Object===Object&&Pp,Yu=typeof self=="object"&&self&&self.Object===Object&&self,Jt=xi||Yu||Function("return this")(),Vi=P&&!P.nodeType&&P,Dr=Vi&&!0&&v&&!v.nodeType&&v,$o=Dr&&Dr.exports===Vi,Go=$o&&xi.process,yn=function(){try{var $=Dr&&Dr.require&&Dr.require("util").types;return $||Go&&Go.binding&&Go.binding("util")}catch{}}(),Jo=yn&&yn.isArrayBuffer,io=yn&&yn.isDate,$s=yn&&yn.isMap,Si=yn&&yn.isRegExp,Gs=yn&&yn.isSet,La=yn&&yn.isTypedArray;function Ut($,re,K){switch(K.length){case 0:return $.call(re);case 1:return $.call(re,K[0]);case 2:return $.call(re,K[0],K[1]);case 3:return $.call(re,K[0],K[1],K[2])}return $.apply(re,K)}function Zo($,re,K,Ve){for(var Ge=-1,dt=$==null?0:$.length;++Ge<dt;){var ge=$[Ge];re(Ve,ge,K(ge),$)}return Ve}function dn($,re){for(var K=-1,Ve=$==null?0:$.length;++K<Ve&&re($[K],K,$)!==!1;);return $}function Ma($,re){for(var K=$==null?0:$.length;K--&&re($[K],K,$)!==!1;);return $}function oo($,re){for(var K=-1,Ve=$==null?0:$.length;++K<Ve;)if(!re($[K],K,$))return!1;return!0}function gr($,re){for(var K=-1,Ve=$==null?0:$.length,Ge=0,dt=[];++K<Ve;){var ge=$[K];re(ge,K,$)&&(dt[Ge++]=ge)}return dt}function Zr($,re){var K=$==null?0:$.length;return!!K&&Kr($,re,0)>-1}function Js($,re,K){for(var Ve=-1,Ge=$==null?0:$.length;++Ve<Ge;)if(K(re,$[Ve]))return!0;return!1}function jt($,re){for(var K=-1,Ve=$==null?0:$.length,Ge=Array(Ve);++K<Ve;)Ge[K]=re($[K],K,$);return Ge}function kt($,re){for(var K=-1,Ve=re.length,Ge=$.length;++K<Ve;)$[Ge+K]=re[K];return $}function so($,re,K,Ve){var Ge=-1,dt=$==null?0:$.length;for(Ve&&dt&&(K=$[++Ge]);++Ge<dt;)K=re(K,$[Ge],Ge,$);return K}function Ko($,re,K,Ve){var Ge=$==null?0:$.length;for(Ve&&Ge&&(K=$[--Ge]);Ge--;)K=re(K,$[Ge],Ge,$);return K}function Zs($,re){for(var K=-1,Ve=$==null?0:$.length;++K<Ve;)if(re($[K],K,$))return!0;return!1}var _a=Ln("length");function Ei($){return $.split("")}function ao($){return $.match(Sa)||[]}function ja($,re,K){var Ve;return K($,function(Ge,dt,ge){if(re(Ge,dt,ge))return Ve=dt,!1}),Ve}function uo($,re,K,Ve){for(var Ge=$.length,dt=K+(Ve?1:-1);Ve?dt--:++dt<Ge;)if(re($[dt],dt,$))return dt;return-1}function Kr($,re,K){return re===re?Ha($,re,K):uo($,qa,K)}function Na($,re,K,Ve){for(var Ge=K-1,dt=$.length;++Ge<dt;)if(Ve($[Ge],re))return Ge;return-1}function qa($){return $!==$}function Yr($,re){var K=$==null?0:$.length;return K?Ys($,re)/K:G}function Ln($){return function(re){return re==null?V:re[$]}}function hn($){return function(re){return $==null?V:$[re]}}function Ks($,re,K,Ve,Ge){return Ge($,function(dt,ge,d){K=Ve?(Ve=!1,dt):re(K,dt,ge,d)}),K}function lo($,re){var K=$.length;for($.sort(re);K--;)$[K]=$[K].value;return $}function Ys($,re){for(var K,Ve=-1,Ge=$.length;++Ve<Ge;){var dt=re($[Ve]);dt!==V&&(K=K===V?dt:K+dt)}return K}function Yo($,re){for(var K=-1,Ve=Array($);++K<$;)Ve[K]=re(K);return Ve}function z($,re){return jt(re,function(K){return[K,$[K]]})}function vn($){return $&&$.slice(0,ts($)+1).replace(Lo,"")}function Nt($){return function(re){return $(re)}}function co($,re){return jt(re,function(K){return $[K]})}function Oi($,re){return $.has(re)}function Xo($,re){for(var K=-1,Ve=$.length;++K<Ve&&Kr(re,$[K],0)>-1;);return K}function es($,re){for(var K=$.length;K--&&Kr(re,$[K],0)>-1;);return K}function Xu($,re){for(var K=$.length,Ve=0;K--;)$[K]===re&&++Ve;return Ve}var el=hn(Da),Ba=hn(Jr);function fo($){return"\\"+Wo[$]}function Fa($,re){return $==null?V:$[re]}function Ti($){return zo.test($)}function ka($){return Uo.test($)}function Qa($){for(var re,K=[];!(re=$.next()).done;)K.push(re.value);return K}function bn($){var re=-1,K=Array($.size);return $.forEach(function(Ve,Ge){K[++re]=[Ge,Ve]}),K}function Lr($,re){return function(K){return $(re(K))}}function en($,re){for(var K=-1,Ve=$.length,Ge=0,dt=[];++K<Ve;){var ge=$[K];(ge===re||ge===A)&&($[K]=A,dt[Ge++]=K)}return dt}function Xn($){var re=-1,K=Array($.size);return $.forEach(function(Ve){K[++re]=Ve}),K}function Xs($){var re=-1,K=Array($.size);return $.forEach(function(Ve){K[++re]=[Ve,Ve]}),K}function Ha($,re,K){for(var Ve=K-1,Ge=$.length;++Ve<Ge;)if($[Ve]===re)return Ve;return-1}function ea($,re,K){for(var Ve=K+1;Ve--;)if($[Ve]===re)return Ve;return Ve}function Xr($){return Ti($)?za($):_a($)}function Rn($){return Ti($)?po($):Ei($)}function ts($){for(var re=$.length;re--&&fn.test($.charAt(re)););return re}var ta=hn(no);function za($){for(var re=Ho.lastIndex=0;Ho.test($);)++re;return re}function po($){return $.match(Ho)||[]}function Ua($){return $.match(In)||[]}var ho=function $(re){re=re==null?Jt:Ii.defaults(Jt.Object(),re,Ii.pick(Jt,sn));var K=re.Array,Ve=re.Date,Ge=re.Error,dt=re.Function,ge=re.Math,d=re.Object,l=re.RegExp,a=re.String,f=re.TypeError,h=K.prototype,b=dt.prototype,W=d.prototype,ne=re["__core-js_shared__"],ue=b.toString,Se=W.hasOwnProperty,Fe=0,vt=function(){var u=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),Pn=W.toString,Cn=ue.call(d),Ri=Jt._,Mr=l("^"+ue.call(Se).replace($i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ei=$o?re.Buffer:V,xn=re.Symbol,na=re.Uint8Array,ra=ei?ei.allocUnsafe:V,ia=Lr(d.getPrototypeOf,d),tl=d.create,Ec=W.propertyIsEnumerable,oa=h.splice,bt=xn?xn.isConcatSpreadable:V,er=xn?xn.iterator:V,go=xn?xn.toStringTag:V,ns=function(){try{var u=Cr(d,"defineProperty");return u({},"",{}),u}catch{}}(),Wa=re.clearTimeout!==Jt.clearTimeout&&re.clearTimeout,_p=Ve&&Ve.now!==Jt.Date.now&&Ve.now,$a=re.setTimeout!==Jt.setTimeout&&re.setTimeout,Ga=ge.ceil,rs=ge.floor,mo=d.getOwnPropertySymbols,nl=ei?ei.isBuffer:V,is=re.isFinite,jp=h.join,Oc=Lr(d.keys,d),Mt=ge.max,gn=ge.min,Tc=Ve.now,rl=re.parseInt,sa=ge.random,il=h.reverse,ol=Cr(re,"DataView"),aa=Cr(re,"Map"),mr=Cr(re,"Promise"),ti=Cr(re,"Set"),_r=Cr(re,"WeakMap"),os=Cr(d,"create"),ua=_r&&new _r,Ai={},sl=di(ol),Ic=di(aa),Np=di(mr),Ja=di(ti),Rc=di(_r),Za=xn?xn.prototype:V,qt=Za?Za.valueOf:V,Ac=Za?Za.toString:V;function L(u){if(Kt(u)&&!Ke(u)&&!(u instanceof ft)){if(u instanceof Mn)return u;if(Se.call(u,"__wrapped__"))return Po(u)}return new Mn(u)}var ss=function(){function u(){}return function(p){if(!$t(p))return{};if(tl)return tl(p);u.prototype=p;var g=new u;return u.prototype=V,g}}();function la(){}function Mn(u,p){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!p,this.__index__=0,this.__values__=V}L.templateSettings={escape:Ju,evaluate:Tr,interpolate:pr,variable:"",imports:{_:L}},L.prototype=la.prototype,L.prototype.constructor=L,Mn.prototype=ss(la.prototype),Mn.prototype.constructor=Mn;function ft(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=yt,this.__views__=[]}function qp(){var u=new ft(this.__wrapped__);return u.__actions__=_n(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=_n(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=_n(this.__views__),u}function al(){if(this.__filtered__){var u=new ft(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function ul(){var u=this.__wrapped__.value(),p=this.__dir__,g=Ke(u),C=p<0,R=g?u.length:0,_=Hl(0,R,this.__views__),k=_.start,U=_.end,J=U-k,ie=C?U:k-1,oe=this.__iteratees__,ae=oe.length,xe=0,je=gn(J,this.__takeCount__);if(!g||!C&&R==J&&je==J)return Xc(u,this.__actions__);var Ue=[];e:for(;J--&&xe<je;){ie+=p;for(var it=-1,We=u[ie];++it<ae;){var ht=oe[it],Pt=ht.iteratee,xr=ht.type,Gn=Pt(We);if(xr==xt)We=Gn;else if(!Gn){if(xr==lt)continue e;break e}}Ue[xe++]=We}return Ue}ft.prototype=ss(la.prototype),ft.prototype.constructor=ft;function Di(u){var p=-1,g=u==null?0:u.length;for(this.clear();++p<g;){var C=u[p];this.set(C[0],C[1])}}function ll(){this.__data__=os?os(null):{},this.size=0}function Bp(u){var p=this.has(u)&&delete this.__data__[u];return this.size-=p?1:0,p}function tn(u){var p=this.__data__;if(os){var g=p[u];return g===O?V:g}return Se.call(p,u)?p[u]:V}function Ka(u){var p=this.__data__;return os?p[u]!==V:Se.call(p,u)}function Dc(u,p){var g=this.__data__;return this.size+=this.has(u)?0:1,g[u]=os&&p===V?O:p,this}Di.prototype.clear=ll,Di.prototype.delete=Bp,Di.prototype.get=tn,Di.prototype.has=Ka,Di.prototype.set=Dc;function ni(u){var p=-1,g=u==null?0:u.length;for(this.clear();++p<g;){var C=u[p];this.set(C[0],C[1])}}function Fp(){this.__data__=[],this.size=0}function Lc(u){var p=this.__data__,g=ca(p,u);if(g<0)return!1;var C=p.length-1;return g==C?p.pop():oa.call(p,g,1),--this.size,!0}function Li(u){var p=this.__data__,g=ca(p,u);return g<0?V:p[g][1]}function cl(u){return ca(this.__data__,u)>-1}function kp(u,p){var g=this.__data__,C=ca(g,u);return C<0?(++this.size,g.push([u,p])):g[C][1]=p,this}ni.prototype.clear=Fp,ni.prototype.delete=Lc,ni.prototype.get=Li,ni.prototype.has=cl,ni.prototype.set=kp;function Hn(u){var p=-1,g=u==null?0:u.length;for(this.clear();++p<g;){var C=u[p];this.set(C[0],C[1])}}function Mc(){this.size=0,this.__data__={hash:new Di,map:new(aa||ni),string:new Di}}function Qp(u){var p=ws(this,u).delete(u);return this.size-=p?1:0,p}function Ya(u){return ws(this,u).get(u)}function _c(u){return ws(this,u).has(u)}function Hp(u,p){var g=ws(this,u),C=g.size;return g.set(u,p),this.size+=g.size==C?0:1,this}Hn.prototype.clear=Mc,Hn.prototype.delete=Qp,Hn.prototype.get=Ya,Hn.prototype.has=_c,Hn.prototype.set=Hp;function Ct(u){var p=-1,g=u==null?0:u.length;for(this.__data__=new Hn;++p<g;)this.add(u[p])}function jc(u){return this.__data__.set(u,O),this}function Xa(u){return this.__data__.has(u)}Ct.prototype.add=Ct.prototype.push=jc,Ct.prototype.has=Xa;function yr(u){var p=this.__data__=new ni(u);this.size=p.size}function zp(){this.__data__=new ni,this.size=0}function Up(u){var p=this.__data__,g=p.delete(u);return this.size=p.size,g}function Wp(u){return this.__data__.get(u)}function Nc(u){return this.__data__.has(u)}function $p(u,p){var g=this.__data__;if(g instanceof ni){var C=g.__data__;if(!aa||C.length<E-1)return C.push([u,p]),this.size=++g.size,this;g=this.__data__=new Hn(C)}return g.set(u,p),this.size=g.size,this}yr.prototype.clear=zp,yr.prototype.delete=Up,yr.prototype.get=Wp,yr.prototype.has=Nc,yr.prototype.set=$p;function qc(u,p){var g=Ke(u),C=!g&&Vo(u),R=!g&&!C&&Hi(u),_=!g&&!C&&!R&&Ss(u),k=g||C||R||_,U=k?Yo(u.length,a):[],J=U.length;for(var ie in u)(p||Se.call(u,ie))&&!(k&&(ie=="length"||R&&(ie=="offset"||ie=="parent")||_&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||kr(ie,J)))&&U.push(ie);return U}function eu(u){var p=u.length;return p?u[Ni(0,p-1)]:V}function Bc(u,p){return Su(_n(u),ii(p,0,u.length))}function fl(u){return Su(_n(u))}function yo(u,p,g){(g!==V&&!Pr(u[p],g)||g===V&&!(p in u))&&ri(u,p,g)}function as(u,p,g){var C=u[p];(!(Se.call(u,p)&&Pr(C,g))||g===V&&!(p in u))&&ri(u,p,g)}function ca(u,p){for(var g=u.length;g--;)if(Pr(u[g][0],p))return g;return-1}function pl(u,p,g,C){return oi(u,function(R,_,k){p(C,R,g(R),k)}),C}function us(u,p){return u&&rr(p,un(p),u)}function Gp(u,p){return u&&rr(p,Dn(p),u)}function ri(u,p,g){p=="__proto__"&&ns?ns(u,p,{configurable:!0,enumerable:!0,value:g,writable:!0}):u[p]=g}function dl(u,p){for(var g=-1,C=p.length,R=K(C),_=u==null;++g<C;)R[g]=_?V:oc(u,p[g]);return R}function ii(u,p,g){return u===u&&(g!==V&&(u=u<=g?u:g),p!==V&&(u=u>=p?u:p)),u}function tr(u,p,g,C,R,_){var k,U=p&H,J=p&ee,ie=p&he;if(g&&(k=R?g(u,C,R,_):g(u)),k!==V)return k;if(!$t(u))return u;var oe=Ke(u);if(oe){if(k=of(u),!U)return _n(u,k)}else{var ae=Sn(u),xe=ae==At||ae==Gt;if(Hi(u))return Dl(u,U);if(ae==_t||ae==Ye||xe&&!R){if(k=J||xe?{}:Fi(u),!U)return J?rd(u,Gp(k,u)):Qt(u,us(k,u))}else{if(!Et[ae])return R?u:{};k=sf(u,ae,U)}}_||(_=new yr);var je=_.get(u);if(je)return je;_.set(u,k),Gf(u)?u.forEach(function(We){k.add(tr(We,p,g,We,u,_))}):_u(u)&&u.forEach(function(We,ht){k.set(ht,tr(We,p,g,ht,u,_))});var Ue=ie?J?kl:bs:J?Dn:un,it=oe?V:Ue(u);return dn(it||u,function(We,ht){it&&(ht=We,We=u[ht]),as(k,ht,tr(We,p,g,ht,u,_))}),k}function Fc(u){var p=un(u);return function(g){return kc(g,u,p)}}function kc(u,p,g){var C=g.length;if(u==null)return!C;for(u=d(u);C--;){var R=g[C],_=p[R],k=u[R];if(k===V&&!(R in u)||!_(k))return!1}return!0}function Qc(u,p,g){if(typeof u!="function")throw new f(M);return ki(function(){u.apply(V,g)},p)}function ls(u,p,g,C){var R=-1,_=Zr,k=!0,U=u.length,J=[],ie=p.length;if(!U)return J;g&&(p=jt(p,Nt(g))),C?(_=Js,k=!1):p.length>=E&&(_=Oi,k=!1,p=new Ct(p));e:for(;++R<U;){var oe=u[R],ae=g==null?oe:g(oe);if(oe=C||oe!==0?oe:0,k&&ae===ae){for(var xe=ie;xe--;)if(p[xe]===ae)continue e;J.push(oe)}else _(p,ae,C)||J.push(oe)}return J}var oi=du(zn),hl=du(fa,!0);function Hc(u,p){var g=!0;return oi(u,function(C,R,_){return g=!!p(C,R,_),g}),g}function jr(u,p,g){for(var C=-1,R=u.length;++C<R;){var _=u[C],k=p(_);if(k!=null&&(U===V?k===k&&!$n(k):g(k,U)))var U=k,J=_}return J}function Jp(u,p,g,C){var R=u.length;for(g=et(g),g<0&&(g=-g>R?0:R+g),C=C===V||C>R?R:et(C),C<0&&(C+=R),C=g>C?0:Yf(C);g<C;)u[g++]=p;return u}function St(u,p){var g=[];return oi(u,function(C,R,_){p(C,R,_)&&g.push(C)}),g}function zt(u,p,g,C,R){var _=-1,k=u.length;for(g||(g=uf),R||(R=[]);++_<k;){var U=u[_];p>0&&g(U)?p>1?zt(U,p-1,g,C,R):kt(R,U):C||(R[R.length]=U)}return R}var Nr=_l(),gl=_l(!0);function zn(u,p){return u&&Nr(u,p,un)}function fa(u,p){return u&&gl(u,p,un)}function Mi(u,p){return gr(p,function(g){return hi(u[g])})}function si(u,p){p=Fr(p,u);for(var g=0,C=p.length;u!=null&&g<C;)u=u[ir(p[g++])];return g&&g==C?u:V}function tu(u,p,g){var C=p(u);return Ke(u)?C:kt(C,g(u))}function nn(u){return u==null?u===V?qn:Ht:go&&go in d(u)?ud(u):Ul(u)}function ml(u,p){return u>p}function vo(u,p){return u!=null&&Se.call(u,p)}function zc(u,p){return u!=null&&p in d(u)}function yl(u,p,g){return u>=gn(p,g)&&u<Mt(p,g)}function vl(u,p,g){for(var C=g?Js:Zr,R=u[0].length,_=u.length,k=_,U=K(_),J=1/0,ie=[];k--;){var oe=u[k];k&&p&&(oe=jt(oe,Nt(p))),J=gn(oe.length,J),U[k]=!g&&(p||R>=120&&oe.length>=120)?new Ct(k&&oe):V}oe=u[0];var ae=-1,xe=U[0];e:for(;++ae<R&&ie.length<J;){var je=oe[ae],Ue=p?p(je):je;if(je=g||je!==0?je:0,!(xe?Oi(xe,Ue):C(ie,Ue,g))){for(k=_;--k;){var it=U[k];if(!(it?Oi(it,Ue):C(u[k],Ue,g)))continue e}xe&&xe.push(Ue),ie.push(je)}}return ie}function bl(u,p,g,C){return zn(u,function(R,_,k){p(C,g(R),_,k)}),C}function cs(u,p,g){p=Fr(p,u),u=$l(u,p);var C=u==null?u:u[ir(or(p))];return C==null?V:Ut(C,u,g)}function nu(u){return Kt(u)&&nn(u)==Ye}function Zp(u){return Kt(u)&&nn(u)==Fn}function _i(u){return Kt(u)&&nn(u)==He}function ji(u,p,g,C,R){return u===p?!0:u==null||p==null||!Kt(u)&&!Kt(p)?u!==u&&p!==p:Kp(u,p,g,C,ji,R)}function Kp(u,p,g,C,R,_){var k=Ke(u),U=Ke(p),J=k?ct:Sn(u),ie=U?ct:Sn(p);J=J==Ye?_t:J,ie=ie==Ye?_t:ie;var oe=J==_t,ae=ie==_t,xe=J==ie;if(xe&&Hi(u)){if(!Hi(p))return!1;k=!0,oe=!1}if(xe&&!oe)return _||(_=new yr),k||Ss(u)?ya(u,p,g,C,R,_):Fl(u,p,J,g,C,R,_);if(!(g&se)){var je=oe&&Se.call(u,"__wrapped__"),Ue=ae&&Se.call(p,"__wrapped__");if(je||Ue){var it=je?u.value():u,We=Ue?p.value():p;return _||(_=new yr),R(it,We,g,C,_)}}return xe?(_||(_=new yr),ad(u,p,g,C,R,_)):!1}function ai(u){return Kt(u)&&Sn(u)==Dt}function bo(u,p,g,C){var R=g.length,_=R,k=!C;if(u==null)return!_;for(u=d(u);R--;){var U=g[R];if(k&&U[2]?U[1]!==u[U[0]]:!(U[0]in u))return!1}for(;++R<_;){U=g[R];var J=U[0],ie=u[J],oe=U[1];if(k&&U[2]){if(ie===V&&!(J in u))return!1}else{var ae=new yr;if(C)var xe=C(ie,oe,J,u,p,ae);if(!(xe===V?ji(oe,ie,se|ve,C,ae):xe))return!1}}return!0}function ru(u){if(!$t(u)||cf(u))return!1;var p=hi(u)?Mr:pn;return p.test(di(u))}function Uc(u){return Kt(u)&&nn(u)==Nn}function Wc(u){return Kt(u)&&Sn(u)==an}function Cl(u){return Kt(u)&&Mu(u.length)&&!!ut[nn(u)]}function wl(u){return typeof u=="function"?u:u==null?x:typeof u=="object"?Ke(u)?Pl(u[0],u[1]):ou(u):Eg(u)}function iu(u){if(!va(u))return Oc(u);var p=[];for(var g in d(u))Se.call(u,g)&&g!="constructor"&&p.push(g);return p}function $c(u){if(!$t(u))return ff(u);var p=va(u),g=[];for(var C in u)C=="constructor"&&(p||!Se.call(u,C))||g.push(C);return g}function fs(u,p){return u<p}function Gc(u,p){var g=-1,C=jn(u)?K(u.length):[];return oi(u,function(R,_,k){C[++g]=p(R,_,k)}),C}function ou(u){var p=Cu(u);return p.length==1&&p[0][2]?xu(p[0][0],p[0][1]):function(g){return g===u||bo(g,u,p)}}function Pl(u,p){return wu(u)&&Pu(p)?xu(ir(u),p):function(g){var C=oc(g,u);return C===V&&C===p?sc(g,u):ji(p,C,se|ve)}}function su(u,p,g,C,R){u!==p&&Nr(p,function(_,k){if(R||(R=new yr),$t(_))xl(u,p,k,g,su,C,R);else{var U=C?C(Gl(u,k),_,k+"",u,p,R):V;U===V&&(U=_),yo(u,k,U)}},Dn)}function xl(u,p,g,C,R,_,k){var U=Gl(u,g),J=Gl(p,g),ie=k.get(J);if(ie){yo(u,g,ie);return}var oe=_?_(U,J,g+"",u,p,k):V,ae=oe===V;if(ae){var xe=Ke(J),je=!xe&&Hi(J),Ue=!xe&&!je&&Ss(J);oe=J,xe||je||Ue?Ke(U)?oe=U:rn(U)?oe=_n(U):je?(ae=!1,oe=Dl(J,!0)):Ue?(ae=!1,oe=pu(J,!0)):oe=[]:Vs(J)||Vo(J)?(oe=U,Vo(U)?oe=ic(U):(!$t(U)||hi(U))&&(oe=Fi(J))):ae=!1}ae&&(k.set(J,oe),R(oe,J,C,_,k),k.delete(J)),yo(u,g,oe)}function pa(u,p){var g=u.length;if(g)return p+=p<0?g:0,kr(p,g)?u[p]:V}function Jc(u,p,g){p.length?p=jt(p,function(_){return Ke(_)?function(k){return si(k,_.length===1?_[0]:_)}:_}):p=[x];var C=-1;p=jt(p,Nt(Be()));var R=Gc(u,function(_,k,U){var J=jt(p,function(ie){return ie(_)});return{criteria:J,index:++C,value:_}});return lo(R,function(_,k){return Ml(_,k,g)})}function qr(u,p){return Vl(u,p,function(g,C){return sc(u,C)})}function Vl(u,p,g){for(var C=-1,R=p.length,_={};++C<R;){var k=p[C],U=si(u,k);g(U,k)&&ps(_,Fr(k,u),U)}return _}function Yp(u){return function(p){return si(p,u)}}function au(u,p,g,C){var R=C?Na:Kr,_=-1,k=p.length,U=u;for(u===p&&(p=_n(p)),g&&(U=jt(u,Nt(g)));++_<k;)for(var J=0,ie=p[_],oe=g?g(ie):ie;(J=R(U,oe,J,C))>-1;)U!==u&&oa.call(U,J,1),oa.call(u,J,1);return u}function Sl(u,p){for(var g=u?p.length:0,C=g-1;g--;){var R=p[g];if(g==C||R!==_){var _=R;kr(R)?oa.call(u,R,1):Il(u,R)}}return u}function Ni(u,p){return u+rs(sa()*(p-u+1))}function El(u,p,g,C){for(var R=-1,_=Mt(Ga((p-u)/(g||1)),0),k=K(_);_--;)k[C?_:++R]=u,u+=g;return k}function uu(u,p){var g="";if(!u||p<1||p>It)return g;do p%2&&(g+=u),p=rs(p/2),p&&(u+=u);while(p);return g}function Xe(u,p){return Jl(Wl(u,p,x),u+"")}function lu(u){return eu(ur(u))}function Ol(u,p){var g=ur(u);return Su(g,ii(p,0,g.length))}function ps(u,p,g,C){if(!$t(u))return u;p=Fr(p,u);for(var R=-1,_=p.length,k=_-1,U=u;U!=null&&++R<_;){var J=ir(p[R]),ie=g;if(J==="__proto__"||J==="constructor"||J==="prototype")return u;if(R!=k){var oe=U[J];ie=C?C(oe,J,U):V,ie===V&&(ie=$t(oe)?oe:kr(p[R+1])?[]:{})}as(U,J,ie),U=U[J]}return u}var cu=ua?function(u,p){return ua.set(u,p),u}:x,Zc=ns?function(u,p){return ns(u,"toString",{configurable:!0,enumerable:!1,value:So(p),writable:!0})}:x;function Xp(u){return Su(ur(u))}function Un(u,p,g){var C=-1,R=u.length;p<0&&(p=-p>R?0:R+p),g=g>R?R:g,g<0&&(g+=R),R=p>g?0:g-p>>>0,p>>>=0;for(var _=K(R);++C<R;)_[C]=u[C+p];return _}function ed(u,p){var g;return oi(u,function(C,R,_){return g=p(C,R,_),!g}),!!g}function fu(u,p,g){var C=0,R=u==null?C:u.length;if(typeof p=="number"&&p===p&&R<=mt){for(;C<R;){var _=C+R>>>1,k=u[_];k!==null&&!$n(k)&&(g?k<=p:k<p)?C=_+1:R=_}return R}return ds(u,p,x,g)}function ds(u,p,g,C){var R=0,_=u==null?0:u.length;if(_===0)return 0;p=g(p);for(var k=p!==p,U=p===null,J=$n(p),ie=p===V;R<_;){var oe=rs((R+_)/2),ae=g(u[oe]),xe=ae!==V,je=ae===null,Ue=ae===ae,it=$n(ae);if(k)var We=C||Ue;else ie?We=Ue&&(C||xe):U?We=Ue&&xe&&(C||!je):J?We=Ue&&xe&&!je&&(C||!it):je||it?We=!1:We=C?ae<=p:ae<p;We?R=oe+1:_=oe}return gn(_,ke)}function Kc(u,p){for(var g=-1,C=u.length,R=0,_=[];++g<C;){var k=u[g],U=p?p(k):k;if(!g||!Pr(U,J)){var J=U;_[R++]=k===0?0:k}}return _}function Tl(u){return typeof u=="number"?u:$n(u)?G:+u}function Wn(u){if(typeof u=="string")return u;if(Ke(u))return jt(u,Wn)+"";if($n(u))return Ac?Ac.call(u):"";var p=u+"";return p=="0"&&1/u==-1/0?"-0":p}function nr(u,p,g){var C=-1,R=Zr,_=u.length,k=!0,U=[],J=U;if(g)k=!1,R=Js;else if(_>=E){var ie=p?null:od(u);if(ie)return Xn(ie);k=!1,R=Oi,J=new Ct}else J=p?[]:U;e:for(;++C<_;){var oe=u[C],ae=p?p(oe):oe;if(oe=g||oe!==0?oe:0,k&&ae===ae){for(var xe=J.length;xe--;)if(J[xe]===ae)continue e;p&&J.push(ae),U.push(oe)}else R(J,ae,g)||(J!==U&&J.push(ae),U.push(oe))}return U}function Il(u,p){return p=Fr(p,u),u=$l(u,p),u==null||delete u[ir(or(p))]}function Yc(u,p,g,C){return ps(u,p,g(si(u,p)),C)}function da(u,p,g,C){for(var R=u.length,_=C?R:-1;(C?_--:++_<R)&&p(u[_],_,u););return g?Un(u,C?0:_,C?_+1:R):Un(u,C?_+1:0,C?R:_)}function Xc(u,p){var g=u;return g instanceof ft&&(g=g.value()),so(p,function(C,R){return R.func.apply(R.thisArg,kt([C],R.args))},g)}function hs(u,p,g){var C=u.length;if(C<2)return C?nr(u[0]):[];for(var R=-1,_=K(C);++R<C;)for(var k=u[R],U=-1;++U<C;)U!=R&&(_[R]=ls(_[R]||k,u[U],p,g));return nr(zt(_,1),p,g)}function Rl(u,p,g){for(var C=-1,R=u.length,_=p.length,k={};++C<R;){var U=C<_?p[C]:V;g(k,u[C],U)}return k}function Al(u){return rn(u)?u:[]}function Br(u){return typeof u=="function"?u:x}function Fr(u,p){return Ke(u)?u:wu(u,p)?[u]:hf(Ot(u))}var td=Xe;function ui(u,p,g){var C=u.length;return g=g===V?C:g,!p&&g>=C?u:Un(u,p,g)}var ef=Wa||function(u){return Jt.clearTimeout(u)};function Dl(u,p){if(p)return u.slice();var g=u.length,C=ra?ra(g):new u.constructor(g);return u.copy(C),C}function Ll(u){var p=new u.constructor(u.byteLength);return new na(p).set(new na(u)),p}function tf(u,p){var g=p?Ll(u.buffer):u.buffer;return new u.constructor(g,u.byteOffset,u.byteLength)}function nd(u){var p=new u.constructor(u.source,js.exec(u));return p.lastIndex=u.lastIndex,p}function qi(u){return qt?d(qt.call(u)):{}}function pu(u,p){var g=p?Ll(u.buffer):u.buffer;return new u.constructor(g,u.byteOffset,u.length)}function nf(u,p){if(u!==p){var g=u!==V,C=u===null,R=u===u,_=$n(u),k=p!==V,U=p===null,J=p===p,ie=$n(p);if(!U&&!ie&&!_&&u>p||_&&k&&J&&!U&&!ie||C&&k&&J||!g&&J||!R)return 1;if(!C&&!_&&!ie&&u<p||ie&&g&&R&&!C&&!_||U&&g&&R||!k&&R||!J)return-1}return 0}function Ml(u,p,g){for(var C=-1,R=u.criteria,_=p.criteria,k=R.length,U=g.length;++C<k;){var J=nf(R[C],_[C]);if(J){if(C>=U)return J;var ie=g[C];return J*(ie=="desc"?-1:1)}}return u.index-p.index}function gs(u,p,g,C){for(var R=-1,_=u.length,k=g.length,U=-1,J=p.length,ie=Mt(_-k,0),oe=K(J+ie),ae=!C;++U<J;)oe[U]=p[U];for(;++R<k;)(ae||R<_)&&(oe[g[R]]=u[R]);for(;ie--;)oe[U++]=u[R++];return oe}function li(u,p,g,C){for(var R=-1,_=u.length,k=-1,U=g.length,J=-1,ie=p.length,oe=Mt(_-U,0),ae=K(oe+ie),xe=!C;++R<oe;)ae[R]=u[R];for(var je=R;++J<ie;)ae[je+J]=p[J];for(;++k<U;)(xe||R<_)&&(ae[je+g[k]]=u[R++]);return ae}function _n(u,p){var g=-1,C=u.length;for(p||(p=K(C));++g<C;)p[g]=u[g];return p}function rr(u,p,g,C){var R=!g;g||(g={});for(var _=-1,k=p.length;++_<k;){var U=p[_],J=C?C(g[U],u[U],U,g,u):V;J===V&&(J=u[U]),R?ri(g,U,J):as(g,U,J)}return g}function Qt(u,p){return rr(u,Ql(u),p)}function rd(u,p){return rr(u,Vn(u),p)}function ha(u,p){return function(g,C){var R=Ke(g)?Zo:pl,_=p?p():{};return R(g,u,Be(C,2),_)}}function Co(u){return Xe(function(p,g){var C=-1,R=g.length,_=R>1?g[R-1]:V,k=R>2?g[2]:V;for(_=u.length>3&&typeof _=="function"?(R--,_):V,k&&En(g[0],g[1],k)&&(_=R<3?V:_,R=1),p=d(p);++C<R;){var U=g[C];U&&u(p,U,C,_)}return p})}function du(u,p){return function(g,C){if(g==null)return g;if(!jn(g))return u(g,C);for(var R=g.length,_=p?R:-1,k=d(g);(p?_--:++_<R)&&C(k[_],_,k)!==!1;);return g}}function _l(u){return function(p,g,C){for(var R=-1,_=d(p),k=C(p),U=k.length;U--;){var J=k[u?U:++R];if(g(_[J],J,_)===!1)break}return p}}function id(u,p,g){var C=p&de,R=wo(u);function _(){var k=this&&this!==Jt&&this instanceof _?R:u;return k.apply(C?g:this,arguments)}return _}function hu(u){return function(p){p=Ot(p);var g=Ti(p)?Rn(p):V,C=g?g[0]:p.charAt(0),R=g?ui(g,1).join(""):p.slice(1);return C[u]()+R}}function ms(u){return function(p){return so(mc(zi(p).replace(Ar,"")),u,"")}}function wo(u){return function(){var p=arguments;switch(p.length){case 0:return new u;case 1:return new u(p[0]);case 2:return new u(p[0],p[1]);case 3:return new u(p[0],p[1],p[2]);case 4:return new u(p[0],p[1],p[2],p[3]);case 5:return new u(p[0],p[1],p[2],p[3],p[4]);case 6:return new u(p[0],p[1],p[2],p[3],p[4],p[5]);case 7:return new u(p[0],p[1],p[2],p[3],p[4],p[5],p[6])}var g=ss(u.prototype),C=u.apply(g,p);return $t(C)?C:g}}function jl(u,p,g){var C=wo(u);function R(){for(var _=arguments.length,k=K(_),U=_,J=Cs(R);U--;)k[U]=arguments[U];var ie=_<3&&k[0]!==J&&k[_-1]!==J?[]:en(k,J);if(_-=ie.length,_<g)return vs(u,p,gu,R.placeholder,V,k,ie,V,V,g-_);var oe=this&&this!==Jt&&this instanceof R?C:u;return Ut(oe,this,k)}return R}function An(u){return function(p,g,C){var R=d(p);if(!jn(p)){var _=Be(g,3);p=un(p),g=function(U){return _(R[U],U,R)}}var k=u(p,g,C);return k>-1?R[_?p[k]:k]:V}}function ga(u){return fi(function(p){var g=p.length,C=g,R=Mn.prototype.thru;for(u&&p.reverse();C--;){var _=p[C];if(typeof _!="function")throw new f(M);if(R&&!k&&bu(_)=="wrapper")var k=new Mn([],!0)}for(C=k?C:g;++C<g;){_=p[C];var U=bu(_),J=U=="wrapper"?br(_):V;J&&zl(J[0])&&J[1]==(Ze|pe|Re|rt)&&!J[4].length&&J[9]==1?k=k[bu(J[0])].apply(k,J[3]):k=_.length==1&&zl(_)?k[U]():k.thru(_)}return function(){var ie=arguments,oe=ie[0];if(k&&ie.length==1&&Ke(oe))return k.plant(oe).value();for(var ae=0,xe=g?p[ae].apply(this,ie):oe;++ae<g;)xe=p[ae].call(this,xe);return xe}})}function gu(u,p,g,C,R,_,k,U,J,ie){var oe=p&Ze,ae=p&de,xe=p&nt,je=p&(pe|D),Ue=p&De,it=xe?V:wo(u);function We(){for(var ht=arguments.length,Pt=K(ht),xr=ht;xr--;)Pt[xr]=arguments[xr];if(je)var Gn=Cs(We),Vr=Xu(Pt,Gn);if(C&&(Pt=gs(Pt,C,R,je)),_&&(Pt=li(Pt,_,k,je)),ht-=Vr,je&&ht<ie){var ln=en(Pt,Gn);return vs(u,p,gu,We.placeholder,g,Pt,ln,U,J,ie-ht)}var mi=ae?g:this,Eo=xe?mi[u]:u;return ht=Pt.length,U?Pt=dd(Pt,U):Ue&&ht>1&&Pt.reverse(),oe&&J<ht&&(Pt.length=J),this&&this!==Jt&&this instanceof We&&(Eo=it||wo(Eo)),Eo.apply(mi,Pt)}return We}function mu(u,p){return function(g,C){return bl(g,u,p(C),{})}}function yu(u,p){return function(g,C){var R;if(g===V&&C===V)return p;if(g!==V&&(R=g),C!==V){if(R===V)return C;typeof g=="string"||typeof C=="string"?(g=Wn(g),C=Wn(C)):(g=Tl(g),C=Tl(C)),R=u(g,C)}return R}}function Bi(u){return fi(function(p){return p=jt(p,Nt(Be())),Xe(function(g){var C=this;return u(p,function(R){return Ut(R,C,g)})})})}function ys(u,p){p=p===V?" ":Wn(p);var g=p.length;if(g<2)return g?uu(p,u):p;var C=uu(p,Ga(u/Xr(p)));return Ti(p)?ui(Rn(C),0,u).join(""):C.slice(0,u)}function rf(u,p,g,C){var R=p&de,_=wo(u);function k(){for(var U=-1,J=arguments.length,ie=-1,oe=C.length,ae=K(oe+J),xe=this&&this!==Jt&&this instanceof k?_:u;++ie<oe;)ae[ie]=C[ie];for(;J--;)ae[ie++]=arguments[++U];return Ut(xe,R?g:this,ae)}return k}function vr(u){return function(p,g,C){return C&&typeof C!="number"&&En(p,g,C)&&(g=C=V),p=gi(p),g===V?(g=p,p=0):g=gi(g),C=C===V?p<g?1:-1:gi(C),El(p,g,C,u)}}function ma(u){return function(p,g){return typeof p=="string"&&typeof g=="string"||(p=ar(p),g=ar(g)),u(p,g)}}function vs(u,p,g,C,R,_,k,U,J,ie){var oe=p&pe,ae=oe?k:V,xe=oe?V:k,je=oe?_:V,Ue=oe?V:_;p|=oe?Re:be,p&=~(oe?be:Re),p&_e||(p&=-4);var it=[u,p,R,je,ae,Ue,xe,U,J,ie],We=g.apply(V,it);return zl(u)&&pf(We,it),We.placeholder=C,df(We,u,p)}function Nl(u){var p=ge[u];return function(g,C){if(g=ar(g),C=C==null?0:gn(et(C),292),C&&is(g)){var R=(Ot(g)+"e").split("e"),_=p(R[0]+"e"+(+R[1]+C));return R=(Ot(_)+"e").split("e"),+(R[0]+"e"+(+R[1]-C))}return p(g)}}var od=ti&&1/Xn(new ti([,-0]))[1]==gt?function(u){return new ti(u)}:wt;function ql(u){return function(p){var g=Sn(p);return g==Dt?bn(p):g==an?Xs(p):z(p,u(p))}}function ci(u,p,g,C,R,_,k,U){var J=p&nt;if(!J&&typeof u!="function")throw new f(M);var ie=C?C.length:0;if(ie||(p&=-97,C=R=V),k=k===V?k:Mt(et(k),0),U=U===V?U:et(U),ie-=R?R.length:0,p&be){var oe=C,ae=R;C=R=V}var xe=J?V:br(u),je=[u,p,g,C,R,oe,ae,_,k,U];if(xe&&pd(je,xe),u=je[0],p=je[1],g=je[2],C=je[3],R=je[4],U=je[9]=je[9]===V?J?0:u.length:Mt(je[9]-ie,0),!U&&p&(pe|D)&&(p&=-25),!p||p==de)var Ue=id(u,p,g);else p==pe||p==D?Ue=jl(u,p,U):(p==Re||p==(de|Re))&&!R.length?Ue=rf(u,p,g,C):Ue=gu.apply(V,je);var it=xe?cu:pf;return df(it(Ue,je),u,p)}function Bl(u,p,g,C){return u===V||Pr(u,W[g])&&!Se.call(C,g)?p:u}function vu(u,p,g,C,R,_){return $t(u)&&$t(p)&&(_.set(p,u),su(u,p,V,vu,_),_.delete(p)),u}function sd(u){return Vs(u)?V:u}function ya(u,p,g,C,R,_){var k=g&se,U=u.length,J=p.length;if(U!=J&&!(k&&J>U))return!1;var ie=_.get(u),oe=_.get(p);if(ie&&oe)return ie==p&&oe==u;var ae=-1,xe=!0,je=g&ve?new Ct:V;for(_.set(u,p),_.set(p,u);++ae<U;){var Ue=u[ae],it=p[ae];if(C)var We=k?C(it,Ue,ae,p,u,_):C(Ue,it,ae,u,p,_);if(We!==V){if(We)continue;xe=!1;break}if(je){if(!Zs(p,function(ht,Pt){if(!Oi(je,Pt)&&(Ue===ht||R(Ue,ht,g,C,_)))return je.push(Pt)})){xe=!1;break}}else if(!(Ue===it||R(Ue,it,g,C,_))){xe=!1;break}}return _.delete(u),_.delete(p),xe}function Fl(u,p,g,C,R,_,k){switch(g){case kn:if(u.byteLength!=p.byteLength||u.byteOffset!=p.byteOffset)return!1;u=u.buffer,p=p.buffer;case Fn:return!(u.byteLength!=p.byteLength||!_(new na(u),new na(p)));case Ft:case He:case Xt:return Pr(+u,+p);case Rt:return u.name==p.name&&u.message==p.message;case Nn:case On:return u==p+"";case Dt:var U=bn;case an:var J=C&se;if(U||(U=Xn),u.size!=p.size&&!J)return!1;var ie=k.get(u);if(ie)return ie==p;C|=ve,k.set(u,p);var oe=ya(U(u),U(p),C,R,_,k);return k.delete(u),oe;case cn:if(qt)return qt.call(u)==qt.call(p)}return!1}function ad(u,p,g,C,R,_){var k=g&se,U=bs(u),J=U.length,ie=bs(p),oe=ie.length;if(J!=oe&&!k)return!1;for(var ae=J;ae--;){var xe=U[ae];if(!(k?xe in p:Se.call(p,xe)))return!1}var je=_.get(u),Ue=_.get(p);if(je&&Ue)return je==p&&Ue==u;var it=!0;_.set(u,p),_.set(p,u);for(var We=k;++ae<J;){xe=U[ae];var ht=u[xe],Pt=p[xe];if(C)var xr=k?C(Pt,ht,xe,p,u,_):C(ht,Pt,xe,u,p,_);if(!(xr===V?ht===Pt||R(ht,Pt,g,C,_):xr)){it=!1;break}We||(We=xe=="constructor")}if(it&&!We){var Gn=u.constructor,Vr=p.constructor;Gn!=Vr&&"constructor"in u&&"constructor"in p&&!(typeof Gn=="function"&&Gn instanceof Gn&&typeof Vr=="function"&&Vr instanceof Vr)&&(it=!1)}return _.delete(u),_.delete(p),it}function fi(u){return Jl(Wl(u,V,Ou),u+"")}function bs(u){return tu(u,un,Ql)}function kl(u){return tu(u,Dn,Vn)}var br=ua?function(u){return ua.get(u)}:wt;function bu(u){for(var p=u.name+"",g=Ai[p],C=Se.call(Ai,p)?g.length:0;C--;){var R=g[C],_=R.func;if(_==null||_==u)return R.name}return p}function Cs(u){var p=Se.call(L,"placeholder")?L:u;return p.placeholder}function Be(){var u=L.iteratee||I;return u=u===I?wl:u,arguments.length?u(arguments[0],arguments[1]):u}function ws(u,p){var g=u.__data__;return lf(p)?g[typeof p=="string"?"string":"hash"]:g.map}function Cu(u){for(var p=un(u),g=p.length;g--;){var C=p[g],R=u[C];p[g]=[C,R,Pu(R)]}return p}function Cr(u,p){var g=Fa(u,p);return ru(g)?g:V}function ud(u){var p=Se.call(u,go),g=u[go];try{u[go]=V;var C=!0}catch{}var R=Pn.call(u);return C&&(p?u[go]=g:delete u[go]),R}var Ql=mo?function(u){return u==null?[]:(u=d(u),gr(mo(u),function(p){return Ec.call(u,p)}))}:pg,Vn=mo?function(u){for(var p=[];u;)kt(p,Ql(u)),u=ia(u);return p}:pg,Sn=nn;(ol&&Sn(new ol(new ArrayBuffer(1)))!=kn||aa&&Sn(new aa)!=Dt||mr&&Sn(mr.resolve())!=cr||ti&&Sn(new ti)!=an||_r&&Sn(new _r)!=Bn)&&(Sn=function(u){var p=nn(u),g=p==_t?u.constructor:V,C=g?di(g):"";if(C)switch(C){case sl:return kn;case Ic:return Dt;case Np:return cr;case Ja:return an;case Rc:return Bn}return p});function Hl(u,p,g){for(var C=-1,R=g.length;++C<R;){var _=g[C],k=_.size;switch(_.type){case"drop":u+=k;break;case"dropRight":p-=k;break;case"take":p=gn(p,u+k);break;case"takeRight":u=Mt(u,p-k);break}}return{start:u,end:p}}function ld(u){var p=u.match(Mo);return p?p[1].split(Va):[]}function pi(u,p,g){p=Fr(p,u);for(var C=-1,R=p.length,_=!1;++C<R;){var k=ir(p[C]);if(!(_=u!=null&&g(u,k)))break;u=u[k]}return _||++C!=R?_:(R=u==null?0:u.length,!!R&&Mu(R)&&kr(k,R)&&(Ke(u)||Vo(u)))}function of(u){var p=u.length,g=new u.constructor(p);return p&&typeof u[0]=="string"&&Se.call(u,"index")&&(g.index=u.index,g.input=u.input),g}function Fi(u){return typeof u.constructor=="function"&&!va(u)?ss(ia(u)):{}}function sf(u,p,g){var C=u.constructor;switch(p){case Fn:return Ll(u);case Ft:case He:return new C(+u);case kn:return tf(u,g);case Er:case zr:case fr:case Or:case Ur:case Wr:case Zn:case Kn:case Le:return pu(u,g);case Dt:return new C;case Xt:case On:return new C(u);case Nn:return nd(u);case an:return new C;case cn:return qi(u)}}function af(u,p){var g=p.length;if(!g)return u;var C=g-1;return p[C]=(g>1?"& ":"")+p[C],p=p.join(g>2?", ":" "),u.replace(Zu,`{
-/* [wrapped with `+p+`] */
-`)}function uf(u){return Ke(u)||Vo(u)||!!(bt&&u&&u[bt])}function kr(u,p){var g=typeof u;return p=p??It,!!p&&(g=="number"||g!="symbol"&&Ku.test(u))&&u>-1&&u%1==0&&u<p}function En(u,p,g){if(!$t(g))return!1;var C=typeof p;return(C=="number"?jn(g)&&kr(p,g.length):C=="string"&&p in g)?Pr(g[p],u):!1}function wu(u,p){if(Ke(u))return!1;var g=typeof u;return g=="number"||g=="symbol"||g=="boolean"||u==null||$n(u)?!0:Ds.test(u)||!Wi.test(u)||p!=null&&u in d(p)}function lf(u){var p=typeof u;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?u!=="__proto__":u===null}function zl(u){var p=bu(u),g=L[p];if(typeof g!="function"||!(p in ft.prototype))return!1;if(u===g)return!0;var C=br(g);return!!C&&u===C[0]}function cf(u){return!!vt&&vt in u}var cd=ne?hi:dg;function va(u){var p=u&&u.constructor,g=typeof p=="function"&&p.prototype||W;return u===g}function Pu(u){return u===u&&!$t(u)}function xu(u,p){return function(g){return g==null?!1:g[u]===p&&(p!==V||u in d(g))}}function fd(u){var p=Du(u,function(C){return g.size===m&&g.clear(),C}),g=p.cache;return p}function pd(u,p){var g=u[1],C=p[1],R=g|C,_=R<(de|nt|Ze),k=C==Ze&&g==pe||C==Ze&&g==rt&&u[7].length<=p[8]||C==(Ze|rt)&&p[7].length<=p[8]&&g==pe;if(!(_||k))return u;C&de&&(u[2]=p[2],R|=g&de?0:_e);var U=p[3];if(U){var J=u[3];u[3]=J?gs(J,U,p[4]):U,u[4]=J?en(u[3],A):p[4]}return U=p[5],U&&(J=u[5],u[5]=J?li(J,U,p[6]):U,u[6]=J?en(u[5],A):p[6]),U=p[7],U&&(u[7]=U),C&Ze&&(u[8]=u[8]==null?p[8]:gn(u[8],p[8])),u[9]==null&&(u[9]=p[9]),u[0]=p[0],u[1]=R,u}function ff(u){var p=[];if(u!=null)for(var g in d(u))p.push(g);return p}function Ul(u){return Pn.call(u)}function Wl(u,p,g){return p=Mt(p===V?u.length-1:p,0),function(){for(var C=arguments,R=-1,_=Mt(C.length-p,0),k=K(_);++R<_;)k[R]=C[p+R];R=-1;for(var U=K(p+1);++R<p;)U[R]=C[R];return U[p]=g(k),Ut(u,this,U)}}function $l(u,p){return p.length<2?u:si(u,Un(p,0,-1))}function dd(u,p){for(var g=u.length,C=gn(p.length,g),R=_n(u);C--;){var _=p[C];u[C]=kr(_,g)?R[_]:V}return u}function Gl(u,p){if(!(p==="constructor"&&typeof u[p]=="function")&&p!="__proto__")return u[p]}var pf=Vu(cu),ki=$a||function(u,p){return Jt.setTimeout(u,p)},Jl=Vu(Zc);function df(u,p,g){var C=p+"";return Jl(u,af(C,hd(ld(C),g)))}function Vu(u){var p=0,g=0;return function(){var C=Tc(),R=$e-(C-g);if(g=C,R>0){if(++p>=ot)return arguments[0]}else p=0;return u.apply(V,arguments)}}function Su(u,p){var g=-1,C=u.length,R=C-1;for(p=p===V?C:p;++g<p;){var _=Ni(g,R),k=u[_];u[_]=u[g],u[g]=k}return u.length=p,u}var hf=fd(function(u){var p=[];return u.charCodeAt(0)===46&&p.push(""),u.replace($r,function(g,C,R,_){p.push(R?_.replace(_o,"$1"):C||g)}),p});function ir(u){if(typeof u=="string"||$n(u))return u;var p=u+"";return p=="0"&&1/u==-1/0?"-0":p}function di(u){if(u!=null){try{return ue.call(u)}catch{}try{return u+""}catch{}}return""}function hd(u,p){return dn(Ne,function(g){var C="_."+g[0];p&g[1]&&!Zr(u,C)&&u.push(C)}),u.sort()}function Po(u){if(u instanceof ft)return u.clone();var p=new Mn(u.__wrapped__,u.__chain__);return p.__actions__=_n(u.__actions__),p.__index__=u.__index__,p.__values__=u.__values__,p}function gd(u,p,g){(g?En(u,p,g):p===V)?p=1:p=Mt(et(p),0);var C=u==null?0:u.length;if(!C||p<1)return[];for(var R=0,_=0,k=K(Ga(C/p));R<C;)k[_++]=Un(u,R,R+=p);return k}function Zl(u){for(var p=-1,g=u==null?0:u.length,C=0,R=[];++p<g;){var _=u[p];_&&(R[C++]=_)}return R}function md(){var u=arguments.length;if(!u)return[];for(var p=K(u-1),g=arguments[0],C=u;C--;)p[C-1]=arguments[C];return kt(Ke(g)?_n(g):[g],zt(p,1))}var Eu=Xe(function(u,p){return rn(u)?ls(u,zt(p,1,rn,!0)):[]}),gf=Xe(function(u,p){var g=or(p);return rn(g)&&(g=V),rn(u)?ls(u,zt(p,1,rn,!0),Be(g,2)):[]}),mf=Xe(function(u,p){var g=or(p);return rn(g)&&(g=V),rn(u)?ls(u,zt(p,1,rn,!0),V,g):[]});function yd(u,p,g){var C=u==null?0:u.length;return C?(p=g||p===V?1:et(p),Un(u,p<0?0:p,C)):[]}function vd(u,p,g){var C=u==null?0:u.length;return C?(p=g||p===V?1:et(p),p=C-p,Un(u,0,p<0?0:p)):[]}function yf(u,p){return u&&u.length?da(u,Be(p,3),!0,!0):[]}function bd(u,p){return u&&u.length?da(u,Be(p,3),!0):[]}function vf(u,p,g,C){var R=u==null?0:u.length;return R?(g&&typeof g!="number"&&En(u,p,g)&&(g=0,C=R),Jp(u,p,g,C)):[]}function Kl(u,p,g){var C=u==null?0:u.length;if(!C)return-1;var R=g==null?0:et(g);return R<0&&(R=Mt(C+R,0)),uo(u,Be(p,3),R)}function Ps(u,p,g){var C=u==null?0:u.length;if(!C)return-1;var R=C-1;return g!==V&&(R=et(g),R=g<0?Mt(C+R,0):gn(R,C-1)),uo(u,Be(p,3),R,!0)}function Ou(u){var p=u==null?0:u.length;return p?zt(u,1):[]}function Cd(u){var p=u==null?0:u.length;return p?zt(u,gt):[]}function wd(u,p){var g=u==null?0:u.length;return g?(p=p===V?1:et(p),zt(u,p)):[]}function bf(u){for(var p=-1,g=u==null?0:u.length,C={};++p<g;){var R=u[p];C[R[0]]=R[1]}return C}function Cf(u){return u&&u.length?u[0]:V}function wf(u,p,g){var C=u==null?0:u.length;if(!C)return-1;var R=g==null?0:et(g);return R<0&&(R=Mt(C+R,0)),Kr(u,p,R)}function Pd(u){var p=u==null?0:u.length;return p?Un(u,0,-1):[]}var xd=Xe(function(u){var p=jt(u,Al);return p.length&&p[0]===u[0]?vl(p):[]}),Vd=Xe(function(u){var p=or(u),g=jt(u,Al);return p===or(g)?p=V:g.pop(),g.length&&g[0]===u[0]?vl(g,Be(p,2)):[]}),Sd=Xe(function(u){var p=or(u),g=jt(u,Al);return p=typeof p=="function"?p:V,p&&g.pop(),g.length&&g[0]===u[0]?vl(g,V,p):[]});function Ed(u,p){return u==null?"":jp.call(u,p)}function or(u){var p=u==null?0:u.length;return p?u[p-1]:V}function Od(u,p,g){var C=u==null?0:u.length;if(!C)return-1;var R=C;return g!==V&&(R=et(g),R=R<0?Mt(C+R,0):gn(R,C-1)),p===p?ea(u,p,R):uo(u,qa,R,!0)}function Td(u,p){return u&&u.length?pa(u,et(p)):V}var Id=Xe(Pf);function Pf(u,p){return u&&u.length&&p&&p.length?au(u,p):u}function Rd(u,p,g){return u&&u.length&&p&&p.length?au(u,p,Be(g,2)):u}function xf(u,p,g){return u&&u.length&&p&&p.length?au(u,p,V,g):u}var Qi=fi(function(u,p){var g=u==null?0:u.length,C=dl(u,p);return Sl(u,jt(p,function(R){return kr(R,g)?+R:R}).sort(nf)),C});function Vf(u,p){var g=[];if(!(u&&u.length))return g;var C=-1,R=[],_=u.length;for(p=Be(p,3);++C<_;){var k=u[C];p(k,C,u)&&(g.push(k),R.push(C))}return Sl(u,R),g}function Tu(u){return u==null?u:il.call(u)}function Ad(u,p,g){var C=u==null?0:u.length;return C?(g&&typeof g!="number"&&En(u,p,g)?(p=0,g=C):(p=p==null?0:et(p),g=g===V?C:et(g)),Un(u,p,g)):[]}function Iu(u,p){return fu(u,p)}function Dd(u,p,g){return ds(u,p,Be(g,2))}function i(u,p){var g=u==null?0:u.length;if(g){var C=fu(u,p);if(C<g&&Pr(u[C],p))return C}return-1}function t(u,p){return fu(u,p,!0)}function e(u,p,g){return ds(u,p,Be(g,2),!0)}function n(u,p){var g=u==null?0:u.length;if(g){var C=fu(u,p,!0)-1;if(Pr(u[C],p))return C}return-1}function r(u){return u&&u.length?Kc(u):[]}function o(u,p){return u&&u.length?Kc(u,Be(p,2)):[]}function s(u){var p=u==null?0:u.length;return p?Un(u,1,p):[]}function c(u,p,g){return u&&u.length?(p=g||p===V?1:et(p),Un(u,0,p<0?0:p)):[]}function y(u,p,g){var C=u==null?0:u.length;return C?(p=g||p===V?1:et(p),p=C-p,Un(u,p<0?0:p,C)):[]}function w(u,p){return u&&u.length?da(u,Be(p,3),!1,!0):[]}function N(u,p){return u&&u.length?da(u,Be(p,3)):[]}var Q=Xe(function(u){return nr(zt(u,1,rn,!0))}),Y=Xe(function(u){var p=or(u);return rn(p)&&(p=V),nr(zt(u,1,rn,!0),Be(p,2))}),ce=Xe(function(u){var p=or(u);return p=typeof p=="function"?p:V,nr(zt(u,1,rn,!0),V,p)});function fe(u){return u&&u.length?nr(u):[]}function Oe(u,p){return u&&u.length?nr(u,Be(p,2)):[]}function Ee(u,p){return p=typeof p=="function"?p:V,u&&u.length?nr(u,V,p):[]}function me(u){if(!(u&&u.length))return[];var p=0;return u=gr(u,function(g){if(rn(g))return p=Mt(g.length,p),!0}),Yo(p,function(g){return jt(u,Ln(g))})}function ze(u,p){if(!(u&&u.length))return[];var g=me(u);return p==null?g:jt(g,function(C){return Ut(p,V,C)})}var Wt=Xe(function(u,p){return rn(u)?ls(u,p):[]}),Zt=Xe(function(u){return hs(gr(u,rn))}),sr=Xe(function(u){var p=or(u);return rn(p)&&(p=V),hs(gr(u,rn),Be(p,2))}),wr=Xe(function(u){var p=or(u);return p=typeof p=="function"?p:V,hs(gr(u,rn),V,p)}),xs=Xe(me);function xo(u,p){return Rl(u||[],p||[],as)}function Ld(u,p){return Rl(u||[],p||[],ps)}var Md=Xe(function(u){var p=u.length,g=p>1?u[p-1]:V;return g=typeof g=="function"?(u.pop(),g):V,ze(u,g)});function Yl(u){var p=L(u);return p.__chain__=!0,p}function _d(u,p){return p(u),u}function ba(u,p){return p(u)}var Sf=fi(function(u){var p=u.length,g=p?u[0]:0,C=this.__wrapped__,R=function(_){return dl(_,u)};return p>1||this.__actions__.length||!(C instanceof ft)||!kr(g)?this.thru(R):(C=C.slice(g,+g+(p?1:0)),C.__actions__.push({func:ba,args:[R],thisArg:V}),new Mn(C,this.__chain__).thru(function(_){return p&&!_.length&&_.push(V),_}))});function Ef(){return Yl(this)}function jd(){return new Mn(this.value(),this.__chain__)}function Nd(){this.__values__===V&&(this.__values__=Kf(this.value()));var u=this.__index__>=this.__values__.length,p=u?V:this.__values__[this.__index__++];return{done:u,value:p}}function Of(){return this}function qd(u){for(var p,g=this;g instanceof la;){var C=Po(g);C.__index__=0,C.__values__=V,p?R.__wrapped__=C:p=C;var R=C;g=g.__wrapped__}return R.__wrapped__=u,p}function Bd(){var u=this.__wrapped__;if(u instanceof ft){var p=u;return this.__actions__.length&&(p=new ft(this)),p=p.reverse(),p.__actions__.push({func:ba,args:[Tu],thisArg:V}),new Mn(p,this.__chain__)}return this.thru(Tu)}function Fd(){return Xc(this.__wrapped__,this.__actions__)}var kd=ha(function(u,p,g){Se.call(u,g)?++u[g]:ri(u,g,1)});function Qd(u,p,g){var C=Ke(u)?oo:Hc;return g&&En(u,p,g)&&(p=V),C(u,Be(p,3))}function Hd(u,p){var g=Ke(u)?gr:St;return g(u,Be(p,3))}var zd=An(Kl),Ud=An(Ps);function Wd(u,p){return zt(Ru(u,p),1)}function $d(u,p){return zt(Ru(u,p),gt)}function Gd(u,p,g){return g=g===V?1:et(g),zt(Ru(u,p),g)}function Tf(u,p){var g=Ke(u)?dn:oi;return g(u,Be(p,3))}function If(u,p){var g=Ke(u)?Ma:hl;return g(u,Be(p,3))}var Jd=ha(function(u,p,g){Se.call(u,g)?u[g].push(p):ri(u,g,[p])});function Zd(u,p,g,C){u=jn(u)?u:ur(u),g=g&&!C?et(g):0;var R=u.length;return g<0&&(g=Mt(R+g,0)),Nu(u)?g<=R&&u.indexOf(p,g)>-1:!!R&&Kr(u,p,g)>-1}var Kd=Xe(function(u,p,g){var C=-1,R=typeof p=="function",_=jn(u)?K(u.length):[];return oi(u,function(k){_[++C]=R?Ut(p,k,g):cs(k,p,g)}),_}),Yd=ha(function(u,p,g){ri(u,g,p)});function Ru(u,p){var g=Ke(u)?jt:Gc;return g(u,Be(p,3))}function Xd(u,p,g,C){return u==null?[]:(Ke(p)||(p=p==null?[]:[p]),g=C?V:g,Ke(g)||(g=g==null?[]:[g]),Jc(u,p,g))}var eh=ha(function(u,p,g){u[g?0:1].push(p)},function(){return[[],[]]});function th(u,p,g){var C=Ke(u)?so:Ks,R=arguments.length<3;return C(u,Be(p,4),g,R,oi)}function nh(u,p,g){var C=Ke(u)?Ko:Ks,R=arguments.length<3;return C(u,Be(p,4),g,R,hl)}function rh(u,p){var g=Ke(u)?gr:St;return g(u,Lu(Be(p,3)))}function ih(u){var p=Ke(u)?eu:lu;return p(u)}function oh(u,p,g){(g?En(u,p,g):p===V)?p=1:p=et(p);var C=Ke(u)?Bc:Ol;return C(u,p)}function sh(u){var p=Ke(u)?fl:Xp;return p(u)}function ah(u){if(u==null)return 0;if(jn(u))return Nu(u)?Xr(u):u.length;var p=Sn(u);return p==Dt||p==an?u.size:iu(u).length}function uh(u,p,g){var C=Ke(u)?Zs:ed;return g&&En(u,p,g)&&(p=V),C(u,Be(p,3))}var lh=Xe(function(u,p){if(u==null)return[];var g=p.length;return g>1&&En(u,p[0],p[1])?p=[]:g>2&&En(p[0],p[1],p[2])&&(p=[p[0]]),Jc(u,zt(p,1),[])}),Au=_p||function(){return Jt.Date.now()};function ch(u,p){if(typeof p!="function")throw new f(M);return u=et(u),function(){if(--u<1)return p.apply(this,arguments)}}function Rf(u,p,g){return p=g?V:p,p=u&&p==null?u.length:p,ci(u,Ze,V,V,V,V,p)}function Af(u,p){var g;if(typeof p!="function")throw new f(M);return u=et(u),function(){return--u>0&&(g=p.apply(this,arguments)),u<=1&&(p=V),g}}var Xl=Xe(function(u,p,g){var C=de;if(g.length){var R=en(g,Cs(Xl));C|=Re}return ci(u,C,p,g,R)}),ec=Xe(function(u,p,g){var C=de|nt;if(g.length){var R=en(g,Cs(ec));C|=Re}return ci(p,C,u,g,R)});function Df(u,p,g){p=g?V:p;var C=ci(u,pe,V,V,V,V,V,p);return C.placeholder=Df.placeholder,C}function Lf(u,p,g){p=g?V:p;var C=ci(u,D,V,V,V,V,V,p);return C.placeholder=Lf.placeholder,C}function Mf(u,p,g){var C,R,_,k,U,J,ie=0,oe=!1,ae=!1,xe=!0;if(typeof u!="function")throw new f(M);p=ar(p)||0,$t(g)&&(oe=!!g.leading,ae="maxWait"in g,_=ae?Mt(ar(g.maxWait)||0,p):_,xe="trailing"in g?!!g.trailing:xe);function je(ln){var mi=C,Eo=R;return C=R=V,ie=ln,k=u.apply(Eo,mi),k}function Ue(ln){return ie=ln,U=ki(ht,p),oe?je(ln):k}function it(ln){var mi=ln-J,Eo=ln-ie,Og=p-mi;return ae?gn(Og,_-Eo):Og}function We(ln){var mi=ln-J,Eo=ln-ie;return J===V||mi>=p||mi<0||ae&&Eo>=_}function ht(){var ln=Au();if(We(ln))return Pt(ln);U=ki(ht,it(ln))}function Pt(ln){return U=V,xe&&C?je(ln):(C=R=V,k)}function xr(){U!==V&&ef(U),ie=0,C=J=R=U=V}function Gn(){return U===V?k:Pt(Au())}function Vr(){var ln=Au(),mi=We(ln);if(C=arguments,R=this,J=ln,mi){if(U===V)return Ue(J);if(ae)return ef(U),U=ki(ht,p),je(J)}return U===V&&(U=ki(ht,p)),k}return Vr.cancel=xr,Vr.flush=Gn,Vr}var fh=Xe(function(u,p){return Qc(u,1,p)}),ph=Xe(function(u,p,g){return Qc(u,ar(p)||0,g)});function dh(u){return ci(u,De)}function Du(u,p){if(typeof u!="function"||p!=null&&typeof p!="function")throw new f(M);var g=function(){var C=arguments,R=p?p.apply(this,C):C[0],_=g.cache;if(_.has(R))return _.get(R);var k=u.apply(this,C);return g.cache=_.set(R,k)||_,k};return g.cache=new(Du.Cache||Hn),g}Du.Cache=Hn;function Lu(u){if(typeof u!="function")throw new f(M);return function(){var p=arguments;switch(p.length){case 0:return!u.call(this);case 1:return!u.call(this,p[0]);case 2:return!u.call(this,p[0],p[1]);case 3:return!u.call(this,p[0],p[1],p[2])}return!u.apply(this,p)}}function hh(u){return Af(2,u)}var gh=td(function(u,p){p=p.length==1&&Ke(p[0])?jt(p[0],Nt(Be())):jt(zt(p,1),Nt(Be()));var g=p.length;return Xe(function(C){for(var R=-1,_=gn(C.length,g);++R<_;)C[R]=p[R].call(this,C[R]);return Ut(u,this,C)})}),tc=Xe(function(u,p){var g=en(p,Cs(tc));return ci(u,Re,V,p,g)}),_f=Xe(function(u,p){var g=en(p,Cs(_f));return ci(u,be,V,p,g)}),mh=fi(function(u,p){return ci(u,rt,V,V,V,p)});function yh(u,p){if(typeof u!="function")throw new f(M);return p=p===V?p:et(p),Xe(u,p)}function vh(u,p){if(typeof u!="function")throw new f(M);return p=p==null?0:Mt(et(p),0),Xe(function(g){var C=g[p],R=ui(g,0,p);return C&&kt(R,C),Ut(u,this,R)})}function bh(u,p,g){var C=!0,R=!0;if(typeof u!="function")throw new f(M);return $t(g)&&(C="leading"in g?!!g.leading:C,R="trailing"in g?!!g.trailing:R),Mf(u,p,{leading:C,maxWait:p,trailing:R})}function Ch(u){return Rf(u,1)}function jf(u,p){return tc(Br(p),u)}function Nf(){if(!arguments.length)return[];var u=arguments[0];return Ke(u)?u:[u]}function qf(u){return tr(u,he)}function Bf(u,p){return p=typeof p=="function"?p:V,tr(u,he,p)}function wh(u){return tr(u,H|he)}function Ph(u,p){return p=typeof p=="function"?p:V,tr(u,H|he,p)}function xh(u,p){return p==null||kc(u,p,un(p))}function Pr(u,p){return u===p||u!==u&&p!==p}var Vh=ma(ml),Sh=ma(function(u,p){return u>=p}),Vo=nu(function(){return arguments}())?nu:function(u){return Kt(u)&&Se.call(u,"callee")&&!Ec.call(u,"callee")},Ke=K.isArray,Eh=Jo?Nt(Jo):Zp;function jn(u){return u!=null&&Mu(u.length)&&!hi(u)}function rn(u){return Kt(u)&&jn(u)}function Oh(u){return u===!0||u===!1||Kt(u)&&nn(u)==Ft}var Hi=nl||dg,Th=io?Nt(io):_i;function Ff(u){return Kt(u)&&u.nodeType===1&&!Vs(u)}function Ih(u){if(u==null)return!0;if(jn(u)&&(Ke(u)||typeof u=="string"||typeof u.splice=="function"||Hi(u)||Ss(u)||Vo(u)))return!u.length;var p=Sn(u);if(p==Dt||p==an)return!u.size;if(va(u))return!iu(u).length;for(var g in u)if(Se.call(u,g))return!1;return!0}function kf(u,p){return ji(u,p)}function Rh(u,p,g){g=typeof g=="function"?g:V;var C=g?g(u,p):V;return C===V?ji(u,p,V,g):!!C}function nc(u){if(!Kt(u))return!1;var p=nn(u);return p==Rt||p==Qe||typeof u.message=="string"&&typeof u.name=="string"&&!Vs(u)}function Ah(u){return typeof u=="number"&&is(u)}function hi(u){if(!$t(u))return!1;var p=nn(u);return p==At||p==Gt||p==on||p==Sr}function Qf(u){return typeof u=="number"&&u==et(u)}function Mu(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=It}function $t(u){var p=typeof u;return u!=null&&(p=="object"||p=="function")}function Kt(u){return u!=null&&typeof u=="object"}var _u=$s?Nt($s):ai;function Hf(u,p){return u===p||bo(u,p,Cu(p))}function Dh(u,p,g){return g=typeof g=="function"?g:V,bo(u,p,Cu(p),g)}function zf(u){return rc(u)&&u!=+u}function Uf(u){if(cd(u))throw new Ge(B);return ru(u)}function Lh(u){return u===null}function Wf(u){return u==null}function rc(u){return typeof u=="number"||Kt(u)&&nn(u)==Xt}function Vs(u){if(!Kt(u)||nn(u)!=_t)return!1;var p=ia(u);if(p===null)return!0;var g=Se.call(p,"constructor")&&p.constructor;return typeof g=="function"&&g instanceof g&&ue.call(g)==Cn}var ju=Si?Nt(Si):Uc;function $f(u){return Qf(u)&&u>=-9007199254740991&&u<=It}var Gf=Gs?Nt(Gs):Wc;function Nu(u){return typeof u=="string"||!Ke(u)&&Kt(u)&&nn(u)==On}function $n(u){return typeof u=="symbol"||Kt(u)&&nn(u)==cn}var Ss=La?Nt(La):Cl;function Mh(u){return u===V}function Jf(u){return Kt(u)&&Sn(u)==Bn}function Zf(u){return Kt(u)&&nn(u)==Hr}var _h=ma(fs),jh=ma(function(u,p){return u<=p});function Kf(u){if(!u)return[];if(jn(u))return Nu(u)?Rn(u):_n(u);if(er&&u[er])return Qa(u[er]());var p=Sn(u),g=p==Dt?bn:p==an?Xn:ur;return g(u)}function gi(u){if(!u)return u===0?u:0;if(u=ar(u),u===gt||u===-1/0){var p=u<0?-1:1;return p*Vt}return u===u?u:0}function et(u){var p=gi(u),g=p%1;return p===p?g?p-g:p:0}function Yf(u){return u?ii(et(u),0,yt):0}function ar(u){if(typeof u=="number")return u;if($n(u))return G;if($t(u)){var p=typeof u.valueOf=="function"?u.valueOf():u;u=$t(p)?p+"":p}if(typeof u!="string")return u===0?u:+u;u=vn(u);var g=qs.test(u);return g||Ir.test(u)?ro(u.slice(2),g?2:8):Ns.test(u)?G:+u}function ic(u){return rr(u,Dn(u))}function Nh(u){return u?ii(et(u),-9007199254740991,It):u===0?u:0}function Ot(u){return u==null?"":Wn(u)}var qh=Co(function(u,p){if(va(p)||jn(p)){rr(p,un(p),u);return}for(var g in p)Se.call(p,g)&&as(u,g,p[g])}),Xf=Co(function(u,p){rr(p,Dn(p),u)}),qu=Co(function(u,p,g,C){rr(p,Dn(p),u,C)}),Bh=Co(function(u,p,g,C){rr(p,un(p),u,C)}),Fh=fi(dl);function kh(u,p){var g=ss(u);return p==null?g:us(g,p)}var Qh=Xe(function(u,p){u=d(u);var g=-1,C=p.length,R=C>2?p[2]:V;for(R&&En(p[0],p[1],R)&&(C=1);++g<C;)for(var _=p[g],k=Dn(_),U=-1,J=k.length;++U<J;){var ie=k[U],oe=u[ie];(oe===V||Pr(oe,W[ie])&&!Se.call(u,ie))&&(u[ie]=_[ie])}return u}),Hh=Xe(function(u){return u.push(V,vu),Ut(uc,V,u)});function zh(u,p){return ja(u,Be(p,3),zn)}function Uh(u,p){return ja(u,Be(p,3),fa)}function ep(u,p){return u==null?u:Nr(u,Be(p,3),Dn)}function tp(u,p){return u==null?u:gl(u,Be(p,3),Dn)}function Wh(u,p){return u&&zn(u,Be(p,3))}function $h(u,p){return u&&fa(u,Be(p,3))}function np(u){return u==null?[]:Mi(u,un(u))}function Gh(u){return u==null?[]:Mi(u,Dn(u))}function oc(u,p,g){var C=u==null?V:si(u,p);return C===V?g:C}function Jh(u,p){return u!=null&&pi(u,p,vo)}function sc(u,p){return u!=null&&pi(u,p,zc)}var ac=mu(function(u,p,g){p!=null&&typeof p.toString!="function"&&(p=Pn.call(p)),u[p]=g},So(x)),Zh=mu(function(u,p,g){p!=null&&typeof p.toString!="function"&&(p=Pn.call(p)),Se.call(u,p)?u[p].push(g):u[p]=[g]},Be),Kh=Xe(cs);function un(u){return jn(u)?qc(u):iu(u)}function Dn(u){return jn(u)?qc(u,!0):$c(u)}function rp(u,p){var g={};return p=Be(p,3),zn(u,function(C,R,_){ri(g,p(C,R,_),C)}),g}function ip(u,p){var g={};return p=Be(p,3),zn(u,function(C,R,_){ri(g,R,p(C,R,_))}),g}var op=Co(function(u,p,g){su(u,p,g)}),uc=Co(function(u,p,g,C){su(u,p,g,C)}),Yh=fi(function(u,p){var g={};if(u==null)return g;var C=!1;p=jt(p,function(_){return _=Fr(_,u),C||(C=_.length>1),_}),rr(u,kl(u),g),C&&(g=tr(g,H|ee|he,sd));for(var R=p.length;R--;)Il(g,p[R]);return g});function sp(u,p){return S(u,Lu(Be(p)))}var ap=fi(function(u,p){return u==null?{}:qr(u,p)});function S(u,p){if(u==null)return{};var g=jt(kl(u),function(C){return[C]});return p=Be(p),Vl(u,g,function(C,R){return p(C,R[0])})}function Me(u,p,g){p=Fr(p,u);var C=-1,R=p.length;for(R||(R=1,u=V);++C<R;){var _=u==null?V:u[ir(p[C])];_===V&&(C=R,_=g),u=hi(_)?_.call(u):_}return u}function Bu(u,p,g){return u==null?u:ps(u,p,g)}function Qr(u,p,g,C){return C=typeof C=="function"?C:V,u==null?u:ps(u,p,g,C)}var Fu=ql(un),we=ql(Dn);function Te(u,p,g){var C=Ke(u),R=C||Hi(u)||Ss(u);if(p=Be(p,4),g==null){var _=u&&u.constructor;R?g=C?new _:[]:$t(u)?g=hi(_)?ss(ia(u)):{}:g={}}return(R?dn:zn)(u,function(k,U,J){return p(g,k,U,J)}),g}function ku(u,p){return u==null?!0:Il(u,p)}function Qu(u,p,g){return u==null?u:Yc(u,p,Br(g))}function qe(u,p,g,C){return C=typeof C=="function"?C:V,u==null?u:Yc(u,p,Br(g),C)}function ur(u){return u==null?[]:co(u,un(u))}function Xh(u){return u==null?[]:co(u,Dn(u))}function eg(u,p,g){return g===V&&(g=p,p=V),g!==V&&(g=ar(g),g=g===g?g:0),p!==V&&(p=ar(p),p=p===p?p:0),ii(ar(u),p,g)}function up(u,p,g){return p=gi(p),g===V?(g=p,p=0):g=gi(g),u=ar(u),yl(u,p,g)}function lp(u,p,g){if(g&&typeof g!="boolean"&&En(u,p,g)&&(p=g=V),g===V&&(typeof p=="boolean"?(g=p,p=V):typeof u=="boolean"&&(g=u,u=V)),u===V&&p===V?(u=0,p=1):(u=gi(u),p===V?(p=u,u=0):p=gi(p)),u>p){var C=u;u=p,p=C}if(g||u%1||p%1){var R=sa();return gn(u+R*(p-u+Pi("1e-"+((R+"").length-1))),p)}return Ni(u,p)}var Pe=ms(function(u,p,g){return p=p.toLowerCase(),u+(g?cp(p):p)});function cp(u){return Hu(Ot(u).toLowerCase())}function zi(u){return u=Ot(u),u&&u.replace(Bs,el).replace(Qo,"")}function fp(u,p,g){u=Ot(u),p=Wn(p);var C=u.length;g=g===V?C:ii(et(g),0,C);var R=g;return g-=p.length,g>=0&&u.slice(g,R)==p}function lc(u){return u=Ot(u),u&&Gu.test(u)?u.replace(Do,Ba):u}function pp(u){return u=Ot(u),u&&Ls.test(u)?u.replace($i,"\\$&"):u}var cc=ms(function(u,p,g){return u+(g?"-":"")+p.toLowerCase()}),dp=ms(function(u,p,g){return u+(g?" ":"")+p.toLowerCase()}),fc=hu("toLowerCase");function hp(u,p,g){u=Ot(u),p=et(p);var C=p?Xr(u):0;if(!p||C>=p)return u;var R=(p-C)/2;return ys(rs(R),g)+u+ys(Ga(R),g)}function pc(u,p,g){u=Ot(u),p=et(p);var C=p?Xr(u):0;return p&&C<p?u+ys(p-C,g):u}function gp(u,p,g){u=Ot(u),p=et(p);var C=p?Xr(u):0;return p&&C<p?ys(p-C,g)+u:u}function dc(u,p,g){return g||p==null?p=0:p&&(p=+p),rl(Ot(u).replace(Lo,""),p||0)}function mp(u,p,g){return(g?En(u,p,g):p===V)?p=1:p=et(p),uu(Ot(u),p)}function hc(){var u=arguments,p=Ot(u[0]);return u.length<3?p:p.replace(u[1],u[2])}var yp=ms(function(u,p,g){return u+(g?"_":"")+p.toLowerCase()});function gc(u,p,g){return g&&typeof g!="number"&&En(u,p,g)&&(p=g=V),g=g===V?yt:g>>>0,g?(u=Ot(u),u&&(typeof p=="string"||p!=null&&!ju(p))&&(p=Wn(p),!p&&Ti(u))?ui(Rn(u),0,g):u.split(p,g)):[]}var tg=ms(function(u,p,g){return u+(g?" ":"")+Hu(p)});function ng(u,p,g){return u=Ot(u),g=g==null?0:ii(et(g),0,u.length),p=Wn(p),u.slice(g,g+p.length)==p}function rg(u,p,g){var C=L.templateSettings;g&&En(u,p,g)&&(p=V),u=Ot(u),p=qu({},p,C,Bl);var R=qu({},p.imports,C.imports,Bl),_=un(R),k=co(R,_),U,J,ie=0,oe=p.interpolate||jo,ae="__p += '",xe=l((p.escape||jo).source+"|"+oe.source+"|"+(oe===pr?_s:jo).source+"|"+(p.evaluate||jo).source+"|$","g"),je="//# sourceURL="+(Se.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Aa+"]")+`
-`;u.replace(xe,function(We,ht,Pt,xr,Gn,Vr){return Pt||(Pt=xr),ae+=u.slice(ie,Vr).replace(Ea,fo),ht&&(U=!0,ae+=`' +
-__e(`+ht+`) +
-'`),Gn&&(J=!0,ae+=`';
-`+Gn+`;
-__p += '`),Pt&&(ae+=`' +
-((__t = (`+Pt+`)) == null ? '' : __t) +
-'`),ie=Vr+We.length,We}),ae+=`';
-`;var Ue=Se.call(p,"variable")&&p.variable;if(!Ue)ae=`with (obj) {
-`+ae+`
-}
-`;else if(Ms.test(Ue))throw new Ge(j);ae=(J?ae.replace(Yn,""):ae).replace(Ao,"$1").replace($u,"$1;"),ae="function("+(Ue||"obj")+`) {
-`+(Ue?"":`obj || (obj = {});
-`)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(J?`, __j = Array.prototype.join;
-function print() { __p += __j.call(arguments, '') }
-`:`;
-`)+ae+`return __p
-}`;var it=yc(function(){return dt(_,je+"return "+ae).apply(V,k)});if(it.source=ae,nc(it))throw it;return it}function vp(u){return Ot(u).toLowerCase()}function ig(u){return Ot(u).toUpperCase()}function og(u,p,g){if(u=Ot(u),u&&(g||p===V))return vn(u);if(!u||!(p=Wn(p)))return u;var C=Rn(u),R=Rn(p),_=Xo(C,R),k=es(C,R)+1;return ui(C,_,k).join("")}function bp(u,p,g){if(u=Ot(u),u&&(g||p===V))return u.slice(0,ts(u)+1);if(!u||!(p=Wn(p)))return u;var C=Rn(u),R=es(C,Rn(p))+1;return ui(C,0,R).join("")}function sg(u,p,g){if(u=Ot(u),u&&(g||p===V))return u.replace(Lo,"");if(!u||!(p=Wn(p)))return u;var C=Rn(u),R=Xo(C,Rn(p));return ui(C,R).join("")}function ag(u,p){var g=Bt,C=Ae;if($t(p)){var R="separator"in p?p.separator:R;g="length"in p?et(p.length):g,C="omission"in p?Wn(p.omission):C}u=Ot(u);var _=u.length;if(Ti(u)){var k=Rn(u);_=k.length}if(g>=_)return u;var U=g-Xr(C);if(U<1)return C;var J=k?ui(k,0,U).join(""):u.slice(0,U);if(R===V)return J+C;if(k&&(U+=J.length-U),ju(R)){if(u.slice(U).search(R)){var ie,oe=J;for(R.global||(R=l(R.source,Ot(js.exec(R))+"g")),R.lastIndex=0;ie=R.exec(oe);)var ae=ie.index;J=J.slice(0,ae===V?U:ae)}}else if(u.indexOf(Wn(R),U)!=U){var xe=J.lastIndexOf(R);xe>-1&&(J=J.slice(0,xe))}return J+C}function ug(u){return u=Ot(u),u&&xa.test(u)?u.replace(As,ta):u}var lg=ms(function(u,p,g){return u+(g?" ":"")+p.toUpperCase()}),Hu=hu("toUpperCase");function mc(u,p,g){return u=Ot(u),p=g?V:p,p===V?ka(u)?Ua(u):ao(u):u.match(p)||[]}var yc=Xe(function(u,p){try{return Ut(u,V,p)}catch(g){return nc(g)?g:new Ge(g)}}),Cp=fi(function(u,p){return dn(p,function(g){g=ir(g),ri(u,g,Xl(u[g],u))}),u});function Es(u){var p=u==null?0:u.length,g=Be();return u=p?jt(u,function(C){if(typeof C[1]!="function")throw new f(M);return[g(C[0]),C[1]]}):[],Xe(function(C){for(var R=-1;++R<p;){var _=u[R];if(Ut(_[0],this,C))return Ut(_[1],this,C)}})}function cg(u){return Fc(tr(u,H))}function So(u){return function(){return u}}function tt(u,p){return u==null||u!==u?p:u}var wp=ga(),fg=ga(!0);function x(u){return u}function I(u){return wl(typeof u=="function"?u:tr(u,H))}function Z(u){return ou(tr(u,H))}function q(u,p){return Pl(u,tr(p,H))}var X=Xe(function(u,p){return function(g){return cs(g,u,p)}}),le=Xe(function(u,p){return function(g){return cs(u,g,p)}});function Ce(u,p,g){var C=un(p),R=Mi(p,C);g==null&&!($t(p)&&(R.length||!C.length))&&(g=p,p=u,u=this,R=Mi(p,un(p)));var _=!($t(g)&&"chain"in g)||!!g.chain,k=hi(u);return dn(R,function(U){var J=p[U];u[U]=J,k&&(u.prototype[U]=function(){var ie=this.__chain__;if(_||ie){var oe=u(this.__wrapped__),ae=oe.__actions__=_n(this.__actions__);return ae.push({func:J,args:arguments,thisArg:u}),oe.__chain__=ie,oe}return J.apply(u,kt([this.value()],arguments))})}),u}function Ie(){return Jt._===this&&(Jt._=Ri),this}function wt(){}function Tt(u){return u=et(u),Xe(function(p){return pa(p,u)})}var vc=Bi(jt),Xg=Bi(oo),em=Bi(Zs);function Eg(u){return wu(u)?Ln(ir(u)):Yp(u)}function tm(u){return function(p){return u==null?V:si(u,p)}}var nm=vr(),rm=vr(!0);function pg(){return[]}function dg(){return!1}function im(){return{}}function om(){return""}function sm(){return!0}function am(u,p){if(u=et(u),u<1||u>It)return[];var g=yt,C=gn(u,yt);p=Be(p),u-=yt;for(var R=Yo(C,p);++g<u;)p(g);return R}function um(u){return Ke(u)?jt(u,ir):$n(u)?[u]:_n(hf(Ot(u)))}function lm(u){var p=++Fe;return Ot(u)+p}var cm=yu(function(u,p){return u+p},0),fm=Nl("ceil"),pm=yu(function(u,p){return u/p},1),dm=Nl("floor");function hm(u){return u&&u.length?jr(u,x,ml):V}function gm(u,p){return u&&u.length?jr(u,Be(p,2),ml):V}function mm(u){return Yr(u,x)}function ym(u,p){return Yr(u,Be(p,2))}function vm(u){return u&&u.length?jr(u,x,fs):V}function bm(u,p){return u&&u.length?jr(u,Be(p,2),fs):V}var Cm=yu(function(u,p){return u*p},1),wm=Nl("round"),Pm=yu(function(u,p){return u-p},0);function xm(u){return u&&u.length?Ys(u,x):0}function Vm(u,p){return u&&u.length?Ys(u,Be(p,2)):0}return L.after=ch,L.ary=Rf,L.assign=qh,L.assignIn=Xf,L.assignInWith=qu,L.assignWith=Bh,L.at=Fh,L.before=Af,L.bind=Xl,L.bindAll=Cp,L.bindKey=ec,L.castArray=Nf,L.chain=Yl,L.chunk=gd,L.compact=Zl,L.concat=md,L.cond=Es,L.conforms=cg,L.constant=So,L.countBy=kd,L.create=kh,L.curry=Df,L.curryRight=Lf,L.debounce=Mf,L.defaults=Qh,L.defaultsDeep=Hh,L.defer=fh,L.delay=ph,L.difference=Eu,L.differenceBy=gf,L.differenceWith=mf,L.drop=yd,L.dropRight=vd,L.dropRightWhile=yf,L.dropWhile=bd,L.fill=vf,L.filter=Hd,L.flatMap=Wd,L.flatMapDeep=$d,L.flatMapDepth=Gd,L.flatten=Ou,L.flattenDeep=Cd,L.flattenDepth=wd,L.flip=dh,L.flow=wp,L.flowRight=fg,L.fromPairs=bf,L.functions=np,L.functionsIn=Gh,L.groupBy=Jd,L.initial=Pd,L.intersection=xd,L.intersectionBy=Vd,L.intersectionWith=Sd,L.invert=ac,L.invertBy=Zh,L.invokeMap=Kd,L.iteratee=I,L.keyBy=Yd,L.keys=un,L.keysIn=Dn,L.map=Ru,L.mapKeys=rp,L.mapValues=ip,L.matches=Z,L.matchesProperty=q,L.memoize=Du,L.merge=op,L.mergeWith=uc,L.method=X,L.methodOf=le,L.mixin=Ce,L.negate=Lu,L.nthArg=Tt,L.omit=Yh,L.omitBy=sp,L.once=hh,L.orderBy=Xd,L.over=vc,L.overArgs=gh,L.overEvery=Xg,L.overSome=em,L.partial=tc,L.partialRight=_f,L.partition=eh,L.pick=ap,L.pickBy=S,L.property=Eg,L.propertyOf=tm,L.pull=Id,L.pullAll=Pf,L.pullAllBy=Rd,L.pullAllWith=xf,L.pullAt=Qi,L.range=nm,L.rangeRight=rm,L.rearg=mh,L.reject=rh,L.remove=Vf,L.rest=yh,L.reverse=Tu,L.sampleSize=oh,L.set=Bu,L.setWith=Qr,L.shuffle=sh,L.slice=Ad,L.sortBy=lh,L.sortedUniq=r,L.sortedUniqBy=o,L.split=gc,L.spread=vh,L.tail=s,L.take=c,L.takeRight=y,L.takeRightWhile=w,L.takeWhile=N,L.tap=_d,L.throttle=bh,L.thru=ba,L.toArray=Kf,L.toPairs=Fu,L.toPairsIn=we,L.toPath=um,L.toPlainObject=ic,L.transform=Te,L.unary=Ch,L.union=Q,L.unionBy=Y,L.unionWith=ce,L.uniq=fe,L.uniqBy=Oe,L.uniqWith=Ee,L.unset=ku,L.unzip=me,L.unzipWith=ze,L.update=Qu,L.updateWith=qe,L.values=ur,L.valuesIn=Xh,L.without=Wt,L.words=mc,L.wrap=jf,L.xor=Zt,L.xorBy=sr,L.xorWith=wr,L.zip=xs,L.zipObject=xo,L.zipObjectDeep=Ld,L.zipWith=Md,L.entries=Fu,L.entriesIn=we,L.extend=Xf,L.extendWith=qu,Ce(L,L),L.add=cm,L.attempt=yc,L.camelCase=Pe,L.capitalize=cp,L.ceil=fm,L.clamp=eg,L.clone=qf,L.cloneDeep=wh,L.cloneDeepWith=Ph,L.cloneWith=Bf,L.conformsTo=xh,L.deburr=zi,L.defaultTo=tt,L.divide=pm,L.endsWith=fp,L.eq=Pr,L.escape=lc,L.escapeRegExp=pp,L.every=Qd,L.find=zd,L.findIndex=Kl,L.findKey=zh,L.findLast=Ud,L.findLastIndex=Ps,L.findLastKey=Uh,L.floor=dm,L.forEach=Tf,L.forEachRight=If,L.forIn=ep,L.forInRight=tp,L.forOwn=Wh,L.forOwnRight=$h,L.get=oc,L.gt=Vh,L.gte=Sh,L.has=Jh,L.hasIn=sc,L.head=Cf,L.identity=x,L.includes=Zd,L.indexOf=wf,L.inRange=up,L.invoke=Kh,L.isArguments=Vo,L.isArray=Ke,L.isArrayBuffer=Eh,L.isArrayLike=jn,L.isArrayLikeObject=rn,L.isBoolean=Oh,L.isBuffer=Hi,L.isDate=Th,L.isElement=Ff,L.isEmpty=Ih,L.isEqual=kf,L.isEqualWith=Rh,L.isError=nc,L.isFinite=Ah,L.isFunction=hi,L.isInteger=Qf,L.isLength=Mu,L.isMap=_u,L.isMatch=Hf,L.isMatchWith=Dh,L.isNaN=zf,L.isNative=Uf,L.isNil=Wf,L.isNull=Lh,L.isNumber=rc,L.isObject=$t,L.isObjectLike=Kt,L.isPlainObject=Vs,L.isRegExp=ju,L.isSafeInteger=$f,L.isSet=Gf,L.isString=Nu,L.isSymbol=$n,L.isTypedArray=Ss,L.isUndefined=Mh,L.isWeakMap=Jf,L.isWeakSet=Zf,L.join=Ed,L.kebabCase=cc,L.last=or,L.lastIndexOf=Od,L.lowerCase=dp,L.lowerFirst=fc,L.lt=_h,L.lte=jh,L.max=hm,L.maxBy=gm,L.mean=mm,L.meanBy=ym,L.min=vm,L.minBy=bm,L.stubArray=pg,L.stubFalse=dg,L.stubObject=im,L.stubString=om,L.stubTrue=sm,L.multiply=Cm,L.nth=Td,L.noConflict=Ie,L.noop=wt,L.now=Au,L.pad=hp,L.padEnd=pc,L.padStart=gp,L.parseInt=dc,L.random=lp,L.reduce=th,L.reduceRight=nh,L.repeat=mp,L.replace=hc,L.result=Me,L.round=wm,L.runInContext=$,L.sample=ih,L.size=ah,L.snakeCase=yp,L.some=uh,L.sortedIndex=Iu,L.sortedIndexBy=Dd,L.sortedIndexOf=i,L.sortedLastIndex=t,L.sortedLastIndexBy=e,L.sortedLastIndexOf=n,L.startCase=tg,L.startsWith=ng,L.subtract=Pm,L.sum=xm,L.sumBy=Vm,L.template=rg,L.times=am,L.toFinite=gi,L.toInteger=et,L.toLength=Yf,L.toLower=vp,L.toNumber=ar,L.toSafeInteger=Nh,L.toString=Ot,L.toUpper=ig,L.trim=og,L.trimEnd=bp,L.trimStart=sg,L.truncate=ag,L.unescape=ug,L.uniqueId=lm,L.upperCase=lg,L.upperFirst=Hu,L.each=Tf,L.eachRight=If,L.first=Cf,Ce(L,function(){var u={};return zn(L,function(p,g){Se.call(L.prototype,g)||(u[g]=p)}),u}(),{chain:!1}),L.VERSION=T,dn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){L[u].placeholder=L}),dn(["drop","take"],function(u,p){ft.prototype[u]=function(g){g=g===V?1:Mt(et(g),0);var C=this.__filtered__&&!p?new ft(this):this.clone();return C.__filtered__?C.__takeCount__=gn(g,C.__takeCount__):C.__views__.push({size:gn(g,yt),type:u+(C.__dir__<0?"Right":"")}),C},ft.prototype[u+"Right"]=function(g){return this.reverse()[u](g).reverse()}}),dn(["filter","map","takeWhile"],function(u,p){var g=p+1,C=g==lt||g==st;ft.prototype[u]=function(R){var _=this.clone();return _.__iteratees__.push({iteratee:Be(R,3),type:g}),_.__filtered__=_.__filtered__||C,_}}),dn(["head","last"],function(u,p){var g="take"+(p?"Right":"");ft.prototype[u]=function(){return this[g](1).value()[0]}}),dn(["initial","tail"],function(u,p){var g="drop"+(p?"":"Right");ft.prototype[u]=function(){return this.__filtered__?new ft(this):this[g](1)}}),ft.prototype.compact=function(){return this.filter(x)},ft.prototype.find=function(u){return this.filter(u).head()},ft.prototype.findLast=function(u){return this.reverse().find(u)},ft.prototype.invokeMap=Xe(function(u,p){return typeof u=="function"?new ft(this):this.map(function(g){return cs(g,u,p)})}),ft.prototype.reject=function(u){return this.filter(Lu(Be(u)))},ft.prototype.slice=function(u,p){u=et(u);var g=this;return g.__filtered__&&(u>0||p<0)?new ft(g):(u<0?g=g.takeRight(-u):u&&(g=g.drop(u)),p!==V&&(p=et(p),g=p<0?g.dropRight(-p):g.take(p-u)),g)},ft.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},ft.prototype.toArray=function(){return this.take(yt)},zn(ft.prototype,function(u,p){var g=/^(?:filter|find|map|reject)|While$/.test(p),C=/^(?:head|last)$/.test(p),R=L[C?"take"+(p=="last"?"Right":""):p],_=C||/^find/.test(p);R&&(L.prototype[p]=function(){var k=this.__wrapped__,U=C?[1]:arguments,J=k instanceof ft,ie=U[0],oe=J||Ke(k),ae=function(ht){var Pt=R.apply(L,kt([ht],U));return C&&xe?Pt[0]:Pt};oe&&g&&typeof ie=="function"&&ie.length!=1&&(J=oe=!1);var xe=this.__chain__,je=!!this.__actions__.length,Ue=_&&!xe,it=J&&!je;if(!_&&oe){k=it?k:new ft(this);var We=u.apply(k,U);return We.__actions__.push({func:ba,args:[ae],thisArg:V}),new Mn(We,xe)}return Ue&&it?u.apply(this,U):(We=this.thru(ae),Ue?C?We.value()[0]:We.value():We)})}),dn(["pop","push","shift","sort","splice","unshift"],function(u){var p=h[u],g=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",C=/^(?:pop|shift)$/.test(u);L.prototype[u]=function(){var R=arguments;if(C&&!this.__chain__){var _=this.value();return p.apply(Ke(_)?_:[],R)}return this[g](function(k){return p.apply(Ke(k)?k:[],R)})}}),zn(ft.prototype,function(u,p){var g=L[p];if(g){var C=g.name+"";Se.call(Ai,C)||(Ai[C]=[]),Ai[C].push({name:p,func:g})}}),Ai[gu(V,nt).name]=[{name:"wrapper",func:V}],ft.prototype.clone=qp,ft.prototype.reverse=al,ft.prototype.value=ul,L.prototype.at=Sf,L.prototype.chain=Ef,L.prototype.commit=jd,L.prototype.next=Nd,L.prototype.plant=qd,L.prototype.reverse=Bd,L.prototype.toJSON=L.prototype.valueOf=L.prototype.value=Fd,L.prototype.first=L.prototype.head,er&&(L.prototype[er]=Of),L},Ii=ho();Dr?((Dr.exports=Ii)._=Ii,Vi._=Ii):Jt._=Ii}).call(xv)}(wc,wc.exports)),wc.exports}var Yg=Vv();function Sv(v,P,V){fetch("/api/survey/"+v+"/"+P+"/notes",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({notes:V||""})}).then(async T=>{const E=await T.json();T.ok?Yt.success("Notes saved"):Yt.error("Failed saving notes: "+E.message||T.statusText)}).catch(T=>{Yt.error("Failed saving notes: "+T)})}function Cc({text:v,helpText:P,onClick:V,enabled:T}){const[E,B]=ye.useState(!1),M=async()=>{if(!E){B(!0);try{await V()}finally{B(!1)}}};return F.jsxs(Os,{onClick:M,disabled:!T,style:{pointerEvents:"auto",marginLeft:".5rem"},title:P,children:[E&&F.jsx(Ug,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true"}),v]})}function Ev(){const v=lr.c(21);let P;v[0]===Symbol.for("react.memo_cache_sentinel")?(P=[],v[0]=P):P=v[0];const[V,T]=ye.useState(P),E=ye.useRef(!1);let B,M;v[1]===Symbol.for("react.memo_cache_sentinel")?(B=()=>{vg().then(Bt=>{T(Bt)})},M=[],v[1]=B,v[2]=M):(B=v[1],M=v[2]),ye.useEffect(B,M);let j;v[3]===Symbol.for("react.memo_cache_sentinel")?(j=async function(Ae,ot,$e,lt){const xt=lt===void 0?!1:lt;try{xt&&(Ae=Ae+"?dry_run=1");const st=await fetch(Ae,{method:"POST"}),gt=await st.json();st.ok?(gt.message&&console.log(gt.message),xt||Yt($e),vg().then(It=>{T(It)})):Yt(ot+gt.message)}catch(st){Yt(ot+st.message)}},v[3]=j):j=v[3];const O=j;let m;v[4]===Symbol.for("react.memo_cache_sentinel")?(m=async function(){await O("/api/survey/new","Failed creating new survey: ","Created new survey")},v[4]=m):m=v[4];const A=m;let H;v[5]===Symbol.for("react.memo_cache_sentinel")?(H=async function(Ae,ot,$e){const lt=$e===void 0?!1:$e;if(E.current){Yt("Wait for status update to be finished...");return}E.current=!0,await O("/api/survey/"+ot+"/"+Ae,"Error while updating "+Ae+" survey status to "+ot+": ",Ae+" survey status updated to "+ot,lt),E.current=!1},v[5]=H):H=v[5];const ee=H;let he;v[6]===Symbol.for("react.memo_cache_sentinel")?(he=async function(Ae,ot){await O("/api/response/unlock/"+Ae+"/"+ot,"Error while unlocking "+ot+" "+Ae+" survey response: ",ot+" "+Ae+" survey response unlocked")},v[6]=he):he=v[6];const se=he,ve=V.length>0&&V.every(Ov),de=window.location.origin+"/data?preview";let nt;v[7]===Symbol.for("react.memo_cache_sentinel")?(nt=F.jsx(Lp,{}),v[7]=nt):nt=v[7];let _e;v[8]===Symbol.for("react.memo_cache_sentinel")?(_e={maxWidth:"100rem"},v[8]=_e):_e=v[8];let pe;v[9]===Symbol.for("react.memo_cache_sentinel")?(pe=F.jsx(Sg,{}),v[9]=pe):pe=v[9];const D=!ve;let Re;v[10]===Symbol.for("react.memo_cache_sentinel")?(Re={pointerEvents:"auto",width:"10rem",margin:"1rem"},v[10]=Re):Re=v[10];let be;v[11]!==D?(be=F.jsx(Os,{onClick:A,disabled:D,style:Re,title:"Create a new survey for the next year. Only possible if all current surveys are published.",children:"start new survey"}),v[11]=D,v[12]=be):be=v[12];let Ze;if(v[13]!==V){let Bt;v[15]===Symbol.for("react.memo_cache_sentinel")?(Bt=(Ae,ot)=>F.jsxs(Is.Item,{eventKey:ot.toString(),children:[F.jsxs(Is.Header,{children:[Ae.year," - ",Ae.status]}),F.jsxs(Is.Body,{children:[F.jsxs("div",{style:{marginLeft:".5rem",marginBottom:"1rem"},children:[F.jsx(Uu,{to:`/survey/admin/edit/${Ae.year}`,target:"_blank",children:F.jsx(Os,{style:{marginLeft:".5rem"},title:"Open the survey for inspection with all questions visible and any visibleIf logic added to the title.",children:"Inspect Survey"})}),F.jsx(Uu,{to:`/survey/admin/try/${Ae.year}`,target:"_blank",children:F.jsx(Os,{style:{marginLeft:".5rem"},title:"Open the survey exactly as the nrens will see it, but without any nren data.",children:"Try Survey"})}),F.jsx(Cc,{text:"Mark as open",helpText:"Allow the NRENs to respond to this survey. Only 1 survey may be open at a time, and (pre)-published surveys cannot be opened anymore.",enabled:Ae.status==yi.closed,onClick:()=>ee(Ae.year,"open")}),F.jsx(Cc,{text:"Mark as closed",helpText:"Do not allow the NRENs to respond to this survey anymore. Only surveys with status open can be closed.",enabled:Ae.status==yi.open,onClick:()=>ee(Ae.year,"close")}),F.jsx(Cc,{text:"Preview results",helpText:"Publish all completed survey responses to the compendium website for preview by admins. This is only possible if the survey is closed or previewed already.",enabled:Ae.status==yi.closed||Ae.status==yi.preview,onClick:()=>ee(Ae.year,"preview")}),F.jsx(Cc,{text:"Publish results (dry run)",helpText:"Performs a dry-run of the publish operation, without actually publishing the results. Changes are logged in the browser console (F12).",enabled:Ae.status==yi.preview||Ae.status==yi.published,onClick:()=>ee(Ae.year,"publish",!0)}),F.jsx(Cc,{text:"Publish results",helpText:"Publish or re-publish all completed survey responses to the compendium website. This is only possible if the survey is in preview or published already.",enabled:Ae.status==yi.preview||Ae.status==yi.published,onClick:()=>ee(Ae.year,"publish")}),Ae.status==yi.preview&&F.jsxs("span",{children:["  Preview link: ",F.jsx("a",{href:de,children:de})]})]}),F.jsxs(Pg,{children:[F.jsxs("colgroup",{children:[F.jsx("col",{style:{width:"10%"}}),F.jsx("col",{style:{width:"20%"}}),F.jsx("col",{style:{width:"20%"}}),F.jsx("col",{style:{width:"30%"}}),F.jsx("col",{style:{width:"20%"}})]}),F.jsx("thead",{children:F.jsxs("tr",{children:[F.jsx("th",{children:"NREN"}),F.jsx("th",{children:"Status"}),F.jsx("th",{children:"Lock"}),F.jsx("th",{children:"Management Notes"}),F.jsx("th",{children:"Actions"})]})}),F.jsx("tbody",{children:Ae.responses.map($e=>F.jsxs("tr",{children:[F.jsx("td",{children:$e.nren.name}),F.jsx("td",{children:F.jsx(Pv,{status:$e.status})}),F.jsx("td",{style:{textWrap:"wrap",wordWrap:"break-word",maxWidth:"10rem"},children:$e.lock_description}),F.jsx("td",{children:"notes"in $e&&F.jsx("textarea",{onInput:Yg.debounce(lt=>Sv(Ae.year,$e.nren.id,lt.target.value),1e3),style:{minWidth:"100%",minHeight:"5rem"},placeholder:"Notes for this survey",defaultValue:$e.notes||""})}),F.jsxs("td",{children:[F.jsx(Uu,{to:`/survey/response/${Ae.year}/${$e.nren.name}`,target:"_blank",children:F.jsx(Os,{style:{pointerEvents:"auto",margin:".5rem"},title:"Open the responses of the NREN.",children:"open"})}),F.jsx(Os,{onClick:()=>se(Ae.year,$e.nren.name),disabled:$e.lock_description=="",style:{pointerEvents:"auto"},title:"Remove the lock from the survey so that another person can open the survey for editing. WARNING: The person that currently has the lock will not be able to save their changes anymore once someone else starts editing!",children:"remove lock"})]})]},$e.nren.id))})]})]})]},Ae.year),v[15]=Bt):Bt=v[15],Ze=V.map(Bt),v[13]=V,v[14]=Ze}else Ze=v[14];let rt;v[16]!==Ze?(rt=F.jsx(Is,{defaultActiveKey:"0",children:Ze}),v[16]=Ze,v[17]=rt):rt=v[17];let De;return v[18]!==be||v[19]!==rt?(De=F.jsxs(F.Fragment,{children:[nt,F.jsx(wa,{className:"py-5 grey-container",children:F.jsx(wa,{style:_e,children:F.jsxs(To,{children:[pe,be,rt]})})})]}),v[18]=be,v[19]=rt,v[20]=De):De=v[20],De}function Ov(v){return v.status==yi.published}function Tv(v){const P=lr.c(10),{getConfig:V,setConfig:T}=ye.useContext(Hm);let E;P[0]!==V||P[1]!==v?(E=V(v),P[0]=V,P[1]=v,P[2]=E):E=P[2];const B=E;let M;P[3]!==v||P[4]!==T?(M=(O,m)=>T(v,O,m),P[3]=v,P[4]=T,P[5]=M):M=P[5];let j;return P[6]!==B||P[7]!==v||P[8]!==M?(j={[v]:B,setConfig:M},P[6]=B,P[7]=v,P[8]=M,P[9]=j):j=P[9],j}async function Iv(){try{return await(await fetch("/api/user/list")).json()}catch{return[]}}async function Rv(){try{return await(await fetch("/api/nren/list")).json()}catch{return[]}}async function Av(v,P){const V={id:v,...P},T={method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(V)},E=await fetch(`/api/user/${v}`,T),B=await E.json();if(!E.ok)throw new Error(B.message);return Yt.success(B.message),B.user}async function Dv(v){if(!window.confirm(`Are you sure you want to delete ${v.name} (${v.email})?`))return!1;const V={method:"DELETE",headers:{"Content-Type":"application/json"}},T=await fetch(`/api/user/${v.id}`,V),E=await T.json();if(!T.ok)throw new Error(E.message);return Yt.success(E.message),!0}const xc=(v,P)=>v.role!=="admin"&&P.role==="admin"?1:v.role==="admin"&&P.role!=="admin"?-1:v.role==="user"&&P.role!=="user"?1:P.role==="user"&&v.role!=="user"?-1:!v.permissions.active&&P.permissions.active?1:v.permissions.active&&!P.permissions.active?-1:v.name.localeCompare(P.name);function Lv(){const v=lr.c(88);let P;v[0]===Symbol.for("react.memo_cache_sentinel")?(P=[],v[0]=P):P=v[0];const[V,T]=ye.useState(P);let E;v[1]===Symbol.for("react.memo_cache_sentinel")?(E=[],v[1]=E):E=v[1];const[B,M]=ye.useState(E),{user:j,setUser:O}=ye.useContext(Ip);let m;v[2]===Symbol.for("react.memo_cache_sentinel")?(m={column:"ID",asc:!0},v[2]=m):m=v[2];const[A,H]=ye.useState(m),[ee,he]=ye.useState(""),{setConfig:se,user_management:ve}=Tv("user_management");let de;v[3]!==se||v[4]!==ve?(de=(Qe,Rt)=>{const At=ve??{},Gt=At==null?void 0:At.shownColumns;if(!Gt){se({...At,shownColumns:{[Qe]:Rt}});return}se({...At,shownColumns:{...Gt,[Qe]:Rt}})},v[3]=se,v[4]=ve,v[5]=de):de=v[5];const nt=de;let _e;v[6]!==ve?(_e=Qe=>{const Rt=ve;if(!Rt)return!0;const At=Rt.shownColumns;return At?At[Qe]??!0:!0},v[6]=ve,v[7]=_e):_e=v[7];const pe=_e;let D,Re;v[8]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{Iv().then(Qe=>{T(Qe)}),Rv().then(Qe=>{M(Qe.sort(qv))})},Re=[],v[8]=D,v[9]=Re):(D=v[8],Re=v[9]),ye.useEffect(D,Re);let be;v[10]!==j.id||v[11]!==O||v[12]!==V?(be=(Qe,Rt)=>{const At=V.findIndex(Ht=>Ht.id===Rt.id),Gt=[...V],{name:Dt}=Qe.target,Xt={};Dt==="active"?Xt[Dt]=Qe.target.checked:Xt[Dt]=Qe.target.value,Av(Rt.id,Xt).then(Ht=>{Ht.id===j.id?O(Ht):(Gt[At]=Ht,T(Gt))}).catch(Nv)},v[10]=j.id,v[11]=O,v[12]=V,v[13]=be):be=v[13];const Ze=be;let rt;v[14]!==B?(rt=Qe=>{var Rt;return(Rt=B.find(At=>At.id==Qe||At.name==Qe))==null?void 0:Rt.id},v[14]=B,v[15]=rt):rt=v[15];const De=rt,Bt=jv,Ae=_v;let ot,$e,lt,xt,st,gt,It,Vt,G,yt,ke,mt,Ne;if(v[16]!==ee||v[17]!==De||v[18]!==pe||v[19]!==Ze||v[20]!==j||v[21]!==B||v[22]!==nt||v[23]!==A.asc||v[24]!==A.column||v[25]!==V){const Qe=["ID","Active","Role","Email","Full Name","OIDC Sub","NREN","Actions"],Rt={[Qe[1]]:Bt,[Qe[2]]:Ae("role"),[Qe[3]]:Ae("email"),[Qe[4]]:Ae("name"),[Qe[6]]:Ae("nrens")},At=Le=>{Le===A.column?H({column:Le,asc:!A.asc}):H({column:Le,asc:!0})},Gt={};Array.from(Object.keys(Rt)).includes(A.column)?Gt[A.column]={"aria-sort":A.asc?"ascending":"descending"}:Gt[Qe[0]]={"aria-sort":A.asc?"ascending":"descending"};const Dt=Rt[A.column]??xc,Ht=(ee?V.filter(Le=>Le.email.includes(ee)||Le.name.includes(ee)):V).filter(Le=>Le.id!==j.id).sort(Dt);A.asc||Ht.reverse(),v[39]===Symbol.for("react.memo_cache_sentinel")?(yt=F.jsx(Lp,{}),ke=F.jsx(Sg,{}),v[39]=yt,v[40]=ke):(yt=v[39],ke=v[40]),$e=wa,Vt="py-5 grey-container";let _t;v[41]===Symbol.for("react.memo_cache_sentinel")?(_t=F.jsx("div",{className:"text-center w-100 mb-3",children:F.jsx("h3",{children:"User Management Page"})}),v[41]=_t):_t=v[41];let cr;v[42]===Symbol.for("react.memo_cache_sentinel")?(cr={width:"30rem"},v[42]=cr):cr=v[42];let Sr;v[43]===Symbol.for("react.memo_cache_sentinel")?(Sr=F.jsxs(Is.Header,{children:[F.jsx("span",{className:"me-2",children:"Column Visibility"}),F.jsx("small",{className:"text-muted",children:"Choose which columns to display"})]}),v[43]=Sr):Sr=v[43];let Nn;v[44]===Symbol.for("react.memo_cache_sentinel")?(Nn=F.jsx("small",{className:"text-muted mb-2 d-block",children:"Select which columns you want to display in the table below. Unchecked columns will be hidden."}),v[44]=Nn):Nn=v[44];let an;v[45]===Symbol.for("react.memo_cache_sentinel")?(an={gridTemplateColumns:"repeat(auto-fill, minmax(150px, 1fr))",gap:"10px"},v[45]=an):an=v[45];const On=F.jsx("div",{className:"d-grid",style:an,children:Qe.map(Le=>F.jsx(gg.Check,{type:"checkbox",id:`column-${Le}`,label:Le,checked:pe(Le),onChange:Yn=>nt(Le,Yn.target.checked)},Le))});let cn;v[46]!==On?(cn=F.jsx(Is,{className:"mb-3",style:cr,children:F.jsxs(Is.Item,{eventKey:"0",children:[Sr,F.jsx(Is.Body,{children:F.jsxs(gg.Control,{as:"div",className:"p-3",children:[Nn,On]})})]})}),v[46]=On,v[47]=cn):cn=v[47];let qn,Bn;v[48]===Symbol.for("react.memo_cache_sentinel")?(qn={width:"30rem"},Bn=F.jsx(Ig.Text,{id:"search-text",children:"Search"}),v[48]=qn,v[49]=Bn):(qn=v[48],Bn=v[49]);let Hr;v[50]===Symbol.for("react.memo_cache_sentinel")?(Hr=F.jsx(gg.Control,{placeholder:"Search by email/name","aria-label":"Search",onInput:Yg.debounce(Le=>he(Le.target.value),200)}),v[50]=Hr):Hr=v[50];let Fn;v[51]===Symbol.for("react.memo_cache_sentinel")?(Fn=F.jsxs(Ig,{className:"mb-3",style:qn,children:[Bn,Hr,F.jsx(Os,{variant:"outline-secondary",onClick:()=>{he("")},children:"Clear"})]}),v[51]=Fn):Fn=v[51],v[52]!==cn?(G=F.jsxs(To,{className:"d-flex justify-content-center align-items-center flex-column",children:[_t,cn,Fn]}),v[52]=cn,v[53]=G):G=v[53],It="d-flex justify-content-center",v[54]===Symbol.for("react.memo_cache_sentinel")?(gt={maxWidth:"100rem"},v[54]=gt):gt=v[54],ot=Pg,Ne="user-management-table",lt=!0;const kn=pe(Qe[0])&&F.jsx("col",{span:1,style:{width:"8rem"}}),Er=pe(Qe[1])&&F.jsx("col",{span:1,style:{width:"3rem"}}),zr=pe(Qe[2])&&F.jsx("col",{span:1,style:{width:"4.5rem"}}),fr=pe(Qe[3])&&F.jsx("col",{span:1,style:{width:"7rem"}}),Or=pe(Qe[4])&&F.jsx("col",{span:1,style:{width:"5rem"}}),Ur=pe(Qe[5])&&F.jsx("col",{span:1,style:{width:"5rem"}}),Wr=pe(Qe[6])&&F.jsx("col",{span:1,style:{width:"6rem"}}),Zn=pe(Qe[7])&&F.jsx("col",{span:1,style:{width:"3rem"}});v[55]!==kn||v[56]!==Er||v[57]!==zr||v[58]!==fr||v[59]!==Or||v[60]!==Ur||v[61]!==Wr||v[62]!==Zn?(xt=F.jsxs("colgroup",{children:[kn,Er,zr,fr,Or,Ur,Wr,Zn]}),v[55]=kn,v[56]=Er,v[57]=zr,v[58]=fr,v[59]=Or,v[60]=Ur,v[61]=Wr,v[62]=Zn,v[63]=xt):xt=v[63];const Kn=F.jsx("tr",{children:Qe.map(Le=>pe(Le)&&F.jsx("th",{...Gt[Le],onClick:()=>At(Le),className:"sortable fixed-column",style:{border:"1px solid #ddd"},children:Le},Le))});v[64]!==Kn?(st=F.jsx("thead",{children:Kn}),v[64]=Kn,v[65]=st):st=v[65],mt=F.jsx("tbody",{children:(ee?[]:[j]).concat(Ht).map(Le=>F.jsxs("tr",{style:{fontWeight:Le.id==j.id?"bold":"normal"},children:[pe(Qe[0])&&F.jsx("td",{style:{border:"1px dotted #ddd"},children:Le.id}),pe(Qe[1])&&F.jsx("td",{style:{border:"1px dotted #ddd"},children:Le.id==j.id?F.jsx(zm,{}):F.jsx("input",{type:"checkbox",name:"active",checked:Le.permissions.active,onChange:Yn=>Ze(Yn,Le)})}),pe(Qe[2])&&F.jsx("td",{style:{border:"1px dotted #ddd"},children:Le.id==j.id?Le.role.charAt(0).toUpperCase()+Le.role.slice(1):F.jsxs("select",{name:"role",defaultValue:Le.role,onChange:Yn=>Ze(Yn,Le),style:{width:"100%"},children:[F.jsx("option",{value:"admin",children:"Admin"}),F.jsx("option",{value:"user",children:"User"}),F.jsx("option",{value:"observer",children:"Observer"})]})}),pe(Qe[3])&&F.jsx("td",{style:{border:"1px dotted #ddd"},children:Le.email}),pe(Qe[4])&&F.jsx("td",{style:{border:"1px dotted #ddd"},children:Le.name}),pe(Qe[5])&&F.jsx("td",{style:{border:"1px dotted #ddd"},children:Le.oidc_sub}),pe(Qe[6])&&F.jsx("td",{style:{border:"1px dotted #ddd"},children:F.jsxs("select",{name:"nren",multiple:!1,value:Le.nrens.length>0?De(Le.nrens[0]):"",onChange:Yn=>Ze(Yn,Le),children:[F.jsx("option",{value:"",children:"Select NREN"}),B.map(Mv)]})}),pe(Qe[7])&&F.jsx("td",{style:{border:"1px dotted #ddd"},children:Le.id!==j.id&&F.jsx(Os,{variant:"danger",onClick:async()=>{if(Le.id===j.id){Yt.error("You cannot delete yourself");return}await Dv(Le)&&T(V.filter(Ao=>Ao.id!==Le.id))},children:"Delete"})})]},Le.id))}),v[16]=ee,v[17]=De,v[18]=pe,v[19]=Ze,v[20]=j,v[21]=B,v[22]=nt,v[23]=A.asc,v[24]=A.column,v[25]=V,v[26]=ot,v[27]=$e,v[28]=lt,v[29]=xt,v[30]=st,v[31]=gt,v[32]=It,v[33]=Vt,v[34]=G,v[35]=yt,v[36]=ke,v[37]=mt,v[38]=Ne}else ot=v[26],$e=v[27],lt=v[28],xt=v[29],st=v[30],gt=v[31],It=v[32],Vt=v[33],G=v[34],yt=v[35],ke=v[36],mt=v[37],Ne=v[38];let Ye;v[66]!==ot||v[67]!==lt||v[68]!==xt||v[69]!==st||v[70]!==mt||v[71]!==Ne?(Ye=F.jsxs(ot,{className:Ne,bordered:lt,children:[xt,st,mt]}),v[66]=ot,v[67]=lt,v[68]=xt,v[69]=st,v[70]=mt,v[71]=Ne,v[72]=Ye):Ye=v[72];let ct;v[73]!==gt||v[74]!==Ye?(ct=F.jsx("div",{style:gt,children:Ye}),v[73]=gt,v[74]=Ye,v[75]=ct):ct=v[75];let on;v[76]!==It||v[77]!==ct?(on=F.jsx("div",{className:It,children:ct}),v[76]=It,v[77]=ct,v[78]=on):on=v[78];let Ft;v[79]!==$e||v[80]!==Vt||v[81]!==G||v[82]!==on?(Ft=F.jsxs($e,{className:Vt,children:[G,on]}),v[79]=$e,v[80]=Vt,v[81]=G,v[82]=on,v[83]=Ft):Ft=v[83];let He;return v[84]!==yt||v[85]!==ke||v[86]!==Ft?(He=F.jsxs(F.Fragment,{children:[yt,ke,Ft]}),v[84]=yt,v[85]=ke,v[86]=Ft,v[87]=He):He=v[87],He}function Mv(v){return F.jsx("option",{value:v.id,children:v.name},v.id)}function _v(v){return(P,V)=>{const T=P[v],E=V[v];if(v==="nrens")return P.nrens.length===0&&V.nrens.length===0?xc(P,V):P.nrens.length===0?-1:V.nrens.length===0?1:P.nrens[0].localeCompare(V.nrens[0]);if(typeof T!="string"||typeof E!="string")return xc(P,V);const B=T.localeCompare(E);return B===0?xc(P,V):B}}function jv(v,P){return v.permissions.active&&!P.permissions.active?1:!v.permissions.active&&P.permissions.active?-1:xc(v,P)}function Nv(v){Yt.error(v.message)}function qv(v,P){return v.name.localeCompare(P.name)}const Bv=v=>{const P=lr.c(3),{pathname:V}=v;let T,E;return P[0]!==V?(T=()=>{console.log(V),V.startsWith("/survey")||window.location.replace(`${V}`)},E=[V],P[0]=V,P[1]=T,P[2]=E):(T=P[1],E=P[2]),ye.useEffect(T,E),null},Fv=()=>{const v=lr.c(12),{pathname:P}=Wm(),V=P!=="/survey";let T;v[0]!==P?(T=F.jsx(Bv,{pathname:P}),v[0]=P,v[1]=T):T=v[1];let E;v[2]===Symbol.for("react.memo_cache_sentinel")?(E=F.jsx(Gm,{}),v[2]=E):E=v[2];let B;v[3]!==V?(B=F.jsx("main",{className:"grow",children:V?F.jsx(Jm,{}):F.jsx(Wg,{})}),v[3]=V,v[4]=B):B=v[4];let M;v[5]===Symbol.for("react.memo_cache_sentinel")?(M=F.jsx(Zm,{}),v[5]=M):M=v[5];let j;v[6]!==T||v[7]!==B?(j=F.jsxs(Km,{children:[T,E,B,M]}),v[6]=T,v[7]=B,v[8]=j):j=v[8];let O;v[9]===Symbol.for("react.memo_cache_sentinel")?(O=F.jsx(Ym,{}),v[9]=O):O=v[9];let m;return v[10]!==j?(m=F.jsxs(F.Fragment,{children:[j,O]}),v[10]=j,v[11]=m):m=v[11],m},kv=Um([{path:"",element:F.jsx(Fv,{}),children:[{path:"/survey/admin/surveys",element:F.jsx(Ev,{})},{path:"/survey/admin/users",element:F.jsx(Lv,{})},{path:"/survey/admin/inspect/:year",element:F.jsx(mg,{loadFrom:"/api/response/inspect/"})},{path:"/survey/admin/try/:year",element:F.jsx(mg,{loadFrom:"/api/response/try/"})},{path:"/survey/response/:year/:nren",element:F.jsx(mg,{loadFrom:"/api/response/load/"})},{path:"*",element:F.jsx(Wg,{})}]}]);function Qv(){const v=lr.c(1);let P;return v[0]===Symbol.for("react.memo_cache_sentinel")?(P=F.jsx("div",{className:"app",children:F.jsx($m,{router:kv})}),v[0]=P):P=v[0],P}const Hv=document.getElementById("root"),zv=Xm.createRoot(Hv);zv.render(F.jsx(yg.StrictMode,{children:F.jsx(Qv,{})}));
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["SurveyContainerComponent-D59B1_HE.js","main-BIBsTO5W.js","main.css","index-CuSQpLoM.js","Schema-BuKG9dA7.js","xlsx-CxqzP9DR.js","Table-HH9WOnMU.js","Bx5HfHBo.css","SurveyManagementComponent-DMYN1lq-.js","lodash-BjwYmmCl.js","hook-DmuGcAOd.js","UserManagementComponent-CiWfGwDf.js","index-D6hre9Be.js"])))=>i.map(i=>d[i]);
+import{a as S,j as t,b as Z,r as f,g as ee,q as te,L as H,e as ne,R as re,_ as q,k as se,l as oe,o as ae,E as le,O as ie,m as ce,n as de,G as me,p as he,i as ue}from"./main-BIBsTO5W.js";import{L as W,S as fe,u as b,w as ye}from"./xlsx-CxqzP9DR.js";import{T as pe}from"./Table-HH9WOnMU.js";async function xe(){try{return await(await fetch("/api/survey/list")).json()}catch{return[]}}async function je(){try{const n=await(await fetch("/api/survey/active/year")).json();return"year"in n?n.year.toString():(console.log("Invalid response format: Failed fetching active survey year."),"")}catch(e){return console.error("Failed fetching active survey year:",e),""}}const ve=()=>{const e=S.c(4);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("h5",{className:"section-title",children:"Management Links"}),e[0]=n):n=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx(W,{to:"/survey",children:t.jsx("span",{children:"Survey Home"})}),e[1]=o):o=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(W,{to:"/survey/admin/users",children:t.jsx("span",{children:"Compendium User Management"})}),e[2]=s):s=e[2];let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsxs(fe,{survey:!0,children:[n,o,s,t.jsx(W,{to:"/survey/admin/surveys",children:t.jsx("span",{children:"Compendium Survey Management"})})]}),e[3]=r):r=e[3],r},_e=()=>{const e=S.c(7),[n,o]=f.useState();let s,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{xe().then(a=>{o(a[0])})},r=[],e[0]=s,e[1]=r):(s=e[0],r=e[1]),f.useEffect(s,r);let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"(N)REN"}),t.jsx("th",{children:"Link"}),t.jsx("th",{children:"Survey Status"})]})}),e[2]=c):c=e[2];let d;e[3]!==n?(d=n&&n.responses.map(a=>t.jsxs("tr",{children:[t.jsx("td",{children:a.nren.name}),t.jsx("td",{children:t.jsx(H,{to:`/survey/response/${n.year}/${a.nren.name}`,children:t.jsx("span",{children:"Navigate to survey"})})}),t.jsx("td",{children:a.status})]},a.nren.id)),e[3]=n,e[4]=d):d=e[4];let l;return e[5]!==d?(l=t.jsxs(pe,{striped:!0,bordered:!0,responsive:!0,children:[c,t.jsx("tbody",{children:d})]}),e[5]=d,e[6]=l):l=e[6],l};function K(){const e=S.c(37),{trackPageView:n}=Z(),{user:o}=f.useContext(ee),s=te(),r=!!o.id,c=r?!!o.nrens.length:!1,d=c?o.nrens[0]:"",l=r?o.permissions.admin:!1,a=r?o.role==="observer":!1,[m,Q]=f.useState(null);let E,C;e[0]!==n?(E=()=>{(async()=>{const G=await je();Q(G)})(),n({documentTitle:"GEANT Survey Landing Page"})},C=[n],e[0]=n,e[1]=E,e[2]=C):(E=e[1],C=e[2]),f.useEffect(E,C);let N;e[3]!==d||e[4]!==m||e[5]!==s?(N=()=>{try{return s(`/survey/response/${m}/${d}`),t.jsx("li",{children:"Redirecting to survey..."})}catch(U){return console.error("Error navigating:",U),null}},e[3]=d,e[4]=m,e[5]=s,e[6]=N):N=e[6];const B=N;let R;if(e[7]===Symbol.for("react.memo_cache_sentinel")){const U=function(u,x,h){const y=b.decode_range(u["!ref"]??"");let w=-1;for(let i=y.s.c;i<=y.e.c;i++){const p=b.encode_cell({r:y.s.r,c:i}),V=u[p];if(V&&typeof V.v=="string"&&V.v===x){w=i;break}}if(w===-1){console.error(`Column '${x}' not found.`);return}for(let i=y.s.r+1;i<=y.e.r;++i){const p=b.encode_cell({r:i,c:w});u[p]&&u[p].t==="n"&&(u[p].z=h)}},G=function(u){const x=b.book_new();u.forEach(i=>{const p=b.json_to_sheet(i.data);i.meta&&U(p,i.meta.columnName,i.meta.format),b.book_append_sheet(x,p,i.name)});const h=ye(x,{bookType:"xlsx",type:"binary"}),y=new ArrayBuffer(h.length),w=new Uint8Array(y);for(let i=0;i<h.length;i++)w[i]=h.charCodeAt(i)&255;return new Blob([y],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})};R=function(){fetch("/api/data-download").then(be).then(u=>{const x=G(u),h=document.createElement("a");h.href=URL.createObjectURL(x),h.download="data.xlsx",document.body.appendChild(h),h.click(),document.body.removeChild(h)}).catch(ge)},e[7]=R}else R=e[7];const X=R;let j;e[8]!==l?(j=l&&t.jsx(ve,{}),e[8]=l,e[9]=j):j=e[9];let k;e[10]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx("h1",{className:"geant-header",children:"THE GÉANT COMPENDIUM OF NRENS SURVEY"}),e[10]=k):k=e[10];let T,A;e[11]===Symbol.for("react.memo_cache_sentinel")?(T={maxWidth:"75rem"},A={textAlign:"left"},e[11]=T,e[12]=A):(T=e[11],A=e[12]);let L;e[13]===Symbol.for("react.memo_cache_sentinel")?(L=t.jsx("br",{}),e[13]=L):L=e[13];let O;e[14]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx("a",{href:"/login",children:"here"}),e[14]=O):O=e[14];let F;e[15]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx("br",{}),e[15]=F):F=e[15];let P;e[16]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx("br",{}),e[16]=P):P=e[16];let $,M,I,Y;e[17]===Symbol.for("react.memo_cache_sentinel")?($=t.jsxs("p",{style:A,children:["Hello,",L,"Welcome to the GÉANT Compendium Survey. (N)REN Compendium administrators can login via Single Sign On (SSO) ",O,", which will complete their registration to fill in the latest Compendium survey. This will send a notification to the Compendium administration team and they will assign you to your (N)REN.",F,"Once this step has been completed, you will receive an email from the administration team. We aim to get back to you the same working day, but sometimes may take a little longer.",P,"If you are not sure whether you are a Compendium Administrator for your (N)REN, please contact your GÉANT Partner Relations relationship manager.",t.jsx("br",{}),"Thank you."]}),M=t.jsx("span",{children:"Current registration status:"}),I=t.jsx("br",{}),Y=t.jsx("br",{}),e[17]=$,e[18]=M,e[19]=I,e[20]=Y):($=e[17],M=e[18],I=e[19],Y=e[20]);let v;e[21]!==m||e[22]!==c||e[23]!==l||e[24]!==a||e[25]!==r||e[26]!==B?(v=l?t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("span",{children:"You are logged in as a Compendium Administrator"})}),t.jsx("li",{children:t.jsxs("span",{children:["Click ",t.jsx(H,{to:"/survey/admin/surveys",children:"here"})," to access the survey management page."]})}),t.jsx("li",{children:t.jsxs("span",{children:["Click ",t.jsx(H,{to:"/survey/admin/users",children:"here"})," to access the user management page."]})}),t.jsx("li",{children:t.jsxs("span",{children:["Click ",t.jsx("a",{href:"#",onClick:X,children:"here"})," to do the full data download."]})})]}):t.jsxs("ul",{children:[m&&!l&&!a&&c&&B(),r?t.jsx("li",{children:t.jsx("span",{children:"You are logged in"})}):t.jsx("li",{children:t.jsx("span",{children:"You are not logged in"})}),r&&!a&&!c&&t.jsx("li",{children:t.jsx("span",{children:"Your access to the survey has not yet been approved"})}),r&&!a&&!c&&t.jsx("li",{children:t.jsx("span",{children:"Once you have been approved, you will immediately be directed to the relevant survey upon visiting this page"})}),r&&a&&t.jsx("li",{children:t.jsx("span",{children:"You have read-only access to the following surveys:"})})]}),e[21]=m,e[22]=c,e[23]=l,e[24]=a,e[25]=r,e[26]=B,e[27]=v):v=e[27];let _;e[28]!==a||e[29]!==r?(_=r&&a&&t.jsx(_e,{}),e[28]=a,e[29]=r,e[30]=_):_=e[30];let g;e[31]!==v||e[32]!==_?(g=t.jsx(ne,{className:"py-5 grey-container",children:t.jsx(re,{children:t.jsxs("div",{className:"center-text",children:[k,t.jsxs("div",{className:"wordwrap pt-4",style:T,children:[$,M,I,Y,v,_]})]})})}),e[31]=v,e[32]=_,e[33]=g):g=e[33];let D;return e[34]!==g||e[35]!==j?(D=t.jsxs(t.Fragment,{children:[j,g]}),e[34]=g,e[35]=j,e[36]=D):D=e[36],D}function ge(e){console.error("Error fetching data:",e),alert("An error occurred while creating the data download Excel file.")}function be(e){if(!e.ok)throw new Error("Network response was not ok");return e.json()}const z=f.lazy(()=>q(()=>import("./SurveyContainerComponent-D59B1_HE.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),Se=f.lazy(()=>q(()=>import("./SurveyManagementComponent-DMYN1lq-.js"),__vite__mapDeps([8,1,2,9,10,6,3,4,5]))),we=f.lazy(()=>q(()=>import("./UserManagementComponent-CiWfGwDf.js"),__vite__mapDeps([11,1,2,3,12,9,10,6,5]))),Ee=e=>{const n=S.c(3),{pathname:o}=e;let s,r;return n[0]!==o?(s=()=>{console.log(o),o.startsWith("/survey")||window.location.replace(`${o}`)},r=[o],n[0]=o,n[1]=s,n[2]=r):(s=n[1],r=n[2]),f.useEffect(s,r),null},Ce=()=>{const e=S.c(12),{pathname:n}=oe(),o=n!=="/survey";let s;e[0]!==n?(s=t.jsx(Ee,{pathname:n}),e[0]=n,e[1]=s):s=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(le,{}),e[2]=r):r=e[2];let c;e[3]!==o?(c=t.jsx("main",{className:"grow",children:o?t.jsx(ie,{}):t.jsx(K,{})}),e[3]=o,e[4]=c):c=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(ce,{}),e[5]=d):d=e[5];let l;e[6]!==s||e[7]!==c?(l=t.jsxs(de,{children:[s,r,c,d]}),e[6]=s,e[7]=c,e[8]=l):l=e[8];let a;e[9]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(me,{}),e[9]=a):a=e[9];let m;return e[10]!==l?(m=t.jsxs(t.Fragment,{children:[l,a]}),e[10]=l,e[11]=m):m=e[11],m},Ne=se([{path:"",element:t.jsx(Ce,{}),children:[{path:"/survey/admin/surveys",element:t.jsx(Se,{})},{path:"/survey/admin/users",element:t.jsx(we,{})},{path:"/survey/admin/inspect/:year",element:t.jsx(z,{loadFrom:"/api/response/inspect/"})},{path:"/survey/admin/try/:year",element:t.jsx(z,{loadFrom:"/api/response/try/"})},{path:"/survey/response/:year/:nren",element:t.jsx(z,{loadFrom:"/api/response/load/"})},{path:"*",element:t.jsx(K,{})}]}]);function Re(){const e=S.c(1);let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"app",children:t.jsx(ae,{router:Ne})}),e[0]=n):n=e[0],n}const ke=document.getElementById("root"),Te=he.createRoot(ke);Te.render(t.jsx(ue.StrictMode,{children:t.jsx(Re,{})}));export{ve as S,xe as f};
diff --git a/compendium_v2/static/third-party-licenses.txt b/compendium_v2/static/third-party-licenses.txt
index 9c35dfe5b11fc848a3eef99f20e17c50f2feef47..ac72a24078354dcccf6fa2ab7bf9bc1e555a3bd5 100644
--- a/compendium_v2/static/third-party-licenses.txt
+++ b/compendium_v2/static/third-party-licenses.txt
@@ -1,16 +1,17 @@
-Name: @restart/hooks
-Version: 0.5.1
+Name: react-bootstrap
+Version: 2.10.8
 License: MIT
 Private: false
-Repository: git+https://github.com/jquense/react-common-hooks.git
-Homepage: https://github.com/react-restart/hooks#readme
-Author: Jason Quense <monastic.panic@gmail.com>
+Description: Bootstrap 5 components built with React
+Repository: git+https://github.com/react-bootstrap/react-bootstrap.git
+Homepage: https://react-bootstrap.github.io/
+Author: Stephen J. Collings <stevoland@gmail.com>
 License Copyright:
 ===
 
-MIT License
+The MIT License (MIT)
 
-Copyright (c) 2018 Jason Quense
+Copyright (c) 2014-present Stephen J. Collings, Matthew Honnibal, Pieter Vanderwerff
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -19,32 +20,32 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
 
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
 
 ---
 
-Name: @restart/ui
-Version: 1.9.3
+Name: react
+Version: 19.0.0
 License: MIT
 Private: false
-Description: Utilities for creating robust overlay components
-Repository: git+https://github.com/react-restart/ui.git
-Author: Jason Quense <monastic.panic@gmail.com>
+Description: React is a JavaScript library for building user interfaces.
+Repository: https://github.com/facebook/react.git
+Homepage: https://react.dev/
 License Copyright:
 ===
 
-The MIT License (MIT)
+MIT License
 
-Copyright (c) 2015 react-bootstrap
+Copyright (c) Meta Platforms, Inc. and affiliates.
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -66,20 +67,19 @@ SOFTWARE.
 
 ---
 
-Name: react-bootstrap
-Version: 2.10.8
+Name: react-dom
+Version: 19.0.0
 License: MIT
 Private: false
-Description: Bootstrap 5 components built with React
-Repository: git+https://github.com/react-bootstrap/react-bootstrap.git
-Homepage: https://react-bootstrap.github.io/
-Author: Stephen J. Collings <stevoland@gmail.com>
+Description: React package for working with the DOM.
+Repository: https://github.com/facebook/react.git
+Homepage: https://react.dev/
 License Copyright:
 ===
 
-The MIT License (MIT)
+MIT License
 
-Copyright (c) 2014-present Stephen J. Collings, Matthew Honnibal, Pieter Vanderwerff
+Copyright (c) Meta Platforms, Inc. and affiliates.
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -88,33 +88,32 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
 
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
 
 ---
 
-Name: uncontrollable
-Version: 8.0.4
+Name: scheduler
+Version: 0.25.0
 License: MIT
 Private: false
-Description: Wrap a controlled react component, to allow specific prop/handler pairs to be uncontrolled
-Repository: git+https://github.com/jquense/uncontrollable.git
-Homepage: https://github.com/jquense/uncontrollable#readme
-Author: Jason Quense <monastic.panic@gmail.com>
+Description: Cooperative scheduler for the browser environment.
+Repository: https://github.com/facebook/react.git
+Homepage: https://react.dev/
 License Copyright:
 ===
 
-The MIT License (MIT)
+MIT License
 
-Copyright (c) 2015 Jason Quense
+Copyright (c) Meta Platforms, Inc. and affiliates.
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -136,19 +135,59 @@ SOFTWARE.
 
 ---
 
-Name: dequal
-Version: 2.0.3
+Name: cookie
+Version: 1.0.2
 License: MIT
 Private: false
-Description: A tiny (304B to 489B) utility for check for deep equality
+Description: HTTP server cookie parsing and serialization
 Repository: undefined
-Author: Luke Edwards <luke.edwards05@gmail.com> (https://lukeed.com)
+Author: Roman Shtylman <shtylman@gmail.com>
+Contributors:
+  Douglas Christopher Wilson <doug@somethingdoug.com>
 License Copyright:
 ===
 
-The MIT License (MIT)
+(The MIT License)
 
-Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
+Copyright (c) 2012-2014 Roman Shtylman <shtylman@gmail.com>
+Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+---
+
+Name: react-router
+Version: 7.1.3
+License: MIT
+Private: false
+Description: Declarative routing for React
+Repository: https://github.com/remix-run/react-router
+Author: Remix Software <hello@remix.run>
+License Copyright:
+===
+
+MIT License
+
+Copyright (c) React Training LLC 2015-2019
+Copyright (c) Remix Software Inc. 2020-2021
+Copyright (c) Shopify Inc. 2022-2023
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -157,356 +196,283 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
 
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
 
 ---
 
-Name: @popperjs/core
-Version: 2.11.8
+Name: classnames
+Version: 2.5.1
 License: MIT
 Private: false
-Description: Tooltip and Popover Positioning Engine
-Repository: undefined
-Author: Federico Zivolo <federico.zivolo@gmail.com>
+Description: A simple utility for conditionally joining classNames together
+Repository: git+https://github.com/JedWatson/classnames.git
+Author: Jed Watson
 License Copyright:
 ===
 
 The MIT License (MIT)
 
-Copyright (c) 2019 Federico Zivolo
+Copyright (c) 2018 Jed Watson
 
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
 
 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.
 
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
 
 ---
 
-Name: @react-aria/ssr
-Version: 3.9.7
-License: Apache-2.0
+Name: @babel/runtime
+Version: 7.26.0
+License: MIT
 Private: false
-Description: Spectrum UI components in React
-Repository: https://github.com/adobe/react-spectrum
+Description: babel's modular runtime helpers
+Repository: https://github.com/babel/babel.git
+Homepage: https://babel.dev/docs/en/next/babel-runtime
+Author: The Babel Team (https://babel.dev/team)
 License Copyright:
 ===
 
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
+MIT License
 
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
 
-   1. Definitions.
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
 
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
 
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
+---
 
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
+Name: dom-helpers
+Version: 5.2.1
+License: MIT
+Private: false
+Description: tiny modular DOM lib for ie9+
+Repository: git+https://github.com/react-bootstrap/dom-helpers.git
+Homepage: https://github.com/react-bootstrap/dom-helpers#readme
+Author: Jason Quense <monastic.panic@gmail.com>
+License Copyright:
+===
 
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
+The MIT License (MIT)
 
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
+Copyright (c) 2015 Jason Quense
 
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
 
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
 
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
 
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
+---
 
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
+Name: prop-types
+Version: 15.8.1
+License: MIT
+Private: false
+Description: Runtime type checking for React props and similar objects.
+Repository: undefined
+Homepage: https://facebook.github.io/react/
+License Copyright:
+===
 
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
+MIT License
 
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
+Copyright (c) 2013-present, Facebook, Inc.
 
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
 
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
 
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
 
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
+---
 
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
+Name: react-transition-group
+Version: 4.4.5
+License: BSD-3-Clause
+Private: false
+Description: A react component toolset for managing animations
+Repository: https://github.com/reactjs/react-transition-group.git
+Homepage: https://github.com/reactjs/react-transition-group#readme
+License Copyright:
+===
 
-   END OF TERMS AND CONDITIONS
+BSD 3-Clause License
 
-   APPENDIX: How to apply the Apache License to your work.
+Copyright (c) 2018, React Community
+Forked from React (https://github.com/facebook/react) Copyright 2013-present, Facebook, Inc.
+All rights reserved.
 
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
 
-   Copyright 2019 Adobe
+* Redistributions of source code must retain the above copyright notice, this
+  list of conditions and the following disclaimer.
 
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
+* Redistributions in binary form must reproduce the above copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
 
-       http://www.apache.org/licenses/LICENSE-2.0
+* Neither the name of the copyright holder nor the names of its
+  contributors may be used to endorse or promote products derived from
+  this software without specific prior written permission.
 
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 ---
 
-Name: @kurkle/color
-Version: 0.3.2
+Name: @restart/ui
+Version: 1.9.3
 License: MIT
 Private: false
-Description: css color parsing, manupulation and conversion
-Repository: git+https://github.com/kurkle/color.git
-Homepage: https://github.com/kurkle/color#readme
-Author: Jukka Kurkela
+Description: Utilities for creating robust overlay components
+Repository: git+https://github.com/react-restart/ui.git
+Author: Jason Quense <monastic.panic@gmail.com>
 License Copyright:
 ===
 
 The MIT License (MIT)
 
-Copyright (c) 2018-2021 Jukka Kurkela
+Copyright (c) 2015 react-bootstrap
 
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
 
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
 
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
 
 ---
 
-Name: chart.js
-Version: 4.4.7
+Name: @restart/hooks
+Version: 0.4.16
 License: MIT
 Private: false
-Description: Simple HTML5 charts using the canvas element.
-Repository: https://github.com/chartjs/Chart.js.git
-Homepage: https://www.chartjs.org
+Repository: git+https://github.com/jquense/react-common-hooks.git
+Homepage: https://github.com/react-restart/hooks#readme
+Author: Jason Quense <monastic.panic@gmail.com>
 License Copyright:
 ===
 
-The MIT License (MIT)
-
-Copyright (c) 2014-2024 Chart.js Contributors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+MIT License
 
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+Copyright (c) 2018 Jason Quense
 
----
-
-Name: react-chartjs-2
-Version: 5.3.0
-License: MIT
-Private: false
-Description: React components for Chart.js
-Repository: https://github.com/reactchartjs/react-chartjs-2.git
-Homepage: https://github.com/reactchartjs/react-chartjs-2
-Author: Jeremy Ayerst
-License Copyright:
-===
-
-Copyright 2020 Jeremy Ayerst
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
 
----
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
 
-Name: cartesian-product-multiple-arrays
-Version: 1.0.9
-License: ISC
-Private: false
-Description: Find the cartesian product of multiple arrays.
-Repository: git@github.com-luizomf:luizomf/cartesianproduct.git
-Homepage: https://github.com/luizomf/cartesianproduct
-Author: Luiz Otavio Miranda
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
 
 ---
 
-Name: html-to-image
-Version: 1.11.11
+Name: warning
+Version: 4.0.3
 License: MIT
 Private: false
-Description: Generates an image from a DOM node using HTML5 canvas and SVG.
-Repository: git+https://github.com/bubkoo/html-to-image.git
-Homepage: https://github.com/bubkoo/html-to-image#readme
-Author: bubkooo <bubkoo.wy@gmail.com>
+Description: A mirror of Facebook's Warning
+Repository: https://github.com/BerkeleyTrue/warning.git
+Homepage: https://github.com/BerkeleyTrue/warning
+Author: Berkeley Martinez <berkeley@berkeleytrue.com> (http://www.berkeleytrue.com)
 License Copyright:
 ===
 
 MIT License
 
-Copyright (c) 2017-2023 W.Y.
+Copyright (c) 2013-present, Facebook, Inc.
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -528,28 +494,6 @@ SOFTWARE.
 
 ---
 
-Name: chartjs-plugin-datalabels
-Version: 2.2.0
-License: MIT
-Private: false
-Description: Chart.js plugin to display labels on data elements
-Repository: https://github.com/chartjs/chartjs-plugin-datalabels.git
-Homepage: https://chartjs-plugin-datalabels.netlify.app
-License Copyright:
-===
-
-The MIT License (MIT)
-
-Copyright (c) 2017-2021 chartjs-plugin-datalabels contributors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
----
-
 Name: react-icons
 Version: 5.4.0
 License: MIT
@@ -670,171 +614,256 @@ License: MIT https://github.com/icons8/line-awesome/blob/master/LICENSE.md
 
 ---
 
-Name: goober
-Version: 2.1.16
-License: MIT
+Name: xlsx
+Version: 0.18.5
+License: Apache-2.0
 Private: false
-Description: A less than 1KB css-in-js solution
-Repository: https://github.com/cristianbote/goober
-Author: Cristian <botecristian@yahoo.com>
+Description: SheetJS Spreadsheet data parser and writer
+Repository: git://github.com/SheetJS/sheetjs.git
+Homepage: https://sheetjs.com/
+Author: sheetjs
 License Copyright:
 ===
 
-MIT License
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
 
-Copyright (c) 2019 Cristian Bote
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
 
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
+   1. Definitions.
 
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
 
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
 
----
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
 
-Name: react-hot-toast
-Version: 2.5.1
-License: MIT
-Private: false
-Description: Smoking hot React Notifications. Lightweight, customizable and beautiful by default.
-Repository: undefined
-Author: Timo Lins
-License Copyright:
-===
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
 
-MIT License
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
 
-Copyright (c) 2020 Timo Lins
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
 
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
 
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
 
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
 
----
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
 
-Name: survey-core
-Version: 1.12.20
-License: MIT
-Private: false
-Description: survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.
-Repository: https://github.com/surveyjs/surveyjs.git
-Homepage: https://surveyjs.io/
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
 
----
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
 
-Name: survey-react-ui
-Version: 1.12.20
-License: MIT
-Private: false
-Description: survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.
-Repository: https://github.com/surveyjs/surveyjs.git
-Homepage: https://surveyjs.io/
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
 
----
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
 
-Name: lodash
-Version: 4.17.21
-License: MIT
-Private: false
-Description: Lodash modular utilities.
-Repository: undefined
-Homepage: https://lodash.com/
-Author: John-David Dalton <john.david.dalton@gmail.com>
-Contributors:
-  John-David Dalton <john.david.dalton@gmail.com>
-  Mathias Bynens <mathias@qiwi.be>
-License Copyright:
-===
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
 
-Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
 
-Based on Underscore.js, copyright Jeremy Ashkenas,
-DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
 
-This software consists of voluntary contributions made by many
-individuals. For exact contribution history, see the revision history
-available at https://github.com/lodash/lodash
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
 
-The following license applies to all parts of this software except as
-documented below:
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
 
-====
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
 
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
 
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
 
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
 
-====
+   END OF TERMS AND CONDITIONS
 
-Copyright and related rights for sample code are waived via CC0. Sample
-code is defined as all source code displayed within the prose of the
-documentation.
+   APPENDIX: How to apply the Apache License to your work.
 
-CC0: http://creativecommons.org/publicdomain/zero/1.0/
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "{}"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
 
-====
+   Copyright (C) 2012-present   SheetJS LLC
 
-Files located in the node_modules and vendor directories are externally
-maintained libraries used by this software which have their own
-licenses; we recommend you read them, as their terms may differ from the
-terms above.
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
 
 ---
 
-Name: react
-Version: 19.0.0
+Name: react-chartjs-2
+Version: 5.3.0
 License: MIT
 Private: false
-Description: React is a JavaScript library for building user interfaces.
-Repository: https://github.com/facebook/react.git
-Homepage: https://react.dev/
+Description: React components for Chart.js
+Repository: https://github.com/reactchartjs/react-chartjs-2.git
+Homepage: https://github.com/reactchartjs/react-chartjs-2
+Author: Jeremy Ayerst
 License Copyright:
 ===
 
-MIT License
+Copyright 2020 Jeremy Ayerst
 
-Copyright (c) Meta Platforms, Inc. and affiliates.
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+---
+
+Name: uncontrollable
+Version: 8.0.4
+License: MIT
+Private: false
+Description: Wrap a controlled react component, to allow specific prop/handler pairs to be uncontrolled
+Repository: git+https://github.com/jquense/uncontrollable.git
+Homepage: https://github.com/jquense/uncontrollable#readme
+Author: Jason Quense <monastic.panic@gmail.com>
+License Copyright:
+===
+
+The MIT License (MIT)
+
+Copyright (c) 2015 Jason Quense
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -856,19 +885,19 @@ SOFTWARE.
 
 ---
 
-Name: react-dom
-Version: 19.0.0
+Name: dequal
+Version: 2.0.3
 License: MIT
 Private: false
-Description: React package for working with the DOM.
-Repository: https://github.com/facebook/react.git
-Homepage: https://react.dev/
+Description: A tiny (304B to 489B) utility for check for deep equality
+Repository: undefined
+Author: Luke Edwards <luke.edwards05@gmail.com> (https://lukeed.com)
 License Copyright:
 ===
 
-MIT License
+The MIT License (MIT)
 
-Copyright (c) Meta Platforms, Inc. and affiliates.
+Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -877,106 +906,335 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
 
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+---
+
+Name: @popperjs/core
+Version: 2.11.8
+License: MIT
+Private: false
+Description: Tooltip and Popover Positioning Engine
+Repository: undefined
+Author: Federico Zivolo <federico.zivolo@gmail.com>
+License Copyright:
+===
+
+The MIT License (MIT)
+
+Copyright (c) 2019 Federico Zivolo
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+---
+
+Name: @react-aria/ssr
+Version: 3.9.7
+License: Apache-2.0
+Private: false
+Description: Spectrum UI components in React
+Repository: https://github.com/adobe/react-spectrum
+License Copyright:
+===
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright 2019 Adobe
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
 
 ---
 
-Name: scheduler
-Version: 0.25.0
+Name: @kurkle/color
+Version: 0.3.2
 License: MIT
 Private: false
-Description: Cooperative scheduler for the browser environment.
-Repository: https://github.com/facebook/react.git
-Homepage: https://react.dev/
+Description: css color parsing, manupulation and conversion
+Repository: git+https://github.com/kurkle/color.git
+Homepage: https://github.com/kurkle/color#readme
+Author: Jukka Kurkela
 License Copyright:
 ===
 
-MIT License
+The MIT License (MIT)
 
-Copyright (c) Meta Platforms, Inc. and affiliates.
+Copyright (c) 2018-2021 Jukka Kurkela
 
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 ---
 
-Name: cookie
-Version: 1.0.2
+Name: chart.js
+Version: 4.4.7
 License: MIT
 Private: false
-Description: HTTP server cookie parsing and serialization
-Repository: undefined
-Author: Roman Shtylman <shtylman@gmail.com>
-Contributors:
-  Douglas Christopher Wilson <doug@somethingdoug.com>
+Description: Simple HTML5 charts using the canvas element.
+Repository: https://github.com/chartjs/Chart.js.git
+Homepage: https://www.chartjs.org
 License Copyright:
 ===
 
-(The MIT License)
+The MIT License (MIT)
 
-Copyright (c) 2012-2014 Roman Shtylman <shtylman@gmail.com>
-Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
+Copyright (c) 2014-2024 Chart.js Contributors
 
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 ---
 
-Name: react-router
-Version: 7.1.3
+Name: cartesian-product-multiple-arrays
+Version: 1.0.9
+License: ISC
+Private: false
+Description: Find the cartesian product of multiple arrays.
+Repository: git@github.com-luizomf:luizomf/cartesianproduct.git
+Homepage: https://github.com/luizomf/cartesianproduct
+Author: Luiz Otavio Miranda
+
+---
+
+Name: html-to-image
+Version: 1.11.11
 License: MIT
 Private: false
-Description: Declarative routing for React
-Repository: https://github.com/remix-run/react-router
-Author: Remix Software <hello@remix.run>
+Description: Generates an image from a DOM node using HTML5 canvas and SVG.
+Repository: git+https://github.com/bubkoo/html-to-image.git
+Homepage: https://github.com/bubkoo/html-to-image#readme
+Author: bubkooo <bubkoo.wy@gmail.com>
 License Copyright:
 ===
 
 MIT License
 
-Copyright (c) React Training LLC 2015-2019
-Copyright (c) Remix Software Inc. 2020-2021
-Copyright (c) Shopify Inc. 2022-2023
+Copyright (c) 2017-2023 W.Y.
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -998,124 +1256,61 @@ SOFTWARE.
 
 ---
 
-Name: classnames
-Version: 2.5.1
+Name: chartjs-plugin-datalabels
+Version: 2.2.0
 License: MIT
 Private: false
-Description: A simple utility for conditionally joining classNames together
-Repository: git+https://github.com/JedWatson/classnames.git
-Author: Jed Watson
+Description: Chart.js plugin to display labels on data elements
+Repository: https://github.com/chartjs/chartjs-plugin-datalabels.git
+Homepage: https://chartjs-plugin-datalabels.netlify.app
 License Copyright:
 ===
 
 The MIT License (MIT)
 
-Copyright (c) 2018 Jed Watson
+Copyright (c) 2017-2021 chartjs-plugin-datalabels contributors
 
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 ---
 
-Name: @babel/runtime
-Version: 7.26.0
+Name: survey-core
+Version: 1.12.20
 License: MIT
 Private: false
-Description: babel's modular runtime helpers
-Repository: https://github.com/babel/babel.git
-Homepage: https://babel.dev/docs/en/next/babel-runtime
-Author: The Babel Team (https://babel.dev/team)
-License Copyright:
-===
-
-MIT License
-
-Copyright (c) 2014-present Sebastian McKenzie and other contributors
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+Description: survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.
+Repository: https://github.com/surveyjs/surveyjs.git
+Homepage: https://surveyjs.io/
 
 ---
 
-Name: dom-helpers
-Version: 5.2.1
+Name: survey-react-ui
+Version: 1.12.20
 License: MIT
 Private: false
-Description: tiny modular DOM lib for ie9+
-Repository: git+https://github.com/react-bootstrap/dom-helpers.git
-Homepage: https://github.com/react-bootstrap/dom-helpers#readme
-Author: Jason Quense <monastic.panic@gmail.com>
-License Copyright:
-===
-
-The MIT License (MIT)
-
-Copyright (c) 2015 Jason Quense
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
+Description: survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.
+Repository: https://github.com/surveyjs/surveyjs.git
+Homepage: https://surveyjs.io/
 
 ---
 
-Name: prop-types
-Version: 15.8.1
+Name: goober
+Version: 2.1.16
 License: MIT
 Private: false
-Description: Runtime type checking for React props and similar objects.
-Repository: undefined
-Homepage: https://facebook.github.io/react/
+Description: A less than 1KB css-in-js solution
+Repository: https://github.com/cristianbote/goober
+Author: Cristian <botecristian@yahoo.com>
 License Copyright:
 ===
 
 MIT License
 
-Copyright (c) 2013-present, Facebook, Inc.
+Copyright (c) 2019 Cristian Bote
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -1130,70 +1325,26 @@ copies or substantial portions of the Software.
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
----
-
-Name: react-transition-group
-Version: 4.4.5
-License: BSD-3-Clause
-Private: false
-Description: A react component toolset for managing animations
-Repository: https://github.com/reactjs/react-transition-group.git
-Homepage: https://github.com/reactjs/react-transition-group#readme
-License Copyright:
-===
-
-BSD 3-Clause License
-
-Copyright (c) 2018, React Community
-Forked from React (https://github.com/facebook/react) Copyright 2013-present, Facebook, Inc.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-* Redistributions of source code must retain the above copyright notice, this
-  list of conditions and the following disclaimer.
-
-* Redistributions in binary form must reproduce the above copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-
-* Neither the name of the copyright holder nor the names of its
-  contributors may be used to endorse or promote products derived from
-  this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
 
 ---
 
-Name: warning
-Version: 4.0.3
+Name: react-hot-toast
+Version: 2.5.1
 License: MIT
 Private: false
-Description: A mirror of Facebook's Warning
-Repository: https://github.com/BerkeleyTrue/warning.git
-Homepage: https://github.com/BerkeleyTrue/warning
-Author: Berkeley Martinez <berkeley@berkeleytrue.com> (http://www.berkeleytrue.com)
+Description: Smoking hot React Notifications. Lightweight, customizable and beautiful by default.
+Repository: undefined
+Author: Timo Lins
 License Copyright:
 ===
 
 MIT License
 
-Copyright (c) 2013-present, Facebook, Inc.
+Copyright (c) 2020 Timo Lins
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -1215,215 +1366,64 @@ SOFTWARE.
 
 ---
 
-Name: xlsx
-Version: 0.18.5
-License: Apache-2.0
+Name: lodash
+Version: 4.17.21
+License: MIT
 Private: false
-Description: SheetJS Spreadsheet data parser and writer
-Repository: git://github.com/SheetJS/sheetjs.git
-Homepage: https://sheetjs.com/
-Author: sheetjs
+Description: Lodash modular utilities.
+Repository: undefined
+Homepage: https://lodash.com/
+Author: John-David Dalton <john.david.dalton@gmail.com>
+Contributors:
+  John-David Dalton <john.david.dalton@gmail.com>
+  Mathias Bynens <mathias@qiwi.be>
 License Copyright:
 ===
 
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
+Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
+Based on Underscore.js, copyright Jeremy Ashkenas,
+DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
 
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
+This software consists of voluntary contributions made by many
+individuals. For exact contribution history, see the revision history
+available at https://github.com/lodash/lodash
 
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
+The following license applies to all parts of this software except as
+documented below:
 
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
+====
 
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
 
-   END OF TERMS AND CONDITIONS
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
 
-   APPENDIX: How to apply the Apache License to your work.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "{}"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
+====
 
-   Copyright (C) 2012-present   SheetJS LLC
+Copyright and related rights for sample code are waived via CC0. Sample
+code is defined as all source code displayed within the prose of the
+documentation.
 
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
+CC0: http://creativecommons.org/publicdomain/zero/1.0/
 
-       http://www.apache.org/licenses/LICENSE-2.0
+====
 
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
\ No newline at end of file
+Files located in the node_modules and vendor directories are externally
+maintained libraries used by this software which have their own
+licenses; we recommend you read them, as their terms may differ from the
+terms above.
\ No newline at end of file
diff --git a/compendium_v2/static/useData-BDYwoQEh.js b/compendium_v2/static/useData-BDYwoQEh.js
new file mode 100644
index 0000000000000000000000000000000000000000..a7e852efbb72b8cac03894d49d5cf0fa56fa3ec2
--- /dev/null
+++ b/compendium_v2/static/useData-BDYwoQEh.js
@@ -0,0 +1,20 @@
+var za=Object.defineProperty;var Ba=(e,t,n)=>t in e?za(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var j=(e,t,n)=>Ba(e,typeof t!="symbol"?t+"":t,n);import{r as D,s as Yt,t as Wa,j as x,u as qt,c as Gt,v as Ha,w as Va,x as bs,y as Ya,z as fn,i as fe,B as lr,D as Ua,H as Xa,I as Ka,J as xs,K as qa,M as cr,N as Nt,Q as Ga,S as Ja,a as St,q as Za,e as hr,R as oe,T as dr,P as Qa,b as tl,L as el,U as nl,C as ys,V as Zn}from"./main-BIBsTO5W.js";import{L as T,S as on,u as Qn,w as il}from"./xlsx-CxqzP9DR.js";import{S as J,E as ye,I as me,d as sl,u as ol}from"./report.js";import{c as fr,F as ur}from"./index-D6hre9Be.js";import{u as rl}from"./hook-DmuGcAOd.js";function al(){return D.useState(null)}function ll(e,t,n,i=!1){const s=Yt(n);D.useEffect(()=>{const o=typeof e=="function"?e():e;return o.addEventListener(t,s,i),()=>o.removeEventListener(t,s,i)},[e])}const cl=["onKeyDown"];function hl(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function dl(e){return!e||e.trim()==="#"}const pr=D.forwardRef((e,t)=>{let{onKeyDown:n}=e,i=hl(e,cl);const[s]=Wa(Object.assign({tagName:"a"},i)),o=Yt(r=>{s.onKeyDown(r),n==null||n(r)});return dl(i.href)||i.role==="button"?x.jsx("a",Object.assign({ref:t},i,s,{onKeyDown:o})):x.jsx("a",Object.assign({ref:t},i,{onKeyDown:n}))});pr.displayName="Anchor";const Ai=D.forwardRef(({bsPrefix:e,className:t,role:n="toolbar",...i},s)=>{const o=qt(e,"btn-toolbar");return x.jsx("div",{...i,ref:s,className:Gt(t,o),role:n})});Ai.displayName="ButtonToolbar";function fl(e,t,n){const i=D.useRef(e!==void 0),[s,o]=D.useState(t),r=e!==void 0,a=i.current;return i.current=r,!r&&a&&s!==t&&o(t),[r?e:s,D.useCallback((...l)=>{const[c,...h]=l;let d=n==null?void 0:n(c,...h);return o(c),d},[n])]}function ul(){const[,e]=D.useReducer(t=>t+1,0);return e}const Un=D.createContext(null);var _s=Object.prototype.hasOwnProperty;function vs(e,t,n){for(n of e.keys())if(We(n,t))return n}function We(e,t){var n,i,s;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((i=e.length)===t.length)for(;i--&&We(e[i],t[i]););return i===-1}if(n===Set){if(e.size!==t.size)return!1;for(i of e)if(s=i,s&&typeof s=="object"&&(s=vs(t,s),!s)||!t.has(s))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(i of e)if(s=i[0],s&&typeof s=="object"&&(s=vs(t,s),!s)||!We(i[1],t.get(s)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((i=e.byteLength)===t.byteLength)for(;i--&&e.getInt8(i)===t.getInt8(i););return i===-1}if(ArrayBuffer.isView(e)){if((i=e.byteLength)===t.byteLength)for(;i--&&e[i]===t[i];);return i===-1}if(!n||typeof e=="object"){i=0;for(n in e)if(_s.call(e,n)&&++i&&!_s.call(t,n)||!(n in t)||!We(e[n],t[n]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}function pl(e){const t=Ha();return[e[0],D.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var ft="top",yt="bottom",_t="right",ut="left",ji="auto",rn=[ft,yt,_t,ut],Se="start",qe="end",gl="clippingParents",gr="viewport",Ae="popper",ml="reference",ws=rn.reduce(function(e,t){return e.concat([t+"-"+Se,t+"-"+qe])},[]),mr=[].concat(rn,[ji]).reduce(function(e,t){return e.concat([t,t+"-"+Se,t+"-"+qe])},[]),bl="beforeRead",xl="read",yl="afterRead",_l="beforeMain",vl="main",wl="afterMain",Sl="beforeWrite",kl="write",Ml="afterWrite",Cl=[bl,xl,yl,_l,vl,wl,Sl,kl,Ml];function Ot(e){return e.split("-")[0]}function mt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ue(e){var t=mt(e).Element;return e instanceof t||e instanceof Element}function Et(e){var t=mt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Li(e){if(typeof ShadowRoot>"u")return!1;var t=mt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var he=Math.max,Ln=Math.min,ke=Math.round;function _i(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function br(){return!/^((?!chrome|android).)*safari/i.test(_i())}function Me(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&Et(e)&&(s=e.offsetWidth>0&&ke(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ke(i.height)/e.offsetHeight||1);var r=ue(e)?mt(e):window,a=r.visualViewport,l=!br()&&n,c=(i.left+(l&&a?a.offsetLeft:0))/s,h=(i.top+(l&&a?a.offsetTop:0))/o,d=i.width/s,f=i.height/o;return{width:d,height:f,top:h,right:c+d,bottom:h+f,left:c,x:c,y:h}}function Ni(e){var t=Me(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function xr(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Li(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Xt(e){return e?(e.nodeName||"").toLowerCase():null}function Ft(e){return mt(e).getComputedStyle(e)}function Pl(e){return["table","td","th"].indexOf(Xt(e))>=0}function Jt(e){return((ue(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xn(e){return Xt(e)==="html"?e:e.assignedSlot||e.parentNode||(Li(e)?e.host:null)||Jt(e)}function Ss(e){return!Et(e)||Ft(e).position==="fixed"?null:e.offsetParent}function Ol(e){var t=/firefox/i.test(_i()),n=/Trident/i.test(_i());if(n&&Et(e)){var i=Ft(e);if(i.position==="fixed")return null}var s=Xn(e);for(Li(s)&&(s=s.host);Et(s)&&["html","body"].indexOf(Xt(s))<0;){var o=Ft(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function an(e){for(var t=mt(e),n=Ss(e);n&&Pl(n)&&Ft(n).position==="static";)n=Ss(n);return n&&(Xt(n)==="html"||Xt(n)==="body"&&Ft(n).position==="static")?t:n||Ol(e)||t}function Ii(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function He(e,t,n){return he(e,Ln(t,n))}function El(e,t,n){var i=He(e,t,n);return i>n?n:i}function yr(){return{top:0,right:0,bottom:0,left:0}}function _r(e){return Object.assign({},yr(),e)}function vr(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var Dl=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,_r(typeof t!="number"?t:vr(t,rn))};function Rl(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=Ot(n.placement),l=Ii(a),c=[ut,_t].indexOf(a)>=0,h=c?"height":"width";if(!(!o||!r)){var d=Dl(s.padding,n),f=Ni(o),u=l==="y"?ft:ut,g=l==="y"?yt:_t,m=n.rects.reference[h]+n.rects.reference[l]-r[l]-n.rects.popper[h],p=r[l]-n.rects.reference[l],b=an(o),y=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,v=m/2-p/2,w=d[u],_=y-f[h]-d[g],S=y/2-f[h]/2+v,M=He(w,S,_),k=l;n.modifiersData[i]=(t={},t[k]=M,t.centerOffset=M-S,t)}}function Tl(e){var t=e.state,n=e.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||xr(t.elements.popper,s)&&(t.elements.arrow=s))}const Al={name:"arrow",enabled:!0,phase:"main",fn:Rl,effect:Tl,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ce(e){return e.split("-")[1]}var jl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ll(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:ke(n*s)/s||0,y:ke(i*s)/s||0}}function ks(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,h=e.roundOffsets,d=e.isFixed,f=r.x,u=f===void 0?0:f,g=r.y,m=g===void 0?0:g,p=typeof h=="function"?h({x:u,y:m}):{x:u,y:m};u=p.x,m=p.y;var b=r.hasOwnProperty("x"),y=r.hasOwnProperty("y"),v=ut,w=ft,_=window;if(c){var S=an(n),M="clientHeight",k="clientWidth";if(S===mt(n)&&(S=Jt(n),Ft(S).position!=="static"&&a==="absolute"&&(M="scrollHeight",k="scrollWidth")),S=S,s===ft||(s===ut||s===_t)&&o===qe){w=yt;var P=d&&S===_&&_.visualViewport?_.visualViewport.height:S[M];m-=P-i.height,m*=l?1:-1}if(s===ut||(s===ft||s===yt)&&o===qe){v=_t;var E=d&&S===_&&_.visualViewport?_.visualViewport.width:S[k];u-=E-i.width,u*=l?1:-1}}var C=Object.assign({position:a},c&&jl),O=h===!0?Ll({x:u,y:m},mt(n)):{x:u,y:m};if(u=O.x,m=O.y,l){var R;return Object.assign({},C,(R={},R[w]=y?"0":"",R[v]=b?"0":"",R.transform=(_.devicePixelRatio||1)<=1?"translate("+u+"px, "+m+"px)":"translate3d("+u+"px, "+m+"px, 0)",R))}return Object.assign({},C,(t={},t[w]=y?m+"px":"",t[v]=b?u+"px":"",t.transform="",t))}function Nl(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=i===void 0?!0:i,o=n.adaptive,r=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Ot(t.placement),variation:Ce(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ks(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ks(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Il={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nl,data:{}};var un={passive:!0};function Fl(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=s===void 0?!0:s,r=i.resize,a=r===void 0?!0:r,l=mt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(h){h.addEventListener("scroll",n.update,un)}),a&&l.addEventListener("resize",n.update,un),function(){o&&c.forEach(function(h){h.removeEventListener("scroll",n.update,un)}),a&&l.removeEventListener("resize",n.update,un)}}const $l={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Fl,data:{}};var zl={left:"right",right:"left",bottom:"top",top:"bottom"};function Tn(e){return e.replace(/left|right|bottom|top/g,function(t){return zl[t]})}var Bl={start:"end",end:"start"};function Ms(e){return e.replace(/start|end/g,function(t){return Bl[t]})}function Fi(e){var t=mt(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function $i(e){return Me(Jt(e)).left+Fi(e).scrollLeft}function Wl(e,t){var n=mt(e),i=Jt(e),s=n.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=br();(c||!c&&t==="fixed")&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+$i(e),y:l}}function Hl(e){var t,n=Jt(e),i=Fi(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=he(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=he(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+$i(e),l=-i.scrollTop;return Ft(s||n).direction==="rtl"&&(a+=he(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}function zi(e){var t=Ft(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function wr(e){return["html","body","#document"].indexOf(Xt(e))>=0?e.ownerDocument.body:Et(e)&&zi(e)?e:wr(Xn(e))}function Ve(e,t){var n;t===void 0&&(t=[]);var i=wr(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=mt(i),r=s?[o].concat(o.visualViewport||[],zi(i)?i:[]):i,a=t.concat(r);return s?a:a.concat(Ve(Xn(r)))}function vi(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Vl(e,t){var n=Me(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Cs(e,t,n){return t===gr?vi(Wl(e,n)):ue(t)?Vl(t,n):vi(Hl(Jt(e)))}function Yl(e){var t=Ve(Xn(e)),n=["absolute","fixed"].indexOf(Ft(e).position)>=0,i=n&&Et(e)?an(e):e;return ue(i)?t.filter(function(s){return ue(s)&&xr(s,i)&&Xt(s)!=="body"}):[]}function Ul(e,t,n,i){var s=t==="clippingParents"?Yl(e):[].concat(t),o=[].concat(s,[n]),r=o[0],a=o.reduce(function(l,c){var h=Cs(e,c,i);return l.top=he(h.top,l.top),l.right=Ln(h.right,l.right),l.bottom=Ln(h.bottom,l.bottom),l.left=he(h.left,l.left),l},Cs(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Sr(e){var t=e.reference,n=e.element,i=e.placement,s=i?Ot(i):null,o=i?Ce(i):null,r=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(s){case ft:l={x:r,y:t.y-n.height};break;case yt:l={x:r,y:t.y+t.height};break;case _t:l={x:t.x+t.width,y:a};break;case ut:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=s?Ii(s):null;if(c!=null){var h=c==="y"?"height":"width";switch(o){case Se:l[c]=l[c]-(t[h]/2-n[h]/2);break;case qe:l[c]=l[c]+(t[h]/2-n[h]/2);break}}return l}function Ge(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=i===void 0?e.placement:i,o=n.strategy,r=o===void 0?e.strategy:o,a=n.boundary,l=a===void 0?gl:a,c=n.rootBoundary,h=c===void 0?gr:c,d=n.elementContext,f=d===void 0?Ae:d,u=n.altBoundary,g=u===void 0?!1:u,m=n.padding,p=m===void 0?0:m,b=_r(typeof p!="number"?p:vr(p,rn)),y=f===Ae?ml:Ae,v=e.rects.popper,w=e.elements[g?y:f],_=Ul(ue(w)?w:w.contextElement||Jt(e.elements.popper),l,h,r),S=Me(e.elements.reference),M=Sr({reference:S,element:v,strategy:"absolute",placement:s}),k=vi(Object.assign({},v,M)),P=f===Ae?k:S,E={top:_.top-P.top+b.top,bottom:P.bottom-_.bottom+b.bottom,left:_.left-P.left+b.left,right:P.right-_.right+b.right},C=e.modifiersData.offset;if(f===Ae&&C){var O=C[s];Object.keys(E).forEach(function(R){var N=[_t,yt].indexOf(R)>=0?1:-1,A=[ft,yt].indexOf(R)>=0?"y":"x";E[R]+=O[A]*N})}return E}function Xl(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?mr:l,h=Ce(i),d=h?a?ws:ws.filter(function(g){return Ce(g)===h}):rn,f=d.filter(function(g){return c.indexOf(g)>=0});f.length===0&&(f=d);var u=f.reduce(function(g,m){return g[m]=Ge(e,{placement:m,boundary:s,rootBoundary:o,padding:r})[Ot(m)],g},{});return Object.keys(u).sort(function(g,m){return u[g]-u[m]})}function Kl(e){if(Ot(e)===ji)return[];var t=Tn(e);return[Ms(e),t,Ms(t)]}function ql(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,r=n.altAxis,a=r===void 0?!0:r,l=n.fallbackPlacements,c=n.padding,h=n.boundary,d=n.rootBoundary,f=n.altBoundary,u=n.flipVariations,g=u===void 0?!0:u,m=n.allowedAutoPlacements,p=t.options.placement,b=Ot(p),y=b===p,v=l||(y||!g?[Tn(p)]:Kl(p)),w=[p].concat(v).reduce(function(X,K){return X.concat(Ot(K)===ji?Xl(t,{placement:K,boundary:h,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:m}):K)},[]),_=t.rects.reference,S=t.rects.popper,M=new Map,k=!0,P=w[0],E=0;E<w.length;E++){var C=w[E],O=Ot(C),R=Ce(C)===Se,N=[ft,yt].indexOf(O)>=0,A=N?"width":"height",L=Ge(t,{placement:C,boundary:h,rootBoundary:d,altBoundary:f,padding:c}),I=N?R?_t:ut:R?yt:ft;_[A]>S[A]&&(I=Tn(I));var W=Tn(I),$=[];if(o&&$.push(L[O]<=0),a&&$.push(L[I]<=0,L[W]<=0),$.every(function(X){return X})){P=C,k=!1;break}M.set(C,$)}if(k)for(var B=g?3:1,et=function(K){var G=w.find(function(Rt){var H=M.get(Rt);if(H)return H.slice(0,K).every(function(nt){return nt})});if(G)return P=G,"break"},tt=B;tt>0;tt--){var it=et(tt);if(it==="break")break}t.placement!==P&&(t.modifiersData[i]._skip=!0,t.placement=P,t.reset=!0)}}const Gl={name:"flip",enabled:!0,phase:"main",fn:ql,requiresIfExists:["offset"],data:{_skip:!1}};function Ps(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Os(e){return[ft,_t,yt,ut].some(function(t){return e[t]>=0})}function Jl(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=Ge(t,{elementContext:"reference"}),a=Ge(t,{altBoundary:!0}),l=Ps(r,i),c=Ps(a,s,o),h=Os(l),d=Os(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}const Zl={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Jl};function Ql(e,t,n){var i=Ot(e),s=[ut,ft].indexOf(i)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[ut,_t].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}function tc(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=s===void 0?[0,0]:s,r=mr.reduce(function(h,d){return h[d]=Ql(d,t.rects,o),h},{}),a=r[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}const ec={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tc};function nc(e){var t=e.state,n=e.name;t.modifiersData[n]=Sr({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ic={name:"popperOffsets",enabled:!0,phase:"read",fn:nc,data:{}};function sc(e){return e==="x"?"y":"x"}function oc(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=s===void 0?!0:s,r=n.altAxis,a=r===void 0?!1:r,l=n.boundary,c=n.rootBoundary,h=n.altBoundary,d=n.padding,f=n.tether,u=f===void 0?!0:f,g=n.tetherOffset,m=g===void 0?0:g,p=Ge(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),b=Ot(t.placement),y=Ce(t.placement),v=!y,w=Ii(b),_=sc(w),S=t.modifiersData.popperOffsets,M=t.rects.reference,k=t.rects.popper,P=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,E=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),C=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(o){var R,N=w==="y"?ft:ut,A=w==="y"?yt:_t,L=w==="y"?"height":"width",I=S[w],W=I+p[N],$=I-p[A],B=u?-k[L]/2:0,et=y===Se?M[L]:k[L],tt=y===Se?-k[L]:-M[L],it=t.elements.arrow,X=u&&it?Ni(it):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yr(),G=K[N],Rt=K[A],H=He(0,M[L],X[L]),nt=v?M[L]/2-B-H-G-E.mainAxis:et-H-G-E.mainAxis,Te=v?-M[L]/2+B+H+Rt+E.mainAxis:tt+H+Rt+E.mainAxis,zt=t.elements.arrow&&an(t.elements.arrow),Zt=zt?w==="y"?zt.clientTop||0:zt.clientLeft||0:0,Qt=(R=C==null?void 0:C[w])!=null?R:0,ct=I+nt-Qt-Zt,Ia=I+Te-Qt,cs=He(u?Ln(W,ct):W,I,u?he($,Ia):$);S[w]=cs,O[w]=cs-I}if(a){var hs,Fa=w==="x"?ft:ut,$a=w==="x"?yt:_t,te=S[_],dn=_==="y"?"height":"width",ds=te+p[Fa],fs=te-p[$a],Jn=[ft,ut].indexOf(b)!==-1,us=(hs=C==null?void 0:C[_])!=null?hs:0,ps=Jn?ds:te-M[dn]-k[dn]-us+E.altAxis,gs=Jn?te+M[dn]+k[dn]-us-E.altAxis:fs,ms=u&&Jn?El(ps,te,gs):He(u?ps:ds,te,u?gs:fs);S[_]=ms,O[_]=ms-te}t.modifiersData[i]=O}}const rc={name:"preventOverflow",enabled:!0,phase:"main",fn:oc,requiresIfExists:["offset"]};function ac(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lc(e){return e===mt(e)||!Et(e)?Fi(e):ac(e)}function cc(e){var t=e.getBoundingClientRect(),n=ke(t.width)/e.offsetWidth||1,i=ke(t.height)/e.offsetHeight||1;return n!==1||i!==1}function hc(e,t,n){n===void 0&&(n=!1);var i=Et(t),s=Et(t)&&cc(t),o=Jt(t),r=Me(e,s,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&((Xt(t)!=="body"||zi(o))&&(a=lc(t)),Et(t)?(l=Me(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=$i(o))),{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function dc(e){var t=new Map,n=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var r=[].concat(o.requires||[],o.requiresIfExists||[]);r.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&s(l)}}),i.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),i}function fc(e){var t=dc(e);return Cl.reduce(function(n,i){return n.concat(t.filter(function(s){return s.phase===i}))},[])}function uc(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function pc(e){var t=e.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var Es={placement:"bottom",modifiers:[],strategy:"absolute"};function Ds(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function gc(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?Es:s;return function(a,l,c){c===void 0&&(c=o);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Es,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],f=!1,u={state:h,setOptions:function(b){var y=typeof b=="function"?b(h.options):b;m(),h.options=Object.assign({},o,h.options,y),h.scrollParents={reference:ue(a)?Ve(a):a.contextElement?Ve(a.contextElement):[],popper:Ve(l)};var v=fc(pc([].concat(i,h.options.modifiers)));return h.orderedModifiers=v.filter(function(w){return w.enabled}),g(),u.update()},forceUpdate:function(){if(!f){var b=h.elements,y=b.reference,v=b.popper;if(Ds(y,v)){h.rects={reference:hc(y,an(v),h.options.strategy==="fixed"),popper:Ni(v)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(E){return h.modifiersData[E.name]=Object.assign({},E.data)});for(var w=0;w<h.orderedModifiers.length;w++){if(h.reset===!0){h.reset=!1,w=-1;continue}var _=h.orderedModifiers[w],S=_.fn,M=_.options,k=M===void 0?{}:M,P=_.name;typeof S=="function"&&(h=S({state:h,options:k,name:P,instance:u})||h)}}}},update:uc(function(){return new Promise(function(p){u.forceUpdate(),p(h)})}),destroy:function(){m(),f=!0}};if(!Ds(a,l))return u;u.setOptions(c).then(function(p){!f&&c.onFirstUpdate&&c.onFirstUpdate(p)});function g(){h.orderedModifiers.forEach(function(p){var b=p.name,y=p.options,v=y===void 0?{}:y,w=p.effect;if(typeof w=="function"){var _=w({state:h,name:b,instance:u,options:v}),S=function(){};d.push(_||S)}})}function m(){d.forEach(function(p){return p()}),d=[]}return u}}const mc=gc({defaultModifiers:[Zl,ic,Il,$l,ec,Gl,rc,Al]}),bc=["enabled","placement","strategy","modifiers"];function xc(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}const yc={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},_c={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const i=(t.getAttribute("aria-describedby")||"").split(",").filter(s=>s.trim()!==n.id);i.length?t.setAttribute("aria-describedby",i.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:i}=e.elements,s=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&s==="tooltip"&&"setAttribute"in i){const o=i.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(n.id)!==-1)return;i.setAttribute("aria-describedby",o?`${o},${n.id}`:n.id)}}},vc=[];function wc(e,t,n={}){let{enabled:i=!0,placement:s="bottom",strategy:o="absolute",modifiers:r=vc}=n,a=xc(n,bc);const l=D.useRef(r),c=D.useRef(),h=D.useCallback(()=>{var p;(p=c.current)==null||p.update()},[]),d=D.useCallback(()=>{var p;(p=c.current)==null||p.forceUpdate()},[]),[f,u]=pl(D.useState({placement:s,update:h,forceUpdate:d,attributes:{},styles:{popper:{},arrow:{}}})),g=D.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:p})=>{const b={},y={};Object.keys(p.elements).forEach(v=>{b[v]=p.styles[v],y[v]=p.attributes[v]}),u({state:p,styles:b,attributes:y,update:h,forceUpdate:d,placement:p.placement})}}),[h,d,u]),m=D.useMemo(()=>(We(l.current,r)||(l.current=r),l.current),[r]);return D.useEffect(()=>{!c.current||!i||c.current.setOptions({placement:s,strategy:o,modifiers:[...m,g,yc]})},[o,s,g,i,m]),D.useEffect(()=>{if(!(!i||e==null||t==null))return c.current=mc(e,t,Object.assign({},a,{placement:s,strategy:o,modifiers:[...m,_c,g]})),()=>{c.current!=null&&(c.current.destroy(),c.current=void 0,u(p=>Object.assign({},p,{attributes:{},styles:{popper:{}}})))}},[i,e,t]),f}const Rs=()=>{};function Sc(e){return e.button===0}function kc(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const ti=e=>e&&("current"in e?e.current:e),Ts={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Mc(e,t=Rs,{disabled:n,clickTrigger:i="click"}={}){const s=D.useRef(!1),o=D.useRef(!1),r=D.useCallback(c=>{const h=ti(e);Va(!!h,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),s.current=!h||kc(c)||!Sc(c)||!!bs(h,c.target)||o.current,o.current=!1},[e]),a=Yt(c=>{const h=ti(e);h&&bs(h,c.target)?o.current=!0:o.current=!1}),l=Yt(c=>{s.current||t(c)});D.useEffect(()=>{var c,h;if(n||e==null)return;const d=Ya(ti(e)),f=d.defaultView||window;let u=(c=f.event)!=null?c:(h=f.parent)==null?void 0:h.event,g=null;Ts[i]&&(g=fn(d,Ts[i],a,!0));const m=fn(d,i,r,!0),p=fn(d,i,y=>{if(y===u){u=void 0;return}l(y)});let b=[];return"ontouchstart"in d.documentElement&&(b=[].slice.call(d.body.children).map(y=>fn(y,"mousemove",Rs))),()=>{g==null||g(),m(),p(),b.forEach(y=>y())}},[e,n,i,r,a,l])}function Cc(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function Pc(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Oc({enabled:e,enableEvents:t,placement:n,flip:i,offset:s,fixed:o,containerPadding:r,arrowElement:a,popperConfig:l={}}){var c,h,d,f,u;const g=Cc(l.modifiers);return Object.assign({},l,{placement:n,enabled:e,strategy:o?"fixed":l.strategy,modifiers:Pc(Object.assign({},g,{eventListeners:{enabled:t,options:(c=g.eventListeners)==null?void 0:c.options},preventOverflow:Object.assign({},g.preventOverflow,{options:r?Object.assign({padding:r},(h=g.preventOverflow)==null?void 0:h.options):(d=g.preventOverflow)==null?void 0:d.options}),offset:{options:Object.assign({offset:s},(f=g.offset)==null?void 0:f.options)},arrow:Object.assign({},g.arrow,{enabled:!!a,options:Object.assign({},(u=g.arrow)==null?void 0:u.options,{element:a})}),flip:Object.assign({enabled:!!i},g.flip)}))})}const Ec=["children","usePopper"];function Dc(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}const Rc=()=>{};function kr(e={}){const t=D.useContext(Un),[n,i]=al(),s=D.useRef(!1),{flip:o,offset:r,rootCloseEvent:a,fixed:l=!1,placement:c,popperConfig:h={},enableEventListeners:d=!0,usePopper:f=!!t}=e,u=(t==null?void 0:t.show)==null?!!e.show:t.show;u&&!s.current&&(s.current=!0);const g=S=>{t==null||t.toggle(!1,S)},{placement:m,setMenu:p,menuElement:b,toggleElement:y}=t||{},v=wc(y,b,Oc({placement:c||m||"bottom-start",enabled:f,enableEvents:d??u,offset:r,flip:o,fixed:l,arrowElement:n,popperConfig:h})),w=Object.assign({ref:p||Rc,"aria-labelledby":y==null?void 0:y.id},v.attributes.popper,{style:v.styles.popper}),_={show:u,placement:m,hasShown:s.current,toggle:t==null?void 0:t.toggle,popper:f?v:null,arrowProps:f?Object.assign({ref:i},v.attributes.arrow,{style:v.styles.arrow}):{}};return Mc(b,g,{clickTrigger:a,disabled:!u}),[w,_]}function Mr(e){let{children:t,usePopper:n=!0}=e,i=Dc(e,Ec);const[s,o]=kr(Object.assign({},i,{usePopper:n}));return x.jsx(x.Fragment,{children:t(s,o)})}Mr.displayName="DropdownMenu";const Bi={prefix:String(Math.round(Math.random()*1e10)),current:0},Cr=fe.createContext(Bi),Tc=fe.createContext(!1);let Ac=!!(typeof window<"u"&&window.document&&window.document.createElement),ei=new WeakMap;function jc(e=!1){let t=D.useContext(Cr),n=D.useRef(null);if(n.current===null&&!e){var i,s;let o=(s=fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||s===void 0||(i=s.ReactCurrentOwner)===null||i===void 0?void 0:i.current;if(o){let r=ei.get(o);r==null?ei.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==r.state&&(t.current=r.id,ei.delete(o))}n.current=++t.current}return n.current}function Lc(e){let t=D.useContext(Cr);t===Bi&&!Ac&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=jc(!!e),i=`react-aria${t.prefix}`;return e||`${i}-${n}`}function Nc(e){let t=fe.useId(),[n]=D.useState(Bc()),i=n?"react-aria":`react-aria${Bi.prefix}`;return e||`${i}-${t}`}const Ic=typeof fe.useId=="function"?Nc:Lc;function Fc(){return!1}function $c(){return!0}function zc(e){return()=>{}}function Bc(){return typeof fe.useSyncExternalStore=="function"?fe.useSyncExternalStore(zc,Fc,$c):D.useContext(Tc)}const Pr=e=>{var t;return((t=e.getAttribute("role"))==null?void 0:t.toLowerCase())==="menu"},As=()=>{};function Or(){const e=Ic(),{show:t=!1,toggle:n=As,setToggle:i,menuElement:s}=D.useContext(Un)||{},o=D.useCallback(a=>{n(!t,a)},[t,n]),r={id:e,ref:i||As,onClick:o,"aria-expanded":!!t};return s&&Pr(s)&&(r["aria-haspopup"]=!0),[r,{show:t,toggle:n}]}function Er({children:e}){const[t,n]=Or();return x.jsx(x.Fragment,{children:e(t,n)})}Er.displayName="DropdownToggle";const wi=D.createContext(null),js=(e,t=null)=>e!=null?String(e):t||null,Dr=D.createContext(null);Dr.displayName="NavContext";const Wc=["eventKey","disabled","onClick","active","as"];function Hc(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function Rr({key:e,href:t,active:n,disabled:i,onClick:s}){const o=D.useContext(wi),r=D.useContext(Dr),{activeKey:a}=r||{},l=js(e,t),c=n==null&&e!=null?js(a)===l:n;return[{onClick:Yt(d=>{i||(s==null||s(d),o&&!d.isPropagationStopped()&&o(l,d))}),"aria-disabled":i||void 0,"aria-selected":c,[lr("dropdown-item")]:""},{isActive:c}]}const Tr=D.forwardRef((e,t)=>{let{eventKey:n,disabled:i,onClick:s,active:o,as:r=Ua}=e,a=Hc(e,Wc);const[l]=Rr({key:n,href:a.href,disabled:i,onClick:s,active:o});return x.jsx(r,Object.assign({},a,{ref:t},l))});Tr.displayName="DropdownItem";function Ls(){const e=ul(),t=D.useRef(null),n=D.useCallback(i=>{t.current=i,e()},[e]);return[t,n]}function ln({defaultShow:e,show:t,onSelect:n,onToggle:i,itemSelector:s=`* [${lr("dropdown-item")}]`,focusFirstItemOnShow:o,placement:r="bottom-start",children:a}){const l=Xa(),[c,h]=fl(t,e,i),[d,f]=Ls(),u=d.current,[g,m]=Ls(),p=g.current,b=Ka(c),y=D.useRef(null),v=D.useRef(!1),w=D.useContext(wi),_=D.useCallback((C,O,R=O==null?void 0:O.type)=>{h(C,{originalEvent:O,source:R})},[h]),S=Yt((C,O)=>{n==null||n(C,O),_(!1,O,"select"),O.isPropagationStopped()||w==null||w(C,O)}),M=D.useMemo(()=>({toggle:_,placement:r,show:c,menuElement:u,toggleElement:p,setMenu:f,setToggle:m}),[_,r,c,u,p,f,m]);u&&b&&!c&&(v.current=u.contains(u.ownerDocument.activeElement));const k=Yt(()=>{p&&p.focus&&p.focus()}),P=Yt(()=>{const C=y.current;let O=o;if(O==null&&(O=d.current&&Pr(d.current)?"keyboard":!1),O===!1||O==="keyboard"&&!/^key.+$/.test(C))return;const R=xs(d.current,s)[0];R&&R.focus&&R.focus()});D.useEffect(()=>{c?P():v.current&&(v.current=!1,k())},[c,v,k,P]),D.useEffect(()=>{y.current=null});const E=(C,O)=>{if(!d.current)return null;const R=xs(d.current,s);let N=R.indexOf(C)+O;return N=Math.max(0,Math.min(N,R.length)),R[N]};return ll(D.useCallback(()=>l.document,[l]),"keydown",C=>{var O,R;const{key:N}=C,A=C.target,L=(O=d.current)==null?void 0:O.contains(A),I=(R=g.current)==null?void 0:R.contains(A);if(/input|textarea/i.test(A.tagName)&&(N===" "||N!=="Escape"&&L||N==="Escape"&&A.type==="search")||!L&&!I||N==="Tab"&&(!d.current||!c))return;y.current=C.type;const $={originalEvent:C,source:C.type};switch(N){case"ArrowUp":{const B=E(A,-1);B&&B.focus&&B.focus(),C.preventDefault();return}case"ArrowDown":if(C.preventDefault(),!c)h(!0,$);else{const B=E(A,1);B&&B.focus&&B.focus()}return;case"Tab":qa(A.ownerDocument,"keyup",B=>{var et;(B.key==="Tab"&&!B.target||!((et=d.current)!=null&&et.contains(B.target)))&&h(!1,$)},{once:!0});break;case"Escape":N==="Escape"&&(C.preventDefault(),C.stopPropagation()),h(!1,$);break}}),x.jsx(wi.Provider,{value:S,children:x.jsx(Un.Provider,{value:M,children:a})})}ln.displayName="Dropdown";ln.Menu=Mr;ln.Toggle=Er;ln.Item=Tr;const Wi=D.createContext({});Wi.displayName="DropdownContext";const Ar=D.forwardRef(({className:e,bsPrefix:t,as:n="hr",role:i="separator",...s},o)=>(t=qt(t,"dropdown-divider"),x.jsx(n,{ref:o,className:Gt(e,t),role:i,...s})));Ar.displayName="DropdownDivider";const jr=D.forwardRef(({className:e,bsPrefix:t,as:n="div",role:i="heading",...s},o)=>(t=qt(t,"dropdown-header"),x.jsx(n,{ref:o,className:Gt(e,t),role:i,...s})));jr.displayName="DropdownHeader";const Lr=D.forwardRef(({bsPrefix:e,className:t,eventKey:n,disabled:i=!1,onClick:s,active:o,as:r=pr,...a},l)=>{const c=qt(e,"dropdown-item"),[h,d]=Rr({key:n,href:a.href,disabled:i,onClick:s,active:o});return x.jsx(r,{...a,...h,ref:l,className:Gt(t,c,d.isActive&&"active",i&&"disabled")})});Lr.displayName="DropdownItem";const Nr=D.forwardRef(({className:e,bsPrefix:t,as:n="span",...i},s)=>(t=qt(t,"dropdown-item-text"),x.jsx(n,{ref:s,className:Gt(e,t),...i})));Nr.displayName="DropdownItemText";const Vc=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Yc=typeof document<"u",Uc=Yc||Vc?D.useLayoutEffect:D.useEffect,Ir=D.createContext(null);Ir.displayName="NavbarContext";function Fr(e,t){return e}function $r(e,t,n){const i=n?"top-end":"top-start",s=n?"top-start":"top-end",o=n?"bottom-end":"bottom-start",r=n?"bottom-start":"bottom-end",a=n?"right-start":"left-start",l=n?"right-end":"left-end",c=n?"left-start":"right-start",h=n?"left-end":"right-end";let d=e?r:o;return t==="up"?d=e?s:i:t==="end"?d=e?h:c:t==="start"?d=e?l:a:t==="down-centered"?d="bottom":t==="up-centered"&&(d="top"),d}const zr=D.forwardRef(({bsPrefix:e,className:t,align:n,rootCloseEvent:i,flip:s=!0,show:o,renderOnMount:r,as:a="div",popperConfig:l,variant:c,...h},d)=>{let f=!1;const u=D.useContext(Ir),g=qt(e,"dropdown-menu"),{align:m,drop:p,isRTL:b}=D.useContext(Wi);n=n||m;const y=D.useContext(fr),v=[];if(n)if(typeof n=="object"){const C=Object.keys(n);if(C.length){const O=C[0],R=n[O];f=R==="start",v.push(`${g}-${O}-${R}`)}}else n==="end"&&(f=!0);const w=$r(f,p,b),[_,{hasShown:S,popper:M,show:k,toggle:P}]=kr({flip:s,rootCloseEvent:i,show:o,usePopper:!u&&v.length===0,offset:[0,2],popperConfig:l,placement:w});if(_.ref=cr(Fr(d),_.ref),Uc(()=>{k&&(M==null||M.update())},[k]),!S&&!r&&!y)return null;typeof a!="string"&&(_.show=k,_.close=()=>P==null?void 0:P(!1),_.align=n);let E=h.style;return M!=null&&M.placement&&(E={...h.style,..._.style},h["x-placement"]=M.placement),x.jsx(a,{...h,..._,style:E,...(v.length||u)&&{"data-bs-popper":"static"},className:Gt(t,g,k&&"show",f&&`${g}-end`,c&&`${g}-${c}`,...v)})});zr.displayName="DropdownMenu";const Br=D.forwardRef(({bsPrefix:e,split:t,className:n,childBsPrefix:i,as:s=Nt,...o},r)=>{const a=qt(e,"dropdown-toggle"),l=D.useContext(Un);i!==void 0&&(o.bsPrefix=i);const[c]=Or();return c.ref=cr(c.ref,Fr(r)),x.jsx(s,{className:Gt(n,a,t&&`${a}-split`,(l==null?void 0:l.show)&&"show"),...c,...o})});Br.displayName="DropdownToggle";const Wr=D.forwardRef((e,t)=>{const{bsPrefix:n,drop:i="down",show:s,className:o,align:r="start",onSelect:a,onToggle:l,focusFirstItemOnShow:c,as:h="div",navbar:d,autoClose:f=!0,...u}=rl(e,{show:"onToggle"}),g=D.useContext(fr),m=qt(n,"dropdown"),p=Ga(),b=M=>f===!1?M==="click":f==="inside"?M!=="rootClose":f==="outside"?M!=="select":!0,y=Ja((M,k)=>{var P;!((P=k.originalEvent)==null||(P=P.target)==null)&&P.classList.contains("dropdown-toggle")&&k.source==="mousedown"||(k.originalEvent.currentTarget===document&&(k.source!=="keydown"||k.originalEvent.key==="Escape")&&(k.source="rootClose"),b(k.source)&&(l==null||l(M,k)))}),w=$r(r==="end",i,p),_=D.useMemo(()=>({align:r,drop:i,isRTL:p}),[r,i,p]),S={down:m,"down-centered":`${m}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return x.jsx(Wi.Provider,{value:_,children:x.jsx(ln,{placement:w,show:s,onSelect:a,onToggle:y,focusFirstItemOnShow:c,itemSelector:`.${m}-item:not(.disabled):not(:disabled)`,children:g?u.children:x.jsx(h,{...u,ref:t,className:Gt(o,s&&"show",S[i])})})})});Wr.displayName="Dropdown";const ni=Object.assign(Wr,{Toggle:Br,Menu:zr,Item:Lr,ItemText:Nr,Divider:Ar,Header:jr});/*!
+ * @kurkle/color v0.3.2
+ * https://github.com/kurkle/color#readme
+ * (c) 2023 Jukka Kurkela
+ * Released under the MIT License
+ */function cn(e){return e+.5|0}const Wt=(e,t,n)=>Math.max(Math.min(e,n),t);function $e(e){return Wt(cn(e*2.55),0,255)}function Ut(e){return Wt(cn(e*255),0,255)}function Lt(e){return Wt(cn(e/2.55)/100,0,1)}function Ns(e){return Wt(cn(e*100),0,100)}const bt={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Si=[..."0123456789ABCDEF"],Xc=e=>Si[e&15],Kc=e=>Si[(e&240)>>4]+Si[e&15],pn=e=>(e&240)>>4===(e&15),qc=e=>pn(e.r)&&pn(e.g)&&pn(e.b)&&pn(e.a);function Gc(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&bt[e[1]]*17,g:255&bt[e[2]]*17,b:255&bt[e[3]]*17,a:t===5?bt[e[4]]*17:255}:(t===7||t===9)&&(n={r:bt[e[1]]<<4|bt[e[2]],g:bt[e[3]]<<4|bt[e[4]],b:bt[e[5]]<<4|bt[e[6]],a:t===9?bt[e[7]]<<4|bt[e[8]]:255})),n}const Jc=(e,t)=>e<255?t(e):"";function Zc(e){var t=qc(e)?Xc:Kc;return e?"#"+t(e.r)+t(e.g)+t(e.b)+Jc(e.a,t):void 0}const Qc=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Hr(e,t,n){const i=t*Math.min(n,1-n),s=(o,r=(o+e/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[s(0),s(8),s(4)]}function th(e,t,n){const i=(s,o=(s+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function eh(e,t,n){const i=Hr(e,1,.5);let s;for(t+n>1&&(s=1/(t+n),t*=s,n*=s),s=0;s<3;s++)i[s]*=1-t-n,i[s]+=t;return i}function nh(e,t,n,i,s){return e===s?(t-n)/i+(t<n?6:0):t===s?(n-e)/i+2:(e-t)/i+4}function Hi(e){const n=e.r/255,i=e.g/255,s=e.b/255,o=Math.max(n,i,s),r=Math.min(n,i,s),a=(o+r)/2;let l,c,h;return o!==r&&(h=o-r,c=a>.5?h/(2-o-r):h/(o+r),l=nh(n,i,s,h,o),l=l*60+.5),[l|0,c||0,a]}function Vi(e,t,n,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,i)).map(Ut)}function Yi(e,t,n){return Vi(Hr,e,t,n)}function ih(e,t,n){return Vi(eh,e,t,n)}function sh(e,t,n){return Vi(th,e,t,n)}function Vr(e){return(e%360+360)%360}function oh(e){const t=Qc.exec(e);let n=255,i;if(!t)return;t[5]!==i&&(n=t[6]?$e(+t[5]):Ut(+t[5]));const s=Vr(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?i=ih(s,o,r):t[1]==="hsv"?i=sh(s,o,r):i=Yi(s,o,r),{r:i[0],g:i[1],b:i[2],a:n}}function rh(e,t){var n=Hi(e);n[0]=Vr(n[0]+t),n=Yi(n),e.r=n[0],e.g=n[1],e.b=n[2]}function ah(e){if(!e)return;const t=Hi(e),n=t[0],i=Ns(t[1]),s=Ns(t[2]);return e.a<255?`hsla(${n}, ${i}%, ${s}%, ${Lt(e.a)})`:`hsl(${n}, ${i}%, ${s}%)`}const Is={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Fs={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function lh(){const e={},t=Object.keys(Fs),n=Object.keys(Is);let i,s,o,r,a;for(i=0;i<t.length;i++){for(r=a=t[i],s=0;s<n.length;s++)o=n[s],a=a.replace(o,Is[o]);o=parseInt(Fs[r],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}let gn;function ch(e){gn||(gn=lh(),gn.transparent=[0,0,0,0]);const t=gn[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const hh=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function dh(e){const t=hh.exec(e);let n=255,i,s,o;if(t){if(t[7]!==i){const r=+t[7];n=t[8]?$e(r):Wt(r*255,0,255)}return i=+t[1],s=+t[3],o=+t[5],i=255&(t[2]?$e(i):Wt(i,0,255)),s=255&(t[4]?$e(s):Wt(s,0,255)),o=255&(t[6]?$e(o):Wt(o,0,255)),{r:i,g:s,b:o,a:n}}}function fh(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Lt(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const ii=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,be=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function uh(e,t,n){const i=be(Lt(e.r)),s=be(Lt(e.g)),o=be(Lt(e.b));return{r:Ut(ii(i+n*(be(Lt(t.r))-i))),g:Ut(ii(s+n*(be(Lt(t.g))-s))),b:Ut(ii(o+n*(be(Lt(t.b))-o))),a:e.a+n*(t.a-e.a)}}function mn(e,t,n){if(e){let i=Hi(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*n,t===0?360:1)),i=Yi(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function Yr(e,t){return e&&Object.assign(t||{},e)}function $s(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Ut(e[3]))):(t=Yr(e,{r:0,g:0,b:0,a:1}),t.a=Ut(t.a)),t}function ph(e){return e.charAt(0)==="r"?dh(e):oh(e)}class Je{constructor(t){if(t instanceof Je)return t;const n=typeof t;let i;n==="object"?i=$s(t):n==="string"&&(i=Gc(t)||ch(t)||ph(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Yr(this._rgb);return t&&(t.a=Lt(t.a)),t}set rgb(t){this._rgb=$s(t)}rgbString(){return this._valid?fh(this._rgb):void 0}hexString(){return this._valid?Zc(this._rgb):void 0}hslString(){return this._valid?ah(this._rgb):void 0}mix(t,n){if(t){const i=this.rgb,s=t.rgb;let o;const r=n===o?.5:n,a=2*r-1,l=i.a-s.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,i.r=255&c*i.r+o*s.r+.5,i.g=255&c*i.g+o*s.g+.5,i.b=255&c*i.b+o*s.b+.5,i.a=r*i.a+(1-r)*s.a,this.rgb=i}return this}interpolate(t,n){return t&&(this._rgb=uh(this._rgb,t._rgb,n)),this}clone(){return new Je(this.rgb)}alpha(t){return this._rgb.a=Ut(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=cn(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return mn(this._rgb,2,t),this}darken(t){return mn(this._rgb,2,-t),this}saturate(t){return mn(this._rgb,1,t),this}desaturate(t){return mn(this._rgb,1,-t),this}rotate(t){return rh(this._rgb,t),this}}/*!
+ * Chart.js v4.4.7
+ * https://www.chartjs.org
+ * (c) 2024 Chart.js Contributors
+ * Released under the MIT License
+ */function Tt(){}const gh=(()=>{let e=0;return()=>e++})();function Y(e){return e==null}function Z(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function z(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function vt(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function kt(e,t){return vt(e)?e:t}function F(e,t){return typeof e>"u"?t:e}const mh=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function U(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function V(e,t,n,i){let s,o,r;if(Z(e))for(o=e.length,s=0;s<o;s++)t.call(n,e[s],s);else if(z(e))for(r=Object.keys(e),o=r.length,s=0;s<o;s++)t.call(n,e[r[s]],r[s])}function Nn(e,t){let n,i,s,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(s=e[n],o=t[n],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function In(e){if(Z(e))return e.map(In);if(z(e)){const t=Object.create(null),n=Object.keys(e),i=n.length;let s=0;for(;s<i;++s)t[n[s]]=In(e[n[s]]);return t}return e}function Ur(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function bh(e,t,n,i){if(!Ur(e))return;const s=t[e],o=n[e];z(s)&&z(o)?Ze(s,o,i):t[e]=In(o)}function Ze(e,t,n){const i=Z(t)?t:[t],s=i.length;if(!z(e))return e;n=n||{};const o=n.merger||bh;let r;for(let a=0;a<s;++a){if(r=i[a],!z(r))continue;const l=Object.keys(r);for(let c=0,h=l.length;c<h;++c)o(l[c],e,r,n)}return e}function Ye(e,t){return Ze(e,t,{merger:xh})}function xh(e,t,n){if(!Ur(e))return;const i=t[e],s=n[e];z(i)&&z(s)?Ye(i,s):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=In(s))}const zs={"":e=>e,x:e=>e.x,y:e=>e.y};function yh(e){const t=e.split("."),n=[];let i="";for(const s of t)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}function _h(e){const t=yh(e);return n=>{for(const i of t){if(i==="")break;n=n&&n[i]}return n}}function Pe(e,t){return(zs[t]||(zs[t]=_h(t)))(e)}function Ui(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Qe=e=>typeof e<"u",Kt=e=>typeof e=="function",Bs=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function vh(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Q=Math.PI,ot=2*Q,wh=ot+Q,Fn=Number.POSITIVE_INFINITY,Sh=Q/180,st=Q/2,ee=Q/4,Ws=Q*2/3,ki=Math.log10,Dt=Math.sign;function Ue(e,t,n){return Math.abs(e-t)<n}function Hs(e){const t=Math.round(e);e=Ue(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(ki(e))),i=e/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function kh(e){const t=[],n=Math.sqrt(e);let i;for(i=1;i<n;i++)e%i===0&&(t.push(i),t.push(e/i));return n===(n|0)&&t.push(n),t.sort((s,o)=>s-o).pop(),t}function tn(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Mh(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Ch(e,t,n){let i,s,o;for(i=0,s=e.length;i<s;i++)o=e[i][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function le(e){return e*(Q/180)}function Ph(e){return e*(180/Q)}function Vs(e){if(!vt(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function Xr(e,t){const n=t.x-e.x,i=t.y-e.y,s=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*Q&&(o+=ot),{angle:o,distance:s}}function Mi(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Oh(e,t){return(e-t+wh)%ot-Q}function Bt(e){return(e%ot+ot)%ot}function Xi(e,t,n,i){const s=Bt(e),o=Bt(t),r=Bt(n),a=Bt(o-s),l=Bt(r-s),c=Bt(s-o),h=Bt(s-r);return s===o||s===r||i&&o===r||a>l&&c<h}function at(e,t,n){return Math.max(t,Math.min(n,e))}function Eh(e){return at(e,-32768,32767)}function Ht(e,t,n,i=1e-6){return e>=Math.min(t,n)-i&&e<=Math.max(t,n)+i}function Ki(e,t,n){n=n||(r=>e[r]<t);let i=e.length-1,s=0,o;for(;i-s>1;)o=s+i>>1,n(o)?s=o:i=o;return{lo:s,hi:i}}const ce=(e,t,n,i)=>Ki(e,n,i?s=>{const o=e[s][t];return o<n||o===n&&e[s+1][t]===n}:s=>e[s][t]<n),Dh=(e,t,n)=>Ki(e,n,i=>e[i][t]>=n);function Rh(e,t,n){let i=0,s=e.length;for(;i<s&&e[i]<t;)i++;for(;s>i&&e[s-1]>n;)s--;return i>0||s<e.length?e.slice(i,s):e}const Kr=["push","pop","shift","splice","unshift"];function Th(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Kr.forEach(n=>{const i="_onData"+Ui(n),s=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const r=s.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...o)}),r}})})}function Ys(e,t){const n=e._chartjs;if(!n)return;const i=n.listeners,s=i.indexOf(t);s!==-1&&i.splice(s,1),!(i.length>0)&&(Kr.forEach(o=>{delete e[o]}),delete e._chartjs)}function qr(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Gr=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function Jr(e,t){let n=[],i=!1;return function(...s){n=s,i||(i=!0,Gr.call(window,()=>{i=!1,e.apply(t,n)}))}}function Ah(e,t){let n;return function(...i){return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}const qi=e=>e==="start"?"left":e==="end"?"right":"center",rt=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,jh=(e,t,n,i)=>e===(i?"left":"right")?n:e==="center"?(t+n)/2:t;function Lh(e,t,n){const i=t.length;let s=0,o=i;if(e._sorted){const{iScale:r,_parsed:a}=e,l=r.axis,{min:c,max:h,minDefined:d,maxDefined:f}=r.getUserBounds();d&&(s=at(Math.min(ce(a,l,c).lo,n?i:ce(t,l,r.getPixelForValue(c)).lo),0,i-1)),f?o=at(Math.max(ce(a,r.axis,h,!0).hi+1,n?0:ce(t,l,r.getPixelForValue(h),!0).hi+1),s,i)-s:o=i-s}return{start:s,count:o}}function Nh(e){const{xScale:t,yScale:n,_scaleRanges:i}=e,s={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!i)return e._scaleRanges=s,!0;const o=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,s),o}const bn=e=>e===0||e===1,Us=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ot/n)),Xs=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ot/n)+1,Xe={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*st)+1,easeOutSine:e=>Math.sin(e*st),easeInOutSine:e=>-.5*(Math.cos(Q*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>bn(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>bn(e)?e:Us(e,.075,.3),easeOutElastic:e=>bn(e)?e:Xs(e,.075,.3),easeInOutElastic(e){return bn(e)?e:e<.5?.5*Us(e*2,.1125,.45):.5+.5*Xs(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Xe.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Xe.easeInBounce(e*2)*.5:Xe.easeOutBounce(e*2-1)*.5+.5};function Gi(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Ks(e){return Gi(e)?e:new Je(e)}function si(e){return Gi(e)?e:new Je(e).saturate(.5).darken(.1).hexString()}const Ih=["x","y","borderWidth","radius","tension"],Fh=["color","borderColor","backgroundColor"];function $h(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:Fh},numbers:{type:"number",properties:Ih}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function zh(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const qs=new Map;function Bh(e,t){t=t||{};const n=e+JSON.stringify(t);let i=qs.get(n);return i||(i=new Intl.NumberFormat(e,t),qs.set(n,i)),i}function Zr(e,t,n){return Bh(t,n).format(e)}const Qr={values(e){return Z(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const i=this.chart.options.locale;let s,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(s="scientific"),o=Wh(e,n)}const r=ki(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Zr(e,i,l)},logarithmic(e,t,n){if(e===0)return"0";const i=n[t].significand||e/Math.pow(10,Math.floor(ki(e)));return[1,2,3,5,10,15].includes(i)||t>.8*n.length?Qr.numeric.call(this,e,t,n):""}};function Wh(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var ta={formatters:Qr};function Hh(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ta.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const pe=Object.create(null),Ci=Object.create(null);function Ke(e,t){if(!t)return e;const n=t.split(".");for(let i=0,s=n.length;i<s;++i){const o=n[i];e=e[o]||(e[o]=Object.create(null))}return e}function oi(e,t,n){return typeof t=="string"?Ze(Ke(e,t),n):Ze(Ke(e,""),t)}class Vh{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,s)=>si(s.backgroundColor),this.hoverBorderColor=(i,s)=>si(s.borderColor),this.hoverColor=(i,s)=>si(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return oi(this,t,n)}get(t){return Ke(this,t)}describe(t,n){return oi(Ci,t,n)}override(t,n){return oi(pe,t,n)}route(t,n,i,s){const o=Ke(this,t),r=Ke(this,i),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=r[s];return z(l)?Object.assign({},c,l):F(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var q=new Vh({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[$h,zh,Hh]);function Yh(e){return!e||Y(e.size)||Y(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Gs(e,t,n,i,s){let o=t[s];return o||(o=t[s]=e.measureText(s).width,n.push(s)),o>i&&(i=o),i}function ne(e,t,n){const i=e.currentDevicePixelRatio,s=n!==0?Math.max(n/2,.5):0;return Math.round((t-s)*i)/i+s}function Js(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Pi(e,t,n,i){ea(e,t,n,i,null)}function ea(e,t,n,i,s){let o,r,a,l,c,h,d,f;const u=t.pointStyle,g=t.rotation,m=t.radius;let p=(g||0)*Sh;if(u&&typeof u=="object"&&(o=u.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,i),e.rotate(p),e.drawImage(u,-u.width/2,-u.height/2,u.width,u.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),u){default:s?e.ellipse(n,i,s/2,m,0,0,ot):e.arc(n,i,m,0,ot),e.closePath();break;case"triangle":h=s?s/2:m,e.moveTo(n+Math.sin(p)*h,i-Math.cos(p)*m),p+=Ws,e.lineTo(n+Math.sin(p)*h,i-Math.cos(p)*m),p+=Ws,e.lineTo(n+Math.sin(p)*h,i-Math.cos(p)*m),e.closePath();break;case"rectRounded":c=m*.516,l=m-c,r=Math.cos(p+ee)*l,d=Math.cos(p+ee)*(s?s/2-c:l),a=Math.sin(p+ee)*l,f=Math.sin(p+ee)*(s?s/2-c:l),e.arc(n-d,i-a,c,p-Q,p-st),e.arc(n+f,i-r,c,p-st,p),e.arc(n+d,i+a,c,p,p+st),e.arc(n-f,i+r,c,p+st,p+Q),e.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*m,h=s?s/2:l,e.rect(n-h,i-l,2*h,2*l);break}p+=ee;case"rectRot":d=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,f=Math.sin(p)*(s?s/2:m),e.moveTo(n-d,i-a),e.lineTo(n+f,i-r),e.lineTo(n+d,i+a),e.lineTo(n-f,i+r),e.closePath();break;case"crossRot":p+=ee;case"cross":d=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,f=Math.sin(p)*(s?s/2:m),e.moveTo(n-d,i-a),e.lineTo(n+d,i+a),e.moveTo(n+f,i-r),e.lineTo(n-f,i+r);break;case"star":d=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,f=Math.sin(p)*(s?s/2:m),e.moveTo(n-d,i-a),e.lineTo(n+d,i+a),e.moveTo(n+f,i-r),e.lineTo(n-f,i+r),p+=ee,d=Math.cos(p)*(s?s/2:m),r=Math.cos(p)*m,a=Math.sin(p)*m,f=Math.sin(p)*(s?s/2:m),e.moveTo(n-d,i-a),e.lineTo(n+d,i+a),e.moveTo(n+f,i-r),e.lineTo(n-f,i+r);break;case"line":r=s?s/2:Math.cos(p)*m,a=Math.sin(p)*m,e.moveTo(n-r,i-a),e.lineTo(n+r,i+a);break;case"dash":e.moveTo(n,i),e.lineTo(n+Math.cos(p)*(s?s/2:m),i+Math.sin(p)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function en(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Ji(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Zi(e){e.restore()}function Uh(e,t,n,i,s){if(!t)return e.lineTo(n.x,n.y);if(s==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else s==="after"!=!!i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function Xh(e,t,n,i){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function Kh(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Y(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function qh(e,t,n,i,s){if(s.strikethrough||s.underline){const o=e.measureText(i),r=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,h=s.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=s.decorationWidth||2,e.moveTo(r,h),e.lineTo(a,h),e.stroke()}}function Gh(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function nn(e,t,n,i,s,o={}){const r=Z(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=s.string,Kh(e,o),l=0;l<r.length;++l)c=r[l],o.backdrop&&Gh(e,o.backdrop),a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),Y(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,i,o.maxWidth)),e.fillText(c,n,i,o.maxWidth),qh(e,n,i,c,o),i+=Number(s.lineHeight);e.restore()}function $n(e,t){const{x:n,y:i,w:s,h:o,radius:r}=t;e.arc(n+r.topLeft,i+r.topLeft,r.topLeft,1.5*Q,Q,!0),e.lineTo(n,i+o-r.bottomLeft),e.arc(n+r.bottomLeft,i+o-r.bottomLeft,r.bottomLeft,Q,st,!0),e.lineTo(n+s-r.bottomRight,i+o),e.arc(n+s-r.bottomRight,i+o-r.bottomRight,r.bottomRight,st,0,!0),e.lineTo(n+s,i+r.topRight),e.arc(n+s-r.topRight,i+r.topRight,r.topRight,0,-st,!0),e.lineTo(n+r.topLeft,i)}const Jh=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Zh=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Qh(e,t){const n=(""+e).match(Jh);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const td=e=>+e||0;function Qi(e,t){const n={},i=z(t),s=i?Object.keys(t):t,o=z(e)?i?r=>F(e[r],e[t[r]]):r=>e[r]:()=>e;for(const r of s)n[r]=td(o(r));return n}function na(e){return Qi(e,{top:"y",right:"x",bottom:"y",left:"x"})}function _e(e){return Qi(e,["topLeft","topRight","bottomLeft","bottomRight"])}function wt(e){const t=na(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function lt(e,t){e=e||{},t=t||q.font;let n=F(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let i=F(e.style,t.style);i&&!(""+i).match(Zh)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const s={family:F(e.family,t.family),lineHeight:Qh(F(e.lineHeight,t.lineHeight),n),size:n,style:i,weight:F(e.weight,t.weight),string:""};return s.string=Yh(s),s}function xn(e,t,n,i){let s,o,r;for(s=0,o=e.length;s<o;++s)if(r=e[s],r!==void 0&&(t!==void 0&&typeof r=="function"&&(r=r(t)),n!==void 0&&Z(r)&&(r=r[n%r.length]),r!==void 0))return r}function ed(e,t,n){const{min:i,max:s}=e,o=mh(t,(s-i)/2),r=(a,l)=>n&&a===0?0:a+l;return{min:r(i,-Math.abs(o)),max:r(s,o)}}function ge(e,t){return Object.assign(Object.create(e),t)}function ts(e,t=[""],n,i,s=()=>e[0]){const o=n||e;typeof i>"u"&&(i=ra("_fallback",e));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:i,_getTarget:s,override:a=>ts([a,...e],t,o,i)};return new Proxy(r,{deleteProperty(a,l){return delete a[l],delete a._keys,delete e[0][l],!0},get(a,l){return sa(a,l,()=>cd(l,t,e,a))},getOwnPropertyDescriptor(a,l){return Reflect.getOwnPropertyDescriptor(a._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(a,l){return Qs(a).includes(l)},ownKeys(a){return Qs(a)},set(a,l,c){const h=a._storage||(a._storage=s());return a[l]=h[l]=c,delete a._keys,!0}})}function Oe(e,t,n,i){const s={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:ia(e,i),setContext:o=>Oe(e,o,n,i),override:o=>Oe(e.override(o),t,n,i)};return new Proxy(s,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,a){return sa(o,r,()=>id(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,a){return e[r]=a,delete o[r],!0}})}function ia(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:i=t.indexable,_allKeys:s=t.allKeys}=e;return{allKeys:s,scriptable:n,indexable:i,isScriptable:Kt(n)?n:()=>n,isIndexable:Kt(i)?i:()=>i}}const nd=(e,t)=>e?e+Ui(t):t,es=(e,t)=>z(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function sa(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const i=n();return e[t]=i,i}function id(e,t,n){const{_proxy:i,_context:s,_subProxy:o,_descriptors:r}=e;let a=i[t];return Kt(a)&&r.isScriptable(t)&&(a=sd(t,a,e,n)),Z(a)&&a.length&&(a=od(t,a,e,r.isIndexable)),es(t,a)&&(a=Oe(a,s,o&&o[t],r)),a}function sd(e,t,n,i){const{_proxy:s,_context:o,_subProxy:r,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);a.add(e);let l=t(o,r||i);return a.delete(e),es(e,l)&&(l=ns(s._scopes,s,e,l)),l}function od(e,t,n,i){const{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=n;if(typeof o.index<"u"&&i(e))return t[o.index%t.length];if(z(t[0])){const l=t,c=s._scopes.filter(h=>h!==l);t=[];for(const h of l){const d=ns(c,s,e,h);t.push(Oe(d,o,r&&r[e],a))}}return t}function oa(e,t,n){return Kt(e)?e(t,n):e}const rd=(e,t)=>e===!0?t:typeof e=="string"?Pe(t,e):void 0;function ad(e,t,n,i,s){for(const o of t){const r=rd(n,o);if(r){e.add(r);const a=oa(r._fallback,n,s);if(typeof a<"u"&&a!==n&&a!==i)return a}else if(r===!1&&typeof i<"u"&&n!==i)return null}return!1}function ns(e,t,n,i){const s=t._rootScopes,o=oa(t._fallback,n,i),r=[...e,...s],a=new Set;a.add(i);let l=Zs(a,r,n,o||n,i);return l===null||typeof o<"u"&&o!==n&&(l=Zs(a,r,o,l,i),l===null)?!1:ts(Array.from(a),[""],s,o,()=>ld(t,n,i))}function Zs(e,t,n,i,s){for(;n;)n=ad(e,t,n,i,s);return n}function ld(e,t,n){const i=e._getTarget();t in i||(i[t]={});const s=i[t];return Z(s)&&z(n)?n:s||{}}function cd(e,t,n,i){let s;for(const o of t)if(s=ra(nd(o,e),n),typeof s<"u")return es(e,s)?ns(n,i,e,s):s}function ra(e,t){for(const n of t){if(!n)continue;const i=n[e];if(typeof i<"u")return i}}function Qs(e){let t=e._keys;return t||(t=e._keys=hd(e._scopes)),t}function hd(e){const t=new Set;for(const n of e)for(const i of Object.keys(n).filter(s=>!s.startsWith("_")))t.add(i);return Array.from(t)}const dd=Number.EPSILON||1e-14,Ee=(e,t)=>t<e.length&&!e[t].skip&&e[t],aa=e=>e==="x"?"y":"x";function fd(e,t,n,i){const s=e.skip?t:e,o=t,r=n.skip?t:n,a=Mi(o,s),l=Mi(r,o);let c=a/(a+l),h=l/(a+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const d=i*c,f=i*h;return{previous:{x:o.x-d*(r.x-s.x),y:o.y-d*(r.y-s.y)},next:{x:o.x+f*(r.x-s.x),y:o.y+f*(r.y-s.y)}}}function ud(e,t,n){const i=e.length;let s,o,r,a,l,c=Ee(e,0);for(let h=0;h<i-1;++h)if(l=c,c=Ee(e,h+1),!(!l||!c)){if(Ue(t[h],0,dd)){n[h]=n[h+1]=0;continue}s=n[h]/t[h],o=n[h+1]/t[h],a=Math.pow(s,2)+Math.pow(o,2),!(a<=9)&&(r=3/Math.sqrt(a),n[h]=s*r*t[h],n[h+1]=o*r*t[h])}}function pd(e,t,n="x"){const i=aa(n),s=e.length;let o,r,a,l=Ee(e,0);for(let c=0;c<s;++c){if(r=a,a=l,l=Ee(e,c+1),!a)continue;const h=a[n],d=a[i];r&&(o=(h-r[n])/3,a[`cp1${n}`]=h-o,a[`cp1${i}`]=d-o*t[c]),l&&(o=(l[n]-h)/3,a[`cp2${n}`]=h+o,a[`cp2${i}`]=d+o*t[c])}}function gd(e,t="x"){const n=aa(t),i=e.length,s=Array(i).fill(0),o=Array(i);let r,a,l,c=Ee(e,0);for(r=0;r<i;++r)if(a=l,l=c,c=Ee(e,r+1),!!l){if(c){const h=c[t]-l[t];s[r]=h!==0?(c[n]-l[n])/h:0}o[r]=a?c?Dt(s[r-1])!==Dt(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}ud(e,s,o),pd(e,o,t)}function yn(e,t,n){return Math.max(Math.min(e,n),t)}function md(e,t){let n,i,s,o,r,a=en(e[0],t);for(n=0,i=e.length;n<i;++n)r=o,o=a,a=n<i-1&&en(e[n+1],t),o&&(s=e[n],r&&(s.cp1x=yn(s.cp1x,t.left,t.right),s.cp1y=yn(s.cp1y,t.top,t.bottom)),a&&(s.cp2x=yn(s.cp2x,t.left,t.right),s.cp2y=yn(s.cp2y,t.top,t.bottom)))}function bd(e,t,n,i,s){let o,r,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")gd(e,s);else{let c=i?e[e.length-1]:e[0];for(o=0,r=e.length;o<r;++o)a=e[o],l=fd(c,a,e[Math.min(o+1,r-(i?0:1))%r],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&md(e,n)}function is(){return typeof window<"u"&&typeof document<"u"}function ss(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function zn(e,t,n){let i;return typeof e=="string"?(i=parseInt(e,10),e.indexOf("%")!==-1&&(i=i/100*t.parentNode[n])):i=e,i}const Kn=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function xd(e,t){return Kn(e).getPropertyValue(t)}const yd=["top","right","bottom","left"];function de(e,t,n){const i={};n=n?"-"+n:"";for(let s=0;s<4;s++){const o=yd[s];i[o]=parseFloat(e[t+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const _d=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function vd(e,t){const n=e.touches,i=n&&n.length?n[0]:e,{offsetX:s,offsetY:o}=i;let r=!1,a,l;if(_d(s,o,e.target))a=s,l=o;else{const c=t.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,r=!0}return{x:a,y:l,box:r}}function re(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:i}=t,s=Kn(n),o=s.boxSizing==="border-box",r=de(s,"padding"),a=de(s,"border","width"),{x:l,y:c,box:h}=vd(e,n),d=r.left+(h&&a.left),f=r.top+(h&&a.top);let{width:u,height:g}=t;return o&&(u-=r.width+a.width,g-=r.height+a.height),{x:Math.round((l-d)/u*n.width/i),y:Math.round((c-f)/g*n.height/i)}}function wd(e,t,n){let i,s;if(t===void 0||n===void 0){const o=e&&ss(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const r=o.getBoundingClientRect(),a=Kn(o),l=de(a,"border","width"),c=de(a,"padding");t=r.width-c.width-l.width,n=r.height-c.height-l.height,i=zn(a.maxWidth,o,"clientWidth"),s=zn(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:i||Fn,maxHeight:s||Fn}}const _n=e=>Math.round(e*10)/10;function Sd(e,t,n,i){const s=Kn(e),o=de(s,"margin"),r=zn(s.maxWidth,e,"clientWidth")||Fn,a=zn(s.maxHeight,e,"clientHeight")||Fn,l=wd(e,t,n);let{width:c,height:h}=l;if(s.boxSizing==="content-box"){const f=de(s,"border","width"),u=de(s,"padding");c-=u.width+f.width,h-=u.height+f.height}return c=Math.max(0,c-o.width),h=Math.max(0,i?c/i:h-o.height),c=_n(Math.min(c,r,l.maxWidth)),h=_n(Math.min(h,a,l.maxHeight)),c&&!h&&(h=_n(c/2)),(t!==void 0||n!==void 0)&&i&&l.height&&h>l.height&&(h=l.height,c=_n(Math.floor(h*i))),{width:c,height:h}}function to(e,t,n){const i=t||1,s=Math.floor(e.height*i),o=Math.floor(e.width*i);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const r=e.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==i||r.height!==s||r.width!==o?(e.currentDevicePixelRatio=i,r.height=s,r.width=o,e.ctx.setTransform(i,0,0,i,0,0),!0):!1}const kd=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};is()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function eo(e,t){const n=xd(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function ae(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Md(e,t,n,i){return{x:e.x+n*(t.x-e.x),y:i==="middle"?n<.5?e.y:t.y:i==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function Cd(e,t,n,i){const s={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},r=ae(e,s,n),a=ae(s,o,n),l=ae(o,t,n),c=ae(r,a,n),h=ae(a,l,n);return ae(c,h,n)}const Pd=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,i){return n-i},leftForLtr(n,i){return n-i}}},Od=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ve(e,t,n){return e?Pd(t,n):Od()}function la(e,t){let n,i;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)}function ca(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function ha(e){return e==="angle"?{between:Xi,compare:Oh,normalize:Bt}:{between:Ht,compare:(t,n)=>t-n,normalize:t=>t}}function no({start:e,end:t,count:n,loop:i,style:s}){return{start:e%n,end:t%n,loop:i&&(t-e+1)%n===0,style:s}}function Ed(e,t,n){const{property:i,start:s,end:o}=n,{between:r,normalize:a}=ha(i),l=t.length;let{start:c,end:h,loop:d}=e,f,u;if(d){for(c+=l,h+=l,f=0,u=l;f<u&&r(a(t[c%l][i]),s,o);++f)c--,h--;c%=l,h%=l}return h<c&&(h+=l),{start:c,end:h,loop:d,style:e.style}}function Dd(e,t,n){if(!n)return[e];const{property:i,start:s,end:o}=n,r=t.length,{compare:a,between:l,normalize:c}=ha(i),{start:h,end:d,loop:f,style:u}=Ed(e,t,n),g=[];let m=!1,p=null,b,y,v;const w=()=>l(s,v,b)&&a(s,v)!==0,_=()=>a(o,b)===0||l(o,v,b),S=()=>m||w(),M=()=>!m||_();for(let k=h,P=h;k<=d;++k)y=t[k%r],!y.skip&&(b=c(y[i]),b!==v&&(m=l(b,s,o),p===null&&S()&&(p=a(b,s)===0?k:P),p!==null&&M()&&(g.push(no({start:p,end:k,loop:f,count:r,style:u})),p=null),P=k,v=b));return p!==null&&g.push(no({start:p,end:d,loop:f,count:r,style:u})),g}function Rd(e,t){const n=[],i=e.segments;for(let s=0;s<i.length;s++){const o=Dd(i[s],e.points,t);o.length&&n.push(...o)}return n}function Td(e,t,n,i){let s=0,o=t-1;if(n&&!i)for(;s<t&&!e[s].skip;)s++;for(;s<t&&e[s].skip;)s++;for(s%=t,n&&(o+=s);o>s&&e[o%t].skip;)o--;return o%=t,{start:s,end:o}}function Ad(e,t,n,i){const s=e.length,o=[];let r=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%s];c.skip||c.stop?a.skip||(i=!1,o.push({start:t%s,end:(l-1)%s,loop:i}),t=r=c.stop?l:null):(r=l,a.skip&&(t=l)),a=c}return r!==null&&o.push({start:t%s,end:r%s,loop:i}),o}function jd(e,t){const n=e.points,i=e.options.spanGaps,s=n.length;if(!s)return[];const o=!!e._loop,{start:r,end:a}=Td(n,s,o,i);if(i===!0)return io(e,[{start:r,end:a,loop:o}],n,t);const l=a<r?a+s:a,c=!!e._fullLoop&&r===0&&a===s-1;return io(e,Ad(n,r,l,c),n,t)}function io(e,t,n,i){return!i||!i.setContext||!n?t:Ld(e,t,n,i)}function Ld(e,t,n,i){const s=e._chart.getContext(),o=so(e.options),{_datasetIndex:r,options:{spanGaps:a}}=e,l=n.length,c=[];let h=o,d=t[0].start,f=d;function u(g,m,p,b){const y=a?-1:1;if(g!==m){for(g+=l;n[g%l].skip;)g-=y;for(;n[m%l].skip;)m+=y;g%l!==m%l&&(c.push({start:g%l,end:m%l,loop:p,style:b}),h=b,d=m%l)}}for(const g of t){d=a?d:g.start;let m=n[d%l],p;for(f=d+1;f<=g.end;f++){const b=n[f%l];p=so(i.setContext(ge(s,{type:"segment",p0:m,p1:b,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:r}))),Nd(p,h)&&u(d,f-1,g.loop,h),m=b,h=p}d<f-1&&u(d,f-1,g.loop,h)}return c}function so(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Nd(e,t){if(!t)return!1;const n=[],i=function(s,o){return Gi(o)?(n.includes(o)||n.push(o),n.indexOf(o)):o};return JSON.stringify(e,i)!==JSON.stringify(t,i)}/*!
+ * Chart.js v4.4.7
+ * https://www.chartjs.org
+ * (c) 2024 Chart.js Contributors
+ * Released under the MIT License
+ */class Id{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,i,s){const o=n.listeners[s],r=n.duration;o.forEach(a=>a({chart:t,initial:n.initial,numSteps:r,currentStep:Math.min(i-n.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Gr.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const o=i.items;let r=o.length-1,a=!1,l;for(;r>=0;--r)l=o[r],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(s.draw(),this._notify(s,i,t,"progress")),o.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let i=n.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,i)),i}listen(t,n,i){this._getAnims(t).listeners[n].push(i)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const i=n.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var At=new Id;const oo="transparent",Fd={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const i=Ks(e||oo),s=i.valid&&Ks(t||oo);return s&&s.valid?s.mix(i,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class $d{constructor(t,n,i,s){const o=n[i];s=xn([t.to,s,o,t.from]);const r=xn([t.from,o,s]);this._active=!0,this._fn=t.fn||Fd[t.type||typeof r],this._easing=Xe[t.easing]||Xe.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=i,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,n,i){if(this._active){this._notify(!1);const s=this._target[this._prop],o=i-this._start,r=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=xn([t.to,n,s,t.from]),this._from=xn([t.from,s,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,i=this._duration,s=this._prop,o=this._from,r=this._loop,a=this._to;let l;if(this._active=o!==a&&(r||n<i),!this._active){this._target[s]=a,this._notify(!0);return}if(n<0){this._target[s]=o;return}l=n/i%2,l=r&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[s]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,i)=>{t.push({res:n,rej:i})})}_notify(t){const n=t?"res":"rej",i=this._promises||[];for(let s=0;s<i.length;s++)i[s][n]()}}class da{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!z(t))return;const n=Object.keys(q.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const o=t[s];if(!z(o))return;const r={};for(const a of n)r[a]=o[a];(Z(o.properties)&&o.properties||[s]).forEach(a=>{(a===s||!i.has(a))&&i.set(a,r)})})}_animateOptions(t,n){const i=n.options,s=Bd(t,i);if(!s)return[];const o=this._createAnimations(s,i);return i.$shared&&zd(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,n){const i=this._properties,s=[],o=t.$animations||(t.$animations={}),r=Object.keys(n),a=Date.now();let l;for(l=r.length-1;l>=0;--l){const c=r[l];if(c.charAt(0)==="$")continue;if(c==="options"){s.push(...this._animateOptions(t,n));continue}const h=n[c];let d=o[c];const f=i.get(c);if(d)if(f&&d.active()){d.update(f,h,a);continue}else d.cancel();if(!f||!f.duration){t[c]=h;continue}o[c]=d=new $d(f,t,c,h),s.push(d)}return s}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const i=this._createAnimations(t,n);if(i.length)return At.add(this._chart,i),!0}}function zd(e,t){const n=[],i=Object.keys(t);for(let s=0;s<i.length;s++){const o=e[i[s]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function Bd(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function ro(e,t){const n=e&&e.options||{},i=n.reverse,s=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:i?o:s,end:i?s:o}}function Wd(e,t,n){if(n===!1)return!1;const i=ro(e,n),s=ro(t,n);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}function Hd(e){let t,n,i,s;return z(e)?(t=e.top,n=e.right,i=e.bottom,s=e.left):t=n=i=s=e,{top:t,right:n,bottom:i,left:s,disabled:e===!1}}function fa(e,t){const n=[],i=e._getSortedDatasetMetas(t);let s,o;for(s=0,o=i.length;s<o;++s)n.push(i[s].index);return n}function ao(e,t,n,i={}){const s=e.keys,o=i.mode==="single";let r,a,l,c;if(t===null)return;let h=!1;for(r=0,a=s.length;r<a;++r){if(l=+s[r],l===n){if(h=!0,i.all)continue;break}c=e.values[l],vt(c)&&(o||t===0||Dt(t)===Dt(c))&&(t+=c)}return!h&&!i.all?0:t}function Vd(e,t){const{iScale:n,vScale:i}=t,s=n.axis==="x"?"x":"y",o=i.axis==="x"?"x":"y",r=Object.keys(e),a=new Array(r.length);let l,c,h;for(l=0,c=r.length;l<c;++l)h=r[l],a[l]={[s]:h,[o]:e[h]};return a}function ri(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function Yd(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function Ud(e){const{min:t,max:n,minDefined:i,maxDefined:s}=e.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:s?n:Number.POSITIVE_INFINITY}}function Xd(e,t,n){const i=e[t]||(e[t]={});return i[n]||(i[n]={})}function lo(e,t,n,i){for(const s of t.getMatchingVisibleMetas(i).reverse()){const o=e[s.index];if(n&&o>0||!n&&o<0)return s.index}return null}function co(e,t){const{chart:n,_cachedMeta:i}=e,s=n._stacks||(n._stacks={}),{iScale:o,vScale:r,index:a}=i,l=o.axis,c=r.axis,h=Yd(o,r,i),d=t.length;let f;for(let u=0;u<d;++u){const g=t[u],{[l]:m,[c]:p}=g,b=g._stacks||(g._stacks={});f=b[c]=Xd(s,h,m),f[a]=p,f._top=lo(f,r,!0,i.type),f._bottom=lo(f,r,!1,i.type);const y=f._visualValues||(f._visualValues={});y[a]=p}}function ai(e,t){const n=e.scales;return Object.keys(n).filter(i=>n[i].axis===t).shift()}function Kd(e,t){return ge(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function qd(e,t,n){return ge(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function je(e,t){const n=e.controller.index,i=e.vScale&&e.vScale.axis;if(i){t=t||e._parsed;for(const s of t){const o=s._stacks;if(!o||o[i]===void 0||o[i][n]===void 0)return;delete o[i][n],o[i]._visualValues!==void 0&&o[i]._visualValues[n]!==void 0&&delete o[i]._visualValues[n]}}}const li=e=>e==="reset"||e==="none",ho=(e,t)=>t?e:Object.assign({},e),Gd=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:fa(n,!0),values:null};class we{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=ri(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&je(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,i=this.getDataset(),s=(d,f,u,g)=>d==="x"?f:d==="r"?g:u,o=n.xAxisID=F(i.xAxisID,ai(t,"x")),r=n.yAxisID=F(i.yAxisID,ai(t,"y")),a=n.rAxisID=F(i.rAxisID,ai(t,"r")),l=n.indexAxis,c=n.iAxisID=s(l,o,r,a),h=n.vAxisID=s(l,r,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(r),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Ys(this._data,this),t._stacked&&je(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(z(n)){const s=this._cachedMeta;this._data=Vd(n,s)}else if(i!==n){if(i){Ys(i,this);const s=this._cachedMeta;je(s),s._parsed=[]}n&&Object.isExtensible(n)&&Th(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const o=n._stacked;n._stacked=ri(n.vScale,n),n.stack!==i.stack&&(s=!0,je(n),n.stack=i.stack),this._resyncElements(t),(s||o!==n._stacked)&&(co(this,n._parsed),n._stacked=ri(n.vScale,n))}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:i,_data:s}=this,{iScale:o,_stacked:r}=i,a=o.axis;let l=t===0&&n===s.length?!0:i._sorted,c=t>0&&i._parsed[t-1],h,d,f;if(this._parsing===!1)i._parsed=s,i._sorted=!0,f=s;else{Z(s[t])?f=this.parseArrayData(i,s,t,n):z(s[t])?f=this.parseObjectData(i,s,t,n):f=this.parsePrimitiveData(i,s,t,n);const u=()=>d[a]===null||c&&d[a]<c[a];for(h=0;h<n;++h)i._parsed[h+t]=d=f[h],l&&(u()&&(l=!1),c=d);i._sorted=l}r&&co(this,f)}parsePrimitiveData(t,n,i,s){const{iScale:o,vScale:r}=t,a=o.axis,l=r.axis,c=o.getLabels(),h=o===r,d=new Array(s);let f,u,g;for(f=0,u=s;f<u;++f)g=f+i,d[f]={[a]:h||o.parse(c[g],g),[l]:r.parse(n[g],g)};return d}parseArrayData(t,n,i,s){const{xScale:o,yScale:r}=t,a=new Array(s);let l,c,h,d;for(l=0,c=s;l<c;++l)h=l+i,d=n[h],a[l]={x:o.parse(d[0],h),y:r.parse(d[1],h)};return a}parseObjectData(t,n,i,s){const{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(s);let h,d,f,u;for(h=0,d=s;h<d;++h)f=h+i,u=n[f],c[h]={x:o.parse(Pe(u,a),f),y:r.parse(Pe(u,l),f)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,i){const s=this.chart,o=this._cachedMeta,r=n[t.axis],a={keys:fa(s,!0),values:n._stacks[t.axis]._visualValues};return ao(a,r,o.index,{mode:i})}updateRangeFromParsed(t,n,i,s){const o=i[n.axis];let r=o===null?NaN:o;const a=s&&i._stacks[n.axis];s&&a&&(s.values=a,r=ao(s,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,n){const i=this._cachedMeta,s=i._parsed,o=i._sorted&&t===i.iScale,r=s.length,a=this._getOtherScale(t),l=Gd(n,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:d}=Ud(a);let f,u;function g(){u=s[f];const m=u[a.axis];return!vt(u[t.axis])||h>m||d<m}for(f=0;f<r&&!(!g()&&(this.updateRangeFromParsed(c,t,u,l),o));++f);if(o){for(f=r-1;f>=0;--f)if(!g()){this.updateRangeFromParsed(c,t,u,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,i=[];let s,o,r;for(s=0,o=n.length;s<o;++s)r=n[s][t.axis],vt(r)&&i.push(r);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,i=n.iScale,s=n.vScale,o=this.getParsed(t);return{label:i?""+i.getLabelForValue(o[i.axis]):"",value:s?""+s.getLabelForValue(o[s.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=Hd(F(this.options.clip,Wd(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,i=this._cachedMeta,s=i.data||[],o=n.chartArea,r=[],a=this._drawStart||0,l=this._drawCount||s.length-a,c=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,o,a,l),h=a;h<a+l;++h){const d=s[h];d.hidden||(d.active&&c?r.push(d):d.draw(t,o))}for(h=0;h<r.length;++h)r[h].draw(t,o)}getStyle(t,n){const i=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,n,i){const s=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const r=this._cachedMeta.data[t];o=r.$context||(r.$context=qd(this.getContext(),t,r)),o.parsed=this.getParsed(t),o.raw=s.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=Kd(this.chart.getContext(),this.index)),o.dataset=s,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=i,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",i){const s=n==="active",o=this._cachedDataOpts,r=t+"-"+n,a=o[r],l=this.enableOptionSharing&&Qe(i);if(a)return ho(a,l);const c=this.chart.config,h=c.datasetElementScopeKeys(this._type,t),d=s?[`${t}Hover`,"hover",t,""]:[t,""],f=c.getOptionScopes(this.getDataset(),h),u=Object.keys(q.elements[t]),g=()=>this.getContext(i,s,n),m=c.resolveNamedOptions(f,u,g,d);return m.$shared&&(m.$shared=l,o[r]=Object.freeze(ho(m,l))),m}_resolveAnimations(t,n,i){const s=this.chart,o=this._cachedDataOpts,r=`animation-${n}`,a=o[r];if(a)return a;let l;if(s.options.animation!==!1){const h=this.chart.config,d=h.datasetAnimationScopeKeys(this._type,n),f=h.getOptionScopes(this.getDataset(),d);l=h.createResolver(f,this.getContext(t,i,n))}const c=new da(s,l&&l.animations);return l&&l._cacheable&&(o[r]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||li(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const i=this.resolveDataElementOptions(t,n),s=this._sharedOptions,o=this.getSharedOptions(i),r=this.includeOptions(n,o)||o!==s;return this.updateSharedOptions(o,n,i),{sharedOptions:o,includeOptions:r}}updateElement(t,n,i,s){li(s)?Object.assign(t,i):this._resolveAnimations(n,s).update(t,i)}updateSharedOptions(t,n,i){t&&!li(n)&&this._resolveAnimations(void 0,n).update(t,i)}_setStyle(t,n,i,s){t.active=s;const o=this.getStyle(n,s);this._resolveAnimations(n,i,s).update(t,{options:!s&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,n,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const s=i.length,o=n.length,r=Math.min(o,s);r&&this.parse(0,r),o>s?this._insertElements(s,o-s,t):o<s&&this._removeElements(o,s-o)}_insertElements(t,n,i=!0){const s=this._cachedMeta,o=s.data,r=t+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=r;a--)c[a]=c[a-n]};for(l(o),a=t;a<r;++a)o[a]=new this.dataElementType;this._parsing&&l(s._parsed),this.parse(t,n),i&&this.updateElements(o,t,n,"reset")}updateElements(t,n,i,s){}_removeElements(t,n){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,n);i._stacked&&je(i,s)}i.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,i,s]=t;this[n](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}j(we,"defaults",{}),j(we,"datasetElementType",null),j(we,"dataElementType",null);function Jd(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let i=[];for(let s=0,o=n.length;s<o;s++)i=i.concat(n[s].controller.getAllParsedValues(e));e._cache.$bar=qr(i.sort((s,o)=>s-o))}return e._cache.$bar}function Zd(e){const t=e.iScale,n=Jd(t,e.type);let i=t._length,s,o,r,a;const l=()=>{r===32767||r===-32768||(Qe(a)&&(i=Math.min(i,Math.abs(r-a)||i)),a=r)};for(s=0,o=n.length;s<o;++s)r=t.getPixelForValue(n[s]),l();for(a=void 0,s=0,o=t.ticks.length;s<o;++s)r=t.getPixelForTick(s),l();return i}function Qd(e,t,n,i){const s=n.barThickness;let o,r;return Y(s)?(o=t.min*n.categoryPercentage,r=n.barPercentage):(o=s*i,r=1),{chunk:o/i,ratio:r,start:t.pixels[e]-o/2}}function tf(e,t,n,i){const s=t.pixels,o=s[e];let r=e>0?s[e-1]:null,a=e<s.length-1?s[e+1]:null;const l=n.categoryPercentage;r===null&&(r=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-r);const c=o-(o-Math.min(r,a))/2*l;return{chunk:Math.abs(a-r)/2*l/i,ratio:n.barPercentage,start:c}}function ef(e,t,n,i){const s=n.parse(e[0],i),o=n.parse(e[1],i),r=Math.min(s,o),a=Math.max(s,o);let l=r,c=a;Math.abs(r)>Math.abs(a)&&(l=a,c=r),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:s,end:o,min:r,max:a}}function ua(e,t,n,i){return Z(e)?ef(e,t,n,i):t[n.axis]=n.parse(e,i),t}function fo(e,t,n,i){const s=e.iScale,o=e.vScale,r=s.getLabels(),a=s===o,l=[];let c,h,d,f;for(c=n,h=n+i;c<h;++c)f=t[c],d={},d[s.axis]=a||s.parse(r[c],c),l.push(ua(f,d,o,c));return l}function ci(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function nf(e,t,n){return e!==0?Dt(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function sf(e){let t,n,i,s,o;return e.horizontal?(t=e.base>e.x,n="left",i="right"):(t=e.base<e.y,n="bottom",i="top"),t?(s="end",o="start"):(s="start",o="end"),{start:n,end:i,reverse:t,top:s,bottom:o}}function of(e,t,n,i){let s=t.borderSkipped;const o={};if(!s){e.borderSkipped=o;return}if(s===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:r,end:a,reverse:l,top:c,bottom:h}=sf(e);s==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===i?s=c:(n._bottom||0)===i?s=h:(o[uo(h,r,a,l)]=!0,s=c)),o[uo(s,r,a,l)]=!0,e.borderSkipped=o}function uo(e,t,n,i){return i?(e=rf(e,t,n),e=po(e,n,t)):e=po(e,t,n),e}function rf(e,t,n){return e===t?n:e===n?t:e}function po(e,t,n){return e==="start"?t:e==="end"?n:e}function af(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class hi extends we{parsePrimitiveData(t,n,i,s){return fo(t,n,i,s)}parseArrayData(t,n,i,s){return fo(t,n,i,s)}parseObjectData(t,n,i,s){const{iScale:o,vScale:r}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,h=r.axis==="x"?a:l,d=[];let f,u,g,m;for(f=i,u=i+s;f<u;++f)m=n[f],g={},g[o.axis]=o.parse(Pe(m,c),f),d.push(ua(Pe(m,h),g,r,f));return d}updateRangeFromParsed(t,n,i,s){super.updateRangeFromParsed(t,n,i,s);const o=i._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:i,vScale:s}=n,o=this.getParsed(t),r=o._custom,a=ci(r)?"["+r.start+", "+r.end+"]":""+s.getLabelForValue(o[s.axis]);return{label:""+i.getLabelForValue(o[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,i,s){const o=s==="reset",{index:r,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),h=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,s);for(let u=n;u<n+i;u++){const g=this.getParsed(u),m=o||Y(g[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(u),p=this._calculateBarIndexPixels(u,h),b=(g._stacks||{})[a.axis],y={horizontal:c,base:m.base,enableBorderRadius:!b||ci(g._custom)||r===b._top||r===b._bottom,x:c?m.head:p.center,y:c?p.center:m.head,height:c?p.size:Math.abs(m.size),width:c?Math.abs(m.size):p.size};f&&(y.options=d||this.resolveDataElementOptions(u,t[u].active?"active":s));const v=y.options||t[u].options;of(y,v,b,r),af(y,v,h.ratio),this.updateElement(t[u],u,y,s)}}_getStacks(t,n){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter(h=>h.controller.options.grouped),o=i.options.stacked,r=[],a=this._cachedMeta.controller.getParsed(n),l=a&&a[i.axis],c=h=>{const d=h._parsed.find(u=>u[i.axis]===l),f=d&&d[h.vScale.axis];if(Y(f)||isNaN(f))return!0};for(const h of s)if(!(n!==void 0&&c(h))&&((o===!1||r.indexOf(h.stack)===-1||o===void 0&&h.stack===void 0)&&r.push(h.stack),h.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,i){const s=this._getStacks(t,i),o=n!==void 0?s.indexOf(n):-1;return o===-1?s.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,i=n.iScale,s=[];let o,r;for(o=0,r=n.data.length;o<r;++o)s.push(i.getPixelForValue(this.getParsed(o)[i.axis],o));const a=t.barThickness;return{min:a||Zd(n),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:i,index:s},options:{base:o,minBarLength:r}}=this,a=o||0,l=this.getParsed(t),c=l._custom,h=ci(c);let d=l[n.axis],f=0,u=i?this.applyStack(n,l,i):d,g,m;u!==d&&(f=u-d,u=d),h&&(d=c.barStart,u=c.barEnd-c.barStart,d!==0&&Dt(d)!==Dt(c.barEnd)&&(f=0),f+=d);const p=!Y(o)&&!h?o:f;let b=n.getPixelForValue(p);if(this.chart.getDataVisibility(t)?g=n.getPixelForValue(f+u):g=b,m=g-b,Math.abs(m)<r){m=nf(m,n,a)*r,d===a&&(b-=m/2);const y=n.getPixelForDecimal(0),v=n.getPixelForDecimal(1),w=Math.min(y,v),_=Math.max(y,v);b=Math.max(Math.min(b,_),w),g=b+m,i&&!h&&(l._stacks[n.axis]._visualValues[s]=n.getValueForPixel(g)-n.getValueForPixel(b))}if(b===n.getPixelForValue(a)){const y=Dt(m)*n.getLineWidthForValue(a)/2;b+=y,m-=y}return{size:m,base:b,head:g,center:g+m/2}}_calculateBarIndexPixels(t,n){const i=n.scale,s=this.options,o=s.skipNull,r=F(s.maxBarThickness,1/0);let a,l;if(n.grouped){const c=o?this._getStackCount(t):n.stackCount,h=s.barThickness==="flex"?tf(t,n,s,c):Qd(t,n,s,c),d=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=h.start+h.chunk*d+h.chunk/2,l=Math.min(r,h.chunk*h.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(r,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,i=t.data,s=i.length;let o=0;for(;o<s;++o)this.getParsed(o)[n.axis]!==null&&!i[o].hidden&&i[o].draw(this._ctx)}}j(hi,"id","bar"),j(hi,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),j(hi,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class di extends we{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:i,data:s=[],_dataset:o}=n,r=this.chart._animationsDisabled;let{start:a,count:l}=Lh(n,s,r);this._drawStart=a,this._drawCount=l,Nh(n)&&(a=0,l=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=s;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:c},t),this.updateElements(s,a,l,t)}updateElements(t,n,i,s){const o=s==="reset",{iScale:r,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:h,includeOptions:d}=this._getSharedOptions(n,s),f=r.axis,u=a.axis,{spanGaps:g,segment:m}=this.options,p=tn(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||s==="none",y=n+i,v=t.length;let w=n>0&&this.getParsed(n-1);for(let _=0;_<v;++_){const S=t[_],M=b?S:{};if(_<n||_>=y){M.skip=!0;continue}const k=this.getParsed(_),P=Y(k[u]),E=M[f]=r.getPixelForValue(k[f],_),C=M[u]=o||P?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,k,l):k[u],_);M.skip=isNaN(E)||isNaN(C)||P,M.stop=_>0&&Math.abs(k[f]-w[f])>p,m&&(M.parsed=k,M.raw=c.data[_]),d&&(M.options=h||this.resolveDataElementOptions(_,S.active?"active":s)),b||this.updateElement(S,_,M,s),w=k}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,i=n.options&&n.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const o=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,o,r)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}j(di,"id","line"),j(di,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),j(di,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function ie(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class os{constructor(t){j(this,"options");this.options=t||{}}static override(t){Object.assign(os.prototype,t)}init(){}formats(){return ie()}parse(){return ie()}format(){return ie()}add(){return ie()}diff(){return ie()}startOf(){return ie()}endOf(){return ie()}}var lf={_date:os};function cf(e,t,n,i){const{controller:s,data:o,_sorted:r}=e,a=s._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){const l=a._reversePixels?Dh:ce;if(i){if(s._sharedOptions){const c=o[0],h=typeof c.getRange=="function"&&c.getRange(t);if(h){const d=l(o,t,n-h),f=l(o,t,n+h);return{lo:d.lo,hi:f.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function hn(e,t,n,i,s){const o=e.getSortedVisibleDatasetMetas(),r=n[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:h}=o[a],{lo:d,hi:f}=cf(o[a],t,r,s);for(let u=d;u<=f;++u){const g=h[u];g.skip||i(g,c,u)}}}function hf(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(i,s){const o=t?Math.abs(i.x-s.x):0,r=n?Math.abs(i.y-s.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function fi(e,t,n,i,s){const o=[];return!s&&!e.isPointInArea(t)||hn(e,n,t,function(a,l,c){!s&&!en(a,e.chartArea,0)||a.inRange(t.x,t.y,i)&&o.push({element:a,datasetIndex:l,index:c})},!0),o}function df(e,t,n,i){let s=[];function o(r,a,l){const{startAngle:c,endAngle:h}=r.getProps(["startAngle","endAngle"],i),{angle:d}=Xr(r,{x:t.x,y:t.y});Xi(d,c,h)&&s.push({element:r,datasetIndex:a,index:l})}return hn(e,n,t,o),s}function ff(e,t,n,i,s,o){let r=[];const a=hf(n);let l=Number.POSITIVE_INFINITY;function c(h,d,f){const u=h.inRange(t.x,t.y,s);if(i&&!u)return;const g=h.getCenterPoint(s);if(!(!!o||e.isPointInArea(g))&&!u)return;const p=a(t,g);p<l?(r=[{element:h,datasetIndex:d,index:f}],l=p):p===l&&r.push({element:h,datasetIndex:d,index:f})}return hn(e,n,t,c),r}function ui(e,t,n,i,s,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!i?df(e,t,n,s):ff(e,t,n,i,s,o)}function go(e,t,n,i,s){const o=[],r=n==="x"?"inXRange":"inYRange";let a=!1;return hn(e,n,t,(l,c,h)=>{l[r]&&l[r](t[n],s)&&(o.push({element:l,datasetIndex:c,index:h}),a=a||l.inRange(t.x,t.y,s))}),i&&!a?[]:o}var uf={evaluateInteractionItems:hn,modes:{index(e,t,n,i){const s=re(t,e),o=n.axis||"x",r=n.includeInvisible||!1,a=n.intersect?fi(e,s,o,i,r):ui(e,s,o,!1,i,r),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const h=a[0].index,d=c.data[h];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:h})}),l):[]},dataset(e,t,n,i){const s=re(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;let a=n.intersect?fi(e,s,o,i,r):ui(e,s,o,!1,i,r);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let h=0;h<c.length;++h)a.push({element:c[h],datasetIndex:l,index:h})}return a},point(e,t,n,i){const s=re(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;return fi(e,s,o,i,r)},nearest(e,t,n,i){const s=re(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;return ui(e,s,o,n.intersect,i,r)},x(e,t,n,i){const s=re(t,e);return go(e,s,"x",n.intersect,i)},y(e,t,n,i){const s=re(t,e);return go(e,s,"y",n.intersect,i)}}};const pa=["left","top","right","bottom"];function Le(e,t){return e.filter(n=>n.pos===t)}function mo(e,t){return e.filter(n=>pa.indexOf(n.pos)===-1&&n.box.axis===t)}function Ne(e,t){return e.sort((n,i)=>{const s=t?i:n,o=t?n:i;return s.weight===o.weight?s.index-o.index:s.weight-o.weight})}function pf(e){const t=[];let n,i,s,o,r,a;for(n=0,i=(e||[]).length;n<i;++n)s=e[n],{position:o,options:{stack:r,stackWeight:a=1}}=s,t.push({index:n,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return t}function gf(e){const t={};for(const n of e){const{stack:i,pos:s,stackWeight:o}=n;if(!i||!pa.includes(s))continue;const r=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return t}function mf(e,t){const n=gf(e),{vBoxMaxWidth:i,hBoxMaxHeight:s}=t;let o,r,a;for(o=0,r=e.length;o<r;++o){a=e[o];const{fullSize:l}=a.box,c=n[a.stack],h=c&&a.stackWeight/c.weight;a.horizontal?(a.width=h?h*i:l&&t.availableWidth,a.height=s):(a.width=i,a.height=h?h*s:l&&t.availableHeight)}return n}function bf(e){const t=pf(e),n=Ne(t.filter(c=>c.box.fullSize),!0),i=Ne(Le(t,"left"),!0),s=Ne(Le(t,"right")),o=Ne(Le(t,"top"),!0),r=Ne(Le(t,"bottom")),a=mo(t,"x"),l=mo(t,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:s.concat(l).concat(r).concat(a),chartArea:Le(t,"chartArea"),vertical:i.concat(s).concat(l),horizontal:o.concat(r).concat(a)}}function bo(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function ga(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function xf(e,t,n,i){const{pos:s,box:o}=n,r=e.maxPadding;if(!z(s)){n.size&&(e[s]-=n.size);const d=i[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[s]+=n.size}o.getPadding&&ga(r,o.getPadding());const a=Math.max(0,t.outerWidth-bo(r,e,"left","right")),l=Math.max(0,t.outerHeight-bo(r,e,"top","bottom")),c=a!==e.w,h=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:h}:{same:h,other:c}}function yf(e){const t=e.maxPadding;function n(i){const s=Math.max(t[i]-e[i],0);return e[i]+=s,s}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function _f(e,t){const n=t.maxPadding;function i(s){const o={left:0,top:0,right:0,bottom:0};return s.forEach(r=>{o[r]=Math.max(t[r],n[r])}),o}return i(e?["left","right"]:["top","bottom"])}function ze(e,t,n,i){const s=[];let o,r,a,l,c,h;for(o=0,r=e.length,c=0;o<r;++o){a=e[o],l=a.box,l.update(a.width||t.w,a.height||t.h,_f(a.horizontal,t));const{same:d,other:f}=xf(t,n,a,i);c|=d&&s.length,h=h||f,l.fullSize||s.push(a)}return c&&ze(s,t,n,i)||h}function vn(e,t,n,i,s){e.top=n,e.left=t,e.right=t+i,e.bottom=n+s,e.width=i,e.height=s}function xo(e,t,n,i){const s=n.padding;let{x:o,y:r}=t;for(const a of e){const l=a.box,c=i[a.stack]||{count:1,placed:0,weight:1},h=a.stackWeight/c.weight||1;if(a.horizontal){const d=t.w*h,f=c.size||l.height;Qe(c.start)&&(r=c.start),l.fullSize?vn(l,s.left,r,n.outerWidth-s.right-s.left,f):vn(l,t.left+c.placed,r,d,f),c.start=r,c.placed+=d,r=l.bottom}else{const d=t.h*h,f=c.size||l.width;Qe(c.start)&&(o=c.start),l.fullSize?vn(l,o,s.top,f,n.outerHeight-s.bottom-s.top):vn(l,o,t.top+c.placed,f,d),c.start=o,c.placed+=d,o=l.right}}t.x=o,t.y=r}var xt={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,i){if(!e)return;const s=wt(e.options.layout.padding),o=Math.max(t-s.width,0),r=Math.max(n-s.height,0),a=bf(e.boxes),l=a.vertical,c=a.horizontal;V(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const h=l.reduce((m,p)=>p.box.options&&p.box.options.display===!1?m:m+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),f=Object.assign({},s);ga(f,wt(i));const u=Object.assign({maxPadding:f,w:o,h:r,x:s.left,y:s.top},s),g=mf(l.concat(c),d);ze(a.fullSize,u,d,g),ze(l,u,d,g),ze(c,u,d,g)&&ze(l,u,d,g),yf(u),xo(a.leftAndTop,u,d,g),u.x+=u.w,u.y+=u.h,xo(a.rightAndBottom,u,d,g),e.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h,height:u.h,width:u.w},V(a.chartArea,m=>{const p=m.box;Object.assign(p,e.chartArea),p.update(u.w,u.h,{left:0,top:0,right:0,bottom:0})})}};class ma{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,i){}removeEventListener(t,n,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,i,s){return n=Math.max(0,n||t.width),i=i||t.height,{width:n,height:Math.max(0,s?Math.floor(n/s):i)}}isAttached(t){return!0}updateConfig(t){}}class vf extends ma{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const An="$chartjs",wf={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},yo=e=>e===null||e==="";function Sf(e,t){const n=e.style,i=e.getAttribute("height"),s=e.getAttribute("width");if(e[An]={initial:{height:i,width:s,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",yo(s)){const o=eo(e,"width");o!==void 0&&(e.width=o)}if(yo(i))if(e.style.height==="")e.height=e.width/(t||2);else{const o=eo(e,"height");o!==void 0&&(e.height=o)}return e}const ba=kd?{passive:!0}:!1;function kf(e,t,n){e&&e.addEventListener(t,n,ba)}function Mf(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,ba)}function Cf(e,t){const n=wf[e.type]||e.type,{x:i,y:s}=re(e,t);return{type:n,chart:t,native:e,x:i!==void 0?i:null,y:s!==void 0?s:null}}function Bn(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Pf(e,t,n){const i=e.canvas,s=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Bn(a.addedNodes,i),r=r&&!Bn(a.removedNodes,i);r&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}function Of(e,t,n){const i=e.canvas,s=new MutationObserver(o=>{let r=!1;for(const a of o)r=r||Bn(a.removedNodes,i),r=r&&!Bn(a.addedNodes,i);r&&n()});return s.observe(document,{childList:!0,subtree:!0}),s}const sn=new Map;let _o=0;function xa(){const e=window.devicePixelRatio;e!==_o&&(_o=e,sn.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Ef(e,t){sn.size||window.addEventListener("resize",xa),sn.set(e,t)}function Df(e){sn.delete(e),sn.size||window.removeEventListener("resize",xa)}function Rf(e,t,n){const i=e.canvas,s=i&&ss(i);if(!s)return;const o=Jr((a,l)=>{const c=s.clientWidth;n(a,l),c<s.clientWidth&&n()},window),r=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return r.observe(s),Ef(e,o),r}function pi(e,t,n){n&&n.disconnect(),t==="resize"&&Df(e)}function Tf(e,t,n){const i=e.canvas,s=Jr(o=>{e.ctx!==null&&n(Cf(o,e))},e);return kf(i,t,s),s}class Af extends ma{acquireContext(t,n){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(Sf(t,n),i):null}releaseContext(t){const n=t.canvas;if(!n[An])return!1;const i=n[An].initial;["height","width"].forEach(o=>{const r=i[o];Y(r)?n.removeAttribute(o):n.setAttribute(o,r)});const s=i.style||{};return Object.keys(s).forEach(o=>{n.style[o]=s[o]}),n.width=n.width,delete n[An],!0}addEventListener(t,n,i){this.removeEventListener(t,n);const s=t.$proxies||(t.$proxies={}),r={attach:Pf,detach:Of,resize:Rf}[n]||Tf;s[n]=r(t,n,i)}removeEventListener(t,n){const i=t.$proxies||(t.$proxies={}),s=i[n];if(!s)return;({attach:pi,detach:pi,resize:pi}[n]||Mf)(t,n,s),i[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,i,s){return Sd(t,n,i,s)}isAttached(t){const n=t&&ss(t);return!!(n&&n.isConnected)}}function jf(e){return!is()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?vf:Af}var Rn;let $t=(Rn=class{constructor(){j(this,"x");j(this,"y");j(this,"active",!1);j(this,"options");j(this,"$animations")}tooltipPosition(t){const{x:n,y:i}=this.getProps(["x","y"],t);return{x:n,y:i}}hasValue(){return tn(this.x)&&tn(this.y)}getProps(t,n){const i=this.$animations;if(!n||!i)return this;const s={};return t.forEach(o=>{s[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),s}},j(Rn,"defaults",{}),j(Rn,"defaultRoutes"),Rn);function Lf(e,t){const n=e.options.ticks,i=Nf(e),s=Math.min(n.maxTicksLimit||i,i),o=n.major.enabled?Ff(t):[],r=o.length,a=o[0],l=o[r-1],c=[];if(r>s)return $f(t,c,o,r/s),c;const h=If(o,t,s);if(r>0){let d,f;const u=r>1?Math.round((l-a)/(r-1)):null;for(wn(t,c,h,Y(u)?0:a-u,a),d=0,f=r-1;d<f;d++)wn(t,c,h,o[d],o[d+1]);return wn(t,c,h,l,Y(u)?t.length:l+u),c}return wn(t,c,h),c}function Nf(e){const t=e.options.offset,n=e._tickSize(),i=e._length/n+(t?0:1),s=e._maxLength/n;return Math.floor(Math.min(i,s))}function If(e,t,n){const i=zf(e),s=t.length/n;if(!i)return Math.max(s,1);const o=kh(i);for(let r=0,a=o.length-1;r<a;r++){const l=o[r];if(l>s)return l}return Math.max(s,1)}function Ff(e){const t=[];let n,i;for(n=0,i=e.length;n<i;n++)e[n].major&&t.push(n);return t}function $f(e,t,n,i){let s=0,o=n[0],r;for(i=Math.ceil(i),r=0;r<e.length;r++)r===o&&(t.push(e[r]),s++,o=n[s*i])}function wn(e,t,n,i,s){const o=F(i,0),r=Math.min(F(s,e.length),e.length);let a=0,l,c,h;for(n=Math.ceil(n),s&&(l=s-i,n=l/Math.floor(l/n)),h=o;h<0;)a++,h=Math.round(o+a*n);for(c=Math.max(o,0);c<r;c++)c===h&&(t.push(e[c]),a++,h=Math.round(o+a*n))}function zf(e){const t=e.length;let n,i;if(t<2)return!1;for(i=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==i)return!1;return i}const Bf=e=>e==="left"?"right":e==="right"?"left":e,vo=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,wo=(e,t)=>Math.min(t||e,e);function So(e,t){const n=[],i=e.length/t,s=e.length;let o=0;for(;o<s;o+=i)n.push(e[Math.floor(o)]);return n}function Wf(e,t,n){const i=e.ticks.length,s=Math.min(t,i-1),o=e._startPixel,r=e._endPixel,a=1e-6;let l=e.getPixelForTick(s),c;if(!(n&&(i===1?c=Math.max(l-o,r-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(s-1))/2,l+=s<t?c:-c,l<o-a||l>r+a)))return l}function Hf(e,t){V(e,n=>{const i=n.gc,s=i.length/2;let o;if(s>t){for(o=0;o<s;++o)delete n.data[i[o]];i.splice(0,s)}})}function Ie(e){return e.drawTicks?e.tickLength:0}function ko(e,t){if(!e.display)return 0;const n=lt(e.font,t),i=wt(e.padding);return(Z(e.text)?e.text.length:1)*n.lineHeight+i.height}function Vf(e,t){return ge(e,{scale:t,type:"scale"})}function Yf(e,t,n){return ge(e,{tick:n,index:t,type:"tick"})}function Uf(e,t,n){let i=qi(e);return(n&&t!=="right"||!n&&t==="right")&&(i=Bf(i)),i}function Xf(e,t,n,i){const{top:s,left:o,bottom:r,right:a,chart:l}=e,{chartArea:c,scales:h}=l;let d=0,f,u,g;const m=r-s,p=a-o;if(e.isHorizontal()){if(u=rt(i,o,a),z(n)){const b=Object.keys(n)[0],y=n[b];g=h[b].getPixelForValue(y)+m-t}else n==="center"?g=(c.bottom+c.top)/2+m-t:g=vo(e,n,t);f=a-o}else{if(z(n)){const b=Object.keys(n)[0],y=n[b];u=h[b].getPixelForValue(y)-p+t}else n==="center"?u=(c.left+c.right)/2-p+t:u=vo(e,n,t);g=rt(i,r,s),d=n==="left"?-st:st}return{titleX:u,titleY:g,maxWidth:f,rotation:d}}class De extends $t{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:i,_suggestedMax:s}=this;return t=kt(t,Number.POSITIVE_INFINITY),n=kt(n,Number.NEGATIVE_INFINITY),i=kt(i,Number.POSITIVE_INFINITY),s=kt(s,Number.NEGATIVE_INFINITY),{min:kt(t,i),max:kt(n,s),minDefined:vt(t),maxDefined:vt(n)}}getMinMax(t){let{min:n,max:i,minDefined:s,maxDefined:o}=this.getUserBounds(),r;if(s&&o)return{min:n,max:i};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)r=a[l].controller.getMinMax(this,t),s||(n=Math.min(n,r.min)),o||(i=Math.max(i,r.max));return n=o&&n>i?i:n,i=s&&n>i?n:i,{min:kt(n,kt(i,n)),max:kt(i,kt(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){U(this.options.beforeUpdate,[this])}update(t,n,i){const{beginAtZero:s,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=ed(this,o,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?So(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||r.source==="auto")&&(this.ticks=Lf(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,i;this.isHorizontal()?(n=this.left,i=this.right):(n=this.top,i=this.bottom,t=!t),this._startPixel=n,this._endPixel=i,this._reversePixels=t,this._length=i-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){U(this.options.afterUpdate,[this])}beforeSetDimensions(){U(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){U(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),U(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){U(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let i,s,o;for(i=0,s=t.length;i<s;i++)o=t[i],o.label=U(n.callback,[o.value,i,t],this)}afterTickToLabelConversion(){U(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){U(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,i=wo(this.ticks.length,t.ticks.maxTicksLimit),s=n.minRotation||0,o=n.maxRotation;let r=s,a,l,c;if(!this._isVisible()||!n.display||s>=o||i<=1||!this.isHorizontal()){this.labelRotation=s;return}const h=this._getLabelSizes(),d=h.widest.width,f=h.highest.height,u=at(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/i:u/(i-1),d+6>a&&(a=u/(i-(t.offset?.5:1)),l=this.maxHeight-Ie(t.grid)-n.padding-ko(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),r=Ph(Math.min(Math.asin(at((h.highest.height+6)/a,-1,1)),Math.asin(at(l/c,-1,1))-Math.asin(at(f/c,-1,1)))),r=Math.max(s,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){U(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){U(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:i,title:s,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){const l=ko(s,n.options.font);if(a?(t.width=this.maxWidth,t.height=Ie(o)+l):(t.height=this.maxHeight,t.width=Ie(o)+l),i.display&&this.ticks.length){const{first:c,last:h,widest:d,highest:f}=this._getLabelSizes(),u=i.padding*2,g=le(this.labelRotation),m=Math.cos(g),p=Math.sin(g);if(a){const b=i.mirror?0:p*d.width+m*f.height;t.height=Math.min(this.maxHeight,t.height+b+u)}else{const b=i.mirror?0:m*d.width+p*f.height;t.width=Math.min(this.maxWidth,t.width+b+u)}this._calculatePadding(c,h,p,m)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,i,s){const{ticks:{align:o,padding:r},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,u=0;l?c?(f=s*t.width,u=i*n.height):(f=i*t.height,u=s*n.width):o==="start"?u=n.width:o==="end"?f=t.width:o!=="inner"&&(f=t.width/2,u=n.width/2),this.paddingLeft=Math.max((f-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((u-d+r)*this.width/(this.width-d),0)}else{let h=n.height/2,d=t.height/2;o==="start"?(h=0,d=t.height):o==="end"&&(h=n.height,d=0),this.paddingTop=h+r,this.paddingBottom=d+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){U(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,i;for(n=0,i=t.length;n<i;n++)Y(t[n].label)&&(t.splice(n,1),i--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let i=this.ticks;n<i.length&&(i=So(i,n)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,i){const{ctx:s,_longestTextCache:o}=this,r=[],a=[],l=Math.floor(n/wo(n,i));let c=0,h=0,d,f,u,g,m,p,b,y,v,w,_;for(d=0;d<n;d+=l){if(g=t[d].label,m=this._resolveTickFontOptions(d),s.font=p=m.string,b=o[p]=o[p]||{data:{},gc:[]},y=m.lineHeight,v=w=0,!Y(g)&&!Z(g))v=Gs(s,b.data,b.gc,v,g),w=y;else if(Z(g))for(f=0,u=g.length;f<u;++f)_=g[f],!Y(_)&&!Z(_)&&(v=Gs(s,b.data,b.gc,v,_),w+=y);r.push(v),a.push(w),c=Math.max(v,c),h=Math.max(w,h)}Hf(o,n);const S=r.indexOf(c),M=a.indexOf(h),k=P=>({width:r[P]||0,height:a[P]||0});return{first:k(0),last:k(n-1),widest:k(S),highest:k(M),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Eh(this._alignToPixels?ne(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const i=n[t];return i.$context||(i.$context=Yf(this.getContext(),t,i))}return this.$context||(this.$context=Vf(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=le(this.labelRotation),i=Math.abs(Math.cos(n)),s=Math.abs(Math.sin(n)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,l=o?o.highest.height+r:0;return this.isHorizontal()?l*i>a*s?a/i:l/s:l*s<a*i?l/i:a/s}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,i=this.chart,s=this.options,{grid:o,position:r,border:a}=s,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=Ie(o),u=[],g=a.setContext(this.getContext()),m=g.display?g.width:0,p=m/2,b=function(L){return ne(i,L,m)};let y,v,w,_,S,M,k,P,E,C,O,R;if(r==="top")y=b(this.bottom),M=this.bottom-f,P=y-p,C=b(t.top)+p,R=t.bottom;else if(r==="bottom")y=b(this.top),C=t.top,R=b(t.bottom)-p,M=y+p,P=this.top+f;else if(r==="left")y=b(this.right),S=this.right-f,k=y-p,E=b(t.left)+p,O=t.right;else if(r==="right")y=b(this.left),E=t.left,O=b(t.right)-p,S=y+p,k=this.left+f;else if(n==="x"){if(r==="center")y=b((t.top+t.bottom)/2+.5);else if(z(r)){const L=Object.keys(r)[0],I=r[L];y=b(this.chart.scales[L].getPixelForValue(I))}C=t.top,R=t.bottom,M=y+p,P=M+f}else if(n==="y"){if(r==="center")y=b((t.left+t.right)/2);else if(z(r)){const L=Object.keys(r)[0],I=r[L];y=b(this.chart.scales[L].getPixelForValue(I))}S=y-p,k=S-f,E=t.left,O=t.right}const N=F(s.ticks.maxTicksLimit,d),A=Math.max(1,Math.ceil(d/N));for(v=0;v<d;v+=A){const L=this.getContext(v),I=o.setContext(L),W=a.setContext(L),$=I.lineWidth,B=I.color,et=W.dash||[],tt=W.dashOffset,it=I.tickWidth,X=I.tickColor,K=I.tickBorderDash||[],G=I.tickBorderDashOffset;w=Wf(this,v,l),w!==void 0&&(_=ne(i,w,$),c?S=k=E=O=_:M=P=C=R=_,u.push({tx1:S,ty1:M,tx2:k,ty2:P,x1:E,y1:C,x2:O,y2:R,width:$,color:B,borderDash:et,borderDashOffset:tt,tickWidth:it,tickColor:X,tickBorderDash:K,tickBorderDashOffset:G}))}return this._ticksLength=d,this._borderValue=y,u}_computeLabelItems(t){const n=this.axis,i=this.options,{position:s,ticks:o}=i,r=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:h,mirror:d}=o,f=Ie(i.grid),u=f+h,g=d?-h:u,m=-le(this.labelRotation),p=[];let b,y,v,w,_,S,M,k,P,E,C,O,R="middle";if(s==="top")S=this.bottom-g,M=this._getXAxisLabelAlignment();else if(s==="bottom")S=this.top+g,M=this._getXAxisLabelAlignment();else if(s==="left"){const A=this._getYAxisLabelAlignment(f);M=A.textAlign,_=A.x}else if(s==="right"){const A=this._getYAxisLabelAlignment(f);M=A.textAlign,_=A.x}else if(n==="x"){if(s==="center")S=(t.top+t.bottom)/2+u;else if(z(s)){const A=Object.keys(s)[0],L=s[A];S=this.chart.scales[A].getPixelForValue(L)+u}M=this._getXAxisLabelAlignment()}else if(n==="y"){if(s==="center")_=(t.left+t.right)/2-u;else if(z(s)){const A=Object.keys(s)[0],L=s[A];_=this.chart.scales[A].getPixelForValue(L)}M=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?R="top":l==="end"&&(R="bottom"));const N=this._getLabelSizes();for(b=0,y=a.length;b<y;++b){v=a[b],w=v.label;const A=o.setContext(this.getContext(b));k=this.getPixelForTick(b)+o.labelOffset,P=this._resolveTickFontOptions(b),E=P.lineHeight,C=Z(w)?w.length:1;const L=C/2,I=A.color,W=A.textStrokeColor,$=A.textStrokeWidth;let B=M;r?(_=k,M==="inner"&&(b===y-1?B=this.options.reverse?"left":"right":b===0?B=this.options.reverse?"right":"left":B="center"),s==="top"?c==="near"||m!==0?O=-C*E+E/2:c==="center"?O=-N.highest.height/2-L*E+E:O=-N.highest.height+E/2:c==="near"||m!==0?O=E/2:c==="center"?O=N.highest.height/2-L*E:O=N.highest.height-C*E,d&&(O*=-1),m!==0&&!A.showLabelBackdrop&&(_+=E/2*Math.sin(m))):(S=k,O=(1-C)*E/2);let et;if(A.showLabelBackdrop){const tt=wt(A.backdropPadding),it=N.heights[b],X=N.widths[b];let K=O-tt.top,G=0-tt.left;switch(R){case"middle":K-=it/2;break;case"bottom":K-=it;break}switch(M){case"center":G-=X/2;break;case"right":G-=X;break;case"inner":b===y-1?G-=X:b>0&&(G-=X/2);break}et={left:G,top:K,width:X+tt.width,height:it+tt.height,color:A.backdropColor}}p.push({label:w,font:P,textOffset:O,options:{rotation:m,color:I,strokeColor:W,strokeWidth:$,textAlign:B,textBaseline:R,translation:[_,S],backdrop:et}})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-le(this.labelRotation))return t==="top"?"left":"right";let s="center";return n.align==="start"?s="left":n.align==="end"?s="right":n.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:i,mirror:s,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,l=r.widest.width;let c,h;return n==="left"?s?(h=this.right+o,i==="near"?c="left":i==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-a,i==="near"?c="right":i==="center"?(c="center",h-=l/2):(c="left",h=this.left)):n==="right"?s?(h=this.left+o,i==="near"?c="right":i==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+a,i==="near"?c="left":i==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:i,top:s,width:o,height:r}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(i,s,o,r),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const s=this.ticks.findIndex(o=>o.value===t);return s>=0?n.setContext(this.getContext(s)).lineWidth:0}drawGrid(t){const n=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,r;const a=(l,c,h)=>{!h.width||!h.color||(i.save(),i.lineWidth=h.width,i.strokeStyle=h.color,i.setLineDash(h.borderDash||[]),i.lineDashOffset=h.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(n.display)for(o=0,r=s.length;o<r;++o){const l=s[o];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:i,grid:s}}=this,o=i.setContext(this.getContext()),r=i.display?o.width:0;if(!r)return;const a=s.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,h,d,f;this.isHorizontal()?(c=ne(t,this.left,r)-r/2,h=ne(t,this.right,a)+a/2,d=f=l):(d=ne(t,this.top,r)-r/2,f=ne(t,this.bottom,a)+a/2,c=h=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,d),n.lineTo(h,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const i=this.ctx,s=this._computeLabelArea();s&&Ji(i,s);const o=this.getLabelItems(t);for(const r of o){const a=r.options,l=r.font,c=r.label,h=r.textOffset;nn(i,c,0,h,l,a)}s&&Zi(i)}drawTitle(){const{ctx:t,options:{position:n,title:i,reverse:s}}=this;if(!i.display)return;const o=lt(i.font),r=wt(i.padding),a=i.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||z(n)?(l+=r.bottom,Z(i.text)&&(l+=o.lineHeight*(i.text.length-1))):l+=r.top;const{titleX:c,titleY:h,maxWidth:d,rotation:f}=Xf(this,l,n,a);nn(t,i.text,0,0,o,{color:i.color,maxWidth:d,rotation:f,textAlign:Uf(a,n,s),textBaseline:"middle",translation:[c,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,i=F(t.grid&&t.grid.z,-1),s=F(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==De.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let o,r;for(o=0,r=n.length;o<r;++o){const a=n[o];a[i]===this.id&&(!t||a.type===t)&&s.push(a)}return s}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return lt(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Sn{constructor(t,n,i){this.type=t,this.scope=n,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let i;Gf(n)&&(i=this.register(n));const s=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in s||(s[o]=t,Kf(t,r,i),this.override&&q.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){const n=this.items,i=t.id,s=this.scope;i in n&&delete n[i],s&&i in q[s]&&(delete q[s][i],this.override&&delete pe[i])}}function Kf(e,t,n){const i=Ze(Object.create(null),[n?q.get(n):{},q.get(t),e.defaults]);q.set(t,i),e.defaultRoutes&&qf(t,e.defaultRoutes),e.descriptors&&q.describe(t,e.descriptors)}function qf(e,t){Object.keys(t).forEach(n=>{const i=n.split("."),s=i.pop(),o=[e].concat(i).join("."),r=t[n].split("."),a=r.pop(),l=r.join(".");q.route(o,s,l,a)})}function Gf(e){return"id"in e&&"defaults"in e}class Jf{constructor(){this.controllers=new Sn(we,"datasets",!0),this.elements=new Sn($t,"elements"),this.plugins=new Sn(Object,"plugins"),this.scales=new Sn(De,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,i){[...n].forEach(s=>{const o=i||this._getRegistryForType(s);i||o.isForType(s)||o===this.plugins&&s.id?this._exec(t,o,s):V(s,r=>{const a=i||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,n,i){const s=Ui(t);U(i["before"+s],[],i),n[t](i),U(i["after"+s],[],i)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const i=this._typedRegistries[n];if(i.isForType(t))return i}return this.plugins}_get(t,n,i){const s=n.get(t);if(s===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return s}}var Ct=new Jf;class Zf{constructor(){this._init=[]}notify(t,n,i,s){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=s?this._descriptors(t).filter(s):this._descriptors(t),r=this._notify(o,t,n,i);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,n,i,s){s=s||{};for(const o of t){const r=o.plugin,a=r[i],l=[n,s,o.options];if(U(a,l,r)===!1&&s.cancelable)return!1}return!0}invalidate(){Y(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const i=t&&t.config,s=F(i.options&&i.options.plugins,{}),o=Qf(i);return s===!1&&!n?[]:eu(t,o,s,n)}_notifyStateChanges(t){const n=this._oldCache||[],i=this._cache,s=(o,r)=>o.filter(a=>!r.some(l=>a.plugin.id===l.plugin.id));this._notify(s(n,i),t,"stop"),this._notify(s(i,n),t,"start")}}function Qf(e){const t={},n=[],i=Object.keys(Ct.plugins.items);for(let o=0;o<i.length;o++)n.push(Ct.getPlugin(i[o]));const s=e.plugins||[];for(let o=0;o<s.length;o++){const r=s[o];n.indexOf(r)===-1&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}function tu(e,t){return!t&&e===!1?null:e===!0?{}:e}function eu(e,{plugins:t,localIds:n},i,s){const o=[],r=e.getContext();for(const a of t){const l=a.id,c=tu(i[l],s);c!==null&&o.push({plugin:a,options:nu(e.config,{plugin:a,local:n[l]},c,r)})}return o}function nu(e,{plugin:t,local:n},i,s){const o=e.pluginScopeKeys(t),r=e.getOptionScopes(i,o);return n&&t.defaults&&r.push(t.defaults),e.createResolver(r,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Oi(e,t){const n=q.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function iu(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function su(e,t){return e===t?"_index_":"_value_"}function Mo(e){if(e==="x"||e==="y"||e==="r")return e}function ou(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Ei(e,...t){if(Mo(e))return e;for(const n of t){const i=n.axis||ou(n.position)||e.length>1&&Mo(e[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Co(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function ru(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(i=>i.xAxisID===e||i.yAxisID===e);if(n.length)return Co(e,"x",n[0])||Co(e,"y",n[0])}return{}}function au(e,t){const n=pe[e.type]||{scales:{}},i=t.scales||{},s=Oi(e.type,t),o=Object.create(null);return Object.keys(i).forEach(r=>{const a=i[r];if(!z(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);const l=Ei(r,a,ru(r,e),q.scales[a.type]),c=su(l,s),h=n.scales||{};o[r]=Ye(Object.create(null),[{axis:l},a,h[l],h[c]])}),e.data.datasets.forEach(r=>{const a=r.type||e.type,l=r.indexAxis||Oi(a,t),h=(pe[a]||{}).scales||{};Object.keys(h).forEach(d=>{const f=iu(d,l),u=r[f+"AxisID"]||f;o[u]=o[u]||Object.create(null),Ye(o[u],[{axis:f},i[u],h[d]])})}),Object.keys(o).forEach(r=>{const a=o[r];Ye(a,[q.scales[a.type],q.scale])}),o}function ya(e){const t=e.options||(e.options={});t.plugins=F(t.plugins,{}),t.scales=au(e,t)}function _a(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function lu(e){return e=e||{},e.data=_a(e.data),ya(e),e}const Po=new Map,va=new Set;function kn(e,t){let n=Po.get(e);return n||(n=t(),Po.set(e,n),va.add(n)),n}const Fe=(e,t,n)=>{const i=Pe(t,n);i!==void 0&&e.add(i)};class cu{constructor(t){this._config=lu(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=_a(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),ya(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return kn(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return kn(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return kn(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,i=this.type;return kn(`${i}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const i=this._scopeCache;let s=i.get(t);return(!s||n)&&(s=new Map,i.set(t,s)),s}getOptionScopes(t,n,i){const{options:s,type:o}=this,r=this._cachedScopes(t,i),a=r.get(n);if(a)return a;const l=new Set;n.forEach(h=>{t&&(l.add(t),h.forEach(d=>Fe(l,t,d))),h.forEach(d=>Fe(l,s,d)),h.forEach(d=>Fe(l,pe[o]||{},d)),h.forEach(d=>Fe(l,q,d)),h.forEach(d=>Fe(l,Ci,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),va.has(n)&&r.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,pe[n]||{},q.datasets[n]||{},{type:n},q,Ci]}resolveNamedOptions(t,n,i,s=[""]){const o={$shared:!0},{resolver:r,subPrefixes:a}=Oo(this._resolverCache,t,s);let l=r;if(du(r,n)){o.$shared=!1,i=Kt(i)?i():i;const c=this.createResolver(t,i,a);l=Oe(r,i,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,i=[""],s){const{resolver:o}=Oo(this._resolverCache,t,i);return z(n)?Oe(o,n,void 0,s):o}}function Oo(e,t,n){let i=e.get(t);i||(i=new Map,e.set(t,i));const s=n.join();let o=i.get(s);return o||(o={resolver:ts(t,n),subPrefixes:n.filter(a=>!a.toLowerCase().includes("hover"))},i.set(s,o)),o}const hu=e=>z(e)&&Object.getOwnPropertyNames(e).some(t=>Kt(e[t]));function du(e,t){const{isScriptable:n,isIndexable:i}=ia(e);for(const s of t){const o=n(s),r=i(s),a=(r||o)&&e[s];if(o&&(Kt(a)||hu(a))||r&&Z(a))return!0}return!1}var fu="4.4.7";const uu=["top","bottom","left","right","chartArea"];function Eo(e,t){return e==="top"||e==="bottom"||uu.indexOf(e)===-1&&t==="x"}function Do(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}function Ro(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),U(n&&n.onComplete,[e],t)}function pu(e){const t=e.chart,n=t.options.animation;U(n&&n.onProgress,[e],t)}function wa(e){return is()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const jn={},To=e=>{const t=wa(e);return Object.values(jn).filter(n=>n.canvas===t).pop()};function gu(e,t,n){const i=Object.keys(e);for(const s of i){const o=+s;if(o>=t){const r=e[s];delete e[s],(n>0||o>t)&&(e[o+n]=r)}}}function mu(e,t,n,i){return!n||e.type==="mouseout"?null:i?t:e}function Mn(e,t,n){return e.options.clip?e[n]:t[n]}function bu(e,t){const{xScale:n,yScale:i}=e;return n&&i?{left:Mn(n,t,"left"),right:Mn(n,t,"right"),top:Mn(i,t,"top"),bottom:Mn(i,t,"bottom")}:t}class Pt{static register(...t){Ct.add(...t),Ao()}static unregister(...t){Ct.remove(...t),Ao()}constructor(t,n){const i=this.config=new cu(n),s=wa(t),o=To(s);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||jf(s)),this.platform.updateConfig(i);const a=this.platform.acquireContext(s,r.aspectRatio),l=a&&a.canvas,c=l&&l.height,h=l&&l.width;if(this.id=gh(),this.ctx=a,this.canvas=l,this.width=h,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Zf,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Ah(d=>this.update(d),r.resizeDelay||0),this._dataChanges=[],jn[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}At.listen(this,"complete",Ro),At.listen(this,"progress",pu),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:i,height:s,_aspectRatio:o}=this;return Y(t)?n&&o?o:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Ct}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():to(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Js(this.canvas,this.ctx),this}stop(){return At.stop(this),this}resize(t,n){At.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const i=this.options,s=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,n,o),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,to(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),U(i.onResize,[this,r],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};V(n,(i,s)=>{i.id=s})}buildOrUpdateScales(){const t=this.options,n=t.scales,i=this.scales,s=Object.keys(i).reduce((r,a)=>(r[a]=!1,r),{});let o=[];n&&(o=o.concat(Object.keys(n).map(r=>{const a=n[r],l=Ei(r,a),c=l==="r",h=l==="x";return{options:a,dposition:c?"chartArea":h?"bottom":"left",dtype:c?"radialLinear":h?"category":"linear"}}))),V(o,r=>{const a=r.options,l=a.id,c=Ei(l,a),h=F(a.type,r.dtype);(a.position===void 0||Eo(a.position,c)!==Eo(r.dposition))&&(a.position=r.dposition),s[l]=!0;let d=null;if(l in i&&i[l].type===h)d=i[l];else{const f=Ct.getScale(h);d=new f({id:l,type:h,ctx:this.ctx,chart:this}),i[d.id]=d}d.init(a,t)}),V(s,(r,a)=>{r||delete i[a]}),V(i,r=>{xt.configure(this,r,r.options),xt.addBox(this,r)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,i=t.length;if(t.sort((s,o)=>s.index-o.index),i>n){for(let s=n;s<i;++s)this._destroyDatasetMeta(s);t.splice(n,i-n)}this._sortedMetasets=t.slice(0).sort(Do("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((i,s)=>{n.filter(o=>o===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=n.length;i<s;i++){const o=n[i];let r=this.getDatasetMeta(i);const a=o.type||this.config.type;if(r.type&&r.type!==a&&(this._destroyDatasetMeta(i),r=this.getDatasetMeta(i)),r.type=a,r.indexAxis=o.indexAxis||Oi(a,this.options),r.order=o.order||0,r.index=i,r.label=""+o.label,r.visible=this.isDatasetVisible(i),r.controller)r.controller.updateIndex(i),r.controller.linkScales();else{const l=Ct.getController(a),{datasetElementType:c,dataElementType:h}=q.datasets[a];Object.assign(l,{dataElementType:Ct.getElement(h),datasetElementType:c&&Ct.getElement(c)}),r.controller=new l(this,i),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){V(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let c=0,h=this.data.datasets.length;c<h;c++){const{controller:d}=this.getDatasetMeta(c),f=!s&&o.indexOf(d)===-1;d.buildOrUpdateElements(f),r=Math.max(+d.getMaxOverflow(),r)}r=this._minPadding=i.layout.autoPadding?r:0,this._updateLayout(r),s||V(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Do("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){V(this.scales,t=>{xt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!Bs(n,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:o}of n){const r=i==="_removeElements"?-o:o;gu(t,s,r)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,i=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),s=i(0);for(let o=1;o<n;o++)if(!Bs(s,i(o)))return;return Array.from(s).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;xt.update(this,this.width,this.height,t);const n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],V(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,o)=>{s._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n<i;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,i=this.data.datasets.length;n<i;++n)this._updateDataset(n,Kt(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(i.controller._update(n),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(At.has(this)?this.attached&&!At.running(this)&&At.start(this):(this.draw(),Ro({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:s}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(i,s)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,i=[];let s,o;for(s=0,o=n.length;s<o;++s){const r=n[s];(!t||r.visible)&&i.push(r)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,i=t._clip,s=!i.disabled,o=bu(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&Ji(n,{left:i.left===!1?0:o.left-i.left,right:i.right===!1?this.width:o.right+i.right,top:i.top===!1?0:o.top-i.top,bottom:i.bottom===!1?this.height:o.bottom+i.bottom}),t.controller.draw(),s&&Zi(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return en(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,s){const o=uf.modes[n];return typeof o=="function"?o(this,t,i,s):[]}getDatasetMeta(t){const n=this.data.datasets[t],i=this._metasets;let s=i.filter(o=>o&&o._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=ge(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(t,n){const i=this.getDatasetMeta(t);i.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,i){const s=i?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,s);Qe(n)?(o.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(o,{visible:i}),this.update(a=>a.datasetIndex===t?s:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),At.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Js(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete jn[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,i=(o,r)=>{n.addEventListener(this,o,r),t[o]=r},s=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};V(this.options.events,o=>i(o,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,i=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},s=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let r;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",o),i("detach",r)};r=()=>{this.attached=!1,s("resize",o),this._stop(),this._resize(0,0),i("attach",a)},n.isAttached(this.canvas)?a():r()}unbindEvents(){V(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},V(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,i){const s=i?"set":"remove";let o,r,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+s+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){r=t[a];const c=r&&this.getDatasetMeta(r.datasetIndex).controller;c&&c[s+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],i=t.map(({datasetIndex:o,index:r})=>{const a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!Nn(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(t,n,i){return this._plugins.notify(this,t,n,i)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,i){const s=this.options.hover,o=(l,c)=>l.filter(h=>!c.some(d=>h.datasetIndex===d.datasetIndex&&h.index===d.index)),r=o(n,t),a=i?t:o(t,n);r.length&&this.updateHoverStyle(r,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,n){const i={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},s=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;const o=this._handleEvent(t,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(o||i.changed)&&this.render(),this}_handleEvent(t,n,i){const{_active:s=[],options:o}=this,r=n,a=this._getActiveElements(t,s,i,r),l=vh(t),c=mu(t,this._lastEvent,i,l);i&&(this._lastEvent=null,U(o.onHover,[t,a,this],this),l&&U(o.onClick,[t,a,this],this));const h=!Nn(a,s);return(h||n)&&(this._active=a,this._updateHoverStyles(a,s,n)),this._lastEvent=c,h}_getActiveElements(t,n,i,s){if(t.type==="mouseout")return[];if(!i)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,s)}}j(Pt,"defaults",q),j(Pt,"instances",jn),j(Pt,"overrides",pe),j(Pt,"registry",Ct),j(Pt,"version",fu),j(Pt,"getChart",To);function Ao(){return V(Pt.instances,e=>e._plugins.invalidate())}function xu(e,t,n){const{startAngle:i,pixelMargin:s,x:o,y:r,outerRadius:a,innerRadius:l}=t;let c=s/a;e.beginPath(),e.arc(o,r,a,i-c,n+c),l>s?(c=s/l,e.arc(o,r,l,n+c,i-c,!0)):e.arc(o,r,s,n+st,i-st),e.closePath(),e.clip()}function yu(e){return Qi(e,["outerStart","outerEnd","innerStart","innerEnd"])}function _u(e,t,n,i){const s=yu(e.options.borderRadius),o=(n-t)/2,r=Math.min(o,i*t/2),a=l=>{const c=(n-Math.min(o,l))*i/2;return at(l,0,Math.min(o,c))};return{outerStart:a(s.outerStart),outerEnd:a(s.outerEnd),innerStart:at(s.innerStart,0,r),innerEnd:at(s.innerEnd,0,r)}}function xe(e,t,n,i){return{x:n+e*Math.cos(t),y:i+e*Math.sin(t)}}function Wn(e,t,n,i,s,o){const{x:r,y:a,startAngle:l,pixelMargin:c,innerRadius:h}=t,d=Math.max(t.outerRadius+i+n-c,0),f=h>0?h+i+n+c:0;let u=0;const g=s-l;if(i){const A=h>0?h-i:0,L=d>0?d-i:0,I=(A+L)/2,W=I!==0?g*I/(I+i):g;u=(g-W)/2}const m=Math.max(.001,g*d-n/Q)/d,p=(g-m)/2,b=l+p+u,y=s-p-u,{outerStart:v,outerEnd:w,innerStart:_,innerEnd:S}=_u(t,f,d,y-b),M=d-v,k=d-w,P=b+v/M,E=y-w/k,C=f+_,O=f+S,R=b+_/C,N=y-S/O;if(e.beginPath(),o){const A=(P+E)/2;if(e.arc(r,a,d,P,A),e.arc(r,a,d,A,E),w>0){const $=xe(k,E,r,a);e.arc($.x,$.y,w,E,y+st)}const L=xe(O,y,r,a);if(e.lineTo(L.x,L.y),S>0){const $=xe(O,N,r,a);e.arc($.x,$.y,S,y+st,N+Math.PI)}const I=(y-S/f+(b+_/f))/2;if(e.arc(r,a,f,y-S/f,I,!0),e.arc(r,a,f,I,b+_/f,!0),_>0){const $=xe(C,R,r,a);e.arc($.x,$.y,_,R+Math.PI,b-st)}const W=xe(M,b,r,a);if(e.lineTo(W.x,W.y),v>0){const $=xe(M,P,r,a);e.arc($.x,$.y,v,b-st,P)}}else{e.moveTo(r,a);const A=Math.cos(P)*d+r,L=Math.sin(P)*d+a;e.lineTo(A,L);const I=Math.cos(E)*d+r,W=Math.sin(E)*d+a;e.lineTo(I,W)}e.closePath()}function vu(e,t,n,i,s){const{fullCircles:o,startAngle:r,circumference:a}=t;let l=t.endAngle;if(o){Wn(e,t,n,i,l,s);for(let c=0;c<o;++c)e.fill();isNaN(a)||(l=r+(a%ot||ot))}return Wn(e,t,n,i,l,s),e.fill(),l}function wu(e,t,n,i,s){const{fullCircles:o,startAngle:r,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:h,borderDash:d,borderDashOffset:f}=l,u=l.borderAlign==="inner";if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=f,u?(e.lineWidth=c*2,e.lineJoin=h||"round"):(e.lineWidth=c,e.lineJoin=h||"bevel");let g=t.endAngle;if(o){Wn(e,t,n,i,g,s);for(let m=0;m<o;++m)e.stroke();isNaN(a)||(g=r+(a%ot||ot))}u&&xu(e,t,g),o||(Wn(e,t,n,i,g,s),e.stroke())}class Cn extends $t{constructor(n){super();j(this,"circumference");j(this,"endAngle");j(this,"fullCircles");j(this,"innerRadius");j(this,"outerRadius");j(this,"pixelMargin");j(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,i,s){const o=this.getProps(["x","y"],s),{angle:r,distance:a}=Xr(o,{x:n,y:i}),{startAngle:l,endAngle:c,innerRadius:h,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),u=(this.options.spacing+this.options.borderWidth)/2,g=F(f,c-l),m=Xi(r,l,c)&&l!==c,p=g>=ot||m,b=Ht(a,h+u,d+u);return p&&b}getCenterPoint(n){const{x:i,y:s,startAngle:o,endAngle:r,innerRadius:a,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:h}=this.options,d=(o+r)/2,f=(a+l+h+c)/2;return{x:i+Math.cos(d)*f,y:s+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:i,circumference:s}=this,o=(i.offset||0)/4,r=(i.spacing||0)/2,a=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=s>ot?Math.floor(s/ot):0,s===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(Q,s||0)),h=o*c;n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,vu(n,this,h,r,a),wu(n,this,h,r,a),n.restore()}}j(Cn,"id","arc"),j(Cn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),j(Cn,"defaultRoutes",{backgroundColor:"backgroundColor"}),j(Cn,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function Sa(e,t,n=t){e.lineCap=F(n.borderCapStyle,t.borderCapStyle),e.setLineDash(F(n.borderDash,t.borderDash)),e.lineDashOffset=F(n.borderDashOffset,t.borderDashOffset),e.lineJoin=F(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=F(n.borderWidth,t.borderWidth),e.strokeStyle=F(n.borderColor,t.borderColor)}function Su(e,t,n){e.lineTo(n.x,n.y)}function ku(e){return e.stepped?Uh:e.tension||e.cubicInterpolationMode==="monotone"?Xh:Su}function ka(e,t,n={}){const i=e.length,{start:s=0,end:o=i-1}=n,{start:r,end:a}=t,l=Math.max(s,r),c=Math.min(o,a),h=s<r&&o<r||s>a&&o>a;return{count:i,start:l,loop:t.loop,ilen:c<l&&!h?i+c-l:c-l}}function Mu(e,t,n,i){const{points:s,options:o}=t,{count:r,start:a,loop:l,ilen:c}=ka(s,n,i),h=ku(o);let{move:d=!0,reverse:f}=i||{},u,g,m;for(u=0;u<=c;++u)g=s[(a+(f?c-u:u))%r],!g.skip&&(d?(e.moveTo(g.x,g.y),d=!1):h(e,m,g,f,o.stepped),m=g);return l&&(g=s[(a+(f?c:0))%r],h(e,m,g,f,o.stepped)),!!l}function Cu(e,t,n,i){const s=t.points,{count:o,start:r,ilen:a}=ka(s,n,i),{move:l=!0,reverse:c}=i||{};let h=0,d=0,f,u,g,m,p,b;const y=w=>(r+(c?a-w:w))%o,v=()=>{m!==p&&(e.lineTo(h,p),e.lineTo(h,m),e.lineTo(h,b))};for(l&&(u=s[y(0)],e.moveTo(u.x,u.y)),f=0;f<=a;++f){if(u=s[y(f)],u.skip)continue;const w=u.x,_=u.y,S=w|0;S===g?(_<m?m=_:_>p&&(p=_),h=(d*h+w)/++d):(v(),e.lineTo(w,_),g=S,d=0,m=p=_),b=_}v()}function Di(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?Cu:Mu}function Pu(e){return e.stepped?Md:e.tension||e.cubicInterpolationMode==="monotone"?Cd:ae}function Ou(e,t,n,i){let s=t._path;s||(s=t._path=new Path2D,t.path(s,n,i)&&s.closePath()),Sa(e,t.options),e.stroke(s)}function Eu(e,t,n,i){const{segments:s,options:o}=t,r=Di(t);for(const a of s)Sa(e,o,a.style),e.beginPath(),r(e,t,a,{start:n,end:n+i-1})&&e.closePath(),e.stroke()}const Du=typeof Path2D=="function";function Ru(e,t,n,i){Du&&!t.options.segment?Ou(e,t,n,i):Eu(e,t,n,i)}class Pn extends $t{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;bd(this._points,i,t,s,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=jd(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,i=t.length;return i&&n[t[i-1].end]}interpolate(t,n){const i=this.options,s=t[n],o=this.points,r=Rd(this,{property:n,start:s,end:s});if(!r.length)return;const a=[],l=Pu(i);let c,h;for(c=0,h=r.length;c<h;++c){const{start:d,end:f}=r[c],u=o[d],g=o[f];if(u===g){a.push(u);continue}const m=Math.abs((s-u[n])/(g[n]-u[n])),p=l(u,g,m,i.stepped);p[n]=t[n],a.push(p)}return a.length===1?a[0]:a}pathSegment(t,n,i){return Di(this)(t,this,n,i)}path(t,n,i){const s=this.segments,o=Di(this);let r=this._loop;n=n||0,i=i||this.points.length-n;for(const a of s)r&=o(t,this,a,{start:n,end:n+i-1});return!!r}draw(t,n,i,s){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Ru(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}j(Pn,"id","line"),j(Pn,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),j(Pn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),j(Pn,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function jo(e,t,n,i){const s=e.options,{[n]:o}=e.getProps([n],i);return Math.abs(t-o)<s.radius+s.hitRadius}class gi extends $t{constructor(n){super();j(this,"parsed");j(this,"skip");j(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,i,s){const o=this.options,{x:r,y:a}=this.getProps(["x","y"],s);return Math.pow(n-r,2)+Math.pow(i-a,2)<Math.pow(o.hitRadius+o.radius,2)}inXRange(n,i){return jo(this,n,"x",i)}inYRange(n,i){return jo(this,n,"y",i)}getCenterPoint(n){const{x:i,y:s}=this.getProps(["x","y"],n);return{x:i,y:s}}size(n){n=n||this.options||{};let i=n.radius||0;i=Math.max(i,i&&n.hoverRadius||0);const s=i&&n.borderWidth||0;return(i+s)*2}draw(n,i){const s=this.options;this.skip||s.radius<.1||!en(this,i,this.size(s)/2)||(n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.fillStyle=s.backgroundColor,Pi(n,s,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}j(gi,"id","point"),j(gi,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),j(gi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function Ma(e,t){const{x:n,y:i,base:s,width:o,height:r}=e.getProps(["x","y","base","width","height"],t);let a,l,c,h,d;return e.horizontal?(d=r/2,a=Math.min(n,s),l=Math.max(n,s),c=i-d,h=i+d):(d=o/2,a=n-d,l=n+d,c=Math.min(i,s),h=Math.max(i,s)),{left:a,top:c,right:l,bottom:h}}function Vt(e,t,n,i){return e?0:at(t,n,i)}function Tu(e,t,n){const i=e.options.borderWidth,s=e.borderSkipped,o=na(i);return{t:Vt(s.top,o.top,0,n),r:Vt(s.right,o.right,0,t),b:Vt(s.bottom,o.bottom,0,n),l:Vt(s.left,o.left,0,t)}}function Au(e,t,n){const{enableBorderRadius:i}=e.getProps(["enableBorderRadius"]),s=e.options.borderRadius,o=_e(s),r=Math.min(t,n),a=e.borderSkipped,l=i||z(s);return{topLeft:Vt(!l||a.top||a.left,o.topLeft,0,r),topRight:Vt(!l||a.top||a.right,o.topRight,0,r),bottomLeft:Vt(!l||a.bottom||a.left,o.bottomLeft,0,r),bottomRight:Vt(!l||a.bottom||a.right,o.bottomRight,0,r)}}function ju(e){const t=Ma(e),n=t.right-t.left,i=t.bottom-t.top,s=Tu(e,n/2,i/2),o=Au(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i,radius:o},inner:{x:t.left+s.l,y:t.top+s.t,w:n-s.l-s.r,h:i-s.t-s.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(s.t,s.l)),topRight:Math.max(0,o.topRight-Math.max(s.t,s.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(s.b,s.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(s.b,s.r))}}}}function mi(e,t,n,i){const s=t===null,o=n===null,a=e&&!(s&&o)&&Ma(e,i);return a&&(s||Ht(t,a.left,a.right))&&(o||Ht(n,a.top,a.bottom))}function Lu(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Nu(e,t){e.rect(t.x,t.y,t.w,t.h)}function bi(e,t,n={}){const i=e.x!==n.x?-t:0,s=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-i,r=(e.y+e.h!==n.y+n.h?t:0)-s;return{x:e.x+i,y:e.y+s,w:e.w+o,h:e.h+r,radius:e.radius}}class xi extends $t{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:i,backgroundColor:s}}=this,{inner:o,outer:r}=ju(this),a=Lu(r.radius)?$n:Nu;t.save(),(r.w!==o.w||r.h!==o.h)&&(t.beginPath(),a(t,bi(r,n,o)),t.clip(),a(t,bi(o,-n,r)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,bi(o,n)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,n,i){return mi(this,t,n,i)}inXRange(t,n){return mi(this,t,null,n)}inYRange(t,n){return mi(this,null,t,n)}getCenterPoint(t){const{x:n,y:i,base:s,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+s)/2:n,y:o?i:(i+s)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}j(xi,"id","bar"),j(xi,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),j(xi,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});const Lo=(e,t)=>{let{boxHeight:n=t,boxWidth:i=t}=e;return e.usePointStyle&&(n=Math.min(n,t),i=e.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(t,n)}},Iu=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class No extends $t{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,i){this.maxWidth=t,this.maxHeight=n,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=U(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(i=>t.filter(i,this.chart.data))),t.sort&&(n=n.sort((i,s)=>t.sort(i,s,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const i=t.labels,s=lt(i.font),o=s.size,r=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Lo(i,o);let c,h;n.font=s.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(r,o,a,l)+10):(h=this.maxHeight,c=this._fitCols(r,s,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,n,i,s){const{ctx:o,maxWidth:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=s+a;let d=t;o.textAlign="left",o.textBaseline="middle";let f=-1,u=-h;return this.legendItems.forEach((g,m)=>{const p=i+n/2+o.measureText(g.text).width;(m===0||c[c.length-1]+p+2*a>r)&&(d+=h,c[c.length-(m>0?0:1)]=0,u+=h,f++),l[m]={left:0,top:u,row:f,width:p,height:s},c[c.length-1]+=p+a}),d}_fitCols(t,n,i,s){const{ctx:o,maxHeight:r,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=r-t;let d=a,f=0,u=0,g=0,m=0;return this.legendItems.forEach((p,b)=>{const{itemWidth:y,itemHeight:v}=Fu(i,n,o,p,s);b>0&&u+v+2*a>h&&(d+=f+a,c.push({width:f,height:u}),g+=f+a,m++,f=u=0),l[b]={left:g,top:u,col:m,width:y,height:v},f=Math.max(f,y),u+=v+a}),d+=f,c.push({width:f,height:u}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:i,labels:{padding:s},rtl:o}}=this,r=ve(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=rt(i,this.left+s,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=rt(i,this.left+s,this.right-this.lineWidths[a])),c.top+=this.top+t+s,c.left=r.leftForLtr(r.x(l),c.width),l+=c.width+s}else{let a=0,l=rt(i,this.top+t+s,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=rt(i,this.top+t+s,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+s,c.left=r.leftForLtr(r.x(c.left),c.width),l+=c.height+s}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Ji(t,this),this._draw(),Zi(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:i,ctx:s}=this,{align:o,labels:r}=t,a=q.color,l=ve(t.rtl,this.left,this.width),c=lt(r.font),{padding:h}=r,d=c.size,f=d/2;let u;this.drawTitle(),s.textAlign=l.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=c.string;const{boxWidth:g,boxHeight:m,itemHeight:p}=Lo(r,d),b=function(S,M,k){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;s.save();const P=F(k.lineWidth,1);if(s.fillStyle=F(k.fillStyle,a),s.lineCap=F(k.lineCap,"butt"),s.lineDashOffset=F(k.lineDashOffset,0),s.lineJoin=F(k.lineJoin,"miter"),s.lineWidth=P,s.strokeStyle=F(k.strokeStyle,a),s.setLineDash(F(k.lineDash,[])),r.usePointStyle){const E={radius:m*Math.SQRT2/2,pointStyle:k.pointStyle,rotation:k.rotation,borderWidth:P},C=l.xPlus(S,g/2),O=M+f;ea(s,E,C,O,r.pointStyleWidth&&g)}else{const E=M+Math.max((d-m)/2,0),C=l.leftForLtr(S,g),O=_e(k.borderRadius);s.beginPath(),Object.values(O).some(R=>R!==0)?$n(s,{x:C,y:E,w:g,h:m,radius:O}):s.rect(C,E,g,m),s.fill(),P!==0&&s.stroke()}s.restore()},y=function(S,M,k){nn(s,k.text,S,M+p/2,c,{strikethrough:k.hidden,textAlign:l.textAlign(k.textAlign)})},v=this.isHorizontal(),w=this._computeTitleHeight();v?u={x:rt(o,this.left+h,this.right-i[0]),y:this.top+h+w,line:0}:u={x:this.left+h,y:rt(o,this.top+w+h,this.bottom-n[0].height),line:0},la(this.ctx,t.textDirection);const _=p+h;this.legendItems.forEach((S,M)=>{s.strokeStyle=S.fontColor,s.fillStyle=S.fontColor;const k=s.measureText(S.text).width,P=l.textAlign(S.textAlign||(S.textAlign=r.textAlign)),E=g+f+k;let C=u.x,O=u.y;l.setWidth(this.width),v?M>0&&C+E+h>this.right&&(O=u.y+=_,u.line++,C=u.x=rt(o,this.left+h,this.right-i[u.line])):M>0&&O+_>this.bottom&&(C=u.x=C+n[u.line].width+h,u.line++,O=u.y=rt(o,this.top+w+h,this.bottom-n[u.line].height));const R=l.x(C);if(b(R,O,S),C=jh(P,C+g+f,v?C+E:this.right,t.rtl),y(l.x(C),O,S),v)u.x+=E+h;else if(typeof S.text!="string"){const N=c.lineHeight;u.y+=Ca(S,N)+h}else u.y+=_}),ca(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,i=lt(n.font),s=wt(n.padding);if(!n.display)return;const o=ve(t.rtl,this.left,this.width),r=this.ctx,a=n.position,l=i.size/2,c=s.top+l;let h,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),h=this.top+c,d=rt(t.align,d,this.right-f);else{const g=this.columnSizes.reduce((m,p)=>Math.max(m,p.height),0);h=c+rt(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const u=rt(a,d,d+f);r.textAlign=o.textAlign(qi(a)),r.textBaseline="middle",r.strokeStyle=n.color,r.fillStyle=n.color,r.font=i.string,nn(r,n.text,u,h,i)}_computeTitleHeight(){const t=this.options.title,n=lt(t.font),i=wt(t.padding);return t.display?n.lineHeight+i.height:0}_getLegendItemAt(t,n){let i,s,o;if(Ht(t,this.left,this.right)&&Ht(n,this.top,this.bottom)){for(o=this.legendHitBoxes,i=0;i<o.length;++i)if(s=o[i],Ht(t,s.left,s.left+s.width)&&Ht(n,s.top,s.top+s.height))return this.legendItems[i]}return null}handleEvent(t){const n=this.options;if(!Bu(t.type,n))return;const i=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const s=this._hoveredItem,o=Iu(s,i);s&&!o&&U(n.onLeave,[t,s,this],this),this._hoveredItem=i,i&&!o&&U(n.onHover,[t,i,this],this)}else i&&U(n.onClick,[t,i,this],this)}}function Fu(e,t,n,i,s){const o=$u(i,e,t,n),r=zu(s,i,t.lineHeight);return{itemWidth:o,itemHeight:r}}function $u(e,t,n,i){let s=e.text;return s&&typeof s!="string"&&(s=s.reduce((o,r)=>o.length>r.length?o:r)),t+n.size/2+i.measureText(s).width}function zu(e,t,n){let i=e;return typeof t.text!="string"&&(i=Ca(t,n)),i}function Ca(e,t){const n=e.text?e.text.length:0;return t*n}function Bu(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var _g={id:"legend",_element:No,start(e,t,n){const i=e.legend=new No({ctx:e.ctx,options:n,chart:e});xt.configure(e,i,n),xt.addBox(e,i)},stop(e){xt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const i=e.legend;xt.configure(e,i,n),i.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const i=t.datasetIndex,s=n.chart;s.isDatasetVisible(i)?(s.hide(i),t.hidden=!0):(s.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:s,color:o,useBorderRadius:r,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),h=wt(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:s||c.textAlign,borderRadius:r&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class Pa extends $t{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const s=Z(i.text)?i.text.length:1;this._padding=wt(i.padding);const o=s*lt(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:i,bottom:s,right:o,options:r}=this,a=r.align;let l=0,c,h,d;return this.isHorizontal()?(h=rt(a,i,o),d=n+t,c=o-i):(r.position==="left"?(h=i+t,d=rt(a,s,n),l=Q*-.5):(h=o-t,d=rt(a,n,s),l=Q*.5),c=s-n),{titleX:h,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const i=lt(n.font),o=i.lineHeight/2+this._padding.top,{titleX:r,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(o);nn(t,n.text,0,0,i,{color:n.color,maxWidth:l,rotation:c,textAlign:qi(n.align),textBaseline:"middle",translation:[r,a]})}}function Wu(e,t){const n=new Pa({ctx:e.ctx,options:t,chart:e});xt.configure(e,n,t),xt.addBox(e,n),e.titleBlock=n}var vg={id:"title",_element:Pa,start(e,t,n){Wu(e,n)},stop(e){const t=e.titleBlock;xt.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const i=e.titleBlock;xt.configure(e,i,n),i.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Be={average(e){if(!e.length)return!1;let t,n,i=new Set,s=0,o=0;for(t=0,n=e.length;t<n;++t){const a=e[t].element;if(a&&a.hasValue()){const l=a.tooltipPosition();i.add(l.x),s+=l.y,++o}}return o===0||i.size===0?!1:{x:[...i].reduce((a,l)=>a+l)/i.size,y:s/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,i=t.y,s=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=e.length;o<r;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),h=Mi(t,c);h<s&&(s=h,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,i=l.y}return{x:n,y:i}}};function Mt(e,t){return t&&(Z(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function jt(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
+`)>-1?e.split(`
+`):e}function Hu(e,t){const{element:n,datasetIndex:i,index:s}=t,o=e.getDatasetMeta(i).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:e,label:r,parsed:o.getParsed(s),raw:e.data.datasets[i].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:i,element:n}}function Io(e,t){const n=e.chart.ctx,{body:i,footer:s,title:o}=e,{boxWidth:r,boxHeight:a}=t,l=lt(t.bodyFont),c=lt(t.titleFont),h=lt(t.footerFont),d=o.length,f=s.length,u=i.length,g=wt(t.padding);let m=g.height,p=0,b=i.reduce((w,_)=>w+_.before.length+_.lines.length+_.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,d&&(m+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),b){const w=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;m+=u*w+(b-u)*l.lineHeight+(b-1)*t.bodySpacing}f&&(m+=t.footerMarginTop+f*h.lineHeight+(f-1)*t.footerSpacing);let y=0;const v=function(w){p=Math.max(p,n.measureText(w).width+y)};return n.save(),n.font=c.string,V(e.title,v),n.font=l.string,V(e.beforeBody.concat(e.afterBody),v),y=t.displayColors?r+2+t.boxPadding:0,V(i,w=>{V(w.before,v),V(w.lines,v),V(w.after,v)}),y=0,n.font=h.string,V(e.footer,v),n.restore(),p+=g.width,{width:p,height:m}}function Vu(e,t){const{y:n,height:i}=t;return n<i/2?"top":n>e.height-i/2?"bottom":"center"}function Yu(e,t,n,i){const{x:s,width:o}=i,r=n.caretSize+n.caretPadding;if(e==="left"&&s+o+r>t.width||e==="right"&&s-o-r<0)return!0}function Uu(e,t,n,i){const{x:s,width:o}=n,{width:r,chartArea:{left:a,right:l}}=e;let c="center";return i==="center"?c=s<=(a+l)/2?"left":"right":s<=o/2?c="left":s>=r-o/2&&(c="right"),Yu(c,e,t,n)&&(c="center"),c}function Fo(e,t,n){const i=n.yAlign||t.yAlign||Vu(e,n);return{xAlign:n.xAlign||t.xAlign||Uu(e,t,n,i),yAlign:i}}function Xu(e,t){let{x:n,width:i}=e;return t==="right"?n-=i:t==="center"&&(n-=i/2),n}function Ku(e,t,n){let{y:i,height:s}=e;return t==="top"?i+=n:t==="bottom"?i-=s+n:i-=s/2,i}function $o(e,t,n,i){const{caretSize:s,caretPadding:o,cornerRadius:r}=e,{xAlign:a,yAlign:l}=n,c=s+o,{topLeft:h,topRight:d,bottomLeft:f,bottomRight:u}=_e(r);let g=Xu(t,a);const m=Ku(t,l,c);return l==="center"?a==="left"?g+=c:a==="right"&&(g-=c):a==="left"?g-=Math.max(h,f)+s:a==="right"&&(g+=Math.max(d,u)+s),{x:at(g,0,i.width-t.width),y:at(m,0,i.height-t.height)}}function On(e,t,n){const i=wt(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-i.right:e.x+i.left}function zo(e){return Mt([],jt(e))}function qu(e,t,n){return ge(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Bo(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const Oa={beforeTitle:Tt,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,i=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return n[t.dataIndex]}return""},afterTitle:Tt,beforeBody:Tt,beforeLabel:Tt,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Y(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Tt,afterBody:Tt,beforeFooter:Tt,footer:Tt,afterFooter:Tt};function ht(e,t,n,i){const s=e[t].call(n,i);return typeof s>"u"?Oa[t].call(n,i):s}class Ri extends $t{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&n.options.animation&&i.animations,o=new da(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=qu(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:i}=n,s=ht(i,"beforeTitle",this,t),o=ht(i,"title",this,t),r=ht(i,"afterTitle",this,t);let a=[];return a=Mt(a,jt(s)),a=Mt(a,jt(o)),a=Mt(a,jt(r)),a}getBeforeBody(t,n){return zo(ht(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:i}=n,s=[];return V(t,o=>{const r={before:[],lines:[],after:[]},a=Bo(i,o);Mt(r.before,jt(ht(a,"beforeLabel",this,o))),Mt(r.lines,ht(a,"label",this,o)),Mt(r.after,jt(ht(a,"afterLabel",this,o))),s.push(r)}),s}getAfterBody(t,n){return zo(ht(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:i}=n,s=ht(i,"beforeFooter",this,t),o=ht(i,"footer",this,t),r=ht(i,"afterFooter",this,t);let a=[];return a=Mt(a,jt(s)),a=Mt(a,jt(o)),a=Mt(a,jt(r)),a}_createItems(t){const n=this._active,i=this.chart.data,s=[],o=[],r=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(Hu(this.chart,n[l]));return t.filter&&(a=a.filter((h,d,f)=>t.filter(h,d,f,i))),t.itemSort&&(a=a.sort((h,d)=>t.itemSort(h,d,i))),V(a,h=>{const d=Bo(t.callbacks,h);s.push(ht(d,"labelColor",this,h)),o.push(ht(d,"labelPointStyle",this,h)),r.push(ht(d,"labelTextColor",this,h))}),this.labelColors=s,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,n){const i=this.options.setContext(this.getContext()),s=this._active;let o,r=[];if(!s.length)this.opacity!==0&&(o={opacity:0});else{const a=Be[i.position].call(this,s,this._eventPosition);r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i);const l=this._size=Io(this,i),c=Object.assign({},a,l),h=Fo(this.chart,i,c),d=$o(i,c,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,i,s){const o=this.getCaretPosition(t,i,s);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,i){const{xAlign:s,yAlign:o}=this,{caretSize:r,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:h,bottomRight:d}=_e(a),{x:f,y:u}=t,{width:g,height:m}=n;let p,b,y,v,w,_;return o==="center"?(w=u+m/2,s==="left"?(p=f,b=p-r,v=w+r,_=w-r):(p=f+g,b=p+r,v=w-r,_=w+r),y=p):(s==="left"?b=f+Math.max(l,h)+r:s==="right"?b=f+g-Math.max(c,d)-r:b=this.caretX,o==="top"?(v=u,w=v-r,p=b-r,y=b+r):(v=u+m,w=v+r,p=b+r,y=b-r),_=v),{x1:p,x2:b,x3:y,y1:v,y2:w,y3:_}}drawTitle(t,n,i){const s=this.title,o=s.length;let r,a,l;if(o){const c=ve(i.rtl,this.x,this.width);for(t.x=On(this,i.titleAlign,i),n.textAlign=c.textAlign(i.titleAlign),n.textBaseline="middle",r=lt(i.titleFont),a=i.titleSpacing,n.fillStyle=i.titleColor,n.font=r.string,l=0;l<o;++l)n.fillText(s[l],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,l+1===o&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,n,i,s,o){const r=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:c}=o,h=lt(o.bodyFont),d=On(this,"left",o),f=s.x(d),u=l<h.lineHeight?(h.lineHeight-l)/2:0,g=n.y+u;if(o.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},p=s.leftForLtr(f,c)+c/2,b=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Pi(t,m,p,b),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,Pi(t,m,p,b)}else{t.lineWidth=z(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;const m=s.leftForLtr(f,c),p=s.leftForLtr(s.xPlus(f,1),c-2),b=_e(r.borderRadius);Object.values(b).some(y=>y!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,$n(t,{x:m,y:g,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),$n(t,{x:p,y:g+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(m,g,c,l),t.strokeRect(m,g,c,l),t.fillStyle=r.backgroundColor,t.fillRect(p,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,n,i){const{body:s}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:h}=i,d=lt(i.bodyFont);let f=d.lineHeight,u=0;const g=ve(i.rtl,this.x,this.width),m=function(k){n.fillText(k,g.x(t.x+u),t.y+f/2),t.y+=f+o},p=g.textAlign(r);let b,y,v,w,_,S,M;for(n.textAlign=r,n.textBaseline="middle",n.font=d.string,t.x=On(this,p,i),n.fillStyle=i.bodyColor,V(this.beforeBody,m),u=a&&p!=="right"?r==="center"?c/2+h:c+2+h:0,w=0,S=s.length;w<S;++w){for(b=s[w],y=this.labelTextColors[w],n.fillStyle=y,V(b.before,m),v=b.lines,a&&v.length&&(this._drawColorBox(n,t,w,g,i),f=Math.max(d.lineHeight,l)),_=0,M=v.length;_<M;++_)m(v[_]),f=d.lineHeight;V(b.after,m)}u=0,f=d.lineHeight,V(this.afterBody,m),t.y-=o}drawFooter(t,n,i){const s=this.footer,o=s.length;let r,a;if(o){const l=ve(i.rtl,this.x,this.width);for(t.x=On(this,i.footerAlign,i),t.y+=i.footerMarginTop,n.textAlign=l.textAlign(i.footerAlign),n.textBaseline="middle",r=lt(i.footerFont),n.fillStyle=i.footerColor,n.font=r.string,a=0;a<o;++a)n.fillText(s[a],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+i.footerSpacing}}drawBackground(t,n,i,s){const{xAlign:o,yAlign:r}=this,{x:a,y:l}=t,{width:c,height:h}=i,{topLeft:d,topRight:f,bottomLeft:u,bottomRight:g}=_e(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(a+d,l),r==="top"&&this.drawCaret(t,n,i,s),n.lineTo(a+c-f,l),n.quadraticCurveTo(a+c,l,a+c,l+f),r==="center"&&o==="right"&&this.drawCaret(t,n,i,s),n.lineTo(a+c,l+h-g),n.quadraticCurveTo(a+c,l+h,a+c-g,l+h),r==="bottom"&&this.drawCaret(t,n,i,s),n.lineTo(a+u,l+h),n.quadraticCurveTo(a,l+h,a,l+h-u),r==="center"&&o==="left"&&this.drawCaret(t,n,i,s),n.lineTo(a,l+d),n.quadraticCurveTo(a,l,a+d,l),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,i=this.$animations,s=i&&i.x,o=i&&i.y;if(s||o){const r=Be[t.position].call(this,this._active,this._eventPosition);if(!r)return;const a=this._size=Io(this,t),l=Object.assign({},r,this._size),c=Fo(n,t,l),h=$o(t,l,c,n);(s._to!==h.x||o._to!==h.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const r=wt(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,s,n),la(t,n.textDirection),o.y+=r.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),ca(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const i=this._active,s=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!Nn(i,s),r=this._positionChanged(s,n);(o||r)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,o=this._active||[],r=this._getActiveElements(t,o,n,i),a=this._positionChanged(r,t),l=n||!Nn(r,o)||a;return l&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,i,s){const o=this.options;if(t.type==="mouseout")return[];if(!s)return n.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);const r=this.chart.getElementsAtEventForMode(t,o.mode,o,i);return o.reverse&&r.reverse(),r}_positionChanged(t,n){const{caretX:i,caretY:s,options:o}=this,r=Be[o.position].call(this,t,n);return r!==!1&&(i!==r.x||s!==r.y)}}j(Ri,"positioners",Be);var wg={id:"tooltip",_element:Ri,positioners:Be,afterInit(e,t,n){n&&(e.tooltip=new Ri({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Oa},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Gu=(e,t,n,i)=>(typeof t=="string"?(n=e.push(t)-1,i.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Ju(e,t,n,i){const s=e.indexOf(t);if(s===-1)return Gu(e,t,n,i);const o=e.lastIndexOf(t);return s!==o?n:s}const Zu=(e,t)=>e===null?null:at(Math.round(e),0,t);function Wo(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Ho extends De{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const i=this.getLabels();for(const{index:s,label:o}of n)i[s]===o&&i.splice(s,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Y(t))return null;const i=this.getLabels();return n=isFinite(n)&&i[n]===t?n:Ju(i,t,F(n,t),this._addedLabels),Zu(n,i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),n||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,n=this.max,i=this.options.offset,s=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let r=t;r<=n;r++)s.push({value:r});return s}getLabelForValue(t){return Wo.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}j(Ho,"id","category"),j(Ho,"defaults",{ticks:{callback:Wo}});function Qu(e,t){const n=[],{bounds:s,step:o,min:r,max:a,precision:l,count:c,maxTicks:h,maxDigits:d,includeBounds:f}=e,u=o||1,g=h-1,{min:m,max:p}=t,b=!Y(r),y=!Y(a),v=!Y(c),w=(p-m)/(d+1);let _=Hs((p-m)/g/u)*u,S,M,k,P;if(_<1e-14&&!b&&!y)return[{value:m},{value:p}];P=Math.ceil(p/_)-Math.floor(m/_),P>g&&(_=Hs(P*_/g/u)*u),Y(l)||(S=Math.pow(10,l),_=Math.ceil(_*S)/S),s==="ticks"?(M=Math.floor(m/_)*_,k=Math.ceil(p/_)*_):(M=m,k=p),b&&y&&o&&Mh((a-r)/o,_/1e3)?(P=Math.round(Math.min((a-r)/_,h)),_=(a-r)/P,M=r,k=a):v?(M=b?r:M,k=y?a:k,P=c-1,_=(k-M)/P):(P=(k-M)/_,Ue(P,Math.round(P),_/1e3)?P=Math.round(P):P=Math.ceil(P));const E=Math.max(Vs(_),Vs(M));S=Math.pow(10,Y(l)?E:l),M=Math.round(M*S)/S,k=Math.round(k*S)/S;let C=0;for(b&&(f&&M!==r?(n.push({value:r}),M<r&&C++,Ue(Math.round((M+C*_)*S)/S,r,Vo(r,w,e))&&C++):M<r&&C++);C<P;++C){const O=Math.round((M+C*_)*S)/S;if(y&&O>a)break;n.push({value:O})}return y&&f&&k!==a?n.length&&Ue(n[n.length-1].value,a,Vo(a,w,e))?n[n.length-1].value=a:n.push({value:a}):(!y||k===a)&&n.push({value:k}),n}function Vo(e,t,{horizontal:n,minRotation:i}){const s=le(i),o=(n?Math.sin(s):Math.cos(s))||.001,r=.75*t*(""+e).length;return Math.min(t/o,r)}class tp extends De{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Y(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:i}=this.getUserBounds();let{min:s,max:o}=this;const r=l=>s=n?s:l,a=l=>o=i?o:l;if(t){const l=Dt(s),c=Dt(o);l<0&&c<0?a(0):l>0&&c>0&&r(0)}if(s===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||r(s-l)}this.min=s,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:i}=t,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,r=Qu(s,o);return t.bounds==="ticks"&&Ch(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let n=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-n)/Math.max(t.length-1,1)/2;n-=s,i+=s}this._startValue=n,this._endValue=i,this._valueRange=i-n}getLabelForValue(t){return Zr(t,this.chart.options.locale,this.options.ticks.format)}}class Yo extends tp{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=vt(t)?t:0,this.max=vt(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,i=le(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/s))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}j(Yo,"id","linear"),j(Yo,"defaults",{ticks:{callback:ta.formatters.numeric}});const qn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},dt=Object.keys(qn);function Uo(e,t){return e-t}function Xo(e,t){if(Y(t))return null;const n=e._adapter,{parser:i,round:s,isoWeekday:o}=e._parseOpts;let r=t;return typeof i=="function"&&(r=i(r)),vt(r)||(r=typeof i=="string"?n.parse(r,i):n.parse(r)),r===null?null:(s&&(r=s==="week"&&(tn(o)||o===!0)?n.startOf(r,"isoWeek",o):n.startOf(r,s)),+r)}function Ko(e,t,n,i){const s=dt.length;for(let o=dt.indexOf(e);o<s-1;++o){const r=qn[dt[o]],a=r.steps?r.steps:Number.MAX_SAFE_INTEGER;if(r.common&&Math.ceil((n-t)/(a*r.size))<=i)return dt[o]}return dt[s-1]}function ep(e,t,n,i,s){for(let o=dt.length-1;o>=dt.indexOf(n);o--){const r=dt[o];if(qn[r].common&&e._adapter.diff(s,i,r)>=t-1)return r}return dt[n?dt.indexOf(n):0]}function np(e){for(let t=dt.indexOf(e)+1,n=dt.length;t<n;++t)if(qn[dt[t]].common)return dt[t]}function qo(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:i,hi:s}=Ki(n,t),o=n[i]>=t?n[i]:n[s];e[o]=!0}}function ip(e,t,n,i){const s=e._adapter,o=+s.startOf(t[0].value,i),r=t[t.length-1].value;let a,l;for(a=o;a<=r;a=+s.add(a,1,i))l=n[a],l>=0&&(t[l].major=!0);return t}function Go(e,t,n){const i=[],s={},o=t.length;let r,a;for(r=0;r<o;++r)a=t[r],s[a]=r,i.push({value:a,major:!1});return o===0||!n?i:ip(e,i,s,n)}class Hn extends De{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const i=t.time||(t.time={}),s=this._adapter=new lf._date(t.adapters.date);s.init(n),Ye(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Xo(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,i=t.time.unit||"day";let{min:s,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function l(c){!r&&!isNaN(c.min)&&(s=Math.min(s,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!r||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),s=vt(s)&&!isNaN(s)?s:+n.startOf(Date.now(),i),o=vt(o)&&!isNaN(o)?o:+n.endOf(Date.now(),i)+1,this.min=Math.min(s,o-1),this.max=Math.max(s+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],i=t[t.length-1]),{min:n,max:i}}buildTicks(){const t=this.options,n=t.time,i=t.ticks,s=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const o=this.min,r=this.max,a=Rh(s,o,r);return this._unit=n.unit||(i.autoSkip?Ko(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):ep(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:np(this._unit),this.initOffsets(s),t.reverse&&a.reverse(),Go(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,i=0,s,o;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?n=1-s:n=(this.getDecimalForValue(t[1])-s)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?i=o:i=(o-this.getDecimalForValue(t[t.length-2]))/2);const r=t.length<3?.5:.25;n=at(n,0,r),i=at(i,0,r),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){const t=this._adapter,n=this.min,i=this.max,s=this.options,o=s.time,r=o.unit||Ko(o.minUnit,n,i,this._getLabelCapacity(n)),a=F(s.ticks.stepSize,1),l=r==="week"?o.isoWeekday:!1,c=tn(l)||l===!0,h={};let d=n,f,u;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":r),t.diff(i,n,r)>1e5*a)throw new Error(n+" and "+i+" are too far apart with stepSize of "+a+" "+r);const g=s.ticks.source==="data"&&this.getDataTimestamps();for(f=d,u=0;f<i;f=+t.add(f,a,r),u++)qo(h,f,g);return(f===i||s.bounds==="ticks"||u===1)&&qo(h,f,g),Object.keys(h).sort(Uo).map(m=>+m)}getLabelForValue(t){const n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(t,i.tooltipFormat):n.format(t,i.displayFormats.datetime)}format(t,n){const s=this.options.time.displayFormats,o=this._unit,r=n||s[o];return this._adapter.format(t,r)}_tickFormatFunction(t,n,i,s){const o=this.options,r=o.ticks.callback;if(r)return U(r,[t,n,i],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,h=l&&a[l],d=c&&a[c],f=i[n],u=c&&d&&f&&f.major;return this._adapter.format(t,s||(u?d:h))}generateTickLabels(t){let n,i,s;for(n=0,i=t.length;n<i;++n)s=t[n],s.label=this._tickFormatFunction(s.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+i)*n.factor)}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,i=this.ctx.measureText(t).width,s=le(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(s),r=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*o+a*r,h:i*r+a*o}}_getLabelCapacity(t){const n=this.options.time,i=n.displayFormats,s=i[n.unit]||i.millisecond,o=this._tickFormatFunction(t,0,Go(this,[t],this._majorUnit),s),r=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,i;if(t.length)return t;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,i=s.length;n<i;++n)t=t.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,i;if(t.length)return t;const s=this.getLabels();for(n=0,i=s.length;n<i;++n)t.push(Xo(this,s[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return qr(t.sort(Uo))}}j(Hn,"id","time"),j(Hn,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function En(e,t,n){let i=0,s=e.length-1,o,r,a,l;n?(t>=e[i].pos&&t<=e[s].pos&&({lo:i,hi:s}=ce(e,"pos",t)),{pos:o,time:a}=e[i],{pos:r,time:l}=e[s]):(t>=e[i].time&&t<=e[s].time&&({lo:i,hi:s}=ce(e,"time",t)),{time:o,pos:a}=e[i],{time:r,pos:l}=e[s]);const c=r-o;return c?a+(l-a)*(t-o)/c:a}class Jo extends Hn{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=En(n,this.min),this._tableRange=En(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:i}=this,s=[],o=[];let r,a,l,c,h;for(r=0,a=t.length;r<a;++r)c=t[r],c>=n&&c<=i&&s.push(c);if(s.length<2)return[{time:n,pos:0},{time:i,pos:1}];for(r=0,a=s.length;r<a;++r)h=s[r+1],l=s[r-1],c=s[r],Math.round((h+l)/2)!==c&&o.push({time:c,pos:r/(a-1)});return o}_generate(){const t=this.min,n=this.max;let i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(n)||i.length===1)&&i.push(n),i.sort((s,o)=>s-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),i=this.getLabelTimestamps();return n.length&&i.length?t=this.normalize(n.concat(i)):t=n.length?n:i,t=this._cache.all=t,t}getDecimalForValue(t){return(En(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,i=this.getDecimalForPixel(t)/n.factor-n.end;return En(this._table,i*this._tableRange+this._minPos,!0)}}j(Jo,"id","timeseries"),j(Jo,"defaults",Hn.defaults);var se={},Zo;function sp(){if(Zo)return se;Zo=1,Object.defineProperty(se,"__esModule",{value:!0}),se.cartesianProductGenerator=se.cartesianProduct=void 0;function e(...i){if(!Array.isArray(i))throw new TypeError("Please, send an array.");const[s,o,...r]=i,a=n(s,o);return r.length?e(a,...r):a}se.cartesianProduct=e;function*t(...i){if(!Array.isArray(i))throw new TypeError("Please, send an array.");const[s,o,...r]=i,a=n(s,o);yield a,r.length&&(yield*t(a,...r))}se.cartesianProductGenerator=t;function n(i,s){const o=[];for(let r=0;r<i.length;r++){if(!s){o.push([i[r]]);continue}for(let a=0;a<s.length;a++)Array.isArray(i[r])?o.push([...i[r],s[a]]):o.push([i[r],s[a]])}return o}return se}var rs=sp();const op=function(e){let t=0;for(let i=0;i<e.length;i++)t=e.charCodeAt(i)+((t<<5)-t);let n="#";for(let i=0;i<3;i++){const o="00"+(t>>i*8&255).toString(16);n+=o.substring(o.length-2)}return n};function Sg(e,t=(n,i)=>{}){const n=new Map;for(const[i,s]of e){const o=new Map;for(const[r,a]of s){const l=new Map;for(const[c,h]of a){const d=t(r,h);if(d){l.set(c,{tooltip:d});continue}l.set(c,{})}o.set(r,l)}n.set(i,o)}return n}function kg(e){const t=new Map;return e.forEach(n=>{const i=t.get(n.nren);(!i||i.year<n.year)&&t.set(n.nren,n)}),Array.from(t.values())}function Mg(e){return e.match(/^[a-zA-Z]+:\/\//)?e:"https://"+e}const Cg=e=>{const t={};return!e.urls&&!e.url||(e.urls&&e.urls.forEach(n=>{t[n]=n}),e.url&&(t[e.url]=e.url)),t};function Pg(e){const t=new Map;return e.forEach(n=>{let i=t.get(n.nren);i||(i=new Map);let s=i.get(n.year);s||(s=[]),s.push(n),i.set(n.year,s),t.set(n.nren,i)}),t}function Re(e){const t=new Map;return e.forEach(n=>{let i=t.get(n.nren);i||(i=new Map),i.set(n.year,n),t.set(n.nren,i)}),t}function Og(e,t){const n=new Map;return e.forEach((i,s)=>{const o=new Map;Array.from(i.keys()).sort((a,l)=>l-a).forEach(a=>{const l=i.get(a),c=o.get(a)||{};t(c,l),Object.keys(c).length>0&&o.set(a,c)}),n.set(s,o)}),n}function Eg(e,t,n=!1){const i=new Map;return e.forEach(s=>{const o=a=>{let l=i.get(s.nren);l||(l=new Map);let c=l.get(a);c||(c=new Map),c.set(s.year,s),l.set(a,c),i.set(s.nren,l)};let r=s[t];typeof r=="boolean"&&(r=r?"True":"False"),n&&r==null&&(r=`${r}`),Array.isArray(r)?r.forEach(o):o(r)}),i}function Dg(e,t,n,i=!0,s){const o=new Map,r=(a,l,c)=>{a.forEach(h=>{let d=l?h[l]:c;typeof d=="boolean"&&(d=d?"True":"False");const f=h.nren,u=h.year,g=o.get(f)||new Map,m=g.get(u)||new Map,p=m.get(d)||{},b=h[c];if(b==null)return;const y=i?b:c,v=p[y]||{};v[`${b}`]=b,p[y]=v,m.set(d,p),g.set(u,m),o.set(f,g)})};if(n)for(const a of t)r(e,n,a);else for(const a of t)r(e,void 0,a);return o}const Rg=e=>{function t(){const d=(u,g,m)=>"#"+[u,g,m].map(p=>{const b=p.toString(16);return b.length===1?"0"+b:b}).join(""),f=new Map;return f.set("client_institutions",d(157,40,114)),f.set("commercial",d(241,224,79)),f.set("european_funding",d(219,42,76)),f.set("gov_public_bodies",d(237,141,24)),f.set("other",d(137,166,121)),f}const n=Re(e),i=t(),s=[...new Set(e.map(d=>d.year))].sort(),o=[...new Set(e.map(d=>d.nren))].sort(),r={client_institutions:"Client Institutions",commercial:"Commercial",european_funding:"European Funding",gov_public_bodies:"Government/Public Bodies",other:"Other"},a=Object.keys(r),l=rs.cartesianProduct(Object.keys(r),s).reduce((d,[f,u])=>{const g=`${f},${u}`;return d[g]={},d},{});return n.forEach((d,f)=>{d.forEach((u,g)=>{const m=a.map(b=>u[b]||0);if(m.reduce((b,y)=>b+y,0)!==0)for(const b of a){const y=`${b},${g}`,v=a.indexOf(b);l[y][f]=m[v]}})}),{datasets:Array.from(Object.entries(l)).map(([d,f])=>{const[u,g]=d.split(",");return{backgroundColor:i.get(u)||"black",label:r[u]+" ("+g+")",data:o.map(p=>f[p]),stack:g,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:u==a[0],formatter:function(p,b){return b.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(p){return p.chart.chartArea.width}}}}),labels:o.map(d=>d.toString())}};function Tg(e,t){const n=[...new Set(e.map(r=>r.year))].sort(),i=[...new Set(e.map(r=>r.nren))].sort(),s=Re(e);return{datasets:i.map(r=>{const a=op(r);return{backgroundColor:a,borderColor:a,data:n.map(l=>{const c=s.get(r);if(!c)return null;const h=c.get(l);return h?h[t]:null}),label:r,hidden:!1}}),labels:n.map(r=>r.toString())}}const Ag=(e,t,n)=>{let i;t?i=["Technical FTE","Non-technical FTE"]:i=["Permanent FTE","Subcontracted FTE"];const s={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},[o,r]=i,[a,l]=[s[o],s[r]];function c(p){const b=p[a],y=p[l],v=b+y,w=(b/v||0)*100,_=(y/v||0)*100,S={};return S[o]=Math.round(Math.floor(w*100))/100,S[r]=Math.round(Math.floor(_*100))/100,S}const h=Re(e),d=[n].sort(),f=[...new Set(e.map(p=>p.nren))].sort((p,b)=>p.localeCompare(b));return{datasets:rs.cartesianProduct(i,d).map(function([p,b]){let y="";return p==="Technical FTE"?y="rgba(40, 40, 250, 0.8)":p==="Permanent FTE"?y="rgba(159, 129, 235, 1)":p==="Subcontracted FTE"?y="rgba(173, 216, 229, 1)":p==="Non-technical FTE"&&(y="rgba(116, 216, 242, 0.54)"),{backgroundColor:y,label:`${p} (${b})`,data:f.map(v=>{const w=h.get(v).get(b);return w?c(w)[p]:0}),stack:b,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}),labels:f}},jg=(e,t)=>{const n=["Research & Education","Commodity"],i={"Research & Education":"r_and_e_percentage",Commodity:"commodity_percentage"},s=Re(e),o=[t].sort(),r=[...new Set(e.map(h=>h.nren))].sort((h,d)=>h.localeCompare(d));return{datasets:rs.cartesianProduct(n,o).map(function([h,d]){let f="";return h==="Research & Education"?f="rgba(40, 40, 250, 0.8)":h==="Commodity"&&(f="rgba(116, 216, 242, 0.54)"),{backgroundColor:f,label:`${h} (${d})`,data:r.map(u=>{const g=s.get(u).get(d);return g?g[i[h]]:0}),stack:d,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1}}),labels:r}},Lg=(e,t)=>{const n=["Permanent FTE","Subcontracted FTE"],i={"Technical FTE":"technical_fte","Non-technical FTE":"non_technical_fte","Permanent FTE":"permanent_fte","Subcontracted FTE":"subcontracted_fte"},[s,o]=n,[r,a]=[i[s],i[o]],l=Re(e),c=[...new Set(e.map(u=>u.nren))].sort((u,g)=>u.localeCompare(g));function h(u,g){return{backgroundColor:"rgba(219, 42, 76, 1)",label:`Number of FTEs (${u})`,data:c.map(p=>{const b=l.get(p).get(u);return b?(b[r]??0)+(b[a]??0):0}),stack:`${u}`,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(p,b){return b.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(p){return p.chart.chartArea.width}}}}return{datasets:t.sort().map(h),labels:c}},Ng=(e,t,n)=>{const i=Re(e),s=[...new Set(e.map(l=>l.nren))].sort((l,c)=>l.localeCompare(c)),o=[...new Set(e.map(l=>l.year))].sort();function r(l,c){return{backgroundColor:"rgba(219, 42, 76, 1)",label:`${n} (${l})`,data:s.map(d=>{const f=i.get(d).get(l);return f?f[t]??0:0}),stack:`${l}`,borderRadius:10,borderSkipped:!0,barPercentage:.8,borderWidth:.5,categoryPercentage:.8,hidden:!1,datalabels:{display:!0,formatter:function(d,f){return f.dataset.stack},font:{family:'"Open Sans", sans-serif',size:16,weight:"700"},anchor:"start",align:"end",offset:function(d){return d.chart.chartArea.width}}}}return{datasets:o.sort().map(r),labels:s}},rp=()=>{const e=St.c(13);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=x.jsx("h5",{children:"Organisation"}),n=x.jsx("h6",{className:"section-title",children:"Budget, Income and Billing"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=x.jsx(T,{to:"/budget",children:x.jsx("span",{children:"Budget of NRENs per Year"})}),e[2]=i):i=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx(T,{to:"/funding",children:x.jsx("span",{children:"Income Source of NRENs"})}),e[3]=s):s=e[3];let o,r,a;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=x.jsx(T,{to:"/charging",children:x.jsx("span",{children:"Charging Mechanism of NRENs"})}),r=x.jsx("hr",{className:"fake-divider"}),a=x.jsx("h6",{className:"section-title",children:"Staff and Projects"}),e[4]=o,e[5]=r,e[6]=a):(o=e[4],r=e[5],a=e[6]);let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=x.jsx(T,{to:"/employee-count",children:x.jsx("span",{children:"Number of NREN Employees"})}),e[7]=l):l=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=x.jsx(T,{to:"/roles",children:x.jsx("span",{children:"Roles of NREN employees (Technical v. Non-Technical)"})}),e[8]=c):c=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=x.jsx(T,{to:"/employment",children:x.jsx("span",{children:"Types of Employment within NRENs"})}),e[9]=h):h=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=x.jsx(T,{to:"/suborganisations",children:x.jsx("span",{children:"NREN Sub-Organisations"})}),e[10]=d):d=e[10];let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=x.jsx(T,{to:"/parentorganisation",children:x.jsx("span",{children:"NREN Parent Organisations"})}),e[11]=f):f=e[11];let u;return e[12]===Symbol.for("react.memo_cache_sentinel")?(u=x.jsxs(on,{children:[t,n,i,s,o,r,a,l,c,h,d,f,x.jsx(T,{to:"/ec-projects",children:x.jsx("span",{children:"NREN Involvement in European Commission Projects"})})]}),e[12]=u):u=e[12],u},ap=e=>{const t=St.c(41),{activeCategory:n}=e,i=Za();let s;t[0]!==n||t[1]!==i?(s=()=>i(n===J.Organisation?".":"/funding"),t[0]=n,t[1]=i,t[2]=s):s=t[2];const o=n===J.Organisation;let r;t[3]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx("span",{children:J.Organisation}),t[3]=r):r=t[3];let a;t[4]!==s||t[5]!==o?(a=x.jsx(Nt,{onClick:s,variant:"nav-box",active:o,children:r}),t[4]=s,t[5]=o,t[6]=a):a=t[6];let l;t[7]!==n||t[8]!==i?(l=()=>i(n===J.Policy?".":"/policy"),t[7]=n,t[8]=i,t[9]=l):l=t[9];const c=n===J.Policy;let h;t[10]===Symbol.for("react.memo_cache_sentinel")?(h=x.jsx("span",{children:J.Policy}),t[10]=h):h=t[10];let d;t[11]!==l||t[12]!==c?(d=x.jsx(Nt,{onClick:l,variant:"nav-box",active:c,children:h}),t[11]=l,t[12]=c,t[13]=d):d=t[13];let f;t[14]!==n||t[15]!==i?(f=()=>i(n===J.ConnectedUsers?".":"/institutions-urls"),t[14]=n,t[15]=i,t[16]=f):f=t[16];const u=n===J.ConnectedUsers;let g;t[17]===Symbol.for("react.memo_cache_sentinel")?(g=x.jsx("span",{children:J.ConnectedUsers}),t[17]=g):g=t[17];let m;t[18]!==u||t[19]!==f?(m=x.jsx(Nt,{onClick:f,variant:"nav-box",active:u,children:g}),t[18]=u,t[19]=f,t[20]=m):m=t[20];let p;t[21]!==n||t[22]!==i?(p=()=>i(n===J.Network?".":"/traffic-volume"),t[21]=n,t[22]=i,t[23]=p):p=t[23];const b=n===J.Network;let y;t[24]===Symbol.for("react.memo_cache_sentinel")?(y=x.jsx("span",{children:J.Network}),t[24]=y):y=t[24];let v;t[25]!==p||t[26]!==b?(v=x.jsx(Nt,{onClick:p,variant:"nav-box",active:b,children:y}),t[25]=p,t[26]=b,t[27]=v):v=t[27];let w;t[28]!==n||t[29]!==i?(w=()=>i(n===J.Services?".":"/network-services"),t[28]=n,t[29]=i,t[30]=w):w=t[30];const _=n===J.Services;let S;t[31]===Symbol.for("react.memo_cache_sentinel")?(S=x.jsx("span",{children:J.Services}),t[31]=S):S=t[31];let M;t[32]!==w||t[33]!==_?(M=x.jsx(Nt,{onClick:w,variant:"nav-box",active:_,children:S}),t[32]=w,t[33]=_,t[34]=M):M=t[34];let k;return t[35]!==m||t[36]!==v||t[37]!==M||t[38]!==a||t[39]!==d?(k=x.jsx(hr,{children:x.jsx(oe,{children:x.jsxs(Ai,{className:"navbox-bar gap-2 m-3",children:[a,d,m,v,M]})})}),t[35]=m,t[36]=v,t[37]=M,t[38]=a,t[39]=d,t[40]=k):k=t[40],k},lp=()=>{const e=St.c(13);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=x.jsx("h5",{children:"Standards and Policies"}),e[0]=t):t=e[0];let n,i;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=x.jsx(T,{to:"/policy",children:x.jsx("span",{children:"NREN Policies"})}),i=x.jsx("h6",{className:"section-title",children:"Standards"}),e[1]=n,e[2]=i):(n=e[1],i=e[2]);let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx(T,{to:"/audits",children:x.jsx("span",{children:"External and Internal Audits of Information Security Management Systems"})}),e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=x.jsx(T,{to:"/business-continuity",children:x.jsx("span",{children:"NREN Business Continuity Planning"})}),e[4]=o):o=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx(T,{to:"/central-procurement",children:x.jsx("span",{children:"Central Procurement of Software"})}),e[5]=r):r=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=x.jsx(T,{to:"/crisis-management",children:x.jsx("span",{children:"Crisis Management Procedures"})}),e[6]=a):a=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=x.jsx(T,{to:"/crisis-exercise",children:x.jsx("span",{children:"Crisis Exercises - NREN Operation and Participation"})}),e[7]=l):l=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=x.jsx(T,{to:"/security-control",children:x.jsx("span",{children:"Security Controls Used by NRENs"})}),e[8]=c):c=e[8];let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=x.jsx(T,{to:"/services-offered",children:x.jsx("span",{children:"Services Offered by NRENs by Types of Users"})}),e[9]=h):h=e[9];let d;e[10]===Symbol.for("react.memo_cache_sentinel")?(d=x.jsx(T,{to:"/corporate-strategy",children:x.jsx("span",{children:"NREN Corporate Strategies "})}),e[10]=d):d=e[10];let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=x.jsx(T,{to:"/service-level-targets",children:x.jsx("span",{children:"NRENs Offering Service Level Targets"})}),e[11]=f):f=e[11];let u;return e[12]===Symbol.for("react.memo_cache_sentinel")?(u=x.jsxs(on,{children:[t,n,i,s,o,r,a,l,c,h,d,f,x.jsx(T,{to:"/service-management-framework",children:x.jsx("span",{children:"NRENs Operating a Formal Service Management Framework"})})]}),e[12]=u):u=e[12],u},cp=()=>{const e=St.c(34);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=x.jsx("h5",{children:"Network"}),n=x.jsx("h6",{className:"section-title",children:"Connectivity"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=x.jsx(T,{to:"/traffic-volume",children:x.jsx("span",{children:"NREN Traffic - NREN Customers & External Networks"})}),e[2]=i):i=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx(T,{to:"/iru-duration",children:x.jsx("span",{children:"Average Duration of IRU leases of Fibre by NRENs"})}),e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=x.jsx(T,{to:"/fibre-light",children:x.jsx("span",{children:"Approaches to lighting NREN fibre networks"})}),e[4]=o):o=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx(T,{to:"/dark-fibre-lease",children:x.jsx("span",{children:"Kilometres of Leased Dark Fibre (National)"})}),e[5]=r):r=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=x.jsx(T,{to:"/dark-fibre-lease-international",children:x.jsx("span",{children:"Kilometres of Leased Dark Fibre (International)"})}),e[6]=a):a=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=x.jsx(T,{to:"/dark-fibre-installed",children:x.jsx("span",{children:"Kilometres of Installed Dark Fibre"})}),e[7]=l):l=e[7];let c,h,d;e[8]===Symbol.for("react.memo_cache_sentinel")?(h=x.jsx(T,{to:"/network-map",children:x.jsx("span",{children:"NREN Network Maps"})}),d=x.jsx("hr",{className:"fake-divider"}),c=x.jsx("h6",{className:"section-title",children:"Performance Monitoring & Management"}),e[8]=c,e[9]=h,e[10]=d):(c=e[8],h=e[9],d=e[10]);let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=x.jsx(T,{to:"/monitoring-tools",children:x.jsx("span",{children:"Tools for Monitoring or Troubleshooting the Network - Offered to Client Institutions"})}),e[11]=f):f=e[11];let u;e[12]===Symbol.for("react.memo_cache_sentinel")?(u=x.jsx(T,{to:"/pert-team",children:x.jsx("span",{children:"NRENs with Performance Enhancement Response Teams"})}),e[12]=u):u=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=x.jsx(T,{to:"/passive-monitoring",children:x.jsx("span",{children:"Methods for Passively Monitoring International Traffic"})}),e[13]=g):g=e[13];let m;e[14]===Symbol.for("react.memo_cache_sentinel")?(m=x.jsx(T,{to:"/traffic-stats",children:x.jsx("span",{children:"Traffic Statistics  "})}),e[14]=m):m=e[14];let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p=x.jsx(T,{to:"/weather-map",children:x.jsx("span",{children:"NREN Online Network Weather Maps "})}),e[15]=p):p=e[15];let b;e[16]===Symbol.for("react.memo_cache_sentinel")?(b=x.jsx(T,{to:"/certificate-providers",children:x.jsx("span",{children:"Certification Services used by NRENs"})}),e[16]=b):b=e[16];let y,v,w;e[17]===Symbol.for("react.memo_cache_sentinel")?(y=x.jsx(T,{to:"/siem-vendors",children:x.jsx("span",{children:"Vendors of SIEM/SOC systems used by NRENs"})}),v=x.jsx("hr",{className:"fake-divider"}),w=x.jsx("h6",{className:"section-title",children:"Alienwave"}),e[17]=y,e[18]=v,e[19]=w):(y=e[17],v=e[18],w=e[19]);let _;e[20]===Symbol.for("react.memo_cache_sentinel")?(_=x.jsx(T,{to:"/alien-wave",children:x.jsx("span",{children:"NREN Use of 3rd Party Alienwave/Lightpath Services"})}),e[20]=_):_=e[20];let S,M,k;e[21]===Symbol.for("react.memo_cache_sentinel")?(S=x.jsx(T,{to:"/alien-wave-internal",children:x.jsx("span",{children:"Internal NREN Use of Alien Waves"})}),M=x.jsx("hr",{className:"fake-divider"}),k=x.jsx("h6",{className:"section-title",children:"Capacity"}),e[21]=S,e[22]=M,e[23]=k):(S=e[21],M=e[22],k=e[23]);let P;e[24]===Symbol.for("react.memo_cache_sentinel")?(P=x.jsx(T,{to:"/capacity-largest-link",children:x.jsx("span",{children:"Capacity of the Largest Link in an NREN Network"})}),e[24]=P):P=e[24];let E;e[25]===Symbol.for("react.memo_cache_sentinel")?(E=x.jsx(T,{to:"/external-connections",children:x.jsx("span",{children:"NREN External IP Connections"})}),e[25]=E):E=e[25];let C;e[26]===Symbol.for("react.memo_cache_sentinel")?(C=x.jsx(T,{to:"/capacity-core-ip",children:x.jsx("span",{children:"NREN Core IP Capacity"})}),e[26]=C):C=e[26];let O;e[27]===Symbol.for("react.memo_cache_sentinel")?(O=x.jsx(T,{to:"/non-rne-peers",children:x.jsx("span",{children:"Number of Non-R&E Networks NRENs Peer With"})}),e[27]=O):O=e[27];let R,N,A;e[28]===Symbol.for("react.memo_cache_sentinel")?(R=x.jsx(T,{to:"/traffic-ratio",children:x.jsx("span",{children:"Types of traffic in NREN networks"})}),N=x.jsx("hr",{className:"fake-divider"}),A=x.jsx("h6",{className:"section-title",children:"Software-Defined Networking (SDN) & Network Function Virtualisation(NFV)"}),e[28]=R,e[29]=N,e[30]=A):(R=e[28],N=e[29],A=e[30]);let L;e[31]===Symbol.for("react.memo_cache_sentinel")?(L=x.jsx(T,{to:"/ops-automation",children:x.jsx("span",{children:"NREN Automation of Operational Processes"})}),e[31]=L):L=e[31];let I;e[32]===Symbol.for("react.memo_cache_sentinel")?(I=x.jsx(T,{to:"/network-automation",children:x.jsx("span",{children:"Network Tasks for which NRENs Use Automation  "})}),e[32]=I):I=e[32];let W;return e[33]===Symbol.for("react.memo_cache_sentinel")?(W=x.jsxs(on,{children:[t,n,i,s,o,r,a,l,h,d,c,f,u,g,m,p,b,y,v,w,_,S,M,k,P,E,C,O,R,N,A,L,I,x.jsx(T,{to:"/nfv",children:x.jsx("span",{children:"Kinds of Network Function Virtualisation used by NRENs"})})]}),e[33]=W):W=e[33],W},hp=()=>{const e=St.c(11);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=x.jsx("h6",{className:"section-title",children:"Connected Users"}),e[0]=t):t=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=x.jsx(T,{to:"/institutions-urls",children:x.jsx("span",{children:"Webpages Listing Institutions and Organisations Connected to NREN Networks"})}),e[1]=n):n=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=x.jsx(T,{to:"/connected-proportion",children:x.jsx("span",{children:"Proportion of Different Categories of Institutions Served by NRENs"})}),e[2]=i):i=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx(T,{to:"/connectivity-level",children:x.jsx("span",{children:"Level of IP Connectivity by Institution Type"})}),e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=x.jsx(T,{to:"/connection-carrier",children:x.jsx("span",{children:"Methods of Carrying IP Traffic to Users"})}),e[4]=o):o=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx(T,{to:"/connectivity-load",children:x.jsx("span",{children:"Connectivity Load"})}),e[5]=r):r=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=x.jsx(T,{to:"/connectivity-growth",children:x.jsx("span",{children:"Connectivity Growth"})}),e[6]=a):a=e[6];let l,c;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=x.jsx(T,{to:"/remote-campuses",children:x.jsx("span",{children:"NREN Connectivity to Remote Campuses in Other Countries"})}),c=x.jsx("h6",{className:"section-title",children:"Connected Users - Commercial"}),e[7]=l,e[8]=c):(l=e[7],c=e[8]);let h;e[9]===Symbol.for("react.memo_cache_sentinel")?(h=x.jsx(T,{to:"/commercial-charging-level",children:x.jsx("span",{children:"Commercial Charging Level"})}),e[9]=h):h=e[9];let d;return e[10]===Symbol.for("react.memo_cache_sentinel")?(d=x.jsxs(on,{children:[t,n,i,s,o,r,a,l,c,h,x.jsx(T,{to:"/commercial-connectivity",children:x.jsx("span",{children:"Commercial Connectivity"})})]}),e[10]=d):d=e[10],d},dp=()=>{const e=St.c(9);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=x.jsx("h5",{children:"Services"}),e[0]=t):t=e[0];let n;e[1]===Symbol.for("react.memo_cache_sentinel")?(n=x.jsx(T,{to:"/network-services",children:x.jsx("span",{children:"Network services"})}),e[1]=n):n=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=x.jsx(T,{to:"/isp-support-services",children:x.jsx("span",{children:"ISP support services"})}),e[2]=i):i=e[2];let s;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=x.jsx(T,{to:"/security-services",children:x.jsx("span",{children:"Security services"})}),e[3]=s):s=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=x.jsx(T,{to:"/identity-services",children:x.jsx("span",{children:"Identity services"})}),e[4]=o):o=e[4];let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=x.jsx(T,{to:"/collaboration-services",children:x.jsx("span",{children:"Collaboration services"})}),e[5]=r):r=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=x.jsx(T,{to:"/multimedia-services",children:x.jsx("span",{children:"Multimedia services"})}),e[6]=a):a=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=x.jsx(T,{to:"/storage-and-hosting-services",children:x.jsx("span",{children:"Storage and hosting services"})}),e[7]=l):l=e[7];let c;return e[8]===Symbol.for("react.memo_cache_sentinel")?(c=x.jsxs(on,{children:[t,n,i,s,o,r,a,l,x.jsx(T,{to:"/professional-services",children:x.jsx("span",{children:"Professional services"})})]}),e[8]=c):c=e[8],c};function fp(e,t){return e.map(n=>t.map(i=>{const s=n[i];return s===null?"":typeof s=="string"?`"${s.replace(/"/g,'""')}"`:s}).join(","))}function up(e){if(!e.length)return"";const t=Object.keys(e[0]),n=fp(e,t);return[t.join(","),...n].join(`\r
+`)}function pp(e,t="Sheet1"){const n=Qn.json_to_sheet(e),i=Qn.book_new();Qn.book_append_sheet(i,n,t);const s=il(i,{bookType:"xlsx",type:"binary"}),o=new ArrayBuffer(s.length),r=new Uint8Array(o);for(let a=0;a<s.length;a++)r[a]=s.charCodeAt(a)&255;return new Blob([o],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8"})}const Qo=({data:e,filename:t,exportType:n})=>{const i=()=>{let o,r,a;switch(n){case ye.EXCEL:{o=pp(e),r="xlsx",a="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8";break}case ye.CSV:default:{o=up(e),r="csv",a="text/csv;charset=UTF-8";break}}const l=new Blob([o],{type:a});t=t.endsWith(r)?t:`${t}.${r}`;const c=document.createElement("a");c.href=URL.createObjectURL(l),c.download=t,document.body.appendChild(c),c.click(),document.body.removeChild(c)};let s="downloadbutton";return n===ye.CSV?s+=" downloadcsv":n===ye.EXCEL&&(s+=" downloadexcel"),x.jsxs("button",{className:s,onClick:i,children:[n," ",x.jsx(ur,{})]})};function gp(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),i=n.createElement("base"),s=n.createElement("a");return n.head.appendChild(i),n.body.appendChild(s),t&&(i.href=t),s.href=e,s.href}const mp=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function It(e){const t=[];for(let n=0,i=e.length;n<i;n++)t.push(e[n]);return t}function Vn(e,t){const i=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return i?parseFloat(i.replace("px","")):0}function bp(e){const t=Vn(e,"border-left-width"),n=Vn(e,"border-right-width");return e.clientWidth+t+n}function xp(e){const t=Vn(e,"border-top-width"),n=Vn(e,"border-bottom-width");return e.clientHeight+t+n}function Ea(e,t={}){const n=t.width||bp(e),i=t.height||xp(e);return{width:n,height:i}}function yp(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const gt=16384;function _p(e){(e.width>gt||e.height>gt)&&(e.width>gt&&e.height>gt?e.width>e.height?(e.height*=gt/e.width,e.width=gt):(e.width*=gt/e.height,e.height=gt):e.width>gt?(e.height*=gt/e.width,e.width=gt):(e.width*=gt/e.height,e.height=gt))}function Yn(e){return new Promise((t,n)=>{const i=new Image;i.decode=()=>t(i),i.onload=()=>t(i),i.onerror=n,i.crossOrigin="anonymous",i.decoding="async",i.src=e})}async function vp(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function wp(e,t,n){const i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return s.setAttribute("width",`${t}`),s.setAttribute("height",`${n}`),s.setAttribute("viewBox",`0 0 ${t} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),s.appendChild(o),o.appendChild(e),vp(s)}const pt=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||pt(n,t)};function Sp(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function kp(e){return It(e).map(t=>{const n=e.getPropertyValue(t),i=e.getPropertyPriority(t);return`${t}: ${n}${i?" !important":""};`}).join(" ")}function Mp(e,t,n){const i=`.${e}:${t}`,s=n.cssText?Sp(n):kp(n);return document.createTextNode(`${i}{${s}}`)}function tr(e,t,n){const i=window.getComputedStyle(e,n),s=i.getPropertyValue("content");if(s===""||s==="none")return;const o=mp();try{t.className=`${t.className} ${o}`}catch{return}const r=document.createElement("style");r.appendChild(Mp(o,n,i)),t.appendChild(r)}function Cp(e,t){tr(e,t,":before"),tr(e,t,":after")}const er="application/font-woff",nr="image/jpeg",Pp={woff:er,woff2:er,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:nr,jpeg:nr,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Op(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function as(e){const t=Op(e).toLowerCase();return Pp[t]||""}function Ep(e){return e.split(/,/)[1]}function Ti(e){return e.search(/^(data:)/)!==-1}function Dp(e,t){return`data:${t};base64,${e}`}async function Da(e,t,n){const i=await fetch(e,t);if(i.status===404)throw new Error(`Resource "${i.url}" not found`);const s=await i.blob();return new Promise((o,r)=>{const a=new FileReader;a.onerror=r,a.onloadend=()=>{try{o(n({res:i,result:a.result}))}catch(l){r(l)}},a.readAsDataURL(s)})}const yi={};function Rp(e,t,n){let i=e.replace(/\?.*/,"");return n&&(i=e),/ttf|otf|eot|woff2?/i.test(i)&&(i=i.replace(/.*\//,"")),t?`[${t}]${i}`:i}async function ls(e,t,n){const i=Rp(e,t,n.includeQueryParams);if(yi[i]!=null)return yi[i];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let s;try{const o=await Da(e,n.fetchRequestInit,({res:r,result:a})=>(t||(t=r.headers.get("Content-Type")||""),Ep(a)));s=Dp(o,t)}catch(o){s=n.imagePlaceholder||"";let r=`Failed to fetch resource: ${e}`;o&&(r=typeof o=="string"?o:o.message),r&&console.warn(r)}return yi[i]=s,s}async function Tp(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):Yn(t)}async function Ap(e,t){if(e.currentSrc){const o=document.createElement("canvas"),r=o.getContext("2d");o.width=e.clientWidth,o.height=e.clientHeight,r==null||r.drawImage(e,0,0,o.width,o.height);const a=o.toDataURL();return Yn(a)}const n=e.poster,i=as(n),s=await ls(n,i,t);return Yn(s)}async function jp(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await Gn(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function Lp(e,t){return pt(e,HTMLCanvasElement)?Tp(e):pt(e,HTMLVideoElement)?Ap(e,t):pt(e,HTMLIFrameElement)?jp(e):e.cloneNode(!1)}const Np=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function Ip(e,t,n){var i,s;let o=[];return Np(e)&&e.assignedNodes?o=It(e.assignedNodes()):pt(e,HTMLIFrameElement)&&(!((i=e.contentDocument)===null||i===void 0)&&i.body)?o=It(e.contentDocument.body.childNodes):o=It(((s=e.shadowRoot)!==null&&s!==void 0?s:e).childNodes),o.length===0||pt(e,HTMLVideoElement)||await o.reduce((r,a)=>r.then(()=>Gn(a,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function Fp(e,t){const n=t.style;if(!n)return;const i=window.getComputedStyle(e);i.cssText?(n.cssText=i.cssText,n.transformOrigin=i.transformOrigin):It(i).forEach(s=>{let o=i.getPropertyValue(s);s==="font-size"&&o.endsWith("px")&&(o=`${Math.floor(parseFloat(o.substring(0,o.length-2)))-.1}px`),pt(e,HTMLIFrameElement)&&s==="display"&&o==="inline"&&(o="block"),s==="d"&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),n.setProperty(s,o,i.getPropertyPriority(s))})}function $p(e,t){pt(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),pt(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function zp(e,t){if(pt(e,HTMLSelectElement)){const n=t,i=Array.from(n.children).find(s=>e.value===s.getAttribute("value"));i&&i.setAttribute("selected","")}}function Bp(e,t){return pt(t,Element)&&(Fp(e,t),Cp(e,t),$p(e,t),zp(e,t)),t}async function Wp(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const i={};for(let o=0;o<n.length;o++){const a=n[o].getAttribute("xlink:href");if(a){const l=e.querySelector(a),c=document.querySelector(a);!l&&c&&!i[a]&&(i[a]=await Gn(c,t,!0))}}const s=Object.values(i);if(s.length){const o="http://www.w3.org/1999/xhtml",r=document.createElementNS(o,"svg");r.setAttribute("xmlns",o),r.style.position="absolute",r.style.width="0",r.style.height="0",r.style.overflow="hidden",r.style.display="none";const a=document.createElementNS(o,"defs");r.appendChild(a);for(let l=0;l<s.length;l++)a.appendChild(s[l]);e.appendChild(r)}return e}async function Gn(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(i=>Lp(i,t)).then(i=>Ip(e,i,t)).then(i=>Bp(e,i)).then(i=>Wp(i,t))}const Ra=/url\((['"]?)([^'"]+?)\1\)/g,Hp=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Vp=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Yp(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function Up(e){const t=[];return e.replace(Ra,(n,i,s)=>(t.push(s),n)),t.filter(n=>!Ti(n))}async function Xp(e,t,n,i,s){try{const o=n?gp(t,n):t,r=as(t);let a;return s||(a=await ls(o,r,i)),e.replace(Yp(t),`$1${a}$3`)}catch{}return e}function Kp(e,{preferredFontFormat:t}){return t?e.replace(Vp,n=>{for(;;){const[i,,s]=Hp.exec(n)||[];if(!s)return"";if(s===t)return`src: ${i};`}}):e}function Ta(e){return e.search(Ra)!==-1}async function Aa(e,t,n){if(!Ta(e))return e;const i=Kp(e,n);return Up(i).reduce((o,r)=>o.then(a=>Xp(a,r,t,n)),Promise.resolve(i))}async function Dn(e,t,n){var i;const s=(i=t.style)===null||i===void 0?void 0:i.getPropertyValue(e);if(s){const o=await Aa(s,null,n);return t.style.setProperty(e,o,t.style.getPropertyPriority(e)),!0}return!1}async function qp(e,t){await Dn("background",e,t)||await Dn("background-image",e,t),await Dn("mask",e,t)||await Dn("mask-image",e,t)}async function Gp(e,t){const n=pt(e,HTMLImageElement);if(!(n&&!Ti(e.src))&&!(pt(e,SVGImageElement)&&!Ti(e.href.baseVal)))return;const i=n?e.src:e.href.baseVal,s=await ls(i,as(i),t);await new Promise((o,r)=>{e.onload=o,e.onerror=r;const a=e;a.decode&&(a.decode=o),a.loading==="lazy"&&(a.loading="eager"),n?(e.srcset="",e.src=s):e.href.baseVal=s})}async function Jp(e,t){const i=It(e.childNodes).map(s=>ja(s,t));await Promise.all(i).then(()=>e)}async function ja(e,t){pt(e,Element)&&(await qp(e,t),await Gp(e,t),await Jp(e,t))}function Zp(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const i=t.style;return i!=null&&Object.keys(i).forEach(s=>{n[s]=i[s]}),e}const ir={};async function sr(e){let t=ir[e];if(t!=null)return t;const i=await(await fetch(e)).text();return t={url:e,cssText:i},ir[e]=t,t}async function or(e,t){let n=e.cssText;const i=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map(async r=>{let a=r.replace(i,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),Da(a,t.fetchRequestInit,({result:l})=>(n=n.replace(r,`url(${l})`),[r,l]))});return Promise.all(o).then(()=>n)}function rr(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let i=e.replace(n,"");const s=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=s.exec(i);if(l===null)break;t.push(l[0])}i=i.replace(s,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,r="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",a=new RegExp(r,"gi");for(;;){let l=o.exec(i);if(l===null){if(l=a.exec(i),l===null)break;o.lastIndex=a.lastIndex}else a.lastIndex=o.lastIndex;t.push(l[0])}return t}async function Qp(e,t){const n=[],i=[];return e.forEach(s=>{if("cssRules"in s)try{It(s.cssRules||[]).forEach((o,r)=>{if(o.type===CSSRule.IMPORT_RULE){let a=r+1;const l=o.href,c=sr(l).then(h=>or(h,t)).then(h=>rr(h).forEach(d=>{try{s.insertRule(d,d.startsWith("@import")?a+=1:s.cssRules.length)}catch(f){console.error("Error inserting rule from remote css",{rule:d,error:f})}})).catch(h=>{console.error("Error loading remote css",h.toString())});i.push(c)}})}catch(o){const r=e.find(a=>a.href==null)||document.styleSheets[0];s.href!=null&&i.push(sr(s.href).then(a=>or(a,t)).then(a=>rr(a).forEach(l=>{r.insertRule(l,s.cssRules.length)})).catch(a=>{console.error("Error loading remote stylesheet",a)})),console.error("Error inlining remote css file",o)}}),Promise.all(i).then(()=>(e.forEach(s=>{if("cssRules"in s)try{It(s.cssRules||[]).forEach(o=>{n.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${s.href}`,o)}}),n))}function tg(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Ta(t.style.getPropertyValue("src")))}async function eg(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=It(e.ownerDocument.styleSheets),i=await Qp(n,t);return tg(i)}async function ng(e,t){const n=await eg(e,t);return(await Promise.all(n.map(s=>{const o=s.parentStyleSheet?s.parentStyleSheet.href:null;return Aa(s.cssText,o,t)}))).join(`
+`)}async function ig(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await ng(e,t);if(n){const i=document.createElement("style"),s=document.createTextNode(n);i.appendChild(s),e.firstChild?e.insertBefore(i,e.firstChild):e.appendChild(i)}}async function La(e,t={}){const{width:n,height:i}=Ea(e,t),s=await Gn(e,t,!0);return await ig(s,t),await ja(s,t),Zp(s,t),await wp(s,n,i)}async function Na(e,t={}){const{width:n,height:i}=Ea(e,t),s=await La(e,t),o=await Yn(s),r=document.createElement("canvas"),a=r.getContext("2d"),l=t.pixelRatio||yp(),c=t.canvasWidth||n,h=t.canvasHeight||i;return r.width=c*l,r.height=h*l,t.skipAutoScale||_p(r),r.style.width=`${c}`,r.style.height=`${h}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,r.width,r.height)),a.drawImage(o,0,0,r.width,r.height),r}async function sg(e,t={}){return(await Na(e,t)).toDataURL()}async function og(e,t={}){return(await Na(e,t)).toDataURL("image/jpeg",t.quality||1)}const rg=e=>{const t=St.c(17),{filename:n}=e,i=D.useContext(dr),[s,o]=D.useState(!1),r=D.useRef(null);let a;t[0]!==i||t[1]!==n?(a=async v=>{if(i!=null&&i.current){o(!1);const w={transform:"scale(1)","transform-origin":"top left",background:"white"};let _;t:switch(v){case me.JPEG:{_=await og(i.current,{quality:.95,style:w});break t}case me.SVG:{_=await La(i.current,{style:w});break t}case me.PNG:default:_=await sg(i.current,{style:w})}const S=document.createElement("a");S.href=typeof _=="string"?_:URL.createObjectURL(_),S.download=`${n}.${v}`,document.body.appendChild(S),S.click(),document.body.removeChild(S)}},t[0]=i,t[1]=n,t[2]=a):a=t[2];const l=a;let c;t[3]!==s?(c=()=>{o(!s)},t[3]=s,t[4]=c):c=t[4];const h=c;let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=v=>{r.current&&!r.current.contains(v.target)&&o(!1)},t[5]=d):d=t[5];const f=d;let u,g;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=()=>(document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}),g=[],t[6]=u,t[7]=g):(u=t[6],g=t[7]),D.useEffect(u,g);let m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m=x.jsx(ur,{}),t[8]=m):m=t[8];let p;t[9]!==h?(p=x.jsxs("button",{className:"downloadbutton downloadimage",onClick:h,children:["IMAGE ",m]}),t[9]=h,t[10]=p):p=t[10];let b;t[11]!==l||t[12]!==s?(b=s&&x.jsxs("div",{className:"image-options",children:[x.jsx("div",{className:"imageoption downloadpng",onClick:()=>l(me.PNG),children:x.jsx("span",{children:"PNG"})}),x.jsx("div",{className:"imageoption downloadjpeg",onClick:()=>l(me.JPEG),children:x.jsx("span",{children:"JPEG"})}),x.jsx("div",{className:"imageoption downloadsvg",onClick:()=>l(me.SVG),children:x.jsx("span",{children:"SVG"})})]}),t[11]=l,t[12]=s,t[13]=b):b=t[13];let y;return t[14]!==p||t[15]!==b?(y=x.jsxs("div",{className:"image-dropdown",ref:r,children:[p,b]}),t[14]=p,t[15]=b,t[16]=y):y=t[16],y},ag=e=>{const t=St.c(12),{data:n,filename:i}=e,s=`${i}.csv`;let o;t[0]!==n||t[1]!==s?(o=x.jsx(Qo,{data:n,filename:s,exportType:ye.CSV}),t[0]=n,t[1]=s,t[2]=o):o=t[2];const r=`${i}.xlsx`;let a;t[3]!==n||t[4]!==r?(a=x.jsx(Qo,{data:n,filename:r,exportType:ye.EXCEL}),t[3]=n,t[4]=r,t[5]=a):a=t[5];let l;t[6]!==i?(l=x.jsx(rg,{filename:i}),t[6]=i,t[7]=l):l=t[7];let c;return t[8]!==o||t[9]!==a||t[10]!==l?(c=x.jsxs("div",{className:"downloadcontainer",children:[o,a,l]}),t[8]=o,t[9]=a,t[10]=l,t[11]=c):c=t[11],c};Pt.defaults.font.size=16;Pt.defaults.font.family="Open Sans";Pt.defaults.font.weight=700;function Ig(e){const t=St.c(47),{title:n,description:i,filter:s,children:o,category:r,data:a,filename:l}=e,{preview:c,setPreview:h}=D.useContext(Qa),d=window.location.origin+window.location.pathname,{trackPageView:f}=tl();let u,g;t[0]!==n||t[1]!==f?(u=()=>{f({documentTitle:n})},g=[f,n],t[0]=n,t[1]=f,t[2]=u,t[3]=g):(u=t[2],g=t[3]),D.useEffect(u,g);let m;t[4]!==r?(m=r===J.Organisation&&x.jsx(rp,{}),t[4]=r,t[5]=m):m=t[5];let p;t[6]!==r?(p=r===J.Policy&&x.jsx(lp,{}),t[6]=r,t[7]=p):p=t[7];let b;t[8]!==r?(b=r===J.Network&&x.jsx(cp,{}),t[8]=r,t[9]=b):b=t[9];let y;t[10]!==r?(y=r===J.ConnectedUsers&&x.jsx(hp,{}),t[10]=r,t[11]=y):y=t[11];let v;t[12]!==r?(v=r===J.Services&&x.jsx(dp,{}),t[12]=r,t[13]=v):v=t[13];let w;t[14]===Symbol.for("react.memo_cache_sentinel")?(w=x.jsx(sl,{type:"data"}),t[14]=w):w=t[14];let _;t[15]!==c||t[16]!==h?(_=c&&x.jsx(oe,{className:"preview-banner",children:x.jsxs("span",{children:["You are viewing a preview of the website which includes pre-published survey data. ",x.jsx(el,{to:d,onClick:()=>h(!1),children:"Click here"})," to deactivate preview mode."]})}),t[15]=c,t[16]=h,t[17]=_):_=t[17];let S;t[18]!==r?(S=x.jsx(ap,{activeCategory:r}),t[18]=r,t[19]=S):S=t[19];let M;t[20]!==n?(M=x.jsx(oe,{children:x.jsx("h3",{className:"m-1",children:n})}),t[20]=n,t[21]=M):M=t[21];let k;t[22]!==i?(k=x.jsx(oe,{children:x.jsx("p",{className:"p-md-4",children:i})}),t[22]=i,t[23]=k):k=t[23];let P;t[24]===Symbol.for("react.memo_cache_sentinel")?(P={position:"relative"},t[24]=P):P=t[24];let E;t[25]!==a||t[26]!==l?(E=x.jsx(oe,{align:"right",style:P,children:x.jsx(ag,{data:a,filename:l})}),t[25]=a,t[26]=l,t[27]=E):E=t[27];let C;t[28]!==s?(C=x.jsx(oe,{children:s}),t[28]=s,t[29]=C):C=t[29];let O;t[30]!==o?(O=x.jsx(oe,{children:o}),t[30]=o,t[31]=O):O=t[31];let R;t[32]!==M||t[33]!==k||t[34]!==E||t[35]!==C||t[36]!==O?(R=x.jsxs(hr,{className:"mb-5 grow",children:[M,k,E,C,O]}),t[32]=M,t[33]=k,t[34]=E,t[35]=C,t[36]=O,t[37]=R):R=t[37];let N;return t[38]!==S||t[39]!==R||t[40]!==m||t[41]!==p||t[42]!==b||t[43]!==y||t[44]!==v||t[45]!==_?(N=x.jsxs(x.Fragment,{children:[m,p,b,y,v,w,_,S,R]}),t[38]=S,t[39]=R,t[40]=m,t[41]=p,t[42]=b,t[43]=y,t[44]=v,t[45]=_,t[46]=N):N=t[46],N}function Fg(e){const t=St.c(81),{filterOptions:n,filterSelection:i,setFilterSelection:s,max1year:o,coloredYears:r}=e,a=o===void 0?!1:o,l=r===void 0?!1:r,[c,h]=D.useState(!0),{nrens:d}=D.useContext(nl);let f,u;if(t[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{const H=()=>h(window.innerWidth>=992);return window.addEventListener("resize",H),()=>{window.removeEventListener("resize",H)}},u=[],t[0]=f,t[1]=u):(f=t[0],u=t[1]),D.useEffect(f,u),a&&i.selectedYears.length>1){const H=Math.max(...i.selectedYears);s({selectedYears:[H],selectedNrens:[...i.selectedNrens]})}let g;t[2]!==i.selectedNrens||t[3]!==i.selectedYears||t[4]!==s?(g=H=>{i.selectedNrens.includes(H)?s({selectedYears:[...i.selectedYears],selectedNrens:i.selectedNrens.filter(nt=>nt!==H)}):s({selectedYears:[...i.selectedYears],selectedNrens:[...i.selectedNrens,H]})},t[2]=i.selectedNrens,t[3]=i.selectedYears,t[4]=s,t[5]=g):g=t[5];const m=g;let p;t[6]!==i.selectedNrens||t[7]!==i.selectedYears||t[8]!==a||t[9]!==s?(p=H=>{i.selectedYears.includes(H)?s({selectedYears:i.selectedYears.filter(nt=>nt!==H),selectedNrens:[...i.selectedNrens]}):s({selectedYears:a?[H]:[...i.selectedYears,H],selectedNrens:[...i.selectedNrens]})},t[6]=i.selectedNrens,t[7]=i.selectedYears,t[8]=a,t[9]=s,t[10]=p):p=t[10];const b=p;let y;t[11]!==n.availableNrens||t[12]!==i.selectedYears||t[13]!==s?(y=()=>{s({selectedYears:[...i.selectedYears],selectedNrens:n.availableNrens.map(hg)})},t[11]=n.availableNrens,t[12]=i.selectedYears,t[13]=s,t[14]=y):y=t[14];const v=y;let w;t[15]!==i.selectedYears||t[16]!==s?(w=()=>{s({selectedYears:[...i.selectedYears],selectedNrens:[]})},t[15]=i.selectedYears,t[16]=s,t[17]=w):w=t[17];const _=w,S=c?3:2,M=Math.ceil(d.length/S);let k,P,E,C,O,R,N,A,L,I;if(t[18]!==n.availableNrens||t[19]!==i.selectedNrens||t[20]!==m||t[21]!==S||t[22]!==M||t[23]!==d){const H=Array.from(Array(S),cg);d.sort(lg).forEach((Zt,Qt)=>{const ct=Math.floor(Qt/M);H[ct].push(Zt)});let nt;t[34]!==n.availableNrens?(nt=Zt=>n.availableNrens.find(ct=>ct.name===Zt.name)!==void 0,t[34]=n.availableNrens,t[35]=nt):nt=t[35];const Te=nt;E=ys,L=3,P=ni,R="outside",N="m-3",t[36]===Symbol.for("react.memo_cache_sentinel")?(A=x.jsx(ni.Toggle,{id:"nren-dropdown-toggle",variant:"compendium",children:"Select NRENs    "}),t[36]=A):A=t[36],k=ni.Menu,t[37]===Symbol.for("react.memo_cache_sentinel")?(O={borderRadius:0},t[37]=O):O=t[37],I="d-flex fit-max-content mt-4 mx-3";let zt;t[38]!==i.selectedNrens||t[39]!==m||t[40]!==Te?(zt=(Zt,Qt)=>x.jsx("div",{className:"flex-fill",children:Zt.map(ct=>x.jsx("div",{className:"filter-dropdown-item flex-fill py-1 px-3",children:x.jsxs(Zn.Check,{type:"checkbox",children:[x.jsx(Zn.Check.Input,{id:ct.name,readOnly:!0,type:"checkbox",onClick:()=>m(ct.name),checked:i.selectedNrens.includes(ct.name),className:"nren-checkbox",disabled:!Te(ct)}),x.jsxs(Zn.Check.Label,{htmlFor:ct.name,className:"nren-checkbox-label",children:[ct.name," ",x.jsxs("span",{style:{fontWeight:"lighter"},children:["(",ct.country,")"]})]})]})},ct.name))},Qt),t[38]=i.selectedNrens,t[39]=m,t[40]=Te,t[41]=zt):zt=t[41],C=H.map(zt),t[18]=n.availableNrens,t[19]=i.selectedNrens,t[20]=m,t[21]=S,t[22]=M,t[23]=d,t[24]=k,t[25]=P,t[26]=E,t[27]=C,t[28]=O,t[29]=R,t[30]=N,t[31]=A,t[32]=L,t[33]=I}else k=t[24],P=t[25],E=t[26],C=t[27],O=t[28],R=t[29],N=t[30],A=t[31],L=t[32],I=t[33];let W;t[42]!==C||t[43]!==I?(W=x.jsx("div",{className:I,children:C}),t[42]=C,t[43]=I,t[44]=W):W=t[44];let $;t[45]!==v?($=x.jsx(Nt,{variant:"compendium",className:"flex-fill",onClick:v,children:"Select all NRENs"}),t[45]=v,t[46]=$):$=t[46];let B;t[47]!==_?(B=x.jsx(Nt,{variant:"compendium",className:"flex-fill",onClick:_,children:"Unselect all NRENs"}),t[47]=_,t[48]=B):B=t[48];let et;t[49]!==$||t[50]!==B?(et=x.jsxs("div",{className:"d-flex fit-max-content gap-2 mx-4 my-3",children:[$,B]}),t[49]=$,t[50]=B,t[51]=et):et=t[51];let tt;t[52]!==k||t[53]!==O||t[54]!==W||t[55]!==et?(tt=x.jsxs(k,{style:O,children:[W,et]}),t[52]=k,t[53]=O,t[54]=W,t[55]=et,t[56]=tt):tt=t[56];let it;t[57]!==P||t[58]!==R||t[59]!==N||t[60]!==A||t[61]!==tt?(it=x.jsxs(P,{autoClose:R,className:N,children:[A,tt]}),t[57]=P,t[58]=R,t[59]=N,t[60]=A,t[61]=tt,t[62]=it):it=t[62];let X;t[63]!==E||t[64]!==L||t[65]!==it?(X=x.jsx(E,{xs:L,children:it}),t[63]=E,t[64]=L,t[65]=it,t[66]=X):X=t[66];let K;if(t[67]!==l||t[68]!==n.availableYears||t[69]!==i.selectedYears||t[70]!==b){let H;t[72]!==l||t[73]!==i.selectedYears||t[74]!==b?(H=nt=>x.jsx(Nt,{variant:l?"compendium-year-"+nt%9:"compendium-year",active:i.selectedYears.includes(nt),onClick:()=>b(nt),children:nt},nt),t[72]=l,t[73]=i.selectedYears,t[74]=b,t[75]=H):H=t[75],K=n.availableYears.sort().map(H),t[67]=l,t[68]=n.availableYears,t[69]=i.selectedYears,t[70]=b,t[71]=K}else K=t[71];let G;t[76]!==K?(G=x.jsx(ys,{children:x.jsx(Ai,{className:"d-flex justify-content-end gap-2 m-3",children:K})}),t[76]=K,t[77]=G):G=t[77];let Rt;return t[78]!==X||t[79]!==G?(Rt=x.jsxs(x.Fragment,{children:[X,G]}),t[78]=X,t[79]=G,t[80]=Rt):Rt=t[80],Rt}function lg(e,t){return e.name.localeCompare(t.name)}function cg(){return[]}function hg(e){return e.name}const $g=e=>{const t=St.c(3),{children:n}=e,i=D.useContext(dr);let s;return t[0]!==n||t[1]!==i?(s=x.jsx("div",{ref:i,children:n}),t[0]=n,t[1]=i,t[2]=s):s=t[2],s};function ar(e){const t=new Set,n=new Map;return e.forEach(i=>{t.add(i.year),n.set(i.nren,{name:i.nren,country:i.nren_country})}),{years:t,nrens:n}}function zg(e,t,n){const i=St.c(14),s=n===void 0?fg:n;let o;i[0]===Symbol.for("react.memo_cache_sentinel")?(o=[],i[0]=o):o=i[0];const[r,a]=D.useState(o),l=ol(),c=e+(l?"?preview":"");let h;i[1]!==c||i[2]!==t||i[3]!==s?(h=()=>{fetch(c).then(dg).then(b=>{const y=b.filter(s);a(y);const{years:v,nrens:w}=ar(y);t(_=>{const M=_.selectedYears.filter(E=>v.has(E)).length?_.selectedYears:[Math.max(...v)],P=_.selectedNrens.filter(E=>w.has(E)).length?_.selectedNrens:[...w.keys()];return{selectedYears:M,selectedNrens:P}})})},i[1]=c,i[2]=t,i[3]=s,i[4]=h):h=i[4];let d;i[5]!==c||i[6]!==t?(d=[c,t],i[5]=c,i[6]=t,i[7]=d):d=i[7],D.useEffect(h,d);let f,u;i[8]!==r?(u=ar(r),i[8]=r,i[9]=u):u=i[9],f=u;const{years:g,nrens:m}=f;let p;return i[10]!==r||i[11]!==m||i[12]!==g?(p={data:r,years:g,nrens:m},i[10]=r,i[11]=m,i[12]=g,i[13]=p):p=i[13],p}function dg(e){return e.json()}function fg(){return!0}export{q as A,xi as B,Pt as C,Ig as D,wt as E,Fg as F,F as G,U as H,Y as I,Cn as J,V as K,Yo as L,z as M,jg as N,gi as P,Ho as a,Pn as b,wg as c,_g as d,Tg as e,$g as f,Eg as g,Pg as h,Og as i,Rg as j,Re as k,Ag as l,Lg as m,Sg as n,Ng as o,vg as p,kg as q,Dg as r,Cg as s,di as t,zg as u,hi as v,Mg as w,Ze as x,lt as y,xn as z};
diff --git a/compendium_v2/static/xlsx-CxqzP9DR.js b/compendium_v2/static/xlsx-CxqzP9DR.js
new file mode 100644
index 0000000000000000000000000000000000000000..473e8eeed7306e665d3ec347246c98296ac687e0
--- /dev/null
+++ b/compendium_v2/static/xlsx-CxqzP9DR.js
@@ -0,0 +1,95 @@
+import{a as Jn,r as jt,j as xr,R as Ki,L as zi,f as Yi,A as $i}from"./main-BIBsTO5W.js";function Hu(e){const t=Jn.c(9),{to:r,children:n}=e,a=window.location.pathname===r,i=jt.useRef(null);let s,f;t[0]!==a?(s=()=>{a&&i.current&&i.current.scrollIntoView({behavior:"smooth",block:"center"})},f=[a],t[0]=a,t[1]=s,t[2]=f):(s=t[1],f=t[2]),jt.useEffect(s,f);let o;t[3]!==n||t[4]!==a?(o=a?xr.jsx("b",{children:n}):n,t[3]=n,t[4]=a,t[5]=o):o=t[5];let l;return t[6]!==o||t[7]!==r?(l=xr.jsx(Ki,{children:xr.jsx(zi,{to:r,className:"link-text-underline",ref:i,children:o})}),t[6]=o,t[7]=r,t[8]=l):l=t[8],l}const Gu=e=>{const t=Jn.c(23),{children:r,survey:n}=e,[a,i]=jt.useState(!1);let s;t[0]!==a?(s=M=>{M.stopPropagation(),M.preventDefault(),i(!a)},t[0]=a,t[1]=s):s=t[1];const f=s;let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=M=>{M.target.closest("#sidebar")||M.target.closest(".toggle-btn")||i(!1)},t[2]=o):o=t[2];const l=o;let c;t[3]===Symbol.for("react.memo_cache_sentinel")?(c=()=>(document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}),t[3]=c):c=t[3],jt.useEffect(c);let d;t[4]!==a||t[5]!==n?(d=[],a||d.push("no-sidebar"),n&&d.push("survey"),t[4]=a,t[5]=n,t[6]=d):d=t[6];const x=d.join(" ");let v;t[7]!==r?(v=xr.jsx("div",{className:"menu-items",children:r}),t[7]=r,t[8]=v):v=t[8];let _;t[9]!==x||t[10]!==v?(_=xr.jsx("nav",{className:x,id:"sidebar",children:v}),t[9]=x,t[10]=v,t[11]=_):_=t[11];const u=`toggle-btn${n?"-survey":""}`;let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=xr.jsx("span",{children:"MENU"}),t[12]=g):g=t[12];let C;t[13]!==a||t[14]!==f?(C=xr.jsxs("div",{className:"toggle-btn-wrapper",children:[g," ",a?xr.jsx(Yi,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:f}):xr.jsx($i,{style:{color:"white",paddingBottom:"3px",scale:"1.3"},onClick:f})]}),t[13]=a,t[14]=f,t[15]=C):C=t[15];let O;t[16]!==u||t[17]!==C||t[18]!==f?(O=xr.jsx("div",{className:u,onClick:f,children:C}),t[16]=u,t[17]=C,t[18]=f,t[19]=O):O=t[19];let y;return t[20]!==O||t[21]!==_?(y=xr.jsxs("div",{className:"sidebar-wrapper",children:[_,O]}),t[20]=O,t[21]=_,t[22]=y):y=t[22],y};/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Kt={};Kt.version="0.18.5";var Zn=1252,Ji=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],qn=function(e){Ji.indexOf(e)!=-1&&(Zn=e)};function Zi(){qn(1252)}var wt=function(e){qn(e)};function qi(){wt(1200),Zi()}var Bt=function(t){return String.fromCharCode(t)},on=function(t){return String.fromCharCode(t)},cn,Ir="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function St(e){for(var t="",r=0,n=0,a=0,i=0,s=0,f=0,o=0,l=0;l<e.length;)r=e.charCodeAt(l++),i=r>>2,n=e.charCodeAt(l++),s=(r&3)<<4|n>>4,a=e.charCodeAt(l++),f=(n&15)<<2|a>>6,o=a&63,isNaN(n)?f=o=64:isNaN(a)&&(o=64),t+=Ir.charAt(i)+Ir.charAt(s)+Ir.charAt(f)+Ir.charAt(o);return t}function Cr(e){var t="",r=0,n=0,a=0,i=0,s=0,f=0,o=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)i=Ir.indexOf(e.charAt(l++)),s=Ir.indexOf(e.charAt(l++)),r=i<<2|s>>4,t+=String.fromCharCode(r),f=Ir.indexOf(e.charAt(l++)),n=(s&15)<<4|f>>2,f!==64&&(t+=String.fromCharCode(n)),o=Ir.indexOf(e.charAt(l++)),a=(f&3)<<6|o,o!==64&&(t+=String.fromCharCode(a));return t}var ue=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Dr=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function Gr(e){return ue?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function hn(e){return ue?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var vr=function(t){return ue?Dr(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function s0(e){if(typeof ArrayBuffer>"u")return vr(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function Dt(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function Qi(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var be=ue?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:Dr(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),a=0;for(t=0,r=0;t<e.length;r+=a,++t)if(a=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))};function es(e){for(var t=[],r=0,n=e.length+250,a=Gr(e.length+255),i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s<128)a[r++]=s;else if(s<2048)a[r++]=192|s>>6&31,a[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var f=e.charCodeAt(++i)&1023;a[r++]=240|s>>8&7,a[r++]=128|s>>2&63,a[r++]=128|f>>6&15|(s&3)<<4,a[r++]=128|f&63}else a[r++]=224|s>>12&15,a[r++]=128|s>>6&63,a[r++]=128|s&63;r>n&&(t.push(a.slice(0,r)),r=0,a=Gr(65535),n=65530)}return t.push(a.slice(0,r)),be(t)}var pt=/\u0000/g,Ut=/[\u0001-\u0006]/g;function tt(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function dr(e,t){var r=""+e;return r.length>=t?r:Fe("0",t-r.length)+r}function I0(e,t){var r=""+e;return r.length>=t?r:Fe(" ",t-r.length)+r}function zt(e,t){var r=""+e;return r.length>=t?r:r+Fe(" ",t-r.length)}function rs(e,t){var r=""+Math.round(e);return r.length>=t?r:Fe("0",t-r.length)+r}function ts(e,t){var r=""+e;return r.length>=t?r:Fe("0",t-r.length)+r}var un=Math.pow(2,32);function Zr(e,t){if(e>un||e<-un)return rs(e,t);var r=Math.round(e);return ts(r,t)}function Yt(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var xn=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],_0=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function ns(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var ye={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},vn={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},as={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function $t(e,t,r){for(var n=e<0?-1:1,a=e*n,i=0,s=1,f=0,o=1,l=0,c=0,d=Math.floor(a);l<t&&(d=Math.floor(a),f=d*s+i,c=d*l+o,!(a-d<5e-8));)a=1/(a-d),i=s,s=f,o=l,l=c;if(c>t&&(l>t?(c=o,f=i):(c=l,f=s)),!r)return[0,n*f,c];var x=Math.floor(n*f/c);return[x,n*f-x*c,c]}function bt(e,t,r){if(e>2958465||e<0)return null;var n=e|0,a=Math.floor(86400*(e-n)),i=0,s=[],f={D:n,T:a,u:86400*(e-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(f.u)<1e-6&&(f.u=0),t&&t.date1904&&(n+=1462),f.u>.9999&&(f.u=0,++a==86400&&(f.T=a=0,++n,++f.D)),n===60)s=r?[1317,10,29]:[1900,2,29],i=3;else if(n===0)s=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var o=new Date(1900,0,1);o.setDate(o.getDate()+n-1),s=[o.getFullYear(),o.getMonth()+1,o.getDate()],i=o.getDay(),n<60&&(i=(i+6)%7),r&&(i=hs(o,s))}return f.y=s[0],f.m=s[1],f.d=s[2],f.S=a%60,a=Math.floor(a/60),f.M=a%60,a=Math.floor(a/60),f.H=a,f.q=i,f}var Qn=new Date(1899,11,31,0,0,0),is=Qn.getTime(),ss=new Date(1900,2,1,0,0,0);function ea(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=ss&&(r+=24*60*60*1e3),(r-(is+(e.getTimezoneOffset()-Qn.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function N0(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function fs(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function ls(e){var t=e<0?12:11,r=N0(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function os(e){var t=N0(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function cs(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=ls(e):t===10?r=e.toFixed(10).substr(0,12):r=os(e),N0(fs(r.toUpperCase()))}function C0(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):cs(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return kr(14,ea(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function hs(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function us(e,t,r,n){var a="",i=0,s=0,f=r.y,o,l=0;switch(e){case 98:f=r.y+543;case 121:switch(t.length){case 1:case 2:o=f%100,l=2;break;default:o=f%1e4,l=4;break}break;case 109:switch(t.length){case 1:case 2:o=r.m,l=t.length;break;case 3:return _0[r.m-1][1];case 5:return _0[r.m-1][0];default:return _0[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:o=r.d,l=t.length;break;case 3:return xn[r.q][0];default:return xn[r.q][1]}break;case 104:switch(t.length){case 1:case 2:o=1+(r.H+11)%12,l=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:o=r.H,l=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:o=r.M,l=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?dr(r.S,t.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,i=Math.round(s*(r.S+r.u)),i>=60*s&&(i=0),t==="s"?i===0?"0":""+i/s:(a=dr(i,2+n),t==="ss"?a.substr(0,2):"."+a.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":o=r.D*24+r.H;break;case"[m]":case"[mm]":o=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":o=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}l=t.length===3?1:2;break;case 101:o=f,l=1;break}var c=l>0?dr(o,l):"";return c}function Nr(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var ra=/%/g;function xs(e,t,r){var n=t.replace(ra,""),a=t.length-n.length;return Ar(e,n,r*Math.pow(10,2*a))+Fe("%",a)}function vs(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Ar(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function ta(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+ta(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),r.indexOf("e")===-1){var s=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(f,o,l,c){return o+l+c.substr(0,(a+i)%a)+"."+c.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var na=/# (\?+)( ?)\/( ?)(\d+)/;function ds(e,t,r){var n=parseInt(e[4],10),a=Math.round(t*n),i=Math.floor(a/n),s=a-i*n,f=n;return r+(i===0?"":""+i)+" "+(s===0?Fe(" ",e[1].length+1+e[4].length):I0(s,e[1].length)+e[2]+"/"+e[3]+dr(f,e[4].length))}function ps(e,t,r){return r+(t===0?"":""+t)+Fe(" ",e[1].length+2+e[4].length)}var aa=/^#*0*\.([0#]+)/,ia=/\).*[0#]/,sa=/\(###\) ###\\?-####/;function ze(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function dn(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function pn(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function ms(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function gs(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function fr(e,t,r){if(e.charCodeAt(0)===40&&!t.match(ia)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?fr("n",n,r):"("+fr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return vs(e,t,r);if(t.indexOf("%")!==-1)return xs(e,t,r);if(t.indexOf("E")!==-1)return ta(t,r);if(t.charCodeAt(0)===36)return"$"+fr(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,s,f,o=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+Zr(o,t.length);if(t.match(/^[#?]+$/))return a=Zr(r,0),a==="0"&&(a=""),a.length>t.length?a:ze(t.substr(0,t.length-a.length))+a;if(i=t.match(na))return ds(i,o,l);if(t.match(/^#+0+$/))return l+Zr(o,t.length-t.indexOf("0"));if(i=t.match(aa))return a=dn(r,i[1].length).replace(/^([^\.]+)$/,"$1."+ze(i[1])).replace(/\.$/,"."+ze(i[1])).replace(/\.(\d*)$/,function(_,u){return"."+u+Fe("0",ze(i[1]).length-u.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return l+dn(o,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return l+Nr(Zr(o,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+fr(e,t,-r):Nr(""+(Math.floor(r)+ms(r,i[1].length)))+"."+dr(pn(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return fr(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=tt(fr(e,t.replace(/[\\-]/g,""),r)),s=0,tt(tt(t.replace(/\\/g,"")).replace(/[0#]/g,function(_){return s<a.length?a.charAt(s++):_==="0"?"0":""}));if(t.match(sa))return a=fr(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var c="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),f=$t(o,Math.pow(10,s)-1,!1),a=""+l,c=Ar("n",i[1],f[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),a+=c+i[2]+"/"+i[3],c=zt(f[2],s),c.length<i[4].length&&(c=ze(i[4].substr(i[4].length-c.length))+c),a+=c,a;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),f=$t(o,Math.pow(10,s)-1,!0),l+(f[0]||(f[1]?"":"0"))+" "+(f[1]?I0(f[1],s)+i[2]+"/"+i[3]+zt(f[2],s):Fe(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=Zr(r,0),t.length<=a.length?a:ze(t.substr(0,t.length-a.length))+a;if(i=t.match(/^([#0?]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=a.indexOf(".");var d=t.indexOf(".")-s,x=t.length-a.length-d;return ze(t.substr(0,d)+a+t.substr(t.length-x))}if(i=t.match(/^00,000\.([#0]*0)$/))return s=pn(r,i[1].length),r<0?"-"+fr(e,t,-r):Nr(gs(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(_){return"00,"+(_.length<3?dr(0,3-_.length):"")+_})+"."+dr(s,i[1].length);switch(t){case"###,##0.00":return fr(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var v=Nr(Zr(o,0));return v!=="0"?l+v:"";case"###,###.00":return fr(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return fr(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function _s(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Ar(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function Ts(e,t,r){var n=t.replace(ra,""),a=t.length-n.length;return Ar(e,n,r*Math.pow(10,2*a))+Fe("%",a)}function fa(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+fa(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),!r.match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(f,o,l,c){return o+l+c.substr(0,(a+i)%a)+"."+c.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function gr(e,t,r){if(e.charCodeAt(0)===40&&!t.match(ia)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?gr("n",n,r):"("+gr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return _s(e,t,r);if(t.indexOf("%")!==-1)return Ts(e,t,r);if(t.indexOf("E")!==-1)return fa(t,r);if(t.charCodeAt(0)===36)return"$"+gr(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,s,f,o=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+dr(o,t.length);if(t.match(/^[#?]+$/))return a=""+r,r===0&&(a=""),a.length>t.length?a:ze(t.substr(0,t.length-a.length))+a;if(i=t.match(na))return ps(i,o,l);if(t.match(/^#+0+$/))return l+dr(o,t.length-t.indexOf("0"));if(i=t.match(aa))return a=(""+r).replace(/^([^\.]+)$/,"$1."+ze(i[1])).replace(/\.$/,"."+ze(i[1])),a=a.replace(/\.(\d*)$/,function(_,u){return"."+u+Fe("0",ze(i[1]).length-u.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return l+(""+o).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return l+Nr(""+o);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+gr(e,t,-r):Nr(""+r)+"."+Fe("0",i[1].length);if(i=t.match(/^#,#*,#0/))return gr(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=tt(gr(e,t.replace(/[\\-]/g,""),r)),s=0,tt(tt(t.replace(/\\/g,"")).replace(/[0#]/g,function(_){return s<a.length?a.charAt(s++):_==="0"?"0":""}));if(t.match(sa))return a=gr(e,"##########",r),"("+a.substr(0,3)+") "+a.substr(3,3)+"-"+a.substr(6);var c="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),f=$t(o,Math.pow(10,s)-1,!1),a=""+l,c=Ar("n",i[1],f[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),a+=c+i[2]+"/"+i[3],c=zt(f[2],s),c.length<i[4].length&&(c=ze(i[4].substr(i[4].length-c.length))+c),a+=c,a;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),f=$t(o,Math.pow(10,s)-1,!0),l+(f[0]||(f[1]?"":"0"))+" "+(f[1]?I0(f[1],s)+i[2]+"/"+i[3]+zt(f[2],s):Fe(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return a=""+r,t.length<=a.length?a:ze(t.substr(0,t.length-a.length))+a;if(i=t.match(/^([#0]+)\.([#0]+)$/)){a=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=a.indexOf(".");var d=t.indexOf(".")-s,x=t.length-a.length-d;return ze(t.substr(0,d)+a+t.substr(t.length-x))}if(i=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+gr(e,t,-r):Nr(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(_){return"00,"+(_.length<3?dr(0,3-_.length):"")+_})+"."+dr(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var v=Nr(""+o);return v!=="0"?l+v:"";default:if(t.match(/\.[0#?]*$/))return gr(e,t.slice(0,t.lastIndexOf(".")),r)+ze(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function Ar(e,t,r){return(r|0)===r?gr(e,t,r):fr(e,t,r)}function Es(e){for(var t=[],r=!1,n=0,a=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(a,n-a),a=n+1}if(t[t.length]=e.substr(a),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var la=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function oa(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":Yt(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(n=r;e.charAt(t++)!=="]"&&t<e.length;)n+=e.charAt(t);if(n.match(la))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function ws(e,t,r,n){for(var a=[],i="",s=0,f="",o="t",l,c,d,x="H";s<e.length;)switch(f=e.charAt(s)){case"G":if(!Yt(e,s))throw new Error("unrecognized character "+f+" in "+e);a[a.length]={t:"G",v:"General"},s+=7;break;case'"':for(i="";(d=e.charCodeAt(++s))!==34&&s<e.length;)i+=String.fromCharCode(d);a[a.length]={t:"t",v:i},++s;break;case"\\":var v=e.charAt(++s),_=v==="("||v===")"?v:"t";a[a.length]={t:_,v},++s;break;case"_":a[a.length]={t:"t",v:" "},s+=2;break;case"@":a[a.length]={t:"T",v:t},++s;break;case"B":case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(l==null&&(l=bt(t,r,e.charAt(s+1)==="2"),l==null))return"";a[a.length]={t:"X",v:e.substr(s,2)},o=f,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":f=f.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||l==null&&(l=bt(t,r),l==null))return"";for(i=f;++s<e.length&&e.charAt(s).toLowerCase()===f;)i+=f;f==="m"&&o.toLowerCase()==="h"&&(f="M"),f==="h"&&(f=x),a[a.length]={t:f,v:i},o=f;break;case"A":case"a":case"上":var u={t:f,v:f};if(l==null&&(l=bt(t,r)),e.substr(s,3).toUpperCase()==="A/P"?(l!=null&&(u.v=l.H>=12?"P":"A"),u.t="T",x="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(l!=null&&(u.v=l.H>=12?"PM":"AM"),u.t="T",s+=5,x="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(l!=null&&(u.v=l.H>=12?"下午":"上午"),u.t="T",s+=5,x="h"):(u.t="t",++s),l==null&&u.t==="T")return"";a[a.length]=u,o=f;break;case"[":for(i=f;e.charAt(s++)!=="]"&&s<e.length;)i+=e.charAt(s);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(la)){if(l==null&&(l=bt(t,r),l==null))return"";a[a.length]={t:"Z",v:i.toLowerCase()},o=i.charAt(1)}else i.indexOf("$")>-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",oa(e)||(a[a.length]={t:"t",v:i}));break;case".":if(l!=null){for(i=f;++s<e.length&&(f=e.charAt(s))==="0";)i+=f;a[a.length]={t:"s",v:i};break}case"0":case"#":for(i=f;++s<e.length&&"0#?.,E+-%".indexOf(f=e.charAt(s))>-1;)i+=f;a[a.length]={t:"n",v:i};break;case"?":for(i=f;e.charAt(++s)===f;)i+=f;a[a.length]={t:f,v:i},o=f;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":a[a.length]={t:n===1?"t":f,v:f},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=f;s<e.length&&"0123456789".indexOf(e.charAt(++s))>-1;)i+=e.charAt(s);a[a.length]={t:"D",v:i};break;case" ":a[a.length]={t:f,v:f},++s;break;case"$":a[a.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f)===-1)throw new Error("unrecognized character "+f+" in "+e);a[a.length]={t:"t",v:f},++s;break}var g=0,C=0,O;for(s=a.length-1,o="t";s>=0;--s)switch(a[s].t){case"h":case"H":a[s].t=x,o="h",g<1&&(g=1);break;case"s":(O=a[s].v.match(/\.0+$/))&&(C=Math.max(C,O[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":o=a[s].t;break;case"m":o==="s"&&(a[s].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&a[s].v.match(/[Hh]/)&&(g=1),g<2&&a[s].v.match(/[Mm]/)&&(g=2),g<3&&a[s].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M),l.M>=60&&(l.M=0,++l.H);break;case 2:l.u>=.5&&(l.u=0,++l.S),l.S>=60&&(l.S=0,++l.M);break}var y="",M;for(s=0;s<a.length;++s)switch(a[s].t){case"t":case"T":case" ":case"D":break;case"X":a[s].v="",a[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":a[s].v=us(a[s].t.charCodeAt(0),a[s].v,l,C),a[s].t="t";break;case"n":case"?":for(M=s+1;a[M]!=null&&((f=a[M].t)==="?"||f==="D"||(f===" "||f==="t")&&a[M+1]!=null&&(a[M+1].t==="?"||a[M+1].t==="t"&&a[M+1].v==="/")||a[s].t==="("&&(f===" "||f==="n"||f===")")||f==="t"&&(a[M].v==="/"||a[M].v===" "&&a[M+1]!=null&&a[M+1].t=="?"));)a[s].v+=a[M].v,a[M]={v:"",t:";"},++M;y+=a[s].v,s=M-1;break;case"G":a[s].t="t",a[s].v=C0(t,r);break}var Y="",ee,D;if(y.length>0){y.charCodeAt(0)==40?(ee=t<0&&y.charCodeAt(0)===45?-t:t,D=Ar("n",y,ee)):(ee=t<0&&n>1?-t:t,D=Ar("n",y,ee),ee<0&&a[0]&&a[0].t=="t"&&(D=D.substr(1),a[0].v="-"+a[0].v)),M=D.length-1;var b=a.length;for(s=0;s<a.length;++s)if(a[s]!=null&&a[s].t!="t"&&a[s].v.indexOf(".")>-1){b=s;break}var L=a.length;if(b===a.length&&D.indexOf("E")===-1){for(s=a.length-1;s>=0;--s)a[s]==null||"n?".indexOf(a[s].t)===-1||(M>=a[s].v.length-1?(M-=a[s].v.length,a[s].v=D.substr(M+1,a[s].v.length)):M<0?a[s].v="":(a[s].v=D.substr(0,M+1),M=-1),a[s].t="t",L=s);M>=0&&L<a.length&&(a[L].v=D.substr(0,M+1)+a[L].v)}else if(b!==a.length&&D.indexOf("E")===-1){for(M=D.indexOf(".")-1,s=b;s>=0;--s)if(!(a[s]==null||"n?".indexOf(a[s].t)===-1)){for(c=a[s].v.indexOf(".")>-1&&s===b?a[s].v.indexOf(".")-1:a[s].v.length-1,Y=a[s].v.substr(c+1);c>=0;--c)M>=0&&(a[s].v.charAt(c)==="0"||a[s].v.charAt(c)==="#")&&(Y=D.charAt(M--)+Y);a[s].v=Y,a[s].t="t",L=s}for(M>=0&&L<a.length&&(a[L].v=D.substr(0,M+1)+a[L].v),M=D.indexOf(".")+1,s=b;s<a.length;++s)if(!(a[s]==null||"n?(".indexOf(a[s].t)===-1&&s!==b)){for(c=a[s].v.indexOf(".")>-1&&s===b?a[s].v.indexOf(".")+1:0,Y=a[s].v.substr(0,c);c<a[s].v.length;++c)M<D.length&&(Y+=D.charAt(M++));a[s].v=Y,a[s].t="t",L=s}}}for(s=0;s<a.length;++s)a[s]!=null&&"n?".indexOf(a[s].t)>-1&&(ee=n>1&&t<0&&s>0&&a[s-1].v==="-"?-t:t,a[s].v=Ar(a[s].t,a[s].v,ee),a[s].t="t");var G="";for(s=0;s!==a.length;++s)a[s]!=null&&(G+=a[s].v);return G}var mn=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function gn(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function Ss(e,t){var r=Es(e),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var i=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,i];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var s=r[0].match(mn),f=r[1].match(mn);return gn(t,s)?[n,r[0]]:gn(t,f)?[n,r[1]]:[n,r[s!=null&&f!=null?2:1]]}return[n,i]}function kr(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:ye)[e],n==null&&(n=r.table&&r.table[vn[e]]||ye[vn[e]]),n==null&&(n=as[e]||"General");break}if(Yt(n,0))return C0(t,r);t instanceof Date&&(t=ea(t,r.date1904));var a=Ss(n,t);if(Yt(a[1]))return C0(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return ws(a[1],t,r,a[0])}function ca(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(ye[r]==null){t<0&&(t=r);continue}if(ye[r]==e){t=r;break}}t<0&&(t=391)}return ye[t]=e,t}function f0(e){for(var t=0;t!=392;++t)e[t]!==void 0&&ca(e[t],t)}function l0(){ye=ns()}var ha=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function As(e){var t=typeof e=="number"?ye[e]:e;return t=t.replace(ha,"(\\d+)"),new RegExp("^"+t+"$")}function Fs(e,t,r){var n=-1,a=-1,i=-1,s=-1,f=-1,o=-1;(t.match(ha)||[]).forEach(function(d,x){var v=parseInt(r[x+1],10);switch(d.toLowerCase().charAt(0)){case"y":n=v;break;case"d":i=v;break;case"h":s=v;break;case"s":o=v;break;case"m":s>=0?f=v:a=v;break}}),o>=0&&f==-1&&a>=0&&(f=a,a=-1);var l=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);l.length==7&&(l="0"+l),l.length==8&&(l="20"+l);var c=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(f>=0?f:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2);return s==-1&&f==-1&&o==-1?l:n==-1&&a==-1&&i==-1?c:l+"T"+c}var ys=function(){var e={};e.version="1.2.0";function t(){for(var D=0,b=new Array(256),L=0;L!=256;++L)D=L,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,D=D&1?-306674912^D>>>1:D>>>1,b[L]=D;return typeof Int32Array<"u"?new Int32Array(b):b}var r=t();function n(D){var b=0,L=0,G=0,V=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(G=0;G!=256;++G)V[G]=D[G];for(G=0;G!=256;++G)for(L=D[G],b=256+G;b<4096;b+=256)L=V[b]=L>>>8^D[L&255];var j=[];for(G=1;G!=16;++G)j[G-1]=typeof Int32Array<"u"?V.subarray(G*256,G*256+256):V.slice(G*256,G*256+256);return j}var a=n(r),i=a[0],s=a[1],f=a[2],o=a[3],l=a[4],c=a[5],d=a[6],x=a[7],v=a[8],_=a[9],u=a[10],g=a[11],C=a[12],O=a[13],y=a[14];function M(D,b){for(var L=b^-1,G=0,V=D.length;G<V;)L=L>>>8^r[(L^D.charCodeAt(G++))&255];return~L}function Y(D,b){for(var L=b^-1,G=D.length-15,V=0;V<G;)L=y[D[V++]^L&255]^O[D[V++]^L>>8&255]^C[D[V++]^L>>16&255]^g[D[V++]^L>>>24]^u[D[V++]]^_[D[V++]]^v[D[V++]]^x[D[V++]]^d[D[V++]]^c[D[V++]]^l[D[V++]]^o[D[V++]]^f[D[V++]]^s[D[V++]]^i[D[V++]]^r[D[V++]];for(G+=15;V<G;)L=L>>>8^r[(L^D[V++])&255];return~L}function ee(D,b){for(var L=b^-1,G=0,V=D.length,j=0,re=0;G<V;)j=D.charCodeAt(G++),j<128?L=L>>>8^r[(L^j)&255]:j<2048?(L=L>>>8^r[(L^(192|j>>6&31))&255],L=L>>>8^r[(L^(128|j&63))&255]):j>=55296&&j<57344?(j=(j&1023)+64,re=D.charCodeAt(G++)&1023,L=L>>>8^r[(L^(240|j>>8&7))&255],L=L>>>8^r[(L^(128|j>>2&63))&255],L=L>>>8^r[(L^(128|re>>6&15|(j&3)<<4))&255],L=L>>>8^r[(L^(128|re&63))&255]):(L=L>>>8^r[(L^(224|j>>12&15))&255],L=L>>>8^r[(L^(128|j>>6&63))&255],L=L>>>8^r[(L^(128|j&63))&255]);return~L}return e.table=r,e.bstr=M,e.buf=Y,e.str=ee,e}(),_e=function(){var t={};t.version="1.2.1";function r(h,T){for(var p=h.split("/"),m=T.split("/"),E=0,w=0,I=Math.min(p.length,m.length);E<I;++E){if(w=p[E].length-m[E].length)return w;if(p[E]!=m[E])return p[E]<m[E]?-1:1}return p.length-m.length}function n(h){if(h.charAt(h.length-1)=="/")return h.slice(0,-1).indexOf("/")===-1?h:n(h.slice(0,-1));var T=h.lastIndexOf("/");return T===-1?h:h.slice(0,T+1)}function a(h){if(h.charAt(h.length-1)=="/")return a(h.slice(0,-1));var T=h.lastIndexOf("/");return T===-1?h:h.slice(T+1)}function i(h,T){typeof T=="string"&&(T=new Date(T));var p=T.getHours();p=p<<6|T.getMinutes(),p=p<<5|T.getSeconds()>>>1,h.write_shift(2,p);var m=T.getFullYear()-1980;m=m<<4|T.getMonth()+1,m=m<<5|T.getDate(),h.write_shift(2,m)}function s(h){var T=h.read_shift(2)&65535,p=h.read_shift(2)&65535,m=new Date,E=p&31;p>>>=5;var w=p&15;p>>>=4,m.setMilliseconds(0),m.setFullYear(p+1980),m.setMonth(w-1),m.setDate(E);var I=T&31;T>>>=5;var U=T&63;return T>>>=6,m.setHours(T),m.setMinutes(U),m.setSeconds(I<<1),m}function f(h){rr(h,0);for(var T={},p=0;h.l<=h.length-4;){var m=h.read_shift(2),E=h.read_shift(2),w=h.l+E,I={};switch(m){case 21589:p=h.read_shift(1),p&1&&(I.mtime=h.read_shift(4)),E>5&&(p&2&&(I.atime=h.read_shift(4)),p&4&&(I.ctime=h.read_shift(4))),I.mtime&&(I.mt=new Date(I.mtime*1e3));break}h.l=w,T[m]=I}return T}var o;function l(){return o||(o={})}function c(h,T){if(h[0]==80&&h[1]==75)return ln(h,T);if((h[0]|32)==109&&(h[1]|32)==105)return Wi(h,T);if(h.length<512)throw new Error("CFB file size "+h.length+" < 512");var p=3,m=512,E=0,w=0,I=0,U=0,R=0,N=[],k=h.slice(0,512);rr(k,0);var X=d(k);switch(p=X[0],p){case 3:m=512;break;case 4:m=4096;break;case 0:if(X[1]==0)return ln(h,T);default:throw new Error("Major Version: Expected 3 or 4 saw "+p)}m!==512&&(k=h.slice(0,m),rr(k,28));var Z=h.slice(0,m);x(k,p);var te=k.read_shift(4,"i");if(p===3&&te!==0)throw new Error("# Directory Sectors: Expected 0 saw "+te);k.l+=4,I=k.read_shift(4,"i"),k.l+=4,k.chk("00100000","Mini Stream Cutoff Size: "),U=k.read_shift(4,"i"),E=k.read_shift(4,"i"),R=k.read_shift(4,"i"),w=k.read_shift(4,"i");for(var K=-1,Q=0;Q<109&&(K=k.read_shift(4,"i"),!(K<0));++Q)N[Q]=K;var fe=v(h,m);g(R,w,fe,m,N);var we=O(fe,I,N,m);we[I].name="!Directory",E>0&&U!==re&&(we[U].name="!MiniFAT"),we[N[0]].name="!FAT",we.fat_addrs=N,we.ssz=m;var Se={},Ve=[],ht=[],ut=[];y(I,we,fe,Ve,E,Se,ht,U),_(ht,ut,Ve),Ve.shift();var xt={FileIndex:ht,FullPaths:ut};return T&&T.raw&&(xt.raw={header:Z,sectors:fe}),xt}function d(h){if(h[h.l]==80&&h[h.l+1]==75)return[0,0];h.chk(ge,"Header Signature: "),h.l+=16;var T=h.read_shift(2,"u");return[h.read_shift(2,"u"),T]}function x(h,T){var p=9;switch(h.l+=2,p=h.read_shift(2)){case 9:if(T!=3)throw new Error("Sector Shift: Expected 9 saw "+p);break;case 12:if(T!=4)throw new Error("Sector Shift: Expected 12 saw "+p);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+p)}h.chk("0600","Mini Sector Shift: "),h.chk("000000000000","Reserved: ")}function v(h,T){for(var p=Math.ceil(h.length/T)-1,m=[],E=1;E<p;++E)m[E-1]=h.slice(E*T,(E+1)*T);return m[p-1]=h.slice(p*T),m}function _(h,T,p){for(var m=0,E=0,w=0,I=0,U=0,R=p.length,N=[],k=[];m<R;++m)N[m]=k[m]=m,T[m]=p[m];for(;U<k.length;++U)m=k[U],E=h[m].L,w=h[m].R,I=h[m].C,N[m]===m&&(E!==-1&&N[E]!==E&&(N[m]=N[E]),w!==-1&&N[w]!==w&&(N[m]=N[w])),I!==-1&&(N[I]=m),E!==-1&&m!=N[m]&&(N[E]=N[m],k.lastIndexOf(E)<U&&k.push(E)),w!==-1&&m!=N[m]&&(N[w]=N[m],k.lastIndexOf(w)<U&&k.push(w));for(m=1;m<R;++m)N[m]===m&&(w!==-1&&N[w]!==w?N[m]=N[w]:E!==-1&&N[E]!==E&&(N[m]=N[E]));for(m=1;m<R;++m)if(h[m].type!==0){if(U=m,U!=N[U])do U=N[U],T[m]=T[U]+"/"+T[m];while(U!==0&&N[U]!==-1&&U!=N[U]);N[m]=-1}for(T[0]+="/",m=1;m<R;++m)h[m].type!==2&&(T[m]+="/")}function u(h,T,p){for(var m=h.start,E=h.size,w=[],I=m;p&&E>0&&I>=0;)w.push(T.slice(I*j,I*j+j)),E-=j,I=Wr(p,I*4);return w.length===0?B(0):be(w).slice(0,h.size)}function g(h,T,p,m,E){var w=re;if(h===re){if(T!==0)throw new Error("DIFAT chain shorter than expected")}else if(h!==-1){var I=p[h],U=(m>>>2)-1;if(!I)return;for(var R=0;R<U&&(w=Wr(I,R*4))!==re;++R)E.push(w);g(Wr(I,m-4),T-1,p,m,E)}}function C(h,T,p,m,E){var w=[],I=[];E||(E=[]);var U=m-1,R=0,N=0;for(R=T;R>=0;){E[R]=!0,w[w.length]=R,I.push(h[R]);var k=p[Math.floor(R*4/m)];if(N=R*4&U,m<4+N)throw new Error("FAT boundary crossed: "+R+" 4 "+m);if(!h[k])break;R=Wr(h[k],N)}return{nodes:w,data:yn([I])}}function O(h,T,p,m){var E=h.length,w=[],I=[],U=[],R=[],N=m-1,k=0,X=0,Z=0,te=0;for(k=0;k<E;++k)if(U=[],Z=k+T,Z>=E&&(Z-=E),!I[Z]){R=[];var K=[];for(X=Z;X>=0;){K[X]=!0,I[X]=!0,U[U.length]=X,R.push(h[X]);var Q=p[Math.floor(X*4/m)];if(te=X*4&N,m<4+te)throw new Error("FAT boundary crossed: "+X+" 4 "+m);if(!h[Q]||(X=Wr(h[Q],te),K[X]))break}w[Z]={nodes:U,data:yn([R])}}return w}function y(h,T,p,m,E,w,I,U){for(var R=0,N=m.length?2:0,k=T[h].data,X=0,Z=0,te;X<k.length;X+=128){var K=k.slice(X,X+128);rr(K,64),Z=K.read_shift(2),te=B0(K,0,Z-N),m.push(te);var Q={name:te,type:K.read_shift(1),color:K.read_shift(1),L:K.read_shift(4,"i"),R:K.read_shift(4,"i"),C:K.read_shift(4,"i"),clsid:K.read_shift(16),state:K.read_shift(4,"i"),start:0,size:0},fe=K.read_shift(2)+K.read_shift(2)+K.read_shift(2)+K.read_shift(2);fe!==0&&(Q.ct=M(K,K.l-8));var we=K.read_shift(2)+K.read_shift(2)+K.read_shift(2)+K.read_shift(2);we!==0&&(Q.mt=M(K,K.l-8)),Q.start=K.read_shift(4,"i"),Q.size=K.read_shift(4,"i"),Q.size<0&&Q.start<0&&(Q.size=Q.type=0,Q.start=re,Q.name=""),Q.type===5?(R=Q.start,E>0&&R!==re&&(T[R].name="!StreamData")):Q.size>=4096?(Q.storage="fat",T[Q.start]===void 0&&(T[Q.start]=C(p,Q.start,T.fat_addrs,T.ssz)),T[Q.start].name=Q.name,Q.content=T[Q.start].data.slice(0,Q.size)):(Q.storage="minifat",Q.size<0?Q.size=0:R!==re&&Q.start!==re&&T[R]&&(Q.content=u(Q,T[R].data,(T[U]||{}).data))),Q.content&&rr(Q.content,0),w[te]=Q,I.push(Q)}}function M(h,T){return new Date((nr(h,T+4)/1e7*Math.pow(2,32)+nr(h,T)/1e7-11644473600)*1e3)}function Y(h,T){return l(),c(o.readFileSync(h),T)}function ee(h,T){var p=T&&T.type;switch(p||ue&&Buffer.isBuffer(h)&&(p="buffer"),p||"base64"){case"file":return Y(h,T);case"base64":return c(vr(Cr(h)),T);case"binary":return c(vr(h),T)}return c(h,T)}function D(h,T){var p=T||{},m=p.root||"Root Entry";if(h.FullPaths||(h.FullPaths=[]),h.FileIndex||(h.FileIndex=[]),h.FullPaths.length!==h.FileIndex.length)throw new Error("inconsistent CFB structure");h.FullPaths.length===0&&(h.FullPaths[0]=m+"/",h.FileIndex[0]={name:m,type:5}),p.CLSID&&(h.FileIndex[0].clsid=p.CLSID),b(h)}function b(h){var T="Sh33tJ5";if(!_e.find(h,"/"+T)){var p=B(4);p[0]=55,p[1]=p[3]=50,p[2]=54,h.FileIndex.push({name:T,type:2,content:p,size:4,L:69,R:69,C:69}),h.FullPaths.push(h.FullPaths[0]+T),L(h)}}function L(h,T){D(h);for(var p=!1,m=!1,E=h.FullPaths.length-1;E>=0;--E){var w=h.FileIndex[E];switch(w.type){case 0:m?p=!0:(h.FileIndex.pop(),h.FullPaths.pop());break;case 1:case 2:case 5:m=!0,isNaN(w.R*w.L*w.C)&&(p=!0),w.R>-1&&w.L>-1&&w.R==w.L&&(p=!0);break;default:p=!0;break}}if(!(!p&&!T)){var I=new Date(1987,1,19),U=0,R=Object.create?Object.create(null):{},N=[];for(E=0;E<h.FullPaths.length;++E)R[h.FullPaths[E]]=!0,h.FileIndex[E].type!==0&&N.push([h.FullPaths[E],h.FileIndex[E]]);for(E=0;E<N.length;++E){var k=n(N[E][0]);m=R[k],m||(N.push([k,{name:a(k).replace("/",""),type:1,clsid:Me,ct:I,mt:I,content:null}]),R[k]=!0)}for(N.sort(function(te,K){return r(te[0],K[0])}),h.FullPaths=[],h.FileIndex=[],E=0;E<N.length;++E)h.FullPaths[E]=N[E][0],h.FileIndex[E]=N[E][1];for(E=0;E<N.length;++E){var X=h.FileIndex[E],Z=h.FullPaths[E];if(X.name=a(Z).replace("/",""),X.L=X.R=X.C=-(X.color=1),X.size=X.content?X.content.length:0,X.start=0,X.clsid=X.clsid||Me,E===0)X.C=N.length>1?1:-1,X.size=0,X.type=5;else if(Z.slice(-1)=="/"){for(U=E+1;U<N.length&&n(h.FullPaths[U])!=Z;++U);for(X.C=U>=N.length?-1:U,U=E+1;U<N.length&&n(h.FullPaths[U])!=n(Z);++U);X.R=U>=N.length?-1:U,X.type=1}else n(h.FullPaths[E+1]||"")==n(Z)&&(X.R=E+1),X.type=2}}}function G(h,T){var p=T||{};if(p.fileType=="mad")return Hi(h,p);switch(L(h),p.fileType){case"zip":return Pi(h,p)}var m=function(te){for(var K=0,Q=0,fe=0;fe<te.FileIndex.length;++fe){var we=te.FileIndex[fe];if(we.content){var Se=we.content.length;Se>0&&(Se<4096?K+=Se+63>>6:Q+=Se+511>>9)}}for(var Ve=te.FullPaths.length+3>>2,ht=K+7>>3,ut=K+127>>7,xt=ht+Q+Ve+ut,br=xt+127>>7,g0=br<=109?0:Math.ceil((br-109)/127);xt+br+g0+127>>7>br;)g0=++br<=109?0:Math.ceil((br-109)/127);var Sr=[1,g0,br,ut,Ve,Q,K,0];return te.FileIndex[0].size=K<<6,Sr[7]=(te.FileIndex[0].start=Sr[0]+Sr[1]+Sr[2]+Sr[3]+Sr[4]+Sr[5])+(Sr[6]+7>>3),Sr}(h),E=B(m[7]<<9),w=0,I=0;{for(w=0;w<8;++w)E.write_shift(1,le[w]);for(w=0;w<8;++w)E.write_shift(2,0);for(E.write_shift(2,62),E.write_shift(2,3),E.write_shift(2,65534),E.write_shift(2,9),E.write_shift(2,6),w=0;w<3;++w)E.write_shift(2,0);for(E.write_shift(4,0),E.write_shift(4,m[2]),E.write_shift(4,m[0]+m[1]+m[2]+m[3]-1),E.write_shift(4,0),E.write_shift(4,4096),E.write_shift(4,m[3]?m[0]+m[1]+m[2]-1:re),E.write_shift(4,m[3]),E.write_shift(-4,m[1]?m[0]-1:re),E.write_shift(4,m[1]),w=0;w<109;++w)E.write_shift(-4,w<m[2]?m[1]+w:-1)}if(m[1])for(I=0;I<m[1];++I){for(;w<236+I*127;++w)E.write_shift(-4,w<m[2]?m[1]+w:-1);E.write_shift(-4,I===m[1]-1?re:I+1)}var U=function(te){for(I+=te;w<I-1;++w)E.write_shift(-4,w+1);te&&(++w,E.write_shift(-4,re))};for(I=w=0,I+=m[1];w<I;++w)E.write_shift(-4,Ce.DIFSECT);for(I+=m[2];w<I;++w)E.write_shift(-4,Ce.FATSECT);U(m[3]),U(m[4]);for(var R=0,N=0,k=h.FileIndex[0];R<h.FileIndex.length;++R)k=h.FileIndex[R],k.content&&(N=k.content.length,!(N<4096)&&(k.start=I,U(N+511>>9)));for(U(m[6]+7>>3);E.l&511;)E.write_shift(-4,Ce.ENDOFCHAIN);for(I=w=0,R=0;R<h.FileIndex.length;++R)k=h.FileIndex[R],k.content&&(N=k.content.length,!(!N||N>=4096)&&(k.start=I,U(N+63>>6)));for(;E.l&511;)E.write_shift(-4,Ce.ENDOFCHAIN);for(w=0;w<m[4]<<2;++w){var X=h.FullPaths[w];if(!X||X.length===0){for(R=0;R<17;++R)E.write_shift(4,0);for(R=0;R<3;++R)E.write_shift(4,-1);for(R=0;R<12;++R)E.write_shift(4,0);continue}k=h.FileIndex[w],w===0&&(k.start=k.size?k.start-1:re);var Z=w===0&&p.root||k.name;if(N=2*(Z.length+1),E.write_shift(64,Z,"utf16le"),E.write_shift(2,N),E.write_shift(1,k.type),E.write_shift(1,k.color),E.write_shift(-4,k.L),E.write_shift(-4,k.R),E.write_shift(-4,k.C),k.clsid)E.write_shift(16,k.clsid,"hex");else for(R=0;R<4;++R)E.write_shift(4,0);E.write_shift(4,k.state||0),E.write_shift(4,0),E.write_shift(4,0),E.write_shift(4,0),E.write_shift(4,0),E.write_shift(4,k.start),E.write_shift(4,k.size),E.write_shift(4,0)}for(w=1;w<h.FileIndex.length;++w)if(k=h.FileIndex[w],k.size>=4096)if(E.l=k.start+1<<9,ue&&Buffer.isBuffer(k.content))k.content.copy(E,E.l,0,k.size),E.l+=k.size+511&-512;else{for(R=0;R<k.size;++R)E.write_shift(1,k.content[R]);for(;R&511;++R)E.write_shift(1,0)}for(w=1;w<h.FileIndex.length;++w)if(k=h.FileIndex[w],k.size>0&&k.size<4096)if(ue&&Buffer.isBuffer(k.content))k.content.copy(E,E.l,0,k.size),E.l+=k.size+63&-64;else{for(R=0;R<k.size;++R)E.write_shift(1,k.content[R]);for(;R&63;++R)E.write_shift(1,0)}if(ue)E.l=E.length;else for(;E.l<E.length;)E.write_shift(1,0);return E}function V(h,T){var p=h.FullPaths.map(function(R){return R.toUpperCase()}),m=p.map(function(R){var N=R.split("/");return N[N.length-(R.slice(-1)=="/"?2:1)]}),E=!1;T.charCodeAt(0)===47?(E=!0,T=p[0].slice(0,-1)+T):E=T.indexOf("/")!==-1;var w=T.toUpperCase(),I=E===!0?p.indexOf(w):m.indexOf(w);if(I!==-1)return h.FileIndex[I];var U=!w.match(Ut);for(w=w.replace(pt,""),U&&(w=w.replace(Ut,"!")),I=0;I<p.length;++I)if((U?p[I].replace(Ut,"!"):p[I]).replace(pt,"")==w||(U?m[I].replace(Ut,"!"):m[I]).replace(pt,"")==w)return h.FileIndex[I];return null}var j=64,re=-2,ge="d0cf11e0a1b11ae1",le=[208,207,17,224,161,177,26,225],Me="00000000000000000000000000000000",Ce={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:re,FREESECT:-1,HEADER_SIGNATURE:ge,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:Me,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function cr(h,T,p){l();var m=G(h,p);o.writeFileSync(T,m)}function Ne(h){for(var T=new Array(h.length),p=0;p<h.length;++p)T[p]=String.fromCharCode(h[p]);return T.join("")}function ir(h,T){var p=G(h,T);switch(T&&T.type||"buffer"){case"file":return l(),o.writeFileSync(T.filename,p),p;case"binary":return typeof p=="string"?p:Ne(p);case"base64":return St(typeof p=="string"?p:Ne(p));case"buffer":if(ue)return Buffer.isBuffer(p)?p:Dr(p);case"array":return typeof p=="string"?vr(p):p}return p}var Qe;function S(h){try{var T=h.InflateRaw,p=new T;if(p._processChunk(new Uint8Array([3,0]),p._finishFlushFlag),p.bytesRead)Qe=h;else throw new Error("zlib does not expose bytesRead")}catch(m){console.error("cannot use native zlib: "+(m.message||m))}}function P(h,T){if(!Qe)return sn(h,T);var p=Qe.InflateRaw,m=new p,E=m._processChunk(h.slice(h.l),m._finishFlushFlag);return h.l+=m.bytesRead,E}function F(h){return Qe?Qe.deflateRawSync(h):Q0(h)}var A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],ie=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function se(h){var T=(h<<1|h<<11)&139536|(h<<5|h<<15)&558144;return(T>>16|T>>8|T)&255}for(var ae=typeof Uint8Array<"u",q=ae?new Uint8Array(256):[],Te=0;Te<256;++Te)q[Te]=se(Te);function ce(h,T){var p=q[h&255];return T<=8?p>>>8-T:(p=p<<8|q[h>>8&255],T<=16?p>>>16-T:(p=p<<8|q[h>>16&255],p>>>24-T))}function Ke(h,T){var p=T&7,m=T>>>3;return(h[m]|(p<=6?0:h[m+1]<<8))>>>p&3}function xe(h,T){var p=T&7,m=T>>>3;return(h[m]|(p<=5?0:h[m+1]<<8))>>>p&7}function Er(h,T){var p=T&7,m=T>>>3;return(h[m]|(p<=4?0:h[m+1]<<8))>>>p&15}function Ae(h,T){var p=T&7,m=T>>>3;return(h[m]|(p<=3?0:h[m+1]<<8))>>>p&31}function ne(h,T){var p=T&7,m=T>>>3;return(h[m]|(p<=1?0:h[m+1]<<8))>>>p&127}function sr(h,T,p){var m=T&7,E=T>>>3,w=(1<<p)-1,I=h[E]>>>m;return p<8-m||(I|=h[E+1]<<8-m,p<16-m)||(I|=h[E+2]<<16-m,p<24-m)||(I|=h[E+3]<<24-m),I&w}function wr(h,T,p){var m=T&7,E=T>>>3;return m<=5?h[E]|=(p&7)<<m:(h[E]|=p<<m&255,h[E+1]=(p&7)>>8-m),T+3}function Br(h,T,p){var m=T&7,E=T>>>3;return p=(p&1)<<m,h[E]|=p,T+1}function Jr(h,T,p){var m=T&7,E=T>>>3;return p<<=m,h[E]|=p&255,p>>>=8,h[E+1]=p,T+8}function q0(h,T,p){var m=T&7,E=T>>>3;return p<<=m,h[E]|=p&255,p>>>=8,h[E+1]=p&255,h[E+2]=p>>>8,T+16}function v0(h,T){var p=h.length,m=2*p>T?2*p:T+5,E=0;if(p>=T)return h;if(ue){var w=hn(m);if(h.copy)h.copy(w);else for(;E<h.length;++E)w[E]=h[E];return w}else if(ae){var I=new Uint8Array(m);if(I.set)I.set(h);else for(;E<p;++E)I[E]=h[E];return I}return h.length=m,h}function mr(h){for(var T=new Array(h),p=0;p<h;++p)T[p]=0;return T}function Lt(h,T,p){var m=1,E=0,w=0,I=0,U=0,R=h.length,N=ae?new Uint16Array(32):mr(32);for(w=0;w<32;++w)N[w]=0;for(w=R;w<p;++w)h[w]=0;R=h.length;var k=ae?new Uint16Array(R):mr(R);for(w=0;w<R;++w)N[E=h[w]]++,m<E&&(m=E),k[w]=0;for(N[0]=0,w=1;w<=m;++w)N[w+16]=U=U+N[w-1]<<1;for(w=0;w<R;++w)U=h[w],U!=0&&(k[w]=N[U+16]++);var X=0;for(w=0;w<R;++w)if(X=h[w],X!=0)for(U=ce(k[w],m)>>m-X,I=(1<<m+4-X)-1;I>=0;--I)T[U|I<<X]=X&15|w<<4;return m}var d0=ae?new Uint16Array(512):mr(512),p0=ae?new Uint16Array(32):mr(32);if(!ae){for(var Ur=0;Ur<512;++Ur)d0[Ur]=0;for(Ur=0;Ur<32;++Ur)p0[Ur]=0}(function(){for(var h=[],T=0;T<32;T++)h.push(5);Lt(h,p0,32);var p=[];for(T=0;T<=143;T++)p.push(8);for(;T<=255;T++)p.push(9);for(;T<=279;T++)p.push(7);for(;T<=287;T++)p.push(8);Lt(p,d0,288)})();var Ri=function(){for(var T=ae?new Uint8Array(32768):[],p=0,m=0;p<ie.length-1;++p)for(;m<ie[p+1];++m)T[m]=p;for(;m<32768;++m)T[m]=29;var E=ae?new Uint8Array(259):[];for(p=0,m=0;p<H.length-1;++p)for(;m<H[p+1];++m)E[m]=p;function w(U,R){for(var N=0;N<U.length;){var k=Math.min(65535,U.length-N),X=N+k==U.length;for(R.write_shift(1,+X),R.write_shift(2,k),R.write_shift(2,~k&65535);k-- >0;)R[R.l++]=U[N++]}return R.l}function I(U,R){for(var N=0,k=0,X=ae?new Uint16Array(32768):[];k<U.length;){var Z=Math.min(65535,U.length-k);if(Z<10){for(N=wr(R,N,+(k+Z==U.length)),N&7&&(N+=8-(N&7)),R.l=N/8|0,R.write_shift(2,Z),R.write_shift(2,~Z&65535);Z-- >0;)R[R.l++]=U[k++];N=R.l*8;continue}N=wr(R,N,+(k+Z==U.length)+2);for(var te=0;Z-- >0;){var K=U[k];te=(te<<5^K)&32767;var Q=-1,fe=0;if((Q=X[te])&&(Q|=k&-32768,Q>k&&(Q-=32768),Q<k))for(;U[Q+fe]==U[k+fe]&&fe<250;)++fe;if(fe>2){K=E[fe],K<=22?N=Jr(R,N,q[K+1]>>1)-1:(Jr(R,N,3),N+=5,Jr(R,N,q[K-23]>>5),N+=3);var we=K<8?0:K-4>>2;we>0&&(q0(R,N,fe-H[K]),N+=we),K=T[k-Q],N=Jr(R,N,q[K]>>3),N-=3;var Se=K<4?0:K-2>>1;Se>0&&(q0(R,N,k-Q-ie[K]),N+=Se);for(var Ve=0;Ve<fe;++Ve)X[te]=k&32767,te=(te<<5^U[k])&32767,++k;Z-=fe-1}else K<=143?K=K+48:N=Br(R,N,1),N=Jr(R,N,q[K]),X[te]=k&32767,++k}N=Jr(R,N,0)-1}return R.l=(N+7)/8|0,R.l}return function(R,N){return R.length<8?w(R,N):I(R,N)}}();function Q0(h){var T=B(50+Math.floor(h.length*1.1)),p=Ri(h,T);return T.slice(0,p)}var en=ae?new Uint16Array(32768):mr(32768),rn=ae?new Uint16Array(32768):mr(32768),tn=ae?new Uint16Array(128):mr(128),nn=1,an=1;function Ii(h,T){var p=Ae(h,T)+257;T+=5;var m=Ae(h,T)+1;T+=5;var E=Er(h,T)+4;T+=4;for(var w=0,I=ae?new Uint8Array(19):mr(19),U=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],R=1,N=ae?new Uint8Array(8):mr(8),k=ae?new Uint8Array(8):mr(8),X=I.length,Z=0;Z<E;++Z)I[A[Z]]=w=xe(h,T),R<w&&(R=w),N[w]++,T+=3;var te=0;for(N[0]=0,Z=1;Z<=R;++Z)k[Z]=te=te+N[Z-1]<<1;for(Z=0;Z<X;++Z)(te=I[Z])!=0&&(U[Z]=k[te]++);var K=0;for(Z=0;Z<X;++Z)if(K=I[Z],K!=0){te=q[U[Z]]>>8-K;for(var Q=(1<<7-K)-1;Q>=0;--Q)tn[te|Q<<K]=K&7|Z<<3}var fe=[];for(R=1;fe.length<p+m;)switch(te=tn[ne(h,T)],T+=te&7,te>>>=3){case 16:for(w=3+Ke(h,T),T+=2,te=fe[fe.length-1];w-- >0;)fe.push(te);break;case 17:for(w=3+xe(h,T),T+=3;w-- >0;)fe.push(0);break;case 18:for(w=11+ne(h,T),T+=7;w-- >0;)fe.push(0);break;default:fe.push(te),R<te&&(R=te);break}var we=fe.slice(0,p),Se=fe.slice(p);for(Z=p;Z<286;++Z)we[Z]=0;for(Z=m;Z<30;++Z)Se[Z]=0;return nn=Lt(we,en,286),an=Lt(Se,rn,30),T}function Ni(h,T){if(h[0]==3&&!(h[1]&3))return[Gr(T),2];for(var p=0,m=0,E=hn(T||1<<18),w=0,I=E.length>>>0,U=0,R=0;!(m&1);){if(m=xe(h,p),p+=3,m>>>1)m>>1==1?(U=9,R=5):(p=Ii(h,p),U=nn,R=an);else{p&7&&(p+=8-(p&7));var N=h[p>>>3]|h[(p>>>3)+1]<<8;if(p+=32,N>0)for(!T&&I<w+N&&(E=v0(E,w+N),I=E.length);N-- >0;)E[w++]=h[p>>>3],p+=8;continue}for(;;){!T&&I<w+32767&&(E=v0(E,w+32767),I=E.length);var k=sr(h,p,U),X=m>>>1==1?d0[k]:en[k];if(p+=X&15,X>>>=4,!(X>>>8&255))E[w++]=X;else{if(X==256)break;X-=257;var Z=X<8?0:X-4>>2;Z>5&&(Z=0);var te=w+H[X];Z>0&&(te+=sr(h,p,Z),p+=Z),k=sr(h,p,R),X=m>>>1==1?p0[k]:rn[k],p+=X&15,X>>>=4;var K=X<4?0:X-2>>1,Q=ie[X];for(K>0&&(Q+=sr(h,p,K),p+=K),!T&&I<te&&(E=v0(E,te+100),I=E.length);w<te;)E[w]=E[w-Q],++w}}}return T?[E,p+7>>>3]:[E.slice(0,w),p+7>>>3]}function sn(h,T){var p=h.slice(h.l||0),m=Ni(p,T);return h.l+=m[1],m[0]}function fn(h,T){if(h)typeof console<"u"&&console.error(T);else throw new Error(T)}function ln(h,T){var p=h;rr(p,0);var m=[],E=[],w={FileIndex:m,FullPaths:E};D(w,{root:T.root});for(var I=p.length-4;(p[I]!=80||p[I+1]!=75||p[I+2]!=5||p[I+3]!=6)&&I>=0;)--I;p.l=I+4,p.l+=4;var U=p.read_shift(2);p.l+=6;var R=p.read_shift(4);for(p.l=R,I=0;I<U;++I){p.l+=20;var N=p.read_shift(4),k=p.read_shift(4),X=p.read_shift(2),Z=p.read_shift(2),te=p.read_shift(2);p.l+=8;var K=p.read_shift(4),Q=f(p.slice(p.l+X,p.l+X+Z));p.l+=X+Z+te;var fe=p.l;p.l=K+4,ki(p,N,k,w,Q),p.l=fe}return w}function ki(h,T,p,m,E){h.l+=2;var w=h.read_shift(2),I=h.read_shift(2),U=s(h);if(w&8257)throw new Error("Unsupported ZIP encryption");for(var R=h.read_shift(4),N=h.read_shift(4),k=h.read_shift(4),X=h.read_shift(2),Z=h.read_shift(2),te="",K=0;K<X;++K)te+=String.fromCharCode(h[h.l++]);if(Z){var Q=f(h.slice(h.l,h.l+Z));(Q[21589]||{}).mt&&(U=Q[21589].mt),((E||{})[21589]||{}).mt&&(U=E[21589].mt)}h.l+=Z;var fe=h.slice(h.l,h.l+N);switch(I){case 8:fe=P(h,k);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+I)}var we=!1;w&8&&(R=h.read_shift(4),R==134695760&&(R=h.read_shift(4),we=!0),N=h.read_shift(4),k=h.read_shift(4)),N!=T&&fn(we,"Bad compressed size: "+T+" != "+N),k!=p&&fn(we,"Bad uncompressed size: "+p+" != "+k),m0(m,te,fe,{unsafe:!0,mt:U})}function Pi(h,T){var p=T||{},m=[],E=[],w=B(1),I=p.compression?8:0,U=0,R=0,N=0,k=0,X=0,Z=h.FullPaths[0],te=Z,K=h.FileIndex[0],Q=[],fe=0;for(R=1;R<h.FullPaths.length;++R)if(te=h.FullPaths[R].slice(Z.length),K=h.FileIndex[R],!(!K.size||!K.content||te=="Sh33tJ5")){var we=k,Se=B(te.length);for(N=0;N<te.length;++N)Se.write_shift(1,te.charCodeAt(N)&127);Se=Se.slice(0,Se.l),Q[X]=ys.buf(K.content,0);var Ve=K.content;I==8&&(Ve=F(Ve)),w=B(30),w.write_shift(4,67324752),w.write_shift(2,20),w.write_shift(2,U),w.write_shift(2,I),K.mt?i(w,K.mt):w.write_shift(4,0),w.write_shift(-4,Q[X]),w.write_shift(4,Ve.length),w.write_shift(4,K.content.length),w.write_shift(2,Se.length),w.write_shift(2,0),k+=w.length,m.push(w),k+=Se.length,m.push(Se),k+=Ve.length,m.push(Ve),w=B(46),w.write_shift(4,33639248),w.write_shift(2,0),w.write_shift(2,20),w.write_shift(2,U),w.write_shift(2,I),w.write_shift(4,0),w.write_shift(-4,Q[X]),w.write_shift(4,Ve.length),w.write_shift(4,K.content.length),w.write_shift(2,Se.length),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(4,0),w.write_shift(4,we),fe+=w.l,E.push(w),fe+=Se.length,E.push(Se),++X}return w=B(22),w.write_shift(4,101010256),w.write_shift(2,0),w.write_shift(2,0),w.write_shift(2,X),w.write_shift(2,X),w.write_shift(4,fe),w.write_shift(4,k),w.write_shift(2,0),be([be(m),be(E),w])}var Mt={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Li(h,T){if(h.ctype)return h.ctype;var p=h.name||"",m=p.match(/\.([^\.]+)$/);return m&&Mt[m[1]]||T&&(m=(p=T).match(/[\.\\]([^\.\\])+$/),m&&Mt[m[1]])?Mt[m[1]]:"application/octet-stream"}function Mi(h){for(var T=St(h),p=[],m=0;m<T.length;m+=76)p.push(T.slice(m,m+76));return p.join(`\r
+`)+`\r
+`}function Bi(h){var T=h.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(N){var k=N.charCodeAt(0).toString(16).toUpperCase();return"="+(k.length==1?"0"+k:k)});T=T.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),T.charAt(0)==`
+`&&(T="=0D"+T.slice(1)),T=T.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
+=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var p=[],m=T.split(`\r
+`),E=0;E<m.length;++E){var w=m[E];if(w.length==0){p.push("");continue}for(var I=0;I<w.length;){var U=76,R=w.slice(I,I+U);R.charAt(U-1)=="="?U--:R.charAt(U-2)=="="?U-=2:R.charAt(U-3)=="="&&(U-=3),R=w.slice(I,I+U),I+=U,I<w.length&&(R+="="),p.push(R)}}return p.join(`\r
+`)}function Ui(h){for(var T=[],p=0;p<h.length;++p){for(var m=h[p];p<=h.length&&m.charAt(m.length-1)=="=";)m=m.slice(0,m.length-1)+h[++p];T.push(m)}for(var E=0;E<T.length;++E)T[E]=T[E].replace(/[=][0-9A-Fa-f]{2}/g,function(w){return String.fromCharCode(parseInt(w.slice(1),16))});return vr(T.join(`\r
+`))}function bi(h,T,p){for(var m="",E="",w="",I,U=0;U<10;++U){var R=T[U];if(!R||R.match(/^\s*$/))break;var N=R.match(/^(.*?):\s*([^\s].*)$/);if(N)switch(N[1].toLowerCase()){case"content-location":m=N[2].trim();break;case"content-type":w=N[2].trim();break;case"content-transfer-encoding":E=N[2].trim();break}}switch(++U,E.toLowerCase()){case"base64":I=vr(Cr(T.slice(U).join("")));break;case"quoted-printable":I=Ui(T.slice(U));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+E)}var k=m0(h,m.slice(p.length),I,{unsafe:!0});w&&(k.ctype=w)}function Wi(h,T){if(Ne(h.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var p=T&&T.root||"",m=(ue&&Buffer.isBuffer(h)?h.toString("binary"):Ne(h)).split(`\r
+`),E=0,w="";for(E=0;E<m.length;++E)if(w=m[E],!!/^Content-Location:/i.test(w)&&(w=w.slice(w.indexOf("file")),p||(p=w.slice(0,w.lastIndexOf("/")+1)),w.slice(0,p.length)!=p))for(;p.length>0&&(p=p.slice(0,p.length-1),p=p.slice(0,p.lastIndexOf("/")+1),w.slice(0,p.length)!=p););var I=(m[1]||"").match(/boundary="(.*?)"/);if(!I)throw new Error("MAD cannot find boundary");var U="--"+(I[1]||""),R=[],N=[],k={FileIndex:R,FullPaths:N};D(k);var X,Z=0;for(E=0;E<m.length;++E){var te=m[E];te!==U&&te!==U+"--"||(Z++&&bi(k,m.slice(X,E),p),X=E)}return k}function Hi(h,T){var p=T||{},m=p.boundary||"SheetJS";m="------="+m;for(var E=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+m.slice(2)+'"',"","",""],w=h.FullPaths[0],I=w,U=h.FileIndex[0],R=1;R<h.FullPaths.length;++R)if(I=h.FullPaths[R].slice(w.length),U=h.FileIndex[R],!(!U.size||!U.content||I=="Sh33tJ5")){I=I.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(fe){return"_x"+fe.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(fe){return"_u"+fe.charCodeAt(0).toString(16)+"_"});for(var N=U.content,k=ue&&Buffer.isBuffer(N)?N.toString("binary"):Ne(N),X=0,Z=Math.min(1024,k.length),te=0,K=0;K<=Z;++K)(te=k.charCodeAt(K))>=32&&te<128&&++X;var Q=X>=Z*4/5;E.push(m),E.push("Content-Location: "+(p.root||"file:///C:/SheetJS/")+I),E.push("Content-Transfer-Encoding: "+(Q?"quoted-printable":"base64")),E.push("Content-Type: "+Li(U,I)),E.push(""),E.push(Q?Bi(k):Mi(k))}return E.push(m+`--\r
+`),E.join(`\r
+`)}function Gi(h){var T={};return D(T,h),T}function m0(h,T,p,m){var E=m&&m.unsafe;E||D(h);var w=!E&&_e.find(h,T);if(!w){var I=h.FullPaths[0];T.slice(0,I.length)==I?I=T:(I.slice(-1)!="/"&&(I+="/"),I=(I+T).replace("//","/")),w={name:a(T),type:2},h.FileIndex.push(w),h.FullPaths.push(I),E||_e.utils.cfb_gc(h)}return w.content=p,w.size=p?p.length:0,m&&(m.CLSID&&(w.clsid=m.CLSID),m.mt&&(w.mt=m.mt),m.ct&&(w.ct=m.ct)),w}function Vi(h,T){D(h);var p=_e.find(h,T);if(p){for(var m=0;m<h.FileIndex.length;++m)if(h.FileIndex[m]==p)return h.FileIndex.splice(m,1),h.FullPaths.splice(m,1),!0}return!1}function Xi(h,T,p){D(h);var m=_e.find(h,T);if(m){for(var E=0;E<h.FileIndex.length;++E)if(h.FileIndex[E]==m)return h.FileIndex[E].name=a(p),h.FullPaths[E]=p,!0}return!1}function ji(h){L(h,!0)}return t.find=V,t.read=ee,t.parse=c,t.write=ir,t.writeFile=cr,t.utils={cfb_new:Gi,cfb_add:m0,cfb_del:Vi,cfb_mov:Xi,cfb_gc:ji,ReadShift:gt,CheckField:Da,prep_blob:rr,bconcat:be,use_zlib:S,_deflateRaw:Q0,_inflateRaw:sn,consts:Ce},t}();function Cs(e){return typeof e=="string"?s0(e):Array.isArray(e)?Qi(e):e}function Rt(e,t,r){if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=s0(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?Ft(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var a=new Blob([Cs(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(a,e);if(typeof saveAs<"u")return saveAs(a,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(a);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),chrome.downloads.download({url:i,filename:e,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=e,s.href=i,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),i}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var f=File(e);return f.open("w"),f.encoding="binary",Array.isArray(t)&&(t=Dt(t)),f.write(t),f.close(),t}catch(o){if(!o.message||!o.message.match(/onstruct/))throw o}throw new Error("cannot save file "+e)}function Ge(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function _n(e,t){for(var r=[],n=Ge(e),a=0;a!==n.length;++a)r[e[n[a]][t]]==null&&(r[e[n[a]][t]]=n[a]);return r}function k0(e){for(var t=[],r=Ge(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function o0(e){for(var t=[],r=Ge(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function Os(e){for(var t=[],r=Ge(e),n=0;n!==r.length;++n)t[e[r[n]]]==null&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}var Jt=new Date(1899,11,30,0,0,0);function Ze(e,t){var r=e.getTime(),n=Jt.getTime()+(e.getTimezoneOffset()-Jt.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var ua=new Date,Ds=Jt.getTime()+(ua.getTimezoneOffset()-Jt.getTimezoneOffset())*6e4,Tn=ua.getTimezoneOffset();function xa(e){var t=new Date;return t.setTime(e*24*60*60*1e3+Ds),t.getTimezoneOffset()!==Tn&&t.setTime(t.getTime()+(t.getTimezoneOffset()-Tn)*6e4),t}var En=new Date("2017-02-19T19:06:09.000Z"),va=isNaN(En.getFullYear())?new Date("2/19/17"):En,Rs=va.getFullYear()==2017;function $e(e,t){var r=new Date(e);if(Rs)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(va.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function c0(e,t){if(ue&&Buffer.isBuffer(e))return e.toString("binary");if(typeof TextDecoder<"u")try{var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return r[i]||i})}catch{}for(var n=[],a=0;a!=e.length;++a)n.push(String.fromCharCode(e[a]));return n.join("")}function qe(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=qe(e[r]));return t}function Fe(e,t){for(var r="";r.length<t;)r+=e;return r}function Fr(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(t=Number(n))||(n=n.replace(/[(](.*)[)]/,function(a,i){return r=-r,i}),!isNaN(t=Number(n)))?t/r:t}var Is=["january","february","march","april","may","june","july","august","september","october","november","december"];function At(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),a=t.getMonth(),i=t.getDate();if(isNaN(i))return r;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),s.length>3&&Is.indexOf(s)==-1)return r}else if(s.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||i>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}function oe(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return ue?n=Dr(r):n=es(r),_e.utils.cfb_add(e,t,n)}_e.utils.cfb_add(e,t,r)}else e.file(t,r)}function P0(){return _e.utils.cfb_new()}var Re=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
+`,Ns={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},L0=k0(Ns),M0=/[&<>'"]/g,ks=/[\u0000-\u0008\u000b-\u001f]/g;function pe(e){var t=e+"";return t.replace(M0,function(r){return L0[r]}).replace(ks,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function wn(e){return pe(e).replace(/ /g,"_x0020_")}var da=/[\u0000-\u001f]/g;function Ps(e){var t=e+"";return t.replace(M0,function(r){return L0[r]}).replace(/\n/g,"<br/>").replace(da,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function Ls(e){var t=e+"";return t.replace(M0,function(r){return L0[r]}).replace(da,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function Ms(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function Bs(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function T0(e){for(var t="",r=0,n=0,a=0,i=0,s=0,f=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(a=e.charCodeAt(r++),n>191&&n<224){s=(n&31)<<6,s|=a&63,t+=String.fromCharCode(s);continue}if(i=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);continue}s=e.charCodeAt(r++),f=((n&7)<<18|(a&63)<<12|(i&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(f>>>10&1023)),t+=String.fromCharCode(56320+(f&1023))}return t}function Sn(e){var t=Gr(2*e.length),r,n,a=1,i=0,s=0,f;for(n=0;n<e.length;n+=a)a=1,(f=e.charCodeAt(n))<128?r=f:f<224?(r=(f&31)*64+(e.charCodeAt(n+1)&63),a=2):f<240?(r=(f&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),a=3):(a=4,r=(f&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,s=55296+(r>>>10&1023),r=56320+(r&1023)),s!==0&&(t[i++]=s&255,t[i++]=s>>>8,s=0),t[i++]=r%256,t[i++]=r>>>8;return t.slice(0,i).toString("ucs2")}function An(e){return Dr(e,"binary").toString("utf8")}var Wt="foo bar baz☃🍣",mt=ue&&(An(Wt)==T0(Wt)&&An||Sn(Wt)==T0(Wt)&&Sn)||T0,Ft=ue?function(e){return Dr(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,a=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(a>>18&7))),t.push(String.fromCharCode(144+(a>>12&63))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},Us=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
+`).replace(/<[^>]*>/g,""),a=0;a<e.length;++a)n=n.replace(e[a][0],e[a][1]);return n}}(),pa=/(^\s|\s$|\n)/;function We(e,t){return"<"+e+(t.match(pa)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function yt(e){return Ge(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function z(e,t,r){return"<"+e+(r!=null?yt(r):"")+(t!=null?(t.match(pa)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function O0(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function bs(e,t){switch(typeof e){case"string":var r=z("vt:lpwstr",pe(e));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return z((e|0)==e?"vt:i4":"vt:r8",pe(String(e)));case"boolean":return z("vt:bool",e?"true":"false")}if(e instanceof Date)return z("vt:filetime",O0(e));throw new Error("Unable to serialize "+e)}var ke={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},ft=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],tr={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function Ws(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),a=e[t+6]&15,i=5;i>=0;--i)a=a*256+e[t+i];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function Hs(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,i=0,s=n?-t:t;isFinite(s)?s==0?a=i=0:(a=Math.floor(Math.log(s)/Math.LN2),i=s*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?a=-1022:(i-=Math.pow(2,52),a+=1023)):(a=2047,i=isNaN(t)?26985:0);for(var f=0;f<=5;++f,i/=256)e[r+f]=i&255;e[r+6]=(a&15)<<4|i&15,e[r+7]=a>>4|n}var Fn=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var a=0,i=e[0][n].length;a<i;a+=r)t.push.apply(t,e[0][n].slice(a,a+r));return t},yn=ue?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:Dr(t)})):Fn(e)}:Fn,Cn=function(e,t,r){for(var n=[],a=t;a<r;a+=2)n.push(String.fromCharCode(dt(e,a)));return n.join("").replace(pt,"")},B0=ue?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(pt,""):Cn(e,t,r)}:Cn,On=function(e,t,r){for(var n=[],a=t;a<t+r;++a)n.push(("0"+e[a].toString(16)).slice(-2));return n.join("")},ma=ue?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):On(e,t,r)}:On,Dn=function(e,t,r){for(var n=[],a=t;a<r;a++)n.push(String.fromCharCode(et(e,a)));return n.join("")},It=ue?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):Dn(t,r,n)}:Dn,ga=function(e,t){var r=nr(e,t);return r>0?It(e,t+4,t+4+r-1):""},_a=ga,Ta=function(e,t){var r=nr(e,t);return r>0?It(e,t+4,t+4+r-1):""},Ea=Ta,wa=function(e,t){var r=2*nr(e,t);return r>0?It(e,t+4,t+4+r-1):""},Sa=wa,Aa=function(t,r){var n=nr(t,r);return n>0?B0(t,r+4,r+4+n):""},Fa=Aa,ya=function(e,t){var r=nr(e,t);return r>0?It(e,t+4,t+4+r):""},Ca=ya,Oa=function(e,t){return Ws(e,t)},Zt=Oa,U0=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};ue&&(_a=function(t,r){if(!Buffer.isBuffer(t))return ga(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},Ea=function(t,r){if(!Buffer.isBuffer(t))return Ta(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},Sa=function(t,r){if(!Buffer.isBuffer(t))return wa(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},Fa=function(t,r){if(!Buffer.isBuffer(t))return Aa(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},Ca=function(t,r){if(!Buffer.isBuffer(t))return ya(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},Zt=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):Oa(t,r)},U0=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var et=function(e,t){return e[t]},dt=function(e,t){return e[t+1]*256+e[t]},Gs=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},nr=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Wr=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Vs=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function gt(e,t){var r="",n,a,i=[],s,f,o,l;switch(t){case"dbcs":if(l=this.l,ue&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(o=0;o<e;++o)r+=String.fromCharCode(dt(this,l)),l+=2;e*=2;break;case"utf8":r=It(this,this.l,this.l+e);break;case"utf16le":e*=2,r=B0(this,this.l,this.l+e);break;case"wstr":return gt.call(this,e,"dbcs");case"lpstr-ansi":r=_a(this,this.l),e=4+nr(this,this.l);break;case"lpstr-cp":r=Ea(this,this.l),e=4+nr(this,this.l);break;case"lpwstr":r=Sa(this,this.l),e=4+2*nr(this,this.l);break;case"lpp4":e=4+nr(this,this.l),r=Fa(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+nr(this,this.l),r=Ca(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(s=et(this,this.l+e++))!==0;)i.push(Bt(s));r=i.join("");break;case"_wstr":for(e=0,r="";(s=dt(this,this.l+e))!==0;)i.push(Bt(s)),e+=2;e+=2,r=i.join("");break;case"dbcs-cont":for(r="",l=this.l,o=0;o<e;++o){if(this.lens&&this.lens.indexOf(l)!==-1)return s=et(this,l),this.l=l+1,f=gt.call(this,e-o,s?"dbcs-cont":"sbcs-cont"),i.join("")+f;i.push(Bt(dt(this,l))),l+=2}r=i.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",l=this.l,o=0;o!=e;++o){if(this.lens&&this.lens.indexOf(l)!==-1)return s=et(this,l),this.l=l+1,f=gt.call(this,e-o,s?"dbcs-cont":"sbcs-cont"),i.join("")+f;i.push(Bt(et(this,l))),l+=1}r=i.join("");break;default:switch(e){case 1:return n=et(this,this.l),this.l++,n;case 2:return n=(t==="i"?Gs:dt)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||!(this[this.l+3]&128)?(n=(e>0?Wr:Vs)(this,this.l),this.l+=4,n):(a=nr(this,this.l),this.l+=4,a);case 8:case-8:if(t==="f")return e==8?a=Zt(this,this.l):a=Zt([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;e=8;case 16:r=ma(this,this.l,e);break}}return this.l+=e,r}var Xs=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},js=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},Ks=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function zs(e,t,r){var n=0,a=0;if(r==="dbcs"){for(a=0;a!=t.length;++a)Ks(this,t.charCodeAt(a),this.l+2*a);n=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=t.length;++a)this[this.l+a]=t.charCodeAt(a)&255;n=t.length}else if(r==="hex"){for(;a<e;++a)this[this.l++]=parseInt(t.slice(2*a,2*a+2),16)||0;return this}else if(r==="utf16le"){var i=Math.min(this.l+e,this.length);for(a=0;a<Math.min(t.length,e);++a){var s=t.charCodeAt(a);this[this.l++]=s&255,this[this.l++]=s>>8}for(;this.l<i;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=t&255;break;case 2:n=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,Xs(this,t,this.l);break;case 8:if(n=8,r==="f"){Hs(this,t,this.l);break}case 16:break;case-4:n=4,js(this,t,this.l);break}return this.l+=n,this}function Da(e,t){var r=ma(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function rr(e,t){e.l=t,e.read_shift=gt,e.chk=Da,e.write_shift=zs}function Tr(e,t){e.l+=t}function B(e){var t=Gr(e);return rr(t,0),t}function Je(){var e=[],t=ue?256:2048,r=function(l){var c=B(l);return rr(c,0),c},n=r(t),a=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},i=function(l){return n&&l<n.length-n.l?n:(a(),n=r(Math.max(l+1,t)))},s=function(){return a(),be(e)},f=function(l){a(),n=l,n.l==null&&(n.l=n.length),i(t)};return{next:i,push:f,end:s,_bufs:e}}function W(e,t,r,n){var a=+t,i;if(!isNaN(a)){n||(n=Gh[a].p||(r||[]).length||0),i=1+(a>=128?1:0)+1,n>=128&&++i,n>=16384&&++i,n>=2097152&&++i;var s=e.next(i);a<=127?s.write_shift(1,a):(s.write_shift(1,(a&127)+128),s.write_shift(1,a>>7));for(var f=0;f!=4;++f)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&U0(r)&&e.push(r)}}function _t(e,t,r){var n=qe(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function Rn(e,t,r){var n=qe(e);return n.s=_t(n.s,t.s,r),n.e=_t(n.e,t.s,r),n}function Tt(e,t){if(e.cRel&&e.c<0)for(e=qe(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=qe(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=me(e);return!e.cRel&&e.cRel!=null&&(r=Js(r)),!e.rRel&&e.rRel!=null&&(r=Ys(r)),r}function E0(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+Xe(e.s.c)+":"+(e.e.cRel?"":"$")+Xe(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+He(e.s.r)+":"+(e.e.rRel?"":"$")+He(e.e.r):Tt(e.s,t.biff)+":"+Tt(e.e,t.biff)}function b0(e){return parseInt($s(e),10)-1}function He(e){return""+(e+1)}function Ys(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function $s(e){return e.replace(/\$(\d+)$/,"$1")}function W0(e){for(var t=Zs(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function Xe(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function Js(e){return e.replace(/^([A-Z])/,"$$$1")}function Zs(e){return e.replace(/^\$([A-Z])/,"$1")}function qs(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Pe(e){for(var t=0,r=0,n=0;n<e.length;++n){var a=e.charCodeAt(n);a>=48&&a<=57?t=10*t+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:t-1}}function me(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function ar(e){var t=e.indexOf(":");return t==-1?{s:Pe(e),e:Pe(e)}:{s:Pe(e.slice(0,t)),e:Pe(e.slice(t+1))}}function De(e,t){return typeof t>"u"||typeof t=="number"?De(e.s,e.e):(typeof e!="string"&&(e=me(e)),typeof t!="string"&&(t=me(t)),e==t?e:e+":"+t)}function Ee(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,i=e.length;for(r=0;n<i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.s.c=--r,r=0;n<i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;if(t.s.r=--r,n===i||a!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.e.c=--r,r=0;n!=i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;return t.e.r=--r,t}function In(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=kr(e.z,r?Ze(t):t)}catch{}try{return e.w=kr((e.XF||{}).numFmtId||(r?14:0),r?Ze(t):t)}catch{return""+t}}function Or(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?Nt[e.v]||e.v:t==null?In(e,e.v):In(e,t))}function jr(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function Ra(e,t,r){var n=r||{},a=e?Array.isArray(e):n.dense,i=e||(a?[]:{}),s=0,f=0;if(i&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var o=typeof n.origin=="string"?Pe(n.origin):n.origin;s=o.r,f=o.c}i["!ref"]||(i["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var c=Ee(i["!ref"]);l.s.c=c.s.c,l.s.r=c.s.r,l.e.c=Math.max(l.e.c,c.e.c),l.e.r=Math.max(l.e.r,c.e.r),s==-1&&(l.e.r=s=c.e.r+1)}for(var d=0;d!=t.length;++d)if(t[d]){if(!Array.isArray(t[d]))throw new Error("aoa_to_sheet expects an array of arrays");for(var x=0;x!=t[d].length;++x)if(!(typeof t[d][x]>"u")){var v={v:t[d][x]},_=s+d,u=f+x;if(l.s.r>_&&(l.s.r=_),l.s.c>u&&(l.s.c=u),l.e.r<_&&(l.e.r=_),l.e.c<u&&(l.e.c=u),t[d][x]&&typeof t[d][x]=="object"&&!Array.isArray(t[d][x])&&!(t[d][x]instanceof Date))v=t[d][x];else if(Array.isArray(v.v)&&(v.f=t[d][x][1],v.v=v.v[0]),v.v===null)if(v.f)v.t="n";else if(n.nullError)v.t="e",v.v=0;else if(n.sheetStubs)v.t="z";else continue;else typeof v.v=="number"?v.t="n":typeof v.v=="boolean"?v.t="b":v.v instanceof Date?(v.z=n.dateNF||ye[14],n.cellDates?(v.t="d",v.w=kr(v.z,Ze(v.v))):(v.t="n",v.v=Ze(v.v),v.w=kr(v.z,v.v))):v.t="s";if(a)i[_]||(i[_]=[]),i[_][u]&&i[_][u].z&&(v.z=i[_][u].z),i[_][u]=v;else{var g=me({c:u,r:_});i[g]&&i[g].z&&(v.z=i[g].z),i[g]=v}}}return l.s.c<1e7&&(i["!ref"]=De(l)),i}function lt(e,t){return Ra(null,e,t)}function Qs(e){return e.read_shift(4,"i")}function pr(e,t){return t||(t=B(4)),t.write_shift(4,e),t}function je(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function Le(e,t){var r=!1;return t==null&&(r=!0,t=B(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function ef(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function rf(e,t){return t||(t=B(4)),t.write_shift(2,0),t.write_shift(2,0),t}function H0(e,t){var r=e.l,n=e.read_shift(1),a=je(e),i=[],s={t:a,h:a};if(n&1){for(var f=e.read_shift(4),o=0;o!=f;++o)i.push(ef(e));s.r=i}else s.r=[{ich:0,ifnt:0}];return e.l=r+t,s}function tf(e,t){var r=!1;return t==null&&(r=!0,t=B(15+4*e.t.length)),t.write_shift(1,0),Le(e.t,t),r?t.slice(0,t.l):t}var nf=H0;function af(e,t){var r=!1;return t==null&&(r=!0,t=B(23+4*e.t.length)),t.write_shift(1,1),Le(e.t,t),t.write_shift(4,1),rf({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function or(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function Kr(e,t){return t==null&&(t=B(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function zr(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function Yr(e,t){return t==null&&(t=B(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var sf=je,Ia=Le;function G0(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function qt(e,t){var r=!1;return t==null&&(r=!0,t=B(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var ff=je,D0=G0,V0=qt;function Na(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var a=n===0?Zt([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):Wr(t,0)>>2;return r?a/100:a}function ka(e,t){t==null&&(t=B(4));var r=0,n=0,a=e*100;if(e==(e|0)&&e>=-536870912&&e<1<<29?n=1:a==(a|0)&&a>=-536870912&&a<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?a:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function Pa(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function lf(e,t){return t||(t=B(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var $r=Pa,ot=lf;function ct(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Vr(e,t){return(t||B(8)).write_shift(8,e,"f")}function of(e){var t={},r=e.read_shift(1),n=r>>>1,a=e.read_shift(1),i=e.read_shift(2,"i"),s=e.read_shift(1),f=e.read_shift(1),o=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=a;var l=gf[a];l&&(t.rgb=Gn(l));break;case 2:t.rgb=Gn([s,f,o]);break;case 3:t.theme=a;break}return i!=0&&(t.tint=i>0?i/32767:i/32768),t}function Qt(e,t){if(t||(t=B(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function cf(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function hf(e,t){t||(t=B(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}var La=2,er=3,Ht=11,e0=19,Gt=64,uf=65,xf=71,vf=4108,df=4126,Ue=80,Nn={1:{n:"CodePage",t:La},2:{n:"Category",t:Ue},3:{n:"PresentationFormat",t:Ue},4:{n:"ByteCount",t:er},5:{n:"LineCount",t:er},6:{n:"ParagraphCount",t:er},7:{n:"SlideCount",t:er},8:{n:"NoteCount",t:er},9:{n:"HiddenCount",t:er},10:{n:"MultimediaClipCount",t:er},11:{n:"ScaleCrop",t:Ht},12:{n:"HeadingPairs",t:vf},13:{n:"TitlesOfParts",t:df},14:{n:"Manager",t:Ue},15:{n:"Company",t:Ue},16:{n:"LinksUpToDate",t:Ht},17:{n:"CharacterCount",t:er},19:{n:"SharedDoc",t:Ht},22:{n:"HyperlinksChanged",t:Ht},23:{n:"AppVersion",t:er,p:"version"},24:{n:"DigSig",t:uf},26:{n:"ContentType",t:Ue},27:{n:"ContentStatus",t:Ue},28:{n:"Language",t:Ue},29:{n:"Version",t:Ue},255:{},2147483648:{n:"Locale",t:e0},2147483651:{n:"Behavior",t:e0},1919054434:{}},kn={1:{n:"CodePage",t:La},2:{n:"Title",t:Ue},3:{n:"Subject",t:Ue},4:{n:"Author",t:Ue},5:{n:"Keywords",t:Ue},6:{n:"Comments",t:Ue},7:{n:"Template",t:Ue},8:{n:"LastAuthor",t:Ue},9:{n:"RevNumber",t:Ue},10:{n:"EditTime",t:Gt},11:{n:"LastPrinted",t:Gt},12:{n:"CreatedDate",t:Gt},13:{n:"ModifiedDate",t:Gt},14:{n:"PageCount",t:er},15:{n:"WordCount",t:er},16:{n:"CharCount",t:er},17:{n:"Thumbnail",t:xf},18:{n:"Application",t:Ue},19:{n:"DocSecurity",t:er},255:{},2147483648:{n:"Locale",t:e0},2147483651:{n:"Behavior",t:e0},1919054434:{}};function pf(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var mf=pf([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),gf=qe(mf),Nt={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},_f={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Vt={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function Ma(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Ba(e,t){var r=Os(_f),n=[],a;n[n.length]=Re,n[n.length]=z("Types",null,{xmlns:ke.CT,"xmlns:xsd":ke.xsd,"xmlns:xsi":ke.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(o){return z("Default",null,{Extension:o[0],ContentType:o[1]})}));var i=function(o){e[o]&&e[o].length>0&&(a=e[o][0],n[n.length]=z("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Vt[o][t.bookType]||Vt[o].xlsx}))},s=function(o){(e[o]||[]).forEach(function(l){n[n.length]=z("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:Vt[o][t.bookType]||Vt[o].xlsx})})},f=function(o){(e[o]||[]).forEach(function(l){n[n.length]=z("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:r[o][0]})})};return i("workbooks"),s("sheets"),s("charts"),f("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(f),f("vba"),f("comments"),f("threadedcomments"),f("drawings"),s("metadata"),f("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var he={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Ua(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function nt(e){var t=[Re,z("Relationships",null,{xmlns:ke.RELS})];return Ge(e["!id"]).forEach(function(r){t[t.length]=z("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function de(e,t,r,n,a,i){if(a||(a={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,a.Id="rId"+t,a.Type=n,a.Target=r,[he.HLINK,he.XPATH,he.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),e["!id"][a.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][a.Id]=a,e[("/"+a.Target).replace("//","/")]=a,t}function Tf(e){var t=[Re];t.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
+`),t.push(`  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
+`);for(var r=0;r<e.length;++r)t.push('  <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+`"/>
+`);return t.push("</manifest:manifest>"),t.join("")}function Pn(e,t,r){return['  <rdf:Description rdf:about="'+e+`">
+`,'    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+`"/>
+`,`  </rdf:Description>
+`].join("")}function Ef(e,t){return['  <rdf:Description rdf:about="'+e+`">
+`,'    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/>
+`,`  </rdf:Description>
+`].join("")}function wf(e){var t=[Re];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
+`);for(var r=0;r!=e.length;++r)t.push(Pn(e[r][0],e[r][1])),t.push(Ef("",e[r][0]));return t.push(Pn("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function ba(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Kt.version+"</meta:generator></office:meta></office:document-meta>"}var Hr=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function w0(e,t,r,n,a){a[e]!=null||t==null||t===""||(a[e]=t,t=pe(t),n[n.length]=r?z(e,t,r):We(e,t))}function Wa(e,t){var r=t||{},n=[Re,z("cp:coreProperties",null,{"xmlns:cp":ke.CORE_PROPS,"xmlns:dc":ke.dc,"xmlns:dcterms":ke.dcterms,"xmlns:dcmitype":ke.dcmitype,"xmlns:xsi":ke.xsi})],a={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&w0("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:O0(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),e.ModifiedDate!=null&&w0("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:O0(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var i=0;i!=Hr.length;++i){var s=Hr[i],f=r.Props&&r.Props[s[1]]!=null?r.Props[s[1]]:e?e[s[1]]:null;f===!0?f="1":f===!1?f="0":typeof f=="number"&&(f=String(f)),f!=null&&w0(s[0],f,null,n,a)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var at=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Ha=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Ga(e){var t=[],r=z;return e||(e={}),e.Application="SheetJS",t[t.length]=Re,t[t.length]=z("Properties",null,{xmlns:ke.EXT_PROPS,"xmlns:vt":ke.vt}),at.forEach(function(n){if(e[n[1]]!==void 0){var a;switch(n[2]){case"string":a=pe(String(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false";break}a!==void 0&&(t[t.length]=r(n[0],a))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+pe(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function Va(e){var t=[Re,z("Properties",null,{xmlns:ke.CUST_PROPS,"xmlns:vt":ke.vt})];if(!e)return t.join("");var r=1;return Ge(e).forEach(function(a){++r,t[t.length]=z("property",bs(e[a]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:pe(a)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var Ln={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Sf(e,t){var r=[];return Ge(Ln).map(function(n){for(var a=0;a<Hr.length;++a)if(Hr[a][1]==n)return Hr[a];for(a=0;a<at.length;++a)if(at[a][1]==n)return at[a];throw n}).forEach(function(n){if(e[n[1]]!=null){var a=t&&t.Props&&t.Props[n[1]]!=null?t.Props[n[1]]:e[n[1]];switch(n[2]){case"date":a=new Date(a).toISOString().replace(/\.\d*Z/,"Z");break}typeof a=="number"?a=String(a):a===!0||a===!1?a=a?"1":"0":a instanceof Date&&(a=new Date(a).toISOString().replace(/\.\d*Z/,"")),r.push(We(Ln[n[1]]||n[1],a))}}),z("DocumentProperties",r.join(""),{xmlns:tr.o})}function Af(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",a=[];return e&&Ge(e).forEach(function(i){if(Object.prototype.hasOwnProperty.call(e,i)){for(var s=0;s<Hr.length;++s)if(i==Hr[s][1])return;for(s=0;s<at.length;++s)if(i==at[s][1])return;for(s=0;s<r.length;++s)if(i==r[s])return;var f=e[i],o="string";typeof f=="number"?(o="float",f=String(f)):f===!0||f===!1?(o="boolean",f=f?"1":"0"):f=String(f),a.push(z(wn(i),f,{"dt:dt":o}))}}),t&&Ge(t).forEach(function(i){if(Object.prototype.hasOwnProperty.call(t,i)&&!(e&&Object.prototype.hasOwnProperty.call(e,i))){var s=t[i],f="string";typeof s=="number"?(f="float",s=String(s)):s===!0||s===!1?(f="boolean",s=s?"1":"0"):s instanceof Date?(f="dateTime.tz",s=s.toISOString()):s=String(s),a.push(z(wn(i),s,{"dt:dt":f}))}}),"<"+n+' xmlns="'+tr.o+'">'+a.join("")+"</"+n+">"}function Ff(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),a=(r-n)/Math.pow(2,32);n*=1e7,a*=1e7;var i=n/Math.pow(2,32)|0;i>0&&(n=n%Math.pow(2,32),a+=i);var s=B(8);return s.write_shift(4,n),s.write_shift(4,a),s}function Mn(e,t){var r=B(4),n=B(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=B(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=Ff(t);break;case 31:case 80:for(n=B(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return be([r,n])}var Xa=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function yf(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Bn(e,t,r){var n=B(8),a=[],i=[],s=8,f=0,o=B(8),l=B(8);if(o.write_shift(4,2),o.write_shift(4,1200),l.write_shift(4,1),i.push(o),a.push(l),s+=8+o.length,!t){l=B(8),l.write_shift(4,0),a.unshift(l);var c=[B(4)];for(c[0].write_shift(4,e.length),f=0;f<e.length;++f){var d=e[f][0];for(o=B(8+2*(d.length+1)+(d.length%2?0:2)),o.write_shift(4,f+2),o.write_shift(4,d.length+1),o.write_shift(0,d,"dbcs");o.l!=o.length;)o.write_shift(1,0);c.push(o)}o=be(c),i.unshift(o),s+=8+o.length}for(f=0;f<e.length;++f)if(!(t&&!t[e[f][0]])&&!(Xa.indexOf(e[f][0])>-1||Ha.indexOf(e[f][0])>-1)&&e[f][1]!=null){var x=e[f][1],v=0;if(t){v=+t[e[f][0]];var _=r[v];if(_.p=="version"&&typeof x=="string"){var u=x.split(".");x=(+u[0]<<16)+(+u[1]||0)}o=Mn(_.t,x)}else{var g=yf(x);g==-1&&(g=31,x=String(x)),o=Mn(g,x)}i.push(o),l=B(8),l.write_shift(4,t?v:2+f),a.push(l),s+=8+o.length}var C=8*(i.length+1);for(f=0;f<i.length;++f)a[f].write_shift(4,C),C+=i[f].length;return n.write_shift(4,s),n.write_shift(4,i.length),be([n].concat(a).concat(i))}function Un(e,t,r,n,a,i){var s=B(a?68:48),f=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,_e.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,a?2:1),s.write_shift(16,t,"hex"),s.write_shift(4,a?68:48);var o=Bn(e,r,n);if(f.push(o),a){var l=Bn(a,null,null);s.write_shift(16,i,"hex"),s.write_shift(4,68+o.length),f.push(l)}return be(f)}function Cf(e,t){t||(t=B(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function Of(e,t){return e.read_shift(t)===1}function Ye(e,t){return t||(t=B(2)),t.write_shift(2,+!!e),t}function ja(e){return e.read_shift(2,"u")}function lr(e,t){return t||(t=B(2)),t.write_shift(2,e),t}function Ka(e,t,r){return r||(r=B(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function za(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),a="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var i=e.read_shift(1);i&&(a="dbcs-cont")}else r.biff==12&&(a="wstr");r.biff>=2&&r.biff<=5&&(a="cpstr");var s=n?e.read_shift(n,a):"";return s}function Df(e){var t=e.t||"",r=B(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=B(2*t.length);n.write_shift(2*t.length,t,"utf16le");var a=[r,n];return be(a)}function Rf(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var a=e.read_shift(1);return a===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function If(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):Rf(e,n,r)}function Nf(e,t,r){if(r.biff>5)return If(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Ya(e,t,r){return r||(r=B(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function bn(e,t){t||(t=B(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function kf(e){var t=B(512),r=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var a=n.indexOf("#"),i=a>-1?31:23;switch(n.charAt(0)){case"#":i=28;break;case".":i&=-3;break}t.write_shift(4,2),t.write_shift(4,i);var s=[8,6815827,6619237,4849780,83];for(r=0;r<s.length;++r)t.write_shift(4,s[r]);if(i==28)n=n.slice(1),bn(n,t);else if(i&2){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<s.length;++r)t.write_shift(1,parseInt(s[r],16));var f=a>-1?n.slice(0,a):n;for(t.write_shift(4,2*(f.length+1)),r=0;r<f.length;++r)t.write_shift(2,f.charCodeAt(r));t.write_shift(2,0),i&8&&bn(a>-1?n.slice(a+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<s.length;++r)t.write_shift(1,parseInt(s[r],16));for(var o=0;n.slice(o*3,o*3+3)=="../"||n.slice(o*3,o*3+3)=="..\\";)++o;for(t.write_shift(2,o),t.write_shift(4,n.length-3*o+1),r=0;r<n.length-3*o;++r)t.write_shift(1,n.charCodeAt(r+3*o)&255);for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function Xr(e,t,r,n){return n||(n=B(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function Pf(e,t,r){var n=r.biff>8?4:2,a=e.read_shift(n),i=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[a,i,s]}function Lf(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2);return{s:{c:n,r:t},e:{c:a,r}}}function $a(e,t){return t||(t=B(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function X0(e,t,r){var n=1536,a=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var i=B(a);return i.write_shift(2,n),i.write_shift(2,t),a>4&&i.write_shift(2,29282),a>6&&i.write_shift(2,1997),a>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function Mf(e,t){var r=!t||t.biff==8,n=B(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function Bf(e,t){var r=!t||t.biff>=8?2:1,n=B(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function Uf(e,t){var r=B(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],a=0;a<e.length;++a)n[a]=Df(e[a]);var i=be([r].concat(n));return i.parts=[r.length].concat(n.map(function(s){return s.length})),i}function bf(){var e=B(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function Wf(e){var t=B(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function Hf(e,t){var r=e.name||"Arial",n=t.biff==5,a=n?15+r.length:16+2*r.length,i=B(a);return i.write_shift(2,(e.sz||12)*20),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,r.length),n||i.write_shift(1,1),i.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),i}function Gf(e,t,r,n){var a=B(10);return Xr(e,t,n,a),a.write_shift(4,r),a}function Vf(e,t,r,n,a){var i=!a||a.biff==8,s=B(8+ +i+(1+i)*r.length);return Xr(e,t,n,s),s.write_shift(2,r.length),i&&s.write_shift(1,1),s.write_shift((1+i)*r.length,r,i?"utf16le":"sbcs"),s}function Xf(e,t,r,n){var a=r.biff==5;n||(n=B(a?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(a?1:2,t.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*t.length,t,a?"sbcs":"utf16le");var i=n.length>n.l?n.slice(0,n.l):n;return i.l==null&&(i.l=i.length),i}function jf(e,t){var r=t.biff==8||!t.biff?4:2,n=B(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function Wn(e,t,r,n){var a=r.biff==5;n||(n=B(a?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var i=0;return e.numFmtId>0&&a&&(i|=1024),n.write_shift(4,i),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function Kf(e){var t=B(8);return t.write_shift(4,0),t.write_shift(2,0),t.write_shift(2,0),t}function zf(e,t,r,n,a,i){var s=B(8);return Xr(e,t,n,s),Ka(r,i,s),s}function Yf(e,t,r,n){var a=B(14);return Xr(e,t,n,a),Vr(r,a),a}function $f(e,t,r){if(r.biff<8)return Jf(e,t,r);for(var n=[],a=e.l+t,i=e.read_shift(r.biff>8?4:2);i--!==0;)n.push(Pf(e,r.biff>8?12:6,r));if(e.l!=a)throw new Error("Bad ExternSheet: "+e.l+" != "+a);return n}function Jf(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=za(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function Zf(e){var t=B(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)$a(e[r],t);return t}function qf(e){var t=B(24),r=Pe(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),a=0;a<16;++a)t.write_shift(1,parseInt(n[a],16));return be([t,kf(e[1])])}function Qf(e){var t=e[1].Tooltip,r=B(10+2*(t.length+1));r.write_shift(2,2048);var n=Pe(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var a=0;a<t.length;++a)r.write_shift(2,t.charCodeAt(a));return r.write_shift(2,0),r}function el(e){return e||(e=B(4)),e.write_shift(2,1),e.write_shift(2,1),e}function rl(e,t,r){if(!r.cellStyles)return Tr(e,t);var n=r&&r.biff>=12?4:2,a=e.read_shift(n),i=e.read_shift(n),s=e.read_shift(n),f=e.read_shift(n),o=e.read_shift(2);n==2&&(e.l+=2);var l={s:a,e:i,w:s,ixfe:f,flags:o};return(r.biff>=5||!r.biff)&&(l.level=o>>8&7),l}function tl(e,t){var r=B(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function nl(e){for(var t=B(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}function al(e,t,r){var n=B(15);return Pt(n,e,t),n.write_shift(8,r,"f"),n}function il(e,t,r){var n=B(9);return Pt(n,e,t),n.write_shift(2,r),n}var sl=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=k0({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(f,o){var l=[],c=Gr(1);switch(o.type){case"base64":c=vr(Cr(f));break;case"binary":c=vr(f);break;case"buffer":case"array":c=f;break}rr(c,0);var d=c.read_shift(1),x=!!(d&136),v=!1,_=!1;switch(d){case 2:break;case 3:break;case 48:v=!0,x=!0;break;case 49:v=!0,x=!0;break;case 131:break;case 139:break;case 140:_=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+d.toString(16))}var u=0,g=521;d==2&&(u=c.read_shift(2)),c.l+=3,d!=2&&(u=c.read_shift(4)),u>1048576&&(u=1e6),d!=2&&(g=c.read_shift(2));var C=c.read_shift(2),O=o.codepage||1252;d!=2&&(c.l+=16,c.read_shift(1),c[c.l]!==0&&(O=e[c[c.l]]),c.l+=1,c.l+=2),_&&(c.l+=36);for(var y=[],M={},Y=Math.min(c.length,d==2?521:g-10-(v?264:0)),ee=_?32:11;c.l<Y&&c[c.l]!=13;)switch(M={},M.name=cn.utils.decode(O,c.slice(c.l,c.l+ee)).replace(/[\u0000\r\n].*$/g,""),c.l+=ee,M.type=String.fromCharCode(c.read_shift(1)),d!=2&&!_&&(M.offset=c.read_shift(4)),M.len=c.read_shift(1),d==2&&(M.offset=c.read_shift(2)),M.dec=c.read_shift(1),M.name.length&&y.push(M),d!=2&&(c.l+=_?13:14),M.type){case"B":(!v||M.len!=8)&&o.WTF&&console.log("Skipping "+M.name+":"+M.type);break;case"G":case"P":o.WTF&&console.log("Skipping "+M.name+":"+M.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+M.type)}if(c[c.l]!==13&&(c.l=g-1),c.read_shift(1)!==13)throw new Error("DBF Terminator not found "+c.l+" "+c[c.l]);c.l=g;var D=0,b=0;for(l[0]=[],b=0;b!=y.length;++b)l[0][b]=y[b].name;for(;u-- >0;){if(c[c.l]===42){c.l+=C;continue}for(++c.l,l[++D]=[],b=0,b=0;b!=y.length;++b){var L=c.slice(c.l,c.l+y[b].len);c.l+=y[b].len,rr(L,0);var G=cn.utils.decode(O,L);switch(y[b].type){case"C":G.trim().length&&(l[D][b]=G.replace(/\s+$/,""));break;case"D":G.length===8?l[D][b]=new Date(+G.slice(0,4),+G.slice(4,6)-1,+G.slice(6,8)):l[D][b]=G;break;case"F":l[D][b]=parseFloat(G.trim());break;case"+":case"I":l[D][b]=_?L.read_shift(-4,"i")^2147483648:L.read_shift(4,"i");break;case"L":switch(G.trim().toUpperCase()){case"Y":case"T":l[D][b]=!0;break;case"N":case"F":l[D][b]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+G+"|")}break;case"M":if(!x)throw new Error("DBF Unexpected MEMO for type "+d.toString(16));l[D][b]="##MEMO##"+(_?parseInt(G.trim(),10):L.read_shift(4));break;case"N":G=G.replace(/\u0000/g,"").trim(),G&&G!="."&&(l[D][b]=+G||0);break;case"@":l[D][b]=new Date(L.read_shift(-8,"f")-621356832e5);break;case"T":l[D][b]=new Date((L.read_shift(4)-2440588)*864e5+L.read_shift(4));break;case"Y":l[D][b]=L.read_shift(4,"i")/1e4+L.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":l[D][b]=-L.read_shift(-8,"f");break;case"B":if(v&&y[b].len==8){l[D][b]=L.read_shift(8,"f");break}case"G":case"P":L.l+=y[b].len;break;case"0":if(y[b].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+y[b].type)}}}if(d!=2&&c.l<c.length&&c[c.l++]!=26)throw new Error("DBF EOF Marker missing "+(c.l-1)+" of "+c.length+" "+c[c.l-1].toString(16));return o.sheetRows&&(l=l.slice(0,o.sheetRows)),o.DBF=y,l}function n(f,o){var l=o||{};l.dateNF||(l.dateNF="yyyymmdd");var c=lt(r(f,l),l);return c["!cols"]=l.DBF.map(function(d){return{wch:d.len,DBF:d}}),delete l.DBF,c}function a(f,o){try{return jr(n(f,o),o)}catch(l){if(o&&o.WTF)throw l}return{SheetNames:[],Sheets:{}}}var i={B:8,C:250,L:1,D:8,"?":0,"":0};function s(f,o){var l=o||{};if(+l.codepage>=0&&wt(+l.codepage),l.type=="string")throw new Error("Cannot write DBF to JS string");var c=Je(),d=i0(f,{header:1,raw:!0,cellDates:!0}),x=d[0],v=d.slice(1),_=f["!cols"]||[],u=0,g=0,C=0,O=1;for(u=0;u<x.length;++u){if(((_[u]||{}).DBF||{}).name){x[u]=_[u].DBF.name,++C;continue}if(x[u]!=null){if(++C,typeof x[u]=="number"&&(x[u]=x[u].toString(10)),typeof x[u]!="string")throw new Error("DBF Invalid column name "+x[u]+" |"+typeof x[u]+"|");if(x.indexOf(x[u])!==u){for(g=0;g<1024;++g)if(x.indexOf(x[u]+"_"+g)==-1){x[u]+="_"+g;break}}}}var y=Ee(f["!ref"]),M=[],Y=[],ee=[];for(u=0;u<=y.e.c-y.s.c;++u){var D="",b="",L=0,G=[];for(g=0;g<v.length;++g)v[g][u]!=null&&G.push(v[g][u]);if(G.length==0||x[u]==null){M[u]="?";continue}for(g=0;g<G.length;++g){switch(typeof G[g]){case"number":b="B";break;case"string":b="C";break;case"boolean":b="L";break;case"object":b=G[g]instanceof Date?"D":"C";break;default:b="C"}L=Math.max(L,String(G[g]).length),D=D&&D!=b?"C":b}L>250&&(L=250),b=((_[u]||{}).DBF||{}).type,b=="C"&&_[u].DBF.len>L&&(L=_[u].DBF.len),D=="B"&&b=="N"&&(D="N",ee[u]=_[u].DBF.dec,L=_[u].DBF.len),Y[u]=D=="C"||b=="N"?L:i[D]||0,O+=Y[u],M[u]=D}var V=c.next(32);for(V.write_shift(4,318902576),V.write_shift(4,v.length),V.write_shift(2,296+32*C),V.write_shift(2,O),u=0;u<4;++u)V.write_shift(4,0);for(V.write_shift(4,0|(+t[Zn]||3)<<8),u=0,g=0;u<x.length;++u)if(x[u]!=null){var j=c.next(32),re=(x[u].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);j.write_shift(1,re,"sbcs"),j.write_shift(1,M[u]=="?"?"C":M[u],"sbcs"),j.write_shift(4,g),j.write_shift(1,Y[u]||i[M[u]]||0),j.write_shift(1,ee[u]||0),j.write_shift(1,2),j.write_shift(4,0),j.write_shift(1,0),j.write_shift(4,0),j.write_shift(4,0),g+=Y[u]||i[M[u]]||0}var ge=c.next(264);for(ge.write_shift(4,13),u=0;u<65;++u)ge.write_shift(4,0);for(u=0;u<v.length;++u){var le=c.next(O);for(le.write_shift(1,0),g=0;g<x.length;++g)if(x[g]!=null)switch(M[g]){case"L":le.write_shift(1,v[u][g]==null?63:v[u][g]?84:70);break;case"B":le.write_shift(8,v[u][g]||0,"f");break;case"N":var Me="0";for(typeof v[u][g]=="number"&&(Me=v[u][g].toFixed(ee[g]||0)),C=0;C<Y[g]-Me.length;++C)le.write_shift(1,32);le.write_shift(1,Me,"sbcs");break;case"D":v[u][g]?(le.write_shift(4,("0000"+v[u][g].getFullYear()).slice(-4),"sbcs"),le.write_shift(2,("00"+(v[u][g].getMonth()+1)).slice(-2),"sbcs"),le.write_shift(2,("00"+v[u][g].getDate()).slice(-2),"sbcs")):le.write_shift(8,"00000000","sbcs");break;case"C":var Ce=String(v[u][g]!=null?v[u][g]:"").slice(0,Y[g]);for(le.write_shift(1,Ce,"sbcs"),C=0;C<Y[g]-Ce.length;++C)le.write_shift(1,32);break}}return c.next(1).write_shift(1,26),c.end()}return{to_workbook:a,to_sheet:n,from_sheet:s}}(),fl=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1BN("+Ge(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(x,v){var _=e[v];return typeof _=="number"?on(_):_},n=function(x,v,_){var u=v.charCodeAt(0)-32<<4|_.charCodeAt(0)-48;return u==59?x:on(u)};e["|"]=254;function a(x,v){switch(v.type){case"base64":return i(Cr(x),v);case"binary":return i(x,v);case"buffer":return i(ue&&Buffer.isBuffer(x)?x.toString("binary"):Dt(x),v);case"array":return i(c0(x),v)}throw new Error("Unrecognized type "+v.type)}function i(x,v){var _=x.split(/[\n\r]+/),u=-1,g=-1,C=0,O=0,y=[],M=[],Y=null,ee={},D=[],b=[],L=[],G=0,V;for(+v.codepage>=0&&wt(+v.codepage);C!==_.length;++C){G=0;var j=_[C].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),re=j.replace(/;;/g,"\0").split(";").map(function(A){return A.replace(/\u0000/g,";")}),ge=re[0],le;if(j.length>0)switch(ge){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":re[1].charAt(0)=="P"&&M.push(j.slice(3).replace(/;;/g,";"));break;case"C":var Me=!1,Ce=!1,cr=!1,Ne=!1,ir=-1,Qe=-1;for(O=1;O<re.length;++O)switch(re[O].charAt(0)){case"A":break;case"X":g=parseInt(re[O].slice(1))-1,Ce=!0;break;case"Y":for(u=parseInt(re[O].slice(1))-1,Ce||(g=0),V=y.length;V<=u;++V)y[V]=[];break;case"K":le=re[O].slice(1),le.charAt(0)==='"'?le=le.slice(1,le.length-1):le==="TRUE"?le=!0:le==="FALSE"?le=!1:isNaN(Fr(le))?isNaN(At(le).getDate())||(le=$e(le)):(le=Fr(le),Y!==null&&oa(Y)&&(le=xa(le))),Me=!0;break;case"E":Ne=!0;var S=io(re[O].slice(1),{r:u,c:g});y[u][g]=[y[u][g],S];break;case"S":cr=!0,y[u][g]=[y[u][g],"S5S"];break;case"G":break;case"R":ir=parseInt(re[O].slice(1))-1;break;case"C":Qe=parseInt(re[O].slice(1))-1;break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+j)}if(Me&&(y[u][g]&&y[u][g].length==2?y[u][g][0]=le:y[u][g]=le,Y=null),cr){if(Ne)throw new Error("SYLK shared formula cannot have own formula");var P=ir>-1&&y[ir][Qe];if(!P||!P[1])throw new Error("SYLK shared formula cannot find base");y[u][g][1]=so(P[1],{r:u-ir,c:g-Qe})}break;case"F":var F=0;for(O=1;O<re.length;++O)switch(re[O].charAt(0)){case"X":g=parseInt(re[O].slice(1))-1,++F;break;case"Y":for(u=parseInt(re[O].slice(1))-1,V=y.length;V<=u;++V)y[V]=[];break;case"M":G=parseInt(re[O].slice(1))/20;break;case"F":break;case"G":break;case"P":Y=M[parseInt(re[O].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(L=re[O].slice(1).split(" "),V=parseInt(L[0],10);V<=parseInt(L[1],10);++V)G=parseInt(L[2],10),b[V-1]=G===0?{hidden:!0}:{wch:G},j0(b[V-1]);break;case"C":g=parseInt(re[O].slice(1))-1,b[g]||(b[g]={});break;case"R":u=parseInt(re[O].slice(1))-1,D[u]||(D[u]={}),G>0?(D[u].hpt=G,D[u].hpx=ei(G)):G===0&&(D[u].hidden=!0);break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+j)}F<1&&(Y=null);break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+j)}}return D.length>0&&(ee["!rows"]=D),b.length>0&&(ee["!cols"]=b),v&&v.sheetRows&&(y=y.slice(0,v.sheetRows)),[y,ee]}function s(x,v){var _=a(x,v),u=_[0],g=_[1],C=lt(u,v);return Ge(g).forEach(function(O){C[O]=g[O]}),C}function f(x,v){return jr(s(x,v),v)}function o(x,v,_,u){var g="C;Y"+(_+1)+";X"+(u+1)+";K";switch(x.t){case"n":g+=x.v||0,x.f&&!x.F&&(g+=";E"+z0(x.f,{r:_,c:u}));break;case"b":g+=x.v?"TRUE":"FALSE";break;case"e":g+=x.w||x.v;break;case"d":g+='"'+(x.w||x.v)+'"';break;case"s":g+='"'+x.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return g}function l(x,v){v.forEach(function(_,u){var g="F;W"+(u+1)+" "+(u+1)+" ";_.hidden?g+="0":(typeof _.width=="number"&&!_.wpx&&(_.wpx=r0(_.width)),typeof _.wpx=="number"&&!_.wch&&(_.wch=t0(_.wpx)),typeof _.wch=="number"&&(g+=Math.round(_.wch))),g.charAt(g.length-1)!=" "&&x.push(g)})}function c(x,v){v.forEach(function(_,u){var g="F;";_.hidden?g+="M0;":_.hpt?g+="M"+20*_.hpt+";":_.hpx&&(g+="M"+20*n0(_.hpx)+";"),g.length>2&&x.push(g+"R"+(u+1))})}function d(x,v){var _=["ID;PWXL;N;E"],u=[],g=Ee(x["!ref"]),C,O=Array.isArray(x),y=`\r
+`;_.push("P;PGeneral"),_.push("F;P0;DG0G8;M255"),x["!cols"]&&l(_,x["!cols"]),x["!rows"]&&c(_,x["!rows"]),_.push("B;Y"+(g.e.r-g.s.r+1)+";X"+(g.e.c-g.s.c+1)+";D"+[g.s.c,g.s.r,g.e.c,g.e.r].join(" "));for(var M=g.s.r;M<=g.e.r;++M)for(var Y=g.s.c;Y<=g.e.c;++Y){var ee=me({r:M,c:Y});C=O?(x[M]||[])[Y]:x[ee],!(!C||C.v==null&&(!C.f||C.F))&&u.push(o(C,x,M,Y))}return _.join(y)+y+u.join(y)+y+"E"+y}return{to_workbook:f,to_sheet:s,from_sheet:d}}(),ll=function(){function e(i,s){switch(s.type){case"base64":return t(Cr(i),s);case"binary":return t(i,s);case"buffer":return t(ue&&Buffer.isBuffer(i)?i.toString("binary"):Dt(i),s);case"array":return t(c0(i),s)}throw new Error("Unrecognized type "+s.type)}function t(i,s){for(var f=i.split(`
+`),o=-1,l=-1,c=0,d=[];c!==f.length;++c){if(f[c].trim()==="BOT"){d[++o]=[],l=0;continue}if(!(o<0)){var x=f[c].trim().split(","),v=x[0],_=x[1];++c;for(var u=f[c]||"";(u.match(/["]/g)||[]).length&1&&c<f.length-1;)u+=`
+`+f[++c];switch(u=u.trim(),+v){case-1:if(u==="BOT"){d[++o]=[],l=0;continue}else if(u!=="EOD")throw new Error("Unrecognized DIF special command "+u);break;case 0:u==="TRUE"?d[o][l]=!0:u==="FALSE"?d[o][l]=!1:isNaN(Fr(_))?isNaN(At(_).getDate())?d[o][l]=_:d[o][l]=$e(_):d[o][l]=Fr(_),++l;break;case 1:u=u.slice(1,u.length-1),u=u.replace(/""/g,'"'),u&&u.match(/^=".*"$/)&&(u=u.slice(2,-1)),d[o][l++]=u!==""?u:null;break}if(u==="EOD")break}}return s&&s.sheetRows&&(d=d.slice(0,s.sheetRows)),d}function r(i,s){return lt(e(i,s),s)}function n(i,s){return jr(r(i,s),s)}var a=function(){var i=function(o,l,c,d,x){o.push(l),o.push(c+","+d),o.push('"'+x.replace(/"/g,'""')+'"')},s=function(o,l,c,d){o.push(l+","+c),o.push(l==1?'"'+d.replace(/"/g,'""')+'"':d)};return function(o){var l=[],c=Ee(o["!ref"]),d,x=Array.isArray(o);i(l,"TABLE",0,1,"sheetjs"),i(l,"VECTORS",0,c.e.r-c.s.r+1,""),i(l,"TUPLES",0,c.e.c-c.s.c+1,""),i(l,"DATA",0,0,"");for(var v=c.s.r;v<=c.e.r;++v){s(l,-1,0,"BOT");for(var _=c.s.c;_<=c.e.c;++_){var u=me({r:v,c:_});if(d=x?(o[v]||[])[_]:o[u],!d){s(l,1,0,"");continue}switch(d.t){case"n":var g=d.w;!g&&d.v!=null&&(g=d.v),g==null?d.f&&!d.F?s(l,1,0,"="+d.f):s(l,1,0,""):s(l,0,g,"V");break;case"b":s(l,0,d.v?1:0,d.v?"TRUE":"FALSE");break;case"s":s(l,1,0,isNaN(d.v)?d.v:'="'+d.v+'"');break;case"d":d.w||(d.w=kr(d.z||ye[14],Ze($e(d.v)))),s(l,0,d.w,"V");break;default:s(l,1,0,"")}}}s(l,-1,0,"EOD");var C=`\r
+`,O=l.join(C);return O}}();return{to_workbook:n,to_sheet:r,from_sheet:a}}(),Ja=function(){function e(d){return d.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
+`)}function t(d){return d.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(d,x){for(var v=d.split(`
+`),_=-1,u=-1,g=0,C=[];g!==v.length;++g){var O=v[g].trim().split(":");if(O[0]==="cell"){var y=Pe(O[1]);if(C.length<=y.r)for(_=C.length;_<=y.r;++_)C[_]||(C[_]=[]);switch(_=y.r,u=y.c,O[2]){case"t":C[_][u]=e(O[3]);break;case"v":C[_][u]=+O[3];break;case"vtf":var M=O[O.length-1];case"vtc":switch(O[3]){case"nl":C[_][u]=!!+O[4];break;default:C[_][u]=+O[4];break}O[2]=="vtf"&&(C[_][u]=[C[_][u],M])}}}return x&&x.sheetRows&&(C=C.slice(0,x.sheetRows)),C}function n(d,x){return lt(r(d,x),x)}function a(d,x){return jr(n(d,x),x)}var i=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
+`),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
+`)+`
+`,f=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
+`),o="--SocialCalcSpreadsheetControlSave--";function l(d){if(!d||!d["!ref"])return"";for(var x=[],v=[],_,u="",g=ar(d["!ref"]),C=Array.isArray(d),O=g.s.r;O<=g.e.r;++O)for(var y=g.s.c;y<=g.e.c;++y)if(u=me({r:O,c:y}),_=C?(d[O]||[])[y]:d[u],!(!_||_.v==null||_.t==="z")){switch(v=["cell",u,"t"],_.t){case"s":case"str":v.push(t(_.v));break;case"n":_.f?(v[2]="vtf",v[3]="n",v[4]=_.v,v[5]=t(_.f)):(v[2]="v",v[3]=_.v);break;case"b":v[2]="vt"+(_.f?"f":"c"),v[3]="nl",v[4]=_.v?"1":"0",v[5]=t(_.f||(_.v?"TRUE":"FALSE"));break;case"d":var M=Ze($e(_.v));v[2]="vtc",v[3]="nd",v[4]=""+M,v[5]=_.w||kr(_.z||ye[14],M);break;case"e":continue}x.push(v.join(":"))}return x.push("sheet:c:"+(g.e.c-g.s.c+1)+":r:"+(g.e.r-g.s.r+1)+":tvf:1"),x.push("valueformat:1:text-wiki"),x.join(`
+`)}function c(d){return[i,s,f,s,l(d),o].join(`
+`)}return{to_workbook:a,to_sheet:n,from_sheet:c}}(),ol=function(){function e(c,d,x,v,_){_.raw?d[x][v]=c:c===""||(c==="TRUE"?d[x][v]=!0:c==="FALSE"?d[x][v]=!1:isNaN(Fr(c))?isNaN(At(c).getDate())?d[x][v]=c:d[x][v]=$e(c):d[x][v]=Fr(c))}function t(c,d){var x=d||{},v=[];if(!c||c.length===0)return v;for(var _=c.split(/[\r\n]/),u=_.length-1;u>=0&&_[u].length===0;)--u;for(var g=10,C=0,O=0;O<=u;++O)C=_[O].indexOf(" "),C==-1?C=_[O].length:C++,g=Math.max(g,C);for(O=0;O<=u;++O){v[O]=[];var y=0;for(e(_[O].slice(0,g).trim(),v,O,y,x),y=1;y<=(_[O].length-g)/10+1;++y)e(_[O].slice(g+(y-1)*10,g+y*10).trim(),v,O,y,x)}return x.sheetRows&&(v=v.slice(0,x.sheetRows)),v}var r={44:",",9:"	",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(c){for(var d={},x=!1,v=0,_=0;v<c.length;++v)(_=c.charCodeAt(v))==34?x=!x:!x&&_ in r&&(d[_]=(d[_]||0)+1);_=[];for(v in d)Object.prototype.hasOwnProperty.call(d,v)&&_.push([d[v],v]);if(!_.length){d=n;for(v in d)Object.prototype.hasOwnProperty.call(d,v)&&_.push([d[v],v])}return _.sort(function(u,g){return u[0]-g[0]||n[u[1]]-n[g[1]]}),r[_.pop()[1]]||44}function i(c,d){var x=d||{},v="",_=x.dense?[]:{},u={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(v=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(v=c.charAt(4),c=c.slice(6)):v=a(c.slice(0,1024)):x.FS?v=x.FS:v=a(c.slice(0,1024));var g=0,C=0,O=0,y=0,M=0,Y=v.charCodeAt(0),ee=!1,D=0,b=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
+`);var L=x.dateNF!=null?As(x.dateNF):null;function G(){var V=c.slice(y,M),j={};if(V.charAt(0)=='"'&&V.charAt(V.length-1)=='"'&&(V=V.slice(1,-1).replace(/""/g,'"')),V.length===0)j.t="z";else if(x.raw)j.t="s",j.v=V;else if(V.trim().length===0)j.t="s",j.v=V;else if(V.charCodeAt(0)==61)V.charCodeAt(1)==34&&V.charCodeAt(V.length-1)==34?(j.t="s",j.v=V.slice(2,-1).replace(/""/g,'"')):fo(V)?(j.t="n",j.f=V.slice(1)):(j.t="s",j.v=V);else if(V=="TRUE")j.t="b",j.v=!0;else if(V=="FALSE")j.t="b",j.v=!1;else if(!isNaN(O=Fr(V)))j.t="n",x.cellText!==!1&&(j.w=V),j.v=O;else if(!isNaN(At(V).getDate())||L&&V.match(L)){j.z=x.dateNF||ye[14];var re=0;L&&V.match(L)&&(V=Fs(V,x.dateNF,V.match(L)||[]),re=1),x.cellDates?(j.t="d",j.v=$e(V,re)):(j.t="n",j.v=Ze($e(V,re))),x.cellText!==!1&&(j.w=kr(j.z,j.v instanceof Date?Ze(j.v):j.v)),x.cellNF||delete j.z}else j.t="s",j.v=V;if(j.t=="z"||(x.dense?(_[g]||(_[g]=[]),_[g][C]=j):_[me({c:C,r:g})]=j),y=M+1,b=c.charCodeAt(y),u.e.c<C&&(u.e.c=C),u.e.r<g&&(u.e.r=g),D==Y)++C;else if(C=0,++g,x.sheetRows&&x.sheetRows<=g)return!0}e:for(;M<c.length;++M)switch(D=c.charCodeAt(M)){case 34:b===34&&(ee=!ee);break;case Y:case 10:case 13:if(!ee&&G())break e;break}return M-y>0&&G(),_["!ref"]=De(u),_}function s(c,d){return!(d&&d.PRN)||d.FS||c.slice(0,4)=="sep="||c.indexOf("	")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?i(c,d):lt(t(c,d),d)}function f(c,d){var x="",v=d.type=="string"?[0,0,0,0]:wu(c,d);switch(d.type){case"base64":x=Cr(c);break;case"binary":x=c;break;case"buffer":d.codepage==65001?x=c.toString("utf8"):(d.codepage,x=ue&&Buffer.isBuffer(c)?c.toString("binary"):Dt(c));break;case"array":x=c0(c);break;case"string":x=c;break;default:throw new Error("Unrecognized type "+d.type)}return v[0]==239&&v[1]==187&&v[2]==191?x=mt(x.slice(3)):d.type!="string"&&d.type!="buffer"&&d.codepage==65001?x=mt(x):d.type=="binary",x.slice(0,19)=="socialcalc:version:"?Ja.to_sheet(d.type=="string"?x:mt(x),d):s(x,d)}function o(c,d){return jr(f(c,d),d)}function l(c){for(var d=[],x=Ee(c["!ref"]),v,_=Array.isArray(c),u=x.s.r;u<=x.e.r;++u){for(var g=[],C=x.s.c;C<=x.e.c;++C){var O=me({r:u,c:C});if(v=_?(c[u]||[])[C]:c[O],!v||v.v==null){g.push("          ");continue}for(var y=(v.w||(Or(v),v.w)||"").slice(0,10);y.length<10;)y+=" ";g.push(y+(C===0?" ":""))}d.push(g.join(""))}return d.join(`
+`)}return{to_workbook:o,to_sheet:f,from_sheet:l}}(),Hn=function(){function e(S,P,F){if(S){rr(S,S.l||0);for(var A=F.Enum||ir;S.l<S.length;){var H=S.read_shift(2),ie=A[H]||A[65535],se=S.read_shift(2),ae=S.l+se,q=ie.f&&ie.f(S,se,F);if(S.l=ae,P(q,ie,H))return}}}function t(S,P){switch(P.type){case"base64":return r(vr(Cr(S)),P);case"binary":return r(vr(S),P);case"buffer":case"array":return r(S,P)}throw"Unsupported type "+P.type}function r(S,P){if(!S)return S;var F=P||{},A=F.dense?[]:{},H="Sheet1",ie="",se=0,ae={},q=[],Te=[],ce={s:{r:0,c:0},e:{r:0,c:0}},Ke=F.sheetRows||0;if(S[2]==0&&(S[3]==8||S[3]==9)&&S.length>=16&&S[14]==5&&S[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(S[2]==2)F.Enum=ir,e(S,function(ne,sr,wr){switch(wr){case 0:F.vers=ne,ne>=4096&&(F.qpro=!0);break;case 6:ce=ne;break;case 204:ne&&(ie=ne);break;case 222:ie=ne;break;case 15:case 51:F.qpro||(ne[1].v=ne[1].v.slice(1));case 13:case 14:case 16:wr==14&&(ne[2]&112)==112&&(ne[2]&15)>1&&(ne[2]&15)<15&&(ne[1].z=F.dateNF||ye[14],F.cellDates&&(ne[1].t="d",ne[1].v=xa(ne[1].v))),F.qpro&&ne[3]>se&&(A["!ref"]=De(ce),ae[H]=A,q.push(H),A=F.dense?[]:{},ce={s:{r:0,c:0},e:{r:0,c:0}},se=ne[3],H=ie||"Sheet"+(se+1),ie="");var Br=F.dense?(A[ne[0].r]||[])[ne[0].c]:A[me(ne[0])];if(Br){Br.t=ne[1].t,Br.v=ne[1].v,ne[1].z!=null&&(Br.z=ne[1].z),ne[1].f!=null&&(Br.f=ne[1].f);break}F.dense?(A[ne[0].r]||(A[ne[0].r]=[]),A[ne[0].r][ne[0].c]=ne[1]):A[me(ne[0])]=ne[1];break}},F);else if(S[2]==26||S[2]==14)F.Enum=Qe,S[2]==14&&(F.qpro=!0,S.l=0),e(S,function(ne,sr,wr){switch(wr){case 204:H=ne;break;case 22:ne[1].v=ne[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ne[3]>se&&(A["!ref"]=De(ce),ae[H]=A,q.push(H),A=F.dense?[]:{},ce={s:{r:0,c:0},e:{r:0,c:0}},se=ne[3],H="Sheet"+(se+1)),Ke>0&&ne[0].r>=Ke)break;F.dense?(A[ne[0].r]||(A[ne[0].r]=[]),A[ne[0].r][ne[0].c]=ne[1]):A[me(ne[0])]=ne[1],ce.e.c<ne[0].c&&(ce.e.c=ne[0].c),ce.e.r<ne[0].r&&(ce.e.r=ne[0].r);break;case 27:ne[14e3]&&(Te[ne[14e3][0]]=ne[14e3][1]);break;case 1537:Te[ne[0]]=ne[1],ne[0]==se&&(H=ne[1]);break}},F);else throw new Error("Unrecognized LOTUS BOF "+S[2]);if(A["!ref"]=De(ce),ae[ie||H]=A,q.push(ie||H),!Te.length)return{SheetNames:q,Sheets:ae};for(var xe={},Er=[],Ae=0;Ae<Te.length;++Ae)ae[q[Ae]]?(Er.push(Te[Ae]||q[Ae]),xe[Te[Ae]]=ae[Te[Ae]]||ae[q[Ae]]):(Er.push(Te[Ae]),xe[Te[Ae]]={"!ref":"A1"});return{SheetNames:Er,Sheets:xe}}function n(S,P){var F=P||{};if(+F.codepage>=0&&wt(+F.codepage),F.type=="string")throw new Error("Cannot write WK1 to JS string");var A=Je(),H=Ee(S["!ref"]),ie=Array.isArray(S),se=[];J(A,0,i(1030)),J(A,6,o(H));for(var ae=Math.min(H.e.r,8191),q=H.s.r;q<=ae;++q)for(var Te=He(q),ce=H.s.c;ce<=H.e.c;++ce){q===H.s.r&&(se[ce]=Xe(ce));var Ke=se[ce]+Te,xe=ie?(S[q]||[])[ce]:S[Ke];if(!(!xe||xe.t=="z"))if(xe.t=="n")(xe.v|0)==xe.v&&xe.v>=-32768&&xe.v<=32767?J(A,13,v(q,ce,xe.v)):J(A,14,u(q,ce,xe.v));else{var Er=Or(xe);J(A,15,d(q,ce,Er.slice(0,239)))}}return J(A,1),A.end()}function a(S,P){var F=P||{};if(+F.codepage>=0&&wt(+F.codepage),F.type=="string")throw new Error("Cannot write WK3 to JS string");var A=Je();J(A,0,s(S));for(var H=0,ie=0;H<S.SheetNames.length;++H)(S.Sheets[S.SheetNames[H]]||{})["!ref"]&&J(A,27,Ne(S.SheetNames[H],ie++));var se=0;for(H=0;H<S.SheetNames.length;++H){var ae=S.Sheets[S.SheetNames[H]];if(!(!ae||!ae["!ref"])){for(var q=Ee(ae["!ref"]),Te=Array.isArray(ae),ce=[],Ke=Math.min(q.e.r,8191),xe=q.s.r;xe<=Ke;++xe)for(var Er=He(xe),Ae=q.s.c;Ae<=q.e.c;++Ae){xe===q.s.r&&(ce[Ae]=Xe(Ae));var ne=ce[Ae]+Er,sr=Te?(ae[xe]||[])[Ae]:ae[ne];if(!(!sr||sr.t=="z"))if(sr.t=="n")J(A,23,G(xe,Ae,se,sr.v));else{var wr=Or(sr);J(A,22,D(xe,Ae,se,wr.slice(0,239)))}}++se}}return J(A,1),A.end()}function i(S){var P=B(2);return P.write_shift(2,S),P}function s(S){var P=B(26);P.write_shift(2,4096),P.write_shift(2,4),P.write_shift(4,0);for(var F=0,A=0,H=0,ie=0;ie<S.SheetNames.length;++ie){var se=S.SheetNames[ie],ae=S.Sheets[se];if(!(!ae||!ae["!ref"])){++H;var q=ar(ae["!ref"]);F<q.e.r&&(F=q.e.r),A<q.e.c&&(A=q.e.c)}}return F>8191&&(F=8191),P.write_shift(2,F),P.write_shift(1,H),P.write_shift(1,A),P.write_shift(2,0),P.write_shift(2,0),P.write_shift(1,1),P.write_shift(1,2),P.write_shift(4,0),P.write_shift(4,0),P}function f(S,P,F){var A={s:{c:0,r:0},e:{c:0,r:0}};return P==8&&F.qpro?(A.s.c=S.read_shift(1),S.l++,A.s.r=S.read_shift(2),A.e.c=S.read_shift(1),S.l++,A.e.r=S.read_shift(2),A):(A.s.c=S.read_shift(2),A.s.r=S.read_shift(2),P==12&&F.qpro&&(S.l+=2),A.e.c=S.read_shift(2),A.e.r=S.read_shift(2),P==12&&F.qpro&&(S.l+=2),A.s.c==65535&&(A.s.c=A.e.c=A.s.r=A.e.r=0),A)}function o(S){var P=B(8);return P.write_shift(2,S.s.c),P.write_shift(2,S.s.r),P.write_shift(2,S.e.c),P.write_shift(2,S.e.r),P}function l(S,P,F){var A=[{c:0,r:0},{t:"n",v:0},0,0];return F.qpro&&F.vers!=20768?(A[0].c=S.read_shift(1),A[3]=S.read_shift(1),A[0].r=S.read_shift(2),S.l+=2):(A[2]=S.read_shift(1),A[0].c=S.read_shift(2),A[0].r=S.read_shift(2)),A}function c(S,P,F){var A=S.l+P,H=l(S,P,F);if(H[1].t="s",F.vers==20768){S.l++;var ie=S.read_shift(1);return H[1].v=S.read_shift(ie,"utf8"),H}return F.qpro&&S.l++,H[1].v=S.read_shift(A-S.l,"cstr"),H}function d(S,P,F){var A=B(7+F.length);A.write_shift(1,255),A.write_shift(2,P),A.write_shift(2,S),A.write_shift(1,39);for(var H=0;H<A.length;++H){var ie=F.charCodeAt(H);A.write_shift(1,ie>=128?95:ie)}return A.write_shift(1,0),A}function x(S,P,F){var A=l(S,P,F);return A[1].v=S.read_shift(2,"i"),A}function v(S,P,F){var A=B(7);return A.write_shift(1,255),A.write_shift(2,P),A.write_shift(2,S),A.write_shift(2,F,"i"),A}function _(S,P,F){var A=l(S,P,F);return A[1].v=S.read_shift(8,"f"),A}function u(S,P,F){var A=B(13);return A.write_shift(1,255),A.write_shift(2,P),A.write_shift(2,S),A.write_shift(8,F,"f"),A}function g(S,P,F){var A=S.l+P,H=l(S,P,F);if(H[1].v=S.read_shift(8,"f"),F.qpro)S.l=A;else{var ie=S.read_shift(2);M(S.slice(S.l,S.l+ie),H),S.l+=ie}return H}function C(S,P,F){var A=P&32768;return P&=-32769,P=(A?S:0)+(P>=8192?P-16384:P),(A?"":"$")+(F?Xe(P):He(P))}var O={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},y=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function M(S,P){rr(S,0);for(var F=[],A=0,H="",ie="",se="",ae="";S.l<S.length;){var q=S[S.l++];switch(q){case 0:F.push(S.read_shift(8,"f"));break;case 1:ie=C(P[0].c,S.read_shift(2),!0),H=C(P[0].r,S.read_shift(2),!1),F.push(ie+H);break;case 2:{var Te=C(P[0].c,S.read_shift(2),!0),ce=C(P[0].r,S.read_shift(2),!1);ie=C(P[0].c,S.read_shift(2),!0),H=C(P[0].r,S.read_shift(2),!1),F.push(Te+ce+":"+ie+H)}break;case 3:if(S.l<S.length){console.error("WK1 premature formula end");return}break;case 4:F.push("("+F.pop()+")");break;case 5:F.push(S.read_shift(2));break;case 6:{for(var Ke="";q=S[S.l++];)Ke+=String.fromCharCode(q);F.push('"'+Ke.replace(/"/g,'""')+'"')}break;case 8:F.push("-"+F.pop());break;case 23:F.push("+"+F.pop());break;case 22:F.push("NOT("+F.pop()+")");break;case 20:case 21:ae=F.pop(),se=F.pop(),F.push(["AND","OR"][q-20]+"("+se+","+ae+")");break;default:if(q<32&&y[q])ae=F.pop(),se=F.pop(),F.push(se+y[q]+ae);else if(O[q]){if(A=O[q][1],A==69&&(A=S[S.l++]),A>F.length){console.error("WK1 bad formula parse 0x"+q.toString(16)+":|"+F.join("|")+"|");return}var xe=F.slice(-A);F.length-=A,F.push(O[q][0]+"("+xe.join(",")+")")}else return q<=7?console.error("WK1 invalid opcode "+q.toString(16)):q<=24?console.error("WK1 unsupported op "+q.toString(16)):q<=30?console.error("WK1 invalid opcode "+q.toString(16)):q<=115?console.error("WK1 unsupported function opcode "+q.toString(16)):console.error("WK1 unrecognized opcode "+q.toString(16))}}F.length==1?P[1].f=""+F[0]:console.error("WK1 bad formula parse |"+F.join("|")+"|")}function Y(S){var P=[{c:0,r:0},{t:"n",v:0},0];return P[0].r=S.read_shift(2),P[3]=S[S.l++],P[0].c=S[S.l++],P}function ee(S,P){var F=Y(S);return F[1].t="s",F[1].v=S.read_shift(P-4,"cstr"),F}function D(S,P,F,A){var H=B(6+A.length);H.write_shift(2,S),H.write_shift(1,F),H.write_shift(1,P),H.write_shift(1,39);for(var ie=0;ie<A.length;++ie){var se=A.charCodeAt(ie);H.write_shift(1,se>=128?95:se)}return H.write_shift(1,0),H}function b(S,P){var F=Y(S);F[1].v=S.read_shift(2);var A=F[1].v>>1;if(F[1].v&1)switch(A&7){case 0:A=(A>>3)*5e3;break;case 1:A=(A>>3)*500;break;case 2:A=(A>>3)/20;break;case 3:A=(A>>3)/200;break;case 4:A=(A>>3)/2e3;break;case 5:A=(A>>3)/2e4;break;case 6:A=(A>>3)/16;break;case 7:A=(A>>3)/64;break}return F[1].v=A,F}function L(S,P){var F=Y(S),A=S.read_shift(4),H=S.read_shift(4),ie=S.read_shift(2);if(ie==65535)return A===0&&H===3221225472?(F[1].t="e",F[1].v=15):A===0&&H===3489660928?(F[1].t="e",F[1].v=42):F[1].v=0,F;var se=ie&32768;return ie=(ie&32767)-16446,F[1].v=(1-se*2)*(H*Math.pow(2,ie+32)+A*Math.pow(2,ie)),F}function G(S,P,F,A){var H=B(14);if(H.write_shift(2,S),H.write_shift(1,F),H.write_shift(1,P),A==0)return H.write_shift(4,0),H.write_shift(4,0),H.write_shift(2,65535),H;var ie=0,se=0,ae=0,q=0;return A<0&&(ie=1,A=-A),se=Math.log2(A)|0,A/=Math.pow(2,se-31),q=A>>>0,q&2147483648||(A/=2,++se,q=A>>>0),A-=q,q|=2147483648,q>>>=0,A*=Math.pow(2,32),ae=A>>>0,H.write_shift(4,ae),H.write_shift(4,q),se+=16383+(ie?32768:0),H.write_shift(2,se),H}function V(S,P){var F=L(S);return S.l+=P-14,F}function j(S,P){var F=Y(S),A=S.read_shift(4);return F[1].v=A>>6,F}function re(S,P){var F=Y(S),A=S.read_shift(8,"f");return F[1].v=A,F}function ge(S,P){var F=re(S);return S.l+=P-10,F}function le(S,P){return S[S.l+P-1]==0?S.read_shift(P,"cstr"):""}function Me(S,P){var F=S[S.l++];F>P-1&&(F=P-1);for(var A="";A.length<F;)A+=String.fromCharCode(S[S.l++]);return A}function Ce(S,P,F){if(!(!F.qpro||P<21)){var A=S.read_shift(1);S.l+=17,S.l+=1,S.l+=2;var H=S.read_shift(P-21,"cstr");return[A,H]}}function cr(S,P){for(var F={},A=S.l+P;S.l<A;){var H=S.read_shift(2);if(H==14e3){for(F[H]=[0,""],F[H][0]=S.read_shift(2);S[S.l];)F[H][1]+=String.fromCharCode(S[S.l]),S.l++;S.l++}}return F}function Ne(S,P){var F=B(5+S.length);F.write_shift(2,14e3),F.write_shift(2,P);for(var A=0;A<S.length;++A){var H=S.charCodeAt(A);F[F.l++]=H>127?95:H}return F[F.l++]=0,F}var ir={0:{n:"BOF",f:ja},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:x},14:{n:"NUMBER",f:_},15:{n:"LABEL",f:c},16:{n:"FORMULA",f:g},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:c},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:le},222:{n:"SHEETNAMELP",f:Me},65535:{n:""}},Qe={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:ee},23:{n:"NUMBER17",f:L},24:{n:"NUMBER18",f:b},25:{n:"FORMULA19",f:V},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:cr},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:j},38:{n:"??"},39:{n:"NUMBER27",f:re},40:{n:"FORMULA28",f:ge},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:le},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:Ce},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:a,to_workbook:t}}(),cl=/^\s|\s$|[\t\n\r]/;function Za(e,t){if(!t.bookSST)return"";var r=[Re];r[r.length]=z("sst",null,{xmlns:ft[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var a=e[n],i="<si>";a.r?i+=a.r:(i+="<t",a.t||(a.t=""),a.t.match(cl)&&(i+=' xml:space="preserve"'),i+=">"+pe(a.t)+"</t>"),i+="</si>",r[r.length]=i}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function hl(e){return[e.read_shift(4),e.read_shift(4)]}function ul(e,t){return t||(t=B(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var xl=tf;function vl(e){var t=Je();W(t,159,ul(e));for(var r=0;r<e.length;++r)W(t,19,xl(e[r]));return W(t,160),t.end()}function dl(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function qa(e){var t=0,r,n=dl(e),a=n.length+1,i,s,f,o,l;for(r=Gr(a),r[0]=n.length,i=1;i!=a;++i)r[i]=n[i-1];for(i=a-1;i>=0;--i)s=r[i],f=t&16384?1:0,o=t<<1&32767,l=f|o,t=l^s;return t^52811}var pl=function(){function e(a,i){switch(i.type){case"base64":return t(Cr(a),i);case"binary":return t(a,i);case"buffer":return t(ue&&Buffer.isBuffer(a)?a.toString("binary"):Dt(a),i);case"array":return t(c0(a),i)}throw new Error("Unrecognized type "+i.type)}function t(a,i){var s=i||{},f=s.dense?[]:{},o=a.match(/\\trowd.*?\\row\b/g);if(!o.length)throw new Error("RTF missing table");var l={s:{c:0,r:0},e:{c:0,r:o.length-1}};return o.forEach(function(c,d){Array.isArray(f)&&(f[d]=[]);for(var x=/\\\w+\b/g,v=0,_,u=-1;_=x.exec(c);){switch(_[0]){case"\\cell":var g=c.slice(v,x.lastIndex-_[0].length);if(g[0]==" "&&(g=g.slice(1)),++u,g.length){var C={v:g,t:"s"};Array.isArray(f)?f[d][u]=C:f[me({r:d,c:u})]=C}break}v=x.lastIndex}u>l.e.c&&(l.e.c=u)}),f["!ref"]=De(l),f}function r(a,i){return jr(e(a,i),i)}function n(a){for(var i=["{\\rtf1\\ansi"],s=Ee(a["!ref"]),f,o=Array.isArray(a),l=s.s.r;l<=s.e.r;++l){i.push("\\trowd\\trautofit1");for(var c=s.s.c;c<=s.e.c;++c)i.push("\\cellx"+(c+1));for(i.push("\\pard\\intbl"),c=s.s.c;c<=s.e.c;++c){var d=me({r:l,c});f=o?(a[l]||[])[c]:a[d],!(!f||f.v==null&&(!f.f||f.F))&&(i.push(" "+(f.w||(Or(f),f.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function Gn(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}var ml=6,yr=ml;function r0(e){return Math.floor((e+Math.round(128/yr)/256)*yr)}function t0(e){return Math.floor((e-5)/yr*100+.5)/100}function R0(e){return Math.round((e*yr+5)/yr*256)/256}function j0(e){e.width?(e.wpx=r0(e.width),e.wch=t0(e.wpx),e.MDW=yr):e.wpx?(e.wch=t0(e.wpx),e.width=R0(e.wch),e.MDW=yr):typeof e.wch=="number"&&(e.width=R0(e.wch),e.wpx=r0(e.width),e.MDW=yr),e.customWidth&&delete e.customWidth}var gl=96,Qa=gl;function n0(e){return e*96/Qa}function ei(e){return e*Qa/96}function _l(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=z("numFmt",null,{numFmtId:n,formatCode:pe(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=z("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function Tl(e){var t=[];return t[t.length]=z("cellXfs",null),e.forEach(function(r){t[t.length]=z("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=z("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function ri(e,t){var r=[Re,z("styleSheet",null,{xmlns:ft[0],"xmlns:vt":ke.vt})],n;return e.SSF&&(n=_l(e.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=Tl(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function El(e,t){var r=e.read_shift(2),n=je(e);return[r,n]}function wl(e,t,r){r||(r=B(6+4*t.length)),r.write_shift(2,e),Le(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function Sl(e,t,r){var n={};n.sz=e.read_shift(2)/20;var a=cf(e);a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1);var i=e.read_shift(2);switch(i===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(n.underline=s);var f=e.read_shift(1);f>0&&(n.family=f);var o=e.read_shift(1);switch(o>0&&(n.charset=o),e.l++,n.color=of(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=je(e),n}function Al(e,t){t||(t=B(25+4*32)),t.write_shift(2,e.sz*20),hf(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Qt(e.color,t);var n=0;return e.scheme=="major"&&(n=1),e.scheme=="minor"&&(n=2),t.write_shift(1,n),Le(e.name,t),t.length>t.l?t.slice(0,t.l):t}var Fl=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],S0,yl=Tr;function Vn(e,t){t||(t=B(4*3+8*7+16*1)),S0||(S0=k0(Fl));var r=S0[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(Qt({auto:1},t),Qt({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function Cl(e,t){var r=e.l+t,n=e.read_shift(2),a=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:a}}function ti(e,t,r){r||(r=B(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function vt(e,t){return t||(t=B(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var Ol=Tr;function Dl(e,t){return t||(t=B(51)),t.write_shift(1,0),vt(null,t),vt(null,t),vt(null,t),vt(null,t),vt(null,t),t.length>t.l?t.slice(0,t.l):t}function Rl(e,t){return t||(t=B(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,0),t.write_shift(1,0),qt(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function Il(e,t,r){var n=B(2052);return n.write_shift(4,e),qt(t,n),qt(r,n),n.length>n.l?n.slice(0,n.l):n}function Nl(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&++r}),r!=0&&(W(e,615,pr(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&W(e,44,wl(a,t[a]))}),W(e,616))}}function kl(e){var t=1;W(e,611,pr(t)),W(e,43,Al({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),W(e,612)}function Pl(e){var t=2;W(e,603,pr(t)),W(e,45,Vn({patternType:"none"})),W(e,45,Vn({patternType:"gray125"})),W(e,604)}function Ll(e){var t=1;W(e,613,pr(t)),W(e,46,Dl()),W(e,614)}function Ml(e){var t=1;W(e,626,pr(t)),W(e,47,ti({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),W(e,627)}function Bl(e,t){W(e,617,pr(t.length)),t.forEach(function(r){W(e,47,ti(r,0))}),W(e,618)}function Ul(e){var t=1;W(e,619,pr(t)),W(e,48,Rl({xfId:0,builtinId:0,name:"Normal"})),W(e,620)}function bl(e){var t=0;W(e,505,pr(t)),W(e,506)}function Wl(e){var t=0;W(e,508,Il(t,"TableStyleMedium9","PivotStyleMedium4")),W(e,509)}function Hl(e,t){var r=Je();return W(r,278),Nl(r,e.SSF),kl(r),Pl(r),Ll(r),Ml(r),Bl(r,t.cellXfs),Ul(r),bl(r),Wl(r),W(r,279),r.end()}function ni(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[Re];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function Gl(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:je(e)}}function Vl(e){var t=B(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),Le(e.name,t),t.slice(0,t.l)}function Xl(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function jl(e){var t=B(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}function Kl(e,t){var r=B(8+2*t.length);return r.write_shift(4,e),Le(t,r),r.slice(0,r.l)}function zl(e){return e.l+=4,e.read_shift(4)!=0}function Yl(e,t){var r=B(8);return r.write_shift(4,e),r.write_shift(4,1),r}function $l(){var e=Je();return W(e,332),W(e,334,pr(1)),W(e,335,Vl({name:"XLDAPR",version:12e4,flags:3496657072})),W(e,336),W(e,339,Kl(1,"XLDAPR")),W(e,52),W(e,35,pr(514)),W(e,4096,pr(0)),W(e,4097,lr(1)),W(e,36),W(e,53),W(e,340),W(e,337,Yl(1)),W(e,51,jl([[1,0]])),W(e,338),W(e,333),e.end()}function ai(){var e=[Re];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
+  <metadataTypes count="1">
+    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
+  </metadataTypes>
+  <futureMetadata name="XLDAPR" count="1">
+    <bk>
+      <extLst>
+        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
+          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
+        </ext>
+      </extLst>
+    </bk>
+  </futureMetadata>
+  <cellMetadata count="1">
+    <bk>
+      <rc t="1" v="0"/>
+    </bk>
+  </cellMetadata>
+</metadata>`),e.join("")}function Jl(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=me(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var rt=1024;function ii(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[z("xml",null,{"xmlns:v":tr.v,"xmlns:o":tr.o,"xmlns:x":tr.x,"xmlns:mv":tr.mv}).replace(/\/>/,">"),z("o:shapelayout",z("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),z("v:shapetype",[z("v:stroke",null,{joinstyle:"miter"}),z("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];rt<e*1e3;)rt+=1e3;return t.forEach(function(i){var s=Pe(i[0]),f={color2:"#BEFF82",type:"gradient"};f.type=="gradient"&&(f.angle="-180");var o=f.type=="gradient"?z("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,l=z("v:fill",o,f),c={on:"t",obscured:"t"};++rt,a=a.concat(["<v:shape"+yt({id:"_x0000_s"+rt,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(i[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",l,z("v:shadow",null,c),z("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",We("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),We("x:AutoFill","False"),We("x:Row",String(s.r)),We("x:Column",String(s.c)),i[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),a.push("</xml>"),a.join("")}function si(e){var t=[Re,z("comments",null,{xmlns:ft[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(a){var i=pe(a.a);r.indexOf(i)==-1&&(r.push(i),t.push("<author>"+i+"</author>")),a.T&&a.ID&&r.indexOf("tc="+a.ID)==-1&&(r.push("tc="+a.ID),t.push("<author>tc="+a.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var a=0,i=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(o){o.a&&(a=r.indexOf(pe(o.a))),i.push(o.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+a+'"><text>'),i.length<=1)t.push(We("t",pe(i[0]||"")));else{for(var s=`Comment:
+    `+i[0]+`
+`,f=1;f<i.length;++f)s+=`Reply:
+    `+i[f]+`
+`;t.push(We("t",pe(s)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function Zl(e,t,r){var n=[Re,z("ThreadedComments",null,{xmlns:ke.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(a){var i="";(a[1]||[]).forEach(function(s,f){if(!s.T){delete s.ID;return}s.a&&t.indexOf(s.a)==-1&&t.push(s.a);var o={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};f==0?i=o.id:o.parentId=i,s.ID=o.id,s.a&&(o.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),n.push(z("threadedComment",We("text",s.t||""),o))})}),n.push("</ThreadedComments>"),n.join("")}function ql(e){var t=[Re,z("personList",null,{xmlns:ke.TCMNT,"xmlns:x":ft[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(z("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function Ql(e){var t={};t.iauthor=e.read_shift(4);var r=$r(e);return t.rfx=r.s,t.ref=me(r.s),e.l+=16,t}function eo(e,t){return t==null&&(t=B(36)),t.write_shift(4,e[1].iauthor),ot(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var ro=je;function to(e){return Le(e.slice(0,54))}function no(e){var t=Je(),r=[];return W(t,628),W(t,630),e.forEach(function(n){n[1].forEach(function(a){r.indexOf(a.a)>-1||(r.push(a.a.slice(0,54)),W(t,632,to(a.a)))})}),W(t,631),W(t,633),e.forEach(function(n){n[1].forEach(function(a){a.iauthor=r.indexOf(a.a);var i={s:Pe(n[0]),e:Pe(n[0])};W(t,635,eo([i,a])),a.t&&a.t.length>0&&W(t,637,af(a)),W(t,636),delete a.iauthor})}),W(t,634),W(t,629),t.end()}function ao(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var a=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");a.slice(-1)!=="/"&&_e.utils.cfb_add(e,a,t.FileIndex[n].content)}})}var fi=["xlsb","xlsm","xlam","biff8","xla"],io=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,a,i,s){var f=!1,o=!1;i.length==0?o=!0:i.charAt(0)=="["&&(o=!0,i=i.slice(1,-1)),s.length==0?f=!0:s.charAt(0)=="["&&(f=!0,s=s.slice(1,-1));var l=i.length>0?parseInt(i,10)|0:0,c=s.length>0?parseInt(s,10)|0:0;return f?c+=t.c:--c,o?l+=t.r:--l,a+(f?"":"$")+Xe(c)+(o?"":"$")+He(l)}return function(a,i){return t=i,a.replace(e,r)}}(),K0=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,z0=function(){return function(t,r){return t.replace(K0,function(n,a,i,s,f,o){var l=W0(s)-(i?0:r.c),c=b0(o)-(f?0:r.r),d=c==0?"":f?c+1:"["+c+"]",x=l==0?"":i?l+1:"["+l+"]";return a+"R"+d+"C"+x})}}();function so(e,t){return e.replace(K0,function(r,n,a,i,s,f){return n+(a=="$"?a+i:Xe(W0(i)+t.c))+(s=="$"?s+f:He(b0(f)+t.r))})}function fo(e){return e.length!=1}function Oe(e){e.l+=1}function Pr(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function li(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return oi(e);r.biff==12&&(n=4)}var a=e.read_shift(n),i=e.read_shift(n),s=Pr(e),f=Pr(e);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:f[0],cRel:f[1],rRel:f[2]}}}function oi(e){var t=Pr(e),r=Pr(e),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function lo(e,t,r){if(r.biff<8)return oi(e);var n=e.read_shift(r.biff==12?4:2),a=e.read_shift(r.biff==12?4:2),i=Pr(e),s=Pr(e);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function ci(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return oo(e);var n=e.read_shift(r&&r.biff==12?4:2),a=Pr(e);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function oo(e){var t=Pr(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function co(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function ho(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return uo(e);var a=e.read_shift(n>=12?4:2),i=e.read_shift(2),s=(i&16384)>>14,f=(i&32768)>>15;if(i&=16383,f==1)for(;a>524287;)a-=1048576;if(s==1)for(;i>8191;)i=i-16384;return{r:a,c:i,cRel:s,rRel:f}}function uo(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,a=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),a==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:a,rRel:n}}function xo(e,t,r){var n=(e[e.l++]&96)>>5,a=li(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,a]}function vo(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2,"i"),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}var s=li(e,i,r);return[n,a,s]}function po(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function mo(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}return e.l+=i,[n,a]}function go(e,t,r){var n=(e[e.l++]&96)>>5,a=lo(e,t-1,r);return[n,a]}function _o(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function Xn(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function To(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),a=[],i=0;i<=n;++i)a.push(e.read_shift(r&&r.biff==2?1:2));return a}function Eo(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function wo(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function So(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function Ao(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function hi(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function Fo(e){return e.read_shift(2),hi(e)}function yo(e){return e.read_shift(2),hi(e)}function Co(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=ci(e,0,r);return[n,a]}function Oo(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=ho(e,0,r);return[n,a]}function Do(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var i=ci(e,0,r);return[n,a,i]}function Ro(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(r&&r.biff<=3?1:2);return[Rc[a],vi[a],n]}function Io(e,t,r){var n=e[e.l++],a=e.read_shift(1),i=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:No(e);return[a,(i[0]===0?vi:Dc)[i[1]]]}function No(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function ko(e,t,r){e.l+=r&&r.biff==2?3:4}function Po(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function Lo(e){return e.l++,Nt[e.read_shift(1)]}function Mo(e){return e.l++,e.read_shift(2)}function Bo(e){return e.l++,e.read_shift(1)!==0}function Uo(e){return e.l++,ct(e)}function bo(e,t,r){return e.l++,za(e,t-1,r)}function Wo(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=Of(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=Nt[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=ct(e);break;case 2:r[1]=Nf(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function Ho(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),a=[],i=0;i!=n;++i)a.push((r.biff==12?$r:Lf)(e));return a}function Go(e,t,r){var n=0,a=0;r.biff==12?(n=e.read_shift(4),a=e.read_shift(4)):(a=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--a==0&&(a=256));for(var i=0,s=[];i!=n&&(s[i]=[]);++i)for(var f=0;f!=a;++f)s[i][f]=Wo(e,r.biff);return s}function Vo(e,t,r){var n=e.read_shift(1)>>>5&3,a=!r||r.biff>=8?4:2,i=e.read_shift(a);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,i]}function Xo(e,t,r){if(r.biff==5)return jo(e);var n=e.read_shift(1)>>>5&3,a=e.read_shift(2),i=e.read_shift(4);return[n,a,i]}function jo(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function Ko(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function zo(e,t,r){var n=e.read_shift(1)>>>5&3,a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function Yo(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function $o(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6;break}return e.l+=i,[n,a]}var Jo=Tr,Zo=Tr,qo=Tr;function kt(e,t,r){return e.l+=2,[co(e)]}function Y0(e){return e.l+=6,[]}var Qo=kt,ec=Y0,rc=Y0,tc=kt;function ui(e){return e.l+=2,[ja(e),e.read_shift(2)&1]}var nc=kt,ac=ui,ic=Y0,sc=kt,fc=kt,lc=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function oc(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a=e.read_shift(2),i=e.read_shift(2),s=lc[r>>2&31];return{ixti:t,coltype:r&3,rt:s,idx:n,c:a,C:i}}function cc(e){return e.l+=2,[e.read_shift(4)]}function hc(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function uc(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function xc(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function vc(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function dc(e){return e.l+=4,[0,0]}var jn={1:{n:"PtgExp",f:Po},2:{n:"PtgTbl",f:qo},3:{n:"PtgAdd",f:Oe},4:{n:"PtgSub",f:Oe},5:{n:"PtgMul",f:Oe},6:{n:"PtgDiv",f:Oe},7:{n:"PtgPower",f:Oe},8:{n:"PtgConcat",f:Oe},9:{n:"PtgLt",f:Oe},10:{n:"PtgLe",f:Oe},11:{n:"PtgEq",f:Oe},12:{n:"PtgGe",f:Oe},13:{n:"PtgGt",f:Oe},14:{n:"PtgNe",f:Oe},15:{n:"PtgIsect",f:Oe},16:{n:"PtgUnion",f:Oe},17:{n:"PtgRange",f:Oe},18:{n:"PtgUplus",f:Oe},19:{n:"PtgUminus",f:Oe},20:{n:"PtgPercent",f:Oe},21:{n:"PtgParen",f:Oe},22:{n:"PtgMissArg",f:Oe},23:{n:"PtgStr",f:bo},26:{n:"PtgSheet",f:hc},27:{n:"PtgEndSheet",f:uc},28:{n:"PtgErr",f:Lo},29:{n:"PtgBool",f:Bo},30:{n:"PtgInt",f:Mo},31:{n:"PtgNum",f:Uo},32:{n:"PtgArray",f:_o},33:{n:"PtgFunc",f:Ro},34:{n:"PtgFuncVar",f:Io},35:{n:"PtgName",f:Vo},36:{n:"PtgRef",f:Co},37:{n:"PtgArea",f:xo},38:{n:"PtgMemArea",f:Ko},39:{n:"PtgMemErr",f:Jo},40:{n:"PtgMemNoMem",f:Zo},41:{n:"PtgMemFunc",f:zo},42:{n:"PtgRefErr",f:Yo},43:{n:"PtgAreaErr",f:po},44:{n:"PtgRefN",f:Oo},45:{n:"PtgAreaN",f:go},46:{n:"PtgMemAreaN",f:xc},47:{n:"PtgMemNoMemN",f:vc},57:{n:"PtgNameX",f:Xo},58:{n:"PtgRef3d",f:Do},59:{n:"PtgArea3d",f:vo},60:{n:"PtgRefErr3d",f:$o},61:{n:"PtgAreaErr3d",f:mo},255:{}},pc={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},mc={1:{n:"PtgElfLel",f:ui},2:{n:"PtgElfRw",f:sc},3:{n:"PtgElfCol",f:Qo},6:{n:"PtgElfRwV",f:fc},7:{n:"PtgElfColV",f:tc},10:{n:"PtgElfRadical",f:nc},11:{n:"PtgElfRadicalS",f:ic},13:{n:"PtgElfColS",f:ec},15:{n:"PtgElfColSV",f:rc},16:{n:"PtgElfRadicalLel",f:ac},25:{n:"PtgList",f:oc},29:{n:"PtgSxName",f:cc},255:{}},gc={0:{n:"PtgAttrNoop",f:dc},1:{n:"PtgAttrSemi",f:Ao},2:{n:"PtgAttrIf",f:wo},4:{n:"PtgAttrChoose",f:To},8:{n:"PtgAttrGoto",f:Eo},16:{n:"PtgAttrSum",f:ko},32:{n:"PtgAttrBaxcel",f:Xn},33:{n:"PtgAttrBaxcel",f:Xn},64:{n:"PtgAttrSpace",f:Fo},65:{n:"PtgAttrSpaceSemi",f:yo},128:{n:"PtgAttrIfError",f:So},255:{}};function _c(e,t,r,n){if(n.biff<8)return Tr(e,t);for(var a=e.l+t,i=[],s=0;s!==r.length;++s)switch(r[s][0]){case"PtgArray":r[s][1]=Go(e,0,n),i.push(r[s][1]);break;case"PtgMemArea":r[s][2]=Ho(e,r[s][1],n),i.push(r[s][2]);break;case"PtgExp":n&&n.biff==12&&(r[s][1][1]=e.read_shift(4),i.push(r[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[s][0]}return t=a-e.l,t!==0&&i.push(Tr(e,t)),i}function Tc(e,t,r){for(var n=e.l+t,a,i,s=[];n!=e.l;)t=n-e.l,i=e[e.l],a=jn[i]||jn[pc[i]],(i===24||i===25)&&(a=(i===24?mc:gc)[e[e.l+1]]),!a||!a.f?Tr(e,t):s.push([a.n,a.f(e,t,r)]);return s}function Ec(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],a=[],i=0;i<n.length;++i){var s=n[i];if(s)switch(s[0]){case 2:a.push('"'+s[1].replace(/"/g,'""')+'"');break;default:a.push(s[1])}else a.push("")}t.push(a.join(","))}return t.join(";")}var wc={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Sc(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function xi(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var a="";if(r.biff>8)switch(e[n[0]][0]){case 357:return a=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return a=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return e[n[0]][0][3]?(a=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Kn(e,t,r){var n=xi(e,t,r);return n=="#REF"?n:Sc(n,r)}function st(e,t,r,n,a){var i=a&&a.biff||8,s={s:{c:0,r:0},e:{c:0,r:0}},f=[],o,l,c,d=0,x=0,v,_="";if(!e[0]||!e[0][0])return"";for(var u=-1,g="",C=0,O=e[0].length;C<O;++C){var y=e[0][C];switch(y[0]){case"PtgUminus":f.push("-"+f.pop());break;case"PtgUplus":f.push("+"+f.pop());break;case"PtgPercent":f.push(f.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(o=f.pop(),l=f.pop(),u>=0){switch(e[0][u][1][0]){case 0:g=Fe(" ",e[0][u][1][1]);break;case 1:g=Fe("\r",e[0][u][1][1]);break;default:if(g="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][u][1][0])}l=l+g,u=-1}f.push(l+wc[y[0]]+o);break;case"PtgIsect":o=f.pop(),l=f.pop(),f.push(l+" "+o);break;case"PtgUnion":o=f.pop(),l=f.pop(),f.push(l+","+o);break;case"PtgRange":o=f.pop(),l=f.pop(),f.push(l+":"+o);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=_t(y[1][1],s,a),f.push(Tt(c,i));break;case"PtgRefN":c=r?_t(y[1][1],r,a):y[1][1],f.push(Tt(c,i));break;case"PtgRef3d":d=y[1][1],c=_t(y[1][2],s,a),_=Kn(n,d,a),f.push(_+"!"+Tt(c,i));break;case"PtgFunc":case"PtgFuncVar":var M=y[1][0],Y=y[1][1];M||(M=0),M&=127;var ee=M==0?[]:f.slice(-M);f.length-=M,Y==="User"&&(Y=ee.shift()),f.push(Y+"("+ee.join(",")+")");break;case"PtgBool":f.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":f.push(y[1]);break;case"PtgNum":f.push(String(y[1]));break;case"PtgStr":f.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgErr":f.push(y[1]);break;case"PtgAreaN":v=Rn(y[1][1],r?{s:r}:s,a),f.push(E0(v,a));break;case"PtgArea":v=Rn(y[1][1],s,a),f.push(E0(v,a));break;case"PtgArea3d":d=y[1][1],v=y[1][2],_=Kn(n,d,a),f.push(_+"!"+E0(v,a));break;case"PtgAttrSum":f.push("SUM("+f.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":x=y[1][2];var D=(n.names||[])[x-1]||(n[0]||[])[x],b=D?D.Name:"SH33TJSNAME"+String(x);b&&b.slice(0,6)=="_xlfn."&&!a.xlfn&&(b=b.slice(6)),f.push(b);break;case"PtgNameX":var L=y[1][1];x=y[1][2];var G;if(a.biff<=5)L<0&&(L=-L),n[L]&&(G=n[L][x]);else{var V="";if(((n[L]||[])[0]||[])[0]==14849||(((n[L]||[])[0]||[])[0]==1025?n[L][x]&&n[L][x].itab>0&&(V=n.SheetNames[n[L][x].itab-1]+"!"):V=n.SheetNames[x-1]+"!"),n[L]&&n[L][x])V+=n[L][x].Name;else if(n[0]&&n[0][x])V+=n[0][x].Name;else{var j=(xi(n,L,a)||"").split(";;");j[x-1]?V=j[x-1]:V+="SH33TJSERRX"}f.push(V);break}G||(G={Name:"SH33TJSERRY"}),f.push(G.Name);break;case"PtgParen":var re="(",ge=")";if(u>=0){switch(g="",e[0][u][1][0]){case 2:re=Fe(" ",e[0][u][1][1])+re;break;case 3:re=Fe("\r",e[0][u][1][1])+re;break;case 4:ge=Fe(" ",e[0][u][1][1])+ge;break;case 5:ge=Fe("\r",e[0][u][1][1])+ge;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][u][1][0])}u=-1}f.push(re+f.pop()+ge);break;case"PtgRefErr":f.push("#REF!");break;case"PtgRefErr3d":f.push("#REF!");break;case"PtgExp":c={c:y[1][1],r:y[1][0]};var le={c:r.c,r:r.r};if(n.sharedf[me(c)]){var Me=n.sharedf[me(c)];f.push(st(Me,s,le,n,a))}else{var Ce=!1;for(o=0;o!=n.arrayf.length;++o)if(l=n.arrayf[o],!(c.c<l[0].s.c||c.c>l[0].e.c)&&!(c.r<l[0].s.r||c.r>l[0].e.r)){f.push(st(l[1],s,le,n,a)),Ce=!0;break}Ce||f.push(y[1])}break;case"PtgArray":f.push("{"+Ec(y[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":u=C;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":f.push("");break;case"PtgAreaErr":f.push("#REF!");break;case"PtgAreaErr3d":f.push("#REF!");break;case"PtgList":f.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(y));default:throw new Error("Unrecognized Formula Token: "+String(y))}var cr=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(a.biff!=3&&u>=0&&cr.indexOf(e[0][C][0])==-1){y=e[0][u];var Ne=!0;switch(y[1][0]){case 4:Ne=!1;case 0:g=Fe(" ",y[1][1]);break;case 5:Ne=!1;case 1:g=Fe("\r",y[1][1]);break;default:if(g="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}f.push((Ne?g:"")+f.pop()+(Ne?"":g)),u=-1}}if(f.length>1&&a.WTF)throw new Error("bad formula stack");return f[0]}function Ac(e){if(e==null){var t=B(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return Vr(e);return Vr(0)}function Fc(e,t,r,n,a){var i=Xr(t,r,a),s=Ac(e.v),f=B(6),o=33;f.write_shift(2,o),f.write_shift(4,0);for(var l=B(e.bf.length),c=0;c<e.bf.length;++c)l[c]=e.bf[c];var d=be([i,s,f,l]);return d}function h0(e,t,r){var n=e.read_shift(4),a=Tc(e,n,r),i=e.read_shift(4),s=i>0?_c(e,i,a,r):null;return[a,s]}var yc=h0,u0=h0,Cc=h0,Oc=h0,Dc={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},vi={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Rc={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Ic(e){var t="of:="+e.replace(K0,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function Nc(e){return e.replace(/\./,"!")}var Et=typeof Map<"u";function $0(e,t,r){var n=0,a=e.length;if(r){if(Et?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var i=Et?r.get(t):r[t];n<i.length;++n)if(e[i[n]].t===t)return e.Count++,i[n]}}else for(;n<a;++n)if(e[n].t===t)return e.Count++,n;return e[a]={t},e.Count++,e.Unique++,r&&(Et?(r.has(t)||r.set(t,[]),r.get(t).push(a)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(a))),a}function x0(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(yr=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=t0(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=R0(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function di(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function Mr(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],a=60,i=e.length;if(n==null&&r.ssf){for(;a<392;++a)if(r.ssf[a]==null){ca(t.z,a),r.ssf[a]=t.z,r.revssf[t.z]=n=a;break}}for(a=0;a!=i;++a)if(e[a].numFmtId===n)return a;return e[i]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function kc(e,t,r){if(e&&e["!ref"]){var n=Ee(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}function Pc(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+De(e[r])+'"/>';return t+"</mergeCells>"}function Lc(e,t,r,n,a){var i=!1,s={},f=null;if(n.bookType!=="xlsx"&&t.vbaraw){var o=t.SheetNames[r];try{t.Workbook&&(o=t.Workbook.Sheets[r].CodeName||o)}catch{}i=!0,s.codeName=Ft(pe(o))}if(e&&e["!outline"]){var l={summaryBelow:1,summaryRight:1};e["!outline"].above&&(l.summaryBelow=0),e["!outline"].left&&(l.summaryRight=0),f=(f||"")+z("outlinePr",null,l)}!i&&!f||(a[a.length]=z("sheetPr",f,s))}var Mc=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Bc=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Uc(e){var t={sheet:1};return Mc.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),Bc.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=qa(e.password).toString(16).toUpperCase()),z("sheetProtection",null,t)}function bc(e){return di(e),z("pageMargins",null,e)}function Wc(e,t){for(var r=["<cols>"],n,a=0;a!=t.length;++a)(n=t[a])&&(r[r.length]=z("col",null,x0(a,n)));return r[r.length]="</cols>",r.join("")}function Hc(e,t,r,n){var a=typeof e.ref=="string"?e.ref:De(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,s=ar(a);s.s.r==s.e.r&&(s.e.r=ar(t["!ref"]).e.r,a=De(s));for(var f=0;f<i.length;++f){var o=i[f];if(o.Name=="_xlnm._FilterDatabase"&&o.Sheet==n){o.Ref="'"+r.SheetNames[n]+"'!"+a;break}}return f==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),z("autoFilter",null,{ref:a})}function Gc(e,t,r,n){var a={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(a.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),z("sheetViews",z("sheetView",null,a),{})}function Vc(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var a="",i=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":a=e.v?"1":"0";break;case"n":a=""+e.v;break;case"e":a=Nt[e.v];break;case"d":n&&n.cellDates?a=$e(e.v,-1).toISOString():(e=qe(e),e.t="n",a=""+(e.v=Ze($e(e.v)))),typeof e.z>"u"&&(e.z=ye[14]);break;default:a=e.v;break}var f=We("v",pe(a)),o={r:t},l=Mr(n.cellXfs,e,n);switch(l!==0&&(o.s=l),e.t){case"n":break;case"d":o.t="d";break;case"b":o.t="b";break;case"e":o.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){f=We("v",""+$0(n.Strings,e.v,n.revStrings)),o.t="s";break}o.t="str";break}if(e.t!=i&&(e.t=i,e.v=s),typeof e.f=="string"&&e.f){var c=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;f=z("f",pe(e.f),c)+(e.v!=null?f:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(o.cm=1),z("c",f,o)}function Xc(e,t,r,n){var a=[],i=[],s=Ee(e["!ref"]),f="",o,l="",c=[],d=0,x=0,v=e["!rows"],_=Array.isArray(e),u={r:l},g,C=-1;for(x=s.s.c;x<=s.e.c;++x)c[x]=Xe(x);for(d=s.s.r;d<=s.e.r;++d){for(i=[],l=He(d),x=s.s.c;x<=s.e.c;++x){o=c[x]+l;var O=_?(e[d]||[])[x]:e[o];O!==void 0&&(f=Vc(O,o,e,t))!=null&&i.push(f)}(i.length>0||v&&v[d])&&(u={r:l},v&&v[d]&&(g=v[d],g.hidden&&(u.hidden=1),C=-1,g.hpx?C=n0(g.hpx):g.hpt&&(C=g.hpt),C>-1&&(u.ht=C,u.customHeight=1),g.level&&(u.outlineLevel=g.level)),a[a.length]=z("row",i.join(""),u))}if(v)for(;d<v.length;++d)v&&v[d]&&(u={r:d+1},g=v[d],g.hidden&&(u.hidden=1),C=-1,g.hpx?C=n0(g.hpx):g.hpt&&(C=g.hpt),C>-1&&(u.ht=C,u.customHeight=1),g.level&&(u.outlineLevel=g.level),a[a.length]=z("row","",u));return a.join("")}function pi(e,t,r,n){var a=[Re,z("worksheet",null,{xmlns:ft[0],"xmlns:r":ke.r})],i=r.SheetNames[e],s=0,f="",o=r.Sheets[i];o==null&&(o={});var l=o["!ref"]||"A1",c=Ee(l);if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),l=De(c)}n||(n={}),o["!comments"]=[];var d=[];Lc(o,r,e,t,a),a[a.length]=z("dimension",null,{ref:l}),a[a.length]=Gc(o,t,e,r),t.sheetFormat&&(a[a.length]=z("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),o["!cols"]!=null&&o["!cols"].length>0&&(a[a.length]=Wc(o,o["!cols"])),a[s=a.length]="<sheetData/>",o["!links"]=[],o["!ref"]!=null&&(f=Xc(o,t),f.length>0&&(a[a.length]=f)),a.length>s+1&&(a[a.length]="</sheetData>",a[s]=a[s].replace("/>",">")),o["!protect"]&&(a[a.length]=Uc(o["!protect"])),o["!autofilter"]!=null&&(a[a.length]=Hc(o["!autofilter"],o,r,e)),o["!merges"]!=null&&o["!merges"].length>0&&(a[a.length]=Pc(o["!merges"]));var x=-1,v,_=-1;return o["!links"].length>0&&(a[a.length]="<hyperlinks>",o["!links"].forEach(function(u){u[1].Target&&(v={ref:u[0]},u[1].Target.charAt(0)!="#"&&(_=de(n,-1,pe(u[1].Target).replace(/#.*$/,""),he.HLINK),v["r:id"]="rId"+_),(x=u[1].Target.indexOf("#"))>-1&&(v.location=pe(u[1].Target.slice(x+1))),u[1].Tooltip&&(v.tooltip=pe(u[1].Tooltip)),a[a.length]=z("hyperlink",null,v))}),a[a.length]="</hyperlinks>"),delete o["!links"],o["!margins"]!=null&&(a[a.length]=bc(o["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(a[a.length]=We("ignoredErrors",z("ignoredError",null,{numberStoredAsText:1,sqref:l}))),d.length>0&&(_=de(n,-1,"../drawings/drawing"+(e+1)+".xml",he.DRAW),a[a.length]=z("drawing",null,{"r:id":"rId"+_}),o["!drawing"]=d),o["!comments"].length>0&&(_=de(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",he.VML),a[a.length]=z("legacyDrawing",null,{"r:id":"rId"+_}),o["!legacy"]=_),a.length>1&&(a[a.length]="</worksheet>",a[1]=a[1].replace("/>",">")),a.join("")}function jc(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var a=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=n,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=a/20),r}function Kc(e,t,r){var n=B(145),a=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var i=320;a.hpx?i=n0(a.hpx)*20:a.hpt&&(i=a.hpt*20),n.write_shift(2,i),n.write_shift(1,0);var s=0;a.level&&(s|=a.level),a.hidden&&(s|=16),(a.hpx||a.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var f=0,o=n.l;n.l+=4;for(var l={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.c<c<<10)){for(var d=-1,x=-1,v=c<<10;v<c+1<<10;++v){l.c=v;var _=Array.isArray(r)?(r[l.r]||[])[l.c]:r[me(l)];_&&(d<0&&(d=v),x=v)}d<0||(++f,n.write_shift(4,d),n.write_shift(4,x))}var u=n.l;return n.l=o,n.write_shift(4,f),n.l=u,n.length>n.l?n.slice(0,n.l):n}function zc(e,t,r,n){var a=Kc(n,r,t);(a.length>17||(t["!rows"]||[])[n])&&W(e,0,a)}var Yc=$r,$c=ot;function Jc(){}function Zc(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=sf(e),r}function qc(e,t,r){r==null&&(r=B(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var a=1;a<3;++a)r.write_shift(1,0);return Qt({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),Ia(e,r),r.slice(0,r.l)}function Qc(e){var t=or(e);return[t]}function e1(e,t,r){return r==null&&(r=B(8)),Kr(t,r)}function r1(e){var t=zr(e);return[t]}function t1(e,t,r){return r==null&&(r=B(4)),Yr(t,r)}function n1(e){var t=or(e),r=e.read_shift(1);return[t,r,"b"]}function a1(e,t,r){return r==null&&(r=B(9)),Kr(t,r),r.write_shift(1,e.v?1:0),r}function i1(e){var t=zr(e),r=e.read_shift(1);return[t,r,"b"]}function s1(e,t,r){return r==null&&(r=B(5)),Yr(t,r),r.write_shift(1,e.v?1:0),r}function f1(e){var t=or(e),r=e.read_shift(1);return[t,r,"e"]}function l1(e,t,r){return r==null&&(r=B(9)),Kr(t,r),r.write_shift(1,e.v),r}function o1(e){var t=zr(e),r=e.read_shift(1);return[t,r,"e"]}function c1(e,t,r){return r==null&&(r=B(8)),Yr(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function h1(e){var t=or(e),r=e.read_shift(4);return[t,r,"s"]}function u1(e,t,r){return r==null&&(r=B(12)),Kr(t,r),r.write_shift(4,t.v),r}function x1(e){var t=zr(e),r=e.read_shift(4);return[t,r,"s"]}function v1(e,t,r){return r==null&&(r=B(8)),Yr(t,r),r.write_shift(4,t.v),r}function d1(e){var t=or(e),r=ct(e);return[t,r,"n"]}function p1(e,t,r){return r==null&&(r=B(16)),Kr(t,r),Vr(e.v,r),r}function m1(e){var t=zr(e),r=ct(e);return[t,r,"n"]}function g1(e,t,r){return r==null&&(r=B(12)),Yr(t,r),Vr(e.v,r),r}function _1(e){var t=or(e),r=Na(e);return[t,r,"n"]}function T1(e,t,r){return r==null&&(r=B(12)),Kr(t,r),ka(e.v,r),r}function E1(e){var t=zr(e),r=Na(e);return[t,r,"n"]}function w1(e,t,r){return r==null&&(r=B(8)),Yr(t,r),ka(e.v,r),r}function S1(e){var t=or(e),r=H0(e);return[t,r,"is"]}function A1(e){var t=or(e),r=je(e);return[t,r,"str"]}function F1(e,t,r){return r==null&&(r=B(12+4*e.v.length)),Kr(t,r),Le(e.v,r),r.length>r.l?r.slice(0,r.l):r}function y1(e){var t=zr(e),r=je(e);return[t,r,"str"]}function C1(e,t,r){return r==null&&(r=B(8+4*e.v.length)),Yr(t,r),Le(e.v,r),r.length>r.l?r.slice(0,r.l):r}function O1(e,t,r){var n=e.l+t,a=or(e);a.r=r["!row"];var i=e.read_shift(1),s=[a,i,"b"];if(r.cellFormula){e.l+=2;var f=u0(e,n-e.l,r);s[3]=st(f,null,a,r.supbooks,r)}else e.l=n;return s}function D1(e,t,r){var n=e.l+t,a=or(e);a.r=r["!row"];var i=e.read_shift(1),s=[a,i,"e"];if(r.cellFormula){e.l+=2;var f=u0(e,n-e.l,r);s[3]=st(f,null,a,r.supbooks,r)}else e.l=n;return s}function R1(e,t,r){var n=e.l+t,a=or(e);a.r=r["!row"];var i=ct(e),s=[a,i,"n"];if(r.cellFormula){e.l+=2;var f=u0(e,n-e.l,r);s[3]=st(f,null,a,r.supbooks,r)}else e.l=n;return s}function I1(e,t,r){var n=e.l+t,a=or(e);a.r=r["!row"];var i=je(e),s=[a,i,"str"];if(r.cellFormula){e.l+=2;var f=u0(e,n-e.l,r);s[3]=st(f,null,a,r.supbooks,r)}else e.l=n;return s}var N1=$r,k1=ot;function P1(e,t){return t==null&&(t=B(4)),t.write_shift(4,e),t}function L1(e,t){var r=e.l+t,n=$r(e),a=G0(e),i=je(e),s=je(e),f=je(e);e.l=r;var o={rfx:n,relId:a,loc:i,display:f};return s&&(o.Tooltip=s),o}function M1(e,t){var r=B(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));ot({s:Pe(e[0]),e:Pe(e[0])},r),V0("rId"+t,r);var n=e[1].Target.indexOf("#"),a=n==-1?"":e[1].Target.slice(n+1);return Le(a||"",r),Le(e[1].Tooltip||"",r),Le("",r),r.slice(0,r.l)}function B1(){}function U1(e,t,r){var n=e.l+t,a=Pa(e),i=e.read_shift(1),s=[a];if(s[2]=i,r.cellFormula){var f=yc(e,n-e.l,r);s[1]=f}else e.l=n;return s}function b1(e,t,r){var n=e.l+t,a=$r(e),i=[a];if(r.cellFormula){var s=Oc(e,n-e.l,r);i[1]=s,e.l=n}else e.l=n;return i}function W1(e,t,r){r==null&&(r=B(18));var n=x0(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var a=0;return t.hidden&&(a|=1),typeof n.width=="number"&&(a|=2),t.level&&(a|=t.level<<8),r.write_shift(2,a),r}var mi=["left","right","top","bottom","header","footer"];function H1(e){var t={};return mi.forEach(function(r){t[r]=ct(e)}),t}function G1(e,t){return t==null&&(t=B(6*8)),di(e),mi.forEach(function(r){Vr(e[r],t)}),t}function V1(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function X1(e,t,r){r==null&&(r=B(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function j1(e){var t=B(24);return t.write_shift(4,4),t.write_shift(4,1),ot(e,t),t}function K1(e,t){return t==null&&(t=B(16*4+2)),t.write_shift(2,e.password?qa(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function z1(){}function Y1(){}function $1(e,t,r,n,a,i,s){if(t.v===void 0)return!1;var f="";switch(t.t){case"b":f=t.v?"1":"0";break;case"d":t=qe(t),t.z=t.z||ye[14],t.v=Ze($e(t.v)),t.t="n";break;case"n":case"e":f=""+t.v;break;default:f=t.v;break}var o={r,c:n};switch(o.s=Mr(a.cellXfs,t,a),t.l&&i["!links"].push([me(o),t.l]),t.c&&i["!comments"].push([me(o),t.c]),t.t){case"s":case"str":return a.bookSST?(f=$0(a.Strings,t.v,a.revStrings),o.t="s",o.v=f,s?W(e,18,v1(t,o)):W(e,7,u1(t,o))):(o.t="str",s?W(e,17,C1(t,o)):W(e,6,F1(t,o))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?s?W(e,13,w1(t,o)):W(e,2,T1(t,o)):s?W(e,16,g1(t,o)):W(e,5,p1(t,o)),!0;case"b":return o.t="b",s?W(e,15,s1(t,o)):W(e,4,a1(t,o)),!0;case"e":return o.t="e",s?W(e,14,c1(t,o)):W(e,3,l1(t,o)),!0}return s?W(e,12,t1(t,o)):W(e,1,e1(t,o)),!0}function J1(e,t,r,n){var a=Ee(t["!ref"]||"A1"),i,s="",f=[];W(e,145);var o=Array.isArray(t),l=a.e.r;t["!rows"]&&(l=Math.max(a.e.r,t["!rows"].length-1));for(var c=a.s.r;c<=l;++c){s=He(c),zc(e,t,a,c);var d=!1;if(c<=a.e.r)for(var x=a.s.c;x<=a.e.c;++x){c===a.s.r&&(f[x]=Xe(x)),i=f[x]+s;var v=o?(t[c]||[])[x]:t[i];if(!v){d=!1;continue}d=$1(e,v,c,x,n,t,d)}}W(e,146)}function Z1(e,t){!t||!t["!merges"]||(W(e,177,P1(t["!merges"].length)),t["!merges"].forEach(function(r){W(e,176,k1(r))}),W(e,178))}function q1(e,t){!t||!t["!cols"]||(W(e,390),t["!cols"].forEach(function(r,n){r&&W(e,60,W1(n,r))}),W(e,391))}function Q1(e,t){!t||!t["!ref"]||(W(e,648),W(e,649,j1(Ee(t["!ref"]))),W(e,650))}function eh(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var a=de(r,-1,n[1].Target.replace(/#.*$/,""),he.HLINK);W(e,494,M1(n,a))}}),delete t["!links"]}function rh(e,t,r,n){if(t["!comments"].length>0){var a=de(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",he.VML);W(e,551,V0("rId"+a)),t["!legacy"]=a}}function th(e,t,r,n){if(t["!autofilter"]){var a=t["!autofilter"],i=typeof a.ref=="string"?a.ref:De(a.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,f=ar(i);f.s.r==f.e.r&&(f.e.r=ar(t["!ref"]).e.r,i=De(f));for(var o=0;o<s.length;++o){var l=s[o];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+i;break}}o==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),W(e,161,ot(Ee(i))),W(e,162)}}function nh(e,t,r){W(e,133),W(e,137,X1(t,r)),W(e,138),W(e,134)}function ah(e,t){t["!protect"]&&W(e,535,K1(t["!protect"]))}function ih(e,t,r,n){var a=Je(),i=r.SheetNames[e],s=r.Sheets[i]||{},f=i;try{r&&r.Workbook&&(f=r.Workbook.Sheets[e].CodeName||f)}catch{}var o=Ee(s["!ref"]||"A1");if(o.e.c>16383||o.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");o.e.c=Math.min(o.e.c,16383),o.e.r=Math.min(o.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],W(a,129),(r.vbaraw||s["!outline"])&&W(a,147,qc(f,s["!outline"])),W(a,148,$c(o)),nh(a,s,r.Workbook),q1(a,s),J1(a,s,e,t),ah(a,s),th(a,s,r,e),Z1(a,s),eh(a,s,n),s["!margins"]&&W(a,476,G1(s["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&Q1(a,s),rh(a,s,e,n),W(a,130),a.end()}function sh(e,t){e.l+=10;var r=je(e);return{name:r}}var fh=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function lh(e){return!e.Workbook||!e.Workbook.WBProps?"false":Bs(e.Workbook.WBProps.date1904)?"true":"false"}var oh="][*?/\\".split("");function gi(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return oh.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function ch(e,t,r){e.forEach(function(n,a){gi(n);for(var i=0;i<a;++i)if(n==e[i])throw new Error("Duplicate Sheet Name: "+n);if(r){var s=t[a]&&t[a].CodeName||n;if(s.charCodeAt(0)==95&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}})}function hh(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];ch(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)kc(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}function _i(e){var t=[Re];t[t.length]=z("workbook",null,{xmlns:ft[0],"xmlns:r":ke.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(fh.forEach(function(f){e.Workbook.WBProps[f[0]]!=null&&e.Workbook.WBProps[f[0]]!=f[1]&&(n[f[0]]=e.Workbook.WBProps[f[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=z("workbookPr",null,n);var a=e.Workbook&&e.Workbook.Sheets||[],i=0;if(a[0]&&a[0].Hidden){for(t[t.length]="<bookViews>",i=0;i!=e.SheetNames.length&&!(!a[i]||!a[i].Hidden);++i);i==e.SheetNames.length&&(i=0),t[t.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",i=0;i!=e.SheetNames.length;++i){var s={name:pe(e.SheetNames[i].slice(0,31))};if(s.sheetId=""+(i+1),s["r:id"]="rId"+(i+1),a[i])switch(a[i].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}t[t.length]=z("sheet",null,s)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(f){var o={name:f.Name};f.Comment&&(o.comment=f.Comment),f.Sheet!=null&&(o.localSheetId=""+f.Sheet),f.Hidden&&(o.hidden="1"),f.Ref&&(t[t.length]=z("definedName",pe(f.Ref),o))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function uh(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=D0(e),r.name=je(e),r}function xh(e,t){return t||(t=B(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),V0(e.strRelID,t),Le(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function vh(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var a=t>8?je(e):"";return a.length>0&&(r.CodeName=a),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function dh(e,t){t||(t=B(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),Ia(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function ph(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var a=e.read_shift(4),i=ff(e),s=Cc(e,0,r),f=G0(e);e.l=n;var o={Name:i,Ptg:s};return a<268435455&&(o.Sheet=a),f&&(o.Comment=f),o}function mh(e,t){W(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,a={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};W(e,156,xh(a))}W(e,144)}function gh(e,t){t||(t=B(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return Le("SheetJS",t),Le(Kt.version,t),Le(Kt.version,t),Le("7262",t),t.length>t.l?t.slice(0,t.l):t}function _h(e,t){t||(t=B(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function Th(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,a=-1,i=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&a==-1?a=n:r[n].Hidden==1&&i==-1&&(i=n);i>a||(W(e,135),W(e,158,_h(a)),W(e,136))}}function Eh(e,t){var r=Je();return W(r,131),W(r,128,gh()),W(r,153,dh(e.Workbook&&e.Workbook.WBProps||null)),Th(r,e),mh(r,e),W(r,132),r.end()}function wh(e,t,r){return(t.slice(-4)===".bin"?Eh:_i)(e)}function Sh(e,t,r,n,a){return(t.slice(-4)===".bin"?ih:pi)(e,r,n,a)}function Ah(e,t,r){return(t.slice(-4)===".bin"?Hl:ri)(e,r)}function Fh(e,t,r){return(t.slice(-4)===".bin"?vl:Za)(e,r)}function yh(e,t,r){return(t.slice(-4)===".bin"?no:si)(e)}function Ch(e){return(e.slice(-4)===".bin"?$l:ai)()}function Oh(e,t){var r=[];return e.Props&&r.push(Sf(e.Props,t)),e.Custprops&&r.push(Af(e.Props,e.Custprops)),r.join("")}function Dh(){return""}function Rh(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,a){var i=[];i.push(z("NumberFormat",null,{"ss:Format":pe(ye[n.numFmtId])}));var s={"ss:ID":"s"+(21+a)};r.push(z("Style",i.join(""),s))}),z("Styles",r.join(""))}function Ti(e){return z("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+z0(e.Ref,{r:0,c:0})})}function Ih(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var a=t[n];a.Sheet==null&&(a.Name.match(/^_xlfn\./)||r.push(Ti(a)))}return z("Names",r.join(""))}function Nh(e,t,r,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var a=n.Workbook.Names,i=[],s=0;s<a.length;++s){var f=a[s];f.Sheet==r&&(f.Name.match(/^_xlfn\./)||i.push(Ti(f)))}return i.join("")}function kh(e,t,r,n){if(!e)return"";var a=[];if(e["!margins"]&&(a.push("<PageSetup>"),e["!margins"].header&&a.push(z("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&a.push(z("Footer",null,{"x:Margin":e["!margins"].footer})),a.push(z("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),a.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)a.push(z("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<r&&!(n.Workbook.Sheets[i]&&!n.Workbook.Sheets[i].Hidden);++i);i==r&&a.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&a.push("<DisplayRightToLeft/>"),e["!protect"]&&(a.push(We("ProtectContents","True")),e["!protect"].objects&&a.push(We("ProtectObjects","True")),e["!protect"].scenarios&&a.push(We("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?a.push(We("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&a.push(We("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){e["!protect"][s[0]]&&a.push("<"+s[1]+"/>")})),a.length==0?"":z("WorksheetOptions",a.join(""),{xmlns:tr.x})}function Ph(e){return e.map(function(t){var r=Ms(t.t||""),n=z("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return z("Comment",n,{"ss:Author":t.a})}).join("")}function Lh(e,t,r,n,a,i,s){if(!e||e.v==null&&e.f==null)return"";var f={};if(e.f&&(f["ss:Formula"]="="+pe(z0(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var o=Pe(e.F.slice(t.length+1));f["ss:ArrayRange"]="RC:R"+(o.r==s.r?"":"["+(o.r-s.r)+"]")+"C"+(o.c==s.c?"":"["+(o.c-s.c)+"]")}if(e.l&&e.l.Target&&(f["ss:HRef"]=pe(e.l.Target),e.l.Tooltip&&(f["x:HRefScreenTip"]=pe(e.l.Tooltip))),r["!merges"])for(var l=r["!merges"],c=0;c!=l.length;++c)l[c].s.c!=s.c||l[c].s.r!=s.r||(l[c].e.c>l[c].s.c&&(f["ss:MergeAcross"]=l[c].e.c-l[c].s.c),l[c].e.r>l[c].s.r&&(f["ss:MergeDown"]=l[c].e.r-l[c].s.r));var d="",x="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":d="Number",x=String(e.v);break;case"b":d="Boolean",x=e.v?"1":"0";break;case"e":d="Error",x=Nt[e.v];break;case"d":d="DateTime",x=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||ye[14]);break;case"s":d="String",x=Ls(e.v||"");break}var v=Mr(n.cellXfs,e,n);f["ss:StyleID"]="s"+(21+v),f["ss:Index"]=s.c+1;var _=e.v!=null?x:"",u=e.t=="z"?"":'<Data ss:Type="'+d+'">'+_+"</Data>";return(e.c||[]).length>0&&(u+=Ph(e.c)),z("Cell",u,f)}function Mh(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=ei(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function Bh(e,t,r,n){if(!e["!ref"])return"";var a=Ee(e["!ref"]),i=e["!merges"]||[],s=0,f=[];e["!cols"]&&e["!cols"].forEach(function(g,C){j0(g);var O=!!g.width,y=x0(C,g),M={"ss:Index":C+1};O&&(M["ss:Width"]=r0(y.width)),g.hidden&&(M["ss:Hidden"]="1"),f.push(z("Column",null,M))});for(var o=Array.isArray(e),l=a.s.r;l<=a.e.r;++l){for(var c=[Mh(l,(e["!rows"]||[])[l])],d=a.s.c;d<=a.e.c;++d){var x=!1;for(s=0;s!=i.length;++s)if(!(i[s].s.c>d)&&!(i[s].s.r>l)&&!(i[s].e.c<d)&&!(i[s].e.r<l)){(i[s].s.c!=d||i[s].s.r!=l)&&(x=!0);break}if(!x){var v={r:l,c:d},_=me(v),u=o?(e[l]||[])[d]:e[_];c.push(Lh(u,_,e,t,r,n,v))}}c.push("</Row>"),c.length>2&&f.push(c.join(""))}return f.join("")}function Uh(e,t,r){var n=[],a=r.SheetNames[e],i=r.Sheets[a],s=i?Nh(i,t,e,r):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=i?Bh(i,t,e,r):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(kh(i,t,e,r)),n.join("")}function bh(e,t){t||(t={}),e.SSF||(e.SSF=qe(ye)),e.SSF&&(l0(),f0(e.SSF),t.revssf=o0(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Mr(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(Oh(e,t)),r.push(Dh()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(z("Worksheet",Uh(n,t,e),{"ss:Name":pe(e.SheetNames[n])}));return r[2]=Rh(e,t),r[3]=Ih(e),Re+z("Workbook",r.join(""),{xmlns:tr.ss,"xmlns:o":tr.o,"xmlns:x":tr.x,"xmlns:ss":tr.ss,"xmlns:dt":tr.dt,"xmlns:html":tr.html})}var A0={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Wh(e,t){var r=[],n=[],a=[],i=0,s,f=_n(Nn,"n"),o=_n(kn,"n");if(e.Props)for(s=Ge(e.Props),i=0;i<s.length;++i)(Object.prototype.hasOwnProperty.call(f,s[i])?r:Object.prototype.hasOwnProperty.call(o,s[i])?n:a).push([s[i],e.Props[s[i]]]);if(e.Custprops)for(s=Ge(e.Custprops),i=0;i<s.length;++i)Object.prototype.hasOwnProperty.call(e.Props||{},s[i])||(Object.prototype.hasOwnProperty.call(f,s[i])?r:Object.prototype.hasOwnProperty.call(o,s[i])?n:a).push([s[i],e.Custprops[s[i]]]);var l=[];for(i=0;i<a.length;++i)Xa.indexOf(a[i][0])>-1||Ha.indexOf(a[i][0])>-1||a[i][1]!=null&&l.push(a[i]);n.length&&_e.utils.cfb_add(t,"/SummaryInformation",Un(n,A0.SI,o,kn)),(r.length||l.length)&&_e.utils.cfb_add(t,"/DocumentSummaryInformation",Un(r,A0.DSI,f,Nn,l.length?l:null,A0.UDI))}function Hh(e,t){var r=t,n=_e.utils.cfb_new({root:"R"}),a="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":a="/Workbook",r.biff=8;break;case"biff5":a="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return _e.utils.cfb_add(n,a,Ei(e,r)),r.biff==8&&(e.Props||e.Custprops)&&Wh(e,n),r.biff==8&&e.vbaraw&&ao(n,_e.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var Gh={0:{f:jc},1:{f:Qc},2:{f:_1},3:{f:f1},4:{f:n1},5:{f:d1},6:{f:A1},7:{f:h1},8:{f:I1},9:{f:R1},10:{f:O1},11:{f:D1},12:{f:r1},13:{f:E1},14:{f:o1},15:{f:i1},16:{f:m1},17:{f:y1},18:{f:x1},19:{f:H0},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:ph},40:{},42:{},43:{f:Sl},44:{f:El},45:{f:yl},46:{f:Ol},47:{f:Cl},48:{},49:{f:Qs},50:{},51:{f:Xl},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:rl},62:{f:S1},63:{f:Jl},64:{f:z1},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Tr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:V1},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Zc},148:{f:Yc,p:16},151:{f:B1},152:{},153:{f:vh},154:{},155:{},156:{f:uh},157:{},158:{},159:{T:1,f:hl},160:{T:-1},161:{T:1,f:$r},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:N1},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Gl},336:{T:-1},337:{f:zl,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:D0},357:{},358:{},359:{},360:{T:1},361:{},362:{f:$f},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:U1},427:{f:b1},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:H1},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Jc},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:L1},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:D0},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:ro},633:{T:1},634:{T:-1},635:{T:1,f:Ql},636:{T:-1},637:{f:nf},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:sh},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:Y1},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function J(e,t,r,n){var a=t;if(!isNaN(a)){var i=n||(r||[]).length||0,s=e.next(4);s.write_shift(2,a),s.write_shift(2,i),i>0&&U0(r)&&e.push(r)}}function Vh(e,t,r,n){var a=(r||[]).length||0;if(a<=8224)return J(e,t,r,a);var i=t;if(!isNaN(i)){for(var s=r.parts||[],f=0,o=0,l=0;l+(s[f]||8224)<=8224;)l+=s[f]||8224,f++;var c=e.next(4);for(c.write_shift(2,i),c.write_shift(2,l),e.push(r.slice(o,o+l)),o+=l;o<a;){for(c=e.next(4),c.write_shift(2,60),l=0;l+(s[f]||8224)<=8224;)l+=s[f]||8224,f++;c.write_shift(2,l),e.push(r.slice(o,o+l)),o+=l}}}function Pt(e,t,r){return e||(e=B(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function Xh(e,t,r,n){var a=B(9);return Pt(a,e,t),Ka(r,n||"b",a),a}function jh(e,t,r){var n=B(8+2*r.length);return Pt(n,e,t),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function Kh(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var a=t.t=="d"?Ze($e(t.v)):t.v;a==(a|0)&&a>=0&&a<65536?J(e,2,il(r,n,a)):J(e,3,al(r,n,a));return;case"b":case"e":J(e,5,Xh(r,n,t.v,t.t));return;case"s":case"str":J(e,4,jh(r,n,(t.v||"").slice(0,255)));return}J(e,1,Pt(null,r,n))}function zh(e,t,r,n){var a=Array.isArray(t),i=Ee(t["!ref"]||"A1"),s,f="",o=[];if(i.e.c>255||i.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),s=De(i)}for(var l=i.s.r;l<=i.e.r;++l){f=He(l);for(var c=i.s.c;c<=i.e.c;++c){l===i.s.r&&(o[c]=Xe(c)),s=o[c]+f;var d=a?(t[l]||[])[c]:t[s];d&&Kh(e,d,l,c)}}}function Yh(e,t){for(var r=t||{},n=Je(),a=0,i=0;i<e.SheetNames.length;++i)e.SheetNames[i]==r.sheet&&(a=i);if(a==0&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return J(n,r.biff==4?1033:r.biff==3?521:9,X0(e,16,r)),zh(n,e.Sheets[e.SheetNames[a]],a,r),J(n,10),n.end()}function $h(e,t,r){J(e,49,Hf({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},r))}function Jh(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&J(e,1054,Xf(a,t[a],r))})}function Zh(e,t){var r=B(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),J(e,2151,r),r=B(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),$a(Ee(t["!ref"]||"A1"),r),r.write_shift(4,4),J(e,2152,r)}function qh(e,t){for(var r=0;r<16;++r)J(e,224,Wn({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){J(e,224,Wn(n,0,t))})}function Qh(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];J(e,440,qf(n)),n[1].Tooltip&&J(e,2048,Qf(n))}delete t["!links"]}function eu(e,t){if(t){var r=0;t.forEach(function(n,a){++r<=256&&n&&J(e,125,tl(x0(a,n),a))})}}function ru(e,t,r,n,a){var i=16+Mr(a.cellXfs,t,a);if(t.v==null&&!t.bf){J(e,513,Xr(r,n,i));return}if(t.bf)J(e,6,Fc(t,r,n,a,i));else switch(t.t){case"d":case"n":var s=t.t=="d"?Ze($e(t.v)):t.v;J(e,515,Yf(r,n,s,i));break;case"b":case"e":J(e,517,zf(r,n,t.v,i,a,t.t));break;case"s":case"str":if(a.bookSST){var f=$0(a.Strings,t.v,a.revStrings);J(e,253,Gf(r,n,f,i))}else J(e,516,Vf(r,n,(t.v||"").slice(0,255),i,a));break;default:J(e,513,Xr(r,n,i))}}function tu(e,t,r){var n=Je(),a=r.SheetNames[e],i=r.Sheets[a]||{},s=(r||{}).Workbook||{},f=(s.Sheets||[])[e]||{},o=Array.isArray(i),l=t.biff==8,c,d="",x=[],v=Ee(i["!ref"]||"A1"),_=l?65536:16384;if(v.e.c>255||v.e.r>=_){if(t.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");v.e.c=Math.min(v.e.c,255),v.e.r=Math.min(v.e.c,_-1)}J(n,2057,X0(r,16,t)),J(n,13,lr(1)),J(n,12,lr(100)),J(n,15,Ye(!0)),J(n,17,Ye(!1)),J(n,16,Vr(.001)),J(n,95,Ye(!0)),J(n,42,Ye(!1)),J(n,43,Ye(!1)),J(n,130,lr(1)),J(n,128,Kf()),J(n,131,Ye(!1)),J(n,132,Ye(!1)),l&&eu(n,i["!cols"]),J(n,512,jf(v,t)),l&&(i["!links"]=[]);for(var u=v.s.r;u<=v.e.r;++u){d=He(u);for(var g=v.s.c;g<=v.e.c;++g){u===v.s.r&&(x[g]=Xe(g)),c=x[g]+d;var C=o?(i[u]||[])[g]:i[c];C&&(ru(n,C,u,g,t),l&&C.l&&i["!links"].push([c,C.l]))}}var O=f.CodeName||f.name||a;return l&&J(n,574,Wf((s.Views||[])[0])),l&&(i["!merges"]||[]).length&&J(n,229,Zf(i["!merges"])),l&&Qh(n,i),J(n,442,Ya(O)),l&&Zh(n,i),J(n,10),n.end()}function nu(e,t,r){var n=Je(),a=(e||{}).Workbook||{},i=a.Sheets||[],s=a.WBProps||{},f=r.biff==8,o=r.biff==5;if(J(n,2057,X0(e,5,r)),r.bookType=="xla"&&J(n,135),J(n,225,f?lr(1200):null),J(n,193,Cf(2)),o&&J(n,191),o&&J(n,192),J(n,226),J(n,92,Mf("SheetJS",r)),J(n,66,lr(f?1200:1252)),f&&J(n,353,lr(0)),f&&J(n,448),J(n,317,nl(e.SheetNames.length)),f&&e.vbaraw&&J(n,211),f&&e.vbaraw){var l=s.CodeName||"ThisWorkbook";J(n,442,Ya(l))}J(n,156,lr(17)),J(n,25,Ye(!1)),J(n,18,Ye(!1)),J(n,19,lr(0)),f&&J(n,431,Ye(!1)),f&&J(n,444,lr(0)),J(n,61,bf()),J(n,64,Ye(!1)),J(n,141,lr(0)),J(n,34,Ye(lh(e)=="true")),J(n,14,Ye(!0)),f&&J(n,439,Ye(!1)),J(n,218,lr(0)),$h(n,e,r),Jh(n,e.SSF,r),qh(n,r),f&&J(n,352,Ye(!1));var c=n.end(),d=Je();f&&J(d,140,el()),f&&r.Strings&&Vh(d,252,Uf(r.Strings)),J(d,10);var x=d.end(),v=Je(),_=0,u=0;for(u=0;u<e.SheetNames.length;++u)_+=(f?12:11)+(f?2:1)*e.SheetNames[u].length;var g=c.length+_+x.length;for(u=0;u<e.SheetNames.length;++u){var C=i[u]||{};J(v,133,Bf({pos:g,hs:C.Hidden||0,dt:0,name:e.SheetNames[u]},r)),g+=t[u].length}var O=v.end();if(_!=O.length)throw new Error("BS8 "+_+" != "+O.length);var y=[];return c.length&&y.push(c),O.length&&y.push(O),x.length&&y.push(x),be(y)}function au(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=qe(ye)),e&&e.SSF&&(l0(),f0(e.SSF),r.revssf=o0(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,J0(r),r.cellXfs=[],Mr(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var a=0;a<e.SheetNames.length;++a)n[n.length]=tu(a,r,e);return n.unshift(nu(e,n,r)),be(n)}function Ei(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var a=ar(n["!ref"]);a.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255).  Data may be lost.")}}var i=t||{};switch(i.biff||2){case 8:case 5:return au(e,t);case 4:case 3:case 2:return Yh(e,t)}throw new Error("invalid type "+i.bookType+" for BIFF")}function iu(e,t,r,n){for(var a=e["!merges"]||[],i=[],s=t.s.c;s<=t.e.c;++s){for(var f=0,o=0,l=0;l<a.length;++l)if(!(a[l].s.r>r||a[l].s.c>s)&&!(a[l].e.r<r||a[l].e.c<s)){if(a[l].s.r<r||a[l].s.c<s){f=-1;break}f=a[l].e.r-a[l].s.r+1,o=a[l].e.c-a[l].s.c+1;break}if(!(f<0)){var c=me({r,c:s}),d=n.dense?(e[r]||[])[s]:e[c],x=d&&d.v!=null&&(d.h||Ps(d.w||(Or(d),d.w)||""))||"",v={};f>1&&(v.rowspan=f),o>1&&(v.colspan=o),n.editable?x='<span contenteditable="true">'+x+"</span>":d&&(v["data-t"]=d&&d.t||"z",d.v!=null&&(v["data-v"]=d.v),d.z!=null&&(v["data-z"]=d.z),d.l&&(d.l.Target||"#").charAt(0)!="#"&&(x='<a href="'+d.l.Target+'">'+x+"</a>")),v.id=(n.id||"sjs")+"-"+c,i.push(z("td",x,v))}}var _="<tr>";return _+i.join("")+"</tr>"}var su='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',fu="</body></html>";function lu(e,t,r){var n=[];return n.join("")+"<table"+(r.id?' id="'+r.id+'"':"")+">"}function wi(e,t){var r=t||{},n=r.header!=null?r.header:su,a=r.footer!=null?r.footer:fu,i=[n],s=ar(e["!ref"]);r.dense=Array.isArray(e),i.push(lu(e,s,r));for(var f=s.s.r;f<=s.e.r;++f)i.push(iu(e,s,f,r));return i.push("</table>"+a),i.join("")}function Si(e,t,r){var n=r||{},a=0,i=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var s=typeof n.origin=="string"?Pe(n.origin):n.origin;a=s.r,i=s.c}var f=t.getElementsByTagName("tr"),o=Math.min(n.sheetRows||1e7,f.length),l={s:{r:0,c:0},e:{r:a,c:i}};if(e["!ref"]){var c=ar(e["!ref"]);l.s.r=Math.min(l.s.r,c.s.r),l.s.c=Math.min(l.s.c,c.s.c),l.e.r=Math.max(l.e.r,c.e.r),l.e.c=Math.max(l.e.c,c.e.c),a==-1&&(l.e.r=a=c.e.r+1)}var d=[],x=0,v=e["!rows"]||(e["!rows"]=[]),_=0,u=0,g=0,C=0,O=0,y=0;for(e["!cols"]||(e["!cols"]=[]);_<f.length&&u<o;++_){var M=f[_];if(zn(M)){if(n.display)continue;v[u]={hidden:!0}}var Y=M.children;for(g=C=0;g<Y.length;++g){var ee=Y[g];if(!(n.display&&zn(ee))){var D=ee.hasAttribute("data-v")?ee.getAttribute("data-v"):ee.hasAttribute("v")?ee.getAttribute("v"):Us(ee.innerHTML),b=ee.getAttribute("data-z")||ee.getAttribute("z");for(x=0;x<d.length;++x){var L=d[x];L.s.c==C+i&&L.s.r<u+a&&u+a<=L.e.r&&(C=L.e.c+1-i,x=-1)}y=+ee.getAttribute("colspan")||1,((O=+ee.getAttribute("rowspan")||1)>1||y>1)&&d.push({s:{r:u+a,c:C+i},e:{r:u+a+(O||1)-1,c:C+i+(y||1)-1}});var G={t:"s",v:D},V=ee.getAttribute("data-t")||ee.getAttribute("t")||"";D!=null&&(D.length==0?G.t=V||"z":n.raw||D.trim().length==0||V=="s"||(D==="TRUE"?G={t:"b",v:!0}:D==="FALSE"?G={t:"b",v:!1}:isNaN(Fr(D))?isNaN(At(D).getDate())||(G={t:"d",v:$e(D)},n.cellDates||(G={t:"n",v:Ze(G.v)}),G.z=n.dateNF||ye[14]):G={t:"n",v:Fr(D)})),G.z===void 0&&b!=null&&(G.z=b);var j="",re=ee.getElementsByTagName("A");if(re&&re.length)for(var ge=0;ge<re.length&&!(re[ge].hasAttribute("href")&&(j=re[ge].getAttribute("href"),j.charAt(0)!="#"));++ge);j&&j.charAt(0)!="#"&&(G.l={Target:j}),n.dense?(e[u+a]||(e[u+a]=[]),e[u+a][C+i]=G):e[me({c:C+i,r:u+a})]=G,l.e.c<C+i&&(l.e.c=C+i),C+=y}}++u}return d.length&&(e["!merges"]=(e["!merges"]||[]).concat(d)),l.e.r=Math.max(l.e.r,u-1+a),e["!ref"]=De(l),u>=o&&(e["!fullref"]=De((l.e.r=f.length-_+u-1+a,l))),e}function Ai(e,t){var r=t||{},n=r.dense?[]:{};return Si(n,e,t)}function ou(e,t){return jr(Ai(e,t),t)}function zn(e){var t="",r=cu(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function cu(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var hu=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+yt({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return Re+t}}(),Yn=function(){var e=function(i){return pe(i).replace(/  +/g,function(s){return'<text:s text:c="'+s.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=`          <table:table-cell />
+`,r=`          <table:covered-table-cell/>
+`,n=function(i,s,f){var o=[];o.push('      <table:table table:name="'+pe(s.SheetNames[f])+`" table:style-name="ta1">
+`);var l=0,c=0,d=ar(i["!ref"]||"A1"),x=i["!merges"]||[],v=0,_=Array.isArray(i);if(i["!cols"])for(c=0;c<=d.e.c;++c)o.push("        <table:table-column"+(i["!cols"][c]?' table:style-name="co'+i["!cols"][c].ods+'"':"")+`></table:table-column>
+`);var u="",g=i["!rows"]||[];for(l=0;l<d.s.r;++l)u=g[l]?' table:style-name="ro'+g[l].ods+'"':"",o.push("        <table:table-row"+u+`></table:table-row>
+`);for(;l<=d.e.r;++l){for(u=g[l]?' table:style-name="ro'+g[l].ods+'"':"",o.push("        <table:table-row"+u+`>
+`),c=0;c<d.s.c;++c)o.push(t);for(;c<=d.e.c;++c){var C=!1,O={},y="";for(v=0;v!=x.length;++v)if(!(x[v].s.c>c)&&!(x[v].s.r>l)&&!(x[v].e.c<c)&&!(x[v].e.r<l)){(x[v].s.c!=c||x[v].s.r!=l)&&(C=!0),O["table:number-columns-spanned"]=x[v].e.c-x[v].s.c+1,O["table:number-rows-spanned"]=x[v].e.r-x[v].s.r+1;break}if(C){o.push(r);continue}var M=me({r:l,c}),Y=_?(i[l]||[])[c]:i[M];if(Y&&Y.f&&(O["table:formula"]=pe(Ic(Y.f)),Y.F&&Y.F.slice(0,M.length)==M)){var ee=ar(Y.F);O["table:number-matrix-columns-spanned"]=ee.e.c-ee.s.c+1,O["table:number-matrix-rows-spanned"]=ee.e.r-ee.s.r+1}if(!Y){o.push(t);continue}switch(Y.t){case"b":y=Y.v?"TRUE":"FALSE",O["office:value-type"]="boolean",O["office:boolean-value"]=Y.v?"true":"false";break;case"n":y=Y.w||String(Y.v||0),O["office:value-type"]="float",O["office:value"]=Y.v||0;break;case"s":case"str":y=Y.v==null?"":Y.v,O["office:value-type"]="string";break;case"d":y=Y.w||$e(Y.v).toISOString(),O["office:value-type"]="date",O["office:date-value"]=$e(Y.v).toISOString(),O["table:style-name"]="ce1";break;default:o.push(t);continue}var D=e(y);if(Y.l&&Y.l.Target){var b=Y.l.Target;b=b.charAt(0)=="#"?"#"+Nc(b.slice(1)):b,b.charAt(0)!="#"&&!b.match(/^\w+:/)&&(b="../"+b),D=z("text:a",D,{"xlink:href":b.replace(/&/g,"&amp;")})}o.push("          "+z("table:table-cell",z("text:p",D,{}),O)+`
+`)}o.push(`        </table:table-row>
+`)}return o.push(`      </table:table>
+`),o.join("")},a=function(i,s){i.push(` <office:automatic-styles>
+`),i.push(`  <number:date-style style:name="N37" number:automatic-order="true">
+`),i.push(`   <number:month number:style="long"/>
+`),i.push(`   <number:text>/</number:text>
+`),i.push(`   <number:day number:style="long"/>
+`),i.push(`   <number:text>/</number:text>
+`),i.push(`   <number:year/>
+`),i.push(`  </number:date-style>
+`);var f=0;s.SheetNames.map(function(l){return s.Sheets[l]}).forEach(function(l){if(l&&l["!cols"]){for(var c=0;c<l["!cols"].length;++c)if(l["!cols"][c]){var d=l["!cols"][c];if(d.width==null&&d.wpx==null&&d.wch==null)continue;j0(d),d.ods=f;var x=l["!cols"][c].wpx+"px";i.push('  <style:style style:name="co'+f+`" style:family="table-column">
+`),i.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+x+`"/>
+`),i.push(`  </style:style>
+`),++f}}});var o=0;s.SheetNames.map(function(l){return s.Sheets[l]}).forEach(function(l){if(l&&l["!rows"]){for(var c=0;c<l["!rows"].length;++c)if(l["!rows"][c]){l["!rows"][c].ods=o;var d=l["!rows"][c].hpx+"px";i.push('  <style:style style:name="ro'+o+`" style:family="table-row">
+`),i.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+d+`"/>
+`),i.push(`  </style:style>
+`),++o}}}),i.push(`  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
+`),i.push(`   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
+`),i.push(`  </style:style>
+`),i.push(`  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
+`),i.push(` </office:automatic-styles>
+`)};return function(s,f){var o=[Re],l=yt({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),c=yt({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});f.bookType=="fods"?(o.push("<office:document"+l+c+`>
+`),o.push(ba().replace(/office:document-meta/g,"office:meta"))):o.push("<office:document-content"+l+`>
+`),a(o,s),o.push(`  <office:body>
+`),o.push(`    <office:spreadsheet>
+`);for(var d=0;d!=s.SheetNames.length;++d)o.push(n(s.Sheets[s.SheetNames[d]],s,d));return o.push(`    </office:spreadsheet>
+`),o.push(`  </office:body>
+`),f.bookType=="fods"?o.push("</office:document>"):o.push("</office:document-content>"),o.join("")}}();function Fi(e,t){if(t.bookType=="fods")return Yn(e,t);var r=P0(),n="",a=[],i=[];return n="mimetype",oe(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",oe(r,n,Yn(e,t)),a.push([n,"text/xml"]),i.push([n,"ContentFile"]),n="styles.xml",oe(r,n,hu(e,t)),a.push([n,"text/xml"]),i.push([n,"StylesFile"]),n="meta.xml",oe(r,n,Re+ba()),a.push([n,"text/xml"]),i.push([n,"MetadataFile"]),n="manifest.rdf",oe(r,n,wf(i)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",oe(r,n,Tf(a)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function a0(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function uu(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):vr(Ft(e))}function xu(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function Lr(e){var t=e.reduce(function(a,i){return a+i.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(a){r.set(a,n),n+=a.length}),r}function vu(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var i=0;a>=1;++i,a/=256)e[t+i]=a&255;e[t+15]|=r>=0?0:128}function Ct(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function ve(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function it(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function Ie(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],a=Ct(e,r),i=a&7;a=Math.floor(a/8);var s=0,f;if(a==0)break;switch(i){case 0:{for(var o=r[0];e[r[0]++]>=128;);f=e.slice(o,r[0])}break;case 5:s=4,f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 1:s=8,f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 2:s=Ct(e,r),f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(a," at offset ").concat(n))}var l={data:f,type:i};t[a]==null?t[a]=[l]:t[a].push(l)}return t}function Be(e){var t=[];return e.forEach(function(r,n){r.forEach(function(a){a.data&&(t.push(ve(n*8+a.type)),a.type==2&&t.push(ve(a.data.length)),t.push(a.data))})}),Lr(t)}function hr(e){for(var t,r=[],n=[0];n[0]<e.length;){var a=Ct(e,n),i=Ie(e.slice(n[0],n[0]+a));n[0]+=a;var s={id:it(i[1][0].data),messages:[]};i[2].forEach(function(f){var o=Ie(f.data),l=it(o[3][0].data);s.messages.push({meta:o,data:e.slice(n[0],n[0]+l)}),n[0]+=l}),(t=i[3])!=null&&t[0]&&(s.merge=it(i[3][0].data)>>>0>0),r.push(s)}return r}function qr(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:ve(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:ve(+!!r.merge),type:0}]);var a=[];r.messages.forEach(function(s){a.push(s.data),s.meta[3]=[{type:0,data:ve(s.data.length)}],n[2].push({data:Be(s.meta),type:2})});var i=Be(n);t.push(ve(i.length)),t.push(i),a.forEach(function(s){return t.push(s)})}),Lr(t)}function du(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=Ct(t,r),a=[];r[0]<t.length;){var i=t[r[0]]&3;if(i==0){var s=t[r[0]++]>>2;if(s<60)++s;else{var f=s-59;s=t[r[0]],f>1&&(s|=t[r[0]+1]<<8),f>2&&(s|=t[r[0]+2]<<16),f>3&&(s|=t[r[0]+3]<<24),s>>>=0,s++,r[0]+=f}a.push(t.slice(r[0],r[0]+s)),r[0]+=s;continue}else{var o=0,l=0;if(i==1?(l=(t[r[0]]>>2&7)+4,o=(t[r[0]++]&224)<<3,o|=t[r[0]++]):(l=(t[r[0]++]>>2)+1,i==2?(o=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(o=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),a=[Lr(a)],o==0)throw new Error("Invalid offset 0");if(o>a[0].length)throw new Error("Invalid offset beyond length");if(l>=o)for(a.push(a[0].slice(-o)),l-=o;l>=a[a.length-1].length;)a.push(a[a.length-1]),l-=a[a.length-1].length;a.push(a[0].slice(-o,-o+l))}}var c=Lr(a);if(c.length!=n)throw new Error("Unexpected length: ".concat(c.length," != ").concat(n));return c}function ur(e){for(var t=[],r=0;r<e.length;){var n=e[r++],a=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(du(n,e.slice(r,r+a))),r+=a}if(r!==e.length)throw new Error("data is not a valid framed stream!");return Lr(t)}function Qr(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),a=new Uint8Array(4);t.push(a);var i=ve(n),s=i.length;t.push(i),n<=60?(s++,t.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),s+=n,a[0]=0,a[1]=s&255,a[2]=s>>8&255,a[3]=s>>16&255,r+=n}return Lr(t)}function F0(e,t){var r=new Uint8Array(32),n=a0(r),a=12,i=0;switch(r[0]=5,e.t){case"n":r[1]=2,vu(r,a,e.v),i|=1,a+=16;break;case"b":r[1]=6,n.setFloat64(a,e.v?1:0,!0),i|=2,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=8,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,i,!0),r.slice(0,a)}function y0(e,t){var r=new Uint8Array(32),n=a0(r),a=12,i=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(a,e.v,!0),i|=32,a+=8;break;case"b":r[2]=6,n.setFloat64(a,e.v?1:0,!0),i|=32,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=16,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,i,!0),r.slice(0,a)}function Rr(e){var t=Ie(e);return Ct(t[1][0].data)}function pu(e,t,r){var n,a,i,s;if(!((n=e[6])!=null&&n[0])||!((a=e[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var f=((s=(i=e[8])==null?void 0:i[0])==null?void 0:s.data)&&it(e[8][0].data)>0||!1;if(f)throw"Math only works with normal offsets";for(var o=0,l=a0(e[7][0].data),c=0,d=[],x=a0(e[4][0].data),v=0,_=[],u=0;u<t.length;++u){if(t[u]==null){l.setUint16(u*2,65535,!0),x.setUint16(u*2,65535);continue}l.setUint16(u*2,c,!0),x.setUint16(u*2,v,!0);var g,C;switch(typeof t[u]){case"string":g=F0({t:"s",v:t[u]},r),C=y0({t:"s",v:t[u]},r);break;case"number":g=F0({t:"n",v:t[u]},r),C=y0({t:"n",v:t[u]},r);break;case"boolean":g=F0({t:"b",v:t[u]},r),C=y0({t:"b",v:t[u]},r);break;default:throw new Error("Unsupported value "+t[u])}d.push(g),c+=g.length,_.push(C),v+=C.length,++o}for(e[2][0].data=ve(o);u<e[7][0].data.length/2;++u)l.setUint16(u*2,65535,!0),x.setUint16(u*2,65535,!0);return e[6][0].data=Lr(d),e[3][0].data=Lr(_),o}function mu(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=ar(r["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(De(n)));var i=i0(r,{range:n,header:1}),s=["~Sh33tJ5~"];i.forEach(function(P){return P.forEach(function(F){typeof F=="string"&&s.push(F)})});var f={},o=[],l=_e.read(t.numbers,{type:"base64"});l.FileIndex.map(function(P,F){return[P,l.FullPaths[F]]}).forEach(function(P){var F=P[0],A=P[1];if(F.type==2&&F.name.match(/\.iwa/)){var H=F.content,ie=ur(H),se=hr(ie);se.forEach(function(ae){o.push(ae.id),f[ae.id]={deps:[],location:A,type:it(ae.messages[0].meta[1][0].data)}})}}),o.sort(function(P,F){return P-F});var c=o.filter(function(P){return P>1}).map(function(P){return[P,ve(P)]});l.FileIndex.map(function(P,F){return[P,l.FullPaths[F]]}).forEach(function(P){var F=P[0];if(P[1],!!F.name.match(/\.iwa/)){var A=hr(ur(F.content));A.forEach(function(H){H.messages.forEach(function(ie){c.forEach(function(se){H.messages.some(function(ae){return it(ae.meta[1][0].data)!=11006&&xu(ae.data,se[1])})&&f[se[0]].deps.push(H.id)})})})}});for(var d=_e.find(l,f[1].location),x=hr(ur(d.content)),v,_=0;_<x.length;++_){var u=x[_];u.id==1&&(v=u)}var g=Rr(Ie(v.messages[0].data)[1][0].data);for(d=_e.find(l,f[g].location),x=hr(ur(d.content)),_=0;_<x.length;++_)u=x[_],u.id==g&&(v=u);for(g=Rr(Ie(v.messages[0].data)[2][0].data),d=_e.find(l,f[g].location),x=hr(ur(d.content)),_=0;_<x.length;++_)u=x[_],u.id==g&&(v=u);for(g=Rr(Ie(v.messages[0].data)[2][0].data),d=_e.find(l,f[g].location),x=hr(ur(d.content)),_=0;_<x.length;++_)u=x[_],u.id==g&&(v=u);var C=Ie(v.messages[0].data);{C[6][0].data=ve(n.e.r+1),C[7][0].data=ve(n.e.c+1);var O=Rr(C[46][0].data),y=_e.find(l,f[O].location),M=hr(ur(y.content));{for(var Y=0;Y<M.length&&M[Y].id!=O;++Y);if(M[Y].id!=O)throw"Bad ColumnRowUIDMapArchive";var ee=Ie(M[Y].messages[0].data);ee[1]=[],ee[2]=[],ee[3]=[];for(var D=0;D<=n.e.c;++D){var b=[];b[1]=b[2]=[{type:0,data:ve(D+420690)}],ee[1].push({type:2,data:Be(b)}),ee[2].push({type:0,data:ve(D)}),ee[3].push({type:0,data:ve(D)})}ee[4]=[],ee[5]=[],ee[6]=[];for(var L=0;L<=n.e.r;++L)b=[],b[1]=b[2]=[{type:0,data:ve(L+726270)}],ee[4].push({type:2,data:Be(b)}),ee[5].push({type:0,data:ve(L)}),ee[6].push({type:0,data:ve(L)});M[Y].messages[0].data=Be(ee)}y.content=Qr(qr(M)),y.size=y.content.length,delete C[46];var G=Ie(C[4][0].data);{G[7][0].data=ve(n.e.r+1);var V=Ie(G[1][0].data),j=Rr(V[2][0].data);y=_e.find(l,f[j].location),M=hr(ur(y.content));{if(M[0].id!=j)throw"Bad HeaderStorageBucket";var re=Ie(M[0].messages[0].data);for(L=0;L<i.length;++L){var ge=Ie(re[2][0].data);ge[1][0].data=ve(L),ge[4][0].data=ve(i[L].length),re[2][L]={type:re[2][0].type,data:Be(ge)}}M[0].messages[0].data=Be(re)}y.content=Qr(qr(M)),y.size=y.content.length;var le=Rr(G[2][0].data);y=_e.find(l,f[le].location),M=hr(ur(y.content));{if(M[0].id!=le)throw"Bad HeaderStorageBucket";for(re=Ie(M[0].messages[0].data),D=0;D<=n.e.c;++D)ge=Ie(re[2][0].data),ge[1][0].data=ve(D),ge[4][0].data=ve(n.e.r+1),re[2][D]={type:re[2][0].type,data:Be(ge)};M[0].messages[0].data=Be(re)}y.content=Qr(qr(M)),y.size=y.content.length;var Me=Rr(G[4][0].data);(function(){for(var P=_e.find(l,f[Me].location),F=hr(ur(P.content)),A,H=0;H<F.length;++H){var ie=F[H];ie.id==Me&&(A=ie)}var se=Ie(A.messages[0].data);{se[3]=[];var ae=[];s.forEach(function(ce,Ke){ae[1]=[{type:0,data:ve(Ke)}],ae[2]=[{type:0,data:ve(1)}],ae[3]=[{type:2,data:uu(ce)}],se[3].push({type:2,data:Be(ae)})})}A.messages[0].data=Be(se);var q=qr(F),Te=Qr(q);P.content=Te,P.size=P.content.length})();var Ce=Ie(G[3][0].data);{var cr=Ce[1][0];delete Ce[2];var Ne=Ie(cr.data);{var ir=Rr(Ne[2][0].data);(function(){for(var P=_e.find(l,f[ir].location),F=hr(ur(P.content)),A,H=0;H<F.length;++H){var ie=F[H];ie.id==ir&&(A=ie)}var se=Ie(A.messages[0].data);{delete se[6],delete Ce[7];var ae=new Uint8Array(se[5][0].data);se[5]=[];for(var q=0,Te=0;Te<=n.e.r;++Te){var ce=Ie(ae);q+=pu(ce,i[Te],s),ce[1][0].data=ve(Te),se[5].push({data:Be(ce),type:2})}se[1]=[{type:0,data:ve(n.e.c+1)}],se[2]=[{type:0,data:ve(n.e.r+1)}],se[3]=[{type:0,data:ve(q)}],se[4]=[{type:0,data:ve(n.e.r+1)}]}A.messages[0].data=Be(se);var Ke=qr(F),xe=Qr(Ke);P.content=xe,P.size=P.content.length})()}cr.data=Be(Ne)}G[3][0].data=Be(Ce)}C[4][0].data=Be(G)}v.messages[0].data=Be(C);var Qe=qr(x),S=Qr(Qe);return d.content=S,d.size=d.content.length,l}function gu(e){return function(r){for(var n=0;n!=e.length;++n){var a=e[n];r[a[0]]===void 0&&(r[a[0]]=a[1]),a[2]==="n"&&(r[a[0]]=Number(r[a[0]]))}}}function J0(e){gu([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function _u(e,t){return t.bookType=="ods"?Fi(e,t):t.bookType=="numbers"?mu(e,t):t.bookType=="xlsb"?Tu(e,t):Eu(e,t)}function Tu(e,t){rt=1024,e&&!e.SSF&&(e.SSF=qe(ye)),e&&e.SSF&&(l0(),f0(e.SSF),t.revssf=o0(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Et?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=fi.indexOf(t.bookType)>-1,a=Ma();J0(t=t||{});var i=P0(),s="",f=0;if(t.cellXfs=[],Mr(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",oe(i,s,Wa(e.Props,t)),a.coreprops.push(s),de(t.rels,2,s,he.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var o=[],l=0;l<e.SheetNames.length;++l)(e.Workbook.Sheets[l]||{}).Hidden!=2&&o.push(e.SheetNames[l]);e.Props.SheetNames=o}for(e.Props.Worksheets=e.Props.SheetNames.length,oe(i,s,Ga(e.Props)),a.extprops.push(s),de(t.rels,3,s,he.EXT_PROPS),e.Custprops!==e.Props&&Ge(e.Custprops||{}).length>0&&(s="docProps/custom.xml",oe(i,s,Va(e.Custprops)),a.custprops.push(s),de(t.rels,4,s,he.CUST_PROPS)),f=1;f<=e.SheetNames.length;++f){var c={"!id":{}},d=e.Sheets[e.SheetNames[f-1]],x=(d||{})["!type"]||"sheet";switch(x){case"chart":default:s="xl/worksheets/sheet"+f+"."+r,oe(i,s,Sh(f-1,s,t,e,c)),a.sheets.push(s),de(t.wbrels,-1,"worksheets/sheet"+f+"."+r,he.WS[0])}if(d){var v=d["!comments"],_=!1,u="";v&&v.length>0&&(u="xl/comments"+f+"."+r,oe(i,u,yh(v,u)),a.comments.push(u),de(c,-1,"../comments"+f+"."+r,he.CMNT),_=!0),d["!legacy"]&&_&&oe(i,"xl/drawings/vmlDrawing"+f+".vml",ii(f,d["!comments"])),delete d["!comments"],delete d["!legacy"]}c["!id"].rId1&&oe(i,Ua(s),nt(c))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,oe(i,s,Fh(t.Strings,s,t)),a.strs.push(s),de(t.wbrels,-1,"sharedStrings."+r,he.SST)),s="xl/workbook."+r,oe(i,s,wh(e,s)),a.workbooks.push(s),de(t.rels,1,s,he.WB),s="xl/theme/theme1.xml",oe(i,s,ni(e.Themes,t)),a.themes.push(s),de(t.wbrels,-1,"theme/theme1.xml",he.THEME),s="xl/styles."+r,oe(i,s,Ah(e,s,t)),a.styles.push(s),de(t.wbrels,-1,"styles."+r,he.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",oe(i,s,e.vbaraw),a.vba.push(s),de(t.wbrels,-1,"vbaProject.bin",he.VBA)),s="xl/metadata."+r,oe(i,s,Ch(s)),a.metadata.push(s),de(t.wbrels,-1,"metadata."+r,he.XLMETA),oe(i,"[Content_Types].xml",Ba(a,t)),oe(i,"_rels/.rels",nt(t.rels)),oe(i,"xl/_rels/workbook."+r+".rels",nt(t.wbrels)),delete t.revssf,delete t.ssf,i}function Eu(e,t){rt=1024,e&&!e.SSF&&(e.SSF=qe(ye)),e&&e.SSF&&(l0(),f0(e.SSF),t.revssf=o0(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Et?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=fi.indexOf(t.bookType)>-1,a=Ma();J0(t=t||{});var i=P0(),s="",f=0;if(t.cellXfs=[],Mr(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",oe(i,s,Wa(e.Props,t)),a.coreprops.push(s),de(t.rels,2,s,he.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var o=[],l=0;l<e.SheetNames.length;++l)(e.Workbook.Sheets[l]||{}).Hidden!=2&&o.push(e.SheetNames[l]);e.Props.SheetNames=o}e.Props.Worksheets=e.Props.SheetNames.length,oe(i,s,Ga(e.Props)),a.extprops.push(s),de(t.rels,3,s,he.EXT_PROPS),e.Custprops!==e.Props&&Ge(e.Custprops||{}).length>0&&(s="docProps/custom.xml",oe(i,s,Va(e.Custprops)),a.custprops.push(s),de(t.rels,4,s,he.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,f=1;f<=e.SheetNames.length;++f){var d={"!id":{}},x=e.Sheets[e.SheetNames[f-1]],v=(x||{})["!type"]||"sheet";switch(v){case"chart":default:s="xl/worksheets/sheet"+f+"."+r,oe(i,s,pi(f-1,t,e,d)),a.sheets.push(s),de(t.wbrels,-1,"worksheets/sheet"+f+"."+r,he.WS[0])}if(x){var _=x["!comments"],u=!1,g="";if(_&&_.length>0){var C=!1;_.forEach(function(O){O[1].forEach(function(y){y.T==!0&&(C=!0)})}),C&&(g="xl/threadedComments/threadedComment"+f+"."+r,oe(i,g,Zl(_,c,t)),a.threadedcomments.push(g),de(d,-1,"../threadedComments/threadedComment"+f+"."+r,he.TCMNT)),g="xl/comments"+f+"."+r,oe(i,g,si(_)),a.comments.push(g),de(d,-1,"../comments"+f+"."+r,he.CMNT),u=!0}x["!legacy"]&&u&&oe(i,"xl/drawings/vmlDrawing"+f+".vml",ii(f,x["!comments"])),delete x["!comments"],delete x["!legacy"]}d["!id"].rId1&&oe(i,Ua(s),nt(d))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,oe(i,s,Za(t.Strings,t)),a.strs.push(s),de(t.wbrels,-1,"sharedStrings."+r,he.SST)),s="xl/workbook."+r,oe(i,s,_i(e)),a.workbooks.push(s),de(t.rels,1,s,he.WB),s="xl/theme/theme1.xml",oe(i,s,ni(e.Themes,t)),a.themes.push(s),de(t.wbrels,-1,"theme/theme1.xml",he.THEME),s="xl/styles."+r,oe(i,s,ri(e,t)),a.styles.push(s),de(t.wbrels,-1,"styles."+r,he.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",oe(i,s,e.vbaraw),a.vba.push(s),de(t.wbrels,-1,"vbaProject.bin",he.VBA)),s="xl/metadata."+r,oe(i,s,ai()),a.metadata.push(s),de(t.wbrels,-1,"metadata."+r,he.XLMETA),c.length>1&&(s="xl/persons/person.xml",oe(i,s,ql(c)),a.people.push(s),de(t.wbrels,-1,"persons/person.xml",he.PEOPLE)),oe(i,"[Content_Types].xml",Ba(a,t)),oe(i,"_rels/.rels",nt(t.rels)),oe(i,"xl/_rels/workbook."+r+".rels",nt(t.wbrels)),delete t.revssf,delete t.ssf,i}function wu(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=Cr(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function yi(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Rt(t.file,_e.write(e,{type:ue?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return _e.write(e,t)}function Su(e,t){var r=qe(t||{}),n=_u(e,r);return Au(n,r)}function Au(e,t){var r={},n=ue?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var a=e.FullPaths?_e.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof a=="string"){if(t.type=="binary"||t.type=="base64")return a;a=new Uint8Array(s0(a))}return t.password&&typeof encrypt_agile<"u"?yi(encrypt_agile(a,t.password),t):t.type==="file"?Rt(t.file,a):t.type=="string"?mt(a):a}function Fu(e,t){var r=t||{},n=Hh(e,r);return yi(n,r)}function _r(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return St(Ft(n));case"binary":return Ft(n);case"string":return e;case"file":return Rt(t.file,n,"utf8");case"buffer":return ue?Dr(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):_r(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function yu(e,t){switch(t.type){case"base64":return St(e);case"binary":return e;case"string":return e;case"file":return Rt(t.file,e,"binary");case"buffer":return ue?Dr(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function Xt(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n<e.length;++n)r+=String.fromCharCode(e[n]);return t.type=="base64"?St(r):t.type=="string"?mt(r):r;case"file":return Rt(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function Cu(e,t){qi(),hh(e);var r=qe(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=Cu(e,r);return r.type="array",s0(n)}var a=0;if(r.sheet&&(typeof r.sheet=="number"?a=r.sheet:a=e.SheetNames.indexOf(r.sheet),!e.SheetNames[a]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return _r(bh(e,r),r);case"slk":case"sylk":return _r(fl.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"htm":case"html":return _r(wi(e.Sheets[e.SheetNames[a]],r),r);case"txt":return yu(Ci(e.Sheets[e.SheetNames[a]],r),r);case"csv":return _r(Z0(e.Sheets[e.SheetNames[a]],r),r,"\uFEFF");case"dif":return _r(ll.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"dbf":return Xt(sl.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"prn":return _r(ol.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"rtf":return _r(pl.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"eth":return _r(Ja.from_sheet(e.Sheets[e.SheetNames[a]],r),r);case"fods":return _r(Fi(e,r),r);case"wk1":return Xt(Hn.sheet_to_wk1(e.Sheets[e.SheetNames[a]],r),r);case"wk3":return Xt(Hn.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),Xt(Ei(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),Fu(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return Su(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function Ou(e,t,r,n,a,i,s,f){var o=He(r),l=f.defval,c=f.raw||!Object.prototype.hasOwnProperty.call(f,"raw"),d=!0,x=a===1?[]:{};if(a!==1)if(Object.defineProperty)try{Object.defineProperty(x,"__rowNum__",{value:r,enumerable:!1})}catch{x.__rowNum__=r}else x.__rowNum__=r;if(!s||e[r])for(var v=t.s.c;v<=t.e.c;++v){var _=s?e[r][v]:e[n[v]+o];if(_===void 0||_.t===void 0){if(l===void 0)continue;i[v]!=null&&(x[i[v]]=l);continue}var u=_.v;switch(_.t){case"z":if(u==null)break;continue;case"e":u=u==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+_.t)}if(i[v]!=null){if(u==null)if(_.t=="e"&&u===null)x[i[v]]=null;else if(l!==void 0)x[i[v]]=l;else if(c&&u===null)x[i[v]]=null;else continue;else x[i[v]]=c&&(_.t!=="n"||_.t==="n"&&f.rawNumbers!==!1)?u:Or(_,u,f);u!=null&&(d=!1)}}return{row:x,isempty:d}}function i0(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,a=1,i=[],s=0,f="",o={s:{r:0,c:0},e:{r:0,c:0}},l=t||{},c=l.range!=null?l.range:e["!ref"];switch(l.header===1?n=1:l.header==="A"?n=2:Array.isArray(l.header)?n=3:l.header==null&&(n=0),typeof c){case"string":o=Ee(c);break;case"number":o=Ee(e["!ref"]),o.s.r=c;break;default:o=c}n>0&&(a=0);var d=He(o.s.r),x=[],v=[],_=0,u=0,g=Array.isArray(e),C=o.s.r,O=0,y={};g&&!e[C]&&(e[C]=[]);var M=l.skipHidden&&e["!cols"]||[],Y=l.skipHidden&&e["!rows"]||[];for(O=o.s.c;O<=o.e.c;++O)if(!(M[O]||{}).hidden)switch(x[O]=Xe(O),r=g?e[C][O]:e[x[O]+d],n){case 1:i[O]=O-o.s.c;break;case 2:i[O]=x[O];break;case 3:i[O]=l.header[O-o.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),f=s=Or(r,null,l),u=y[s]||0,!u)y[s]=1;else{do f=s+"_"+u++;while(y[f]);y[s]=u,y[f]=1}i[O]=f}for(C=o.s.r+a;C<=o.e.r;++C)if(!(Y[C]||{}).hidden){var ee=Ou(e,o,C,x,n,i,g,l);(ee.isempty===!1||(n===1?l.blankrows!==!1:l.blankrows))&&(v[_++]=ee.row)}return v.length=_,v}var $n=/"/g;function Du(e,t,r,n,a,i,s,f){for(var o=!0,l=[],c="",d=He(r),x=t.s.c;x<=t.e.c;++x)if(n[x]){var v=f.dense?(e[r]||[])[x]:e[n[x]+d];if(v==null)c="";else if(v.v!=null){o=!1,c=""+(f.rawNumbers&&v.t=="n"?v.v:Or(v,null,f));for(var _=0,u=0;_!==c.length;++_)if((u=c.charCodeAt(_))===a||u===i||u===34||f.forceQuotes){c='"'+c.replace($n,'""')+'"';break}c=="ID"&&(c='"ID"')}else v.f!=null&&!v.F?(o=!1,c="="+v.f,c.indexOf(",")>=0&&(c='"'+c.replace($n,'""')+'"')):c="";l.push(c)}return f.blankrows===!1&&o?null:l.join(s)}function Z0(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var a=Ee(e["!ref"]),i=n.FS!==void 0?n.FS:",",s=i.charCodeAt(0),f=n.RS!==void 0?n.RS:`
+`,o=f.charCodeAt(0),l=new RegExp((i=="|"?"\\|":i)+"+$"),c="",d=[];n.dense=Array.isArray(e);for(var x=n.skipHidden&&e["!cols"]||[],v=n.skipHidden&&e["!rows"]||[],_=a.s.c;_<=a.e.c;++_)(x[_]||{}).hidden||(d[_]=Xe(_));for(var u=0,g=a.s.r;g<=a.e.r;++g)(v[g]||{}).hidden||(c=Du(e,a,g,d,s,o,i,n),c!=null&&(n.strip&&(c=c.replace(l,"")),(c||n.blankrows!==!1)&&r.push((u++?f:"")+c)));return delete n.dense,r.join("")}function Ci(e,t){t||(t={}),t.FS="	",t.RS=`
+`;var r=Z0(e,t);return r}function Ru(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var a=Ee(e["!ref"]),i="",s=[],f,o=[],l=Array.isArray(e);for(f=a.s.c;f<=a.e.c;++f)s[f]=Xe(f);for(var c=a.s.r;c<=a.e.r;++c)for(i=He(c),f=a.s.c;f<=a.e.c;++f)if(t=s[f]+i,r=l?(e[c]||[])[f]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}o[o.length]=t+"="+n}return o}function Oi(e,t,r){var n=r||{},a=+!n.skipHeader,i=e||{},s=0,f=0;if(i&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var o=typeof n.origin=="string"?Pe(n.origin):n.origin;s=o.r,f=o.c}var l,c={s:{c:0,r:0},e:{c:f,r:s+t.length-1+a}};if(i["!ref"]){var d=Ee(i["!ref"]);c.e.c=Math.max(c.e.c,d.e.c),c.e.r=Math.max(c.e.r,d.e.r),s==-1&&(s=d.e.r+1,c.e.r=s+t.length-1+a)}else s==-1&&(s=0,c.e.r=t.length-1+a);var x=n.header||[],v=0;t.forEach(function(u,g){Ge(u).forEach(function(C){(v=x.indexOf(C))==-1&&(x[v=x.length]=C);var O=u[C],y="z",M="",Y=me({c:f+v,r:s+g+a});l=Ot(i,Y),O&&typeof O=="object"&&!(O instanceof Date)?i[Y]=O:(typeof O=="number"?y="n":typeof O=="boolean"?y="b":typeof O=="string"?y="s":O instanceof Date?(y="d",n.cellDates||(y="n",O=Ze(O)),M=n.dateNF||ye[14]):O===null&&n.nullError&&(y="e",O=0),l?(l.t=y,l.v=O,delete l.w,delete l.R,M&&(l.z=M)):i[Y]=l={t:y,v:O},M&&(l.z=M))})}),c.e.c=Math.max(c.e.c,f+x.length-1);var _=He(s);if(a)for(v=0;v<x.length;++v)i[Xe(v+f)+_]={t:"s",v:x[v]};return i["!ref"]=De(c),i}function Iu(e,t){return Oi(null,e,t)}function Ot(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=Pe(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?Ot(e,me(t)):Ot(e,me({r:t,c:r||0}))}function Nu(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function ku(){return{SheetNames:[],Sheets:{}}}function Pu(e,t,r,n){var a=1;if(!r)for(;a<=65535&&e.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var s=i&&i[1]||r;for(++a;a<=65535&&e.SheetNames.indexOf(r=s+a)!=-1;++a);}if(gi(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function Lu(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=Nu(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function Mu(e,t){return e.z=t,e}function Di(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function Bu(e,t,r){return Di(e,"#"+t,r)}function Uu(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function bu(e,t,r,n){for(var a=typeof t!="string"?t:Ee(t),i=typeof t=="string"?t:De(t),s=a.s.r;s<=a.e.r;++s)for(var f=a.s.c;f<=a.e.c;++f){var o=Ot(e,s,f);o.t="n",o.F=i,delete o.v,s==a.s.r&&f==a.s.c&&(o.f=r,n&&(o.D=!0))}return e}var Vu={encode_col:Xe,encode_row:He,encode_cell:me,encode_range:De,decode_col:W0,decode_row:b0,split_cell:qs,decode_cell:Pe,decode_range:ar,format_cell:Or,sheet_add_aoa:Ra,sheet_add_json:Oi,sheet_add_dom:Si,aoa_to_sheet:lt,json_to_sheet:Iu,table_to_sheet:Ai,table_to_book:ou,sheet_to_csv:Z0,sheet_to_txt:Ci,sheet_to_json:i0,sheet_to_html:wi,sheet_to_formulae:Ru,sheet_to_row_object_array:i0,sheet_get_cell:Ot,book_new:ku,book_append_sheet:Pu,book_set_sheet_visibility:Lu,cell_set_number_format:Mu,cell_set_hyperlink:Di,cell_set_internal_link:Bu,cell_add_comment:Uu,sheet_set_array_formula:bu,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};export{Hu as L,Gu as S,Vu as u,Cu as w};
diff --git a/setup.py b/setup.py
index f601815584b2fa6684de16693ce80460d4790bcf..8c21645e67757b0b6ca3162fe5f357282b5f11ff 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
 
 setup(
     name='compendium-v2',
-    version="0.87",
+    version="0.88",
     author='GEANT',
     author_email='swd@geant.org',
     description='Flask and React project for displaying '